Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager - Version 2.8.6

Version Description

  • We've added a horizontal scroll to the folders view
  • Importing folders works better and faster now, the same goes for uploading folders and media library scan for used files (Pro)
  • Published/Drafts view works for specific folders too
  • Fixed some bugs
Download this release

Release Info

Developer premiocommit
Plugin Icon wp plugin Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager
Version 2.8.6
Comparing to
See all releases

Code changes from version 2.8.5 to 2.8.6

assets/css/design.min.css CHANGED
@@ -1 +1 @@
1
- .wcp-custom-menu{padding-left:0}.wcp-custom-menu a,.wcp-custom-menu a:focus{outline:0;box-shadow:none}.wcp-custom-menu{position:relative}.wcp-container ul{list-style:none}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat;text-align:center}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.wcp-container .first-title{margin-left:10px}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px 0;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:0;top:0;padding:0}i.fa-caret-right{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}li.active>span>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}li.active>span>i.fa-folder:before{content:"\f07c"}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}.nav-icon{display:none;left:-10px!important;cursor:pointer}.has-sub-tree>.nav-icon{display:block}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:280px;box-sizing:border-box;z-index:1;direction:ltr;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}body.add-folder-zindex .wcp-content{z-index:10000}html[dir=rtl] .wcp-content{left:auto;right:160px}body.folded .wcp-content{left:36px}html[dir=rtl] body.folded .wcp-content{left:auto;right:36px}body.wp-admin #wpcontent{padding-left:305px;transition:all .15s linear;-webkit-transition:all .15s linear;-moz-transition:all .15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:305px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.form-operations{border:solid 1px #e5e5e5;border-right:none;margin-bottom:20px}.form-operations ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:solid 1px #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:solid 1px #f1f1f1;padding:15px;display:none;margin-bottom:20px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase;padding:0 0 10px 0}.wcp-form-data .form-field{padding:0 0 10px 0}.wcp-form-data .form-field input,.wcp-form-data .form-field select{width:100%}button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:solid 1px #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}#custom-menu.active>ul>li.route{display:block}.wcp-parent.active>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before{content:"\f07c"}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky .title .folder-sticky-icon{display:block}span.folder-sticky-icon i{font-size:14px!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}#custom-menu .route.active>h3.title .pfolder-folder-close:before{content:"\e902"}.route.is-sticky>h3.title>.ui-icon>.folder-sticky-icon{display:block;width:100%;height:auto;margin:3px auto 0}.route.is-sticky.active-item>h3.title>.ui-icon>.folder-sticky-icon{filter:invert(100%);-webkit-filter:invert(100%)}.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block;vertical-align:middle}.add-new-folder{text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder:focus,.add-new-folder:hover{color:#fff}.add-new-folder:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:0 5px 5px 5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.form-options .form-options{padding:0;background:0 0;box-shadow:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 7px;color:#000;vertical-align:middle;margin:0;background:#f1f1f1;border-radius:4px}.form-options>ul>li.last>a{padding:3px}a#expand-collapse-list.all-open span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.form-options>ul>li>a:hover{background:#404040;color:#fff}.form-options>ul>li>a:hover span.icon{color:#fff}.form-options>ul>li>a.expand-collapse{text-align:center}.form-options a.expand-collapse span.icon{font-size:6px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2!important;color:#fff!important}.un-categorised-items.active-item a{color:#fff!important}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}span.total-count{float:right;font-size:12px;line-height:16px}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0)}.route.active>.nav-icon>.folder-icon-arrow_right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.route.active>.ui-icon>.folder-icon-folder:before{content:"\e90c"}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.dynamic-menu{position:fixed;left:auto;right:5px;background:#fff;width:235px;padding:0;z-index:1000001;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.dynamic-menu ul{margin:0;padding:0}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:13px;color:#333}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px;text-align:center}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}.dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder,.dynamic-menu li.new-folder-pro{border-bottom:solid 1px #d8d8d8}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.dynamic-menu ul li span{font-size:20px;vertical-align:middle}.dynamic-menu ul li span.sticky-folder-icon{width:20px}.dynamic-menu ul li span i{font-size:14px;line-height:16px;font-weight:400}.wcp-form-input{padding-left:35px;box-sizing:border-box;position:relative}.wcp-form-input input{width:100%}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before{color:#fff}li.active-menu{z-index:2!important}body.woocommerce-page th#taxonomy-product_folder{width:10%!important}.wp-list-table th.column-title{width:22%!important}.wp-list-table #wcp_move{width:20px!important}td.wcp_move.column-wcp_move{vertical-align:middle}.wp-list-table tr td .wcp-move-file{vertical-align:middle;opacity:0}.wp-list-table td.wcp_move.column-wcp_move.wcp-draggable,.wp-list-table tr:hover td .wcp-move-file{opacity:1}.wcp-drop-hover{background:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#fa166b!important;color:#fff;position:relative}.wcp-hover-list a{color:#fff}.wcp-hover-list span.total-count{color:#000}span.wcp-item{display:none}.wcp-move-file{cursor:move}.wcp-drop-hover-list a.folder-view{background:#008ec2;color:#fff;border:solid 1px #fff;position:relative}.wcp-drop-hover-list a.folder-view:before{width:100%;height:100%;content:"";position:absolute;top:-2px;left:-2px;border:solid 1px #008ec2;padding:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}.ui-draggable-dragging.wcp-move-file{z-index:5001;display:inline-block;border:solid 2px #0073aa;padding:5px 10px;border-radius:5px;background:#e4f6ff;position:fixed!important;max-width:230px;overflow:hidden;width:auto!important}.ui-draggable-dragging.wcp-move-file span{display:block;float:left}.ui-draggable-dragging.wcp-move-file span.wcp-move{margin-right:5px;display:block;float:left}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 100px);overflow:hidden;white-space:nowrap;text-align:left}.ui-resizable-handle.ui-resizable-e{position:absolute;top:0;height:100%;height:100vh;width:1px;right:0;border-right:1px solid #ccc;cursor:col-resize}.ui-resizable-handle.ui-resizable-e:before,.ui-resizable-handle.ui-resizable-w:before{content:"";top:25%;width:3px;height:30px;position:absolute;border-left:solid 1px #fa166b;border-right:solid 1px #fa166b;left:-1px}.ui-resizable-handle.ui-resizable-w{position:absolute;top:0;height:100%;height:100vh;width:1px;left:0;border-right:1px solid #ccc;cursor:col-resize}div#custom-menu{padding:0 10px 10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0}.tree-structure .folder-item{padding:4px;position:relative}.tree-structure .folder-view{display:block;border:none;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#f1f1f1;font-size:14px;line-height:16px}.tree-structure .folder-view span.item-name{display:block;padding:8px 15px 8px 30px;position:relative;width:100%;overflow:hidden;height:32px;font-size:14px;box-sizing:border-box}.folder-view span.item-name:before{content:"\e906";font-family:premio-folder!important;position:absolute;left:8px;font-size:16px;color:#a4c0d2}.folder-view.is-high span.item-name:before{content:"\e900"}.folder-view.is-post span.item-name:before{content:"\e901"}.tree-structure span.folder-option{position:absolute;right:0;font-family:folder-icon!important;top:0;font-size:20px;line-height:38px;z-index:1;cursor:pointer;display:none}.tree-structure .folder-view:hover span.folder-option{display:block}.tree-structure span.folder-option:hover{color:#f51366}.tree-structure span.folder-option:after{content:"\e90a"}.tree-structure li{position:relative}.tree-structure{margin-left:-8px;margin-right:-8px}.tree-structure .folder-view span.folder-title{width:100%;display:block}.swal2-popup .swal2-title{line-height:36px}.attachments-browser.ui-draggable-dragging .media-sidebar,.attachments-browser.ui-draggable-dragging .media-toolbar,.attachments-browser.ui-draggable-dragging .uploader-inline,.attachments-browser.ui-draggable-dragging ul.attachments{display:none}.attachments.ui-sortable.ui-draggable-dragging{z-index:5000}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!important}.mCSB_outside+.mCSB_scrollTools{right:-15px!important}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}#footer-thankyou{display:none}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}span.upgrade-message a.pink span.dashicons,span.upgrade-message span.pink span.dashicons{width:16px;height:16px;font-size:16px;line-height:16px;vertical-align:middle}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop;pointer-events:none}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px;z-index:10001}html[dir=rtl] .wcp-hide-show-buttons{left:-20px;right:auto}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;display:inline-block;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:0 0;position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons{border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;-webkit-border-top-left-radius:50%;-webkit-border-bottom-left-radius:50%;-moz-border-radius-top-left:50%;-moz-border-radius-bottom-left:50%;border-top-left-radius:50%;border-bottom-left-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hide-folders-area .wcp-content{width:0!important}.hide-folders-area .wcp-container{display:none}.wcp-hide-show-buttons .toggle-buttons.active{display:block}#wcp-content.no-transition .wcp-container{display:none}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.tree-structure-content ul{margin:0;padding:0}.tree-structure-content{padding:5px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:solid 1px #ccc}.tree-structure-content .tree-structure{height:40px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px 0;display:none!important}span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.folder-popup-form.disabled{pointer-events:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center}.folder-form-buttons a.inline-button{display:inline-block;color:#f51366;text-decoration:none;font-weight:500}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover{color:#f51366}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}#custom-menu input.checkbox{display:none}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;outline:0}.folder-form-buttons a:focus{outline:0;outline:0}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px 0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-form-message{font-size:15px;line-height:20px;color:#4a5568;padding:25px 70px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-errors.active{display:block}span.folder-loader-ajax{margin:0;line-height:30px;display:none;vertical-align:middle}.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:30px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}.folder-loader-ajax img.active{display:inline-block}#successAnimation.animated{-webkit-animation:1s ease-out 0s 1 both scaleAnimation;animation:1s ease-out 0s 1 both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.popup-folder-title{font-weight:700;font-size:24px;padding:0 0 20px 0}.select-box{padding:20px 0 10px 0}.select-box select{width:100%;max-width:300px}.actions #media_folder,select.media-select-folder{width:132px}select#media-attachment-taxonomy-filter{width:132px}.custom-media-select{float:right;padding:10px 0 0 0;display:none}.custom-media-select.active{display:block}.folder-progress{background:#b4b9be;border-radius:4px;margin:5px 0 0 0;position:relative}.folder-meter{height:20px;position:relative;background:#f1f1f1;padding:0;width:0%;border-radius:4px;-webkit-transition:all .2s linear;transition:all .2s linear}.folder-meter>span{display:block;height:100%;-webkit-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);-moz-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden;border-radius:4px}.folder-animate>span>span,.folder-meter>span:after,.folder-progress:after{content:"";position:absolute;border-radius:4px;top:0;left:0;bottom:0;right:0;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,rgba(255,255,255,.2)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.2)),color-stop(.75,rgba(255,255,255,.2)),color-stop(.75,transparent),to(transparent));background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);z-index:1;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-webkit-animation:move 2s linear infinite;overflow:hidden}.folder-animate>span:after{display:none}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}.media-folder-loader{padding:10px 0 15px;display:none}.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:solid 1px #e9e5e5}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.sticky-folders.active{display:block}.sticky-folders ul{margin:0;padding:0}.sticky-folders>ul>li{display:block;margin:0;padding:0}.sticky-folders>ul>li>a{display:block;color:#333;padding:0 0 0 10px;border-radius:3px;text-decoration:none;font-size:14px;line-height:30px;position:relative}.sticky-folders ul li a.active,body:not(.no-hover-css) .sticky-folders ul li a:hover{background:#dfdfdf;border-radius:3px}.sticky-folders ul li a.active-item{background-color:#008ec2!important;color:#fff}.sticky-folders ul li a.active-item img{filter:invert(100%);-webkit-filter:invert(100%)}.sticky-folders>ul>li>a>span{display:inline-block;vertical-align:middle;line-height:30px}.sticky-folders ul li a span.update-inline-record{line-height:30px;padding:0 0 0 5px;height:30px}.sticky-folders ul li a span.folder-count{padding:0 8px 0 3px}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:0 0;padding:0;font-size:10px;line-height:16px;border-radius:2px}span.folder-count:empty{display:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}.sticky-title img{display:inline-block;vertical-align:middle;height:20px;width:20px}.sticky-folder-icon img{width:100%;filter:invert(50%);-webkit-filter:invert(50%)}.dynamic-menu .sticky-folder:hover img{filter:invert(0);-webkit-filter:invert(0)}.form-options>ul>li.last>a.sort-folder-order{padding:5px 10px;text-align:center;display:inline-block;box-sizing:border-box}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#fff}.folder-order{position:relative}.folder-sort-menu{position:absolute;left:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}.folder-sort-menu a.pro-feature span{display:inline-block;color:#ff5983;font-weight:500}.folder-order.active .folder-sort-menu{display:block}.folder-order.active .sort-folder-order{background:#404040;color:#fff}.folder-order.active .sort-folder-order svg{fill:#fff}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.dynamic-menu.bottom-fix{bottom:0}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px 0}.folder-group{position:relative;margin:25px auto 25px;padding:0 2px}.add-folder-note{padding:20px 0 0}.folder-grouptextarea{resize:none}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848}.folder-group input:focus,.folder-group textarea:focus{outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}.folder-group input:focus~.bar:before,.folder-group textarea:focus~.bar:before{width:320px}.folder-group input[type=password]{letter-spacing:.3em}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group .folder-bar:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#2196f3;-webkit-transition:.3s ease all;transition:.3s ease all;left:0}a#remove-folder-item{border:solid 1px #860000;background-color:#d40000;outline:0;box-shadow:none}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-],.sticky-folders i{font-size:12px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px;width:100%;outline:0;box-shadow:none!important}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.hide-folders-area .ui-resizable-handle.ui-resizable-e{display:none!important}.pull-right{float:right;display:block;line-height:22px}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px 0}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}body:not(.woocommerce-page) .wp-list-table th{width:auto}.popup-form-content .select-box{padding:30px 0}.popup-form-content .select-box select{width:100%;max-width:inherit}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}select#media-attachment-dynamic-filter{display:none!important}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}#custom-scroll-menu .mCSB_container{background:#fff}.folder-inline-tooltip span.pfolder-arrow-down{font-size:6px}@media screen and (max-width:960px){.wcp-content{left:36px}html[dir=rtl] .wcp-content{right:36px;left:auto}}@media screen and (max-width:780px){.wcp-content{left:0}html[dir=rtl] .wcp-content{right:0}}@media screen and (max-width:640px){.wcp-content{left:0;position:relative!important;width:100%!important;padding-bottom:100px;top:0;right:0;display:block}.ui-resizable-handle.ui-resizable-e{display:none!important}.hide-folders-area .wcp-container{display:block}.wcp-hide-show-buttons{display:none}.hide-folders-area .wcp-content{width:100%!important}body.wp-admin #wpcontent{padding:0!important}#wpbody-content{padding-bottom:30px}}
1
+ #custom-menu input.checkbox,#footer-thankyou,#wcp-content.no-transition .wcp-container,.attachments-browser.ui-draggable-dragging .media-sidebar,.attachments-browser.ui-draggable-dragging .media-toolbar,.attachments-browser.ui-draggable-dragging .uploader-inline,.attachments-browser.ui-draggable-dragging ul.attachments,.folder-animate>span:after,.folder-loader-ajax img,.has-sub-tree>ul.ui-sortable li,.hide-folders-area .wcp-container,.nav-icon,.wcp-form-data,span.folder-count:empty,span.wcp-item{display:none}#custom-menu .dynamic-menu ul>li>a .sticky-pin i,#custom-menu .wcp-icon{font-size:16px!important}.button-disabled,.folder-group label,.folder-popup-form.disabled{pointer-events:none}.folder-search-form input,.form-options>ul>li.last>a.sort-folder-order,.tree-structure .folder-view span.item-name,.wcp-content,.wcp-form-input{box-sizing:border-box;box-sizing:border-box}.wcp-custom-menu{padding-left:0;position:relative}.wcp-custom-menu a,.wcp-custom-menu a:focus{outline:0;box-shadow:none}.wcp-container ul{list-style:none}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat;text-align:center}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.wcp-container .first-title{margin-left:10px}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px;width:40px;top:30px;height:100%;z-index:1}.ui-resizable-handle.ui-resizable-e,.ui-resizable-handle.ui-resizable-w{height:100vh;top:0;border-right:1px solid #ccc;position:absolute;width:1px}.wcp-container .first-space{margin-left:0;top:0;padding:0}i.fa-caret-right{transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.route.active>.nav-icon>.folder-icon-arrow_right,.wcp-parent.active>i.fa-caret-right,li.active>span>i.fa-caret-right{transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg)}.wcp-parent.active>i.fa-folder:before,li.active>span>i.fa-folder:before{content:"\f07c"}#custom-menu.active>ul>li.route,.custom-media-select.active,.folder-form-errors.active,.folder-order.active .folder-sort-menu,.has-sub-tree.active>ul.ui-sortable>li,.has-sub-tree>.nav-icon,.sticky-folders.active,.tree-structure .folder-view:hover span.folder-option,.wcp-container .route.is-sticky .title .folder-sticky-icon,.wcp-hide-show-buttons .toggle-buttons.active,body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}.nav-icon{left:-10px!important;cursor:pointer}.wcp-content{position:fixed!important;top:32px;left:160px;bottom:0;width:280px;z-index:1;direction:ltr;transition:.15s linear;-webkit-transition:.15s linear;-moz-transition:.15s linear}body.add-folder-zindex .wcp-content{z-index:10000}html[dir=rtl] .wcp-content{left:auto;right:160px}body.folded .wcp-content{left:36px}html[dir=rtl] body.folded .wcp-content{left:auto;right:36px}body.wp-admin #wpcontent{padding-left:305px;transition:.15s linear;-webkit-transition:.15s linear;-moz-transition:.15s linear}html[dir=rtl] body.wp-admin #wpcontent{padding-left:0;padding-right:305px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px;line-height:29px;min-height:36px}.form-operations{border:1px solid #e5e5e5;border-right:none;margin-bottom:20px}.dynamic-menu ul,.form-operations ul,.form-options ul,.sticky-folders ul,.tree-structure-content ul{margin:0;padding:0}.form-operations li{display:block;float:left;width:20%;text-align:center;background:#fff;margin:0;padding:0}.form-operations li a{display:block;padding:10px 0;border-right:1px solid #e5e5e5;font-size:16px;color:#727272}.clearfix{clear:both}.folder-order,.wcp-container .folder-tooltip,.wcp-parent-data{position:relative}.wcp-parent{position:absolute;left:-21px;font-weight:700;font-size:14px}.wcp-parent .fa{font-size:18px;margin-right:8px}.wcp-form-data{background:#fff;border:1px solid #f1f1f1;padding:15px;margin-bottom:20px}.wcp-form-data .form-field,.wcp-form-title{padding:0 0 10px}.wcp-form-title{color:#727272;font-size:14px;text-transform:uppercase}.wcp-form-data .form-field input,.wcp-form-data .form-field select,.wcp-form-input input{width:100%}.plugin-button,button#wcp-save-folder{float:right}.wcp-form-message span{display:block;padding:5px 10px;background:#ffabab;margin-bottom:10px;color:#000;border:1px solid #8c0000;border-radius:4px}.wcp-container .route.active-item>h3.title{background:#008ec2;color:#fff;border-radius:4px}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}.route.active-item>span.ui-icon{background:#008ec2;color:#fff}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}span.folder-sticky-icon i{font-size:14px!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}#custom-menu.has-filter li.route,#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img,.hide-folders-area .ui-resizable-handle.ui-resizable-e,body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon,select#media-attachment-dynamic-filter{display:none!important}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}#custom-menu .route.active>h3.title .pfolder-folder-close:before{content:"\e902"}.route.is-sticky>h3.title>.ui-icon>.folder-sticky-icon{display:block;width:100%;height:auto;margin:3px auto 0}.route.is-sticky.active-item>h3.title>.ui-icon>.folder-sticky-icon,.sticky-folders ul li a.active-item img,.wcp-container .route .title.wcp-drop-hover img{filter:invert(100%);-webkit-filter:invert(100%)}.plugin-button.d-block{float:none}.plugin-title{display:inline-block;vertical-align:middle}.form-options>ul>li,.wcp-icon{vertical-align:top;display:inline-block}.add-new-folder{text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:1px solid #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder:focus,.add-new-folder:hover,.form-options>ul>li>a:hover span.icon,.route.is-high.active.active-item>.ui-icon>i:after,.route.is-high.active.active-item>.ui-icon>i:before,.wcp-hover-list a,button.button.organize-button:focus,button.button.organize-button:hover{color:#fff}.add-new-folder:hover:after,button.button.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:0 5px 5px;margin:0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.form-options .form-options{padding:0;background:0 0;box-shadow:none}.form-options>ul>li{margin:0 2px 0 0}.form-options>ul>li.last{margin:0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 7px;color:#000;vertical-align:middle;margin:0;background:#f1f1f1;border-radius:4px}.form-options>ul>li.last>a{padding:3px}a#expand-collapse-list.all-open span,html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons span{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.folder-order.active .sort-folder-order,.form-options>ul>li>a:hover{background:#404040;color:#fff}.form-options>ul>li>a.expand-collapse{text-align:center}.folder-inline-tooltip span.pfolder-arrow-down,.form-options a.expand-collapse span.icon{font-size:6px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.un-categorised-items{border-radius:3px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a,.un-categorised-items.active-item a span,.wcp-container .route.active-item>h3.title span.total-count,.wcp-drop-hover,.wcp-drop-hover i{color:#fff!important}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2!important;color:#fff!important}span.total-count{float:right;font-size:12px;line-height:16px}.wcp-icon{font-size:16px;margin-right:3px}#custom-menu .wcp-icon{line-height:24px}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:.25s linear}#custom-menu .route.active .nav-icon .wcp-icon,#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}.route.active>.ui-icon>.folder-icon-folder:before{content:"\e90c"}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.dynamic-menu{position:fixed;left:auto;right:5px;background:#fff;width:235px;padding:0;z-index:1000001;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25)}.wcp-drop-hover,li.active-menu{z-index:2!important}.sticky-folders .dynamic-menu{left:auto;right:50px}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu a{text-decoration:none;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:13px;color:#333}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:14px;text-align:center}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}.dynamic-menu ul>li>a>span span{top:auto;height:auto;width:auto;margin:0;left:auto;vertical-align:baseline;display:inline}.dynamic-menu li.new-folder,.dynamic-menu li.new-folder-pro{border-bottom:1px solid #d8d8d8}.dynamic-menu a.active,.dynamic-menu a:hover,.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.dynamic-menu ul li span{font-size:20px;vertical-align:middle}.dynamic-menu ul li span.sticky-folder-icon{width:20px}.dynamic-menu ul li span i{font-size:14px;line-height:16px;font-weight:400}.wcp-form-input{padding-left:35px;position:relative}.wcp-form-btn{padding:4px 0 4px 2px}.wcp-form-input:before{content:"\e90d";font-family:folder-icon!important;speak:none;position:absolute;left:0;font-size:28px;top:5px}.add-new-folder-btn{margin-right:5px!important}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:2.5s linear;-webkit-transition:2s linear;-moz-transition:2.5s linear}.route.is-high>.ui-icon>i:before{content:"\e900"!important}.route.is-high.active>.ui-icon>i:before{content:"\e90c"!important;z-index:11;color:#444;font-size:20px}.route.is-high.active>.ui-icon>i:after{content:"\e907";margin-left:-1.2em;color:#444;font-size:11px;top:1px;position:absolute}body.woocommerce-page th#taxonomy-product_folder{width:10%!important}.wp-list-table th.column-title{width:22%!important}.wp-list-table #wcp_move{width:20px!important}td.wcp_move.column-wcp_move{vertical-align:middle}.wp-list-table tr td .wcp-move-file{vertical-align:middle;opacity:0}.wp-list-table td.wcp_move.column-wcp_move.wcp-draggable,.wp-list-table tr:hover td .wcp-move-file{opacity:1}.wcp-drop-hover{background:#fa166b!important}.ui-draggable-dragging{z-index:1051!important}.wcp-hover-list{background:#fa166b!important;color:#fff;position:relative}.wcp-hover-list span.total-count{color:#000}.wcp-move-file{cursor:move}.wcp-drop-hover-list a.folder-view{background:#008ec2;color:#fff;border:1px solid #fff;position:relative}.wcp-drop-hover-list a.folder-view:before{width:100%;height:100%;content:"";position:absolute;top:-2px;left:-2px;border:1px solid #008ec2;padding:1px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}.ui-draggable-dragging.wcp-move-file{z-index:5001;display:inline-block;border:2px solid #0073aa;padding:5px 10px;border-radius:5px;background:#e4f6ff;position:fixed!important;max-width:230px;overflow:hidden;width:auto!important}.ui-draggable-dragging.wcp-move-file span{display:block;float:left}.ui-draggable-dragging.wcp-move-file span.wcp-move{margin-right:5px;display:block;float:left}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 100px);overflow:hidden;white-space:nowrap;text-align:left}.ui-resizable-handle.ui-resizable-e{right:0;cursor:col-resize}.ui-resizable-handle.ui-resizable-e:before,.ui-resizable-handle.ui-resizable-w:before{content:"";top:25%;width:3px;height:30px;position:absolute;border-left:1px solid #fa166b;border-right:1px solid #fa166b;left:-1px}.ui-resizable-handle.ui-resizable-w{left:0;cursor:col-resize}div#custom-menu{padding:0 10px 10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}.tree-structure li{display:block;width:auto;float:left;margin:0;padding:0;position:relative}.tree-structure .folder-item{padding:4px;position:relative}.tree-structure .folder-view{display:block;border:none;color:#404040;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;position:relative;cursor:pointer;background:#f1f1f1;font-size:14px;line-height:16px}.tree-structure .folder-view span.item-name{display:block;padding:8px 15px 8px 30px;position:relative;width:100%;overflow:hidden;height:32px;font-size:14px}.folder-view span.item-name:before{content:"\e906";font-family:premio-folder!important;position:absolute;left:8px;font-size:16px;color:#a4c0d2}.folder-view.is-high span.item-name:before{content:"\e900"}.folder-view.is-post span.item-name:before{content:"\e901"}.tree-structure span.folder-option{position:absolute;right:0;font-family:folder-icon!important;top:0;font-size:20px;line-height:38px;z-index:1;cursor:pointer;display:none}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover,.tree-structure span.folder-option:hover{color:#f51366}.tree-structure span.folder-option:after{content:"\e90a"}.tree-structure{margin-left:-8px;margin-right:-8px}.tree-structure .folder-view span.folder-title{width:100%;display:block}.swal2-popup .swal2-title{line-height:36px}.attachments.ui-sortable.ui-draggable-dragging{z-index:5000}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!important}.mCSB_outside+.mCSB_scrollTools{right:-15px!important}body.upload-php.eml-grid #wpbody{position:relative!important;top:0!important;bottom:auto!important;left:auto!important;right:auto!important;height:auto}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}span.upgrade-message a.pink span.dashicons,span.upgrade-message span.pink span.dashicons{width:16px;height:16px;font-size:16px;line-height:16px;vertical-align:middle}.media-toolbar.sticky-media{position:fixed;top:32px;right:18px!important;left:auto}.media-position{width:1px;height:1px}.media-frame.mode-grid .media-toolbar{margin:0!important}.button-disabled{cursor:no-drop}.wcp-hide-show-buttons{position:absolute;top:25px;right:-20px;z-index:10001}html[dir=rtl] .wcp-hide-show-buttons{left:-20px;right:auto}.wcp-hide-show-buttons .toggle-buttons{background:#f51366;color:#fff;margin:0;padding:0;float:left;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%;display:none;width:20px;height:20px;cursor:pointer;position:relative}.wcp-hide-show-buttons:hover .toggle-buttons:after{content:"";width:100%;height:100%;background:0 0;position:absolute;top:0;left:0;-webkit-border-top-right-radius:50%;-webkit-border-bottom-right-radius:50%;-moz-border-radius-topright:50%;-moz-border-radius-bottomright:50%;border-top-right-radius:50%;border-bottom-right-radius:50%}html[dir=rtl] .wcp-hide-show-buttons .toggle-buttons{border-radius:50% 0 0 50%;-webkit-border-radius:0;-moz-border-radius:0;-webkit-border-top-left-radius:50%;-webkit-border-bottom-left-radius:50%;-moz-border-radius-top-left:50%;-moz-border-radius-bottom-left:50%}.hide-folders-area .wcp-content{width:0!important}button.button.organize-button{vertical-align:middle;text-decoration:none;display:inline-block;font-size:14px;padding:4px 10px;background:#f51366;color:#fff;border:1px solid #f51366;border-radius:3px;line-height:14px;-webkit-box-shadow:0 3px 5px -3px #333;-moz-box-shadow:0 3px 5px -3px #333;box-shadow:0 3px 5px -3px #333;position:relative}.tree-structure-content{padding:5px 10px;background:#fff;margin:10px 0 15px;border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;border:1px solid #ccc}.tree-structure-content .tree-structure{height:40px;overflow:hidden;transition:.1s;-webkit-transition:.1s;-moz-transition:.1s}.tree-structure-content.active .tree-structure{height:auto}.folders-toggle-button{height:15px;text-align:center;position:relative}.folders-toggle-button span{background:#f51366;color:#fff;height:20px;width:30px;text-align:center;display:block;margin:0 auto;position:absolute;left:0;right:0;bottom:-10px;cursor:pointer;font-family:dashicons;font-size:20px;line-height:20px}.folders-toggle-button span:after{content:"\f347"}.tree-structure-content.active .folders-toggle-button span:after{content:"\f343"}span.media-info-message{vertical-align:middle;line-height:20px;font-weight:700;color:#f51366;padding:0 0 10px;display:none!important}#custom-menu.has-filter li.route.has-search,span.media-info-message.active{display:block!important}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:1px solid #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center}.folder-form-buttons a.inline-button{display:inline-block;color:#f51366;text-decoration:none;font-weight:500}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:.75s linear infinite fa-spin;animation:.75s linear infinite fa-spin;padding:7px}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.wp-core-ui .button-primary.select-all-item-btn{margin:11px 11px 11px 0;display:none!important}.wp-core-ui .button-primary.select-all-item-btn.active{display:inline-block!important}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a:focus,.folder-form-buttons a:hover,.folder-form-buttons button:focus,.folder-form-buttons button:hover{color:#fff;outline:0}.folder-form-buttons a:focus,.folder-group input:focus,.folder-group textarea:focus{outline:0}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-form-message{font-size:15px;line-height:20px;color:#4a5568;padding:25px 70px}.folder-form-errors{margin:0 0 10px;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}span.folder-loader-ajax{margin:0;line-height:30px;display:none;vertical-align:middle}#successAnimation.active,.folder-loader-ajax img.active,.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:30px;height:34px;padding:0;display:none;float:left}#successAnimation.animated{-webkit-animation:1s ease-out both scaleAnimation;animation:1s ease-out both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) both drawCircle,.3s linear .9s both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) both drawCircle,.3s linear .9s both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) both drawCheck,.3s linear .9s both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) both drawCheck,.3s linear .9s both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.popup-folder-title{font-weight:700;font-size:24px;padding:0 0 20px}.select-box{padding:20px 0 10px}.select-box select{width:100%;max-width:300px}.actions #media_folder,select#media-attachment-taxonomy-filter,select.media-select-folder{width:132px}.custom-media-select{float:right;padding:10px 0 0;display:none}.folder-progress{background:#b4b9be;border-radius:4px;margin:5px 0 0;position:relative}.folder-meter{height:20px;position:relative;background:#f1f1f1;padding:0;width:0%;border-radius:4px;-webkit-transition:.2s linear;transition:.2s linear}.folder-meter>span{display:block;height:100%;-webkit-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);-moz-box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);box-shadow:inset 0 2px 9px rgba(255,255,255,.3),inset 0 -2px 6px rgba(0,0,0,.4);position:relative;overflow:hidden;border-radius:4px}.folder-animate>span>span,.folder-meter>span:after,.folder-progress:after{content:"";position:absolute;border-radius:4px;top:0;left:0;bottom:0;right:0;background-image:-webkit-gradient(linear,0 0,100% 100%,color-stop(.25,rgba(255,255,255,.2)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.2)),color-stop(.75,rgba(255,255,255,.2)),color-stop(.75,transparent),to(transparent));background-image:-moz-linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);z-index:1;-webkit-background-size:50px 50px;-moz-background-size:50px 50px;-webkit-animation:2s linear infinite move;overflow:hidden}@-webkit-keyframes move{0%{background-position:0 0}100%{background-position:50px 50px}}.media-folder-loader{padding:10px 0 15px;display:none}#custom-menu.has-filter h3 span.title-text.has-search-text,.media-folder-loader>span{font-weight:700}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:1px solid #e9e5e5}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.sticky-folders>ul>li{display:block;margin:0;padding:0}.sticky-folders>ul>li>a{display:block;color:#333;padding:0 0 0 10px;border-radius:3px;text-decoration:none;font-size:14px;line-height:30px;position:relative}.sticky-folders ul li a.active,body:not(.no-hover-css) .sticky-folders ul li a:hover{background:#dfdfdf;border-radius:3px}.sticky-folders ul li a.active-item{background-color:#008ec2!important;color:#fff}.sticky-folders>ul>li>a>span{display:inline-block;vertical-align:middle;line-height:30px}.sticky-folders ul li a span.update-inline-record{line-height:30px;padding:0 0 0 5px;height:30px}.sticky-folders ul li a span.folder-count{padding:0 8px 0 3px}.sticky-wcp-custom-form a:focus{box-shadow:none;outline:0}span.folder-count{float:right;background:0 0;padding:0;font-size:10px;line-height:16px;border-radius:2px}.sticky-title{font-size:16px;font-weight:700;padding:7px}.sticky-title img{display:inline-block;vertical-align:middle;height:20px;width:20px}.sticky-folder-icon img{width:100%;filter:invert(50%);-webkit-filter:invert(50%)}.dynamic-menu .sticky-folder:hover img{filter:invert(0%);-webkit-filter:invert(0%)}.form-options>ul>li.last>a.sort-folder-order{padding:5px 10px;text-align:center;display:inline-block}.sort-folder-order svg{width:100%;height:100%;fill:#000}.sort-folder-order:hover svg{fill:#ffffff}.folder-sort-menu{position:absolute;left:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}.folder-sort-menu a.pro-feature span{display:inline-block;color:#ff5983;font-weight:500}.folder-order.active .sort-folder-order svg{fill:#fff}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.dynamic-menu.bottom-fix{bottom:0}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px}.folder-group{position:relative;margin:25px auto;padding:0 2px}.add-folder-note{padding:20px 0 0}.folder-grouptextarea{resize:none}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}.folder-group input:focus~.bar:before,.folder-group textarea:focus~.bar:before{width:320px}.folder-group input[type=password]{letter-spacing:.3em}.folder-group label{font-size:14px;font-weight:500;position:absolute;left:20px;top:10px;-webkit-transition:.3s;transition:.3s;color:#484848}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group .folder-bar:before{content:'';height:2px;width:0;bottom:0;position:absolute;background:#2196f3;-webkit-transition:.3s;transition:.3s;left:0}a#remove-folder-item{border:1px solid #860000;background-color:#d40000;outline:0;box-shadow:none}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-],.sticky-folders i{font-size:12px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.folder-search-form{padding:0 0 10px;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb;border-radius:4px;height:32px;line-height:32px;padding:0 5px;width:100%;outline:0;box-shadow:none!important}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px}.pull-right{float:right;display:block;line-height:22px}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}body:not(.woocommerce-page) .wp-list-table th{width:auto}.popup-form-content .select-box{padding:30px 0}.popup-form-content .select-box select{width:100%;max-width:inherit}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}#custom-scroll-menu .mCSB_container{background:#fff}@media screen and (max-width:960px){.wcp-content{left:36px}html[dir=rtl] .wcp-content{right:36px;left:auto}}@media screen and (max-width:780px){.wcp-content{left:0}html[dir=rtl] .wcp-content{right:0}}@media screen and (max-width:640px){.hide-folders-area .wcp-content,.wcp-content{width:100%!important}.wcp-content{left:0;position:relative!important;padding-bottom:100px;top:0;right:0;display:block}.ui-resizable-handle.ui-resizable-e{display:none!important}.hide-folders-area .wcp-container{display:block}.wcp-hide-show-buttons{display:none}body.wp-admin #wpcontent{padding:0!important}#wpbody-content{padding-bottom:30px}}
assets/css/folders.css CHANGED
@@ -655,4 +655,26 @@ span.dashicons.dashicons-cloud-upload {
655
  font-size: 14px;
656
  display: inline-block;
657
  vertical-align: middle;
658
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
  font-size: 14px;
656
  display: inline-block;
657
  vertical-align: middle;
658
+ }
659
+ .os-content {
660
+ background: #ffffff;
661
+ }
662
+ .custom-scroll-menu.hor-scroll .horizontal-scroll-menu {
663
+ width: fit-content;
664
+ background: #fff;
665
+ min-width: 100%;
666
+ }
667
+ .custom-scroll-menu.hor-scroll .jstree-default .jstree-anchor {
668
+ width: auto;
669
+ min-width: calc(100% - 24px);
670
+ }
671
+ .os-viewport {
672
+ background: #ffffff;
673
+ }
674
+ .custom-scroll-menu.hor-scroll .horizontal-scroll-menu .folder-actions {
675
+ background: #ffffff;
676
+ padding: 0 15px 0 4px;
677
+ }
678
+ .custom-scroll-menu.hor-scroll .horizontal-scroll-menu .folder-actions {
679
+
680
+ }
assets/css/folders.min.css CHANGED
@@ -1 +1 @@
1
- #custom-scroll-menu a,#custom-scroll-menu a:focus,#custom-scroll-menu a:hover{text-decoration:none;color:#333;outline:0;box-shadow:none}#js-tree-menu{padding:0 10px 10px 0;background:#fff}.pfolder-folder-close{font-size:16px;color:#334155}.jstree-clicked>.pfolder-folder-close{color:#fff}.jstree-open>a>.pfolder-folder-close:before{content:"\e903"}#dynamic-folders>a>i.pfolder-folder-close:before{content:"\e900"!important}span.folder-actions{position:absolute;right:4px}.folder-actions span i{font-size:10px;width:16px;text-align:center}.folder-actions span{width:0;overflow:hidden;height:30px;line-height:30px;transition:all .2s linear;display:inline-block;font-size:10px;text-align:center}.folder-actions span.premio-folder-count{width:auto}a.jstree-anchor:hover span.folder-inline-edit{width:20px}#jstree-dnd{background-color:#cecece;border-radius:3px;display:block;height:32px;line-height:32px;margin:0;opacity:.8;overflow:hidden;padding:0 10px 0 40px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:260px}#jstree-dnd .jstree-icon{top:6px;background-position:50%;background-repeat:no-repeat;background-size:contain;height:20px;width:20px;display:none}#js-tree-menu .folder-checkbox{display:none}#js-tree-menu.show-folder-checkbox .folder-checkbox{display:inline-block}#js-tree-menu.show-folder-checkbox .pfolder-folder-close{display:none}li.jstree-node.is-high>a .star-icon{width:16px;text-align:center;color:#ffc90e}li.jstree-node.is-sticky>a .sticky-icon{width:16px;text-align:center}li.jstree-node.is-sticky>a .sticky-icon i{font-size:12px}li.jstree-node .jstree-hovered .star-icon,li.jstree-node .jstree-hovered .sticky-icon{width:0!important}.js-tree-data{display:none}.cssload-container{width:100%;height:49px;text-align:center}.cssload-tube-tunnel{width:49px;height:49px;margin:0 auto;border:4px solid;border-radius:50%;border-color:#ccc;animation:cssload-scale 1035ms infinite linear;-o-animation:cssload-scale 1035ms infinite linear;-ms-animation:cssload-scale 1035ms infinite linear;-webkit-animation:cssload-scale 1035ms infinite linear;-moz-animation:cssload-scale 1035ms infinite linear}.ajax-preloader{padding:50px 0}@keyframes cssload-scale{0%{transform:scale(0);transform:scale(0)}90%{transform:scale(.7);transform:scale(.7)}100%{transform:scale(1);transform:scale(1)}}@-o-keyframes cssload-scale{0%{-o-transform:scale(0);transform:scale(0)}90%{-o-transform:scale(.7);transform:scale(.7)}100%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes cssload-scale{0%{-ms-transform:scale(0);transform:scale(0)}90%{-ms-transform:scale(.7);transform:scale(.7)}100%{-ms-transform:scale(1);transform:scale(1)}}@-webkit-keyframes cssload-scale{0%{-webkit-transform:scale(0);transform:scale(0)}90%{-webkit-transform:scale(.7);transform:scale(.7)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes cssload-scale{0%{-moz-transform:scale(0);transform:scale(0)}90%{-moz-transform:scale(.7);transform:scale(.7)}100%{-moz-transform:scale(1);transform:scale(1)}}.sticky-folders>ul>li>a>span.folder-actions>span{transition:all .25s linear}.sticky-folders>ul>li>a:hover .star-icon{width:0!important}.sticky-folders>ul>li>a:hover .folder-inline-edit{width:16px!important;text-align:center}.sticky-folders li.is-high a span.star-icon{width:16px;text-align:center;color:#ffc90e}.folder-menu-content .cssload-container{margin:100px 0 0 0}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px;z-index:100001}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.close-popup-button a:hover span{transform:rotate(180deg)}.popup-form-data{position:relative}.dynamic-tree-data{display:none;padding:5px 0 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox{display:none!important}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:all .25s linear;z-index:1001;border-left:solid 3px #1da1f4}.folders-undo-notification.success{border-left:solid 3px #70c6a3}.folders-undo-notification.active{right:25px}.folders-undo-notification.no{border-left:solid 3px #fc5050}html[dir=rtl] .folders-undo-notification{right:auto;left:-500px;border-left:none;border-right:solid 3px #1da1f4}html[dir=rtl] .folders-undo-notification.active{left:25px}html[dir=rtl] .close-undo-box{right:auto;left:-10px}html[dir=rtl] .folders-undo-notification.success{border-right:solid 3px #70c6a3}html[dir=rtl] .folders-undo-notification.no{border-right:solid 3px #fc5050}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px 0}.folders-undo-body{font-size:13px;padding:0 0 5px 0}.folders-undo-footer{text-align:right;padding:5px 0 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folders-undo-body{position:relative}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:all .25s linear}.close-undo-box:hover{transform:rotate(180deg)}.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-undo-box span:after,.close-undo-box span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-undo-box span:after{transform:rotate(-45deg)}body.mobile .jstree-anchor span.folder-inline-edit{width:20px}body.mobile .wp-list-table tr td .wcp-move-file{opacity:1}.folders-action-menu>ul{margin:0;padding:0;display:flex}.folders-action-menu>ul>li{display:inline-block;margin:0;padding:5px 0 10px;flex:1}.folders-action-menu>ul>li>a:not(.no-bg),.folders-action-menu>ul>li>label{background:#f1f1f1;display:block;width:28px;height:28px;line-height:30px;text-align:center;text-decoration:none;border-radius:4px;color:#a4c0d2;margin:0 auto;font-size:14px}.folders-action-menu>ul>li>a.no-bg{text-align:center;display:block;line-height:30px}.folders-action-menu>ul>li>a.disabled,.folders-action-menu>ul>li>label.disabled{background:#f1f5f9;color:#e2e8f0}.folders-action-menu>ul>li>a:not(.disabled):hover,.folders-action-menu>ul>li>label:not(.disabled):hover{color:#fa166b}.folder-settings-btn{position:relative}.folder-setting-menu{position:absolute;z-index:11;right:-5px;top:100%;width:230px;background:#fff;border-radius:0;border:solid 1px #e9e5e5;margin-top:10px;-webkit-box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);-moz-box-shadow:0 0 8px 0 rgba(0,0,0,.25);box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);display:none}.folder-settings-btn.active .folder-setting-menu{display:block}.folder-setting-menu:before{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #fff;top:-5px;right:10px;content:"";position:absolute}.folder-setting-menu li{display:block;margin:0;padding:2px 0}.folder-setting-menu li a,.folder-setting-menu li label{text-decoration:none;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:14px;color:#7d7d7e}body.folded .wcp-content{left:36px!important}html[dir=rtl] body.folded .wcp-content{left:auto!important;right:36px!important}.sr-only{position:absolute;width:1px!important;height:1px!important;padding:0!important;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0!important}span.setting-checkbox{display:block;background:#ababab;height:18px;width:34px;float:right;border-radius:9px;color:#fff;position:relative}span.setting-checkbox:before{content:"";height:14px;width:14px;background:#fff;border-radius:50%;position:absolute;left:2px;top:2px;transition:all .15s linear}span.setting-checkbox:after{content:"off";position:absolute;width:28px;text-align:right;top:0;left:2px;font-size:10px;line-height:16px}input:checked+span.setting-checkbox{background:#1da1f4}input:checked+span.setting-checkbox:before{left:18px}input:checked+span.setting-checkbox:after{text-align:left;content:"on";padding:0 0 0 1px}.folder-setting-menu .dashicons{font-size:16px;display:inline-block}span.dashicons.dashicons-cloud-upload{line-height:28px}.dynamic-menu li.remove-folder a,.dynamic-menu li.remove-folder a:hover,.dynamic-menu li.remove-folder a:hover span i{color:#f24141}.media-toolbar.media-toolbar-mode-select .custom-media-select{display:block!important}.wcp-container .folders-action-menu .folder-tooltip.full-width:after{width:180px;white-space:inherit;line-height:18px}.wcp-container .folders-action-menu .folder-tooltip.full:after{width:114px;white-space:inherit;line-height:18px}.folder-inline-tooltip{position:relative}.folder-inline-tooltip span.inline-tooltip{position:absolute;width:180px;left:-83px;text-align:center;background:#333;padding:5px;color:#fff;font-size:.9em;bottom:46px;z-index:101;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:none;line-height:18px}.folder-inline-tooltip:hover span.inline-tooltip{display:block}.folder-inline-tooltip span.inline-tooltip:after{content:'';position:absolute;left:50%;top:100%;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid #333;clear:both}.folder-inline-tooltip span.inline-tooltip span{display:block;text-decoration:underline}.folder-inline-tooltip.cut-folder-action span.inline-tooltip{width:124px;left:-55px}.pro-notice{padding:0 0 0 10px}.form-options2>ul>li{padding:5px 0 0 0}.folders-action-menu>ul>li>a>.dashicons{font-size:16px;width:auto;height:auto;line-height:28px}.checkbox-content{padding:0 0 15px 0}.folder-inline-tooltip.expand-collapse span.inline-tooltip{left:-5px;width:130px;bottom:38px}.folder-inline-tooltip.expand-collapse span.inline-tooltip:after{left:14px}.folder-inline-tooltip span.pfolder-arrow-down{font-size:8px!important}.form-options>ul{display:inline-flex;vertical-align:middle;flex:0 0 65px}.form-options>.upgrade-message{text-align:right;padding:4px 0 0 0;flex:1}.form-options.form-options2{display:flex;align-items:center;padding:0 5px 5px 5px}.folders-action-menu{width:100%;max-width:224px}.dynamic-menu li.new-folder,.dynamic-menu li.new-folder-pro{border-bottom:solid 1px #d8d8d8}.view-shortcodes{display:inline-block;text-decoration:none;color:#3c434a;vertical-align:super}.view-shortcodes svg{width:16px;display:inline-block;height:auto}.wcp-container .folder-tooltip.view-shortcodes:after{top:36px!important;bottom:auto!important;font-size:10px!important}.wcp-container .folder-tooltip.view-shortcodes:before{top:26px!important;bottom:auto!important;transform:rotate(180deg)!important;margin-left:-5px!important}.keyboard-shortcut{width:100%}.keyboard-shortcut tr td,.keyboard-shortcut tr th{padding:8px 0;vertical-align:middle;text-align:left;font-weight:400}.keyboard-shortcut tr td{text-align:right;vertical-align:middle}.keyboard-shortcut tr td span:not(.dashicons){display:inline-block;padding:2px 5px}.keyboard-shortcut tr td span.key-button{padding:2px 8px;background:#eaeaea;border-radius:2px}.keyboard-shortcut tr td span.dashicons{width:auto;height:auto;font-size:14px;display:inline-block;vertical-align:middle}
1
+ .close-undo-box,.sticky-folders>ul>li>a>span.folder-actions>span{transition:.25s linear}#custom-scroll-menu a,#custom-scroll-menu a:focus,#custom-scroll-menu a:hover{text-decoration:none;color:#333;outline:0;box-shadow:none}#js-tree-menu{padding:0 10px 10px 0;background:#fff}.pfolder-folder-close{font-size:16px;color:#334155}.jstree-clicked>.pfolder-folder-close{color:#fff}.jstree-open>a>.pfolder-folder-close:before{content:"\e903"}#dynamic-folders>a>i.pfolder-folder-close:before{content:"\e900"!important}span.folder-actions{position:absolute;right:4px}.folder-actions span i{font-size:10px;width:16px;text-align:center}.folder-actions span{width:0;overflow:hidden;height:30px;line-height:30px;transition:.2s linear;display:inline-block;font-size:10px;text-align:center}.folder-actions span.premio-folder-count{width:auto}a.jstree-anchor:hover span.folder-inline-edit,body.mobile .jstree-anchor span.folder-inline-edit{width:20px}#jstree-dnd{background-color:#cecece;border-radius:3px;display:block;height:32px;line-height:32px;margin:0;opacity:.8;overflow:hidden;padding:0 10px 0 40px;-o-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;width:260px}#jstree-dnd .jstree-icon{top:6px;background-position:50%;background-repeat:no-repeat;background-size:contain;height:20px;width:20px;display:none}#js-tree-menu .folder-checkbox,#js-tree-menu.show-folder-checkbox .pfolder-folder-close,.js-tree-data{display:none}#js-tree-menu.show-folder-checkbox .folder-checkbox{display:inline-block}.sticky-folders li.is-high a span.star-icon,li.jstree-node.is-high>a .star-icon{width:16px;text-align:center;color:#ffc90e}li.jstree-node.is-sticky>a .sticky-icon{width:16px;text-align:center}li.jstree-node.is-sticky>a .sticky-icon i{font-size:12px}.sticky-folders>ul>li>a:hover .star-icon,li.jstree-node .jstree-hovered .star-icon,li.jstree-node .jstree-hovered .sticky-icon{width:0!important}.cssload-container{width:100%;height:49px;text-align:center}.cssload-tube-tunnel{width:49px;height:49px;margin:0 auto;border:4px solid #ccc;border-radius:50%;animation:1035ms linear infinite cssload-scale;-o-animation:1035ms linear infinite cssload-scale;-ms-animation:cssload-scale 1035ms infinite linear;-webkit-animation:1035ms linear infinite cssload-scale;-moz-animation:1035ms linear infinite cssload-scale}.ajax-preloader{padding:50px 0}@keyframes cssload-scale{0%{transform:scale(0)}90%{transform:scale(.7)}100%{transform:scale(1)}}@-o-keyframes cssload-scale{0%{-o-transform:scale(0);transform:scale(0)}90%{-o-transform:scale(.7);transform:scale(.7)}100%{-o-transform:scale(1);transform:scale(1)}}@-ms-keyframes cssload-scale{0%{-ms-transform:scale(0);transform:scale(0)}90%{-ms-transform:scale(.7);transform:scale(.7)}100%{-ms-transform:scale(1);transform:scale(1)}}@-webkit-keyframes cssload-scale{0%{-webkit-transform:scale(0);transform:scale(0)}90%{-webkit-transform:scale(.7);transform:scale(.7)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-moz-keyframes cssload-scale{0%{-moz-transform:scale(0);transform:scale(0)}90%{-moz-transform:scale(.7);transform:scale(.7)}100%{-moz-transform:scale(1);transform:scale(1)}}.sticky-folders>ul>li>a:hover .folder-inline-edit{width:16px!important;text-align:center}.folder-menu-content .cssload-container{margin:100px 0 0}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px;z-index:100001}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span,.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:.2s linear}.close-popup-button a span:after,.close-popup-button a span:before,.close-undo-box span:after,.close-undo-box span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after,.close-undo-box span:after{transform:rotate(-45deg)}.close-popup-button a:hover span,.close-undo-box:hover{transform:rotate(180deg)}.folder-inline-tooltip,.folder-settings-btn,.popup-form-data{position:relative}.dynamic-tree-data{display:none;padding:5px 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox{display:none!important}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:.25s linear;z-index:1001;border-left:3px solid #1da1f4}.folders-undo-notification.success{border-left:3px solid #70c6a3}.folders-undo-notification.active{right:25px}.folders-undo-notification.no{border-left:3px solid #fc5050}html[dir=rtl] .folders-undo-notification{right:auto;left:-500px;border-left:none;border-right:3px solid #1da1f4}html[dir=rtl] .folders-undo-notification.active{left:25px}html[dir=rtl] .close-undo-box{right:auto;left:-10px}html[dir=rtl] .folders-undo-notification.success{border-right:3px solid #70c6a3}html[dir=rtl] .folders-undo-notification.no{border-right:3px solid #fc5050}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px}.folders-undo-body{font-size:13px;padding:0 0 5px;position:relative}.folders-undo-footer{text-align:right;padding:5px 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folder-inline-tooltip span.inline-tooltip:after,.folder-setting-menu:before{position:absolute;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px}body.mobile .wp-list-table tr td .wcp-move-file{opacity:1}.folders-action-menu>ul{margin:0;padding:0;display:flex}.folders-action-menu>ul>li{display:inline-block;margin:0;padding:5px 0 10px;flex:1}.folders-action-menu>ul>li>a:not(.no-bg),.folders-action-menu>ul>li>label{background:#f1f1f1;display:block;width:28px;height:28px;line-height:30px;text-align:center;text-decoration:none;border-radius:4px;color:#a4c0d2;margin:0 auto;font-size:14px}.folders-action-menu>ul>li>a.no-bg{text-align:center;display:block;line-height:30px}.folders-action-menu>ul>li>a.disabled,.folders-action-menu>ul>li>label.disabled{background:#f1f5f9;color:#e2e8f0}.folders-action-menu>ul>li>a:not(.disabled):hover,.folders-action-menu>ul>li>label:not(.disabled):hover{color:#fa166b}.folder-setting-menu{position:absolute;z-index:11;right:-5px;top:100%;width:230px;background:#fff;border-radius:0;border:1px solid #e9e5e5;margin-top:10px;-webkit-box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);-moz-box-shadow:0 0 8px 0 rgba(0,0,0,.25);box-shadow:0 0 8px 0 rgb(0 0 0 / 25%);display:none}.folder-inline-tooltip:hover span.inline-tooltip,.folder-settings-btn.active .folder-setting-menu{display:block}.folder-setting-menu:before{border-bottom:5px solid #fff;top:-5px;right:10px;content:""}.folder-setting-menu li{display:block;margin:0;padding:2px 0}.folder-setting-menu li a,.folder-setting-menu li label{text-decoration:none;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-size:14px;color:#7d7d7e}body.folded .wcp-content{left:36px!important}html[dir=rtl] body.folded .wcp-content{left:auto!important;right:36px!important}.sr-only{position:absolute;width:1px!important;height:1px!important;padding:0!important;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0!important}span.setting-checkbox{display:block;background:#ababab;height:18px;width:34px;float:right;border-radius:9px;color:#fff;position:relative}span.setting-checkbox:before{content:"";height:14px;width:14px;background:#fff;border-radius:50%;position:absolute;left:2px;top:2px;transition:.15s linear}span.setting-checkbox:after{content:"off";position:absolute;width:28px;text-align:right;top:0;left:2px;font-size:10px;line-height:16px}input:checked+span.setting-checkbox{background:#1da1f4}input:checked+span.setting-checkbox:before{left:18px}input:checked+span.setting-checkbox:after{text-align:left;content:"on";padding:0 0 0 1px}.folder-setting-menu .dashicons{font-size:16px;display:inline-block}span.dashicons.dashicons-cloud-upload{line-height:28px}.dynamic-menu li.remove-folder a,.dynamic-menu li.remove-folder a:hover,.dynamic-menu li.remove-folder a:hover span i{color:#f24141}.media-toolbar.media-toolbar-mode-select .custom-media-select{display:block!important}.wcp-container .folders-action-menu .folder-tooltip.full-width:after{width:180px;white-space:inherit;line-height:18px}.wcp-container .folders-action-menu .folder-tooltip.full:after{width:114px;white-space:inherit;line-height:18px}.folder-inline-tooltip span.inline-tooltip{position:absolute;width:180px;left:-83px;text-align:center;background:#333;padding:5px;color:#fff;font-size:.9em;bottom:46px;z-index:101;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;display:none;line-height:18px}.folder-inline-tooltip span.inline-tooltip:after{content:'';left:50%;top:100%;border-top:5px solid #333;clear:both}.folder-inline-tooltip span.inline-tooltip span{display:block;text-decoration:underline}.folder-inline-tooltip.cut-folder-action span.inline-tooltip{width:124px;left:-55px}.pro-notice{padding:0 0 0 10px}.form-options2>ul>li{padding:5px 0 0}.folders-action-menu>ul>li>a>.dashicons{font-size:16px;width:auto;height:auto;line-height:28px}.checkbox-content{padding:0 0 15px}.folder-inline-tooltip.expand-collapse span.inline-tooltip{left:-5px;width:130px;bottom:38px}.folder-inline-tooltip.expand-collapse span.inline-tooltip:after{left:14px}.folder-inline-tooltip span.pfolder-arrow-down{font-size:8px!important}.form-options>ul{display:inline-flex;vertical-align:middle;flex:0 0 65px}.form-options>.upgrade-message{text-align:right;padding:4px 0 0;flex:1}.form-options.form-options2{display:flex;align-items:center;padding:0 5px 5px}.folders-action-menu{width:100%;max-width:224px}.dynamic-menu li.new-folder,.dynamic-menu li.new-folder-pro{border-bottom:1px solid #d8d8d8}.view-shortcodes{display:inline-block;text-decoration:none;color:#3c434a;vertical-align:super}.view-shortcodes svg{width:16px;display:inline-block;height:auto}.wcp-container .folder-tooltip.view-shortcodes:after{top:36px!important;bottom:auto!important;font-size:10px!important}.wcp-container .folder-tooltip.view-shortcodes:before{top:26px!important;bottom:auto!important;transform:rotate(180deg)!important;margin-left:-5px!important}.keyboard-shortcut{width:100%}.keyboard-shortcut tr td,.keyboard-shortcut tr th{padding:8px 0;vertical-align:middle;text-align:left;font-weight:400}.keyboard-shortcut tr td{text-align:right;vertical-align:middle}.keyboard-shortcut tr td span:not(.dashicons){display:inline-block;padding:2px 5px}.keyboard-shortcut tr td span.key-button{padding:2px 8px;background:#eaeaea;border-radius:2px}.keyboard-shortcut tr td span.dashicons{width:auto;height:auto;font-size:14px;display:inline-block;vertical-align:middle}.os-content,.os-viewport{background:#fff}.custom-scroll-menu.hor-scroll .horizontal-scroll-menu{width:fit-content;background:#fff;min-width:100%}.custom-scroll-menu.hor-scroll .jstree-default .jstree-anchor{width:auto;min-width:calc(100% - 24px)}.custom-scroll-menu.hor-scroll .horizontal-scroll-menu .folder-actions{background:#fff;padding:0 15px 0 4px}
assets/css/jquery.mcustomscrollbar.min.css DELETED
@@ -1,1297 +0,0 @@
1
- .mCustomScrollbar {
2
- -ms-touch-action: pinch-zoom;
3
- touch-action: pinch-zoom
4
- }
5
-
6
- .mCustomScrollbar.mCS_no_scrollbar, .mCustomScrollbar.mCS_touch_action {
7
- -ms-touch-action: auto;
8
- touch-action: auto
9
- }
10
-
11
- .mCustomScrollBox {
12
- position: relative;
13
- overflow: hidden;
14
- height: 100%;
15
- max-width: 100%;
16
- outline: 0;
17
- direction: ltr
18
- }
19
-
20
- .mCSB_container {
21
- overflow: hidden;
22
- width: auto;
23
- height: auto
24
- }
25
-
26
- .mCSB_inside > .mCSB_container {
27
- margin-right: 30px
28
- }
29
-
30
- .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
31
- margin-right: 0
32
- }
33
-
34
- .mCS-dir-rtl > .mCSB_inside > .mCSB_container {
35
- margin-right: 0;
36
- margin-left: 30px
37
- }
38
-
39
- .mCS-dir-rtl > .mCSB_inside > .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden {
40
- margin-left: 0
41
- }
42
-
43
- .mCSB_scrollTools {
44
- position: absolute;
45
- width: 16px;
46
- height: auto;
47
- left: auto;
48
- top: 0;
49
- right: 0;
50
- bottom: 0;
51
- opacity: .75;
52
- filter: "alpha(opacity=75)";
53
- -ms-filter: "alpha(opacity=75)"
54
- }
55
-
56
- .mCSB_outside + .mCSB_scrollTools {
57
- right: -26px
58
- }
59
-
60
- .mCS-dir-rtl > .mCSB_inside > .mCSB_scrollTools, .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools {
61
- right: auto;
62
- left: 0
63
- }
64
-
65
- .mCS-dir-rtl > .mCSB_outside + .mCSB_scrollTools {
66
- left: -26px
67
- }
68
-
69
- .mCSB_scrollTools .mCSB_draggerContainer {
70
- position: absolute;
71
- top: 0;
72
- left: 0;
73
- bottom: 0;
74
- right: 0;
75
- height: auto
76
- }
77
-
78
- .mCSB_scrollTools a + .mCSB_draggerContainer {
79
- margin: 20px 0
80
- }
81
-
82
- .mCSB_scrollTools .mCSB_draggerRail {
83
- width: 2px;
84
- height: 100%;
85
- margin: 0 auto;
86
- -webkit-border-radius: 16px;
87
- -moz-border-radius: 16px;
88
- border-radius: 16px
89
- }
90
-
91
- .mCSB_scrollTools .mCSB_dragger {
92
- cursor: pointer;
93
- width: 100%;
94
- height: 30px;
95
- z-index: 1
96
- }
97
-
98
- .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
99
- position: relative;
100
- width: 4px;
101
- height: 100%;
102
- margin: 0 auto;
103
- -webkit-border-radius: 16px;
104
- -moz-border-radius: 16px;
105
- border-radius: 16px;
106
- text-align: center
107
- }
108
-
109
- .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
110
- width: 12px
111
- }
112
-
113
- .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
114
- width: 8px
115
- }
116
-
117
- .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonUp {
118
- display: block;
119
- position: absolute;
120
- height: 20px;
121
- width: 100%;
122
- overflow: hidden;
123
- margin: 0 auto;
124
- cursor: pointer
125
- }
126
-
127
- .mCSB_scrollTools .mCSB_buttonDown {
128
- bottom: 0
129
- }
130
-
131
- .mCSB_horizontal.mCSB_inside > .mCSB_container {
132
- margin-right: 0;
133
- margin-bottom: 30px
134
- }
135
-
136
- .mCSB_horizontal.mCSB_outside > .mCSB_container {
137
- min-height: 100%
138
- }
139
-
140
- .mCSB_horizontal > .mCSB_container.mCS_no_scrollbar_x.mCS_x_hidden {
141
- margin-bottom: 0
142
- }
143
-
144
- .mCSB_scrollTools.mCSB_scrollTools_horizontal {
145
- width: auto;
146
- height: 16px;
147
- top: auto;
148
- right: 0;
149
- bottom: 0;
150
- left: 0
151
- }
152
-
153
- .mCustomScrollBox + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox + .mCSB_scrollTools.mCSB_scrollTools_horizontal {
154
- bottom: -26px
155
- }
156
-
157
- .mCSB_scrollTools.mCSB_scrollTools_horizontal a + .mCSB_draggerContainer {
158
- margin: 0 20px
159
- }
160
-
161
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_draggerRail {
162
- width: 100%;
163
- height: 2px;
164
- margin: 7px 0
165
- }
166
-
167
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger {
168
- width: 30px;
169
- height: 100%;
170
- left: 0
171
- }
172
-
173
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
174
- width: 100%;
175
- height: 4px;
176
- margin: 6px auto
177
- }
178
-
179
- .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
180
- height: 12px;
181
- margin: 2px auto
182
- }
183
-
184
- .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
185
- height: 8px;
186
- margin: 4px 0
187
- }
188
-
189
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft, .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight {
190
- display: block;
191
- position: absolute;
192
- width: 20px;
193
- height: 100%;
194
- overflow: hidden;
195
- margin: 0 auto;
196
- cursor: pointer
197
- }
198
-
199
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonLeft {
200
- left: 0
201
- }
202
-
203
- .mCSB_scrollTools.mCSB_scrollTools_horizontal .mCSB_buttonRight {
204
- right: 0
205
- }
206
-
207
- .mCSB_container_wrapper {
208
- position: absolute;
209
- height: auto;
210
- width: auto;
211
- overflow: hidden;
212
- top: 0;
213
- left: 0;
214
- right: 0;
215
- bottom: 0;
216
- margin-right: 30px;
217
- margin-bottom: 30px
218
- }
219
-
220
- .mCSB_container_wrapper > .mCSB_container {
221
- padding-right: 30px;
222
- padding-bottom: 30px;
223
- -webkit-box-sizing: border-box;
224
- -moz-box-sizing: border-box;
225
- box-sizing: border-box
226
- }
227
-
228
- .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_vertical {
229
- bottom: 20px
230
- }
231
-
232
- .mCSB_vertical_horizontal > .mCSB_scrollTools.mCSB_scrollTools_horizontal {
233
- right: 20px
234
- }
235
-
236
- .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden + .mCSB_scrollTools.mCSB_scrollTools_vertical {
237
- bottom: 0
238
- }
239
-
240
- .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal {
241
- right: 0
242
- }
243
-
244
- .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_scrollTools.mCSB_scrollTools_horizontal {
245
- left: 20px
246
- }
247
-
248
- .mCS-dir-rtl > .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden + .mCSB_scrollTools ~ .mCSB_scrollTools.mCSB_scrollTools_horizontal {
249
- left: 0
250
- }
251
-
252
- .mCS-dir-rtl > .mCSB_inside > .mCSB_container_wrapper {
253
- margin-right: 0;
254
- margin-left: 30px
255
- }
256
-
257
- .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden > .mCSB_container {
258
- padding-right: 0
259
- }
260
-
261
- .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden > .mCSB_container {
262
- padding-bottom: 0
263
- }
264
-
265
- .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_y.mCS_y_hidden {
266
- margin-right: 0;
267
- margin-left: 0
268
- }
269
-
270
- .mCustomScrollBox.mCSB_vertical_horizontal.mCSB_inside > .mCSB_container_wrapper.mCS_no_scrollbar_x.mCS_x_hidden {
271
- margin-bottom: 0
272
- }
273
-
274
- .mCSB_scrollTools, .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight, .mCSB_scrollTools .mCSB_buttonUp, .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
275
- -webkit-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
276
- -moz-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
277
- -o-transition: opacity .2s ease-in-out, background-color .2s ease-in-out;
278
- transition: opacity .2s ease-in-out, background-color .2s ease-in-out
279
- }
280
-
281
- .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerRail, .mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger_bar {
282
- -webkit-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
283
- -moz-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
284
- -o-transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out;
285
- transition: width .2s ease-out .2s, height .2s ease-out .2s, margin-left .2s ease-out .2s, margin-right .2s ease-out .2s, margin-top .2s ease-out .2s, margin-bottom .2s ease-out .2s, opacity .2s ease-in-out, background-color .2s ease-in-out
286
- }
287
-
288
- .mCS-autoHide > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide > .mCustomScrollBox ~ .mCSB_scrollTools {
289
- opacity: 0;
290
- filter: "alpha(opacity=0)";
291
- -ms-filter: "alpha(opacity=0)"
292
- }
293
-
294
- .mCS-autoHide:hover > .mCustomScrollBox > .mCSB_scrollTools, .mCS-autoHide:hover > .mCustomScrollBox ~ .mCSB_scrollTools, .mCustomScrollBox:hover > .mCSB_scrollTools, .mCustomScrollBox:hover ~ .mCSB_scrollTools, .mCustomScrollbar > .mCustomScrollBox > .mCSB_scrollTools.mCSB_scrollTools_onDrag, .mCustomScrollbar > .mCustomScrollBox ~ .mCSB_scrollTools.mCSB_scrollTools_onDrag {
295
- opacity: 1;
296
- filter: "alpha(opacity=100)";
297
- -ms-filter: "alpha(opacity=100)"
298
- }
299
-
300
- .mCSB_scrollTools .mCSB_draggerRail {
301
- background-color: #000;
302
- background-color: rgba(0, 0, 0, .4);
303
- filter: "alpha(opacity=40)";
304
- -ms-filter: "alpha(opacity=40)"
305
- }
306
-
307
- .mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
308
- background-color: #fff;
309
- background-color: rgba(255, 255, 255, .75);
310
- filter: "alpha(opacity=75)";
311
- -ms-filter: "alpha(opacity=75)"
312
- }
313
-
314
- .mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
315
- background-color: #fff;
316
- background-color: rgba(255, 255, 255, .85);
317
- filter: "alpha(opacity=85)";
318
- -ms-filter: "alpha(opacity=85)"
319
- }
320
-
321
- .mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
322
- background-color: #fff;
323
- background-color: rgba(255, 255, 255, .9);
324
- filter: "alpha(opacity=90)";
325
- -ms-filter: "alpha(opacity=90)"
326
- }
327
-
328
- .mCSB_scrollTools .mCSB_buttonDown, .mCSB_scrollTools .mCSB_buttonLeft, .mCSB_scrollTools .mCSB_buttonRight, .mCSB_scrollTools .mCSB_buttonUp {
329
- background-repeat: no-repeat;
330
- opacity: .4;
331
- filter: "alpha(opacity=40)";
332
- -ms-filter: "alpha(opacity=40)"
333
- }
334
-
335
- .mCSB_scrollTools .mCSB_buttonUp {
336
- background-position: 0 0
337
- }
338
-
339
- .mCSB_scrollTools .mCSB_buttonDown {
340
- background-position: 0 -20px
341
- }
342
-
343
- .mCSB_scrollTools .mCSB_buttonLeft {
344
- background-position: 0 -40px
345
- }
346
-
347
- .mCSB_scrollTools .mCSB_buttonRight {
348
- background-position: 0 -56px
349
- }
350
-
351
- .mCSB_scrollTools .mCSB_buttonDown:hover, .mCSB_scrollTools .mCSB_buttonLeft:hover, .mCSB_scrollTools .mCSB_buttonRight:hover, .mCSB_scrollTools .mCSB_buttonUp:hover {
352
- opacity: .75;
353
- filter: "alpha(opacity=75)";
354
- -ms-filter: "alpha(opacity=75)"
355
- }
356
-
357
- .mCSB_scrollTools .mCSB_buttonDown:active, .mCSB_scrollTools .mCSB_buttonLeft:active, .mCSB_scrollTools .mCSB_buttonRight:active, .mCSB_scrollTools .mCSB_buttonUp:active {
358
- opacity: .9;
359
- filter: "alpha(opacity=90)";
360
- -ms-filter: "alpha(opacity=90)"
361
- }
362
-
363
- .mCS-dark.mCSB_scrollTools .mCSB_draggerRail {
364
- background-color: #000;
365
- background-color: rgba(0, 0, 0, .15)
366
- }
367
-
368
- .mCS-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
369
- background-color: #000;
370
- background-color: rgba(0, 0, 0, .75)
371
- }
372
-
373
- .mCS-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
374
- background-color: rgba(0, 0, 0, .85)
375
- }
376
-
377
- .mCS-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
378
- background-color: rgba(0, 0, 0, .9)
379
- }
380
-
381
- .mCS-dark.mCSB_scrollTools .mCSB_buttonUp {
382
- background-position: -80px 0
383
- }
384
-
385
- .mCS-dark.mCSB_scrollTools .mCSB_buttonDown {
386
- background-position: -80px -20px
387
- }
388
-
389
- .mCS-dark.mCSB_scrollTools .mCSB_buttonLeft {
390
- background-position: -80px -40px
391
- }
392
-
393
- .mCS-dark.mCSB_scrollTools .mCSB_buttonRight {
394
- background-position: -80px -56px
395
- }
396
-
397
- .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools .mCSB_draggerRail {
398
- width: 4px;
399
- background-color: #fff;
400
- background-color: rgba(255, 255, 255, .1);
401
- -webkit-border-radius: 1px;
402
- -moz-border-radius: 1px;
403
- border-radius: 1px
404
- }
405
-
406
- .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
407
- width: 4px;
408
- background-color: #fff;
409
- background-color: rgba(255, 255, 255, .75);
410
- -webkit-border-radius: 1px;
411
- -moz-border-radius: 1px;
412
- border-radius: 1px
413
- }
414
-
415
- .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools_horizontal .mCSB_draggerRail {
416
- width: 100%;
417
- height: 4px;
418
- margin: 6px auto
419
- }
420
-
421
- .mCS-light-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
422
- background-color: #fff;
423
- background-color: rgba(255, 255, 255, .85)
424
- }
425
-
426
- .mCS-light-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-light-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
427
- background-color: #fff;
428
- background-color: rgba(255, 255, 255, .9)
429
- }
430
-
431
- .mCS-light-2.mCSB_scrollTools .mCSB_buttonUp {
432
- background-position: -32px 0
433
- }
434
-
435
- .mCS-light-2.mCSB_scrollTools .mCSB_buttonDown {
436
- background-position: -32px -20px
437
- }
438
-
439
- .mCS-light-2.mCSB_scrollTools .mCSB_buttonLeft {
440
- background-position: -40px -40px
441
- }
442
-
443
- .mCS-light-2.mCSB_scrollTools .mCSB_buttonRight {
444
- background-position: -40px -56px
445
- }
446
-
447
- .mCS-dark-2.mCSB_scrollTools .mCSB_draggerRail {
448
- background-color: #000;
449
- background-color: rgba(0, 0, 0, .1);
450
- -webkit-border-radius: 1px;
451
- -moz-border-radius: 1px;
452
- border-radius: 1px
453
- }
454
-
455
- .mCS-dark-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
456
- background-color: #000;
457
- background-color: rgba(0, 0, 0, .75);
458
- -webkit-border-radius: 1px;
459
- -moz-border-radius: 1px;
460
- border-radius: 1px
461
- }
462
-
463
- .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
464
- background-color: #000;
465
- background-color: rgba(0, 0, 0, .85)
466
- }
467
-
468
- .mCS-dark-2.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-2.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
469
- background-color: #000;
470
- background-color: rgba(0, 0, 0, .9)
471
- }
472
-
473
- .mCS-dark-2.mCSB_scrollTools .mCSB_buttonUp {
474
- background-position: -112px 0
475
- }
476
-
477
- .mCS-dark-2.mCSB_scrollTools .mCSB_buttonDown {
478
- background-position: -112px -20px
479
- }
480
-
481
- .mCS-dark-2.mCSB_scrollTools .mCSB_buttonLeft {
482
- background-position: -120px -40px
483
- }
484
-
485
- .mCS-dark-2.mCSB_scrollTools .mCSB_buttonRight {
486
- background-position: -120px -56px
487
- }
488
-
489
- .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-thick.mCSB_scrollTools .mCSB_draggerRail {
490
- width: 4px;
491
- background-color: #fff;
492
- background-color: rgba(255, 255, 255, .1);
493
- -webkit-border-radius: 2px;
494
- -moz-border-radius: 2px;
495
- border-radius: 2px
496
- }
497
-
498
- .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
499
- width: 6px;
500
- background-color: #fff;
501
- background-color: rgba(255, 255, 255, .75);
502
- -webkit-border-radius: 2px;
503
- -moz-border-radius: 2px;
504
- border-radius: 2px
505
- }
506
-
507
- .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_draggerRail {
508
- width: 100%;
509
- height: 4px;
510
- margin: 6px 0
511
- }
512
-
513
- .mCS-dark-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
514
- width: 100%;
515
- height: 6px;
516
- margin: 5px auto
517
- }
518
-
519
- .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
520
- background-color: #fff;
521
- background-color: rgba(255, 255, 255, .85)
522
- }
523
-
524
- .mCS-light-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-light-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
525
- background-color: #fff;
526
- background-color: rgba(255, 255, 255, .9)
527
- }
528
-
529
- .mCS-light-thick.mCSB_scrollTools .mCSB_buttonUp {
530
- background-position: -16px 0
531
- }
532
-
533
- .mCS-light-thick.mCSB_scrollTools .mCSB_buttonDown {
534
- background-position: -16px -20px
535
- }
536
-
537
- .mCS-light-thick.mCSB_scrollTools .mCSB_buttonLeft {
538
- background-position: -20px -40px
539
- }
540
-
541
- .mCS-light-thick.mCSB_scrollTools .mCSB_buttonRight {
542
- background-position: -20px -56px
543
- }
544
-
545
- .mCS-dark-thick.mCSB_scrollTools .mCSB_draggerRail {
546
- background-color: #000;
547
- background-color: rgba(0, 0, 0, .1);
548
- -webkit-border-radius: 2px;
549
- -moz-border-radius: 2px;
550
- border-radius: 2px
551
- }
552
-
553
- .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
554
- background-color: #000;
555
- background-color: rgba(0, 0, 0, .75);
556
- -webkit-border-radius: 2px;
557
- -moz-border-radius: 2px;
558
- border-radius: 2px
559
- }
560
-
561
- .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
562
- background-color: #000;
563
- background-color: rgba(0, 0, 0, .85)
564
- }
565
-
566
- .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
567
- background-color: #000;
568
- background-color: rgba(0, 0, 0, .9)
569
- }
570
-
571
- .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonUp {
572
- background-position: -96px 0
573
- }
574
-
575
- .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonDown {
576
- background-position: -96px -20px
577
- }
578
-
579
- .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonLeft {
580
- background-position: -100px -40px
581
- }
582
-
583
- .mCS-dark-thick.mCSB_scrollTools .mCSB_buttonRight {
584
- background-position: -100px -56px
585
- }
586
-
587
- .mCS-light-thin.mCSB_scrollTools .mCSB_draggerRail {
588
- background-color: #fff;
589
- background-color: rgba(255, 255, 255, .1)
590
- }
591
-
592
- .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
593
- width: 2px
594
- }
595
-
596
- .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_draggerRail {
597
- width: 100%
598
- }
599
-
600
- .mCS-dark-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-thin.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
601
- width: 100%;
602
- height: 2px;
603
- margin: 7px auto
604
- }
605
-
606
- .mCS-dark-thin.mCSB_scrollTools .mCSB_draggerRail {
607
- background-color: #000;
608
- background-color: rgba(0, 0, 0, .15)
609
- }
610
-
611
- .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
612
- background-color: #000;
613
- background-color: rgba(0, 0, 0, .75)
614
- }
615
-
616
- .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
617
- background-color: #000;
618
- background-color: rgba(0, 0, 0, .85)
619
- }
620
-
621
- .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-thin.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
622
- background-color: #000;
623
- background-color: rgba(0, 0, 0, .9)
624
- }
625
-
626
- .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonUp {
627
- background-position: -80px 0
628
- }
629
-
630
- .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonDown {
631
- background-position: -80px -20px
632
- }
633
-
634
- .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonLeft {
635
- background-position: -80px -40px
636
- }
637
-
638
- .mCS-dark-thin.mCSB_scrollTools .mCSB_buttonRight {
639
- background-position: -80px -56px
640
- }
641
-
642
- .mCS-rounded.mCSB_scrollTools .mCSB_draggerRail {
643
- background-color: #fff;
644
- background-color: rgba(255, 255, 255, .15)
645
- }
646
-
647
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger, .mCS-rounded.mCSB_scrollTools .mCSB_dragger {
648
- height: 14px
649
- }
650
-
651
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
652
- width: 14px;
653
- margin: 0 1px
654
- }
655
-
656
- .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger {
657
- width: 14px
658
- }
659
-
660
- .mCS-rounded-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
661
- height: 14px;
662
- margin: 1px 0
663
- }
664
-
665
- .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
666
- width: 16px;
667
- height: 16px;
668
- margin: -1px 0
669
- }
670
-
671
- .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
672
- width: 4px
673
- }
674
-
675
- .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded .mCSB_dragger_bar, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_dragger .mCSB_dragger_bar {
676
- height: 16px;
677
- width: 16px;
678
- margin: 0 -1px
679
- }
680
-
681
- .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded-dark.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-rounded.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
682
- height: 4px;
683
- margin: 6px 0
684
- }
685
-
686
- .mCS-rounded.mCSB_scrollTools .mCSB_buttonUp {
687
- background-position: 0 -72px
688
- }
689
-
690
- .mCS-rounded.mCSB_scrollTools .mCSB_buttonDown {
691
- background-position: 0 -92px
692
- }
693
-
694
- .mCS-rounded.mCSB_scrollTools .mCSB_buttonLeft {
695
- background-position: 0 -112px
696
- }
697
-
698
- .mCS-rounded.mCSB_scrollTools .mCSB_buttonRight {
699
- background-position: 0 -128px
700
- }
701
-
702
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
703
- background-color: #000;
704
- background-color: rgba(0, 0, 0, .75)
705
- }
706
-
707
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_draggerRail {
708
- background-color: #000;
709
- background-color: rgba(0, 0, 0, .15)
710
- }
711
-
712
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
713
- background-color: #000;
714
- background-color: rgba(0, 0, 0, .85)
715
- }
716
-
717
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
718
- background-color: #000;
719
- background-color: rgba(0, 0, 0, .9)
720
- }
721
-
722
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonUp {
723
- background-position: -80px -72px
724
- }
725
-
726
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonDown {
727
- background-position: -80px -92px
728
- }
729
-
730
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonLeft {
731
- background-position: -80px -112px
732
- }
733
-
734
- .mCS-rounded-dark.mCSB_scrollTools .mCSB_buttonRight {
735
- background-position: -80px -128px
736
- }
737
-
738
- .mCS-rounded-dots-dark.mCSB_scrollTools_vertical .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_vertical .mCSB_draggerRail {
739
- width: 4px
740
- }
741
-
742
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail {
743
- background-color: transparent;
744
- background-position: center
745
- }
746
-
747
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools .mCSB_draggerRail {
748
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAANElEQVQYV2NkIAAYiVbw//9/Y6DiM1ANJoyMjGdBbLgJQAX/kU0DKgDLkaQAvxW4HEvQFwCRcxIJK1XznAAAAABJRU5ErkJggg==);
749
- background-repeat: repeat-y;
750
- opacity: .3;
751
- filter: "alpha(opacity=30)";
752
- -ms-filter: "alpha(opacity=30)"
753
- }
754
-
755
- .mCS-rounded-dots-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-rounded-dots.mCSB_scrollTools_horizontal .mCSB_draggerRail {
756
- height: 4px;
757
- margin: 6px 0;
758
- background-repeat: repeat-x
759
- }
760
-
761
- .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonUp {
762
- background-position: -16px -72px
763
- }
764
-
765
- .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonDown {
766
- background-position: -16px -92px
767
- }
768
-
769
- .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonLeft {
770
- background-position: -20px -112px
771
- }
772
-
773
- .mCS-rounded-dots.mCSB_scrollTools .mCSB_buttonRight {
774
- background-position: -20px -128px
775
- }
776
-
777
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_draggerRail {
778
- background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAALElEQVQYV2NkIAAYSVFgDFR8BqrBBEifBbGRTfiPZhpYjiQFBK3A6l6CvgAAE9kGCd1mvgEAAAAASUVORK5CYII=)
779
- }
780
-
781
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonUp {
782
- background-position: -96px -72px
783
- }
784
-
785
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonDown {
786
- background-position: -96px -92px
787
- }
788
-
789
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonLeft {
790
- background-position: -100px -112px
791
- }
792
-
793
- .mCS-rounded-dots-dark.mCSB_scrollTools .mCSB_buttonRight {
794
- background-position: -100px -128px
795
- }
796
-
797
- .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
798
- background-repeat: repeat-y;
799
- background-image: -moz-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
800
- background-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(255, 255, 255, .5)), color-stop(100%, rgba(255, 255, 255, 0)));
801
- background-image: -webkit-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
802
- background-image: -o-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
803
- background-image: -ms-linear-gradient(left, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
804
- background-image: linear-gradient(to right, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%)
805
- }
806
-
807
- .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
808
- background-repeat: repeat-x;
809
- background-image: -moz-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
810
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(255, 255, 255, .5)), color-stop(100%, rgba(255, 255, 255, 0)));
811
- background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
812
- background-image: -o-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
813
- background-image: -ms-linear-gradient(top, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%);
814
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, 0) 100%)
815
- }
816
-
817
- .mCS-3d-dark.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-3d.mCSB_scrollTools_vertical .mCSB_dragger {
818
- height: 70px
819
- }
820
-
821
- .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger {
822
- width: 70px
823
- }
824
-
825
- .mCS-3d-dark.mCSB_scrollTools, .mCS-3d.mCSB_scrollTools {
826
- opacity: 1;
827
- filter: "alpha(opacity=30)";
828
- -ms-filter: "alpha(opacity=30)"
829
- }
830
-
831
- .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
832
- -webkit-border-radius: 16px;
833
- -moz-border-radius: 16px;
834
- border-radius: 16px
835
- }
836
-
837
- .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools .mCSB_draggerRail {
838
- width: 8px;
839
- background-color: #000;
840
- background-color: rgba(0, 0, 0, .2);
841
- box-shadow: inset 1px 0 1px rgba(0, 0, 0, .5), inset -1px 0 1px rgba(255, 255, 255, .2)
842
- }
843
-
844
- .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
845
- background-color: #555
846
- }
847
-
848
- .mCS-3d-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
849
- width: 8px
850
- }
851
-
852
- .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_draggerRail {
853
- width: 100%;
854
- height: 8px;
855
- margin: 4px 0;
856
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5), inset 0 -1px 1px rgba(255, 255, 255, .2)
857
- }
858
-
859
- .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
860
- width: 100%;
861
- height: 8px;
862
- margin: 4px auto
863
- }
864
-
865
- .mCS-3d.mCSB_scrollTools .mCSB_buttonUp {
866
- background-position: -32px -72px
867
- }
868
-
869
- .mCS-3d.mCSB_scrollTools .mCSB_buttonDown {
870
- background-position: -32px -92px
871
- }
872
-
873
- .mCS-3d.mCSB_scrollTools .mCSB_buttonLeft {
874
- background-position: -40px -112px
875
- }
876
-
877
- .mCS-3d.mCSB_scrollTools .mCSB_buttonRight {
878
- background-position: -40px -128px
879
- }
880
-
881
- .mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail {
882
- background-color: #000;
883
- background-color: rgba(0, 0, 0, .1);
884
- box-shadow: inset 1px 0 1px rgba(0, 0, 0, .1)
885
- }
886
-
887
- .mCS-3d-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail {
888
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1)
889
- }
890
-
891
- .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonUp {
892
- background-position: -112px -72px
893
- }
894
-
895
- .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonDown {
896
- background-position: -112px -92px
897
- }
898
-
899
- .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonLeft {
900
- background-position: -120px -112px
901
- }
902
-
903
- .mCS-3d-dark.mCSB_scrollTools .mCSB_buttonRight {
904
- background-position: -120px -128px
905
- }
906
-
907
- .mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools {
908
- opacity: 1;
909
- filter: "alpha(opacity=30)";
910
- -ms-filter: "alpha(opacity=30)"
911
- }
912
-
913
- .mCS-3d-thick-dark.mCSB_scrollTools, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer, .mCS-3d-thick.mCSB_scrollTools, .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer {
914
- -webkit-border-radius: 7px;
915
- -moz-border-radius: 7px;
916
- border-radius: 7px
917
- }
918
-
919
- .mCSB_inside + .mCS-3d-thick-dark.mCSB_scrollTools_vertical, .mCSB_inside + .mCS-3d-thick.mCSB_scrollTools_vertical {
920
- right: 1px
921
- }
922
-
923
- .mCS-3d-thick-dark.mCSB_scrollTools_vertical, .mCS-3d-thick.mCSB_scrollTools_vertical {
924
- box-shadow: inset 1px 0 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .5)
925
- }
926
-
927
- .mCS-3d-thick-dark.mCSB_scrollTools_horizontal, .mCS-3d-thick.mCSB_scrollTools_horizontal {
928
- bottom: 1px;
929
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .5)
930
- }
931
-
932
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
933
- -webkit-border-radius: 5px;
934
- -moz-border-radius: 5px;
935
- border-radius: 5px;
936
- box-shadow: inset 1px 0 0 rgba(255, 255, 255, .4);
937
- width: 12px;
938
- margin: 2px;
939
- position: absolute;
940
- height: auto;
941
- top: 0;
942
- bottom: 0;
943
- left: 0;
944
- right: 0
945
- }
946
-
947
- .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
948
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
949
- height: 12px;
950
- width: auto
951
- }
952
-
953
- .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
954
- background-color: #555
955
- }
956
-
957
- .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerContainer {
958
- background-color: #000;
959
- background-color: rgba(0, 0, 0, .05);
960
- box-shadow: inset 1px 1px 16px rgba(0, 0, 0, .1)
961
- }
962
-
963
- .mCS-3d-thick.mCSB_scrollTools .mCSB_draggerRail {
964
- background-color: transparent
965
- }
966
-
967
- .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonUp {
968
- background-position: -32px -72px
969
- }
970
-
971
- .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonDown {
972
- background-position: -32px -92px
973
- }
974
-
975
- .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonLeft {
976
- background-position: -40px -112px
977
- }
978
-
979
- .mCS-3d-thick.mCSB_scrollTools .mCSB_buttonRight {
980
- background-position: -40px -128px
981
- }
982
-
983
- .mCS-3d-thick-dark.mCSB_scrollTools {
984
- box-shadow: inset 0 0 14px rgba(0, 0, 0, .2)
985
- }
986
-
987
- .mCS-3d-thick-dark.mCSB_scrollTools_horizontal {
988
- box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), inset 0 0 14px rgba(0, 0, 0, .2)
989
- }
990
-
991
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
992
- box-shadow: inset 1px 0 0 rgba(255, 255, 255, .4), inset -1px 0 0 rgba(0, 0, 0, .2)
993
- }
994
-
995
- .mCS-3d-thick-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
996
- box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -1px 0 rgba(0, 0, 0, .2)
997
- }
998
-
999
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
1000
- background-color: #777
1001
- }
1002
-
1003
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerContainer {
1004
- background-color: #fff;
1005
- background-color: rgba(0, 0, 0, .05);
1006
- box-shadow: inset 1px 1px 16px rgba(0, 0, 0, .1)
1007
- }
1008
-
1009
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-minimal.mCSB_scrollTools .mCSB_draggerRail {
1010
- background-color: transparent
1011
- }
1012
-
1013
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonUp {
1014
- background-position: -112px -72px
1015
- }
1016
-
1017
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonDown {
1018
- background-position: -112px -92px
1019
- }
1020
-
1021
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonLeft {
1022
- background-position: -120px -112px
1023
- }
1024
-
1025
- .mCS-3d-thick-dark.mCSB_scrollTools .mCSB_buttonRight {
1026
- background-position: -120px -128px
1027
- }
1028
-
1029
- .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical, .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical {
1030
- right: 0;
1031
- margin: 12px 0
1032
- }
1033
-
1034
- .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools + .mCSB_scrollTools.mCSB_scrollTools_horizontal, .mCustomScrollBox.mCS-minimal-dark + .mCSB_scrollTools.mCSB_scrollTools_horizontal {
1035
- bottom: 0;
1036
- margin: 0 12px
1037
- }
1038
-
1039
- .mCS-dir-rtl > .mCSB_outside + .mCS-minimal-dark.mCSB_scrollTools_vertical, .mCS-dir-rtl > .mCSB_outside + .mCS-minimal.mCSB_scrollTools_vertical {
1040
- left: 0;
1041
- right: auto
1042
- }
1043
-
1044
- .mCS-minimal-dark.mCSB_scrollTools_vertical .mCSB_dragger, .mCS-minimal.mCSB_scrollTools_vertical .mCSB_dragger {
1045
- height: 50px
1046
- }
1047
-
1048
- .mCS-minimal-dark.mCSB_scrollTools_horizontal .mCSB_dragger, .mCS-minimal.mCSB_scrollTools_horizontal .mCSB_dragger {
1049
- width: 50px
1050
- }
1051
-
1052
- .mCS-minimal.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1053
- background-color: #fff;
1054
- background-color: rgba(255, 255, 255, .2);
1055
- filter: "alpha(opacity=20)";
1056
- -ms-filter: "alpha(opacity=20)"
1057
- }
1058
-
1059
- .mCS-minimal.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-minimal.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1060
- background-color: #fff;
1061
- background-color: rgba(255, 255, 255, .5);
1062
- filter: "alpha(opacity=50)";
1063
- -ms-filter: "alpha(opacity=50)"
1064
- }
1065
-
1066
- .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1067
- background-color: #000;
1068
- background-color: rgba(0, 0, 0, .2);
1069
- filter: "alpha(opacity=20)";
1070
- -ms-filter: "alpha(opacity=20)"
1071
- }
1072
-
1073
- .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-minimal-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1074
- background-color: #000;
1075
- background-color: rgba(0, 0, 0, .5);
1076
- filter: "alpha(opacity=50)";
1077
- -ms-filter: "alpha(opacity=50)"
1078
- }
1079
-
1080
- .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools .mCSB_draggerRail {
1081
- width: 6px;
1082
- background-color: #000;
1083
- background-color: rgba(0, 0, 0, .2)
1084
- }
1085
-
1086
- .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1087
- width: 6px
1088
- }
1089
-
1090
- .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-light-3.mCSB_scrollTools_horizontal .mCSB_draggerRail {
1091
- width: 100%;
1092
- height: 6px;
1093
- margin: 5px 0
1094
- }
1095
-
1096
- .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_vertical.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
1097
- width: 12px
1098
- }
1099
-
1100
- .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-dark-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_dragger.mCSB_dragger_onDrag_expanded + .mCSB_draggerRail, .mCS-light-3.mCSB_scrollTools_horizontal.mCSB_scrollTools_onDrag_expand .mCSB_draggerContainer:hover .mCSB_draggerRail {
1101
- height: 12px;
1102
- margin: 2px 0
1103
- }
1104
-
1105
- .mCS-light-3.mCSB_scrollTools .mCSB_buttonUp {
1106
- background-position: -32px -72px
1107
- }
1108
-
1109
- .mCS-light-3.mCSB_scrollTools .mCSB_buttonDown {
1110
- background-position: -32px -92px
1111
- }
1112
-
1113
- .mCS-light-3.mCSB_scrollTools .mCSB_buttonLeft {
1114
- background-position: -40px -112px
1115
- }
1116
-
1117
- .mCS-light-3.mCSB_scrollTools .mCSB_buttonRight {
1118
- background-position: -40px -128px
1119
- }
1120
-
1121
- .mCS-dark-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1122
- background-color: #000;
1123
- background-color: rgba(0, 0, 0, .75)
1124
- }
1125
-
1126
- .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
1127
- background-color: #000;
1128
- background-color: rgba(0, 0, 0, .85)
1129
- }
1130
-
1131
- .mCS-dark-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-dark-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1132
- background-color: #000;
1133
- background-color: rgba(0, 0, 0, .9)
1134
- }
1135
-
1136
- .mCS-dark-3.mCSB_scrollTools .mCSB_draggerRail {
1137
- background-color: #000;
1138
- background-color: rgba(0, 0, 0, .1)
1139
- }
1140
-
1141
- .mCS-dark-3.mCSB_scrollTools .mCSB_buttonUp {
1142
- background-position: -112px -72px
1143
- }
1144
-
1145
- .mCS-dark-3.mCSB_scrollTools .mCSB_buttonDown {
1146
- background-position: -112px -92px
1147
- }
1148
-
1149
- .mCS-dark-3.mCSB_scrollTools .mCSB_buttonLeft {
1150
- background-position: -120px -112px
1151
- }
1152
-
1153
- .mCS-dark-3.mCSB_scrollTools .mCSB_buttonRight {
1154
- background-position: -120px -128px
1155
- }
1156
-
1157
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset.mCSB_scrollTools .mCSB_draggerRail {
1158
- width: 12px;
1159
- background-color: #000;
1160
- background-color: rgba(0, 0, 0, .2)
1161
- }
1162
-
1163
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1164
- width: 6px;
1165
- margin: 3px 5px;
1166
- position: absolute;
1167
- height: auto;
1168
- top: 0;
1169
- bottom: 0;
1170
- left: 0;
1171
- right: 0
1172
- }
1173
-
1174
- .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar, .mCS-inset.mCSB_scrollTools_horizontal .mCSB_dragger .mCSB_dragger_bar {
1175
- height: 6px;
1176
- margin: 5px 3px;
1177
- position: absolute;
1178
- width: auto;
1179
- top: 0;
1180
- bottom: 0;
1181
- left: 0;
1182
- right: 0
1183
- }
1184
-
1185
- .mCS-inset-2-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-3.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools_horizontal .mCSB_draggerRail, .mCS-inset.mCSB_scrollTools_horizontal .mCSB_draggerRail {
1186
- width: 100%;
1187
- height: 12px;
1188
- margin: 2px 0
1189
- }
1190
-
1191
- .mCS-inset-2.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset.mCSB_scrollTools .mCSB_buttonUp {
1192
- background-position: -32px -72px
1193
- }
1194
-
1195
- .mCS-inset-2.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset.mCSB_scrollTools .mCSB_buttonDown {
1196
- background-position: -32px -92px
1197
- }
1198
-
1199
- .mCS-inset-2.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset.mCSB_scrollTools .mCSB_buttonLeft {
1200
- background-position: -40px -112px
1201
- }
1202
-
1203
- .mCS-inset-2.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset.mCSB_scrollTools .mCSB_buttonRight {
1204
- background-position: -40px -128px
1205
- }
1206
-
1207
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1208
- background-color: #000;
1209
- background-color: rgba(0, 0, 0, .75)
1210
- }
1211
-
1212
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
1213
- background-color: #000;
1214
- background-color: rgba(0, 0, 0, .85)
1215
- }
1216
-
1217
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-2-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1218
- background-color: #000;
1219
- background-color: rgba(0, 0, 0, .9)
1220
- }
1221
-
1222
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-dark.mCSB_scrollTools .mCSB_draggerRail {
1223
- background-color: #000;
1224
- background-color: rgba(0, 0, 0, .1)
1225
- }
1226
-
1227
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonUp, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonUp {
1228
- background-position: -112px -72px
1229
- }
1230
-
1231
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonDown, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonDown {
1232
- background-position: -112px -92px
1233
- }
1234
-
1235
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonLeft, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonLeft {
1236
- background-position: -120px -112px
1237
- }
1238
-
1239
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_buttonRight, .mCS-inset-dark.mCSB_scrollTools .mCSB_buttonRight {
1240
- background-position: -120px -128px
1241
- }
1242
-
1243
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail, .mCS-inset-2.mCSB_scrollTools .mCSB_draggerRail {
1244
- background-color: transparent;
1245
- border-width: 1px;
1246
- border-style: solid;
1247
- border-color: #fff;
1248
- border-color: rgba(255, 255, 255, .2);
1249
- -webkit-box-sizing: border-box;
1250
- -moz-box-sizing: border-box;
1251
- box-sizing: border-box
1252
- }
1253
-
1254
- .mCS-inset-2-dark.mCSB_scrollTools .mCSB_draggerRail {
1255
- border-color: #000;
1256
- border-color: rgba(0, 0, 0, .2)
1257
- }
1258
-
1259
- .mCS-inset-3.mCSB_scrollTools .mCSB_draggerRail {
1260
- background-color: #fff;
1261
- background-color: rgba(255, 255, 255, .6)
1262
- }
1263
-
1264
- .mCS-inset-3-dark.mCSB_scrollTools .mCSB_draggerRail {
1265
- background-color: #000;
1266
- background-color: rgba(0, 0, 0, .6)
1267
- }
1268
-
1269
- .mCS-inset-3.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1270
- background-color: #000;
1271
- background-color: rgba(0, 0, 0, .75)
1272
- }
1273
-
1274
- .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
1275
- background-color: #000;
1276
- background-color: rgba(0, 0, 0, .85)
1277
- }
1278
-
1279
- .mCS-inset-3.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1280
- background-color: #000;
1281
- background-color: rgba(0, 0, 0, .9)
1282
- }
1283
-
1284
- .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
1285
- background-color: #fff;
1286
- background-color: rgba(255, 255, 255, .75)
1287
- }
1288
-
1289
- .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:hover .mCSB_dragger_bar {
1290
- background-color: #fff;
1291
- background-color: rgba(255, 255, 255, .85)
1292
- }
1293
-
1294
- .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger.mCSB_dragger_onDrag .mCSB_dragger_bar, .mCS-inset-3-dark.mCSB_scrollTools .mCSB_dragger:active .mCSB_dragger_bar {
1295
- background-color: #fff;
1296
- background-color: rgba(255, 255, 255, .9)
1297
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/jstree.min.css CHANGED
@@ -1 +1 @@
1
- .jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-node{white-space:nowrap}.jstree-anchor{display:inline-block;color:#000;white-space:nowrap;padding:0 4px 0 1px;margin:0;vertical-align:top}.jstree-anchor:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none}.jstree-icon{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-icon:empty{display:inline-block;text-decoration:none;margin:0;padding:0;vertical-align:top;text-align:center}.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children{display:none}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-anchor>.jstree-themeicon-hidden,.jstree-no-icons .jstree-themeicon{display:none}.jstree-hidden,.jstree-node.jstree-hidden{display:none}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context{display:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em 0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context li>a:focus{outline:0}.vakata-context .vakata-context-hover>a{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;width:2.4em;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center;line-height:2.4em}.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0;display:none!important}.jstree-copy,.jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}.jstree-ok{background:green}.jstree-er{background:red}.jstree-copy{margin:0 2px 0 2px}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon{display:none}.jstree-default .jstree-disabled{background:0 0;color:#666}.jstree-default .jstree-disabled.jstree-hovered{background:0 0;box-shadow:none}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-disabled>.jstree-icon{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered{background:#e7f4f9}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked{background:0 0}.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top repeat}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.jstree-default .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:30px;line-height:30px;margin-left:24px;min-width:30px}.jstree-default .jstree-anchor{line-height:30px;height:30px;width:calc(100% - 30px);overflow:hidden;padding:0 30px 0 4px;box-sizing:border-box;position:relative;margin:0;border-radius:4px;display:inline-block;white-space:nowrap;font-size:13px;text-overflow:ellipsis}.sticky-wcp-custom-form{font-size:13px}.jstree-default .jstree-icon{width:30px;height:30px;line-height:30px}.jstree-default .jstree-icon:empty{width:24px;height:30px;line-height:30px}.jstree-default.jstree-rtl .jstree-node{margin-right:30px}.jstree-default .jstree-wholerow{height:30px}.jstree-default .jstree-disabled{background:0 0}.jstree-default .jstree-disabled.jstree-hovered{background:0 0}.jstree-default .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default{line-height:30px;padding:0 4px}.jstree-default i{background:0 0;width:20px;height:30px;line-height:30px;display:inline-block;vertical-align:top}.jstree-default .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==);background-position:100% 1px;background-repeat:repeat-y}.jstree-default-small>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-small{line-height:18px;padding:0 4px}.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small.jstree-rtl .jstree-node{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small.jstree-rtl .jstree-last{background:0 0}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon{width:32px;height:32px;line-height:32px}.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default-large{line-height:32px;padding:0 4px}@media (max-width:768px){.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}}@media (max-width:768px){.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:0 0}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl{background:0 0}.jstree-default-responsive .jstree-anchor{font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}.thumbnail-hover{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;transition:opacity .1s;display:none;z-index:1}.attachment-preview:hover .thumbnail-hover{display:block}.thumbnail-hover:after{top:0;left:0;width:100%;height:100%;position:absolute;content:"";background:#1e293b;z-index:100;opacity:.75}.thumbnail-hover tr td,.thumbnail-hover tr th{font-size:9px;text-align:left;padding:0;line-height:12px;color:#fff;white-space:nowrap}.thumbnail-hover table{z-index:1001;position:relative}.thumbnail-hover-box{padding:4px}.thumbnail-hover tr th{width:70px}.thumbnail-hover-box a{color:#fff;text-decoration:none;font-size:9px}.thumbnail-hover-box a span{height:10px;width:10px;font-size:12px}body .wp-core-ui .attachment-close{z-index:1001}.jstree-closed>i.jstree-icon,.jstree-open>i.jstree-icon{font-family:premio-folder!important;speak:never;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;transition:all .2s linear;-webkit-transition:all .2s linear;-moz-transition:all .2s linear;color:#fa166b;font-size:10px;text-align:center;font-weight:700;transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg)}.jstree-closed>i.jstree-icon:after,.jstree-open>i.jstree-icon:after{content:"\e909"}.jstree-open>i.jstree-icon{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0)}.thumbnail-hover .no-hidden tr th{width:auto;padding:0 5px 0 0}.thumbnail-hover .no-hidden tr td,.thumbnail-hover .no-hidden tr th{white-space:break-spaces;font-size:10px;line-height:14px}
1
+ .vakata-context li>a>i,.vakata-context li>a>i:empty{width:2.4em;line-height:2.4em}.jstree-children,.jstree-container-ul,.jstree-node{display:block;margin:0;padding:0;list-style-type:none;list-style-image:none}.jstree-anchor,.jstree-icon,.jstree-icon:empty{display:inline-block;margin:0;vertical-align:top}.jstree-node{white-space:nowrap}.jstree-anchor{color:#000;white-space:nowrap;padding:0 4px 0 1px}.jstree-anchor:focus,.vakata-context li>a:focus{outline:0}.jstree-anchor,.jstree-anchor:active,.jstree-anchor:hover,.jstree-anchor:link,.jstree-anchor:visited{text-decoration:none}.jstree-icon,.jstree-icon:empty{text-decoration:none;padding:0;text-align:center}.jstree-ocl,.jstree-wholerow-ul .jstree-leaf>.jstree-ocl{cursor:pointer}.jstree-leaf>.jstree-ocl{cursor:default}.attachment-preview:hover .thumbnail-hover,.jstree .jstree-open>.jstree-children{display:block}.jstree .jstree-closed>.jstree-children,.jstree .jstree-leaf>.jstree-children,.jstree-anchor>.jstree-themeicon-hidden,.jstree-default .jstree-no-icons .jstree-anchor>.jstree-themeicon,.jstree-hidden,.jstree-no-icons .jstree-themeicon,.jstree-node.jstree-hidden,.vakata-context{display:none}#jstree-marker,.jstree-default .jstree-no-checkboxes .jstree-checkbox{display:none!important}.jstree-anchor>.jstree-themeicon{margin-right:2px}.jstree-rtl .jstree-anchor{padding:0 1px 0 4px}.jstree-rtl .jstree-anchor>.jstree-themeicon{margin-left:2px;margin-right:0}.jstree-rtl .jstree-node{margin-left:0}.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-wholerow-ul{position:relative;display:inline-block;min-width:100%}.jstree-wholerow-ul .jstree-anchor,.jstree-wholerow-ul .jstree-icon{position:relative}.jstree-wholerow-ul .jstree-wholerow{width:100%;cursor:pointer;position:absolute;left:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.jstree-contextmenu .jstree-anchor{-webkit-user-select:none;-webkit-touch-callout:none}.vakata-context,.vakata-context ul{margin:0;padding:2px;position:absolute;background:#f5f5f5;border:1px solid #979797;box-shadow:2px 2px 2px #999}.vakata-context ul{list-style:none;left:100%;margin-top:-2.7em;margin-left:-4px}.vakata-context .vakata-context-right ul,.vakata-context-rtl ul{left:auto;right:100%;margin-left:auto;margin-right:-4px}.vakata-context li{list-style:none}.vakata-context li>a{display:block;padding:0 2em;text-decoration:none;width:auto;color:#000;white-space:nowrap;line-height:2.4em;text-shadow:1px 1px 0 #fff;border-radius:1px}.vakata-context .vakata-context-hover>a,.vakata-context li>a:hover{position:relative;background-color:#e8eff7;box-shadow:0 0 2px #0a6aa1}.vakata-context li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAIORI4JlrqN1oMSnmmZDQUAOw==);background-position:right center;background-repeat:no-repeat}.vakata-context .vakata-context-separator>a,.vakata-context .vakata-context-separator>a:hover{background:#fff;border:0;border-top:1px solid #e2e3e3;height:1px;min-height:1px;max-height:1px;padding:0;margin:0 0 0 2.4em;border-left:1px solid #e0e0e0;text-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;border-radius:0}.vakata-context .vakata-contextmenu-disabled a,.vakata-context .vakata-contextmenu-disabled a:hover{color:silver;background-color:transparent;border:0;box-shadow:0 0 0}.vakata-context .vakata-contextmenu-disabled>a>i{filter:grayscale(100%)}.vakata-context li>a>i{text-decoration:none;display:inline-block;height:2.4em;background:0 0;margin:0 0 0 -2em;vertical-align:top;text-align:center}.vakata-context li>a .vakata-contextmenu-sep{display:inline-block;width:1px;height:2.4em;background:#fff;margin:0 .5em 0 0;border-left:1px solid #e2e3e3}.vakata-context .vakata-contextmenu-shortcut{font-size:.8em;color:silver;opacity:.5;display:none}.vakata-context-rtl li>a.vakata-context-parent{background-image:url(data:image/gif;base64,R0lGODlhCwAHAIAAACgoKP///yH5BAEAAAEALAAAAAALAAcAAAINjI+AC7rWHIsPtmoxLAA7);background-position:left center;background-repeat:no-repeat}.vakata-context-rtl .vakata-context-separator>a{margin:0 2.4em 0 0;border-left:0;border-right:1px solid #e2e3e3}.vakata-context-rtl .vakata-context-left ul{right:auto;left:100%;margin-left:-4px;margin-right:auto}.vakata-context-rtl li>a>i{margin:0 -2em 0 0}.vakata-context-rtl li>a .vakata-contextmenu-sep{margin:0 0 0 .5em;border-left-color:#fff;background:#e2e3e3}#jstree-marker{position:absolute;top:0;left:0;margin:-5px 0 0;padding:0;border-right:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid;width:0;height:0;font-size:0;line-height:0}.jstree-copy,.jstree-icon{display:inline-block;text-decoration:none;margin:0 2px 0 0;padding:0;width:16px;height:16px}.jstree-ok{background:green}.jstree-er{background:red}.jstree-copy{margin:0 2px}.jstree-default .jstree-anchor,.jstree-default .jstree-animated,.jstree-default .jstree-wholerow{transition:background-color .15s,box-shadow .15s}.jstree-default .jstree-hovered{box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-context{background:#e7f4f9;border-radius:2px;box-shadow:inset 0 0 1px #ccc}.jstree-default .jstree-clicked{background:#beebff;border-radius:2px;box-shadow:inset 0 0 1px #999}.jstree-default .jstree-disabled{color:#666}.jstree-default .jstree-disabled.jstree-hovered{box-shadow:none}.jstree-default .jstree-checkbox-disabled,.jstree-default .jstree-disabled>.jstree-icon,.jstree-default-small .jstree-checkbox-disabled{opacity:.8;filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'jstree-grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#jstree-grayscale");filter:gray;-webkit-filter:grayscale(100%)}.jstree-default .jstree-search{font-style:italic;color:#8b0000;font-weight:700}.jstree-default.jstree-checkbox-no-clicked .jstree-clicked{background:0 0;box-shadow:none}.jstree-default .jstree-wholerow-hovered,.jstree-default.jstree-checkbox-no-clicked .jstree-clicked.jstree-hovered,.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked.jstree-wholerow-hovered{background:#e7f4f9}.jstree-default .jstree-disabled,.jstree-default .jstree-disabled.jstree-hovered,.jstree-default-small.jstree-rtl .jstree-last,.jstree-default.jstree-checkbox-no-clicked>.jstree-wholerow-ul .jstree-wholerow-clicked,.jstree-default.jstree-rtl .jstree-last{background:0 0}.jstree-default>.jstree-striped{min-width:100%;display:inline-block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB/qqA+AAAABlBMVEUAAAAAAAClZ7nPAAAAAnRSTlMNAMM9s3UAAAAXSURBVHjajcEBAQAAAIKg/H/aCQZ70AUBjAATb6YPDgAAAABJRU5ErkJggg==) left top}.jstree-default>.jstree-wholerow-ul .jstree-clicked,.jstree-default>.jstree-wholerow-ul .jstree-hovered{background:0 0;box-shadow:none;border-radius:0}.jstree-default .jstree-wholerow{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;height:30px}.jstree-default .jstree-wholerow-clicked{background:#beebff;background:-webkit-linear-gradient(top,#beebff 0,#a8e4ff 100%);background:linear-gradient(to bottom,#beebff 0,#a8e4ff 100%)}.jstree-default .jstree-node{min-height:30px;line-height:30px;margin-left:24px;min-width:30px}.jstree-default .jstree-anchor{line-height:30px;height:30px;width:calc(100% - 30px);overflow:hidden;padding:0 30px 0 4px;box-sizing:border-box;position:relative;margin:0;border-radius:4px;display:inline-block;white-space:nowrap;font-size:13px;text-overflow:ellipsis}.sticky-wcp-custom-form{font-size:13px}.jstree-default .jstree-icon{width:30px;height:30px;line-height:30px}.jstree-default .jstree-icon:empty{width:24px;height:30px;line-height:30px}.jstree-default .jstree-disabled.jstree-clicked,.jstree-default-small .jstree-disabled.jstree-clicked{background:#efefef}.jstree-default>.jstree-striped{background-size:auto 48px}.jstree-default.jstree-rtl .jstree-node{margin-right:30px;background-position:100% 1px;background-repeat:repeat-y;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAACAQMAAAB49I5GAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMOBgAAGAAJMwQHdQAAAABJRU5ErkJggg==)}.jstree-default-large>.jstree-container-ul>.jstree-node,.jstree-default-small>.jstree-container-ul>.jstree-node,.jstree-default>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}.jstree-default{line-height:30px;padding:0 4px}.jstree-default i{background:0 0;width:20px;height:30px;line-height:30px;display:inline-block;vertical-align:top}.jstree-default .jstree-ellipsis,.jstree-default-small .jstree-ellipsis{overflow:hidden}.jstree-default .jstree-ellipsis .jstree-anchor{width:calc(100% - 29px);text-overflow:ellipsis;overflow:hidden}.jstree-default-small .jstree-node{min-height:18px;line-height:18px;margin-left:18px;min-width:18px}.jstree-default-small .jstree-anchor{line-height:18px;height:18px}.jstree-default-small .jstree-icon,.jstree-default-small .jstree-icon:empty{width:18px;height:18px;line-height:18px}.jstree-default-small .jstree-wholerow{height:18px}.jstree-default-small>.jstree-striped{background-size:auto 36px}.jstree-default-small.jstree-rtl .jstree-node{margin-right:18px;background-position:100% 1px;background-repeat:repeat-y;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAACAQMAAABv1h6PAAAABlBMVEUAAAAdHRvEkCwcAAAAAXRSTlMAQObYZgAAAAxJREFUCNdjAAMHBgAAiABBI4gz9AAAAABJRU5ErkJggg==)}.jstree-default-small{line-height:18px;padding:0 4px}.jstree-default-small .jstree-ellipsis .jstree-anchor{width:calc(100% - 23px);text-overflow:ellipsis;overflow:hidden}.jstree-default-large .jstree-node{min-height:32px;line-height:32px;margin-left:32px;min-width:32px}.jstree-default-large .jstree-anchor{line-height:32px;height:32px}.jstree-default-large .jstree-icon,.jstree-default-large .jstree-icon:empty{width:32px;height:32px;line-height:32px}.jstree-default-large.jstree-rtl .jstree-node{margin-right:32px}.jstree-default-large .jstree-wholerow{height:32px}.jstree-default-large{line-height:32px;padding:0 4px}@media (max-width:768px){.jstree-dnd-responsive{line-height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-dnd-responsive>i{background:0 0;width:40px;height:40px}#jstree-marker.jstree-dnd-responsive{border-left-width:10px;border-top-width:10px;border-bottom-width:10px;margin-top:-10px}.jstree-default-responsive .jstree-node{min-height:40px;line-height:40px;margin-left:40px;min-width:40px;white-space:nowrap}.jstree-default-responsive .jstree-anchor{line-height:40px;height:40px;font-weight:700;font-size:1.1em;text-shadow:1px 1px #fff}.jstree-default-responsive .jstree-icon,.jstree-default-responsive .jstree-icon:empty{width:40px;height:40px;line-height:40px}.jstree-default-responsive.jstree-rtl .jstree-node{margin-left:0;margin-right:40px;background:0 0}.jstree-default-responsive.jstree-rtl .jstree-container-ul>.jstree-node{margin-right:0}.jstree-default-responsive .jstree-checkbox,.jstree-default-responsive .jstree-ocl,.jstree-default-responsive .jstree-themeicon{background-size:120px 240px}.jstree-default-responsive .jstree-leaf>.jstree-ocl,.jstree-default-responsive.jstree-rtl .jstree-leaf>.jstree-ocl,.jstree-default-responsive>.jstree-striped{background:0 0}.jstree-default-responsive .jstree-wholerow{border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid rgba(64,64,64,.2);background:#ebebeb;height:40px}.jstree-default-responsive .jstree-wholerow-hovered{background:#e7f4f9}.jstree-default-responsive .jstree-wholerow-clicked{background:#beebff}.jstree-default-responsive .jstree-children .jstree-last>.jstree-wholerow{box-shadow:inset 0 -6px 3px -5px #666}.jstree-default-responsive .jstree-children .jstree-open>.jstree-wholerow{box-shadow:inset 0 6px 3px -5px #666;border-top:0}.jstree-default-responsive .jstree-children .jstree-open+.jstree-open{box-shadow:none}.jstree-default-responsive>.jstree-container-ul>.jstree-node{margin-left:0;margin-right:0}}.thumbnail-hover{overflow:hidden;position:absolute;top:0;right:0;bottom:0;left:0;transition:opacity .1s;display:none;z-index:1}.thumbnail-hover:after{top:0;left:0;width:100%;height:100%;position:absolute;content:"";background:#1e293b;z-index:100;opacity:.75}.thumbnail-hover tr td,.thumbnail-hover tr th{font-size:9px;text-align:left;padding:0;line-height:12px;color:#fff;white-space:nowrap}.thumbnail-hover table{z-index:1001;position:relative}.thumbnail-hover-box{padding:4px}.thumbnail-hover tr th{width:70px}.thumbnail-hover-box a{color:#fff;text-decoration:none;font-size:9px}.thumbnail-hover-box a span{height:10px;width:10px;font-size:12px}body .wp-core-ui .attachment-close{z-index:1001}.jstree-closed>i.jstree-icon,.jstree-open>i.jstree-icon{font-family:premio-folder!important;speak:never;font-style:normal;font-variant:normal;text-transform:none;line-height:1;-webkit-font-smoothing:antialiased;transition:.2s linear;-webkit-transition:.2s linear;-moz-transition:.2s linear;color:#fa166b;font-size:10px;text-align:center;font-weight:700;transform:rotate(-90deg);-webkit-transform:rotate(-90deg);-moz-transform:rotate(-90deg);-o-transform:rotate(-90deg)}.jstree-closed>i.jstree-icon:after,.jstree-open>i.jstree-icon:after{content:"\e909"}.jstree-open>i.jstree-icon{transform:rotate(0);-webkit-transform:rotate(0);-moz-transform:rotate(0);-o-transform:rotate(0)}.thumbnail-hover .no-hidden tr th{width:auto;padding:0 5px 0 0}.thumbnail-hover .no-hidden tr td,.thumbnail-hover .no-hidden tr th{white-space:break-spaces;font-size:10px;line-height:14px}
assets/css/media-clean.css CHANGED
@@ -1,239 +1 @@
1
- /* Media cleaning */
2
-
3
- .media-clean-box-overlay {
4
- position: relative;
5
- left: 0;
6
- top: 0;
7
- width: 100%;
8
- height: 100vh;
9
- }
10
-
11
- .media-clean-box-content {
12
- width: 720px;
13
- margin: 30px auto 0;
14
- background: #ffffff;
15
- height: auto;
16
- box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05);
17
- padding: 30px;
18
- text-align: center;
19
- max-width: 90%;
20
- }
21
- .media-clean-box-title {
22
- font-size: 22px;
23
- font-weight: 500;
24
- margin-bottom: 15px;
25
-
26
- }
27
-
28
- .media-clean-box-border {
29
- width: 100px;
30
- background-color: #176bb3;
31
- height: 3px;
32
- margin: auto;
33
- }
34
-
35
- .media-clean-box-desc {
36
- width: 65%;
37
- margin: 25px auto;
38
- font-size: 15px;
39
- font-weight: 400;
40
- line-height: 21px;
41
- }
42
-
43
- .media-clean-box-button {
44
- border-radius: 5px;
45
- padding: 0 20px;
46
- font-size: 16px;
47
- color: #176bb3;
48
- text-decoration: none;
49
- display: inline-block;
50
- line-height: 40px;
51
- background: #EBF5FF;
52
- }
53
- .media-clean-box-button svg {
54
- display: inline-block;
55
- vertical-align: sub;
56
- margin: 0 0 0 4px;
57
- fill: #176bb3;
58
- }
59
- .media-clean-box-button:hover {
60
- background: #176bb3;
61
- color: #EBF5FF;
62
- }
63
- .media-clean-box-button:hover svg {
64
- fill: #EBF5FF;
65
- }
66
- .fa-media {
67
- color: #176bb3;
68
- }
69
-
70
- .m-top {
71
- margin-top: 25px;
72
- }
73
-
74
- .hide {
75
- display: none;
76
- }
77
-
78
- .media-clean-delete-box {
79
- display: none;
80
- }
81
- .media-clean-delete-box-overlay {
82
- position: fixed;
83
- left: 0;
84
- top: 0;
85
- width: 100%;
86
- height: 100vh;
87
- background: #000000;
88
- opacity: 0.5;
89
- }
90
- .media-clean-delete-box-content {
91
- position: fixed;
92
- left: 0;
93
- right: 0;
94
- width: 520px;
95
- max-width: 90%;
96
- margin: 0 auto;
97
- background: #ffffff;
98
- top: 50%;
99
- height: auto;
100
- transform: translate(0, -50%);
101
- box-shadow: 1px 1px 15px #c3baba;
102
- }
103
-
104
- .media-clean-delete-box-border {
105
- width: 100%;
106
- height: 3px;
107
- background-color: #db4b4b;
108
- }
109
-
110
- .close-icon {
111
- position: absolute;
112
- right: 0;
113
- margin: 6px 20px;
114
- }
115
-
116
- .close-icon span {
117
- font-size: 28px;
118
- cursor: pointer;
119
- }
120
-
121
- .media-clean-delete-box-title {
122
- margin: 20px 25px;
123
- }
124
-
125
- .title-que {
126
-
127
- font-size: 17px;
128
- font-weight: 600;
129
- }
130
-
131
- .icon-background-color {
132
- width: 4%;
133
- /* height: 5%; */
134
- background-color: #fff0f0;
135
- border-radius: 50%;
136
- color: #db4b4b;
137
- vertical-align: middle;
138
- font-size: 20px;
139
- padding: 4px;
140
- }
141
-
142
- .pd {
143
- padding: 6px;
144
- }
145
-
146
- .media-clean-delete-box-desc {
147
- text-align: left;
148
- padding: 0 62px;
149
- line-height: 20px;
150
- font-size: 15px;
151
- font-weight: 400;
152
- margin-top: -10px;
153
- color: #837a7a;
154
- }
155
-
156
- .media-clean-delete-box-footer {
157
- height: 20%;
158
- width: 100%;
159
- background-color: #f9f9fb;
160
- display: flex;
161
- justify-content: flex-end;
162
- margin-top: 40px;
163
- }
164
-
165
- .cancel-button {
166
- color: #a09999;
167
- padding: 23px;
168
- font-size: 15px;
169
- margin-right: -15px;
170
- }
171
-
172
- .delete-button {
173
- border-radius: 5px;
174
- color: #db4b4b;
175
- background-color: #fff0f0;
176
- height: 20%;
177
- /*width: 27%;*/
178
- padding: 7px 15px;
179
- margin: 16px;
180
- text-align: center;
181
- font-size: 15px;
182
- font-weight: 500;
183
- border: none;
184
- cursor: pointer;
185
- }
186
-
187
- .cancel-button:hover {
188
- color: #a09999;
189
- }
190
-
191
- .delete-button:hover {
192
- color: #db4b4b;
193
- }
194
-
195
- .media-clean-delete-box-footer a {
196
- text-decoration: none;
197
- cursor: pointer;
198
- }
199
-
200
- .delete-all-button {
201
- border-radius: 5px;
202
- color: white;
203
- background-color: blue;
204
- height: 20%;
205
- padding: 7px 15px;
206
- margin: auto;
207
- text-align: center;
208
- font-size: 15px;
209
- font-weight: 500;
210
- border: none;
211
- cursor: pointer;
212
- text-decoration: none;
213
- }
214
-
215
- .delete-all-button:hover {
216
- color: #FFFFFF;
217
- }
218
-
219
- .success-message {
220
- width: 98%;
221
- height: auto;
222
- padding: 15px;
223
- background-color: #d4edda;
224
- color: #525759;
225
- margin: 15px 0;
226
- border-radius: 5px;
227
- font-size: 15px;
228
- opacity: 1;
229
- }
230
-
231
- .skip-scan-btn {
232
- padding: 15px 0 0;
233
- }
234
-
235
- .skip-scan-btn a {
236
- text-decoration: none;
237
- color: grey;
238
- }
239
- /**********************/
1
+ .media-clean-box-overlay{position:relative;left:0;top:0;width:100%;height:100vh}.media-clean-box-content{width:720px;margin:30px auto 0;background:#fff;height:auto;box-shadow:0 10px 15px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);padding:30px;text-align:center;max-width:90%}.media-clean-box-title{font-size:22px;font-weight:500;margin-bottom:15px}.media-clean-box-border{width:100px;background-color:#176bb3;height:3px;margin:auto}.media-clean-box-desc{width:65%;margin:25px auto;font-size:15px;font-weight:400;line-height:21px}.media-clean-box-button{border-radius:5px;padding:0 20px;font-size:16px;color:#176bb3;text-decoration:none;display:inline-block;line-height:40px;background:#ebf5ff}.media-clean-box-button svg{display:inline-block;vertical-align:sub;margin:0 0 0 4px;fill:#176bb3}.media-clean-box-button:hover{background:#176bb3;color:#ebf5ff}.media-clean-box-button:hover svg{fill:#EBF5FF}.fa-media{color:#176bb3}.m-top{margin-top:25px}.hide,.media-clean-delete-box{display:none}.media-clean-delete-box-overlay{position:fixed;left:0;top:0;width:100%;height:100vh;background:#000;opacity:.5}.media-clean-delete-box-content{position:fixed;left:0;right:0;width:520px;max-width:90%;margin:0 auto;background:#fff;top:50%;height:auto;transform:translate(0,-50%);box-shadow:1px 1px 15px #c3baba}.media-clean-delete-box-border{width:100%;height:3px;background-color:#db4b4b}.close-icon{position:absolute;right:0;margin:6px 20px}.close-icon span{font-size:28px;cursor:pointer}.media-clean-delete-box-title{margin:20px 25px}.title-que{font-size:17px;font-weight:600}.icon-background-color{width:4%;background-color:#fff0f0;border-radius:50%;color:#db4b4b;vertical-align:middle;font-size:20px;padding:4px}.pd{padding:6px}.media-clean-delete-box-desc{text-align:left;padding:0 62px;line-height:20px;font-size:15px;font-weight:400;margin-top:-10px;color:#837a7a}.media-clean-delete-box-footer{height:20%;width:100%;background-color:#f9f9fb;display:flex;justify-content:flex-end;margin-top:40px}.cancel-button{color:#a09999;padding:23px;font-size:15px;margin-right:-15px}.delete-all-button,.delete-button{border-radius:5px;height:20%;padding:7px 15px;text-align:center;font-weight:500;cursor:pointer;font-size:15px}.delete-button{color:#db4b4b;background-color:#fff0f0;margin:16px;border:none}.cancel-button:hover{color:#a09999}.delete-button:hover{color:#db4b4b}.media-clean-delete-box-footer a{text-decoration:none;cursor:pointer}.delete-all-button{color:#fff;background-color:#00f;margin:auto;border:none;text-decoration:none}.delete-all-button:hover{color:#fff}.success-message{width:98%;height:auto;padding:15px;background-color:#d4edda;color:#525759;margin:15px 0;border-radius:5px;font-size:15px;opacity:1}.skip-scan-btn{padding:15px 0 0}.skip-scan-btn a{text-decoration:none;color:grey}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/css/overlayscrollbars.min.css ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * OverlayScrollbars
3
+ * https://github.com/KingSora/OverlayScrollbars
4
+ *
5
+ * Version: 1.13.0
6
+ *
7
+ * Copyright KingSora | Rene Haas.
8
+ * https://github.com/KingSora
9
+ *
10
+ * Released under the MIT license.
11
+ * Date: 02.08.2020
12
+ */
13
+ .os-host-overflow>.os-padding,.os-viewport{overflow:hidden}.os-padding,.os-viewport{margin:0;left:0;right:0;top:0;bottom:0}html.os-html,html.os-html>.os-host{display:block;overflow:hidden;box-sizing:border-box;height:100%!important;width:100%!important;min-width:100%!important;min-height:100%!important;margin:0!important;position:absolute!important}html.os-html>.os-host>.os-padding{position:absolute}.os-dragging .os-scrollbar-corner.os-scrollbar-corner-resize,body.os-dragging,body.os-dragging *{cursor:default}.os-host,.os-host-textarea{position:relative;overflow:visible!important;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-line-pack:start;align-content:flex-start;-webkit-box-align:start;-ms-flex-align:start;-ms-grid-row-align:flex-start;align-items:flex-start}.os-host-flexbox{overflow:hidden!important;display:-webkit-box;display:-ms-flexbox;display:flex}.os-host-flexbox>.os-size-auto-observer{height:inherit!important}.os-host-flexbox>.os-content-glue{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.os-host-flexbox>.os-content-glue,.os-host-flexbox>.os-size-auto-observer{min-height:0;min-width:0;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:1;flex-shrink:1;-ms-flex-preferred-size:auto;flex-basis:auto}#os-dummy-scrollbar-size{position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:500px;width:500px}#os-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}#os-dummy-scrollbar-size:after,#os-dummy-scrollbar-size:before,.os-content:after,.os-content:before{content:'';display:table;width:.01px;height:.01px;line-height:0;font-size:0;flex-grow:0;flex-shrink:0;visibility:hidden}#os-dummy-scrollbar-size,.os-viewport{-ms-overflow-style:scrollbar!important}.os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size,.os-viewport-native-scrollbars-invisible.os-viewport{scrollbar-width:none!important}.os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible#os-dummy-scrollbar-size::-webkit-scrollbar-corner,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar,.os-viewport-native-scrollbars-invisible.os-viewport::-webkit-scrollbar-corner{display:none!important;width:0!important;height:0!important;visibility:hidden!important;background:0 0!important}.os-content-glue{box-sizing:inherit;max-height:100%;max-width:100%;width:100%;pointer-events:none}.os-padding{box-sizing:inherit;direction:inherit;position:absolute;overflow:visible;padding:0;width:auto!important;height:auto!important;z-index:0}.os-content>.os-textarea,.os-viewport{direction:inherit!important;resize:none!important;padding:0}.os-viewport{box-sizing:inherit!important;outline:0!important;position:absolute;-webkit-overflow-scrolling:touch}.os-content,.os-content>.os-textarea,object.os-resize-observer{box-sizing:border-box!important}.os-content-arrange{position:absolute;z-index:-1;min-height:1px;min-width:1px;pointer-events:none}.os-content{direction:inherit;position:relative;display:block;height:100%;width:100%;visibility:visible}.os-content>.os-textarea{background:0 0!important;outline:transparent 0!important;overflow:hidden!important;position:absolute!important;display:block!important;top:0!important;left:0!important;margin:0!important;border-radius:0!important;float:none!important;-webkit-filter:none!important;filter:none!important;border:0!important;-webkit-transform:none!important;transform:none!important;max-width:none!important;max-height:none!important;box-shadow:none!important;-webkit-perspective:none!important;perspective:none!important;opacity:1!important;z-index:1!important;clip:auto!important;vertical-align:baseline!important}.os-host-rtl>.os-padding>.os-viewport>.os-content>.os-textarea{right:0!important}.os-content>.os-textarea-cover{z-index:-1;pointer-events:none}.os-content>.os-textarea[wrap=off]{white-space:pre!important;margin:0!important}.os-text-inherit{font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;font-variant:inherit;text-transform:inherit;text-decoration:inherit;text-indent:inherit;text-align:inherit;text-shadow:inherit;text-overflow:inherit;letter-spacing:inherit;word-spacing:inherit;line-height:inherit;unicode-bidi:inherit;direction:inherit;color:inherit;cursor:text}.os-resize-observer,.os-resize-observer-host{box-sizing:inherit;display:block;visibility:hidden;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.os-resize-observer-host{padding:inherit;border:solid inherit;box-sizing:border-box}.os-resize-observer-host.observed{display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start}.os-resize-observer-host.observed>.os-resize-observer,.os-resize-observer-host>.os-resize-observer{height:200%;width:200%;padding:inherit;border:inherit;margin:0;display:block;box-sizing:content-box}.os-resize-observer-host.observed>.os-resize-observer,.os-resize-observer-host.observed>.os-resize-observer:before{display:flex;position:relative;flex-grow:1;flex-shrink:0;flex-basis:auto;box-sizing:border-box}.os-resize-observer-host.observed>.os-resize-observer:before{content:'';box-sizing:content-box;padding:inherit;border:inherit;margin:0}.os-size-auto-observer{box-sizing:inherit!important;height:100%;width:inherit;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;-webkit-box-flex:inherit;-ms-flex-positive:inherit;flex-grow:inherit;-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:0;flex-basis:0}.os-size-auto-observer>.os-resize-observer{width:1000%;height:1000%;min-height:1px;min-width:1px}.os-resize-observer-item{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden;z-index:-1;opacity:0;direction:ltr!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer-item-final{position:absolute;left:0;top:0;-webkit-transition:none!important;transition:none!important;-webkit-box-flex:0!important;-ms-flex:none!important;flex:none!important}.os-resize-observer{-webkit-animation-duration:1ms;animation-duration:1ms;-webkit-animation-name:os-resize-observer-dummy-animation;animation-name:os-resize-observer-dummy-animation}@-webkit-keyframes os-resize-observer-dummy-animation{0%{cursor:auto}to{cursor:none}}@keyframes os-resize-observer-dummy-animation{0%{cursor:auto}to{cursor:none}}.os-host-transition>.os-scrollbar,.os-host-transition>.os-scrollbar-corner{-webkit-transition:opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s;transition:opacity .3s,visibility .3s,top .3s,right .3s,bottom .3s,left .3s}html.os-html>.os-host>.os-scrollbar{position:absolute;z-index:999999}.os-scrollbar,.os-scrollbar-corner{position:absolute;opacity:1;z-index:1}.os-scrollbar-corner{bottom:0;right:0}.os-scrollbar,.os-scrollbar-handle-off,.os-scrollbar-track-off{pointer-events:none}.os-scrollbar-handle,.os-scrollbar-track{pointer-events:auto;width:100%;height:100%}.os-scrollbar-track{position:relative;padding:0!important;border:0!important}.os-scrollbar-handle{position:absolute;left:-2px}.os-scrollbar.os-scrollbar-unusable,.os-scrollbar.os-scrollbar-unusable *{pointer-events:none!important}.os-scrollbar.os-scrollbar-unusable .os-scrollbar-handle{opacity:0!important}.os-scrollbar-horizontal{bottom:4px;left:0}.os-scrollbar-vertical{top:0;right:4px;cursor:pointer}.os-host-rtl>.os-scrollbar-horizontal{right:0}.os-host-rtl>.os-scrollbar-corner,.os-host-rtl>.os-scrollbar-vertical{right:auto;left:0}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-corner,.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-corner,.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal,.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical,.os-padding+.os-scrollbar-corner,.os-scrollbar-auto-hidden,.os-scrollbar-horizontal+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner,.os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical+.os-scrollbar-corner,.os-scrollbar-horizontal.os-scrollbar-auto-hidden+.os-scrollbar-vertical.os-scrollbar-auto-hidden+.os-scrollbar-corner{opacity:0;visibility:hidden;pointer-events:none}.os-scrollbar-corner-resize-both{cursor:nwse-resize}.os-host-rtl>.os-scrollbar-corner-resize-both{cursor:nesw-resize}.os-scrollbar-corner-resize-horizontal{cursor:ew-resize}.os-scrollbar-corner-resize-vertical{cursor:ns-resize}.os-host-resize-disabled.os-host-scrollbar-horizontal-hidden>.os-scrollbar-vertical{top:0;bottom:0}.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal,.os-host-rtl.os-host-resize-disabled.os-host-scrollbar-vertical-hidden>.os-scrollbar-horizontal{right:0;left:0}.os-scrollbar-corner.os-scrollbar-corner-resize,.os-scrollbar:hover{opacity:1!important;visibility:visible!important}.os-scrollbar-corner.os-scrollbar-corner-resize{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIiAgIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyIgICB4bWxuczpzdmc9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgICB3aWR0aD0iMTAiICAgaGVpZ2h0PSIxMCIgICB2ZXJzaW9uPSIxLjEiPiAgPGcgICAgIHRyYW5zZm9ybT0idHJhbnNsYXRlKDAsLTEwNDIuMzYyMikiICAgICBzdHlsZT0iZGlzcGxheTppbmxpbmUiPiAgICA8cGF0aCAgICAgICBzdHlsZT0iZmlsbDojMDAwMDAwO2ZpbGwtb3BhY2l0eTowLjQ5NDExNzY1O2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lIiAgICAgICBkPSJtIDcuNDI0MjE4NywxMDQyLjM2MjIgYyAtMC43MjM1NzkyLDAgLTEuMzEwMTU2MiwwLjU4NjYgLTEuMzEwMTU2MiwxLjMxMDIgMCwwLjI5OSAwLjEwNDM0MTksMC41NzEgMC4yNzI5NDkyLDAuNzkxNSAwLjIwOTEwMjQsMC4xNDEzIDAuNDY1NjIwNiwwLjIxODQgMC43MzY5NjI5LDAuMjE4NCAwLjcyMzU3OTMsMCAxLjMxMDE1NjMsLTAuNTg2NiAxLjMxMDE1NjMsLTEuMzEwMiAwLC0wLjI3MTMgLTAuMDc3MDkzLC0wLjUyNzggLTAuMjE4MzU5NCwtMC43MzcgLTAuMjIwNDk0MSwtMC4xNjg2IC0wLjQ5MjU0NDMsLTAuMjcyOSAtMC43OTE1NTI4LC0wLjI3MjkgeiBtIDAsMy4wODQzIGMgLTAuNzIzNTc5MiwwIC0xLjMxMDE1NjIsMC41ODY2IC0xLjMxMDE1NjIsMS4zMTAyIDAsMC4yOTkgMC4xMDQzNDE5LDAuNTcxIDAuMjcyOTQ5MiwwLjc5MTUgMC4yMDkxMDI0LDAuMTQxMyAwLjQ2NTYyMDYsMC4yMTg0IDAuNzM2OTYyOSwwLjIxODQgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjYgMS4zMTAxNTYzLC0xLjMxMDIgMCwtMC4yNzEzIC0wLjA3NzA5MywtMC41Mjc4IC0wLjIxODM1OTQsLTAuNzM2OSAtMC4yMjA0OTQxLC0wLjE2ODYgLTAuNDkyNTQ0MywtMC4yNzMgLTAuNzkxNTUyOCwtMC4yNzMgeiBtIC0zLjA4NDMyNjEsMCBjIC0wLjcyMzU3OTMsMCAtMS4zMTAxNTYzLDAuNTg2NiAtMS4zMTAxNTYzLDEuMzEwMiAwLDAuMjk5IDAuMTA0MzQxOSwwLjU3MSAwLjI3Mjk0OTIsMC43OTE1IDAuMjA5MTAyNCwwLjE0MTMgMC40NjU2MjA3LDAuMjE4NCAwLjczNjk2MjksMC4yMTg0IDAuNzIzNTc5MywwIDEuMzEwMTU2MywtMC41ODY2IDEuMzEwMTU2MywtMS4zMTAyIDAsLTAuMjcxMyAtMC4wNzcwOTMsLTAuNTI3OCAtMC4yMTgzNTk0LC0wLjczNjkgLTAuMjIwNDk0LC0wLjE2ODYgLTAuNDkyNTQ0MiwtMC4yNzMgLTAuNzkxNTUyNywtMC4yNzMgeiBtIC0zLjAyOTczNjQsMy4wMjk4IEMgMC41ODY1NzY5MywxMDQ4LjQ3NjMgMCwxMDQ5LjA2MjggMCwxMDQ5Ljc4NjQgYyAwLDAuMjk5IDAuMTA0MzQxOSwwLjU3MTEgMC4yNzI5NDkyMiwwLjc5MTYgMC4yMDkxMDIyOSwwLjE0MTIgMC40NjU2MjA2NSwwLjIxODMgMC43MzY5NjI4OCwwLjIxODMgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjUgMS4zMTAxNTYzLC0xLjMxMDEgMCwtMC4yNzE0IC0wLjA3NzA5MywtMC41Mjc5IC0wLjIxODM1OTQsLTAuNzM3IC0wLjIyMDQ5NDEsLTAuMTY4NiAtMC40OTI1NDQzLC0wLjI3MjkgLTAuNzkxNTUyOCwtMC4yNzI5IHogbSAzLjAyOTczNjQsMCBjIC0wLjcyMzU3OTMsMCAtMS4zMTAxNTYzLDAuNTg2NSAtMS4zMTAxNTYzLDEuMzEwMSAwLDAuMjk5IDAuMTA0MzQxOSwwLjU3MTEgMC4yNzI5NDkyLDAuNzkxNiAwLjIwOTEwMjQsMC4xNDEyIDAuNDY1NjIwNywwLjIxODMgMC43MzY5NjI5LDAuMjE4MyAwLjcyMzU3OTMsMCAxLjMxMDE1NjMsLTAuNTg2NSAxLjMxMDE1NjMsLTEuMzEwMSAwLC0wLjI3MTQgLTAuMDc3MDkzLC0wLjUyNzkgLTAuMjE4MzU5NCwtMC43MzcgLTAuMjIwNDk0LC0wLjE2ODYgLTAuNDkyNTQ0MiwtMC4yNzI5IC0wLjc5MTU1MjcsLTAuMjcyOSB6IG0gMy4wODQzMjYxLDAgYyAtMC43MjM1NzkyLDAgLTEuMzEwMTU2MiwwLjU4NjUgLTEuMzEwMTU2MiwxLjMxMDEgMCwwLjI5OSAwLjEwNDM0MTksMC41NzExIDAuMjcyOTQ5MiwwLjc5MTYgMC4yMDkxMDI0LDAuMTQxMiAwLjQ2NTYyMDYsMC4yMTgzIDAuNzM2OTYyOSwwLjIxODMgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjUgMS4zMTAxNTYzLC0xLjMxMDEgMCwtMC4yNzE0IC0wLjA3NzA5MywtMC41Mjc5IC0wLjIxODM1OTQsLTAuNzM3IC0wLjIyMDQ5NDEsLTAuMTY4NiAtMC40OTI1NDQzLC0wLjI3MjkgLTAuNzkxNTUyOCwtMC4yNzI5IHoiLz4gIDwvZz4gIDxnICAgICBzdHlsZT0iZGlzcGxheTppbmxpbmUiPiAgICA8cGF0aCAgICAgICBzdHlsZT0iZmlsbDojZmZmZmZmO2ZpbGwtb3BhY2l0eToxO2ZpbGwtcnVsZTpldmVub2RkO3N0cm9rZTpub25lIiAgICAgICBkPSJtIDguMjE1NzcxNSwwLjI3Mjk0OTIyIGMgMC4xNDEyNjY3LDAuMjA5MTAyMjkgMC4yMTgzNTk0LDAuNDY1NjIwNjUgMC4yMTgzNTk0LDAuNzM2OTYyODggMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDc2IC0wLjIwNTUxNzYsLTAuNzk3Nzk2NTkgLTAuNTE4NjAzNSwtMS4wMzcyMDY5OCB6IG0gMCwzLjA4NDMyNjE4IGMgMC4xNDEyNjY3LDAuMjA5MTAyMyAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MiAtMS4zMTAxNTYzLDEuMzEwMTU2MiAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTkzIDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY3IC0wLjUxODYwMzUsLTEuMDM3MjA3IHogbSAtMy4wODQzMjYyLDAgYyAwLjE0MTI2NjcsMC4yMDkxMDIzIDAuMjE4MzU5NCwwLjQ2NTYyMDYgMC4yMTgzNTk0LDAuNzM2OTYyOSAwLDAuNzIzNTc5MyAtMC41ODY1NzcsMS4zMTAxNTYyIC0xLjMxMDE1NjMsMS4zMTAxNTYyIC0wLjI3MTM0MjIsMCAtMC41Mjc4NjA1LC0wLjA3NzA5MyAtMC43MzY5NjI5LC0wLjIxODM1OTMgMC4yMzk0MTA0LDAuMzEzMDg1OSAwLjYxMjYzNjMsMC41MTg2MDM1IDEuMDM3MjA3MSwwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYyLC0wLjU4NjU3NyAxLjMxMDE1NjIsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NSwtMC43OTc3OTY3IC0wLjUxODYwMzUsLTEuMDM3MjA3IHogTSAyLjEwMTcwOSw2LjM4NzAxMTcgYyAwLjE0MTI2NjcsMC4yMDkxMDI0IDAuMjE4MzU5NCwwLjQ2NTYyMDYgMC4yMTgzNTk0LDAuNzM2OTYyOSAwLDAuNzIzNTc5MyAtMC41ODY1NzcsMS4zMTAxNTYzIC0xLjMxMDE1NjMsMS4zMTAxNTYzIC0wLjI3MTM0MjIzLDAgLTAuNTI3ODYwNTksLTAuMDc3MDkzIC0wLjczNjk2Mjg4LC0wLjIxODM1OTQgMC4yMzk0MTAzOSwwLjMxMzA4NTkgMC42MTI2MzYyMiwwLjUxODYwMzUgMS4wMzcyMDY5OCwwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHogbSAzLjAyOTczNjMsMCBjIDAuMTQxMjY2NywwLjIwOTEwMjQgMC4yMTgzNTk0LDAuNDY1NjIwNiAwLjIxODM1OTQsMC43MzY5NjI5IDAsMC43MjM1NzkzIC0wLjU4NjU3NywxLjMxMDE1NjMgLTEuMzEwMTU2MywxLjMxMDE1NjMgLTAuMjcxMzQyMiwwIC0wLjUyNzg2MDUsLTAuMDc3MDkzIC0wLjczNjk2MjksLTAuMjE4MzU5NCAwLjIzOTQxMDQsMC4zMTMwODU5IDAuNjEyNjM2MywwLjUxODYwMzUgMS4wMzcyMDcxLDAuNTE4NjAzNSAwLjcyMzU3OTMsMCAxLjMxMDE1NjIsLTAuNTg2NTc3IDEuMzEwMTU2MiwtMS4zMTAxNTYzIDAsLTAuNDI0NTcwOCAtMC4yMDU1MTc1LC0wLjc5Nzc5NjYgLTAuNTE4NjAzNSwtMS4wMzcyMDcgeiBtIDMuMDg0MzI2MiwwIGMgMC4xNDEyNjY3LDAuMjA5MTAyNCAwLjIxODM1OTQsMC40NjU2MjA2IDAuMjE4MzU5NCwwLjczNjk2MjkgMCwwLjcyMzU3OTMgLTAuNTg2NTc3LDEuMzEwMTU2MyAtMS4zMTAxNTYzLDEuMzEwMTU2MyAtMC4yNzEzNDIzLDAgLTAuNTI3ODYwNSwtMC4wNzcwOTMgLTAuNzM2OTYyOSwtMC4yMTgzNTk0IDAuMjM5NDEwNCwwLjMxMzA4NTkgMC42MTI2MzYyLDAuNTE4NjAzNSAxLjAzNzIwNywwLjUxODYwMzUgMC43MjM1NzkzLDAgMS4zMTAxNTYzLC0wLjU4NjU3NyAxLjMxMDE1NjMsLTEuMzEwMTU2MyAwLC0wLjQyNDU3MDggLTAuMjA1NTE3NiwtMC43OTc3OTY2IC0wLjUxODYwMzUsLTEuMDM3MjA3IHoiIC8+ICA8L2c+PC9zdmc+);background-repeat:no-repeat;background-position:100% 100%;pointer-events:auto!important}.os-host-rtl>.os-scrollbar-corner.os-scrollbar-corner-resize{-webkit-transform:scale(-1,1);transform:scale(-1,1)}.os-host-overflow{overflow:hidden!important}.os-theme-none>.os-scrollbar-corner,.os-theme-none>.os-scrollbar-horizontal,.os-theme-none>.os-scrollbar-vertical{display:none!important}.os-theme-none>.os-scrollbar-corner-resize{display:block!important;min-width:10px;min-height:10px}.os-theme-dark>.os-scrollbar-horizontal,.os-theme-light>.os-scrollbar-horizontal{right:5px;height:2px;left:10px;cursor:pointer}.os-theme-dark>.os-scrollbar-vertical,.os-theme-light>.os-scrollbar-vertical{bottom:10px;width:2px}.os-theme-dark.os-host-rtl>.os-scrollbar-horizontal,.os-theme-light.os-host-rtl>.os-scrollbar-horizontal{left:10px;right:0}.os-theme-dark>.os-scrollbar-corner,.os-theme-light>.os-scrollbar-corner{height:10px;width:10px;background-color:transparent}.os-theme-dark>.os-scrollbar,.os-theme-light>.os-scrollbar{box-sizing:border-box;background:0 0}.os-theme-dark>.os-scrollbar.os-scrollbar-unusable,.os-theme-dark>.os-scrollbar>.os-scrollbar-track,.os-theme-light>.os-scrollbar.os-scrollbar-unusable,.os-theme-light>.os-scrollbar>.os-scrollbar-track{background:0 0}.os-theme-dark>.os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle,.os-theme-light>.os-scrollbar-horizontal>.os-scrollbar-track>.os-scrollbar-handle{min-width:30px}.os-theme-dark>.os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle,.os-theme-light>.os-scrollbar-vertical>.os-scrollbar-track>.os-scrollbar-handle{min-height:30px}.os-theme-dark.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle,.os-theme-light.os-host-transition>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{-webkit-transition:background-color .3s;transition:background-color .3s}.os-theme-dark>.os-scrollbar>.os-scrollbar-track,.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle,.os-theme-light>.os-scrollbar>.os-scrollbar-track,.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{border-radius:10px}.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(0,0,0,.4)}.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(255,255,255,.4)}.os-theme-dark>.os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(0,0,0,.55)}.os-theme-light>.os-scrollbar:hover>.os-scrollbar-track>.os-scrollbar-handle{background:rgba(255,255,255,.55)}.os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle.active{background:rgba(0,0,0,.7)}.os-theme-light>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle.active{background:rgba(255,255,255,.7)}.os-theme-dark>.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark>.os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light>.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light>.os-scrollbar-vertical .os-scrollbar-handle:before{content:'';position:absolute;left:0;right:0;top:0;bottom:0;display:block}.os-theme-dark.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-dark.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-horizontal-hidden>.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light.os-host-scrollbar-vertical-hidden>.os-scrollbar-vertical .os-scrollbar-handle:before{display:none}.os-theme-dark>.os-scrollbar-horizontal .os-scrollbar-handle:before,.os-theme-light>.os-scrollbar-horizontal .os-scrollbar-handle:before{top:-6px;bottom:-2px}.os-theme-dark>.os-scrollbar-vertical .os-scrollbar-handle:before,.os-theme-light>.os-scrollbar-vertical .os-scrollbar-handle:before{left:-6px;right:-2px}.os-host-rtl.os-theme-dark>.os-scrollbar-vertical .os-scrollbar-handle:before,.os-host-rtl.os-theme-light>.os-scrollbar-vertical .os-scrollbar-handle:before{right:-6px;left:-2px}
assets/css/page-post-media.min.css CHANGED
@@ -1 +1 @@
1
- .folder-custom-menu{width:275px;z-index:10001;position:absolute;height:100%;border-right:solid 1px #ddd;background:#f1f1f1;direction:ltr;top:0}.folder-modal .media-frame .media-frame-content,.folder-modal .media-frame .media-frame-router,.folder-modal .media-frame .media-frame-title,.folder-modal .media-frame .media-frame-toolbar{left:275px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.media-frame a.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}span.folder-loader-ajax{float:right;margin:0;line-height:30px;display:none}.folder-loader-ajax.active{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:30px;height:34px;padding:0;display:none;float:left}#successAnimation.active{display:inline-block}.folder-loader-ajax img{display:none}#successAnimation.animated{-webkit-animation:1s ease-out 0s 1 both scaleAnimation;animation:1s ease-out 0s 1 both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCircle,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) 0s 1 both drawCheck,.3s linear .9s 1 both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.form-options{background:#fff;padding:5px;margin:0 0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.wcp-container ul{list-style:none}.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 7px;color:#000;vertical-align:middle;margin:0;background:#f1f1f1;border-radius:4px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.media-frame .wcp-hide-show-buttons{display:none}.folder-order{position:relative}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.folder-sort-menu{position:absolute;left:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.folder-sort-menu.is-pro{width:170px}.folder-sort-menu.is-pro a span{display:inline-block;color:#ff5983;font-weight:500}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}.folder-sort-menu a.pro-feature span{display:inline-block;color:#ff5983;font-weight:500}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:all 2.5s linear;-webkit-transition:all 2s linear;-moz-transition:all 2.5s linear}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;font-size:14px;border-radius:4px;line-height:18px}.header-posts a.active-item,.orange-bg>span,.un-categorised-items.active-item,.wcp-container .route.active-item>h3.title{background-color:#fa166b!important;color:#fff}.header-posts a.active-item span.total-count,.un-categorised-items.active-item span.total-count,.wcp-container .route.active-item>h3.title span.total-count{color:#fff!important}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}span.total-count{float:right;font-size:12px;line-height:16px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px;color:#444}.un-categorised-items.active-item a,.un-categorised-items.active-item a:hover{color:#fff}.un-categorised-items a:hover,.un-categorised-items:hover a{color:#444}.media-frame .folder-custom-menu a:focus{outline:0;box-shadow:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}div#custom-menu{padding:10px;background:#fff;box-shadow:0 4px 21px rgba(7,16,28,.1)}.wcp-container .space{position:relative;list-style-type:none;border:0;margin:0 0 0 20px;padding:0 0 30px 0;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:0;top:0;padding:0}.wcp-container .route{position:relative;list-style-type:none;border:0;margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat;text-align:center}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}#custom-menu .wcp-icon{font-size:16px!important;line-height:24px}#custom-menu input.checkbox{display:none}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;font-size:16px;line-height:30px;height:30px;width:calc(100% - 100px);overflow:hidden;white-space:nowrap;text-align:left}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-]{font-size:12px}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.wcp-container .route.is-sticky>h3.title .folder-sticky-icon,.wcp-container .route.is-sticky>h3.title .move-folder-icon{display:block}.nav-icon{display:none;left:-10px!important;cursor:pointer}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:all .25s linear}.header-posts a,.un-categorised-items a,.wcp-container .route span.title-text{font-size:12px}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}.has-sub-tree>.nav-icon{display:block}.has-sub-tree>ul.ui-sortable li{display:none}.has-sub-tree.active>ul.ui-sortable>li{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon{display:none!important}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:inline-block}.dynamic-menu{position:fixed;left:50px;background:#fff;width:235px;padding:0;z-index:9000009;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);font-size:13px}.dynamic-menu.no-key{width:195px}.dynamic-menu ul{margin:0;padding:0}.dynamic-menu li{position:relative;width:100%;display:block!important;padding:2px 0;margin:0}.dynamic-menu li.new-folder{border-bottom:solid 1px #d8d8d8}.dynamic-menu a{text-decoration:none;color:#333;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-weight:400;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:18px;text-align:center}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}#custom-menu .dynamic-menu ul>li>a .sticky-pin i{font-size:16px!important}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}li.active-menu{z-index:2!important}.dynamic-menu a.active,.dynamic-menu a:hover{background:#efefef;color:#000}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px 0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848;outline:0}.highlight{background-color:#e4f2fd;color:#000}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s ease all;transition:.3s ease all;color:#484848}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px 0}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0}.folder-form-buttons .form-cancel-btn,.folder-form-buttons a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.folder-form-buttons a.inline-button{display:inline-block;color:#f51366;text-decoration:none;font-weight:500}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover{color:#f51366}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.form-submit-btn,.form-submit-btn:hover{background-color:#3085d6;color:#fff!important;outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}#no-more-folder-credit .folder-form-message{margin:20px 80px;font-size:14px}.folder-form-message{padding:25px 70px;font-size:15px;line-height:18px;color:#484848;width:310px}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:fa-spin .75s infinite linear;animation:fa-spin .75s infinite linear;padding:7px}.wcp-container .folder-tooltip{position:relative}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.folder-order.active .folder-sort-menu{display:block}.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.media-toolbar-secondary select{width:30%!important;width:calc(30% - 10px)!important;margin:32px 10px 0 0!important}.media-frame .uploader-inline{z-index:1}.wcp-drop-hover{background:#fa166b!important;z-index:2!important;color:#fff!important}.wcp-drop-hover i{color:#fff!important}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px;z-index:10001!important}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0);-webkit-transform:rotate(0)}.expand-collapse.all-open span.icon{transform:rotate(180deg);-webkit-transform:rotate(180deg)}.folder-search-form{padding:0 0 10px 0;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb!important;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px!important;width:100%!important;box-shadow:none!important;outline:0}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px 0}.wcp-drop-hover i{color:#fff!important}.ui-draggable-dragging{z-index:10051!important}.attachments.ui-sortable.ui-draggable-dragging{z-index:10001!important}#custom-menu.has-filter li.route{display:none!important}#custom-menu.has-filter li.route.has-search{display:block!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.form-options>ul>li>a:hover{background:#404040;color:#fff}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0 0}#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img{display:none!important}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!important}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}.dynamic-menu.bottom-fix{bottom:0}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:solid 1px #e9e5e5}.sticky-folders.active{display:block}.plugin-title{display:inline-block}.plugin-button{float:right}.plugin-button.d-block{float:none}.plugin-title{display:inline-block}.form-options .form-options{padding:0;margin:0;box-shadow:none}.attachments-browser .media-toolbar-secondary{width:78%;max-width:inherit}.media-toolbar-primary.search-form{width:20%;max-width:inherit}body .media-frame.hide-menu .media-frame-menu{display:block}.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:275px!important}.media-frame-menu.has-folder-menu{width:275px!important}.folder-modal .media-frame:not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,.media-frame:not(.hide-router) .media-frame-content{left:275px!important}.media-frame-menu.has-folder-menu .folder-custom-menu{position:relative;border:none;width:100%;height:auto}.media-frame.mode-select.hide-router .media-frame-content,.media-frame.mode-select.hide-router .media-frame-router,.media-frame.mode-select.hide-router .media-frame-title,.media-frame.mode-select.hide-router .media-frame-toolbar{left:275px!important}.media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter{display:none}.media-frame.mode-select.hide-router .folder-custom-menu{display:none}html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .media-frame.hide-menu .media-frame-content,html[dir=rtl] .media-frame.hide-menu .media-frame-router,html[dir=rtl] .media-frame.hide-menu .media-frame-title,html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar{left:0!important;right:275px!important}html[dir=rtl] .folder-modal .media-frame .media-frame-router,html[dir=rtl] .folder-modal .media-frame .media-frame-title,html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar,html[dir=rtl] .media-frame .folder-modal .media-frame-content{left:0!important;right:275px!important}html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,html[dir=rtl] .media-frame:not(.hide-router) .media-frame-content{left:0!important;right:275px!important}.media-frame .sticky-folders>ul>li{position:relative}#vakata-dnd{z-index:10000000!important}.dynamic-menu.is-locked .remove-folder{background:#ececec}.dynamic-menu.is-locked .remove-folder a{cursor:no-drop}.jstree-node.is-locked,.jstree-node.is-locked a{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;user-drag:none;-webkit-user-drag:none;-o-user-drag:none;-moz-user-drag:none}.jstree-node.is-locked i.pfolder-folder-close{cursor:not-allowed}.add-folder-note{font-size:13px;padding:20px 0 0}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.close-popup-button a:hover span{transform:rotate(180deg)}.popup-form-data{position:relative}a#remove-folder-item{border:solid 1px #860000;background-color:#d40000;outline:0;box-shadow:none}.pro-notice{text-align:center;padding:0 0 0 5px}.folder-form-buttons a.inline-button{display:inline-block}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}select#media-attachment-dynamic-filter{display:none!important}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}.dynamic-tree-data{display:none;padding:5px 0 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox{display:none!important}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:all .25s linear;z-index:1001}.folders-undo-notification.active{right:25px}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px 0}.folders-undo-body{font-size:13px;padding:0 0 5px 0}.folders-undo-footer{text-align:right;padding:5px 0 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.folders-undo-body{position:relative}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:all .25s linear}.close-undo-box:hover{transform:rotate(180deg)}.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-undo-box span:after,.close-undo-box span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-undo-box span:after{transform:rotate(-45deg)}#custom-scroll-menu .mCSB_container{background:#fff}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px 0}.form-options>ul>li>a.expand-collapse{width:14px;text-align:center}.form-options a.expand-collapse span.icon{font-size:8px}.image-details .media-frame,.image-details .media-frame .attachments-browser,.image-details .media-frame-content{overflow:hidden}.image-details .media-frame.mode-select.hide-router .media-frame-content,.image-details .media-frame.mode-select.hide-router .media-frame-router,.image-details .media-frame.mode-select.hide-router .media-frame-title,.image-details .media-frame.mode-select.hide-router .media-frame-toolbar{left:0!important}.image-details .media-frame.mode-select.hide-router .media-frame-content{overflow:auto}body .folder-modal.image-details .media-frame-menu{display:none}
1
+ #custom-menu .dynamic-menu ul>li>a .sticky-pin i,#custom-menu .wcp-icon{font-size:16px!important}.folder-custom-menu{width:275px;z-index:10001;position:absolute;height:100%;border-right:1px solid #ddd;background:#f1f1f1;direction:ltr;top:0}.folder-modal .media-frame .media-frame-content,.folder-modal .media-frame .media-frame-router,.folder-modal .media-frame .media-frame-title,.folder-modal .media-frame .media-frame-toolbar{left:275px}.wcp-container{padding:20px 20px 20px 16px}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px;line-height:29px;min-height:36px}.media-frame a.add-new-folder{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:1px solid #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:24px;font-size:14px;margin-right:5px}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}span.folder-loader-ajax{float:right;margin:0;line-height:30px;display:none}#successAnimation.active,.folder-loader-ajax.active,.plugin-title,.sticky-folders li.is-high a span.star-icon,.wcp-container .route.is-high>h3>span.star-icon{display:inline-block}@-webkit-keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes scaleAnimation{0%{opacity:0;-webkit-transform:scale(1.5);transform:scale(1.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@keyframes drawCircle{0%{stroke-dashoffset:151px}100%{stroke-dashoffset:0}}@-webkit-keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@keyframes drawCheck{0%{stroke-dashoffset:36px}100%{stroke-dashoffset:0}}@-webkit-keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@keyframes fadeOut{0%{opacity:1}100%{opacity:0}}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}#successAnimationCircle{stroke-dasharray:151px 151px;stroke:#2ce0a7}#successAnimationCheck{stroke-dasharray:36px 36px;stroke:#2ce0a7}#successAnimationResult{fill:#2ce0a7;opacity:0}svg#successAnimation{width:30px;height:34px;padding:0;display:none;float:left}#custom-menu input.checkbox,.folder-loader-ajax img,.has-sub-tree>ul.ui-sortable li,.media-frame .wcp-hide-show-buttons,.media-frame.mode-select.hide-router .folder-custom-menu,.media-frame.mode-select.hide-router select#media-attachment-taxonomy-filter,body .folder-modal.image-details .media-frame-menu{display:none}#successAnimation.animated{-webkit-animation:1s ease-out both scaleAnimation;animation:1s ease-out both scaleAnimation}#successAnimation.animated #successAnimationCircle{-webkit-animation:1s cubic-bezier(.77,0,.175,1) both drawCircle,.3s linear .9s both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) both drawCircle,.3s linear .9s both fadeOut}#successAnimation.animated #successAnimationCheck{-webkit-animation:1s cubic-bezier(.77,0,.175,1) both drawCheck,.3s linear .9s both fadeOut;animation:1s cubic-bezier(.77,0,.175,1) both drawCheck,.3s linear .9s both fadeOut}#successAnimation.animated #successAnimationResult{-webkit-animation:.3s linear .9s both fadeIn;animation:.3s linear .9s both fadeIn}.form-options{background:#fff;padding:5px;margin:0;border-radius:4px;box-shadow:0 4px 21px rgba(7,16,28,.1)}.wcp-container ul{list-style:none}.dynamic-menu ul,.form-options ul{margin:0;padding:0}.form-options>ul>li{display:inline-block;margin:0 2px 0 0;vertical-align:top}.form-options>ul>li.last{margin:0}.form-options>ul>li.last.folder-checkbox{padding:5px 0 0}.form-options>ul>li>a{display:inline-block;text-decoration:none;padding:5px 7px;color:#000;vertical-align:middle;margin:0;background:#f1f1f1;border-radius:4px}.form-options span.icon{font-size:12px;display:inline-block;vertical-align:baseline;color:#a4c0d2}.folder-order,.media-frame .sticky-folders>ul>li,.popup-form-data,.wcp-container .folder-tooltip{position:relative}.form-options>ul>li.last>a.sort-folder-order{width:28px;padding:5px;text-align:center;display:inline-block;box-sizing:border-box}.folder-sort-menu{position:absolute;left:0;width:120px;z-index:101;background:#fff;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);display:none}.top-settings,div#custom-menu{box-shadow:0 4px 21px rgba(7,16,28,.1)}.folder-sort-menu a.pro-feature span,.folder-sort-menu.is-pro a span{display:inline-block;color:#ff5983;font-weight:500}.folder-sort-menu li{display:block;margin:0;padding:0;background:0 0}.folder-sort-menu li a{display:block;margin:0;padding:3px 5px;background:0 0;color:#848484;text-decoration:none;font-size:14px}.folder-sort-menu.is-pro{width:140px}.folder-sort-menu a.pro-feature{color:#848484}span.upgrade-message{padding:0;background:#fff;display:inline-block;font-size:12px;color:#000}span.upgrade-message a.pink,span.upgrade-message span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-loader{width:100%;height:5px;margin:0 0 10px}.form-loader-count{width:0;height:5px;background:url(../images/form-loader.png);transition:2.5s linear;-webkit-transition:2s linear;-moz-transition:2.5s linear}.top-settings{background:#fff;padding:10px 10px 5px;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;display:block;text-decoration:none;border-radius:4px;line-height:18px}#custom-menu.has-filter li.route.has-search,.dynamic-menu li{display:block!important}.header-posts a.active-item,.orange-bg>span,.un-categorised-items.active-item,.wcp-container .route.active-item>h3.title{background-color:#fa166b!important;color:#fff}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span,.un-categorised-items.active-item span.total-count,.wcp-container .route.active-item>h3.title span.total-count,.wcp-drop-hover i{color:#fff!important}.wcp-icon{display:inline-block;font-size:16px;vertical-align:top;margin-right:3px}span.total-count{float:right;font-size:12px;line-height:16px}.header-posts a:hover,.un-categorised-items.active-item,.un-categorised-items:hover{background:rgba(250,22,107,.08);border-radius:4px;color:#444}.wcp-container .route,.wcp-container .space{list-style-type:none;border:0;position:relative}.un-categorised-items.active-item a,.un-categorised-items.active-item a:hover{color:#fff}.un-categorised-items a:hover,.un-categorised-items:hover a{color:#444}.media-frame .folder-custom-menu a:focus{outline:0;box-shadow:none}.sticky-title{font-size:16px;font-weight:700;padding:7px}div#custom-menu{padding:10px;background:#fff}.wcp-container .space{margin:0 0 0 20px;padding:0 0 30px;width:40px;top:30px;height:100%;z-index:1}.wcp-container .first-space{margin-left:0;top:0;padding:0}.wcp-container .route{margin:0;padding:0;top:0;max-height:100%!important;width:100%;border-radius:2px;z-index:-1;background:0 0}.wcp-container .route .title{position:absolute;border:0;margin:0;padding:0;height:30px;width:200px;text-indent:28px;background:0 0;box-shadow:none;font-size:13px;line-height:26px;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;overflow:hidden;font-weight:400}.wcp-container .route span{position:absolute;top:2px;left:0;z-index:10;width:20px;height:18px;text-indent:0;font-size:20px;background:no-repeat;text-align:center}.wcp-container .route span.ui-icon{line-height:24px;font-size:18px;cursor:move;left:5px;top:2px;height:26px}#custom-menu .wcp-icon{line-height:24px}.wcp-container .route span.title-text{position:relative;top:auto;left:auto;display:inline-block;line-height:30px;height:30px;width:calc(100% - 100px);overflow:hidden;white-space:nowrap;text-align:left}#custom-menu [class*=" pfolder-"],#custom-menu [class^=pfolder-],.header-posts a,.un-categorised-items a,.wcp-container .route span.title-text{font-size:12px}.wcp-container .route .title .folder-sticky-icon,.wcp-container .route .title .move-folder-icon{float:right;position:relative;top:0;left:auto;width:20px;height:30px;line-height:26px;display:none}.folder-order.active .folder-sort-menu,.has-sub-tree.active>ul.ui-sortable>li,.has-sub-tree>.nav-icon,.sticky-folders.active,.wcp-container .route.is-sticky>h3.title .folder-sticky-icon,.wcp-container .route.is-sticky>h3.title .move-folder-icon,body .media-frame.hide-menu .media-frame-menu,body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .move-folder-icon,body:not(.no-hover-css) .wcp-container .route .title:hover .move-folder-icon{display:block}.nav-icon{display:none;left:-10px!important;cursor:pointer}#custom-menu .route .nav-icon .wcp-icon{font-size:9px!important;color:#fa166b;font-weight:700;transform:rotate(-90deg);transition:.25s linear}.wcp-container .route span.total-count{position:relative;font-size:10px;float:right;text-align:center;width:auto;display:block;margin:4px 8px 3px 3px;color:#23282d!important;line-height:16px;height:16px}body:not(.no-hover-css) .wcp-container .route .title:hover{background:rgba(250,22,107,.08);cursor:pointer}#custom-menu.has-filter li.route,#custom-menu.show-folder-checkbox h3.title>.ui-icon>i,#custom-menu.show-folder-checkbox h3.title>.ui-icon>img,.dynamic-folders .folder-actions,.dynamic-folders .folder-checkbox,body:not(.no-hover-css) .wcp-container .route .title:hover>.folder-sticky-icon,body:not(.no-hover-css) .wcp-container .route .title:hover>.star-icon,select#media-attachment-dynamic-filter{display:none!important}body:not(.no-hover-css) .sticky-folders li a:hover span.update-inline-record,body:not(.no-hover-css) .wcp-container .route h3:hover>span.update-inline-record{width:18px}body:not(.no-hover-css) .wcp-container .route .title.wcp-drop-hover .ui-icon .pfolder-folder-close:before,body:not(.no-hover-css) .wcp-container .route .title:hover .ui-icon .pfolder-folder-close:before{content:"\e901"!important}.dynamic-menu{position:fixed;left:50px;background:#fff;width:235px;padding:0;z-index:9000009;-webkit-box-shadow:0 0 5px 0 rgba(0,0,0,.25);-moz-box-shadow:0 0 5px 0 rgba(0,0,0,.25);box-shadow:0 0 5px 0 rgba(0,0,0,.25);font-size:13px}.dynamic-menu.no-key{width:195px}.dynamic-menu li{position:relative;width:100%;padding:2px 0;margin:0}.dynamic-menu li.new-folder{border-bottom:1px solid #d8d8d8}.dynamic-menu a{text-decoration:none;color:#333;position:relative;display:block;padding:5px 10px;line-height:18px;white-space:nowrap;font-weight:400;font-size:13px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.dynamic-menu ul>li>a>span,.dynamic-menu ul>li>a>span span{position:relative!important;display:inline-block;vertical-align:middle;margin-right:5px;top:auto!important;width:20px!important;height:20px!important;line-height:18px;text-align:center}#custom-menu .dynamic-menu ul>li>a .sticky-pin{line-height:20px}.dynamic-menu ul>li>a>span.dashicons{font-size:18px;text-align:left}li.active-menu{z-index:2!important}.dynamic-menu a.active,.dynamic-menu a:hover,.folder-sort-menu li a.active,.folder-sort-menu li a:hover{background:#efefef;color:#000}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-update-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-group{position:relative;margin:45px auto 15px;padding:0 2px}.folder-group input,.folder-group textarea{background:0 0;font-size:14px;padding:0 0 0 15px;display:block;width:100%;border-radius:4px;border:1px solid #484848;height:34px;line-height:34px;color:#484848;outline:0}.highlight{background-color:#e4f2fd;color:#000}.folder-group .folder-bar{position:relative;display:block;width:320px}.folder-group label{font-size:14px;font-weight:500;position:absolute;pointer-events:none;left:20px;top:10px;-webkit-transition:.3s;transition:.3s;color:#484848}.folder-form-errors{margin:0 0 10px;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons.pro-message{padding:0 0 20px}.folder-form-buttons a:not(.inline-button),.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:10px 3px;border-radius:4px;border:1px solid #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0}.folder-form-buttons .form-cancel-btn,.folder-form-buttons a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.folder-form-buttons a.inline-button{color:#f51366;text-decoration:none;font-weight:500;display:inline-block}.folder-form-buttons a.inline-button:focus,.folder-form-buttons a.inline-button:hover{color:#f51366}.form-submit-btn,.form-submit-btn:hover{background-color:#3085d6;color:#fff!important;outline:0}.folder-group input:focus~label,.folder-group input:valid~label,.folder-group textarea:focus~label,.folder-group textarea:valid~label{top:-9px;background:#fff;padding:0 5px;font-weight:400;font-size:12px;line-height:14px;color:#aeaeae}#no-more-folder-credit .folder-form-message{margin:20px 80px;font-size:14px}.folder-form-message{padding:25px 70px;font-size:15px;line-height:18px;color:#484848;width:310px}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.folder-form-buttons a span,.folder-form-buttons button span{-webkit-animation:.75s linear infinite fa-spin;animation:.75s linear infinite fa-spin;padding:7px}.wcp-container .folder-tooltip::after,.wcp-container .folder-tooltip::before{text-transform:none;font-size:.9em;line-height:1;user-select:none;pointer-events:none;position:absolute;display:none;opacity:0}.wcp-container .folder-tooltip::before{content:'';border:5px solid transparent;z-index:1001}.wcp-container .folder-tooltip::after{content:attr(data-folder-tooltip);font-family:Helvetica,sans-serif;text-align:center;min-width:3em;max-width:21em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:1ch 1.5ch;border-radius:.3ch;box-shadow:0 1em 2em -.5em rgba(0,0,0,.35);background:#333;color:#fff;z-index:1000}.wcp-container .folder-tooltip:hover::after,.wcp-container .folder-tooltip:hover::before{display:block;opacity:1}.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::before{bottom:100%;border-bottom-width:0;border-top-color:#333}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip[flow^=up]::after{bottom:calc(100% + 5px)}.wcp-container .folder-tooltip:not([flow])::after,.wcp-container .folder-tooltip:not([flow])::before,.wcp-container .folder-tooltip[flow^=up]::after,.wcp-container .folder-tooltip[flow^=up]::before{left:50%;transform:translate(-50%,-.5em)}.media-toolbar-secondary select{width:30%!important;width:calc(30% - 10px)!important;margin:32px 10px 0 0!important}.media-frame .uploader-inline{z-index:1}.wcp-drop-hover{background:#fa166b!important;z-index:2!important;color:#fff!important}.attachments.ui-sortable.ui-draggable-dragging,.selected-items{z-index:10001!important}.selected-items{background:#0073aa;color:#fff;padding:10px 20px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;margin-top:0;cursor:none;font-size:12px}.media-frame,.media-frame .attachments-browser,.media-frame-content{overflow:inherit}#custom-menu .route.active .nav-icon .wcp-icon{transform:rotate(0);-webkit-transform:rotate(0)}.expand-collapse.all-open span.icon{transform:rotate(180deg);-webkit-transform:rotate(180deg)}.folder-search-form{padding:0 0 10px;position:relative}.folder-search-form input{background:#fff;border:1px solid #dbdbdb!important;box-sizing:border-box;border-radius:4px;height:32px;line-height:32px;box-sizing:border-box;padding:0 5px!important;width:100%!important;box-shadow:none!important;outline:0}.folder-search-form span{position:absolute;color:#aeaeae;right:0;top:0;height:32px;line-height:32px;width:32px;text-align:center}.folder-separator{padding:0 10px;height:1px;background:#e9e5e5;margin:0 0 10px}.ui-draggable-dragging{z-index:10051!important}#custom-menu.has-filter h3 span.title-text.has-search-text{font-weight:700}.form-options>ul>li>a:hover{background:#404040;color:#fff}#custom-menu.show-folder-checkbox input.checkbox{display:block;margin:5px 0 0}.mCSB_scrollTools a+.mCSB_draggerContainer{margin:10px 0!important}.mCS_no_scrollbar .mCSB_container.mCS_no_scrollbar_y.mCS_y_hidden{overflow:visible}.mCS-3d-dark.mCSB_scrollTools .mCSB_draggerRail,.mCS-3d.mCSB_scrollTools .mCSB_draggerRail{width:2px!important;background-color:transparent!important;box-shadow:none!important}.mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar{width:2px!important;background-color:#fa166b!important;margin:0 0 0 4px!important;padding:0!important}.mCSB_scrollTools{width:10px!important}.mCSB_inside>.mCSB_container{margin-right:0!important}#custom-menu .route.has-sub-tree.has-search>.nav-icon>.pfolder-arrow-down{transform:rotate(0)}.dynamic-menu.bottom-fix{bottom:0}.sticky-folders{display:none;padding:0;margin:10px 0 5px;border-top:1px solid #e9e5e5}.plugin-button{float:right}.plugin-button.d-block{float:none}.form-options .form-options{padding:0;margin:0;box-shadow:none}.attachments-browser .media-toolbar-secondary{width:78%;max-width:inherit}.media-toolbar-primary.search-form{width:20%;max-width:inherit}.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar,.folder-modal .media-frame:not(.hide-router) .media-frame-router,.folder-modal .media-frame:not(.hide-router) .media-frame-title,.folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,.media-frame.mode-select.hide-router .media-frame-content,.media-frame.mode-select.hide-router .media-frame-router,.media-frame.mode-select.hide-router .media-frame-title,.media-frame.mode-select.hide-router .media-frame-toolbar,.media-frame:not(.hide-router) .media-frame-content{left:275px!important}.media-frame-menu.has-folder-menu{width:275px!important}.media-frame-menu.has-folder-menu .folder-custom-menu{position:relative;border:none;width:100%;height:auto}html[dir=rtl] .folder-modal .media-frame .media-frame-router,html[dir=rtl] .folder-modal .media-frame .media-frame-title,html[dir=rtl] .folder-modal .media-frame .media-frame-toolbar,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-content,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-menu):not(.hide-router) .media-frame-toolbar,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-router,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-title,html[dir=rtl] .folder-modal .media-frame:not(.hide-router) .media-frame-toolbar,html[dir=rtl] .media-frame .folder-modal .media-frame-content,html[dir=rtl] .media-frame.hide-menu .media-frame-content,html[dir=rtl] .media-frame.hide-menu .media-frame-router,html[dir=rtl] .media-frame.hide-menu .media-frame-title,html[dir=rtl] .media-frame.hide-menu .media-frame-toolbar,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-content,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-router,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-title,html[dir=rtl] .media-frame.mode-select.hide-router .media-frame-toolbar,html[dir=rtl] .media-frame:not(.hide-router) .media-frame-content{left:0!important;right:275px!important}#vakata-dnd{z-index:10000000!important}.dynamic-menu.is-locked .remove-folder{background:#ececec}.dynamic-menu.is-locked .remove-folder a{cursor:no-drop}.jstree-node.is-locked,.jstree-node.is-locked a{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none;user-drag:none;-webkit-user-drag:none;-o-user-drag:none;-moz-user-drag:none}.jstree-node.is-locked i.pfolder-folder-close{cursor:not-allowed}.add-folder-note{font-size:13px;padding:20px 0 0}.close-popup-button{position:absolute;right:-10px;top:-10px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a span,.close-undo-box span{display:block;position:relative;width:16px;height:16px;transition:.2s linear}.close-popup-button a span:after,.close-popup-button a span:before,.close-undo-box span:after,.close-undo-box span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after,.close-undo-box span:after{transform:rotate(-45deg)}.close-popup-button a:hover span,.close-undo-box:hover{transform:rotate(180deg)}a#remove-folder-item{border:1px solid #860000;background-color:#d40000;outline:0;box-shadow:none}.pro-notice{text-align:center;padding:0 0 0 5px}span.pro-tip{display:block;width:80px;background:#7e3af2;padding:7px;height:20px;color:#fff;border-radius:4px}.dynamic-tree-data-separator{margin:7px 10px 10px;height:1px;background:#e9e5e5}.dynamic-tree-data{display:none;padding:5px 0 0}#dynamic-tree-folders{background:#fff;padding:0 10px 0 0}.folders-undo-notification{position:fixed;right:-500px;bottom:25px;width:280px;background:#fff;padding:15px;-webkit-box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);box-shadow:0 3px 6px -4px rgb(0 0 0 / 12%),0 6px 16px 0 rgb(0 0 0 / 8%),0 9px 28px 8px rgb(0 0 0 / 5%);transition:.25s linear;z-index:1001}.folders-undo-notification.active{right:25px}.folders-undo-header{font-weight:500;font-size:14px;padding:0 0 3px}.folders-undo-body{font-size:13px;padding:0 0 5px;position:relative}.folders-undo-footer{text-align:right;padding:5px 0 0}.folders-undo-footer .undo-button{background:#1da1f4;border:none;color:#fff;padding:3px 10px;font-size:12px;border-radius:2px;cursor:pointer}.close-undo-box{position:absolute;right:-10px;top:0;width:16px;height:16px;transition:.25s linear}#custom-scroll-menu .mCSB_container{background:#fff}.folder-separator-2{padding:0;height:1px;background:#e9e5e5;margin:0 0 5px}.form-options>ul>li>a.expand-collapse{width:14px;text-align:center}.form-options a.expand-collapse span.icon{font-size:8px}.image-details .media-frame,.image-details .media-frame .attachments-browser,.image-details .media-frame-content{overflow:hidden}.image-details .media-frame.mode-select.hide-router .media-frame-content,.image-details .media-frame.mode-select.hide-router .media-frame-router,.image-details .media-frame.mode-select.hide-router .media-frame-title,.image-details .media-frame.mode-select.hide-router .media-frame-toolbar{left:0!important}.image-details .media-frame.mode-select.hide-router .media-frame-content{overflow:auto}
assets/css/settings.css CHANGED
@@ -1 +1 @@
1
- @import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);span.upgrade-message{padding:5px 10px;background:#fff;display:inline-block;font-size:14px;color:#000}a.pink,span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-table{margin:0}#setting-form{font-family:Roboto,sans-serif}.form-table th{width:220px;font-weight:400;vertical-align:middle}.form-table th.default-folder{width:100px}.premio-help{text-align:center}.premio-help a{display:block;float:right}.premio-help a img{width:auto;height:auto}.hide-option{display:none}.accordion{max-width:1024px;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px;margin:0 0 20px 0}.accordion-header{background:#ebf1f4;padding:10px 15px;font-size:16px;cursor:pointer;border-radius:4px;color:#484848;font-weight:500}.accordion-header.active{border-radius:0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px}.accordion-header.active span{transform:rotate(180deg)}select.hide-show-option{width:170px}.sp-replacer.sp-light{padding:0!important;margin:0!important;border:solid 2px #fff!important;box-shadow:0 3px 7px rgba(149,149,150,.3);border-radius:4px}.sp-dd{display:none!important}.sp-preview{width:18px!important;height:18px!important;margin:0!important;padding:0!important;border:none!important}.form-table select{width:268px;border-radius:6px}.accordion-header span{float:right;width:20px;height:20px;line-height:22px;font-size:14px;background:#fff;border-radius:10px}.accordion-header span:hover{background:#1da1f4;color:#fff}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px 0;line-height:29px;min-height:36px}.add-new-folder,button.organize-button{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:solid 1px #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:26px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 10px 0 10px;margin:0 0;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px}.shadow-box{padding:10px;box-shadow:0 4px 21px rgba(7,16,28,.1);margin:20px 0 0 0}.accordion .separator{border-bottom:solid 1px #e9e5e5}.form-options ul{margin:0;padding:0}.form-options li{display:inline-block;margin:0;vertical-align:top}.form-options li a{display:inline-block;text-decoration:none;padding:5px 12px;color:#484848;vertical-align:middle;margin:0 0 10px 0;background:#f1f1f1;border-radius:4px;font-size:11px;line-height:20px}.form-options span.icon{font-size:14px;display:inline-block;vertical-align:top;line-height:20px;color:#a4c0d2}.form-options li.last{margin:0}.form-options li.last a{padding:5px 3px 3px;width:24px;text-align:center;height:22px;line-height:20px}.form-options li.last{font-size:28px;line-height:22px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;border-radius:3px;display:block;text-decoration:none;font-size:14px;line-height:18px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2;color:#fff}span.total-count{float:right;font-size:12px!important;line-height:16px;border-radius:2px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.media-buttons{padding:10px 0;background:#fff;text-align:center}.media-buttons button,.media-buttons select{width:48%;display:inline-block;margin:0 2% 0 0}.un-categorised-items{margin:0 0 10px 0}.header-posts{margin:10px 0 0 0}.add-new-folder:focus,.add-new-folder:hover,.organize-button:focus,.organize-button:hover{color:#fff}.add-new-folder:hover:after,.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.folder-list li a{color:#333;text-decoration:none;margin:0 0 1px 0;border-radius:3px;font-size:20px;display:block;line-height:18px}.folder-list li a i{display:inline-block;vertical-align:middle;font-size:14px}.folder-list li a span{font-size:16px;display:inline-block;vertical-align:middle}.preview-inner-box{padding:15px;width:300px;max-width:100%;float:left;background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px}.accordion-left{width:calc(100% - 215px);float:left}.accordion-right{width:205px;float:right}#customize-folders .accordion-left{width:calc(100% - 310px)}#customize-folders .accordion-right{width:305px}.preview-text{font-size:20px;padding:0 0 10px}.preview-text-info{padding:10px 0 0;font-size:12px;line-height:12px}.media-select option{color:#000}.media-select option:first-child{font-weight:700}.folder-popup{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100001;background:rgba(0,0,0,.75)}.folder-popup-box{padding:0;width:600px;max-width:100%;margin:auto;top:50%;position:absolute;left:0;right:0;border-radius:5px;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);text-align:center;background:#fcfcfc}.folder-popup-header{padding:15px;font-size:20px;border-bottom:solid 1px #e6e6e6}.folder-popup-content{background:#fff;padding:15px;font-size:14px;line-height:20px}.folder-popup-content iframe{margin:30px 0}.folder-popup-footer{padding:15px;border-top:solid 1px #e6e6e6}.folder-popup-footer button{border:none;padding:10px 20px;border-radius:4px;background:#00c478;color:#fff}.close-folder-popup{margin:0;padding:0;background:0 0;border:none;float:right;background:#000;border-radius:50%;color:#fff;text-align:center;width:24px;height:24px}.close-folder-popup span{line-height:24px}.wrap h1{margin:0 0 15px 0}.upgrade-btn{background:#fff;border:1px solid #1da1f4;box-sizing:border-box;border-radius:4px;height:34px;line-height:34px;padding:0 25px;display:inline-block;text-decoration:none;font-weight:700;color:#1da1f4}.upgrade-btn:hover{background:#1da1f4;color:#fff}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.custom-checkbox span{background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px;margin:0 auto;height:18px;width:18px;display:inline-block;vertical-align:middle;position:relative;color:#fff}.custom-checkbox input:disabled+span{background:#f0f0f0}.submit-button{padding:10px 0 0 0}.custom-checkbox input:checked+span{background:#1da1f4}.custom-checkbox input:checked+span:after{content:"\f147";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;text-decoration:inherit;font-size:14px}.custom-checkbox{display:inline-block}.form-table td.no-padding{padding:0}#folder-settings .form-table td.no-padding{width:20px}.form-table td{line-height:1}.custom-checkbox+label{display:inline-block;vertical-align:middle;font-size:14px;line-height:1;padding:0 5px 0 8px}ul.folder-list li{margin:0;line-height:32px;padding:0}ul.folder-list li a{padding:5px 10px}.un-categorised-items a:hover,ul.folder-list li a:hover{background:rgba(250,22,107,.08);border-radius:4px}.clear{clear:both}.form-options li .custom-checkbox{margin:5px 0 0 0}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.premio-help-btn{width:180px;text-align:center;padding:15px;border:1px solid #ebf1f4;box-sizing:border-box;border-radius:4px;float:right}.need-help{font-style:normal;font-weight:500;font-size:15px;line-height:18px;color:#484848}.visit-our{font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;color:#484848}.knowledge-base{font-style:normal;font-weight:400;font-size:14px;line-height:16px;text-align:center;color:#1da1f4;text-decoration:underline}.form-table td.default-folder{width:100px}.accordion-content.no-bp{padding-bottom:0!important}.folders-tabs{background:#fff;max-width:1024px;box-shadow:0 4px 21px rgba(7,16,28,.1);border-radius:4px;margin:0 0 20px 0}.folder-tab-menu{background:#ebf1f4;padding:5px 15px 0;font-size:16px;cursor:pointer;color:#484848;font-weight:500;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px}.folder-tab-menu ul{margin:0;padding:0}.folder-tab-menu ul li{display:inline-block;margin:0 1px 0 0}.folder-tab-menu ul li a{display:inline-block;padding:10px 15px;font-family:Roboto,sans-serif;text-decoration:none;font-size:16px;color:#484848;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px;border-top-left-radius:4px;border-top-right-radius:4px;outline:0;transition:all .2s ease-in-out}.folder-tab-menu ul li a.active,.folder-tab-menu ul li a:focus,.folder-tab-menu ul li a:hover{background:#fff;box-shadow:none;color:#000}.folder-tab-content{padding:15px}.folder-tab-content .tab-content{display:none;min-height:20vh}.folder-tab-content .tab-content.active{display:block}p.submit{margin:0;padding:0}.no-plugin-message p{font-size:14px;margin:0;padding:0}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none;font-family:Roboto,sans-serif}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;left:0;right:0;top:50%;transform:translate(0,-50%);-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848;max-width:80%;max-height:80vh;overflow:auto}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0 20px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-folder-note{padding:10px 0 30px;min-height:35px}.folder-form-errors{margin:0 0 10px 0;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:0 3px!important;border-radius:4px;border:solid 1px #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0;box-shadow:none}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.folder-form-buttons a.delete-button,.folder-form-buttons button.delete-button{border:solid 1px #860000;background-color:#d40000;color:#fff}.folder-form-buttons button:disabled{border:solid 1px #868686;background-color:#a5a5a5}.import-folder-table table{border-collapse:collapse;border:solid 1px silver}.import-folder-table td,.import-folder-table th{border:solid 1px silver;padding:10px 15px;text-align:left;font-size:14px;vertical-align:top}.import-folder-table th{width:220px}#import-third-party-plugin-data .import-folder-table th{width:120px}#import-third-party-plugin-data .import-folder-table td span.import-message{display:inline-block;margin:0 0 0 5px;line-height:30px}#import-third-party-plugin-data .popup-form-content{width:430px}.import-folder-table td span.import-message{display:block;margin:0 0 5px 0}.import-folder-table td button.button{margin:0 5px 0 0}.import-folder-table td button.button.remove-folder-data{background:0 0;border-color:transparent;color:#3c85f7}.import-folder-table td button.button.button-primary{background:#fff;color:#3c85f7;border:solid 1px #3c85f7}.import-folder-table td span.spinner{display:none}.import-folder-table td span.spinner.active{display:inline-block;visibility:visible;margin-right:0}.import-folder-table td span.import-message.success-import{background:#c6ffc6;padding:10px;color:green;margin:0 0 10px 0}.import-folder-table td span.import-message.error-import{background:#ffeded;padding:10px;color:red;margin:0 0 10px 0}.import-folder-title,.import-plugin-title,.remove-folder-title{font-size:16px;font-weight:700;padding:0 0 15px 0}.import-folder-note,.remove-folder-note{min-height:50px;padding:0 0 20px 0}button#remove-folder-button.delete-folder-plugin{color:#fff;background:#ca0000;border-color:#ca0000}.popup-content{position:relative}.close-popup-button{position:absolute;right:-10px;top:-2px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.close-popup-button a:hover span{transform:rotate(180deg)}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:all .2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.import-plugin-note{padding:0 0 20px 0}.import-folder-table table{width:100%;margin:0 0 20px 0}.import-plugin-footer{padding:0 30px 15px}.input-field label{display:block;font-weight:700;padding-bottom:5px}.license-key-footer{font-weight:700;padding-bottom:15px;font-size:16px;line-height:30px}input.license-key{width:100%;max-width:250px}.submit{text-align:left;max-width:100%;margin-top:0;padding-top:10px}.folder-error-message,.folder-success-message{background:#fff;margin:10px 0 10px 0;padding:10px 10px 10px 10px;border-left:solid 3px #dd4b39}.folder-success-message{border-left:solid 3px #00a65a}.folder-tab-content .separator{border-bottom:solid 1px #e9e5e5;margin:20px 0 10px}.folder-form-message{padding:30px 50px 40px}.folder-switch{display:inline-block;height:24px;line-height:24px;position:relative;padding:0 0 0 60px!important}.folder-switch input{display:none}.folder-slider{background-color:#ababab;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s;width:50px;height:24px}.folder-slider.round{border-radius:34px}.folder-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.2s;width:16px}.folder-slider.round:before{border-radius:50%}.folder-slider:after{content:"off";color:#fff;display:inline-block;padding:0 0 0 25px;font-size:14px;line-height:24px;position:absolute;left:0;top:0}input:checked+.folder-slider{background-color:#b91c1c}input:checked+.folder-slider:before{transform:translateX(26px)}input:checked+.folder-slider:after{padding:0 0 0 8px;content:"on"}.media-details{padding:5px 0 10px}.media-setting-box{display:none}.media-setting-box.active{display:block}.inline-checkbox+.inline-checkbox{padding:5px 0 0 0}.folder-danger-zone{max-width:610px;width:100%}.danzer-title{font-size:16px;font-weight:700;line-height:20px;color:#dc2626;margin:30px 0 0 0;display:block;padding:0}.danzer-title span{color:#dc2626}a.remove-folders-data{border:2px solid #b91c1c;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#b91c1c;font-weight:500}.remove-folders-data a{color:#d40000;font-weight:700;display:inline-block;vertical-align:middle}.media-setting-box .select2-container{width:100%!important}.media-setting-box li{margin:0;padding:0}.media-setting-box .select2-container .select2-search--inline .select2-search__field{margin:6px 0 0 0;padding:0;min-height:20px;height:20px}.folder-tooltip{display:inline-block;position:relative;vertical-align:middle}.folder-tooltip:after,.folder-tooltip:before{position:absolute;opacity:0;pointer-events:none;left:50%;content:"";color:#fff}.folder-tooltip:before{top:-8px;transform:translateX(-50%);height:10px;width:0;border-width:10px 5px 0;border-style:solid;border-color:#333 transparent transparent}.folder-tooltip:after{text-align:center;content:"" attr(data-title) "";font-size:11px;top:0;transform:translate(-50%,calc(-100% - 6px));padding:6px 20px;min-width:90px;background-color:#333;box-shadow:0 2px 4px rgba(0,0,0,.15);border-radius:6px;width:250px;white-space:break-spaces;line-height:16px;z-index:10001}.folder-tooltip:hover:after,.folder-tooltip:hover:before{opacity:1;pointer-events:auto}.folder-notification-title{padding:5px 0 0 0;font-weight:500}.folder-notification-note{padding:0 0 5px 0}.text-left{text-align:left}.input-box input{width:100%}.delete-confirmation-message{font-weight:500;color:#d00;padding-top:2px;min-height:20px;line-height:20px}.input-box{padding:3px 0 0}span.danger-info{color:#7f1d1d;font-weight:500;font-size:16px;line-height:27px;display:block}.import-export-table{width:100%}.import-export-table tr td{padding:0 0 10px 0;vertical-align:middle}.import-export-table tr td.last-td{width:100px;text-align:center;padding:0 0 0 20px}.folder-text span{color:#3c85f7;font-weight:500}span.folder-info{display:block;line-height:24px;font-size:18px;font-weight:500;vertical-align:middle;padding:0 0 5px 0}a.import-folders-button{border:2px solid #3c85f7;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#3c85f7;font-weight:500}a.contact-folders-button{border:2px solid #64748b;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#64748b;font-weight:500}#import-folders-popup .popup-form-content{width:500px}#import-folders-popup th{width:auto}#import-folders-popup td{width:250px}.no-more-plugins{display:none}.no-more-plugins.active{display:table-row}button.upgrade-link{display:inline-block;vertical-align:middle;background:#a07bf4;color:#fff;text-decoration:none;padding:2px 6px;font-size:11px;margin:0 0 0 5px;border-radius:4px;border:none;cursor:pointer}.send-user-to-pro:hover .normal-box{filter:blur(1.6px)}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#fff!important;cursor:default}.send-user-to-pro,.send-user-to-pro .normal-box{position:relative}.send-user-to-pro .upgrade-box{position:absolute;left:0;top:0;width:100%;text-align:center;height:100%;cursor:pointer;display:block}.send-user-to-pro .upgrade-box button{background:#1a75ff;color:#fff;text-decoration:none;border-radius:4px;display:none;position:absolute;top:50%;left:0;right:0;margin:0 auto;width:120px;transform:translate(0,-50%);border:none;padding:5px 0;cursor:pointer}.send-user-to-pro:hover .upgrade-box button{display:inline-block}a.upgrade-box-link{text-decoration:none;color:#333;display:inline-block;position:relative}a.upgrade-box-link>label{padding:0 5px 0 0}a.upgrade-box-link:hover{color:#1da1f4}.html-tooltip{position:relative;display:inline-block;margin:0;padding:0;line-height:1;width:20px;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#333;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:354px}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-15px;border-width:5px;border-style:solid;border-color:#333 transparent transparent transparent;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.html-tooltip:hover .tooltip-text{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0 0}.html-tooltip.top .tooltip-text{top:auto;bottom:100%;margin-bottom:5px}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.side .tooltip-text:after{top:50%;left:-5px;transform:rotate(180deg);-webkit-transform:rotate(90deg)}.html-tooltip.side .tooltip-text.hide-arrow:after{display:none}.color-box{display:inline-block;position:relative;padding:0 8px 0 0}.color-box-area{display:inline-block;line-height:27px}.color-box .gradient{background:linear-gradient(135deg,#c6ffdd 18.06%,#fbd786 51.57%,rgba(247,121,125,.91) 81.94%);width:18px;height:18px;display:inline-block;border-radius:9px;margin:4px 7px;vertical-align:middle;float:left}a.upgrade-box-link:hover .color-box{opacity:1;filter:blur(1px);-webkit-filter:blur(1px)}a.upgrade-box-link .upgrade-link{z-index:1;padding:0 10px;background:#1a75ff;color:#fff;position:absolute;border-radius:4px;transition:all .1s ease-in-out;left:100%;width:auto;white-space:nowrap;font-size:12px;line-height:25px;top:-4px;opacity:0;visibility:hidden;right:auto}.upgrade-box-link.d-block{height:26px;border:1px solid #155e75;margin:2px 0;border-radius:6px}.upgrade-box-link.d-block .upgrade-link{top:0;transform:translate(10px,0)}a.upgrade-box-link .upgrade-link:after{content:"";width:0;height:0;border-style:solid;border-width:5px 5px 0 5px;border-color:#1a75ff transparent transparent transparent;position:absolute;top:40%;left:-7px;transform:rotate(90deg)}a.upgrade-box-link:hover .upgrade-link{visibility:visible;opacity:1}.color-list{margin:0;padding:0}.color-list li{float:left;display:block;margin:0 10px 0 0}.color-checkbox{position:relative}.color-checkbox>span{width:44px;height:28px;display:block;border-radius:6px;border:solid 2px #fff;position:relative}.color-checkbox:hover input+span{border:solid 2px #8ada3b}.color-checkbox input:checked+span{border:solid 2px #8ada3b}.color-checkbox input+.sp-replacer+span{position:absolute;left:0;top:0;width:60px;padding:0 0 0 30px;border:solid 1px #155e75;margin:1px 0 0 1px}.color-checkbox input:checked+.sp-replacer+span{border:solid 2px #8ada3b;margin:0}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light{background:linear-gradient(135deg,#c6ffdd 18.06%,#fbd786 51.57%,rgba(247,121,125,.91) 81.94%);width:18px;height:18px;display:inline-block;border-radius:9px;margin:4px 7px;vertical-align:middle;border:none!important;position:absolute;top:7px;left:8px;z-index:1001}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light .sp-preview{background:0 0}.custom-color-picker.color-checkbox input:not(:checked)+.sp-replacer.sp-light .sp-preview .sp-preview-inner{background:0 0!important}.color-checkbox input:checked+span:after,.custom-color-picker.color-checkbox input:checked+.sp-replacer+span:after{background:#dbeafe;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#6366f1;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}.color-checkbox.active input:checked+span:after,.custom-color-picker.color-checkbox.active input:checked+.sp-replacer+span:after{background:#d7f5ea;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#014737;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}.seconds-box{position:relative;display:inline-block;width:100px}.seconds-box input{width:100%}.seconds-box:after{content:"seconds";position:absolute;right:2px;top:3px;height:24px;background:#dbdbdb;line-height:24px;padding:0 5px;border-radius:2px}.timeout-settings{display:none}.timeout-settings.active{display:table-row}.html-tooltip.dynamic .tooltip-text{height:490px}span.recommanded{background:#7e3af2;display:inline-block;color:#fff;padding:3px 5px;border-radius:5px;font-size:12px;margin:0 0 0 5px;vertical-align:middle}.tooltip-text span.new{display:block;padding:5px 0 0 0}.tooltip-text span.new a{font-weight:700;color:#30a3ff}.enable-replace-media.show .html-tooltip .tooltip-text{visibility:visible;opacity:1}.folders-by-user{width:100%;max-width:420px}.folders-by-user span.danger-info{color:#333}.folders-by-user .import-export-table tr td.last-td{width:60px;padding:0}.folders-by-user input:checked+.folder-slider{background:#1da1f4}.folders-by-user a.upgrade-box-link .upgrade-link{top:0}.folders-by-user span.danger-data{display:block}.folders-tabs .accordion-content{display:block!important}input[type=range]{-webkit-appearance:none;margin:10px 0;width:100%}input#folder_custom_font_size{width:100%}#folder_custom_font_size[type=range]:focus{outline:0}#folder_custom_font_size[type=range]::-webkit-slider-runnable-track{width:100%;height:4px;cursor:pointer;animate:.2s;box-shadow:0 0 0 #000,0 0 0 #0d0d0d;background:#1da1f4;border-radius:25px;border:0 solid #000101}#folder_custom_font_size[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 #000,0 0 0 #0d0d0d;border:0 solid #000;height:16px;width:16px;border-radius:8px;background:#fff;cursor:pointer;box-shadow:0 0 5px #8f8f8f;-webkit-appearance:none;margin-top:-6px}#folder_custom_font_size[type=range]:focus::-webkit-slider-runnable-track{background:#1da1f4}.font-range-slider{width:100%;max-width:270px}.font-slider{display:flex;flex:1;align-content:center;align-items:center}.font-slider-left,.font-slider-right{flex:0 0 24px;text-align:center;font-size:12px}.font-slider-right{font-size:24px}.font-slider-center{flex:1}#custom_font_size{display:none}#custom_font_size.active{display:table-row}.folder-help-btn{display:block!important}.view-shortcodes{display:inline-block;text-decoration:none;color:#3c434a}.view-shortcodes svg{width:16px;display:inline-block;vertical-align:bottom;height:auto}.keyboard-shortcut{width:100%}.keyboard-shortcut tr td,.keyboard-shortcut tr th{padding:8px 0;vertical-align:middle;text-align:left;font-weight:400}.keyboard-shortcut tr td{text-align:right;vertical-align:middle}.keyboard-shortcut tr td span:not(.dashicons){display:inline-block;padding:2px 5px}.keyboard-shortcut tr td span.key-button{padding:2px 8px;background:#eaeaea;border-radius:2px}.keyboard-shortcut tr td span.dashicons{width:auto;height:auto;font-size:14px;display:inline-block;vertical-align:middle}.wp-folder-user{margin-top:20px;padding:15px 0}.wp-folder-user a{display:inline-block;float:none;color:#3085d6;text-decoration:none}.wp-folder-user .need-help{position:relative;padding-bottom:8px;margin-bottom:15px}.wp-folder-user .need-help:after{content:"";position:absolute;width:36px;height:2px;background:#3085d6;left:0;right:0;bottom:0;margin:0 auto}.folder-help-icon span{color:#21759b;width:60px;height:60px;font-size:60px;margin:0 0 10px 0;display:inline-block}.popup-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px 0;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.popup-folder-title:after{content:"";position:absolute;top:100%;width:70px;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.folder-form-buttons a.a-inline{display:inline-block;padding:0 20px}
1
+ @import url(https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap);.accordion,.folders-tabs,.form-options,.shadow-box{box-shadow:0 4px 21px rgba(7,16,28,.1)}#setting-form,.folder-popup-form,.folder-tab-menu ul li a{font-family:Roboto,sans-serif}.folder-popup-box,.popup-form-content{right:0;transform:translate(0,-50%);left:0}span.upgrade-message{padding:5px 10px;background:#fff;display:inline-block;font-size:14px;color:#000}a.pink,span.pink{color:#ff5983;text-decoration:none;font-weight:700}.form-table{margin:0}.form-table th{width:220px;font-weight:400;vertical-align:middle}.form-table td.default-folder,.form-table th.default-folder{width:100px}.premio-help{text-align:center}.premio-help a{display:block;float:right}.premio-help a img{width:auto;height:auto}#custom_font_size,.folder-switch input,.hide-option,.html-tooltip.side .tooltip-text.hide-arrow:after,.import-folder-table td span.spinner,.media-setting-box,.no-more-plugins,.timeout-settings{display:none}.accordion{max-width:1024px;border-radius:4px;margin:0 0 20px}.accordion-header{background:#ebf1f4;padding:10px 15px;font-size:16px;cursor:pointer;border-radius:4px;color:#484848;font-weight:500}.sp-preview,.sp-replacer.sp-light{margin:0!important;padding:0!important}.accordion-header.active{border-radius:4px 4px 0 0;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px}.accordion-header.active span,.close-popup-button a:hover span{transform:rotate(180deg)}select.hide-show-option{width:170px}.sp-replacer.sp-light{border:2px solid #fff!important;box-shadow:0 3px 7px rgba(149,149,150,.3);border-radius:4px}.sp-dd{display:none!important}.sp-preview{width:18px!important;height:18px!important;border:none!important}.form-table select{width:268px;border-radius:6px}.accordion-header span{float:right;width:20px;height:20px;line-height:22px;font-size:14px;background:#fff;border-radius:10px}.accordion-header span:hover,.upgrade-btn:hover{background:#1da1f4;color:#fff}.form-title{font-size:23px;font-weight:400;margin:0;padding:0 0 10px;line-height:29px;min-height:36px}.media-select option:first-child,.upgrade-btn{font-weight:700}.add-new-folder,button.organize-button{text-decoration:none;display:block;float:right;font-size:14px;padding:4px 10px 4px 4px;background:#f51366;color:#fff;border:1px solid #f51366;border-radius:4px;line-height:24px;position:relative}.add-new-folder span{display:block;float:left;line-height:26px;font-size:14px;margin-right:5px}.add-new-folder span.folder-icon-create_new_folder{font-size:20px}.form-options{background:#fff;padding:10px 10px 0;margin:0;border-radius:4px}.shadow-box{padding:10px;margin:20px 0 0}.accordion .separator{border-bottom:1px solid #e9e5e5}.color-list,.folder-tab-menu ul,.form-options ul,.media-setting-box li,p.submit{margin:0;padding:0}.form-options li{display:inline-block;margin:0;vertical-align:top}.form-options li a{display:inline-block;text-decoration:none;padding:5px 12px;color:#484848;vertical-align:middle;margin:0 0 10px;background:#f1f1f1;border-radius:4px;font-size:11px;line-height:20px}.folder-list li a,.header-posts a,.un-categorised-items a{border-radius:3px;display:block;line-height:18px;text-decoration:none}.form-options span.icon{font-size:14px;display:inline-block;vertical-align:top;line-height:20px;color:#a4c0d2}.form-options li.last{margin:0;font-size:28px;line-height:22px}.form-options li.last a{padding:5px 3px 3px;width:24px;text-align:center;height:22px;line-height:20px}.header-posts a,.un-categorised-items a{color:#444;padding:7px;font-size:14px}.header-posts a.active-item,.un-categorised-items.active-item{background:#008ec2;color:#fff}span.total-count{float:right;font-size:12px!important;line-height:16px;border-radius:2px}.header-posts a.active-item span.total-count,.un-categorised-items.active-item a span{color:#fff!important}.media-buttons{padding:10px 0;background:#fff;text-align:center}.media-buttons button,.media-buttons select{width:48%;display:inline-block;margin:0 2% 0 0}.un-categorised-items{margin:0 0 10px}.header-posts{margin:10px 0 0}.add-new-folder:focus,.add-new-folder:hover,.organize-button:focus,.organize-button:hover{color:#fff}.add-new-folder:hover:after,.organize-button:hover:after{content:"";width:100%;height:100%;background:rgba(0,0,0,.1);position:absolute;top:0;left:0}.folder-list li a{color:#333;margin:0 0 1px;font-size:20px}.folder-list li a i{display:inline-block;vertical-align:middle;font-size:14px}.folder-list li a span{font-size:16px;display:inline-block;vertical-align:middle}.preview-inner-box{padding:15px;width:300px;max-width:100%;float:left;background:#fff;border:1px solid #dbdbdb;box-sizing:border-box;border-radius:4px}.accordion-left{width:calc(100% - 215px);float:left}.accordion-right{width:205px;float:right}#customize-folders .accordion-left{width:calc(100% - 310px)}#customize-folders .accordion-right{width:305px}.preview-text{font-size:20px;padding:0 0 10px}.preview-text-info{padding:10px 0 0;font-size:12px;line-height:12px}.media-select option{color:#000}.folder-popup{position:fixed;width:100%;height:100%;top:0;left:0;z-index:100001;background:rgba(0,0,0,.75)}.folder-popup-box{padding:0;width:600px;max-width:100%;margin:auto;top:50%;position:absolute;border-radius:5px;-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);text-align:center;background:#fcfcfc}.folder-popup-header{padding:15px;font-size:20px;border-bottom:1px solid #e6e6e6}.folder-popup-content{background:#fff;padding:15px;font-size:14px;line-height:20px}.folder-popup-content iframe{margin:30px 0}.folder-popup-footer{padding:15px;border-top:1px solid #e6e6e6}.folder-popup-footer button{border:none;padding:10px 20px;border-radius:4px;background:#00c478;color:#fff}.close-folder-popup{margin:0;padding:0;background:#000;border:none;float:right;border-radius:50%;color:#fff;text-align:center;width:24px;height:24px}.custom-checkbox span,.upgrade-btn{background:#fff;display:inline-block;box-sizing:border-box}.close-folder-popup span{line-height:24px}.wrap h1{margin:0 0 15px}.upgrade-btn{border:1px solid #1da1f4;border-radius:4px;height:34px;line-height:34px;padding:0 25px;text-decoration:none;color:#1da1f4}.form-table td.no-padding,.sr-only{padding:0}.need-help,.visit-our{color:#484848}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.custom-checkbox span{border:1px solid #dbdbdb;border-radius:4px;margin:0 auto;height:18px;width:18px;vertical-align:middle;position:relative;color:#fff}.custom-checkbox input:disabled+span{background:#f0f0f0}.submit-button{padding:10px 0 0}.custom-checkbox input:checked+span,.folders-by-user input:checked+.folder-slider{background:#1da1f4}.custom-checkbox input:checked+span:after{content:"\f147";font-family:dashicons;display:inline-block;line-height:1;font-weight:400;font-style:normal;text-decoration:inherit;font-size:14px}.custom-checkbox,.send-user-to-pro:hover .upgrade-box button{display:inline-block}#folder-settings .form-table td.no-padding{width:20px}.form-table td{line-height:1}.custom-checkbox+label{display:inline-block;vertical-align:middle;font-size:14px;line-height:1;padding:0 5px 0 8px}ul.folder-list li{margin:0;line-height:32px;padding:0}ul.folder-list li a{padding:5px 10px}.un-categorised-items a:hover,ul.folder-list li a:hover{background:rgba(250,22,107,.08);border-radius:4px}.clear{clear:both}.form-options li .custom-checkbox{margin:5px 0 0}span.create_new_folder{width:26px;height:26px;line-height:26px;font-size:14px;background:rgba(255,255,255,.4);backdrop-filter:blur(16px);border-radius:4px;text-align:center;margin:0 15px 0 0}.premio-help-btn{width:180px;text-align:center;padding:15px;border:1px solid #ebf1f4;box-sizing:border-box;border-radius:4px;float:right}.need-help{font-style:normal;font-weight:500;font-size:15px;line-height:18px}.knowledge-base,.visit-our{font-style:normal;line-height:16px;text-align:center;font-weight:400;font-size:14px}.knowledge-base{color:#1da1f4;text-decoration:underline}.folder-tab-menu,.folder-tab-menu ul li a{font-size:16px;-moz-border-radius-topleft:4px;-moz-border-radius-topright:4px}.accordion-content.no-bp{padding-bottom:0!important}.folders-tabs{background:#fff;max-width:1024px;border-radius:4px;margin:0 0 20px}.folder-tab-menu{background:#ebf1f4;padding:5px 15px 0;cursor:pointer;color:#484848;font-weight:500;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px}.folder-tab-menu ul li{display:inline-block;margin:0 1px 0 0}.folder-tab-menu ul li a{display:inline-block;padding:10px 15px;text-decoration:none;color:#484848;-webkit-border-top-left-radius:4px;-webkit-border-top-right-radius:4px;border-top-left-radius:4px;border-top-right-radius:4px;outline:0;transition:.2s ease-in-out}.folder-tab-menu ul li a.active,.folder-tab-menu ul li a:focus,.folder-tab-menu ul li a:hover{background:#fff;box-shadow:none;color:#000}.folder-tab-content{padding:15px}.folder-tab-content .tab-content{display:none;min-height:20vh}.folder-tab-content .tab-content.active,.folders-by-user span.danger-data,.media-setting-box.active{display:block}.no-plugin-message p{font-size:14px;margin:0;padding:0}.folder-popup-form{position:fixed;width:100%;height:100%;background:rgba(0,0,0,.5);top:0;left:0;z-index:10001;display:none}.popup-form-content{background:#fff;min-height:100px;width:400px;text-align:center;margin:0 auto;position:absolute;top:50%;-webkit-transform:translate(0,-50%);-moz-transform:translate(0,-50%);-o-transform:translate(0,-50%);-ms-transform:translate(0,-50%);padding:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;color:#484848;max-width:80%;max-height:80vh;overflow:auto}.add-update-folder-title{display:block;position:relative;max-width:100%;margin:0 0 .4em;padding:0 20px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.add-folder-note{padding:10px 0 30px;min-height:35px}.folder-form-errors{margin:0 0 10px;padding:8px 0;background:#ffe4e4;color:#a20000;display:none}.folder-form-buttons{display:flex}.folder-form-buttons a,.folder-form-buttons button{display:inline-flex;padding:0;text-decoration:none;margin:0 3px!important;border-radius:4px;border:1px solid #1da1f4;line-height:34px;font-weight:700;font-size:14px;box-sizing:border-box;height:36px;cursor:pointer;flex:1;justify-content:center;outline:0;box-shadow:none}.form-cancel-btn,a.form-cancel-btn:hover{background-color:#fff;color:#3085d6;outline:0}.form-submit-btn{background-color:#3085d6;color:#fff;outline:0}.folder-form-buttons a.delete-button,.folder-form-buttons button.delete-button{border:1px solid #860000;background-color:#d40000;color:#fff}.folder-form-buttons button:disabled{border:1px solid #868686;background-color:#a5a5a5}.import-folder-table table{border-collapse:collapse;border:1px solid silver}.import-folder-table td,.import-folder-table th{border:1px solid silver;padding:10px 15px;text-align:left;font-size:14px;vertical-align:top}.import-folder-table th{width:220px}#import-third-party-plugin-data .import-folder-table th{width:120px}#import-third-party-plugin-data .import-folder-table td span.import-message{display:inline-block;margin:0 0 0 5px;line-height:30px}#import-third-party-plugin-data .popup-form-content{width:430px}.import-folder-table td span.import-message{display:block;margin:0 0 5px}.import-folder-table td button.button{margin:0 5px 0 0}.import-folder-table td button.button.remove-folder-data{background:0 0;border-color:transparent;color:#3c85f7}.import-folder-table td button.button.button-primary{background:#fff;color:#3c85f7;border:1px solid #3c85f7}.import-folder-table td span.spinner.active{display:inline-block;visibility:visible;margin-right:0}.import-folder-table td span.import-message.success-import{background:#c6ffc6;padding:10px;color:green;margin:0 0 10px}.import-folder-table td span.import-message.error-import{background:#ffeded;padding:10px;color:red;margin:0 0 10px}.import-folder-title,.import-plugin-title,.remove-folder-title{font-size:16px;font-weight:700;padding:0 0 15px}.import-folder-note,.remove-folder-note{min-height:50px;padding:0 0 20px}button#remove-folder-button.delete-folder-plugin{color:#fff;background:#ca0000;border-color:#ca0000}.color-checkbox,.popup-content,.send-user-to-pro,.send-user-to-pro .normal-box{position:relative}.close-popup-button{position:absolute;right:-10px;top:-2px;width:20px;height:20px}.close-popup-button a{display:block;position:relative;width:20px;height:20px;color:#333;padding:2px;box-sizing:border-box}.danzer-title,.danzer-title span{color:#dc2626}.close-popup-button a span{display:block;position:relative;width:16px;height:16px;transition:.2s linear}.close-popup-button a span:after,.close-popup-button a span:before{content:"";position:absolute;width:12px;height:2px;background-color:#333;display:block;border-radius:2px;transform:rotate(45deg);top:7px;left:2px}.close-popup-button a span:after{transform:rotate(-45deg)}.import-plugin-note{padding:0 0 20px}.import-folder-table table{width:100%;margin:0 0 20px}.import-plugin-footer{padding:0 30px 15px}.input-field label{display:block;font-weight:700;padding-bottom:5px}.license-key-footer{font-weight:700;padding-bottom:15px;font-size:16px;line-height:30px}.folder-slider:after,.folder-switch{display:inline-block;line-height:24px}input.license-key{width:100%;max-width:250px}.submit{text-align:left;max-width:100%;margin-top:0;padding-top:10px}.folder-error-message,.folder-success-message{background:#fff;margin:10px 0;padding:10px;border-left:3px solid #dd4b39}.folder-success-message{border-left:3px solid #00a65a}.folder-tab-content .separator{border-bottom:1px solid #e9e5e5;margin:20px 0 10px}.folder-tooltip:before,.html-tooltip .tooltip-text:after{border-color:#333 transparent transparent;border-style:solid}.folder-form-message{padding:30px 50px 40px}.folder-switch{height:24px;position:relative;padding:0 0 0 60px!important}.folder-slider{background-color:#ababab;bottom:0;cursor:pointer;left:0;position:absolute;right:0;top:0;transition:.4s;width:50px;height:24px}.color-box,.folder-tooltip,.html-tooltip,.seconds-box,a.upgrade-box-link{position:relative}.folder-slider.round{border-radius:34px}.folder-slider:before{background-color:#fff;bottom:4px;content:"";height:16px;left:4px;position:absolute;transition:.2s;width:16px}.folder-slider.round:before{border-radius:50%}.folder-slider:after{content:"off";color:#fff;padding:0 0 0 25px;font-size:14px;position:absolute;left:0;top:0}input:checked+.folder-slider{background-color:#b91c1c}input:checked+.folder-slider.normal{background-color:#1da1f4}input:checked+.folder-slider:before{transform:translateX(26px)}input:checked+.folder-slider:after{padding:0 0 0 8px;content:"on"}.media-details{padding:5px 0 10px}.inline-checkbox+.inline-checkbox{padding:5px 0 0}.folder-danger-zone{max-width:610px;width:100%}.danzer-title{font-size:16px;font-weight:700;line-height:20px;margin:30px 0 0;display:block;padding:0}a.remove-folders-data{border:2px solid #b91c1c;box-sizing:border-box;border-radius:5px;display:block;text-align:center;line-height:30px;padding:0;text-decoration:none;color:#b91c1c;font-weight:500}.folder-tooltip,.remove-folders-data a{display:inline-block;vertical-align:middle}.remove-folders-data a{color:#d40000;font-weight:700}.media-setting-box .select2-container{width:100%!important}.media-setting-box .select2-container .select2-search--inline .select2-search__field{margin:6px 0 0;padding:0;min-height:20px;height:20px}.folder-tooltip:after,.folder-tooltip:before{position:absolute;opacity:0;pointer-events:none;left:50%;content:"";color:#fff}.folder-tooltip:before{top:-8px;transform:translateX(-50%);height:10px;width:0;border-width:10px 5px 0}.folder-tooltip:after{text-align:center;content:"" attr(data-title) "";font-size:11px;top:0;transform:translate(-50%,calc(-100% - 6px));padding:6px 20px;min-width:90px;background-color:#333;box-shadow:0 2px 4px rgba(0,0,0,.15);border-radius:6px;width:250px;white-space:break-spaces;line-height:16px;z-index:10001}.folder-tooltip:hover:after,.folder-tooltip:hover:before{opacity:1;pointer-events:auto}.folder-notification-title{padding:5px 0 0;font-weight:500}.folder-notification-note{padding:0 0 5px}.text-left{text-align:left}.import-export-table,.input-box input,.keyboard-shortcut,.seconds-box input,input#folder_custom_font_size{width:100%}.delete-confirmation-message{font-weight:500;color:#d00;padding-top:2px;min-height:20px;line-height:20px}.input-box{padding:3px 0 0}span.danger-info{color:#7f1d1d;font-weight:500;font-size:16px;line-height:27px;display:block}.import-export-table tr td{padding:0 0 10px;vertical-align:middle}.import-export-table tr td.last-td{width:100px;text-align:center;padding:0 0 0 20px}.folder-text span{color:#3c85f7;font-weight:500}span.folder-info{display:block;line-height:24px;font-size:18px;font-weight:500;vertical-align:middle;padding:0 0 5px}a.contact-folders-button,a.import-folders-button{box-sizing:border-box;display:block;line-height:30px;text-decoration:none;font-weight:500;text-align:center}a.import-folders-button{border:2px solid #3c85f7;border-radius:5px;padding:0;color:#3c85f7}a.contact-folders-button{border:2px solid #64748b;border-radius:5px;padding:0;color:#64748b}.send-user-to-pro .upgrade-box button,button.upgrade-link{color:#fff;border-radius:4px;cursor:pointer;text-decoration:none}#import-folders-popup .popup-form-content{width:500px}#import-folders-popup th{width:auto}#import-folders-popup td{width:250px}#custom_font_size.active,.no-more-plugins.active,.timeout-settings.active{display:table-row}button.upgrade-link{display:inline-block;vertical-align:middle;background:#a07bf4;padding:2px 6px;font-size:11px;margin:0 0 0 5px;border:none}.send-user-to-pro:hover .normal-box{filter:blur(1.6px)}.select2-container--default.select2-container--disabled .select2-selection--multiple{background-color:#fff!important;cursor:default}.send-user-to-pro .upgrade-box{position:absolute;left:0;top:0;width:100%;text-align:center;height:100%;cursor:pointer;display:block}.color-box,.color-box .gradient,.color-box-area,.html-tooltip,a.upgrade-box-link{display:inline-block}.send-user-to-pro .upgrade-box button{background:#1a75ff;display:none;position:absolute;top:50%;left:0;right:0;margin:0 auto;width:120px;transform:translate(0,-50%);border:none;padding:5px 0}a.upgrade-box-link{text-decoration:none;color:#333}a.upgrade-box-link>label{padding:0 5px 0 0}a.upgrade-box-link:hover{color:#1da1f4}.html-tooltip{margin:0;padding:0;line-height:1;width:20px;height:20px;vertical-align:middle}.html-tooltip .tooltip-text{visibility:hidden;width:300px;background-color:#333;color:#fff;text-align:center;border-radius:6px;padding:10px;position:absolute;z-index:1201;bottom:125%;left:50%;margin-left:-150px;opacity:0;transition:opacity .3s;font-size:12px;line-height:18px;top:100%;height:354px}.color-box .gradient,.custom-color-picker.color-checkbox input+.sp-replacer.sp-light{background:linear-gradient(135deg,#c6ffdd 18.06%,#fbd786 51.57%,rgba(247,121,125,.91) 81.94%);width:18px;height:18px;margin:4px 7px;vertical-align:middle}.html-tooltip.no-position .tooltip-text{height:auto}.html-tooltip .tooltip-text:after{content:"";position:absolute;top:-10px;left:50%;margin-left:-15px;border-width:5px;transform:rotate(180deg);-webkit-transform:rotate(180deg)}.enable-replace-media.show .html-tooltip .tooltip-text,.html-tooltip:hover .tooltip-text,a.upgrade-box-link:hover .upgrade-link{visibility:visible;opacity:1}.html-tooltip .tooltip-text img{width:100%;height:auto;display:block;margin:10px 0 0}.html-tooltip.top .tooltip-text{top:auto;bottom:100%;margin-bottom:5px}.html-tooltip.top .tooltip-text:after{top:100%;transform:rotate(0);-webkit-transform:rotate(0)}.html-tooltip.side .tooltip-text{bottom:125%;left:100%;margin-left:0;top:5px;transform:translateY(-50%);-webkit-transform:translateY(-50%)}.html-tooltip.side .tooltip-text:after{top:50%;left:-5px;transform:rotate(180deg);-webkit-transform:rotate(90deg)}.color-box{padding:0 8px 0 0}.color-box-area{line-height:27px}.color-box .gradient{border-radius:9px;float:left}a.upgrade-box-link:hover .color-box{opacity:1;filter:blur(1px);-webkit-filter:blur(1px)}a.upgrade-box-link .upgrade-link{z-index:1;padding:0 10px;background:#1a75ff;color:#fff;position:absolute;border-radius:4px;transition:.1s ease-in-out;left:100%;width:auto;white-space:nowrap;font-size:12px;line-height:25px;top:-4px;opacity:0;visibility:hidden;right:auto}.upgrade-box-link.d-block{height:26px;border:1px solid #155e75;margin:2px 0;border-radius:6px}.upgrade-box-link.d-block .upgrade-link{top:0;transform:translate(10px,0)}a.upgrade-box-link .upgrade-link:after{content:"";width:0;height:0;border-style:solid;border-width:5px 5px 0;border-color:#1a75ff transparent transparent;position:absolute;top:40%;left:-7px;transform:rotate(90deg)}.color-list li{float:left;display:block;margin:0 10px 0 0}.color-checkbox>span{width:44px;height:28px;display:block;border-radius:6px;border:2px solid #fff;position:relative}.color-checkbox input:checked+span,.color-checkbox:hover input+span{border:2px solid #8ada3b}.color-checkbox input+.sp-replacer+span{position:absolute;left:0;top:0;width:60px;padding:0 0 0 30px;border:1px solid #155e75;margin:1px 0 0 1px}.color-checkbox input:checked+.sp-replacer+span{border:2px solid #8ada3b;margin:0}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light{display:inline-block;border-radius:9px;border:none!important;position:absolute;top:7px;left:8px;z-index:1001}.custom-color-picker.color-checkbox input+.sp-replacer.sp-light .sp-preview{background:0 0}.custom-color-picker.color-checkbox input:not(:checked)+.sp-replacer.sp-light .sp-preview .sp-preview-inner{background:0 0!important}.color-checkbox input:checked+span:after,.custom-color-picker.color-checkbox input:checked+.sp-replacer+span:after{background:#dbeafe;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#6366f1;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}.color-checkbox.active input:checked+span:after,.custom-color-picker.color-checkbox.active input:checked+.sp-replacer+span:after{background:#d7f5ea;border-radius:10px;position:absolute;top:-10px;left:-10px;width:20px;margin:0;text-align:center;padding:0;color:#014737;content:"\f15e";font-family:dashicons;display:inline-block;line-height:1;font-weight:700;font-size:16px}.seconds-box{display:inline-block;width:100px}.seconds-box:after{content:"seconds";position:absolute;right:2px;top:3px;height:24px;background:#dbdbdb;line-height:24px;padding:0 5px;border-radius:2px}.html-tooltip.dynamic .tooltip-text{height:490px}span.recommanded{background:#7e3af2;display:inline-block;color:#fff;padding:3px 5px;border-radius:5px;font-size:12px;margin:0 0 0 5px;vertical-align:middle}.tooltip-text span.new{display:block;padding:5px 0 0}.tooltip-text span.new a{font-weight:700;color:#30a3ff}.folders-by-user{width:100%;max-width:420px}.folders-by-user span.danger-info{color:#333}.folders-by-user .import-export-table tr td.last-td{width:60px;padding:0}.folders-by-user a.upgrade-box-link .upgrade-link{top:0}.folder-help-btn,.folders-tabs .accordion-content{display:block!important}input[type=range]{-webkit-appearance:none;margin:10px 0;width:100%}#folder_custom_font_size[type=range]:focus{outline:0}#folder_custom_font_size[type=range]::-webkit-slider-runnable-track{width:100%;height:4px;cursor:pointer;animate:.2s;box-shadow:0 0 0 #000,0 0 0 #0d0d0d;background:#1da1f4;border-radius:25px;border:0 solid #000101}#folder_custom_font_size[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 #000,0 0 0 #0d0d0d;border:0 solid #000;height:16px;width:16px;border-radius:8px;background:#fff;cursor:pointer;box-shadow:0 0 5px #8f8f8f;-webkit-appearance:none;margin-top:-6px}#folder_custom_font_size[type=range]:focus::-webkit-slider-runnable-track{background:#1da1f4}.font-range-slider{width:100%;max-width:270px}.font-slider{display:flex;flex:1;align-content:center;align-items:center}.font-slider-left,.font-slider-right{flex:0 0 24px;text-align:center;font-size:12px}.font-slider-right{font-size:24px}.font-slider-center{flex:1}.view-shortcodes{display:inline-block;text-decoration:none;color:#3c434a}.view-shortcodes svg{width:16px;display:inline-block;vertical-align:bottom;height:auto}.keyboard-shortcut tr td,.keyboard-shortcut tr th{padding:8px 0;vertical-align:middle;text-align:left;font-weight:400}.keyboard-shortcut tr td{text-align:right;vertical-align:middle}.keyboard-shortcut tr td span:not(.dashicons){display:inline-block;padding:2px 5px}.keyboard-shortcut tr td span.key-button{padding:2px 8px;background:#eaeaea;border-radius:2px}.keyboard-shortcut tr td span.dashicons{width:auto;height:auto;font-size:14px;display:inline-block;vertical-align:middle}.wp-folder-user{margin-top:20px;padding:15px 0}.wp-folder-user a{display:inline-block;float:none;color:#3085d6;text-decoration:none}.wp-folder-user .need-help{position:relative;padding-bottom:8px;margin-bottom:15px}.popup-folder-title:after,.wp-folder-user .need-help:after{content:"";position:absolute;height:2px;background:#3085d6;left:0;right:0;margin:0 auto}.wp-folder-user .need-help:after{width:36px;bottom:0}.folder-help-icon span{color:#21759b;width:60px;height:60px;font-size:60px;margin:0 0 10px;display:inline-block}.popup-folder-title{display:block;position:relative;max-width:100%;margin:0;padding:0 0 15px;color:#595959;text-align:center;text-transform:none;word-wrap:break-word;font-weight:700;font-size:22px;line-height:26px}.popup-folder-title:after{top:100%;width:70px}.folder-form-buttons a.a-inline{display:inline-block;padding:0 20px}
assets/js/folders.js CHANGED
@@ -24,7 +24,7 @@
24
  var isMultipleRemove = false;
25
  var folderIDs = "";
26
  var folderPropertyArray = [];
27
- var folderCurrentURL = wcp_settings.page_url;
28
  var foldersArray = [];
29
  var hasStars;
30
  var hasChildren;
@@ -43,6 +43,27 @@
43
  var currentPage = 1;
44
  $(document).ready(function(){
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  /* check for jetpack */
47
  if($("body").hasClass("jetpack-connected") && !$("body").hasClass("mobile")) {
48
  if(!$("body").hasClass("folded")) {
@@ -264,28 +285,28 @@
264
  $(".dynamic-menu").remove();
265
  $(".active-menu").removeClass("active-menu");
266
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
267
- menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
268
  if(hasChildren) {
269
- menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
270
  } else {
271
- menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
272
  }
273
- menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
274
- "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
275
- "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
276
  if(hasStars) {
277
- menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
278
  } else {
279
- menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
280
  }
281
- menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
282
- "<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
283
 
284
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
285
  if (wcp_settings.post_type == "attachment" && hasPosts) {
286
- menuHtml += "<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
287
  }
288
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
289
  "</ul></div>";
290
  $("body").append(menuHtml);
291
  var yPosition;
@@ -356,28 +377,28 @@
356
  $(".dynamic-menu").remove();
357
  $(".active-menu").removeClass("active-menu");
358
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
359
- menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
360
  if(hasChildren) {
361
- menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
362
  } else {
363
- menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
364
  }
365
  menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
366
- "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
367
- "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
368
  if(hasStars) {
369
- menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
370
  } else {
371
- menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
372
  }
373
- menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
374
- "<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
375
 
376
  hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
377
  if (wcp_settings.post_type == "attachment" && hasPosts) {
378
- menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
379
  }
380
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li>" +
381
  "</ul></div>";
382
  $("body").append(menuHtml);
383
 
@@ -559,10 +580,10 @@
559
  $(".selected-items").remove();
560
  selectedItems = $("#the-list th input:checked").length;
561
  if(selectedItems > 0) {
562
- selectedItems = (selectedItems == 0 || selectedItems == 1) ? "1 Item" : selectedItems + " Items";
563
- return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " Selected</span></div>");
564
  } else {
565
- return $("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>");
566
  }
567
  },
568
  start: function( event, ui){
@@ -596,7 +617,17 @@
596
  nonce = getSettingForPost(folderID, 'nonce');
597
  $.ajax({
598
  url: wcp_settings.ajax_url,
599
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
 
 
 
 
 
 
 
 
 
 
600
  method: 'post',
601
  success: function (res) {
602
  res = $.parseJSON(res);
@@ -623,8 +654,18 @@
623
  });
624
  $.ajax({
625
  url: wcp_settings.ajax_url,
626
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
627
  method: 'post',
 
 
 
 
 
 
 
 
 
 
628
  success: function (res) {
629
  res = $.parseJSON(res);
630
  if(res.status == "1") {
@@ -651,7 +692,16 @@
651
  folderIDs = chkStr;
652
  $.ajax({
653
  url: wcp_settings.ajax_url,
654
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
 
 
 
 
 
 
 
 
 
655
  method: 'post',
656
  success: function (res) {
657
  // window.location.reload();
@@ -744,8 +794,18 @@
744
  });
745
  $.ajax({
746
  url: wcp_settings.ajax_url,
747
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
748
  method: 'post',
 
 
 
 
 
 
 
 
 
 
749
  success: function (res) {
750
  // window.location.reload();
751
  resetMediaAndPosts();
@@ -765,8 +825,18 @@
765
  });
766
  $.ajax({
767
  url: wcp_settings.ajax_url,
768
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
769
  method: 'post',
 
 
 
 
 
 
 
 
 
 
770
  success: function (res) {
771
  // window.location.reload();
772
  resetMediaAndPosts();
@@ -785,8 +855,17 @@
785
  }
786
  $.ajax({
787
  url: wcp_settings.ajax_url,
788
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
789
  method: 'post',
 
 
 
 
 
 
 
 
 
 
790
  success: function (res) {
791
  // window.location.reload();
792
  resetMediaAndPosts();
@@ -815,8 +894,18 @@
815
  nonce = getSettingForPost(folderID, 'nonce');
816
  $.ajax({
817
  url: wcp_settings.ajax_url,
818
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
819
  method: 'post',
 
 
 
 
 
 
 
 
 
 
 
820
  success: function (res) {
821
  res = $.parseJSON(res);
822
  if(res.status == "1") {
@@ -843,8 +932,18 @@
843
  });
844
  $.ajax({
845
  url: wcp_settings.ajax_url,
846
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
847
  method: 'post',
 
 
 
 
 
 
 
 
 
 
 
848
  success: function (res) {
849
  res = $.parseJSON(res);
850
  if(res.status == "1") {
@@ -872,7 +971,18 @@
872
  folderIDs = chkStr;
873
  $.ajax({
874
  url: wcp_settings.ajax_url,
875
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
 
 
 
 
 
 
 
 
 
 
 
876
  method: 'post',
877
  success: function (res) {
878
  // window.location.reload();
@@ -962,7 +1072,11 @@
962
  } else {
963
  $.ajax({
964
  url: wcp_settings.ajax_url,
965
- data: "type=" + wcp_settings.post_type + "&action=get_folders_default_list",
 
 
 
 
966
  method: 'post',
967
  success: function (res) {
968
  res = $.parseJSON(res);
@@ -986,19 +1100,53 @@
986
  triggerInlineUpdate();
987
  });
988
  } else {
989
- $("#wpbody").load(folderCurrentURL+"&paged="+currentPage + " #wpbody-content", false, function (res) {
990
- var obj = { Title: "", Url: folderCurrentURL+"&paged="+currentPage };
 
 
 
 
 
 
991
  history.pushState(obj, obj.Title, obj.Url);
992
  if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
993
  $(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
994
  }
995
  add_active_item_to_list();
996
- triggerInlineUpdate();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
997
  });
998
  }
999
  }
1000
  }
1001
 
 
 
 
 
 
 
 
1002
  function triggerInlineUpdate() {
1003
  add_active_item_to_list();
1004
 
@@ -1027,10 +1175,10 @@
1027
 
1028
  if(wcp_settings.post_type == "attachment") {
1029
  if(!$(".move-to-folder-top").length) {
1030
- $("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>");
1031
  }
1032
  if(!$(".move-to-folder-bottom").length) {
1033
- $("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>");
1034
  }
1035
  }
1036
  }
@@ -1120,32 +1268,53 @@
1120
  });
1121
 
1122
  function setCustomScrollForFolder() {
1123
- contentHeight = $(window).height() - $("#wpadminbar").height() - $(".sticky-wcp-custom-form").height() - 30;
1124
- var scrollTop = 0;
1125
- if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
1126
- var $scrollerOuter = $( '#custom-scroll-menu' );
1127
- var $dragger = $scrollerOuter.find( '.mCSB_dragger' );
1128
- var scrollHeight = $scrollerOuter.find( '.mCSB_container' ).height();
1129
- var draggerTop = $dragger.position().top;
1130
-
1131
- scrollTop = draggerTop / ($scrollerOuter.height() - $dragger.height()) * (scrollHeight - $scrollerOuter.height());
1132
- $("#custom-scroll-menu").mCustomScrollbar('destroy');
1133
-
1134
- }
1135
- $("#custom-scroll-menu").mCustomScrollbar({
1136
- axis:"y",
1137
- scrollButtons:{enable:false},
1138
- setHeight: contentHeight,
1139
- theme:"3d",
1140
- scrollbarPosition:"inside",
1141
- scrollInertia: 500,
1142
- mouseWheelPixels: 60
1143
- });
1144
- if(scrollTop != 0) {
1145
- $("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1146
  }
1147
  }
1148
 
 
 
 
 
1149
  /* add folder code */
1150
  $(document).ready(function(){
1151
  $(document).on("click", "#add-new-folder", function(){
@@ -1346,8 +1515,8 @@
1346
  return false;
1347
  }
1348
 
1349
- $("#add-update-folder-title").text("Add a new folder");
1350
- $("#save-folder-data").text("Submit");
1351
  $(".folder-form-errors").removeClass("active");
1352
  $("#add-update-folder-name").val("");
1353
  if(isDuplicate) {
@@ -1667,8 +1836,8 @@
1667
  }
1668
 
1669
  function removeFolderFromID(popup_type) {
1670
- var removeMessage = "Are you sure you want to delete the selected folder?";
1671
- var removeNotice = "Items in the folder will not be deleted.";
1672
  isMultipleRemove = false;
1673
  if(popup_type == 1) {
1674
  if($("#menu-checkbox").is(":checked")) {
@@ -1676,20 +1845,20 @@
1676
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1677
  $(".folder-popup-form").hide();
1678
  $(".folder-popup-form").removeClass("disabled");
1679
- $("#error-folder-popup-message").html("Please select at least one folder to delete");
1680
  $("#error-folder-popup").show();
1681
  return;
1682
  } else {
1683
  if($("#js-tree-menu input.checkbox:checked").length > 1) {
1684
- removeMessage = "Are you sure you want to delete the selected folders?";
1685
- removeNotice = "Items in the selected folders will not be deleted.";
1686
  }
1687
  }
1688
  }
1689
  }
1690
  $(".folder-popup-form").hide();
1691
  $(".folder-popup-form").removeClass("disabled");
1692
- $("#remove-folder-item").text("Yes, Delete it!");
1693
  $("#remove-folder-message").text(removeMessage);
1694
  $("#remove-folder-notice").text(removeNotice);
1695
  $("#confirm-remove-folder").show();
@@ -1940,15 +2109,15 @@
1940
  if($(this).hasClass("all-open")) {
1941
  $(this).removeClass("all-open");
1942
  statusType = 0;
1943
- $(this).attr("data-folder-tooltip","Expand");
1944
  $("#js-tree-menu").jstree("close_all");
1945
- $("#expand-collapse-list .text").text("Expand");
1946
  } else {
1947
  $(this).addClass("all-open");
1948
  statusType = 1;
1949
- $(this).attr("data-folder-tooltip","Collapse");
1950
  $("#js-tree-menu").jstree("open_all");
1951
- $("#expand-collapse-list .text").text("Collapse");
1952
  }
1953
  folderIDs = "";
1954
  $("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){
@@ -2228,18 +2397,18 @@
2228
  currentStatus = true;
2229
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2230
  $("#expand-collapse-list").removeClass("all-open");
2231
- $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2232
- $("#expand-collapse-list .text").text("Expand");
2233
  } else {
2234
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2235
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2236
  $("#expand-collapse-list").removeClass("all-open");
2237
- $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2238
- $("#expand-collapse-list .text").text("Expand");
2239
  } else {
2240
  $("#expand-collapse-list").addClass("all-open");
2241
- $("#expand-collapse-list").attr("data-folder-tooltip","Collapse");
2242
- $("#expand-collapse-list .text").text("Collapse");
2243
  }
2244
  }
2245
  }, 500);
@@ -2466,7 +2635,18 @@
2466
  nonce = getSettingForPost($("#bulk-select").val(), 'nonce');
2467
  $.ajax({
2468
  url: wcp_settings.ajax_url,
2469
- data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $("#bulk-select").val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
 
 
 
 
 
 
 
 
 
 
 
2470
  method: 'post',
2471
  success: function (res) {
2472
  res = $.parseJSON(res);
@@ -2491,10 +2671,10 @@
2491
  function show_folder_popup() {
2492
  $("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1");
2493
  if($(".wp-list-table tbody input[type='checkbox']:checked").length == 0) {
2494
- alert("Please select items to move in folder");
2495
  } else {
2496
  $("#bulk-move-folder").show();
2497
- $("#bulk-select").html("<option value=''>Loading...</option>");
2498
  $(".move-to-folder").attr("disabled", true);
2499
  $("#move-to-folder").prop("disabled", true);
2500
  $.ajax({
@@ -2503,7 +2683,7 @@
2503
  method: 'post',
2504
  success: function (res) {
2505
  res = $.parseJSON(res);
2506
- $("#bulk-select").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>");
2507
  $(".move-to-folder").prop("disabled", false);
2508
  $("#move-to-folder").prop("disabled", false);
2509
  if(res.status == 1) {
@@ -2729,11 +2909,11 @@
2729
  function setMediaButtons() {
2730
  if($("button.button.media-button.select-mode-toggle-button").length) {
2731
  clearInterval(checkForMediaScreen);
2732
- $("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>");
2733
- $(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>");
2734
- $(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>");
2735
- $(".media-toolbar-secondary").after("<div class='custom-media-select'>Move Selected files to: <select class='media-select-folder'></select></div>");
2736
- $(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>Uploading files</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>");
2737
  if($(".wcp-custom-form").length) {
2738
  if(wp.Uploader !== undefined) {
2739
  wp.Uploader.queue.on('reset', function () {
@@ -2816,7 +2996,18 @@
2816
  nonce = getSettingForPost($(this).val(), 'nonce');
2817
  $.ajax({
2818
  url: wcp_settings.ajax_url,
2819
- data: "post_ids=" + checkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $(this).val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
 
 
 
 
 
 
 
 
 
 
 
2820
  method: 'post',
2821
  success: function (res) {
2822
  res = $.parseJSON(res);
@@ -3005,4 +3196,4 @@
3005
  });
3006
  }
3007
  });
3008
- }));
24
  var isMultipleRemove = false;
25
  var folderIDs = "";
26
  var folderPropertyArray = [];
27
+ var folderCurrentURL = wcp_settings.current_url;
28
  var foldersArray = [];
29
  var hasStars;
30
  var hasChildren;
43
  var currentPage = 1;
44
  $(document).ready(function(){
45
 
46
+ $(document).on("click", ".subsubsub a", function(e){
47
+ if($("#js-tree-menu .jstree-anchor.jstree-clicked").length) {
48
+ var CurrentNode = $("#js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id");
49
+ var folderSlug = getSettingForPost(CurrentNode, 'slug');
50
+ if(folderSlug != "") {
51
+ e.preventDefault();
52
+ var thisURL = $(this).attr("href");
53
+ thisURL = thisURL + "&" + wcp_settings.custom_type + "=" + folderSlug;
54
+ window.location = thisURL;
55
+ }
56
+ } else if($("#dynamic-tree-folders").length && $("#dynamic-tree-folders .jstree-anchor.jstree-clicked").length) {
57
+ var CurrentNode = $("#dynamic-tree-folders .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id");
58
+ if(CurrentNode != "") {
59
+ e.preventDefault();
60
+ var thisURL = $(this).attr("href");
61
+ thisURL = thisURL + "&ajax_action=premio_dynamic_folders&dynamic_folder=" + CurrentNode + "_anchor";
62
+ window.location = thisURL;
63
+ }
64
+ }
65
+ });
66
+
67
  /* check for jetpack */
68
  if($("body").hasClass("jetpack-connected") && !$("body").hasClass("mobile")) {
69
  if(!$("body").hasClass("folded")) {
285
  $(".dynamic-menu").remove();
286
  $(".active-menu").removeClass("active-menu");
287
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
288
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>";
289
  if(hasChildren) {
290
+ menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>";
291
  } else {
292
+ menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.PRO.NEW_SUB_FOLDER+"</a></li>";
293
  }
294
+ menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+wcp_settings.lang.RENAME+"</a></li>" +
295
+ "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+wcp_settings.lang.PRO.OPEN_THIS_FOLDER+"</a></li>" +
296
+ "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+wcp_settings.lang.PRO.STICKY_FOLDER+"</a></li>";
297
  if(hasStars) {
298
+ menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? wcp_settings.lang.REMOVE_STAR : wcp_settings.lang.ADD_STAR) + "</a></li>";
299
  } else {
300
+ menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? wcp_settings.lang.PRO.REMOVE_STAR : wcp_settings.lang.PRO.ADD_STAR) + "</a></li>";
301
  }
302
+ menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+wcp_settings.lang.PRO.LOCK_FOLDER+"</a></li>" +
303
+ "<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+wcp_settings.lang.PRO.DUPLICATE_FOLDER+"</a></li>";
304
 
305
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
306
  if (wcp_settings.post_type == "attachment" && hasPosts) {
307
+ menuHtml += "<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+wcp_settings.lang.PRO.DOWNLOAD_ZIP+"</a></li>";
308
  }
309
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+wcp_settings.lang.DELETE+"</a></li>" +
310
  "</ul></div>";
311
  $("body").append(menuHtml);
312
  var yPosition;
377
  $(".dynamic-menu").remove();
378
  $(".active-menu").removeClass("active-menu");
379
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
380
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>";
381
  if(hasChildren) {
382
+ menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>";
383
  } else {
384
+ menuHtml += "<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.PRO.NEW_SUB_FOLDER+"</a></li>";
385
  }
386
  menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
387
+ "<li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+wcp_settings.lang.PRO.OPEN_THIS_FOLDER+"</a></li>" +
388
+ "<li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+wcp_settings.lang.PRO.STICKY_FOLDER+"</a></li>";
389
  if(hasStars) {
390
+ menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? wcp_settings.lang.ADD_STAR : wcp_settings.lang.REMOVE_STAR) + "</a></li>";
391
  } else {
392
+ menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? wcp_settings.lang.PRO.ADD_STAR : wcp_settings.lang.PRO.REMOVE_STAR) + "</a></li>";
393
  }
394
+ menuHtml += "<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+wcp_settings.lang.PRO.LOCK_FOLDER+"</a></li>" +
395
+ "<li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+wcp_settings.lang.PRO.DUPLICATE_FOLDER+"</a></li>";
396
 
397
  hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
398
  if (wcp_settings.post_type == "attachment" && hasPosts) {
399
+ menuHtml += "<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+wcp_settings.lang.PRO.DOWNLOAD_ZIP+"</a></li>";
400
  }
401
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> "+wcp_settings.lang.DELETE+"</a></li>" +
402
  "</ul></div>";
403
  $("body").append(menuHtml);
404
 
580
  $(".selected-items").remove();
581
  selectedItems = $("#the-list th input:checked").length;
582
  if(selectedItems > 0) {
583
+ selectedItems = (selectedItems == 0 || selectedItems == 1) ? (wcp_settings.lang.ONE_ITEM) : (selectedItems + " " + wcp_settings.lang.ITEMS);
584
+ return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " "+wcp_settings.lang.SELECTED+"</span></div>");
585
  } else {
586
+ return $("<div class='selected-items'><span class='total-post-count'>"+wcp_settings.lang.SELECT_ITEMS+"</span></div>");
587
  }
588
  },
589
  start: function( event, ui){
617
  nonce = getSettingForPost(folderID, 'nonce');
618
  $.ajax({
619
  url: wcp_settings.ajax_url,
620
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
621
+ data: {
622
+ post_ids: chkStr,
623
+ type: wcp_settings.post_type,
624
+ action: "wcp_change_multiple_post_folder",
625
+ folder_id: folderID,
626
+ nonce: nonce,
627
+ status: wcp_settings.taxonomy_status,
628
+ taxonomy: activeRecordID,
629
+ post_status: wcp_settings.post_status
630
+ },
631
  method: 'post',
632
  success: function (res) {
633
  res = $.parseJSON(res);
654
  });
655
  $.ajax({
656
  url: wcp_settings.ajax_url,
657
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
658
  method: 'post',
659
+ data: {
660
+ post_ids: chkStr,
661
+ type: wcp_settings.post_type,
662
+ action: "wcp_change_multiple_post_folder",
663
+ folder_id: folderID,
664
+ nonce: nonce,
665
+ status: wcp_settings.taxonomy_status,
666
+ taxonomy: activeRecordID,
667
+ post_status: wcp_settings.post_status
668
+ },
669
  success: function (res) {
670
  res = $.parseJSON(res);
671
  if(res.status == "1") {
692
  folderIDs = chkStr;
693
  $.ajax({
694
  url: wcp_settings.ajax_url,
695
+ data: {
696
+ post_ids: chkStr,
697
+ type: wcp_settings.post_type,
698
+ action: "wcp_change_multiple_post_folder",
699
+ folder_id: folderID,
700
+ nonce: nonce,
701
+ status: wcp_settings.taxonomy_status,
702
+ taxonomy: activeRecordID,
703
+ post_status: wcp_settings.post_status
704
+ },
705
  method: 'post',
706
  success: function (res) {
707
  // window.location.reload();
794
  });
795
  $.ajax({
796
  url: wcp_settings.ajax_url,
797
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
798
  method: 'post',
799
+ data: {
800
+ post_ids: chkStr,
801
+ type: wcp_settings.post_type,
802
+ action: "wcp_change_multiple_post_folder",
803
+ folder_id: folderID,
804
+ nonce: nonce,
805
+ status: wcp_settings.taxonomy_status,
806
+ taxonomy: activeRecordID,
807
+ post_status: wcp_settings.post_status
808
+ },
809
  success: function (res) {
810
  // window.location.reload();
811
  resetMediaAndPosts();
825
  });
826
  $.ajax({
827
  url: wcp_settings.ajax_url,
828
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
829
  method: 'post',
830
+ data: {
831
+ post_ids: chkStr,
832
+ type: wcp_settings.post_type,
833
+ action: "wcp_change_multiple_post_folder",
834
+ folder_id: folderID,
835
+ nonce: nonce,
836
+ status: wcp_settings.taxonomy_status,
837
+ taxonomy: activeRecordID,
838
+ post_status: wcp_settings.post_status
839
+ },
840
  success: function (res) {
841
  // window.location.reload();
842
  resetMediaAndPosts();
855
  }
856
  $.ajax({
857
  url: wcp_settings.ajax_url,
 
858
  method: 'post',
859
+ data: {
860
+ post_ids: chkStr,
861
+ type: wcp_settings.post_type,
862
+ action: "wcp_change_multiple_post_folder",
863
+ folder_id: folderID,
864
+ nonce: nonce,
865
+ status: wcp_settings.taxonomy_status,
866
+ taxonomy: activeRecordID,
867
+ post_status: wcp_settings.post_status
868
+ },
869
  success: function (res) {
870
  // window.location.reload();
871
  resetMediaAndPosts();
894
  nonce = getSettingForPost(folderID, 'nonce');
895
  $.ajax({
896
  url: wcp_settings.ajax_url,
 
897
  method: 'post',
898
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
899
+ data: {
900
+ post_ids: chkStr,
901
+ type: wcp_settings.post_type,
902
+ action: "wcp_change_multiple_post_folder",
903
+ folder_id: folderID,
904
+ nonce: nonce,
905
+ status: wcp_settings.taxonomy_status,
906
+ taxonomy: activeRecordID,
907
+ post_status: wcp_settings.post_status
908
+ },
909
  success: function (res) {
910
  res = $.parseJSON(res);
911
  if(res.status == "1") {
932
  });
933
  $.ajax({
934
  url: wcp_settings.ajax_url,
 
935
  method: 'post',
936
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID+"&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
937
+ data: {
938
+ post_ids: chkStr,
939
+ type: wcp_settings.post_type,
940
+ action: "wcp_change_multiple_post_folder",
941
+ folder_id: folderID,
942
+ nonce: nonce,
943
+ status: wcp_settings.taxonomy_status,
944
+ taxonomy: activeRecordID,
945
+ post_status: wcp_settings.post_status
946
+ },
947
  success: function (res) {
948
  res = $.parseJSON(res);
949
  if(res.status == "1") {
971
  folderIDs = chkStr;
972
  $.ajax({
973
  url: wcp_settings.ajax_url,
974
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
975
+ data: {
976
+ post_ids: chkStr,
977
+ type: wcp_settings.post_type,
978
+ action: "wcp_change_multiple_post_folder",
979
+ folder_id: folderID,
980
+ nonce: nonce,
981
+ status: wcp_settings.taxonomy_status,
982
+ taxonomy: activeRecordID,
983
+ post_status: wcp_settings.post_status
984
+ },
985
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + folderID + "&nonce="+nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+activeRecordID,
986
  method: 'post',
987
  success: function (res) {
988
  // window.location.reload();
1072
  } else {
1073
  $.ajax({
1074
  url: wcp_settings.ajax_url,
1075
+ data: {
1076
+ type: wcp_settings.post_type,
1077
+ action: "get_folders_default_list",
1078
+ post_status: wcp_settings.post_status
1079
+ },
1080
  method: 'post',
1081
  success: function (res) {
1082
  res = $.parseJSON(res);
1100
  triggerInlineUpdate();
1101
  });
1102
  } else {
1103
+ var ajaxURL = urlParam("paged");
1104
+ if(ajaxURL === false) {
1105
+ ajaxURL = folderCurrentURL+"&paged="+currentPage;
1106
+ } else {
1107
+ ajaxURL = folderCurrentURL;
1108
+ }
1109
+ $("#wpbody").load(ajaxURL + " #wpbody-content", false, function (res) {
1110
+ var obj = { Title: "", Url: ajaxURL };
1111
  history.pushState(obj, obj.Title, obj.Url);
1112
  if (wcp_settings.show_in_page == "show" && !$(".tree-structure").length) {
1113
  $(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>');
1114
  }
1115
  add_active_item_to_list();
1116
+
1117
+ if(typeof inlineEditPost == "object") {
1118
+
1119
+ inlineEditPost.init();
1120
+
1121
+ $("#the-list").on("click",".editinline",function(){
1122
+ $(this).attr("aria-expanded","true");
1123
+ inlineEditPost.edit(this);
1124
+ });
1125
+ $(document).on("click", ".inline-edit-save .save", function(){
1126
+ var thisID = $(this).closest("tr").attr("id");
1127
+ thisID = thisID.replace("edit-","");
1128
+ thisID = thisID.replace("post-","");
1129
+ inlineEditPost.save(thisID);
1130
+ });
1131
+ $(document).on("click", ".inline-edit-save .cancel", function(){
1132
+ var thisID = $(this).closest("tr").attr("id");
1133
+ thisID = thisID.replace("edit-","");
1134
+ thisID = thisID.replace("post-","");
1135
+ inlineEditPost.revert(thisID);
1136
+ });
1137
+ }
1138
  });
1139
  }
1140
  }
1141
  }
1142
 
1143
+ function urlParam(name) {
1144
+ var results = new RegExp('[\?&]' + name + '=([^&#]*)')
1145
+ .exec(window.location.search);
1146
+
1147
+ return (results !== null) ? results[1] || 0 : false;
1148
+ }
1149
+
1150
  function triggerInlineUpdate() {
1151
  add_active_item_to_list();
1152
 
1175
 
1176
  if(wcp_settings.post_type == "attachment") {
1177
  if(!$(".move-to-folder-top").length) {
1178
+ $("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>"+wcp_settings.lang.MOVE_TO_FOLDER+"</option>");
1179
  }
1180
  if(!$(".move-to-folder-bottom").length) {
1181
+ $("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>"+wcp_settings.lang.MOVE_TO_FOLDER+"</option>");
1182
  }
1183
  }
1184
  }
1268
  });
1269
 
1270
  function setCustomScrollForFolder() {
1271
+ var contentHeight = $(window).height() - $("#wpadminbar").height() - $(".sticky-wcp-custom-form").height() - 40;
1272
+
1273
+ /*var scrollTop = 0;
1274
+ if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
1275
+ var $scrollerOuter = $( '#custom-scroll-menu' );
1276
+ var $dragger = $scrollerOuter.find( '.mCSB_dragger' );
1277
+ var scrollHeight = $scrollerOuter.find( '.mCSB_container' ).height();
1278
+ var draggerTop = $dragger.position().top;
1279
+
1280
+ scrollTop = draggerTop / ($scrollerOuter.height() - $dragger.height()) * (scrollHeight - $scrollerOuter.height());
1281
+ $("#custom-scroll-menu").mCustomScrollbar('destroy');
1282
+
1283
+ }
1284
+ $("#custom-scroll-menu").mCustomScrollbar({
1285
+ axis:"y",
1286
+ scrollButtons:{enable:false},
1287
+ setHeight: contentHeight,
1288
+ theme:"3d",
1289
+ scrollbarPosition:"inside",
1290
+ scrollInertia: 500,
1291
+ mouseWheelPixels: 60
1292
+ });
1293
+ if(scrollTop != 0) {
1294
+ $("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
1295
+ }*/
1296
+ $("#custom-scroll-menu").height(contentHeight);
1297
+ $("#custom-scroll-menu").overlayScrollbars({
1298
+ resize : 'none',
1299
+ sizeAutoCapable :true,
1300
+ autoUpdateInterval : 33,
1301
+ x :'scroll',
1302
+ clipAlways :false,
1303
+ y :'scroll'
1304
+ });
1305
+
1306
+ if($(".custom-scroll-menu").hasClass("hor-scroll")) {
1307
+ jQuery("#custom-scroll-menu .os-viewport").on("scroll", function () {
1308
+ setActionPosition();
1309
+ });
1310
+ setActionPosition();
1311
  }
1312
  }
1313
 
1314
+ function setActionPosition() {
1315
+ jQuery("#js-tree-menu span.folder-actions").css("right", (jQuery("#custom-scroll-menu .horizontal-scroll-menu").width() - jQuery("#custom-scroll-menu .os-viewport").width() - $("#custom-scroll-menu .os-viewport").scrollLeft() - 10));
1316
+ }
1317
+
1318
  /* add folder code */
1319
  $(document).ready(function(){
1320
  $(document).on("click", "#add-new-folder", function(){
1515
  return false;
1516
  }
1517
 
1518
+ $("#add-update-folder-title").text(wcp_settings.lang.ADD_NEW_FOLDER);
1519
+ $("#save-folder-data").text(wcp_settings.lang.SUBMIT);
1520
  $(".folder-form-errors").removeClass("active");
1521
  $("#add-update-folder-name").val("");
1522
  if(isDuplicate) {
1836
  }
1837
 
1838
  function removeFolderFromID(popup_type) {
1839
+ var removeMessage = wcp_settings.lang.DELETE_FOLDER_MESSAGE;
1840
+ var removeNotice = wcp_settings.lang.ITEM_NOT_DELETED;
1841
  isMultipleRemove = false;
1842
  if(popup_type == 1) {
1843
  if($("#menu-checkbox").is(":checked")) {
1845
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
1846
  $(".folder-popup-form").hide();
1847
  $(".folder-popup-form").removeClass("disabled");
1848
+ $("#error-folder-popup-message").html(wcp_settings.lang.SELECT_AT_LEAST_ONE_FOLDER);
1849
  $("#error-folder-popup").show();
1850
  return;
1851
  } else {
1852
  if($("#js-tree-menu input.checkbox:checked").length > 1) {
1853
+ removeMessage = wcp_settings.lang.DELETE_FOLDERS_MESSAGE;
1854
+ removeNotice = wcp_settings.lang.ITEMS_NOT_DELETED;
1855
  }
1856
  }
1857
  }
1858
  }
1859
  $(".folder-popup-form").hide();
1860
  $(".folder-popup-form").removeClass("disabled");
1861
+ $("#remove-folder-item").text(wcp_settings.lang.YES_DELETE_IT);
1862
  $("#remove-folder-message").text(removeMessage);
1863
  $("#remove-folder-notice").text(removeNotice);
1864
  $("#confirm-remove-folder").show();
2109
  if($(this).hasClass("all-open")) {
2110
  $(this).removeClass("all-open");
2111
  statusType = 0;
2112
+ $(this).attr("data-folder-tooltip",wcp_settings.lang.EXPAND);
2113
  $("#js-tree-menu").jstree("close_all");
2114
+ $("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND);
2115
  } else {
2116
  $(this).addClass("all-open");
2117
  statusType = 1;
2118
+ $(this).attr("data-folder-tooltip",wcp_settings.lang.COLLAPSE);
2119
  $("#js-tree-menu").jstree("open_all");
2120
+ $("#expand-collapse-list .text").text(wcp_settings.lang.COLLAPSE);
2121
  }
2122
  folderIDs = "";
2123
  $("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){
2397
  currentStatus = true;
2398
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2399
  $("#expand-collapse-list").removeClass("all-open");
2400
+ $("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.EXPAND);
2401
+ $("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND);
2402
  } else {
2403
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2404
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2405
  $("#expand-collapse-list").removeClass("all-open");
2406
+ $("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.EXPAND);
2407
+ $("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND);
2408
  } else {
2409
  $("#expand-collapse-list").addClass("all-open");
2410
+ $("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.COLLAPSE);
2411
+ $("#expand-collapse-list .text").text(wcp_settings.lang.COLLAPSE);
2412
  }
2413
  }
2414
  }, 500);
2635
  nonce = getSettingForPost($("#bulk-select").val(), 'nonce');
2636
  $.ajax({
2637
  url: wcp_settings.ajax_url,
2638
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $("#bulk-select").val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
2639
+ data: {
2640
+ post_ids: chkStr,
2641
+ type: wcp_settings.post_type,
2642
+ action: "wcp_change_multiple_post_folder",
2643
+ folder_id: $("#bulk-select").val(),
2644
+ nonce: nonce,
2645
+ status: wcp_settings.taxonomy_status,
2646
+ taxonomy: activeRecordID,
2647
+ post_status: wcp_settings.post_status
2648
+ },
2649
+ //data: "post_ids=" + chkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $("#bulk-select").val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
2650
  method: 'post',
2651
  success: function (res) {
2652
  res = $.parseJSON(res);
2671
  function show_folder_popup() {
2672
  $("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1");
2673
  if($(".wp-list-table tbody input[type='checkbox']:checked").length == 0) {
2674
+ alert(wcp_settings.lang.SELECT_ITEMS_TO_MOVE);
2675
  } else {
2676
  $("#bulk-move-folder").show();
2677
+ $("#bulk-select").html("<option value=''>"+wcp_settings.lang.LOADING_FILES+"</option>");
2678
  $(".move-to-folder").attr("disabled", true);
2679
  $("#move-to-folder").prop("disabled", true);
2680
  $.ajax({
2683
  method: 'post',
2684
  success: function (res) {
2685
  res = $.parseJSON(res);
2686
+ $("#bulk-select").html("<option value=''>"+wcp_settings.lang.SELECT_FOLDER+"</option><option value='-1'>"+wcp_settings.lang.UNASSIGNED+"</option>");
2687
  $(".move-to-folder").prop("disabled", false);
2688
  $("#move-to-folder").prop("disabled", false);
2689
  if(res.status == 1) {
2909
  function setMediaButtons() {
2910
  if($("button.button.media-button.select-mode-toggle-button").length) {
2911
  clearInterval(checkForMediaScreen);
2912
+ $("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>"+wcp_settings.lang.BULK_ORGANIZE+"</button>");
2913
+ $(".media-toolbar-secondary").append("<span class='media-info-message'>"+wcp_settings.lang.DRAG_AND_DROP+"</span>");
2914
+ $(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>"+wcp_settings.lang.SELECT_ALL+"</button>");
2915
+ $(".media-toolbar-secondary").after("<div class='custom-media-select'>"+wcp_settings.lang.MOVE_SELECTED_FILES+" <select class='media-select-folder'></select></div>");
2916
+ $(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>"+wcp_settings.lang.UPLOADING_FILES+"</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>");
2917
  if($(".wcp-custom-form").length) {
2918
  if(wp.Uploader !== undefined) {
2919
  wp.Uploader.queue.on('reset', function () {
2996
  nonce = getSettingForPost($(this).val(), 'nonce');
2997
  $.ajax({
2998
  url: wcp_settings.ajax_url,
2999
+ //data: "post_ids=" + checkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $(this).val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
3000
+ data: {
3001
+ post_ids: chkStr,
3002
+ type: wcp_settings.post_type,
3003
+ action: "wcp_change_multiple_post_folder",
3004
+ folder_id: $(this).val(),
3005
+ nonce: nonce,
3006
+ status: wcp_settings.taxonomy_status,
3007
+ taxonomy: activeRecordID,
3008
+ post_status: wcp_settings.post_status
3009
+ },
3010
+ //data: "post_ids=" + checkStr + "&type=" + wcp_settings.post_type + "&action=wcp_change_multiple_post_folder&folder_id=" + $(this).val() + "&nonce=" + nonce + "&status=" + wcp_settings.taxonomy_status + "&taxonomy=" + activeRecordID,
3011
  method: 'post',
3012
  success: function (res) {
3013
  res = $.parseJSON(res);
3196
  });
3197
  }
3198
  });
3199
+ }));
assets/js/folders.min.js CHANGED
@@ -1 +1,3 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){function s(){"yes"==wcp_settings.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(wcp_settings.defaultTimeout)))}function o(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function a(){o(),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,s){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,s){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),A=r(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(d(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(d(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),Z=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),s()}}))}}),e(".un-categorised-items:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,s){folderID=-1,A=wcp_settings.nonce,s.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),P(chkStr)):s.draggable.hasClass("wcp-move-file")?(postID=s.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),P(chkStr)):s.draggable.hasClass("attachment")&&(chkStr=s.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),Z=chkStr,P(chkStr))}}),e(".attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e(".attachments-browser li.attachment.selected").length,selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),folderID=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(A=r(folderID,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),C(),s()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),C(),s()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),C(),s()}}))}}),e(".sticky-folders li a:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li").data("folder-id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),A=r(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(d(),C(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(d(),C(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,A=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),Z=chkStr,e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+folderID+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),C(),s()}}))}}),S()}function n(){e("#js-tree-menu .jstree-node").each(function(){var t=e(this).data("count")&&""!=e(this).data("count")?e(this).data("count"):0;e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=V&&0!=V&&e(".jstree-node[id='"+V+"']").length&&(e("#js-tree-menu").jstree("select_node",V),e(".sticky-folders .sticky-folder-"+V+" a").length&&e(".sticky-folders .sticky-folder-"+V+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),u(),I(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),p()}function r(e,t){if(G.length>0)for(i=0;i<G.length;i++)if(parseInt(G[i].folder_id)==parseInt(e))return G[i][t];return""}function l(e){if(G.length>0)for(i=0;i<G.length;i++)if(parseInt(G[i].folder_id)==parseInt(e))return i;return null}function d(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=Z&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==V)){if(e("#media-attachment-taxonomy-filter").length){Z=Z.split(",");for(var t=0;t<Z.length;t++)""!=Z[t]&&e(".attachments-browser li[data-id='"+Z[t]+"']").remove()}Z=""}e("#media-attachment-taxonomy-filter").length?T(0):(e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),ee=t.taxonomies,S()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load($+"&paged="+ae+" #posts-filter",function(){var t={Title:"",Url:$+"&paged="+ae};history.pushState(t,t.Title,t.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()}):e("#wpbody").load($+"&paged="+ae+" #wpbody-content",!1,function(t){var s={Title:"",Url:$+"&paged="+ae};history.pushState(s,s.Title,s.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()}))}function c(){p(),e(".form-loader-count").css("width","0"),"object"==typeof inlineEditPost&&(inlineEditPost.init(),e("#the-list").on("click",".editinline",function(){e(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),e(document).on("click",".inline-edit-save .save",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.save(t)}),e(document).on("click",".inline-edit-save .cancel",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.revert(t)})),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>"))}function p(){if(G.length&&e("li.jstree-node").each(function(){folderPostId=l(e(this).attr("id")),null!=folderPostId&&(1==G[folderPostId].is_high?e(this).addClass("is-high"):e(this).removeClass("is-high"),1==G[folderPostId].is_sticky?e(this).addClass("is-sticky"):e(this).removeClass("is-sticky"))}),folderId=0,e(".tree-structure ul").html(""),folderStatus=!0,e(".jstree-clicked").length&&(folderID=e(".jstree-clicked").closest(".jstree-node").attr("id"),e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").length?(folderStatus=!1,e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=te.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)})):e(".jstree-node[id='"+folderID+"']").closest("ul").hasClass("jstree-container-ul")||(folderStatus=!1)),folderStatus&&e("#js-tree-menu > ul > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=te.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)}),x(),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>")),e(".sticky-folders .active-item").removeClass("active-item"),e("#js-tree-menu li.jstree-node.active-item").length){var t=e("#js-tree-menu li.jstree-node.active-item").data("folder-id");e(".sticky-folders .sticky-folder-"+t+" a").addClass("active-item")}a()}function u(){contentHeight=e(window).height()-e("#wpadminbar").height()-e(".sticky-wcp-custom-form").height()-30;var t=0;if(e("#custom-scroll-menu").hasClass("mCustomScrollbar")){var s=e("#custom-scroll-menu"),o=s.find(".mCSB_dragger"),a=s.find(".mCSB_container").height(),n=o.position().top;t=n/(s.height()-o.height())*(a-s.height()),e("#custom-scroll-menu").mCustomScrollbar("destroy")}e("#custom-scroll-menu").mCustomScrollbar({axis:"y",scrollButtons:{enable:!1},setHeight:contentHeight,theme:"3d",scrollbarPosition:"inside",scrollInertia:500,mouseWheelPixels:60}),0!=t&&e("#custom-scroll-menu").mCustomScrollbar("scrollTo",t+"px",{scrollInertia:0})}function m(){p()}function f(){return 0==J&&R>=10?(e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1):(e("#add-update-folder-title").text("Add a new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),W&&(B=q,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(q).text)+" #2"),q=e("#"+q+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+q+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),void e(".dynamic-menu").remove())}function h(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(q).text),parentID=e("#wcp_folder_"+q).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function g(t){return e(".jstree-node[id='"+t+"']").next().length?e(".jstree-node[id='"+t+"']").next().attr("id"):e(".jstree-node[id='"+t+"']").prev().length?e(".jstree-node[id='"+t+"']").prev().attr("id"):e(".jstree-node[id='"+t+"']").parent().parent().hasClass("jstree-node")?e(".jstree-node[id='"+t+"']").parent().parent().attr("id"):0}function _(){e("#js-tree-menu li.jstree-node").removeClass("has-sub-tree"),e("#js-tree-menu li.jstree-node").each(function(){e(this).find("ul.ui-sortable li").length?e(this).addClass("has-sub-tree"):e(this).removeClass("active")})}function v(){if(e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="",s=!1;if(e("#js-tree-menu input.checkbox:checked").each(function(){e(this).closest("li.jstree-node").hasClass("is-locked")||(t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&(s=!0))}),""==t)return;e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+wcp_settings.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(J=parseInt(t.is_key_active),R=parseInt(t.folders),e("#current-folder").text(R),i=0;i<t.term_ids.length;i++)e("#js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),C(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),d(),I(),C(),_(),e("#wcp_folder_"+V).length||(e(".header-posts a").trigger("click"),V=0)}else window.location.reload();e("#menu-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}function w(t){var s="Are you sure you want to delete the selected folder?",o="Items in the folder will not be deleted.";if(K=!1,1==t&&e("#menu-checkbox").is(":checked")){if(K=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(s="Are you sure you want to delete the selected folders?",o="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(s),e("#remove-folder-notice").text(o),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function j(){e(L).jstree({core:{cache:!1,animation:0,max_depth:M?"-1":1,check_callback:function(t,s,o,a,n){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&n&&n.dnd)switch(n.pos){case"a":n.origin.get_node(n.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!M&&e("#do_not_show_again").is(":checked"))return!1;n.origin.get_node(n.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":n.origin.get_node(n.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){n(),a(),o()}).bind("after_open.jstree",function(){a()}).bind("open_all.jstree",function(){a()}).bind("create_node.jstree",function(){a()}).bind("delete_node.jstree",function(){a()}).bind("close_all.jstree",function(){a()}).bind("after_close.jstree",function(){a()}).bind("move_node.jstree",function(t,s){if(!M){var o=s.old_position,n=s.parent;if("#"!=n)return e("#js-tree-menu").jstree("move_node","#"+s.node.id,"#",o),e("#sub-drag-folder-popup").show(),!1}"#"!=s.node.parent&&jQuery("#js-tree-menu").jstree("open_node",s.node.parent),folderMoveId=s.node.id,orderString="",e("#js-tree-menu .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+wcp_settings.post_type+"&nonce="+wcp_settings.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),d(),C(),S(),a()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))})}function b(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function y(t){e.ajax({url:wcp_settings.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+wcp_settings.post_type+"&post_id="+t+"&nonce="+wcp_settings.nonce,cache:!1,async:!1,success:function(){}})}function k(){setTimeout(function(){if(currentStatus=!0,e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand"),e("#expand-collapse-list .text").text("Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand"),e("#expand-collapse-list .text").text("Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"),e("#expand-collapse-list .text").text("Collapse"))}},500),a()}function x(){0==e(".tree-structure-content .tree-structure li").length?e(".tree-structure-content").hide():(e(".tree-structure-content").show(),oldHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").height("auto"),e(".tree-structure-content .tree-structure").height()>56?e(".folders-toggle-button").show():e(".folders-toggle-button").hide(),newHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").attr("data-height",newHeight),e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").height(newHeight),e(".tree-structure-content .tree-structure").attr("data-height",newHeight)):e(".tree-structure-content .tree-structure").height(oldHeight))}function C(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3)}function I(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var s=e(this).attr("id"),o=e.trim(e("#js-tree-menu").jstree(!0).get_node(s).text),a=e("li.jstree-node[id='"+s+"'] > a span.premio-folder-count").text(),n=e("li.jstree-node[id='"+s+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+s+"' class='sticky-fldr "+n+" sticky-folder-"+s+"'><a href='javascript:;'><span class='folder-title'>"+o+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+a+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var s=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active"),a()}function S(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){wcp_settings.terms=ee;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),lastFolderData=ee;for(var s=0;s<ee.length;s++)t.append("<option value='"+ee[s].term_id+"'>"+ee[s].name+" ("+ee[s].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var s=0;s<ee.length;s++)e("select.folder_for_media option:last-child").before("<option value='"+ee[s].term_id+"'>"+ee[s].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e(".folder-count").text(""),s=0;s<ee.length;s++)""==ee[s].trash_count&&(ee[s].trash_count=0),e(".jstree-node[id='"+ee[s].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(ee[s].trash_count),e(".sticky-folder-"+ee[s].term_id+" .premio-folder-count").text(ee[s].trash_count);if(e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),e(".media-select-folder").length){for(e(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),s=0;s<ee.length;s++)e(".media-select-folder").append("<option value='"+ee[s].term_id+"'>"+ee[s].name+" ("+ee[s].trash_count+")</option>");e(".media-select-folder").val("")}""!=V&&e("#wcp_folder_"+V).addClass("active-item"),Y&&(e("#title_"+q).trigger("click"),Y=!1),uploadFolderID=0}function D(){e("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1"),0==e(".wp-list-table tbody input[type='checkbox']:checked").length?alert("Please select items to move in folder"):(e("#bulk-move-folder").show(),e("#bulk-select").html("<option value=''>Loading...</option>"),e(".move-to-folder").attr("disabled",!0),e("#move-to-folder").prop("disabled",!0),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+V,method:"post",success:function(t){if(t=e.parseJSON(t),e("#bulk-select").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),e(".move-to-folder").prop("disabled",!1),e("#move-to-folder").prop("disabled",!1),1==t.status){var s=t.taxonomies;for(i=0;i<s.length;i++)e("#bulk-select").append("<option value='"+s[i].term_id+"'>"+s[i].name+"</option>")}}}))}function P(t){var o=-1;""==V||0==V?(A=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+o+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(e){d(),s()}})):e.ajax({url:wcp_settings.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:V,type:wcp_settings.post_type,folder_id:o,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:V},method:"post",success:function(t){t=e.parseJSON(t),-1==t.status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(d(),s())}})}function T(s){ne=e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+V,method:"post",beforeSend:function(){null!=ne&&ne.abort()},success:function(o){if(o=e.parseJSON(o),e(".header-posts .total-count").text(o.total_items),e(".un-categorised-items .total-count").text(o.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==s){var a=parent.wp;a.media!=t&&(a.media.frame.setState("insert"),null!==a.media.frame.content.get()&&"undefined"!=typeof a.media.frame.content.get().collection?(a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):a.media.frame.library.props.set({ignore:+new Date}))}ee=o.taxonomies,S(),""!=V&&e("#wcp_folder_"+V).addClass("active-item"),Y&&(e("#title_"+q).trigger("click"),Y=!1)}})}function H(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function N(e,t,s){var o="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),o="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path=/"}function F(e){for(var t=e+"=",s=document.cookie.split(";"),o=0;o<s.length;o++){for(var a=s[o];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}function U(e){document.cookie=e+"=; Max-Age=-99999999;"}function O(){e(".media-position").length||e(".media-frame-content .media-toolbar").before("<div class='media-position'></div>"),e(".media-position").length&&(H(),thisPosition=e(".media-position").offset().top-e(window).scrollTop(),thisPosition<=32?(e(".media-frame-content .media-toolbar").addClass("sticky-media"),e(".media-position").height(e(".media-frame-content .media-toolbar").outerHeight())):(e(".media-frame-content .media-toolbar").removeClass("sticky-media"),e(".media-position").height(1)))}function O(){}function z(){e("button.button.media-button.select-mode-toggle-button").length&&(clearInterval(re),e("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>Bulk Organize</button>"),e(".media-toolbar-secondary").append("<span class='media-info-message'>Drag and drop your media files to the relevant folders</span>"),e(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>Select All</button>"),e(".media-toolbar-secondary").after("<div class='custom-media-select'>Move Selected files to: <select class='media-select-folder'></select></div>"),e(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>Uploading files</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>"),e(".wcp-custom-form").length&&(wp.Uploader!==t&&wp.Uploader.queue.on("reset",function(){T(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&T(0)})),setTimeout(function(){docReferrar=document.referrer,-1!=docReferrar.indexOf("wp-admin/upload.php")?(mediaMode=F("media-select-mode"),"on"==mediaMode&&(e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?e(".media-info-message").addClass("active"):e(".media-info-message, .custom-media-select").removeClass("active"))):U("media-select-mode"),T(1)},1e3))}var A,J,R,E,M,L="#js-tree-menu",V="",Y=!1,W=!1,B=0,q=0,Q=0,X=0,K=!1,Z="",G=[],$=wcp_settings.page_url,ee=[],te="<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'><div class='folder-item is-folder' data-id='__folder_id__'><a title='__folder_name__' id='folder_view___folder_id__'class='folder-view __append_class__ has-new-folder'data-id='__folder_id__'><span class='folder item-name'><span id='wcp_folder_text___folder_id__'class='folder-title'>__folder_name__</span></span></a></div></li>",se=null,oe=null,ae=1;if(e(document).ready(function(){if(e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var s=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",s):e(".wcp-content").css("left",s)}e(document).on("click","#collapse-button",function(){setTimeout(function(){if(e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var t=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",t):e(".wcp-content").css("left",t)}},50)}),ee=wcp_settings.taxonomies,J=parseInt(wcp_settings.is_key_active),R=parseInt(wcp_settings.folders),V=parseInt(wcp_settings.selected_taxonomy),E=parseInt(wcp_settings.hasStars),M=parseInt(wcp_settings.hasChildren),ae=parseInt(wcp_settings.currentPage),console.log(V),G=wcp_settings.folder_settings,e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),j(),u(),e(document).ajaxComplete(function(e,t,s){var o=s.data;"undefined"!=typeof o&&o.length&&-1!=o.indexOf("action=inline-save")&&(d(),c())});var o="1"==wcp_settings.isRTL||1==wcp_settings.isRTL?"w":"e";e(".wcp-content").resizable({resizeHeight:!1,handles:o,minWidth:100,maxWidth:500,resize:function(t,s){var o=s.size.width;for(275>=o?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),245>=o&&(o=245),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",o+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",o+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),newWidth=o-40,cssString="",classString="",i=0;i<=15;i++)classString+=" .space > .jstree-node >",currentWidth=newWidth-(13+20*i),cssString+="#js-tree-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ",cssString+="#js-tree-menu > "+classString+" .dynamic-menu { left: "+(currentWidth-190)+"px !important; } ",O();e("#wcp-custom-style").html("<style>"+cssString+"</style>"),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)")):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250))},stop:function(t,s){var o=s.size.width;s.size.width<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),245>=o&&(o=245),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+folderStatus+"&nonce="+A,method:"post",success:function(e){O()}})):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)),A=wcp_settings.nonce,wcp_settings.folder_width=s.size.width,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_post_width&width="+o+"&nonce="+A,method:"post",success:function(e){O()}}),s.size.width<=245&&(e(".wcp-content").width(245),wcp_settings.folder_width=245)}}),e(document).on("contextmenu","#js-tree-menu .jstree-anchor",function(t){return se=t.pageX,oe=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click","#js-tree-menu .folder-actions span.folder-inline-edit",function(s){if(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder){isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",M?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":menuHtml+="<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",E?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml);var o;s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",se),e(".dynamic-menu").css("top",oe-10),o=oe):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),e(this).parents("li.jstree-node").addClass("active-menu"),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height()))}}),e(document).on("click",".sticky-folders .sticky-fldr > a",function(t){t.stopPropagation();var s=e(this).closest("li").data("folder-id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",V),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("contextmenu",".sticky-folders li .sticky-fldr > a",function(t){return e(this).find("span.update-inline-record").trigger("click"),!1}),e(document).on("click",".tree-structure a",function(t){t.stopPropagation();var s=e(this).data("id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",V),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("click",".update-inline-record",function(s){if(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder){isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",M?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":menuHtml+="<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",E?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> Delete</a></li></ul></div>",e("body").append(menuHtml);var o;s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",se),e(".dynamic-menu").css("top",oe-10),o=oe):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height()))}}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide(),e(".jstree-node[id='"+q+"']").length&&e(".jstree-node[id='"+q+"'] > a.jstree-anchor").trigger("focus")}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".wcp-hide-show-buttons .toggle-buttons",function(){var t="show";e(this).hasClass("hide-folders")&&(t="hide"),e(".wcp-hide-show-buttons .toggle-buttons").toggleClass("active"),A=wcp_settings.nonce,"show"==t?(e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+parseInt(wcp_settings.folder_width)+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)):(e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)")),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+t+"&nonce="+A,method:"post",success:function(e){O()}})}),a(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&a()}),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==wcp_settings.useFolderUndo&&e.ajax({url:wcp_settings.ajax_url,type:"post",data:{post_type:wcp_settings.post_type,nonce:wcp_settings.nonce,action:"wcp_undo_folder_changes"},success:function(s){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){var o=parent.wp;o.media!=t&&(o.media.frame.setState("insert"),null!==o.media.frame.content.get()&&"undefined"!=typeof o.media.frame.content.get().collection?(o.media.frame.content.get().collection.props.set({ignore:+new Date}),o.media.frame.content.get().options.selection.reset()):o.media.frame.library.props.set({ignore:+new Date}))}d()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})}),e(window).on("resize",function(){u(),O()}),e(window).scroll(function(){O()}),e(document).ready(function(){e(document).on("click","#add-new-folder",function(){e("#js-tree-menu a.jstree-clicked").length?(q=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),M||e("#pro-notice").removeClass("hide-it")):(q=0,e("#pro-notice").addClass("hide-it")),Y=!1,f()}),e(document).on("mouseover",".folders-action-menu",function(){e("body").addClass("add-folder-zindex")}).on("mouseleave",".folders-action-menu",function(){e("body").removeClass("add-folder-zindex")}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").hasClass("jstree")&&e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),e(document).on("click",".new-folder",function(){q=e(this).closest(".dynamic-menu").data("id"),Y=!1,Q=0,f()}),e(document).on("click",".new-main-folder",function(){Q=1,q=e(this).closest(".dynamic-menu").data("id"),Y=!1,f()}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),Q=0,q=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),Y=!1,W=!0,f(),m()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),folderNameDynamic=e.trim(e("#add-update-folder-name").val()),""==e.trim(folderNameDynamic))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var s=q;Y&&(s=0),M||(s=0);var o="";0==s?(X=e("#js-tree-menu > ul > li.jstree-node").length,Q&&(X=jQuery("#js-tree-menu > ul > li[id='"+q+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){o+=jQuery(this).attr("id")+",",e==X&&(o+="#,")}),X+=1)):X=e("#js-tree-menu > ul > li.jstree-node[id='"+s+"'] > ul.jstree-children > li").length+1,e.ajax({url:wcp_settings.ajax_url,data:{parent_id:s,type:wcp_settings.post_type,action:"wcp_add_new_folder",nonce:wcp_settings.nonce,term_id:s,order:X,name:folderNameDynamic,is_duplicate:W,duplicate_from:B,parent_ids:o,parent_menu:Q},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(J=parseInt(result.is_key_active),R=parseInt(result.folders),e("#current-folder").text(R),e("#ttl-fldr").text(10),k(),m(),result.data.length)for(var s=0;s<result.data.length;s++){var o={folder_id:result.data[s].term_id,folder_count:0,is_sticky:result.data[s].is_sticky,is_high:result.data[s].is_high,nonce:result.data[s].nonce,slug:result.data[s].slug,is_deleted:0};G.push(o),Q?e("#js-tree-menu").jstree().create_node("#",{id:result.data[s].term_id,text:" "+result.data[s].title},X,function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug),e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}):e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[s].term_id,text:" "+result.data[s].title},"last",function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug),e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}),Q=0,e(".jstree-node[id='"+result.data[s].term_id+"']").length&&e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor").trigger("focus")}C(),I(),e("#media-attachment-taxonomy-filter").length&&(q=result.term_id,T(0),resetSelectMediaDropDown()),W=!1,B=0}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1})}),e(document).ready(function(){e("#inline-update").on("click",function(){e("#js-tree-menu a.jstree-clicked").length&&(q=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),h())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),q=e(this).closest(".dynamic-menu").data("id"),h(),e(".dynamic-menu").remove()}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide(),e(".jstree-node[id='"+q+"']").length?e(".jstree-node[id='"+q+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide(),e(".jstree-node[id='"+q+"']").length?e(".jstree-node[id='"+q+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),e(document).on("submit","#update-folder-form",function(s){return s.stopPropagation(),s.preventDefault(),folderNameDynamic=e("#update-folder-item-name").val(),""==e.trim(folderNameDynamic)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),A=r(q,"nonce"),parentID=e(".jstree-node[id='"+q+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:wcp_settings.ajax_url,data:{parent_id:parentID,type:wcp_settings.post_type,action:"wcp_update_folder",nonce:A,term_id:q,order:X,name:folderNameDynamic},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=l(result.id),null!=folderPostId&&(G[folderPostId].nonce=result.nonce,G[folderPostId].slug=result.slug),m(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),C(),e("#media-attachment-taxonomy-filter").length&&T(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()),e("#dynamic-folders .jstree-clicked").length&&e("#js-tree-menu .jstree-clicked").removeClass("jstree-clicked")}})),!1})}),e(document).ready(function(){e(document).on("click","#inline-remove, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(q=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),w(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),w(1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".remove-folder",function(){folderID=e(this).closest("li.jstree-node").data("id"),q=e(this).closest(".dynamic-menu").data("id"),w(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),A=r(q,"nonce"),K?v():e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_folder&term_id="+q+"&nonce="+A,method:"post",success:function(t){if(t=e.parseJSON(t),"1"==t.status){var s=g(q);e("#js-tree-menu").jstree().delete_node(q),J=parseInt(t.is_key_active),R=parseInt(t.folders),e("#current-folder").text(R),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+q).remove(),m(),C(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),d(),I(),0!=s&&e("#"+s+"_anchor").length?e("#"+s+"_anchor").trigger("click"):e(".header-posts").trigger("click")}else e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show()}})})}),e(document).ready(function(){e(document).on("click",".mark-folder",function(t){t.stopPropagation(),folderID=e(this).closest(".dynamic-menu").data("id"),A=r(folderID,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:wcp_settings.ajax_url,data:"term_id="+folderID+"&type="+wcp_settings.post_type+"&action=wcp_mark_un_mark_folder&nonce="+A,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=l(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(G[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(G[folderPostId].is_high=0)),m(),C(),e(".jstree-node[id='"+t.id+"']").length&&e(".jstree-node[id='"+t.id+"'] > a.jstree-anchor").trigger("focus")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".jstree-node .jstree-icon",function(){folderID=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")?folderStatus=1:folderStatus=0,e(".form-loader-count").css("width","100%"),A=r(folderID,"nonce"),k(),e.ajax({url:wcp_settings.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+folderID+"&nonce="+A,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status||(e("#wcp_folder_"+folderID).hasClass("active")?(e("#wcp_folder_"+folderID).removeClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+folderID).addClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),C())}})})}),e(document).ready(function(){e(document).on("click","a.jstree-anchor",function(t){if(ae=1,t.stopPropagation(),e(".un-categorised-items").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e("active-item").removeClass("active-item"),V=e(this).closest("li.jstree-node").attr("id"),q=e(this).closest("li.jstree-node").attr("id"),e(".sticky-folders .sticky-folder-"+V+" a").addClass("active-item"),e("#js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e("#js-tree-menu").jstree("select_node",V),e("#js-tree-menu #"+V+"_anchor").addClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){var s=e(this).closest("li.jstree-node").attr("id");e("#media-attachment-taxonomy-filter").val(s),e("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=r(s,"slug"),$=wcp_settings.page_url+thisSlug+"&paged="+ae;var o={Title:thisSlug,Url:$};history.pushState(o,o.Title,o.Url),y(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=r(V,"slug");$=wcp_settings.page_url+a+"&paged="+ae,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load($+" #posts-filter",function(){var t={Title:a,Url:$};history.pushState(t,t.Title,t.Url),y(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),c()}):e("#wpbody").load($+" #wpbody-content",function(){var t={Title:a,Url:$};history.pushState(t,t.Title,t.Url),y(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),c()})}p(),e(".sticky-folders .sticky-folder-"+V+" a").addClass("active-item")}),e(document).on("click","#js-tree-menu input.checkbox",function(){o()}),e(".header-posts").on("click",function(){if(V="",e(".wcp-container .route").removeClass("active-item"),e(".un-categorised-items").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".header-posts a").addClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){V="",e("#media-attachment-taxonomy-filter").val("all"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url};history.pushState(t,t.Title,t.Url),y("all"),p()}else ae=1,$=wcp_settings.page_url+"&paged="+ae,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load($+" #posts-filter",function(){var t={Title:"",Url:$};history.pushState(t,t.Title,t.Url),y("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()}):e("#wpbody").load($+" #wpbody-content",function(){var t={Title:"",Url:$};history.pushState(t,t.Title,t.Url),y("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()});o()}),e(".un-categorised-items").on("click",function(){if(V="-1",e(".wcp-container .route").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e(".un-categorised-items").addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){e("#media-attachment-taxonomy-filter").val("unassigned"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url+"-1"};history.pushState(t,t.Title,t.Url),y("-1"),p()}else ae=1,$=wcp_settings.page_url+"-1&paged="+ae,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load($+" #posts-filter",function(){var t={Title:"",Url:$};history.pushState(t,t.Title,t.Url),y("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()}):e("#wpbody").load($+" #wpbody-content",function(){var t={Title:"",Url:$};history.pushState(t,t.Title,t.Url),y("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p(),c()});o()}),e("#expand-collapse-list").on("click",function(t){t.stopPropagation(),statusType=0,e(this).hasClass("all-open")?(e(this).removeClass("all-open"),statusType=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all"),e("#expand-collapse-list .text").text("Expand")):(e(this).addClass("all-open"),statusType=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all"),e("#expand-collapse-list .text").text("Collapse")),Z="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){Z+=e(this).attr("id")+","}),""!=Z&&(e(".form-loader-count").css("width","100%"),A=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_all_status&status="+statusType+"&folders="+Z+"&nonce="+A,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),k()}),e(document).ready(function(){e(document).on("click","body, html",function(){e(".folder-order").removeClass("active")}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),lastOrderStatus=e(this).attr("data-sort"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_folders_by_order&nonce="+wcp_settings.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){t=e.parseJSON(t),1==t.status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),j(),ee=t.terms,S()),e(".form-loader-count").css("width","0"),p()}})})}),e(document).ready(function(){e(document).on("keyup","#folder-search",function(){b()}),e(document).on("change","#folder-search",function(){b()}),e(document).on("blur","#folder-search",function(){b()}),e(document).on("click","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:wcp_settings.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:wcp_settings.nonce,post_type:wcp_settings.post_type}})})}),e(document).ready(function(){e(document).on("click",".folders-toggle-button",function(){dbStatus="show",e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").animate({height:"40px"},100,function(){e(".tree-structure-content").removeClass("active")}),dbStatus="hide"):(newHeight=parseInt(e(".tree-structure-content .tree-structure").attr("data-height")),e(".tree-structure-content .tree-structure").animate({height:newHeight},100,function(){e(".tree-structure-content").addClass("active")})),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_hide_folders&status="+dbStatus+"&nonce="+wcp_settings.nonce,method:"post",success:function(e){O()}})})}),e(document).ready(function(){e(document).on("click","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:wcp_settings.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:V,type:wcp_settings.post_type,folder_id:-1,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:V,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),C(),d(),s()}})}),e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),wp.media.frame.close(),!1}),e(document).on("click","#doaction",function(t){return"move_to_folder"==e("#bulk-action-selector-top").val()?(D(),!1):"edit"==e("#bulk-action-selector-top").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("click","#doaction2",function(t){return"move_to_folder"==e("#bulk-action-selector-bottom").val()?(D(),!1):"edit"==e("#bulk-action-selector-bottom").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("submit","#bulk-folder-form",function(t){t.stopPropagation(),t.preventDefault(),""!=e("#bulk-select").val()&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),""!=e("#bulk-select").val()&&("-1"==e("#bulk-select").val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){e("#bulk-move-folder").hide(),d(),C()}}):(A=r(e("#bulk-select").val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e("#bulk-select").val()+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(d(),C()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))))})}),"attachment"==wcp_settings.post_type){e(document).ready(function(){"show"==wcp_settings.show_in_page&&e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div><div class="folders-toggle-button"><span></span></div></div>'),m(),x()});var ne=null;H(),e(window).resize(function(){H()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?U("media-select-mode"):N("media-select-mode","on",7),e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))}),e(document).on("click",".select-mode-toggle-button",function(){setTimeout(function(){e(".media-frame").hasClass("mode-select")||N("media-select-mode","off",-1),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))},10)}),e(document).on("click",".select-all-item-btn",function(){e("ul.attachments li:not(.selected)").trigger("click")}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(q=0,Y=!0,f())}),e(window).scroll(function(){O()})}var re;e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(re=setInterval(function(){z()},1e3)),e(document).on("click",".attachments-browser ul.attachments .thumbnail",function(){"attachment"==wcp_settings.post_type&&e(".media-toolbar").hasClass("media-toolbar-mode-select")&&(0==e("ul.attachments li.selected").length?e(".custom-media-select").removeClass("active"):e(".custom-media-select").addClass("active"))}),e(document).on("change",".media-select-folder",function(){if("attachment"==wcp_settings.post_type&&""!=e(this).val()){var t="";e(".attachments-browser li.attachment.selected").each(function(){t+=e(this).attr("data-id")+","}),"-1"==e(this).val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){0!=q&&q!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),d(),C()}}):(A=r(e(this).val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:"post_ids="+t+"&type="+wcp_settings.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+e(this).val()+"&nonce="+A+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+V,method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(0!=q&&q!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),d(),C()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))}})}),e(document).ready(function(){"yes"==wcp_settings.use_shortcuts&&(e(document).on("click",".view-shortcodes",function(t){t.preventDefault(),e("#keyboard-shortcut").show()}),e(document).keydown(function(t){var s=t.ctrlKey||t.metaKey?!0:!1;if(e("input").is(":focus")||e("textarea").is(":focus")||!t.shiftKey||78!=t.keyCode&&78!=t.which||(t.preventDefault(),e("#add-new-folder").trigger("click")),(113==t.keyCode||113==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")&&(q=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),h(),e(".dynamic-menu").remove()),!s||67!=t.keyCode&&67!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(isFolderCopy=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="copy",e(".folders-undo-notification").removeClass("active"),e("#copy-message").addClass("active"),setTimeout(function(){e("#copy-message").removeClass("active")},5e3),o()),!s||88!=t.keyCode&&88!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),isFolderCopy=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="cut",e(".folders-undo-notification").removeClass("active"),e("#cut-message").addClass("active"),setTimeout(function(){e("#cut-message").removeClass("active")},5e3),o()),!s||86!=t.keyCode&&86!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),V=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),(""==V||isNaN(V))&&(V=0),0!=isFolderCopy&&""!=isFolderCopy&&isFolderCopy!=V&&("cut"==CPCAction?(lastParentID=e("#"+isFolderCopy).data("parent"),lastCopiedFolder=isFolderCopy,lastFolderOrder=e("#"+isFolderCopy).index()+1,""!=V&&0!=V?e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#"+V,0):e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#",e("#js-tree-menu > ul > li.jstree-node").length),e(".folders-undo-notification").removeClass("active"),e("#paste-message").addClass("active"),setTimeout(function(){e("#paste-message").removeClass("active")},5e3)):((""==V||isNaN(V))&&(V=0),copyFolders(isFolderCopy,V)),o(),CPCAction="",isFolderCopy=0)),!s||75!=t.keyCode&&75!=t.which||e("#keyboard-shortcut").show(),(46==t.keyCode||46==t.which||8==t.keyCode||8==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")&&(e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").hasClass("is-locked")||(q=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),w(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"))),s&&(40==t.keyCode||40==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")){q=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+q).data("parent")),n=parseInt(e("#"+q).index())+1,r=parseInt(e("#"+q).data("child"));isNaN(a)&&(a=e("li#"+q).parents("li.jstree-node").length?e("li#"+q).parents("li.jstree-node").data("folder"):0,r=e("li#"+q).parents("li.jstree-node").length?e("li#"+q).parents("li.jstree-node").children():e("#js-tree-menu > ul > li").length),0==a&&(a=""),r==n?e("#js-tree-menu").jstree("move_node","#"+q,"#"+a,0):e("#js-tree-menu").jstree("move_node","#"+q,"#"+a,n+1)}if(s&&(38==t.keyCode||38==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")){q=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+q).data("parent")),n=parseInt(e("#"+q).index())-1,r=parseInt(e("#"+q).data("child"));isNaN(a)&&(n=parseInt(e("#"+q).index())-1,a=e("li#"+q).parents("li.jstree-node").length?e("li#"+q).parents("li.jstree-node").data("folder"):0,r=e("li#"+q).parents("li.jstree-node").length?e("li#"+q).parents("li.jstree-node").children():e("#js-tree-menu > ul > li").length),0==a&&(a=""),-1==n?e("#js-tree-menu").jstree("move_node","#"+q,"#"+a,r):e("#js-tree-menu").jstree("move_node","#"+q,"#"+a,n)}(27==t.keyCode||27==t.which)&&(e(".folder-popup-form").hide(),e(".jstree-node[id='"+q+"']").length?e(".jstree-node[id='"+q+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus"))}))})});
 
 
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){function s(){"yes"==wcp_settings.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(wcp_settings.defaultTimeout)))}function o(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function a(){o(),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,s){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,s){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?wcp_settings.lang.ONE_ITEM:selectedItems+" "+wcp_settings.lang.ITEMS,e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" "+wcp_settings.lang.SELECTED+"</span></div>")):e("<div class='selected-items'><span class='total-post-count'>"+wcp_settings.lang.SELECT_ITEMS+"</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li.jstree-node").attr("id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),U=r(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(c(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(t){t=e.parseJSON(t),"1"==t.status?(c(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),$=chkStr,e.ajax({url:wcp_settings.ajax_url,data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},method:"post",success:function(e){c(),s()}}))}}),e(".un-categorised-items:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,s){folderID=-1,U=wcp_settings.nonce,s.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),T(chkStr)):s.draggable.hasClass("wcp-move-file")?(postID=s.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),T(chkStr)):s.draggable.hasClass("attachment")&&(chkStr=s.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),$=chkStr,T(chkStr))}}),e(".attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,s){return e(".selected-items").remove(),selectedItems=e(".attachments-browser li.attachment.selected").length,selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")},start:function(t,s){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,s){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){e("body").removeClass("no-hover-css"),folderID=e(this).data("id"),o.draggable.hasClass("wcp-move-multiple")?(U=r(folderID,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(e){c(),S(),s()}}))):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(e){c(),S(),s()}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(e){c(),S(),s()}}))}}),e(".sticky-folders li a:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){folderID=e(this).closest("li").data("folder-id"),o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),U=r(folderID,"nonce"),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(t){t=e.parseJSON(t),"1"==t.status?(c(),S(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:wcp_settings.ajax_url,method:"post",data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},success:function(t){t=e.parseJSON(t),"1"==t.status?(c(),S(),s()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,U=r(folderID,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),$=chkStr,e.ajax({url:wcp_settings.ajax_url,data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:folderID,nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},method:"post",success:function(e){c(),S(),s()}}))}}),E()}function n(){e("#js-tree-menu .jstree-node").each(function(){var t=e(this).data("count")&&""!=e(this).data("count")?e(this).data("count"):0;e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=X&&0!=X&&e(".jstree-node[id='"+X+"']").length&&(e("#js-tree-menu").jstree("select_node",X),e(".sticky-folders .sticky-folder-"+X+" a").length&&e(".sticky-folders .sticky-folder-"+X+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),m(),D(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),u()}function r(e,t){if(ee.length>0)for(i=0;i<ee.length;i++)if(parseInt(ee[i].folder_id)==parseInt(e))return ee[i][t];return""}function l(e){if(ee.length>0)for(i=0;i<ee.length;i++)if(parseInt(ee[i].folder_id)==parseInt(e))return i;return null}function c(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=$&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==X)){if(e("#media-attachment-taxonomy-filter").length){$=$.split(",");for(var t=0;t<$.length;t++)""!=$[t]&&e(".attachments-browser li[data-id='"+$[t]+"']").remove()}$=""}if(e("#media-attachment-taxonomy-filter").length)O(0);else if(e.ajax({url:wcp_settings.ajax_url,data:{type:wcp_settings.post_type,action:"get_folders_default_list",post_status:wcp_settings.post_status},method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),se=t.taxonomies,E()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length)e("#folder-posts-filter").load(te+"&paged="+ie+" #posts-filter",function(){var t={Title:"",Url:te+"&paged="+ie};history.pushState(t,t.Title,t.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),p()});else{var s=d("paged");s=s===!1?te+"&paged="+ie:te,e("#wpbody").load(s+" #wpbody-content",!1,function(t){var o={Title:"",Url:s};history.pushState(o,o.Title,o.Url),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),"object"==typeof inlineEditPost&&(inlineEditPost.init(),e("#the-list").on("click",".editinline",function(){e(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),e(document).on("click",".inline-edit-save .save",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.save(t)}),e(document).on("click",".inline-edit-save .cancel",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.revert(t)}))})}}function d(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t?t[1]||0:!1}function p(){u(),e(".form-loader-count").css("width","0"),"object"==typeof inlineEditPost&&(inlineEditPost.init(),e("#the-list").on("click",".editinline",function(){e(this).attr("aria-expanded","true"),inlineEditPost.edit(this)}),e(document).on("click",".inline-edit-save .save",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.save(t)}),e(document).on("click",".inline-edit-save .cancel",function(){var t=e(this).closest("tr").attr("id");t=t.replace("edit-",""),t=t.replace("post-",""),inlineEditPost.revert(t)})),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>"+wcp_settings.lang.MOVE_TO_FOLDER+"</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>"+wcp_settings.lang.MOVE_TO_FOLDER+"</option>"))}function u(){if(ee.length&&e("li.jstree-node").each(function(){folderPostId=l(e(this).attr("id")),null!=folderPostId&&(1==ee[folderPostId].is_high?e(this).addClass("is-high"):e(this).removeClass("is-high"),1==ee[folderPostId].is_sticky?e(this).addClass("is-sticky"):e(this).removeClass("is-sticky"))}),folderId=0,e(".tree-structure ul").html(""),folderStatus=!0,e(".jstree-clicked").length&&(folderID=e(".jstree-clicked").closest(".jstree-node").attr("id"),e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").length?(folderStatus=!1,e(".jstree-node[id='"+folderID+"'] > ul.jstree-children > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=oe.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)})):e(".jstree-node[id='"+folderID+"']").closest("ul").hasClass("jstree-container-ul")||(folderStatus=!1)),folderStatus&&e("#js-tree-menu > ul > li.jstree-node").each(function(){fID=e(this).attr("id"),fName=e.trim(e("#js-tree-menu").jstree(!0).get_node(fID).text),liHtml=oe.replace(/__folder_id__/g,fID),liHtml=liHtml.replace(/__folder_name__/g,fName),selectedClass=e(this).hasClass("is-high")?"is-high":"",liHtml=liHtml.replace(/__append_class__/g,selectedClass),e(".tree-structure ul").append(liHtml)}),I(),"attachment"==wcp_settings.post_type&&(e(".move-to-folder-top").length||e("#bulk-action-selector-top").append("<option class='move-to-folder-top' value='move_to_folder'>Move to Folder</option>"),e(".move-to-folder-bottom").length||e("#bulk-action-selector-bottom").append("<option class='move-to-folder-bottom' value='move_to_folder'>Move to Folder</option>")),e(".sticky-folders .active-item").removeClass("active-item"),e("#js-tree-menu li.jstree-node.active-item").length){var t=e("#js-tree-menu li.jstree-node.active-item").data("folder-id");e(".sticky-folders .sticky-folder-"+t+" a").addClass("active-item")}a()}function m(){var t=e(window).height()-e("#wpadminbar").height()-e(".sticky-wcp-custom-form").height()-40;e("#custom-scroll-menu").height(t),e("#custom-scroll-menu").overlayScrollbars({resize:"none",sizeAutoCapable:!0,autoUpdateInterval:33,x:"scroll",clipAlways:!1,y:"scroll"}),e(".custom-scroll-menu").hasClass("hor-scroll")&&(jQuery("#custom-scroll-menu .os-viewport").on("scroll",function(){f()}),f())}function f(){jQuery("#js-tree-menu span.folder-actions").css("right",jQuery("#custom-scroll-menu .horizontal-scroll-menu").width()-jQuery("#custom-scroll-menu .os-viewport").width()-e("#custom-scroll-menu .os-viewport").scrollLeft()-10)}function h(){u()}function g(){return 0==M&&z>=10?(e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1):(e("#add-update-folder-title").text(wcp_settings.lang.ADD_NEW_FOLDER),e("#save-folder-data").text(wcp_settings.lang.SUBMIT),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),Q&&(K=B,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(B).text)+" #2"),B=e("#"+B+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+B+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),void e(".dynamic-menu").remove())}function _(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(B).text),parentID=e("#wcp_folder_"+B).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function v(t){return e(".jstree-node[id='"+t+"']").next().length?e(".jstree-node[id='"+t+"']").next().attr("id"):e(".jstree-node[id='"+t+"']").prev().length?e(".jstree-node[id='"+t+"']").prev().attr("id"):e(".jstree-node[id='"+t+"']").parent().parent().hasClass("jstree-node")?e(".jstree-node[id='"+t+"']").parent().parent().attr("id"):0}function w(){e("#js-tree-menu li.jstree-node").removeClass("has-sub-tree"),e("#js-tree-menu li.jstree-node").each(function(){e(this).find("ul.ui-sortable li").length?e(this).addClass("has-sub-tree"):e(this).removeClass("active")})}function j(){if(e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="",s=!1;if(e("#js-tree-menu input.checkbox:checked").each(function(){e(this).closest("li.jstree-node").hasClass("is-locked")||(t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&(s=!0))}),""==t)return;e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+wcp_settings.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(M=parseInt(t.is_key_active),z=parseInt(t.folders),e("#current-folder").text(z),i=0;i<t.term_ids.length;i++)e("#js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),S(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),c(),D(),S(),w(),e("#wcp_folder_"+X).length||(e(".header-posts a").trigger("click"),X=0)}else window.location.reload();e("#menu-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}function b(t){var s=wcp_settings.lang.DELETE_FOLDER_MESSAGE,o=wcp_settings.lang.ITEM_NOT_DELETED;if(Z=!1,1==t&&e("#menu-checkbox").is(":checked")){if(Z=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(wcp_settings.lang.SELECT_AT_LEAST_ONE_FOLDER),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(s=wcp_settings.lang.DELETE_FOLDERS_MESSAGE,o=wcp_settings.lang.ITEMS_NOT_DELETED)}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text(wcp_settings.lang.YES_DELETE_IT),e("#remove-folder-message").text(s),e("#remove-folder-notice").text(o),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function y(){e(W).jstree({core:{cache:!1,animation:0,max_depth:J?"-1":1,check_callback:function(t,s,o,a,n){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&n&&n.dnd)switch(n.pos){case"a":n.origin.get_node(n.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!J&&e("#do_not_show_again").is(":checked"))return!1;n.origin.get_node(n.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":n.origin.get_node(n.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){n(),a(),o()}).bind("after_open.jstree",function(){a()}).bind("open_all.jstree",function(){a()}).bind("create_node.jstree",function(){a()}).bind("delete_node.jstree",function(){a()}).bind("close_all.jstree",function(){a()}).bind("after_close.jstree",function(){a()}).bind("move_node.jstree",function(t,s){if(!J){var o=s.old_position,n=s.parent;if("#"!=n)return e("#js-tree-menu").jstree("move_node","#"+s.node.id,"#",o),e("#sub-drag-folder-popup").show(),!1}"#"!=s.node.parent&&jQuery("#js-tree-menu").jstree("open_node",s.node.parent),folderMoveId=s.node.id,orderString="",e("#js-tree-menu .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:wcp_settings.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+wcp_settings.post_type+"&nonce="+wcp_settings.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),c(),S(),E(),a()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))})}function k(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function x(t){e.ajax({url:wcp_settings.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+wcp_settings.post_type+"&post_id="+t+"&nonce="+wcp_settings.nonce,cache:!1,async:!1,success:function(){}})}function C(){setTimeout(function(){if(currentStatus=!0,e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.EXPAND),e("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND);else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.EXPAND),e("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND)):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",wcp_settings.lang.COLLAPSE),e("#expand-collapse-list .text").text(wcp_settings.lang.COLLAPSE))}},500),a()}function I(){0==e(".tree-structure-content .tree-structure li").length?e(".tree-structure-content").hide():(e(".tree-structure-content").show(),oldHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").height("auto"),e(".tree-structure-content .tree-structure").height()>56?e(".folders-toggle-button").show():e(".folders-toggle-button").hide(),newHeight=e(".tree-structure-content .tree-structure").height(),e(".tree-structure-content .tree-structure").attr("data-height",newHeight),e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").height(newHeight),e(".tree-structure-content .tree-structure").attr("data-height",newHeight)):e(".tree-structure-content .tree-structure").height(oldHeight))}function S(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3)}function D(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var s=e(this).attr("id"),o=e.trim(e("#js-tree-menu").jstree(!0).get_node(s).text),a=e("li.jstree-node[id='"+s+"'] > a span.premio-folder-count").text(),n=e("li.jstree-node[id='"+s+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+s+"' class='sticky-fldr "+n+" sticky-folder-"+s+"'><a href='javascript:;'><span class='folder-title'>"+o+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+a+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var s=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active"),a()}function E(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){wcp_settings.terms=se;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),lastFolderData=se;for(var s=0;s<se.length;s++)t.append("<option value='"+se[s].term_id+"'>"+se[s].name+" ("+se[s].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var s=0;s<se.length;s++)e("select.folder_for_media option:last-child").before("<option value='"+se[s].term_id+"'>"+se[s].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e(".folder-count").text(""),s=0;s<se.length;s++)""==se[s].trash_count&&(se[s].trash_count=0),e(".jstree-node[id='"+se[s].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(se[s].trash_count),e(".sticky-folder-"+se[s].term_id+" .premio-folder-count").text(se[s].trash_count);if(e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),e(".media-select-folder").length){for(e(".media-select-folder").html("<option value=''>Select Folder</option><option value='-1'>(Unassigned)</option>"),s=0;s<se.length;s++)e(".media-select-folder").append("<option value='"+se[s].term_id+"'>"+se[s].name+" ("+se[s].trash_count+")</option>");e(".media-select-folder").val("")}""!=X&&e("#wcp_folder_"+X).addClass("active-item"),Y&&(e("#title_"+B).trigger("click"),Y=!1),uploadFolderID=0}function P(){e("#bulk-action-selector-top, #bulk-action-selector-bottom").val("-1"),0==e(".wp-list-table tbody input[type='checkbox']:checked").length?alert(wcp_settings.lang.SELECT_ITEMS_TO_MOVE):(e("#bulk-move-folder").show(),e("#bulk-select").html("<option value=''>"+wcp_settings.lang.LOADING_FILES+"</option>"),e(".move-to-folder").attr("disabled",!0),e("#move-to-folder").prop("disabled",!0),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+X,method:"post",success:function(t){if(t=e.parseJSON(t),e("#bulk-select").html("<option value=''>"+wcp_settings.lang.SELECT_FOLDER+"</option><option value='-1'>"+wcp_settings.lang.UNASSIGNED+"</option>"),e(".move-to-folder").prop("disabled",!1),e("#move-to-folder").prop("disabled",!1),1==t.status){var s=t.taxonomies;for(i=0;i<s.length;i++)e("#bulk-select").append("<option value='"+s[i].term_id+"'>"+s[i].name+"</option>")}}}))}function T(t){var o=-1;""==X||0==X?(U=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+o+"&nonce="+U+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+X,method:"post",success:function(e){c(),s()}})):e.ajax({url:wcp_settings.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:X,type:wcp_settings.post_type,folder_id:o,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:X},method:"post",success:function(t){t=e.parseJSON(t),-1==t.status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(c(),s())}})}function O(s){re=e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_get_default_list&active_id="+X,method:"post",beforeSend:function(){null!=re&&re.abort()},success:function(o){if(o=e.parseJSON(o),e(".header-posts .total-count").text(o.total_items),e(".un-categorised-items .total-count").text(o.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==s){var a=parent.wp;a.media!=t&&(a.media.frame.setState("insert"),null!==a.media.frame.content.get()&&"undefined"!=typeof a.media.frame.content.get().collection?(a.media.frame.content.get().collection.props.set({ignore:+new Date}),a.media.frame.content.get().options.selection.reset()):a.media.frame.library.props.set({ignore:+new Date}))}se=o.taxonomies,E(),""!=X&&e("#wcp_folder_"+X).addClass("active-item"),Y&&(e("#title_"+B).trigger("click"),Y=!1)}})}function N(){e(".media-frame-content .media-toolbar").width(e(".media-frame-content").width()-20)}function L(e,t,s){var o="";if(s){var a=new Date;a.setTime(a.getTime()+24*s*60*60*1e3),o="; expires="+a.toUTCString()}document.cookie=e+"="+(t||"")+o+"; path=/"}function R(e){for(var t=e+"=",s=document.cookie.split(";"),o=0;o<s.length;o++){for(var a=s[o];" "==a.charAt(0);)a=a.substring(1,a.length);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return null}function A(e){document.cookie=e+"=; Max-Age=-99999999;"}function H(){e(".media-position").length||e(".media-frame-content .media-toolbar").before("<div class='media-position'></div>"),e(".media-position").length&&(N(),thisPosition=e(".media-position").offset().top-e(window).scrollTop(),thisPosition<=32?(e(".media-frame-content .media-toolbar").addClass("sticky-media"),e(".media-position").height(e(".media-frame-content .media-toolbar").outerHeight())):(e(".media-frame-content .media-toolbar").removeClass("sticky-media"),
2
+ e(".media-position").height(1)))}function H(){}function F(){e("button.button.media-button.select-mode-toggle-button").length&&(clearInterval(le),e("button.button.media-button.select-mode-toggle-button").after("<button class='button organize-button'>"+wcp_settings.lang.BULK_ORGANIZE+"</button>"),e(".media-toolbar-secondary").append("<span class='media-info-message'>"+wcp_settings.lang.DRAG_AND_DROP+"</span>"),e(".delete-selected-button").before("<button type='button' class='button button-primary select-all-item-btn'>"+wcp_settings.lang.SELECT_ALL+"</button>"),e(".media-toolbar-secondary").after("<div class='custom-media-select'>"+wcp_settings.lang.MOVE_SELECTED_FILES+" <select class='media-select-folder'></select></div>"),e(".media-toolbar").append("<div style='clear:both;'></div><div class='media-folder-loader'><span>"+wcp_settings.lang.UPLOADING_FILES+"</span> <span id='current_upload_files'></span>/<span id='total_upload_files'></span><div class='folder-progress'><div class='folder-meter orange-bg'><span></span></div></div></div>"),e(".wcp-custom-form").length&&(wp.Uploader!==t&&wp.Uploader.queue.on("reset",function(){O(1)}),e(document).ajaxComplete(function(e,t,s){actionName=s.data,"undefined"!=typeof actionName&&actionName.length&&0==actionName.indexOf("action=delete-post&id=")&&O(0)})),setTimeout(function(){docReferrar=document.referrer,-1!=docReferrar.indexOf("wp-admin/upload.php")?(mediaMode=R("media-select-mode"),"on"==mediaMode&&(e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?e(".media-info-message").addClass("active"):e(".media-info-message, .custom-media-select").removeClass("active"))):A("media-select-mode"),O(1)},1e3))}var U,M,z,V,J,W="#js-tree-menu",X="",Y=!1,Q=!1,K=0,B=0,G=0,q=0,Z=!1,$="",ee=[],te=wcp_settings.current_url,se=[],oe="<li class='grid-view' data-id='__folder_id__' id='folder___folder_id__'><div class='folder-item is-folder' data-id='__folder_id__'><a title='__folder_name__' id='folder_view___folder_id__'class='folder-view __append_class__ has-new-folder'data-id='__folder_id__'><span class='folder item-name'><span id='wcp_folder_text___folder_id__'class='folder-title'>__folder_name__</span></span></a></div></li>",ae=null,ne=null,ie=1;if(e(document).ready(function(){if(e(document).on("click",".subsubsub a",function(t){if(e("#js-tree-menu .jstree-anchor.jstree-clicked").length){var s=e("#js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id"),o=r(s,"slug");if(""!=o){t.preventDefault();var a=e(this).attr("href");a=a+"&"+wcp_settings.custom_type+"="+o,window.location=a}}else if(e("#dynamic-tree-folders").length&&e("#dynamic-tree-folders .jstree-anchor.jstree-clicked").length){var s=e("#dynamic-tree-folders .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id");if(""!=s){t.preventDefault();var a=e(this).attr("href");a=a+"&ajax_action=premio_dynamic_folders&dynamic_folder="+s+"_anchor",window.location=a}}}),e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var s=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",s):e(".wcp-content").css("left",s)}e(document).on("click","#collapse-button",function(){setTimeout(function(){if(e("body").hasClass("jetpack-connected")&&!e("body").hasClass("mobile")&&!e("body").hasClass("folded")&&e("#adminmenuwrap").length){var t=parseInt(e("#adminmenuwrap").width());"rtl"==e("html").prop("dir")?e(".wcp-content").css("right",t):e(".wcp-content").css("left",t)}},50)}),se=wcp_settings.taxonomies,M=parseInt(wcp_settings.is_key_active),z=parseInt(wcp_settings.folders),X=parseInt(wcp_settings.selected_taxonomy),V=parseInt(wcp_settings.hasStars),J=parseInt(wcp_settings.hasChildren),ie=parseInt(wcp_settings.currentPage),console.log(X),ee=wcp_settings.folder_settings,e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),y(),m(),e(document).ajaxComplete(function(e,t,s){var o=s.data;"undefined"!=typeof o&&o.length&&-1!=o.indexOf("action=inline-save")&&(c(),p())});var o="1"==wcp_settings.isRTL||1==wcp_settings.isRTL?"w":"e";e(".wcp-content").resizable({resizeHeight:!1,handles:o,minWidth:100,maxWidth:500,resize:function(t,s){var o=s.size.width;for(275>=o?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),245>=o&&(o=245),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",o+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",o+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),newWidth=o-40,cssString="",classString="",i=0;i<=15;i++)classString+=" .space > .jstree-node >",currentWidth=newWidth-(13+20*i),cssString+="#js-tree-menu > "+classString+" .title { width: "+currentWidth+"px !important; } ",cssString+="#js-tree-menu > "+classString+" .dynamic-menu { left: "+(currentWidth-190)+"px !important; } ",H();e("#wcp-custom-style").html("<style>"+cssString+"</style>"),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)")):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250))},stop:function(t,s){var o=s.size.width;s.size.width<=275?e(".plugin-button").addClass("d-block"):e(".plugin-button").removeClass("d-block"),245>=o&&(o=245),s.size.width<=185?(folderStatus="hide",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").addClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").removeClass("active"),e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+folderStatus+"&nonce="+U,method:"post",success:function(e){H()}})):e("#wcp-content").hasClass("hide-folders-area")&&(folderStatus="show",e(".wcp-hide-show-buttons .toggle-buttons.show-folders").removeClass("active"),e(".wcp-hide-show-buttons .toggle-buttons.hide-folders").addClass("active"),e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+o+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)),U=wcp_settings.nonce,wcp_settings.folder_width=s.size.width,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_post_width&width="+o+"&nonce="+U,method:"post",success:function(e){H()}}),s.size.width<=245&&(e(".wcp-content").width(245),wcp_settings.folder_width=245)}}),e(document).on("contextmenu","#js-tree-menu .jstree-anchor",function(t){return ae=t.pageX,ne=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click","#js-tree-menu .folder-actions span.folder-inline-edit",function(s){if(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder){isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>",J?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>":menuHtml+="<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.PRO.NEW_SUB_FOLDER+"</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+wcp_settings.lang.RENAME+"</a></li><li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+wcp_settings.lang.PRO.OPEN_THIS_FOLDER+"</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+wcp_settings.lang.PRO.STICKY_FOLDER+"</a></li>",V?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?wcp_settings.lang.REMOVE_STAR:wcp_settings.lang.ADD_STAR)+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?wcp_settings.lang.PRO.REMOVE_STAR:wcp_settings.lang.PRO.ADD_STAR)+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+wcp_settings.lang.PRO.LOCK_FOLDER+"</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+wcp_settings.lang.PRO.DUPLICATE_FOLDER+"</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li target='_blank' class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+wcp_settings.lang.PRO.DOWNLOAD_ZIP+"</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+wcp_settings.lang.DELETE+"</a></li></ul></div>",e("body").append(menuHtml);var o;s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",ae),e(".dynamic-menu").css("top",ne-10),o=ne):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),e(this).parents("li.jstree-node").addClass("active-menu"),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height()))}}),e(document).on("click",".sticky-folders .sticky-fldr > a",function(t){t.stopPropagation();var s=e(this).closest("li").data("folder-id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",X),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("contextmenu",".sticky-folders li .sticky-fldr > a",function(t){return e(this).find("span.update-inline-record").trigger("click"),!1}),e(document).on("click",".tree-structure a",function(t){t.stopPropagation();var s=e(this).data("id");e(".jstree-node[id='"+s+"']").length&&(e(".jstree-clicked").removeClass("jstree-clicked"),e(".active-item").removeClass("active-item"),e("#js-tree-menu").jstree("select_node",X),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").trigger("click"),e(".jstree-node[id='"+s+"'] > a.jstree-anchor").addClass("jstree-clicked"),e(".sticky-folders .sticky-folder-"+s+" a").addClass("active-item"))}),e(document).on("click",".update-inline-record",function(s){if(s.stopImmediatePropagation(),s.stopPropagation(),0!=wcp_settings.can_manage_folder){isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>",J?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.NEW_FOLDER+"</a></li>":menuHtml+="<li class='new-folder-pro'><a target='_blank' href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+wcp_settings.lang.PRO.NEW_SUB_FOLDER+"</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='default-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+wcp_settings.lang.PRO.OPEN_THIS_FOLDER+"</a></li><li class='sticky-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+wcp_settings.lang.PRO.STICKY_FOLDER+"</a></li>",V?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?wcp_settings.lang.ADD_STAR:wcp_settings.lang.REMOVE_STAR)+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?wcp_settings.lang.PRO.ADD_STAR:wcp_settings.lang.PRO.REMOVE_STAR)+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+wcp_settings.lang.PRO.LOCK_FOLDER+"</a></li><li class='duplicate-folder-pro'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+wcp_settings.lang.PRO.DUPLICATE_FOLDER+"</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==wcp_settings.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+wcp_settings.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+wcp_settings.lang.PRO.DOWNLOAD_ZIP+"</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span> "+wcp_settings.lang.DELETE+"</a></li></ul></div>",e("body").append(menuHtml);var o;s.pageX==t||s.pageY==t?(e(".dynamic-menu").css("left",ae),e(".dynamic-menu").css("top",ne-10),o=ne):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),o=s.pageY),o+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(o+e(".dynamic-menu").height()))}}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide(),e(".jstree-node[id='"+B+"']").length&&e(".jstree-node[id='"+B+"'] > a.jstree-anchor").trigger("focus")}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".wcp-hide-show-buttons .toggle-buttons",function(){var t="show";e(this).hasClass("hide-folders")&&(t="hide"),e(".wcp-hide-show-buttons .toggle-buttons").toggleClass("active"),U=wcp_settings.nonce,"show"==t?(e("#wcp-content").addClass("no-transition"),e("#wcp-content").removeClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right",parseInt(wcp_settings.folder_width)+20+"px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left",parseInt(wcp_settings.folder_width)+20+"px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px - "+parseInt(wcp_settings.folder_width)+"px)"),setTimeout(function(){e("#wcp-content").removeClass("no-transition")},250)):(e("#wcp-content").addClass("hide-folders-area"),"1"==wcp_settings.isRTL?(e("#wpcontent").css("padding-right","20px"),e("#wpcontent").css("padding-left","0px")):e("#wpcontent").css("padding-left","20px"),e("body.wp-admin #e-admin-top-bar-root.e-admin-top-bar--active").css("width","calc(100% - 160px)")),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_folder_display_status&status="+t+"&nonce="+U,method:"post",success:function(e){H()}})}),a(),e(document).ajaxComplete(function(e,s,o){o.data!=t&&""!=o.data&&-1!=o.data.indexOf("action=query-attachments")&&a()}),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==wcp_settings.useFolderUndo&&e.ajax({url:wcp_settings.ajax_url,type:"post",data:{post_type:wcp_settings.post_type,nonce:wcp_settings.nonce,action:"wcp_undo_folder_changes"},success:function(s){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){var o=parent.wp;o.media!=t&&(o.media.frame.setState("insert"),null!==o.media.frame.content.get()&&"undefined"!=typeof o.media.frame.content.get().collection?(o.media.frame.content.get().collection.props.set({ignore:+new Date}),o.media.frame.content.get().options.selection.reset()):o.media.frame.library.props.set({ignore:+new Date}))}c()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})}),e(window).on("resize",function(){m(),H()}),e(window).scroll(function(){H()}),e(document).ready(function(){e(document).on("click","#add-new-folder",function(){e("#js-tree-menu a.jstree-clicked").length?(B=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),J||e("#pro-notice").removeClass("hide-it")):(B=0,e("#pro-notice").addClass("hide-it")),Y=!1,g()}),e(document).on("mouseover",".folders-action-menu",function(){e("body").addClass("add-folder-zindex")}).on("mouseleave",".folders-action-menu",function(){e("body").removeClass("add-folder-zindex")}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").hasClass("jstree")&&e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),e(document).on("click",".new-folder",function(){B=e(this).closest(".dynamic-menu").data("id"),Y=!1,G=0,g()}),e(document).on("click",".new-main-folder",function(){G=1,B=e(this).closest(".dynamic-menu").data("id"),Y=!1,g()}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),G=0,B=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),Y=!1,Q=!0,g(),h()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),folderNameDynamic=e.trim(e("#add-update-folder-name").val()),""==e.trim(folderNameDynamic))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var s=B;Y&&(s=0),J||(s=0);var o="";0==s?(q=e("#js-tree-menu > ul > li.jstree-node").length,G&&(q=jQuery("#js-tree-menu > ul > li[id='"+B+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){o+=jQuery(this).attr("id")+",",e==q&&(o+="#,")}),q+=1)):q=e("#js-tree-menu > ul > li.jstree-node[id='"+s+"'] > ul.jstree-children > li").length+1,e.ajax({url:wcp_settings.ajax_url,data:{parent_id:s,type:wcp_settings.post_type,action:"wcp_add_new_folder",nonce:wcp_settings.nonce,term_id:s,order:q,name:folderNameDynamic,is_duplicate:Q,duplicate_from:K,parent_ids:o,parent_menu:G},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(M=parseInt(result.is_key_active),z=parseInt(result.folders),e("#current-folder").text(z),e("#ttl-fldr").text(10),C(),h(),result.data.length)for(var s=0;s<result.data.length;s++){var o={folder_id:result.data[s].term_id,folder_count:0,is_sticky:result.data[s].is_sticky,is_high:result.data[s].is_high,nonce:result.data[s].nonce,slug:result.data[s].slug,is_deleted:0};ee.push(o),G?e("#js-tree-menu").jstree().create_node("#",{id:result.data[s].term_id,text:" "+result.data[s].title},q,function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug),e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}):e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[s].term_id,text:" "+result.data[s].title},"last",function(){e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-nonce",result.data[s].nonce),e(".jstree-node[id='"+result.data[s].term_id+"']").attr("data-slug",result.data[s].slug),e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}),G=0,e(".jstree-node[id='"+result.data[s].term_id+"']").length&&e(".jstree-node[id='"+result.data[s].term_id+"'] > a.jstree-anchor").trigger("focus")}S(),D(),e("#media-attachment-taxonomy-filter").length&&(B=result.term_id,O(0),resetSelectMediaDropDown()),Q=!1,K=0}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1})}),e(document).ready(function(){e("#inline-update").on("click",function(){e("#js-tree-menu a.jstree-clicked").length&&(B=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),_())}),e(document).on("click",".rename-folder",function(t){t.stopPropagation(),B=e(this).closest(".dynamic-menu").data("id"),_(),e(".dynamic-menu").remove()}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide(),e(".jstree-node[id='"+B+"']").length?e(".jstree-node[id='"+B+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide(),e(".jstree-node[id='"+B+"']").length?e(".jstree-node[id='"+B+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),e(document).on("submit","#update-folder-form",function(s){return s.stopPropagation(),s.preventDefault(),folderNameDynamic=e("#update-folder-item-name").val(),""==e.trim(folderNameDynamic)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),U=r(B,"nonce"),parentID=e(".jstree-node[id='"+B+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:wcp_settings.ajax_url,data:{parent_id:parentID,type:wcp_settings.post_type,action:"wcp_update_folder",nonce:U,term_id:B,order:q,name:folderNameDynamic},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=l(result.id),null!=folderPostId&&(ee[folderPostId].nonce=result.nonce,ee[folderPostId].slug=result.slug),h(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),S(),e("#media-attachment-taxonomy-filter").length&&O(0)):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()),e("#dynamic-folders .jstree-clicked").length&&e("#js-tree-menu .jstree-clicked").removeClass("jstree-clicked")}})),!1})}),e(document).ready(function(){e(document).on("click","#inline-remove, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(B=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),b(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),b(1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click",".remove-folder",function(){folderID=e(this).closest("li.jstree-node").data("id"),B=e(this).closest(".dynamic-menu").data("id"),b(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),U=r(B,"nonce"),Z?j():e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_remove_folder&term_id="+B+"&nonce="+U,method:"post",success:function(t){if(t=e.parseJSON(t),"1"==t.status){var s=v(B);e("#js-tree-menu").jstree().delete_node(B),M=parseInt(t.is_key_active),z=parseInt(t.folders),e("#current-folder").text(z),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+B).remove(),h(),S(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),c(),D(),0!=s&&e("#"+s+"_anchor").length?e("#"+s+"_anchor").trigger("click"):e(".header-posts").trigger("click")}else e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show()}})})}),e(document).ready(function(){e(document).on("click",".mark-folder",function(t){t.stopPropagation(),folderID=e(this).closest(".dynamic-menu").data("id"),U=r(folderID,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:wcp_settings.ajax_url,data:"term_id="+folderID+"&type="+wcp_settings.post_type+"&action=wcp_mark_un_mark_folder&nonce="+U,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=l(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(ee[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(ee[folderPostId].is_high=0)),h(),S(),e(".jstree-node[id='"+t.id+"']").length&&e(".jstree-node[id='"+t.id+"'] > a.jstree-anchor").trigger("focus")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})})}),e(document).ready(function(){e(document).on("click",".jstree-node .jstree-icon",function(){folderID=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+folderID+"']").hasClass("jstree-open")?folderStatus=1:folderStatus=0,e(".form-loader-count").css("width","100%"),U=r(folderID,"nonce"),C(),e.ajax({url:wcp_settings.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+folderID+"&nonce="+U,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status||(e("#wcp_folder_"+folderID).hasClass("active")?(e("#wcp_folder_"+folderID).removeClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+folderID).addClass("active"),e("#wcp_folder_"+folderID).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),S())}})})}),e(document).ready(function(){e(document).on("click","a.jstree-anchor",function(t){if(ie=1,t.stopPropagation(),e(".un-categorised-items").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e("active-item").removeClass("active-item"),X=e(this).closest("li.jstree-node").attr("id"),B=e(this).closest("li.jstree-node").attr("id"),e(".sticky-folders .sticky-folder-"+X+" a").addClass("active-item"),e("#js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e("#js-tree-menu").jstree("select_node",X),e("#js-tree-menu #"+X+"_anchor").addClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){var s=e(this).closest("li.jstree-node").attr("id");e("#media-attachment-taxonomy-filter").val(s),e("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=r(s,"slug"),te=wcp_settings.page_url+thisSlug+"&paged="+ie;var o={Title:thisSlug,Url:te};history.pushState(o,o.Title,o.Url),x(thisSlug),e(".custom-media-select").removeClass("active")}else{var a=r(X,"slug");te=wcp_settings.page_url+a+"&paged="+ie,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(te+" #posts-filter",function(){var t={Title:a,Url:te};history.pushState(t,t.Title,t.Url),x(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p()}):e("#wpbody").load(te+" #wpbody-content",function(){var t={Title:a,Url:te};history.pushState(t,t.Title,t.Url),x(a),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),p()})}u(),e(".sticky-folders .sticky-folder-"+X+" a").addClass("active-item")}),e(document).on("click","#js-tree-menu input.checkbox",function(){o()}),e(".header-posts").on("click",function(){if(X="",e(".wcp-container .route").removeClass("active-item"),
3
+ e(".un-categorised-items").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".header-posts a").addClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){X="",e("#media-attachment-taxonomy-filter").val("all"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url};history.pushState(t,t.Title,t.Url),x("all"),u()}else ie=1,te=wcp_settings.page_url+"&paged="+ie,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(te+" #posts-filter",function(){var t={Title:"",Url:te};history.pushState(t,t.Title,t.Url),x("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),p()}):e("#wpbody").load(te+" #wpbody-content",function(){var t={Title:"",Url:te};history.pushState(t,t.Title,t.Url),x("all"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),p()});o()}),e(".un-categorised-items").on("click",function(){if(X="-1",e(".wcp-container .route").removeClass("active-item"),e(".header-posts a").removeClass("active-item"),e(".un-categorised-items").addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e("#media-attachment-taxonomy-filter").length){e("#media-attachment-taxonomy-filter").val("unassigned"),e("#media-attachment-taxonomy-filter").trigger("change");var t={Title:"",Url:wcp_settings.page_url+"-1"};history.pushState(t,t.Title,t.Url),x("-1"),u()}else ie=1,te=wcp_settings.page_url+"-1&paged="+ie,e(".form-loader-count").css("width","100%"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(te+" #posts-filter",function(){var t={Title:"",Url:te};history.pushState(t,t.Title,t.Url),x("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),p()}):e("#wpbody").load(te+" #wpbody-content",function(){var t={Title:"",Url:te};history.pushState(t,t.Title,t.Url),x("-1"),"show"!=wcp_settings.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),u(),p()});o()}),e("#expand-collapse-list").on("click",function(t){t.stopPropagation(),statusType=0,e(this).hasClass("all-open")?(e(this).removeClass("all-open"),statusType=0,e(this).attr("data-folder-tooltip",wcp_settings.lang.EXPAND),e("#js-tree-menu").jstree("close_all"),e("#expand-collapse-list .text").text(wcp_settings.lang.EXPAND)):(e(this).addClass("all-open"),statusType=1,e(this).attr("data-folder-tooltip",wcp_settings.lang.COLLAPSE),e("#js-tree-menu").jstree("open_all"),e("#expand-collapse-list .text").text(wcp_settings.lang.COLLAPSE)),$="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){$+=e(this).attr("id")+","}),""!=$&&(e(".form-loader-count").css("width","100%"),U=wcp_settings.nonce,e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_change_all_status&status="+statusType+"&folders="+$+"&nonce="+U,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),C()}),e(document).ready(function(){e(document).on("click","body, html",function(){e(".folder-order").removeClass("active")}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),lastOrderStatus=e(this).attr("data-sort"),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_folders_by_order&nonce="+wcp_settings.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){t=e.parseJSON(t),1==t.status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),y(),se=t.terms,E()),e(".form-loader-count").css("width","0"),u()}})})}),e(document).ready(function(){e(document).on("keyup","#folder-search",function(){k()}),e(document).on("change","#folder-search",function(){k()}),e(document).on("blur","#folder-search",function(){k()}),e(document).on("click","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:wcp_settings.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:wcp_settings.nonce,post_type:wcp_settings.post_type}})})}),e(document).ready(function(){e(document).on("click",".folders-toggle-button",function(){dbStatus="show",e(".tree-structure-content").hasClass("active")?(e(".tree-structure-content .tree-structure").animate({height:"40px"},100,function(){e(".tree-structure-content").removeClass("active")}),dbStatus="hide"):(newHeight=parseInt(e(".tree-structure-content .tree-structure").attr("data-height")),e(".tree-structure-content .tree-structure").animate({height:newHeight},100,function(){e(".tree-structure-content").addClass("active")})),e.ajax({url:wcp_settings.ajax_url,data:"type="+wcp_settings.post_type+"&action=wcp_hide_folders&status="+dbStatus+"&nonce="+wcp_settings.nonce,method:"post",success:function(e){H()}})})}),e(document).ready(function(){e(document).on("click","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:wcp_settings.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:X,type:wcp_settings.post_type,folder_id:-1,nonce:wcp_settings.nonce,status:wcp_settings.taxonomy_status,taxonomy:X,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),S(),c(),s()}})}),e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),wp.media.frame.close(),!1}),e(document).on("click","#doaction",function(t){return"move_to_folder"==e("#bulk-action-selector-top").val()?(P(),!1):"edit"==e("#bulk-action-selector-top").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("click","#doaction2",function(t){return"move_to_folder"==e("#bulk-action-selector-bottom").val()?(P(),!1):"edit"==e("#bulk-action-selector-bottom").val()&&"object"==typeof inlineEditPost?(inlineEditPost.setBulk(),!1):void 0}),e(document).on("submit","#bulk-folder-form",function(t){t.stopPropagation(),t.preventDefault(),""!=e("#bulk-select").val()&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),""!=e("#bulk-select").val()&&("-1"==e("#bulk-select").val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+chkStr+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+X,method:"post",success:function(t){e("#bulk-move-folder").hide(),c(),S()}}):(U=r(e("#bulk-select").val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:e("#bulk-select").val(),nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(c(),S()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))))})}),"attachment"==wcp_settings.post_type){e(document).ready(function(){"show"==wcp_settings.show_in_page&&e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div><div class="folders-toggle-button"><span></span></div></div>'),h(),I()});var re=null;N(),e(window).resize(function(){N()}),e(document).on("click",".button.organize-button",function(){e(".media-frame").hasClass("mode-select")?A("media-select-mode"):L("media-select-mode","on",7),e("button.button.media-button.select-mode-toggle-button").trigger("click"),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))}),e(document).on("click",".select-mode-toggle-button",function(){setTimeout(function(){e(".media-frame").hasClass("mode-select")||L("media-select-mode","off",-1),e(".media-frame").hasClass("mode-select")?(e(".media-info-message").addClass("active"),e(".select-all-item-btn").addClass("active")):(e(".media-info-message, .custom-media-select").removeClass("active"),e(".select-all-item-btn").removeClass("active"))},10)}),e(document).on("click",".select-all-item-btn",function(){e("ul.attachments li:not(.selected)").trigger("click")}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(B=0,Y=!0,g())}),e(window).scroll(function(){H()})}var le;e(document).ready(function(){"attachment"==wcp_settings.post_type&&e("#tmpl-media-frame").length&&(le=setInterval(function(){F()},1e3)),e(document).on("click",".attachments-browser ul.attachments .thumbnail",function(){"attachment"==wcp_settings.post_type&&e(".media-toolbar").hasClass("media-toolbar-mode-select")&&(0==e("ul.attachments li.selected").length?e(".custom-media-select").removeClass("active"):e(".custom-media-select").addClass("active"))}),e(document).on("change",".media-select-folder",function(){if("attachment"==wcp_settings.post_type&&""!=e(this).val()){var t="";e(".attachments-browser li.attachment.selected").each(function(){t+=e(this).attr("data-id")+","}),"-1"==e(this).val()?e.ajax({url:wcp_settings.ajax_url,data:"post_id="+t+"&type="+wcp_settings.post_type+"&action=wcp_remove_post_folder&folder_id="+e(this).val()+"&nonce="+wcp_settings.nonce+"&status="+wcp_settings.taxonomy_status+"&taxonomy="+X,method:"post",success:function(t){0!=B&&B!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),c(),S()}}):(U=r(e(this).val(),"nonce"),e.ajax({url:wcp_settings.ajax_url,data:{post_ids:chkStr,type:wcp_settings.post_type,action:"wcp_change_multiple_post_folder",folder_id:e(this).val(),nonce:U,status:wcp_settings.taxonomy_status,taxonomy:X,post_status:wcp_settings.post_status},method:"post",success:function(t){t=e.parseJSON(t),e("#bulk-move-folder").hide(),"1"==t.status?(0!=B&&B!=e(".media-select-folder").val()&&e("ul.attachments li.selected").remove(),c(),S()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}}))}})}),e(document).ready(function(){"yes"==wcp_settings.use_shortcuts&&(e(document).on("click",".view-shortcodes",function(t){t.preventDefault(),e("#keyboard-shortcut").show()}),e(document).keydown(function(t){var s=t.ctrlKey||t.metaKey?!0:!1;if(e("input").is(":focus")||e("textarea").is(":focus")||!t.shiftKey||78!=t.keyCode&&78!=t.which||(t.preventDefault(),e("#add-new-folder").trigger("click")),(113==t.keyCode||113==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")&&(B=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),_(),e(".dynamic-menu").remove()),!s||67!=t.keyCode&&67!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(isFolderCopy=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="copy",e(".folders-undo-notification").removeClass("active"),e("#copy-message").addClass("active"),setTimeout(function(){e("#copy-message").removeClass("active")},5e3),o()),!s||88!=t.keyCode&&88!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),isFolderCopy=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="cut",e(".folders-undo-notification").removeClass("active"),e("#cut-message").addClass("active"),setTimeout(function(){e("#cut-message").removeClass("active")},5e3),o()),!s||86!=t.keyCode&&86!=t.which||e("#js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),X=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),(""==X||isNaN(X))&&(X=0),0!=isFolderCopy&&""!=isFolderCopy&&isFolderCopy!=X&&("cut"==CPCAction?(lastParentID=e("#"+isFolderCopy).data("parent"),lastCopiedFolder=isFolderCopy,lastFolderOrder=e("#"+isFolderCopy).index()+1,""!=X&&0!=X?e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#"+X,0):e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#",e("#js-tree-menu > ul > li.jstree-node").length),e(".folders-undo-notification").removeClass("active"),e("#paste-message").addClass("active"),setTimeout(function(){e("#paste-message").removeClass("active")},5e3)):((""==X||isNaN(X))&&(X=0),copyFolders(isFolderCopy,X)),o(),CPCAction="",isFolderCopy=0)),!s||75!=t.keyCode&&75!=t.which||e("#keyboard-shortcut").show(),(46==t.keyCode||46==t.which||8==t.keyCode||8==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")&&(e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").hasClass("is-locked")||(B=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),b(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"))),s&&(40==t.keyCode||40==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")){B=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+B).data("parent")),n=parseInt(e("#"+B).index())+1,i=parseInt(e("#"+B).data("child"));isNaN(a)&&(a=e("li#"+B).parents("li.jstree-node").length?e("li#"+B).parents("li.jstree-node").data("folder"):0,i=e("li#"+B).parents("li.jstree-node").length?e("li#"+B).parents("li.jstree-node").children():e("#js-tree-menu > ul > li").length),0==a&&(a=""),i==n?e("#js-tree-menu").jstree("move_node","#"+B,"#"+a,0):e("#js-tree-menu").jstree("move_node","#"+B,"#"+a,n+1)}if(s&&(38==t.keyCode||38==t.which)&&e("#js-tree-menu .jstree-anchor").is(":focus")){B=e("#js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+B).data("parent")),n=parseInt(e("#"+B).index())-1,i=parseInt(e("#"+B).data("child"));isNaN(a)&&(n=parseInt(e("#"+B).index())-1,a=e("li#"+B).parents("li.jstree-node").length?e("li#"+B).parents("li.jstree-node").data("folder"):0,i=e("li#"+B).parents("li.jstree-node").length?e("li#"+B).parents("li.jstree-node").children():e("#js-tree-menu > ul > li").length),0==a&&(a=""),-1==n?e("#js-tree-menu").jstree("move_node","#"+B,"#"+a,i):e("#js-tree-menu").jstree("move_node","#"+B,"#"+a,n)}(27==t.keyCode||27==t.which)&&(e(".folder-popup-form").hide(),e(".jstree-node[id='"+B+"']").length?e(".jstree-node[id='"+B+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus"))}))})});
assets/js/jquery.mcustomscrollbar.min.js DELETED
@@ -1,3 +0,0 @@
1
- /* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */
2
- !function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){
3
- return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
 
 
 
assets/js/jquery.mousewheel.min.js DELETED
@@ -1,8 +0,0 @@
1
- /*!
2
- * jQuery Mousewheel 3.1.13
3
- *
4
- * Copyright 2015 jQuery Foundation and other contributors
5
- * Released under the MIT license.
6
- * http://jquery.org/license
7
- */
8
- !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
 
 
 
 
 
 
 
 
assets/js/jquery.overlayscrollbars.min.js ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * OverlayScrollbars
3
+ * https://github.com/KingSora/OverlayScrollbars
4
+ *
5
+ * Version: 1.13.3
6
+ *
7
+ * Copyright KingSora | Rene Haas.
8
+ * https://github.com/KingSora
9
+ *
10
+ * Released under the MIT license.
11
+ * Date: 20.07.2022
12
+ */
13
+ !function(t,r){"function"==typeof define&&define.amd?define(["jquery"],function(n){return r(t,t.document,undefined,n)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=r(t,t.document,undefined,require("jquery")):r(t,t.document,undefined,t.jQuery)}("undefined"!=typeof window?window:this,function(vi,di,hi,n){"use strict";var o,l,f,a,pi="object",bi="function",yi="array",mi="string",gi="boolean",wi="number",t="null",xi={c:"class",s:"style",i:"id",l:"length",p:"prototype",ti:"tabindex",oH:"offsetHeight",cH:"clientHeight",sH:"scrollHeight",oW:"offsetWidth",cW:"clientWidth",sW:"scrollWidth",hOP:"hasOwnProperty",bCR:"getBoundingClientRect"},_i=(o={},l={},{e:f=["-webkit-","-moz-","-o-","-ms-"],o:a=["WebKit","Moz","O","MS"],u:function(n){var t=l[n];if(l[xi.hOP](n))return t;for(var r,e,i,o=c(n),a=di.createElement("div")[xi.s],u=0;u<f.length;u++)for(i=f[u].replace(/-/g,""),r=[n,f[u]+n,i+o,c(i)+o],e=0;e<r[xi.l];e++)if(a[r[e]]!==hi){t=r[e];break}return l[n]=t},v:function(n,t,r){var e=n+" "+t,i=l[e];if(l[xi.hOP](e))return i;for(var o,a=di.createElement("div")[xi.s],u=t.split(" "),f=r||"",c=0,s=-1;c<u[xi.l];c++)for(;s<_i.e[xi.l];s++)if(o=s<0?u[c]:_i.e[s]+u[c],a.cssText=n+":"+o+f,a[xi.l]){i=o;break}return l[e]=i},d:function(n,t,r){var e=0,i=o[n];if(!o[xi.hOP](n)){for(i=vi[n];e<a[xi.l];e++)i=i||vi[(t?a[e]:a[e].toLowerCase())+c(n)];o[n]=i}return i||r}});function c(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Si={wW:e(r,0,!0),wH:e(r,0),mO:e(_i.d,0,"MutationObserver",!0),rO:e(_i.d,0,"ResizeObserver",!0),rAF:e(_i.d,0,"requestAnimationFrame",!1,function(n){return vi.setTimeout(n,1e3/60)}),cAF:e(_i.d,0,"cancelAnimationFrame",!1,function(n){return vi.clearTimeout(n)}),now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0},prvD:function(n){n.preventDefault&&n.cancelable?n.preventDefault():n.returnValue=!1},page:function(n){var t=((n=n.originalEvent||n).target||n.srcElement||di).ownerDocument||di,r=t.documentElement,e=t.body;if(n.touches===hi)return!n.pageX&&n.clientX&&null!=n.clientX?{x:n.clientX+(r&&r.scrollLeft||e&&e.scrollLeft||0)-(r&&r.clientLeft||e&&e.clientLeft||0),y:n.clientY+(r&&r.scrollTop||e&&e.scrollTop||0)-(r&&r.clientTop||e&&e.clientTop||0)}:{x:n.pageX,y:n.pageY};var i=n.touches[0];return{x:i.pageX,y:i.pageY}},mBtn:function(n){var t=n.button;return n.which||t===hi?n.which:1&t?1:2&t?3:4&t?2:0},inA:function(n,t){for(var r=0;r<t[xi.l];r++)try{if(t[r]===n)return r}catch(e){}return-1},isA:function(n){var t=Array.isArray;return t?t(n):this.type(n)==yi},type:function(n){return n===hi||null===n?n+"":Object[xi.p].toString.call(n).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:e};function r(n){return n?vi.innerWidth||di.documentElement[xi.cW]||di.body[xi.cW]:vi.innerHeight||di.documentElement[xi.cH]||di.body[xi.cH]}function e(n,t){if(typeof n!=bi)throw"Can't bind function!";var r=xi.p,e=Array[r].slice.call(arguments,2),i=function(){},o=function(){return n.apply(this instanceof i?this:t,e.concat(Array[r].slice.call(arguments)))};return n[r]&&(i[r]=n[r]),o[r]=new i,o}var i,u,zi,s,v,L,N,d,h,p,b,y,m,g,Ti,Oi=Math,ki=n,Ci=(n.easing,n),Ai=(i=[],u="__overlayScrollbars__",function(n,t){var r=arguments[xi.l];if(r<1)return i;if(t)n[u]=t,i.push(n);else{var e=Si.inA(n,i);if(-1<e){if(!(1<r))return i[e][u];delete n[u],i.splice(e,1)}}}),w=(g=[],L=Si.type,y={className:["os-theme-dark",[t,mi]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:d=[!0,gi],clipAlways:d,normalizeRTL:d,paddingAbsolute:h=[!(N=[gi,wi,mi,yi,pi,bi,t]),gi],autoUpdate:[null,[t,gi]],autoUpdateInterval:[33,wi],updateOnLoad:[["img"],[mi,yi,t]],nativeScrollbarsOverlaid:{showNativeScrollbars:h,initialize:d},overflowBehavior:{x:["scroll",b="v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll",b]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,wi],dragScrolling:d,clickScrolling:h,touchSupport:d,snapHandle:h},textarea:{dynWidth:h,dynHeight:h,inheritedAttrs:[["style","class"],[mi,yi,t]]},callbacks:{onInitialized:p=[null,[t,bi]],onInitializationWithdrawn:p,onDestroyed:p,onScrollStart:p,onScroll:p,onScrollStop:p,onOverflowChanged:p,onOverflowAmountChanged:p,onDirectionChanged:p,onContentSizeChanged:p,onHostSizeChanged:p,onUpdated:p}},Ti={m:(m=function(i){var o=function(n){var t,r,e;for(t in n)n[xi.hOP](t)&&(r=n[t],(e=L(r))==yi?n[t]=r[i?1:0]:e==pi&&(n[t]=o(r)));return n};return o(Ci.extend(!0,{},y))})(),g:m(!0),_:function(n,t,C,r){var e={},i={},o=Ci.extend(!0,{},n),A=Ci.inArray,H=Ci.isEmptyObject,R=function(n,t,r,e,i,o){for(var a in t)if(t[xi.hOP](a)&&n[xi.hOP](a)){var u,f,c,s,l,v,d,h,p=!1,b=!1,y=t[a],m=L(y),g=m==pi,w=Si.isA(y)?y:[y],x=r[a],_=n[a],S=L(_),z=o?o+".":"",T='The option "'+z+a+"\" wasn't set, because",O=[],k=[];if(x=x===hi?{}:x,g&&S==pi)e[a]={},i[a]={},R(_,y,x,e[a],i[a],z+a),Ci.each([n,e,i],function(n,t){H(t[a])&&delete t[a]});else if(!g){for(v=0;v<w[xi.l];v++)if(l=w[v],c=(m=L(l))==mi&&-1===A(l,N))for(O.push(mi),u=l.split(" "),k=k.concat(u),d=0;d<u[xi.l];d++){for(s=(f=u[d].split(":"))[0],h=0;h<f[xi.l];h++)if(_===f[h]){p=!0;break}if(p)break}else if(O.push(l),S===l){p=!0;break}p?((b=_!==x)&&(e[a]=_),(c?A(x,f)<0:b)&&(i[a]=c?s:_)):C&&console.warn(T+" it doesn't accept the type [ "+S.toUpperCase()+' ] with the value of "'+_+'".\r\nAccepted types are: [ '+O.join(", ").toUpperCase()+" ]."+(0<k[length]?"\r\nValid strings are: [ "+k.join(", ").split(":").join(", ")+" ].":"")),delete n[a]}}};return R(o,t,r||{},e,i),!H(o)&&C&&console.warn("The following options are discarded due to invalidity:\r\n"+vi.JSON.stringify(o,null,2)),{S:e,z:i}}},(zi=vi.OverlayScrollbars=function(n,r,e){if(0===arguments[xi.l])return this;var i,t,o=[],a=Ci.isPlainObject(r);return n?(n=n[xi.l]!=hi?n:[n[0]||n],x(),0<n[xi.l]&&(a?Ci.each(n,function(n,t){(i=t)!==hi&&o.push(z(i,r,e,s,v))}):Ci.each(n,function(n,t){i=Ai(t),("!"===r&&zi.valid(i)||Si.type(r)==bi&&r(t,i)||r===hi)&&o.push(i)}),t=1===o[xi.l]?o[0]:o),t):a||!r?t:o}).globals=function(){x();var n=Ci.extend(!0,{},s);return delete n.msie,n},zi.defaultOptions=function(n){x();var t=s.defaultOptions;if(n===hi)return Ci.extend(!0,{},t);s.defaultOptions=Ci.extend(!0,{},t,Ti._(n,Ti.g,!0,t).S)},zi.valid=function(n){return n instanceof zi&&!n.getState().destroyed},zi.extension=function(n,t,r){var e=Si.type(n)==mi,i=arguments[xi.l],o=0;if(i<1||!e)return Ci.extend(!0,{length:g[xi.l]},g);if(e)if(Si.type(t)==bi)g.push({name:n,extensionFactory:t,defaultOptions:r});else for(;o<g[xi.l];o++)if(g[o].name===n){if(!(1<i))return Ci.extend(!0,{},g[o]);g.splice(o,1)}},zi);function x(){s=s||new _(Ti.m),v=v||new S(s)}function _(n){var _=this,i="overflow",S=Ci("body"),z=Ci('<div id="os-dummy-scrollbar-size"><div></div></div>'),o=z[0],e=Ci(z.children("div").eq(0));S.append(z),z.hide().show();var t,r,a,u,f,c,s,l,v,d=T(o),h={x:0===d.x,y:0===d.y},p=(r=vi.navigator.userAgent,u="substring",f=r[a="indexOf"]("MSIE "),c=r[a]("Trident/"),s=r[a]("Edge/"),l=r[a]("rv:"),v=parseInt,0<f?t=v(r[u](f+5,r[a](".",f)),10):0<c?t=v(r[u](l+3,r[a](".",l)),10):0<s&&(t=v(r[u](s+5,r[a](".",s)),10)),t);function T(n){return{x:n[xi.oH]-n[xi.cH],y:n[xi.oW]-n[xi.cW]}}Ci.extend(_,{defaultOptions:n,msie:p,autoUpdateLoop:!1,autoUpdateRecommended:!Si.mO(),nativeScrollbarSize:d,nativeScrollbarIsOverlaid:h,nativeScrollbarStyling:function(){var n=!1;z.addClass("os-viewport-native-scrollbars-invisible");try{n="none"===z.css("scrollbar-width")&&(9<p||!p)||"none"===vi.getComputedStyle(o,"::-webkit-scrollbar").getPropertyValue("display")}catch(t){}return n}(),overlayScrollbarDummySize:{x:30,y:30},cssCalc:_i.v("width","calc","(1px)")||null,restrictedMeasuring:function(){z.css(i,"hidden");var n=o[xi.sW],t=o[xi.sH];z.css(i,"visible");var r=o[xi.sW],e=o[xi.sH];return n-r!=0||t-e!=0}(),rtlScrollBehavior:function(){z.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0);var n=z.offset(),t=e.offset();z.scrollLeft(-999);var r=e.offset();return{i:n.left===t.left,n:t.left!==r.left}}(),supportTransform:!!_i.u("transform"),supportTransition:!!_i.u("transition"),supportPassiveEvents:function(){var n=!1;try{vi.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){n=!0}}))}catch(t){}return n}(),supportResizeObserver:!!Si.rO(),supportMutationObserver:!!Si.mO()}),z.removeAttr(xi.s).remove(),function(){if(!h.x||!h.y){var y=Oi.abs,m=Si.wW(),g=Si.wH(),w=x();Ci(vi).on("resize",function(){if(0<Ai().length){var n=Si.wW(),t=Si.wH(),r=n-m,e=t-g;if(0==r&&0==e)return;var i,o=Oi.round(n/(m/100)),a=Oi.round(t/(g/100)),u=y(r),f=y(e),c=y(o),s=y(a),l=x(),v=2<u&&2<f,d=!function b(n,t){var r=y(n),e=y(t);return r!==e&&r+1!==e&&r-1!==e}(c,s),h=v&&d&&(l!==w&&0<w),p=_.nativeScrollbarSize;h&&(S.append(z),i=_.nativeScrollbarSize=T(z[0]),z.remove(),p.x===i.x&&p.y===i.y||Ci.each(Ai(),function(){Ai(this)&&Ai(this).update("zoom")})),m=n,g=t,w=l}})}function x(){var n=vi.screen.deviceXDPI||0,t=vi.screen.logicalXDPI||1;return vi.devicePixelRatio||n/t}}()}function S(r){var c,e=Ci.inArray,s=Si.now,l="autoUpdate",v=xi.l,d=[],h=[],p=!1,b=33,y=s(),m=function(){if(0<d[v]&&p){c=Si.rAF()(function(){m()});var n,t,r,e,i,o,a=s(),u=a-y;if(b<u){y=a-u%b,n=33;for(var f=0;f<d[v];f++)(t=d[f])!==hi&&(e=(r=t.options())[l],i=Oi.max(1,r.autoUpdateInterval),o=s(),(!0===e||null===e)&&o-h[f]>i&&(t.update("auto"),h[f]=new Date(o+=i)),n=Oi.max(1,Oi.min(n,i)));b=n}}else b=33};this.add=function(n){-1===e(n,d)&&(d.push(n),h.push(s()),0<d[v]&&!p&&(p=!0,r.autoUpdateLoop=p,m()))},this.remove=function(n){var t=e(n,d);-1<t&&(h.splice(t,1),d.splice(t,1),0===d[v]&&p&&(p=!1,r.autoUpdateLoop=p,c!==hi&&(Si.cAF()(c),c=-1)))}}function z(r,n,t,xt,_t){var cn=Si.type,sn=Ci.inArray,d=Ci.each,St=new zi,e=Ci[xi.p];if(dt(r)){if(Ai(r)){var i=Ai(r);return i.options(n),i}var zt,Tt,Ot,kt,I,Ct,At,Ht,j,ln,g,A,h,Rt,Lt,Nt,Wt,w,p,Dt,Mt,Et,It,jt,Ft,Pt,Ut,Vt,$t,o,a,qt,Bt,Xt,u,F,c,P,Yt,Kt,Gt,Jt,Qt,Zt,nr,tr,rr,er,ir,f,s,l,v,b,y,x,H,or,ar,ur,R,fr,cr,sr,lr,vr,dr,hr,pr,br,yr,mr,gr,wr,xr,_r,L,Sr,zr,Tr,Or,kr,Cr,Ar,Hr,m,_,Rr,Lr,Nr,Wr,Dr,Mr,Er,Ir,jr,Fr,Pr,Ur,Vr,$r,S,z,T,O,qr,Br,k,C,Xr,Yr,Kr,Gr,Jr,U,V,Qr,Zr,ne,te,re={},vn={},dn={},ee={},ie={},N="-hidden",oe="margin-",ae="padding-",ue="border-",fe="top",ce="right",se="bottom",le="left",ve="min-",de="max-",he="width",pe="height",be="float",ye="",me="auto",hn="sync",ge="scroll",we="100%",pn="x",bn="y",W=".",xe=" ",D="scrollbar",M="-horizontal",E="-vertical",_e=ge+"Left",Se=ge+"Top",$="mousedown touchstart",q="mouseup touchend touchcancel",B="mousemove touchmove",X="mouseenter",Y="mouseleave",K="keydown",G="keyup",J="selectstart",Q="transitionend webkitTransitionEnd oTransitionEnd",Z="__overlayScrollbarsRO__",nn="os-",tn="os-html",rn="os-host",en=rn+"-foreign",on=rn+"-textarea",an=rn+"-"+D+M+N,un=rn+"-"+D+E+N,fn=rn+"-transition",ze=rn+"-rtl",Te=rn+"-resize-disabled",Oe=rn+"-scrolling",ke=rn+"-overflow",Ce=(ke=rn+"-overflow")+"-x",Ae=ke+"-y",yn="os-textarea",mn=yn+"-cover",gn="os-padding",wn="os-viewport",He=wn+"-native-scrollbars-invisible",xn=wn+"-native-scrollbars-overlaid",_n="os-content",Re="os-content-arrange",Le="os-content-glue",Ne="os-size-auto-observer",Sn="os-resize-observer",zn="os-resize-observer-item",Tn=zn+"-final",On="os-text-inherit",kn=nn+D,Cn=kn+"-track",An=Cn+"-off",Hn=kn+"-handle",Rn=Hn+"-off",Ln=kn+"-unusable",Nn=kn+"-"+me+N,Wn=kn+"-corner",We=Wn+"-resize",De=We+"-both",Me=We+M,Ee=We+E,Dn=kn+M,Mn=kn+E,En="os-dragging",Ie="os-theme-none",In=[He,xn,An,Rn,Ln,Nn,We,De,Me,Ee,En].join(xe),jn=[],Fn=[xi.ti],Pn={},je={},Fe=42,Un="load",Vn=[],$n={},qn=["wrap","cols","rows"],Bn=[xi.i,xi.c,xi.s,"open"].concat(Fn),Xn=[];return St.sleep=function(){$t=!0},St.update=function(n){var t,r,e,i,o;if(!Lt)return cn(n)==mi?n===me?(t=function a(){if(!$t&&!qr){var r,e,i,o=[],n=[{T:Kt,O:Bn.concat(":visible")},{T:Nt?Yt:hi,O:qn}];return d(n,function(n,t){(r=t.T)&&d(t.O,function(n,t){e=":"===t.charAt(0)?r.is(t):r.attr(t),i=$n[t],ui(e,i)&&o.push(t),$n[t]=e})}),it(o),0<o[xi.l]}}(),r=function f(){if($t)return!1;var n,t,r,e,i=oi(),o=Nt&&br&&!jr?Yt.val().length:0,a=!qr&&br&&!Nt,u={};return a&&(n=nr.css(be),u[be]=Vt?ce:le,u[he]=me,nr.css(u)),e={w:i[xi.sW]+o,h:i[xi.sH]+o},a&&(u[be]=n,u[he]=we,nr.css(u)),t=qe(),r=ui(e,m),m=e,r||t}(),(e=t||r)&&Xe({k:r,C:Rt?hi:qt})):n===hn?qr?(i=T(S.takeRecords()),o=O(z.takeRecords())):i=St.update(me):"zoom"===n&&Xe({A:!0,k:!0}):(n=$t||n,$t=!1,St.update(hn)&&!n||Xe({H:n})),Ye(),e||i||o},St.options=function(n,t){var r,e={};if(Ci.isEmptyObject(n)||!Ci.isPlainObject(n)){if(cn(n)!=mi)return a;if(!(1<arguments.length))return bt(a,n);!function f(n,t,r){for(var e=t.split(W),i=e.length,o=0,a={},u=a;o<i;o++)a=a[e[o]]=o+1<i?{}:r;Ci.extend(n,u,!0)}(e,n,t),r=ot(e)}else r=ot(n);Ci.isEmptyObject(r)||Xe({C:r})},St.destroy=function(){if(!Lt){for(var n in _t.remove(St),Ve(),Pe(Jt),Pe(Gt),Pn)St.removeExt(n);for(;0<Xn[xi.l];)Xn.pop()();$e(!0),rr&&mt(rr),tr&&mt(tr),Mt&&mt(Gt),ft(!0),st(!0),at(!0);for(var t=0;t<Vn[xi.l];t++)Ci(Vn[t]).off(Un,rt);Vn=hi,$t=Lt=!0,Ai(r,0),ti("onDestroyed")}},St.scroll=function(n,t,r,e){if(0===arguments.length||n===hi){var i=Mr&&Vt&&Ot.i,o=Mr&&Vt&&Ot.n,a=vn.R,u=vn.L,f=vn.N;return u=i?1-u:u,a=i?f-a:a,f*=o?-1:1,{position:{x:a*=o?-1:1,y:dn.R},ratio:{x:u,y:dn.L},max:{x:f,y:dn.N},handleOffset:{x:vn.W,y:dn.W},handleLength:{x:vn.D,y:dn.D},handleLengthRatio:{x:vn.M,y:dn.M},trackLength:{x:vn.I,y:dn.I},snappedHandleOffset:{x:vn.j,y:dn.j},isRTL:Vt,isRTLNormalized:Mr}}St.update(hn);var c,s,l,v,d,m,g,h,p,w=Mr,b=[pn,le,"l"],y=[bn,fe,"t"],x=["+=","-=","*=","/="],_=cn(t)==pi,S=_?t.complete:e,z={},T={},O="begin",k="nearest",C="never",A="ifneeded",H=xi.l,R=[pn,bn,"xy","yx"],L=[O,"end","center",k],N=["always",C,A],W=n[xi.hOP]("el"),D=W?n.el:n,M=!!(D instanceof Ci||ki)&&D instanceof ki,E=!M&&dt(D),I=function(){s&&Qe(!0),l&&Qe(!1)},j=cn(S)!=bi?hi:function(){I(),S()};function F(n,t){for(c=0;c<t[H];c++)if(n===t[c])return 1}function P(n,t){var r=n?b:y;if(t=cn(t)==mi||cn(t)==wi?[t,t]:t,Si.isA(t))return n?t[0]:t[1];if(cn(t)==pi)for(c=0;c<r[H];c++)if(r[c]in t)return t[r[c]]}function U(n,t){var r,e,i,o,a=cn(t)==mi,u=n?vn:dn,f=u.R,c=u.N,s=Vt&&n,l=s&&Ot.n&&!w,v="replace",d=eval;if((e=a?(2<t[H]&&(o=t.substr(0,2),-1<sn(o,x)&&(r=o)),t=(t=r?t.substr(2):t)[v](/min/g,0)[v](/</g,0)[v](/max/g,(l?"-":ye)+we)[v](/>/g,(l?"-":ye)+we)[v](/px/g,ye)[v](/%/g," * "+c*(s&&Ot.n?-1:1)/100)[v](/vw/g," * "+ee.w)[v](/vh/g," * "+ee.h),ii(isNaN(t)?ii(d(t),!0).toFixed():t)):t)!==hi&&!isNaN(e)&&cn(e)==wi){var h=w&&s,p=f*(h&&Ot.n?-1:1),b=h&&Ot.i,y=h&&Ot.n;switch(p=b?c-p:p,r){case"+=":i=p+e;break;case"-=":i=p-e;break;case"*=":i=p*e;break;case"/=":i=p/e;break;default:i=e}i=b?c-i:i,i*=y?-1:1,i=s&&Ot.n?Oi.min(0,Oi.max(c,i)):Oi.max(0,Oi.min(c,i))}return i===f?hi:i}function V(n,t,r,e){var i,o,a=[r,r],u=cn(n);if(u==t)n=[n,n];else if(u==yi){if(2<(i=n[H])||i<1)n=a;else for(1===i&&(n[1]=r),c=0;c<i;c++)if(o=n[c],cn(o)!=t||!F(o,e)){n=a;break}}else n=u==pi?[n[pn]||r,n[bn]||r]:a;return{x:n[0],y:n[1]}}function $(n){var t,r,e=[],i=[fe,ce,se,le];for(c=0;c<n[H]&&c!==i[H];c++)t=n[c],(r=cn(t))==gi?e.push(t?ii(p.css(oe+i[c])):0):e.push(r==wi?t:0);return e}if(M||E){var q,B=W?n.margin:0,X=W?n.axis:0,Y=W?n.scroll:0,K=W?n.block:0,G=[0,0,0,0],J=cn(B);if(0<(p=M?D:Ci(D))[H]){B=J==wi||J==gi?$([B,B,B,B]):J==yi?2===(q=B[H])?$([B[0],B[1],B[0],B[1]]):4<=q?$(B):G:J==pi?$([B[fe],B[ce],B[se],B[le]]):G,d=F(X,R)?X:"xy",m=V(Y,mi,"always",N),g=V(K,mi,O,L),h=B;var Q=vn.R,Z=dn.R,nn=Qt.offset(),tn=p.offset(),rn={x:m.x==C||d==bn,y:m.y==C||d==pn};tn[fe]-=h[0],tn[le]-=h[3];var en={x:Oi.round(tn[le]-nn[le]+Q),y:Oi.round(tn[fe]-nn[fe]+Z)};if(Vt&&(Ot.n||Ot.i||(en.x=Oi.round(nn[le]-tn[le]+Q)),Ot.n&&w&&(en.x*=-1),Ot.i&&w&&(en.x=Oi.round(nn[le]-tn[le]+(vn.N-Q)))),g.x!=O||g.y!=O||m.x==A||m.y==A||Vt){var on=p[0],an=ln?on[xi.bCR]():{width:on[xi.oW],height:on[xi.oH]},un={w:an[he]+h[3]+h[1],h:an[pe]+h[0]+h[2]},fn=function(n){var t=ni(n),r=t.F,e=t.P,i=t.U,o=g[i]==(n&&Vt?O:"end"),a="center"==g[i],u=g[i]==k,f=m[i]==C,c=m[i]==A,s=ee[r],l=nn[e],v=un[r],d=tn[e],h=a?2:1,p=d+v/2,b=l+s/2,y=v<=s&&l<=d&&d+v<=l+s;f?rn[i]=!0:rn[i]||((u||c)&&(rn[i]=c&&y,o=v<s?b<p:p<b),en[i]-=o||a?(s/h-v/h)*(n&&Vt&&w?-1:1):0)};fn(!0),fn(!1)}rn.y&&delete en.y,rn.x&&delete en.x,n=en}}z[_e]=U(!0,P(!0,n)),z[Se]=U(!1,P(!1,n)),s=z[_e]!==hi,l=z[Se]!==hi,(s||l)&&(0<t||_)?_?(t.complete=j,Zt.animate(z,t)):(v={duration:t,complete:j},Si.isA(r)||Ci.isPlainObject(r)?(T[_e]=r[0]||r.x,T[Se]=r[1]||r.y,v.specialEasing=T):v.easing=r,Zt.animate(z,v)):(s&&Zt[_e](z[_e]),l&&Zt[Se](z[Se]),I())},St.scrollStop=function(n,t,r){return Zt.stop(n,t,r),St},St.getElements=function(n){var t={target:or,host:ar,padding:fr,viewport:cr,content:sr,scrollbarHorizontal:{scrollbar:f[0],track:s[0],handle:l[0]},scrollbarVertical:{scrollbar:v[0],track:b[0],handle:y[0]},scrollbarCorner:ir[0]};return cn(n)==mi?bt(t,n):t},St.getState=function(n){function t(n){if(!Ci.isPlainObject(n))return n;var r=fi({},n),t=function(n,t){r[xi.hOP](n)&&(r[t]=r[n],delete r[n])};return t("w",he),t("h",pe),delete r.c,r}var r={destroyed:!!t(Lt),sleeping:!!t($t),autoUpdate:t(!qr),widthAuto:t(br),heightAuto:t(yr),padding:t(gr),overflowAmount:t(kr),hideOverflow:t(pr),hasOverflow:t(hr),contentScrollSize:t(vr),viewportSize:t(ee),hostSize:t(lr),documentMixed:t(w)};return cn(n)==mi?bt(r,n):r},St.ext=function(n){var t,r="added removed on contract".split(" "),e=0;if(cn(n)==mi){if(Pn[xi.hOP](n))for(t=fi({},Pn[n]);e<r.length;e++)delete t[r[e]]}else for(e in t={},Pn)t[e]=fi({},St.ext(e));return t},St.addExt=function(n,t){var r,e,i,o,a=zi.extension(n),u=!0;if(a){if(Pn[xi.hOP](n))return St.ext(n);if((r=a.extensionFactory.call(St,fi({},a.defaultOptions),Ci,Si))&&(i=r.contract,cn(i)==bi&&(o=i(vi),u=cn(o)==gi?o:u),u))return e=(Pn[n]=r).added,cn(e)==bi&&e(t),St.ext(n)}else console.warn('A extension with the name "'+n+"\" isn't registered.")},St.removeExt=function(n){var t,r=Pn[n];return!!r&&(delete Pn[n],t=r.removed,cn(t)==bi&&t(),!0)},zi.valid(function wt(n,t,r){var e,i;return o=xt.defaultOptions,Ct=xt.nativeScrollbarStyling,Ht=fi({},xt.nativeScrollbarSize),zt=fi({},xt.nativeScrollbarIsOverlaid),Tt=fi({},xt.overlayScrollbarDummySize),Ot=fi({},xt.rtlScrollBehavior),ot(fi({},o,t)),At=xt.cssCalc,I=xt.msie,kt=xt.autoUpdateRecommended,j=xt.supportTransition,ln=xt.supportTransform,g=xt.supportPassiveEvents,A=xt.supportResizeObserver,h=xt.supportMutationObserver,xt.restrictedMeasuring,F=Ci(n.ownerDocument),H=F[0],u=Ci(H.defaultView||H.parentWindow),x=u[0],c=gt(F,"html"),P=gt(c,"body"),Yt=Ci(n),or=Yt[0],Nt=Yt.is("textarea"),Wt=Yt.is("body"),w=H!==di,p=Nt?Yt.hasClass(yn)&&Yt.parent().hasClass(_n):Yt.hasClass(rn)&&Yt.children(W+gn)[xi.l],zt.x&&zt.y&&!qt.nativeScrollbarsOverlaid.initialize?(Rt=!0,ti("onInitializationWithdrawn"),p&&(at(!0),ft(!0),st(!0)),$t=Lt=!(Rt=!1)):(Wt&&((e={}).l=Oi.max(Yt[_e](),c[_e](),u[_e]()),e.t=Oi.max(Yt[Se](),c[Se](),u[Se]()),i=function(){Zt.removeAttr(xi.ti),Yn(Zt,$,i,!0,!0)}),at(),ft(),st(),ut(),ct(!0),ct(!1),function s(){var r,t=x.top!==x,e={},i={},o={};function a(n){if(f(n)){var t=c(n),r={};(ne||Zr)&&(r[he]=i.w+(t.x-e.x)*o.x),(te||Zr)&&(r[pe]=i.h+(t.y-e.y)*o.y),Kt.css(r),Si.stpP(n)}else u(n)}function u(n){var t=n!==hi;Yn(F,[J,B,q],[tt,a,u],!0),si(P,En),ir.releaseCapture&&ir.releaseCapture(),t&&(r&&Ue(),St.update(me)),r=!1}function f(n){var t=(n.originalEvent||n).touches!==hi;return!$t&&!Lt&&(1===Si.mBtn(n)||t)}function c(n){return I&&t?{x:n.screenX,y:n.screenY}:Si.page(n)}Kn(ir,$,function(n){f(n)&&!Qr&&(qr&&(r=!0,Ve()),e=c(n),i.w=ar[xi.oW]-(Dt?0:Et),i.h=ar[xi.oH]-(Dt?0:It),o=vt(),Yn(F,[J,B,q],[tt,a,u]),ci(P,En),ir.setCapture&&ir.setCapture(),Si.prvD(n),Si.stpP(n))})}(),Gn(),Pe(Jt,Jn),Wt&&(Zt[_e](e.l)[Se](e.t),di.activeElement==n&&cr.focus&&(Zt.attr(xi.ti,"-1"),cr.focus(),Yn(Zt,$,i,!1,!0))),St.update(me),Rt=!0,ti("onInitialized"),d(jn,function(n,t){ti(t.n,t.a)}),jn=[],cn(r)==mi&&(r=[r]),Si.isA(r)?d(r,function(n,t){St.addExt(t)}):Ci.isPlainObject(r)&&d(r,function(n,t){St.addExt(n,t)}),setTimeout(function(){j&&!Lt&&ci(Kt,fn)},333)),St}(r,n,t))&&Ai(r,St),St}function Yn(n,t,r,e,i){var o=Si.isA(t)&&Si.isA(r),a=e?"removeEventListener":"addEventListener",u=e?"off":"on",f=!o&&t.split(xe),c=0,s=Ci.isPlainObject(i),l=g&&(s?i.V:i)||!1,v=s&&(i.$||!1),d=g?{passive:l,capture:v}:v;if(o)for(;c<t[xi.l];c++)Yn(n,t[c],r[c],e,i);else for(;c<f[xi.l];c++)g?n[0][a](f[c],r,d):n[u](f[c],r)}function Kn(n,t,r,e){Yn(n,t,r,!1,e),Xn.push(Si.bind(Yn,0,n,t,r,!0,e))}function Pe(n,t){if(n){var r=Si.rO(),e="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",i="childNodes",o=3333333,a=function(){n[Se](o)[_e](Vt?Ot.n?-o:Ot.i?0:o:o),t()};if(t){if(A)((k=n.addClass("observed").append(ai(Sn)).contents()[0])[Z]=new r(a)).observe(k);else if(9<I||!kt){n.prepend(ai(Sn,ai({c:zn,dir:"ltr"},ai(zn,ai(Tn))+ai(zn,ai({c:Tn,style:"width: 200%; height: 200%"})))));var u,f,c,s,l=n[0][i][0][i][0],v=Ci(l[i][1]),d=Ci(l[i][0]),h=Ci(d[0][i][0]),p=l[xi.oW],b=l[xi.oH],y=xt.nativeScrollbarSize,m=function(){d[_e](o)[Se](o),v[_e](o)[Se](o)},g=function(){f=0,u&&(p=c,b=s,a())},w=function(n){return c=l[xi.oW],s=l[xi.oH],u=c!=p||s!=b,n&&u&&!f?(Si.cAF()(f),f=Si.rAF()(g)):n||g(),m(),n&&(Si.prvD(n),Si.stpP(n)),!1},x={},_={};ri(_,ye,[-2*(y.y+1),-2*y.x,-2*y.y,-2*(y.x+1)]),Ci(l).css(_),d.on(ge,w),v.on(ge,w),n.on(e,function(){w(!1)}),x[he]=o,x[pe]=o,h.css(x),m()}else{var S=H.attachEvent,z=I!==hi;if(S)n.prepend(ai(Sn)),gt(n,W+Sn)[0].attachEvent("onresize",a);else{var T=H.createElement(pi);T.setAttribute(xi.ti,"-1"),T.setAttribute(xi.c,Sn),T.onload=function(){var n=this.contentDocument.defaultView;n.addEventListener("resize",a),n.document.documentElement.style.display="none"},T.type="text/html",z&&n.prepend(T),T.data="about:blank",z||n.prepend(T),n.on(e,a)}}if(n[0]===R){var O=function(){var n=Kt.css("direction"),t={},r=0,e=!1;return n!==L&&(r="ltr"===n?(t[le]=0,t[ce]=me,o):(t[le]=me,t[ce]=0,Ot.n?-o:Ot.i?0:o),Jt.children().eq(0).css(t),Jt[_e](r)[Se](o),L=n,e=!0),e};O(),Kn(n,ge,function(n){return O()&&Xe(),Si.prvD(n),Si.stpP(n),!1})}}else if(A){var k,C=(k=n.contents()[0])[Z];C&&(C.disconnect(),delete k[Z])}else mt(n.children(W+Sn).eq(0))}}function Gn(){if(h){var o,a,u,f,c,s,r,e,i,l,n=Si.mO(),v=Si.now();O=function(n){var t=!1;return Rt&&!$t&&(d(n,function(){return!(t=function o(n){var t=n.attributeName,r=n.target,e=n.type,i="closest";if(r===sr)return null===t;if("attributes"===e&&(t===xi.c||t===xi.s)&&!Nt){if(t===xi.c&&Ci(r).hasClass(rn))return et(n.oldValue,r.className);if(typeof r[i]!=bi)return!0;if(null!==r[i](W+Sn)||null!==r[i](W+kn)||null!==r[i](W+Wn))return!1}return!0}(this))}),t&&(e=Si.now(),i=yr||br,l=function(){Lt||(v=e,Nt&&Be(),i?Xe():St.update(me))},clearTimeout(r),11<e-v||!i?l():r=setTimeout(l,11))),t},S=new n(T=function(n){var t,r=!1,e=!1,i=[];return Rt&&!$t&&(d(n,function(){o=(t=this).target,a=t.attributeName,u=a===xi.c,f=t.oldValue,c=o.className,p&&u&&!e&&-1<f.indexOf(en)&&c.indexOf(en)<0&&(s=lt(!0),ar.className=c.split(xe).concat(f.split(xe).filter(function(n){return n.match(s)})).join(xe),r=e=!0),r=r||(u?et(f,c):a!==xi.s||f!==o[xi.s].cssText),i.push(a)}),it(i),r&&St.update(e||me)),r}),z=new n(O)}}function Ue(){h&&!qr&&(S.observe(ar,{attributes:!0,attributeOldValue:!0,attributeFilter:Bn}),z.observe(Nt?or:sr,{attributes:!0,attributeOldValue:!0,subtree:!Nt,childList:!Nt,characterData:!Nt,attributeFilter:Nt?qn:Bn}),qr=!0)}function Ve(){h&&qr&&(S.disconnect(),z.disconnect(),qr=!1)}function Jn(){if(!$t){var n,t={w:R[xi.sW],h:R[xi.sH]};n=ui(t,_),_=t,n&&Xe({A:!0})}}function Qn(){Jr&&Ge(!0)}function Zn(){Jr&&!P.hasClass(En)&&Ge(!1)}function nt(){Gr&&(Ge(!0),clearTimeout(C),C=setTimeout(function(){Gr&&!Lt&&Ge(!1)},100))}function tt(n){return Si.prvD(n),!1}function rt(n){if(!Lt){var t=n.target,r=Ci(n.target),e=Ci.inArray(t,Vn);-1<e&&Vn.splice(e,1),yt(function(n,t){r.is(t)&&Xe({k:!0})})}}function $e(n){n||$e(!0),Yn(Kt,B.split(xe)[0],nt,!Gr||n,!0),Yn(Kt,[X,Y],[Qn,Zn],!Jr||n,!0),Rt||n||Kt.one("mouseover",Qn)}function qe(){var n={};return Wt&&tr&&(n.w=ii(tr.css(ve+he)),n.h=ii(tr.css(ve+pe)),n.c=ui(n,$r),n.f=!0),!!($r=n).c}function et(n,t){var r,e,i=typeof t==mi?t.split(xe):[],o=function u(n,t){var r,e,i=[],o=[];for(r=0;r<n.length;r++)i[n[r]]=!0;for(r=0;r<t.length;r++)i[t[r]]?delete i[t[r]]:i[t[r]]=!0;for(e in i)o.push(e);return o}(typeof n==mi?n.split(xe):[],i),a=sn(Ie,o);if(-1<a&&o.splice(a,1),0<o[xi.l])for(e=lt(!0,!0),r=0;r<o.length;r++)if(!o[r].match(e))return!0;return!1}function it(n){d(n=n||Fn,function(n,t){if(-1<Si.inA(t,Fn)){var r=Yt.attr(t);cn(r)==mi?Zt.attr(t,r):Zt.removeAttr(t)}})}function Be(){if(!$t){var n,t,r,e,i=!jr,o=ee.w,a=ee.h,u={},f=br||i;return u[ve+he]=ye,u[ve+pe]=ye,u[he]=me,Yt.css(u),n=or[xi.oW],t=f?Oi.max(n,or[xi.sW]-1):1,u[he]=br?me:we,u[ve+he]=we,u[pe]=me,Yt.css(u),r=or[xi.oH],e=Oi.max(r,or[xi.sH]-1),u[he]=t,u[pe]=e,er.css(u),u[ve+he]=o,u[ve+pe]=a,Yt.css(u),{q:n,B:r,X:t,Y:e}}}function Xe(n){clearTimeout(Xt),n=n||{},je.A|=n.A,je.k|=n.k,je.H|=n.H;var t,r=Si.now(),e=!!je.A,i=!!je.k,o=!!je.H,a=n.C,u=0<Fe&&Rt&&!Lt&&!o&&!a&&r-Bt<Fe&&!yr&&!br;if(u&&(Xt=setTimeout(Xe,Fe)),!(Lt||u||$t&&!a||Rt&&!o&&(t=Kt.is(":hidden"))||"inline"===Kt.css("display"))){Bt=r,je={},!Ct||zt.x&&zt.y?Ht=fi({},xt.nativeScrollbarSize):(Ht.x=0,Ht.y=0),ie={x:3*(Ht.x+(zt.x?0:3)),y:3*(Ht.y+(zt.y?0:3))},a=a||{};var f=function(){return ui.apply(this,[].slice.call(arguments).concat([o]))},c={x:Zt[_e](),y:Zt[Se]()},s=qt.scrollbars,l=qt.textarea,v=s.visibility,d=f(v,Rr),h=s.autoHide,p=f(h,Lr),b=s.clickScrolling,y=f(b,Nr),m=s.dragScrolling,g=f(m,Wr),w=qt.className,x=f(w,Er),_=qt.resize,S=f(_,Dr)&&!Wt,z=qt.paddingAbsolute,T=f(z,Sr),O=qt.clipAlways,k=f(O,zr),C=qt.sizeAutoCapable&&!Wt,A=f(C,Hr),H=qt.nativeScrollbarsOverlaid.showNativeScrollbars,R=f(H,Cr),L=qt.autoUpdate,N=f(L,Ar),W=qt.overflowBehavior,D=f(W,Or,o),M=l.dynWidth,E=f(Vr,M),I=l.dynHeight,j=f(Ur,I);if(Yr="n"===h,Kr="s"===h,Gr="m"===h,Jr="l"===h,Xr=s.autoHideDelay,Ir=Er,Qr="n"===_,Zr="b"===_,ne="h"===_,te="v"===_,Mr=qt.normalizeRTL,H=H&&zt.x&&zt.y,Rr=v,Lr=h,Nr=b,Wr=m,Er=w,Dr=_,Sr=z,zr=O,Hr=C,Cr=H,Ar=L,Or=fi({},W),Vr=M,Ur=I,hr=hr||{x:!1,y:!1},x&&(si(Kt,Ir+xe+Ie),ci(Kt,w!==hi&&null!==w&&0<w.length?w:Ie)),N&&(!0===L||null===L&&kt?(Ve(),_t.add(St)):(_t.remove(St),Ue())),A)if(C)if(rr?rr.show():(rr=Ci(ai(Le)),Qt.before(rr)),Mt)Gt.show();else{Gt=Ci(ai(Ne)),ur=Gt[0],rr.before(Gt);var F={w:-1,h:-1};Pe(Gt,function(){var n={w:ur[xi.oW],h:ur[xi.oH]};ui(n,F)&&(Rt&&yr&&0<n.h||br&&0<n.w||Rt&&!yr&&0===n.h||!br&&0===n.w)&&Xe(),F=n}),Mt=!0,null!==At&&Gt.css(pe,At+"(100% + 1px)")}else Mt&&Gt.hide(),rr&&rr.hide();o&&(Jt.find("*").trigger(ge),Mt&&Gt.find("*").trigger(ge)),t=t===hi?Kt.is(":hidden"):t;var P,U=!!Nt&&"off"!==Yt.attr("wrap"),V=f(U,jr),$=Kt.css("direction"),q=f($,_r),B=Kt.css("box-sizing"),X=f(B,mr),Y=ei(ae);try{P=Mt?ur[xi.bCR]():null}catch(gt){return}Dt="border-box"===B;var K=(Vt="rtl"===$)?le:ce,G=Vt?ce:le,J=!1,Q=!(!Mt||"none"===Kt.css(be))&&(0===Oi.round(P.right-P.left)&&(!!z||0<ar[xi.cW]-Et));if(C&&!Q){var Z=ar[xi.oW],nn=rr.css(he);rr.css(he,me);var tn=ar[xi.oW];rr.css(he,nn),(J=Z!==tn)||(rr.css(he,Z+1),tn=ar[xi.oW],rr.css(he,nn),J=Z!==tn)}var rn=(Q||J)&&C&&!t,en=f(rn,br),on=!rn&&br,an=!(!Mt||!C||t)&&0===Oi.round(P.bottom-P.top),un=f(an,yr),fn=!an&&yr,cn=ei(ue,"-"+he,!(rn&&Dt||!Dt),!(an&&Dt||!Dt)),sn=ei(oe),ln={},vn={},dn=function(){return{w:ar[xi.cW],h:ar[xi.cH]}},hn=function(){return{w:fr[xi.oW]+Oi.max(0,sr[xi.cW]-sr[xi.sW]),h:fr[xi.oH]+Oi.max(0,sr[xi.cH]-sr[xi.sH])}},pn=Et=Y.l+Y.r,bn=It=Y.t+Y.b;if(pn*=z?1:0,bn*=z?1:0,Y.c=f(Y,gr),jt=cn.l+cn.r,Ft=cn.t+cn.b,cn.c=f(cn,wr),Pt=sn.l+sn.r,Ut=sn.t+sn.b,sn.c=f(sn,xr),jr=U,_r=$,mr=B,br=rn,yr=an,gr=Y,wr=cn,xr=sn,q&&Mt&&Gt.css(be,G),Y.c||q||T||en||un||X||A){var yn={},mn={},gn=[Y.t,Y.r,Y.b,Y.l];ri(vn,oe,[-Y.t,-Y.r,-Y.b,-Y.l]),z?(ri(yn,ye,gn),ri(Nt?mn:ln,ae)):(ri(yn,ye),ri(Nt?mn:ln,ae,gn)),Qt.css(yn),Yt.css(mn)}ee=hn();var wn=!!Nt&&Be(),xn=Nt&&f(wn,Pr),_n=Nt&&wn?{w:M?wn.X:wn.q,h:I?wn.Y:wn.B}:{};if(Pr=wn,an&&(un||T||X||Y.c||cn.c)?ln[pe]=me:(un||T)&&(ln[pe]=we),rn&&(en||T||X||Y.c||cn.c||q)?(ln[he]=me,vn[de+he]=we):(en||T)&&(ln[he]=we,ln[be]=ye,vn[de+he]=ye),rn?(vn[he]=me,ln[he]=_i.v(he,"max-content intrinsic")||me,ln[be]=G):vn[he]=ye,vn[pe]=an?_n.h||sr[xi.cH]:ye,C&&rr.css(vn),nr.css(ln),ln={},vn={},e||i||xn||q||X||T||en||rn||un||an||R||D||k||S||d||p||g||y||E||j||V){var Sn="overflow",zn=Sn+"-x",Tn=Sn+"-y";if(!Ct){var On={},kn=hr.y&&pr.ys&&!H?zt.y?Zt.css(K):-Ht.y:0,Cn=hr.x&&pr.xs&&!H?zt.x?Zt.css(se):-Ht.x:0;ri(On,ye),Zt.css(On)}var An=oi(),Hn={w:_n.w||An[xi.cW],h:_n.h||An[xi.cH]},Rn=An[xi.sW],Ln=An[xi.sH];Ct||(On[se]=fn?ye:Cn,On[K]=on?ye:kn,Zt.css(On)),ee=hn();var Nn=dn(),Wn={w:Nn.w-Pt-jt-(Dt?0:Et),h:Nn.h-Ut-Ft-(Dt?0:It)},Dn={w:Oi.max((rn?Hn.w:Rn)+pn,Wn.w),h:Oi.max((an?Hn.h:Ln)+bn,Wn.h)};if(Dn.c=f(Dn,Tr),Tr=Dn,C){(Dn.c||an||rn)&&(vn[he]=Dn.w,vn[pe]=Dn.h,Nt||(Hn={w:An[xi.cW],h:An[xi.cH]}));var Mn={},En=function(n){var t=ni(n),r=t.F,e=t.K,i=n?rn:an,o=n?jt:Ft,a=n?Et:It,u=n?Pt:Ut,f=ee[r]-o-u-(Dt?0:a);i&&(i||!cn.c)||(vn[e]=Wn[r]-1),!(i&&Hn[r]<f)||n&&Nt&&U||(Nt&&(Mn[e]=ii(er.css(e))-1),--vn[e]),0<Hn[r]&&(vn[e]=Oi.max(1,vn[e]))};En(!0),En(!1),Nt&&er.css(Mn),rr.css(vn)}rn&&(ln[he]=we),!rn||Dt||qr||(ln[be]="none"),nr.css(ln),ln={};var In={w:An[xi.sW],h:An[xi.sH]};In.c=i=f(In,vr),vr=In,ee=hn(),e=f(Nn=dn(),lr),lr=Nn;var jn=Nt&&(0===ee.w||0===ee.h),Fn=kr,Pn={},Un={},Vn={},$n={},qn={},Bn={},Xn={},Yn=fr[xi.bCR](),Kn=function(n){var t=ni(n),r=ni(!n).U,e=t.U,i=t.F,o=t.K,a=ge+t.G+"Max",u=Yn[o]?Oi.abs(Yn[o]-ee[i]):0,f=Fn&&0<Fn[e]&&0===cr[a];Pn[e]="v-s"===W[e],Un[e]="v-h"===W[e],Vn[e]="s"===W[e],$n[e]=Oi.max(0,Oi.round(100*(In[i]-ee[i]))/100),$n[e]*=jn||f&&0<u&&u<1?0:1,qn[e]=0<$n[e],Bn[e]=Pn[e]||Un[e]?qn[r]&&!Pn[r]&&!Un[r]:qn[e],Bn[e+"s"]=!!Bn[e]&&(Vn[e]||Pn[e]),Xn[e]=qn[e]&&Bn[e+"s"]};if(Kn(!0),Kn(!1),$n.c=f($n,kr),kr=$n,qn.c=f(qn,hr),hr=qn,Bn.c=f(Bn,pr),pr=Bn,zt.x||zt.y){var Gn,Jn={},Qn={},Zn=o;(qn.x||qn.y)&&(Qn.w=zt.y&&qn.y?In.w+Tt.y:ye,Qn.h=zt.x&&qn.x?In.h+Tt.x:ye,Zn=f(Qn,dr),dr=Qn),(qn.c||Bn.c||In.c||q||en||un||rn||an||R)&&(ln[oe+G]=ln[ue+G]=ye,Gn=function(n){var t=ni(n),r=ni(!n),e=t.U,i=n?se:K,o=n?an:rn;zt[e]&&qn[e]&&Bn[e+"s"]?(ln[oe+i]=!o||H?ye:Tt[e],ln[ue+i]=n&&o||H?ye:Tt[e]+"px solid transparent"):(Qn[r.F]=ln[oe+i]=ln[ue+i]=ye,Zn=!0)},Ct?li(Zt,He,!H):(Gn(!0),Gn(!1))),H&&(Qn.w=Qn.h=ye,Zn=!0),Zn&&!Ct&&(Jn[he]=Bn.y?Qn.w:ye,Jn[pe]=Bn.x?Qn.h:ye,tr||(tr=Ci(ai(Re)),Zt.prepend(tr)),tr.css(Jn)),nr.css(ln)}var nt,tt={};yn={};if((e||qn.c||Bn.c||In.c||D||X||R||q||k||un)&&(tt[G]=ye,(nt=function(n){var t=ni(n),r=ni(!n),e=t.U,i=t.J,o=n?se:K,a=function(){tt[o]=ye,re[r.F]=0};qn[e]&&Bn[e+"s"]?(tt[Sn+i]=ge,H||Ct?a():(tt[o]=-(zt[e]?Tt[e]:Ht[e]),re[r.F]=zt[e]?Tt[r.U]:0)):(tt[Sn+i]=ye,a())})(!0),nt(!1),!Ct&&(ee.h<ie.x||ee.w<ie.y)&&(qn.x&&Bn.x&&!zt.x||qn.y&&Bn.y&&!zt.y)?(tt[ae+fe]=ie.x,tt[oe+fe]=-ie.x,tt[ae+G]=ie.y,tt[oe+G]=-ie.y):tt[ae+fe]=tt[oe+fe]=tt[ae+G]=tt[oe+G]=ye,tt[ae+K]=tt[oe+K]=ye,qn.x&&Bn.x||qn.y&&Bn.y||jn?Nt&&jn&&(yn[zn]=yn[Tn]="hidden"):(!O||Un.x||Pn.x||Un.y||Pn.y)&&(Nt&&(yn[zn]=yn[Tn]=ye),tt[zn]=tt[Tn]="visible"),Qt.css(yn),Zt.css(tt),tt={},(qn.c||X||en||un)&&(!zt.x||!zt.y))){var rt=sr[xi.s];rt.webkitTransform="scale(1)",rt.display="run-in",sr[xi.oH],rt.display=ye,rt.webkitTransform=ye}if(ln={},q||en||un)if(Vt&&rn){var et=nr.css(be),it=Oi.round(nr.css(be,ye).css(le,ye).position().left);nr.css(be,et),it!==Oi.round(nr.position().left)&&(ln[le]=it)}else ln[le]=ye;if(nr.css(ln),Nt&&i){var ot=function wt(){var n=or.selectionStart;if(n===hi)return;var t,r,e=Yt.val(),i=e[xi.l],o=e.split("\n"),a=o[xi.l],u=e.substr(0,n).split("\n"),f=0,c=0,s=u[xi.l],l=u[u[xi.l]-1][xi.l];for(r=0;r<o[xi.l];r++)t=o[r][xi.l],c<t&&(f=r+1,c=t);return{Q:s,Z:l,nn:a,tn:c,rn:f,en:n,"in":i}}();if(ot){var at=Fr===hi||ot.nn!==Fr.nn,ut=ot.Q,ft=ot.Z,ct=ot.rn,st=ot.nn,lt=ot.tn,vt=ot.en,dt=ot["in"]<=vt&&Br,ht={x:U||ft!==lt||ut!==ct?-1:kr.x,y:(U?dt||at&&Fn&&c.y===Fn.y:(dt||at)&&ut===st)?kr.y:-1};c.x=-1<ht.x?Vt&&Mr&&Ot.i?0:ht.x:c.x,c.y=-1<ht.y?ht.y:c.y}Fr=ot}Vt&&Ot.i&&zt.y&&qn.x&&Mr&&(c.x+=re.w||0),rn&&Kt[_e](0),an&&Kt[Se](0),Zt[_e](c.x)[Se](c.y);var pt="v"===v,bt="h"===v,yt="a"===v,mt=function(n,t){t=t===hi?n:t,Ke(!0,n,Xn.x),Ke(!1,t,Xn.y)};li(Kt,ke,Bn.x||Bn.y),li(Kt,Ce,Bn.x),li(Kt,Ae,Bn.y),q&&!Wt&&li(Kt,ze,Vt),Wt&&ci(Kt,Te),S&&(li(Kt,Te,Qr),li(ir,We,!Qr),li(ir,De,Zr),li(ir,Me,ne),li(ir,Ee,te)),(d||D||Bn.c||qn.c||R)&&(H?R&&(si(Kt,Oe),H&&mt(!1)):yt?mt(Xn.x,Xn.y):pt?mt(!0):bt&&mt(!1)),(p||R)&&($e(!Jr&&!Gr),Ge(Yr,!Yr)),(e||$n.c||un||en||S||X||T||R||q)&&(Je(!0),Qe(!0),Je(!1),Qe(!1)),y&&Ze(!0,b),g&&Ze(!1,m),ti("onDirectionChanged",{isRTL:Vt,dir:$},q),ti("onHostSizeChanged",{width:lr.w,height:lr.h},e),ti("onContentSizeChanged",{width:vr.w,height:vr.h},i),ti("onOverflowChanged",{x:qn.x,y:qn.y,xScrollable:Bn.xs,yScrollable:Bn.ys,clipped:Bn.x||Bn.y},qn.c||Bn.c),ti("onOverflowAmountChanged",{x:$n.x,y:$n.y},$n.c)}Wt&&$r&&(hr.c||$r.c)&&($r.f||qe(),zt.y&&hr.x&&nr.css(ve+he,$r.w+Tt.y),zt.x&&hr.y&&nr.css(ve+pe,$r.h+Tt.x),$r.c=!1),Rt&&a.updateOnLoad&&Ye(),ti("onUpdated",{forced:o})}}function Ye(){Nt||yt(function(n,t){nr.find(t).each(function(n,t){Si.inA(t,Vn)<0&&(Vn.push(t),Ci(t).off(Un,rt).on(Un,rt))})})}function ot(n){var t=Ti._(n,Ti.g,!0,a);return a=fi({},a,t.S),qt=fi({},qt,t.z),t.z}function at(e){var n="parent",t=yn+xe+On,r=Nt?xe+On:ye,i=qt.textarea.inheritedAttrs,o={},a=function(){var r=e?Yt:Kt;d(o,function(n,t){cn(t)==mi&&(n==xi.c?r.addClass(t):r.attr(n,t))})},u=[rn,en,on,Te,ze,an,un,fn,Oe,ke,Ce,Ae,Ie,yn,On,Er].join(xe),f={};Kt=Kt||(Nt?p?Yt[n]()[n]()[n]()[n]():Ci(ai(on)):Yt),nr=nr||pt(_n+r),Zt=Zt||pt(wn+r),Qt=Qt||pt(gn+r),Jt=Jt||pt("os-resize-observer-host"),er=er||(Nt?pt(mn):hi),p&&ci(Kt,en),e&&si(Kt,u),i=cn(i)==mi?i.split(xe):i,Si.isA(i)&&Nt&&d(i,function(n,t){cn(t)==mi&&(o[t]=e?Kt.attr(t):Yt.attr(t))}),e?(p&&Rt?(Jt.children().remove(),d([Qt,Zt,nr,er],function(n,t){t&&si(t.removeAttr(xi.s),In)}),ci(Kt,Nt?on:rn)):(mt(Jt),nr.contents().unwrap().unwrap().unwrap(),Nt&&(Yt.unwrap(),mt(Kt),mt(er),a())),Nt&&Yt.removeAttr(xi.s),Wt&&si(c,tn)):(Nt&&(qt.sizeAutoCapable||(f[he]=Yt.css(he),f[pe]=Yt.css(pe)),p||Yt.addClass(On).wrap(Kt),Kt=Yt[n]().css(f)),p||(ci(Yt,Nt?t:rn),Kt.wrapInner(nr).wrapInner(Zt).wrapInner(Qt).prepend(Jt),nr=gt(Kt,W+_n),Zt=gt(Kt,W+wn),Qt=gt(Kt,W+gn),Nt&&(nr.prepend(er),a())),Ct&&ci(Zt,He),zt.x&&zt.y&&ci(Zt,xn),Wt&&ci(c,tn),R=Jt[0],ar=Kt[0],fr=Qt[0],cr=Zt[0],sr=nr[0],it())}function ut(){var r,t,e=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],i=[],n="focus";function o(n){Be(),St.update(me),n&&kt&&clearInterval(r)}Nt?(9<I||!kt?Kn(Yt,"input",o):Kn(Yt,[K,G],[function a(n){var t=n.keyCode;sn(t,e)<0&&(i[xi.l]||(o(),r=setInterval(o,1e3/60)),sn(t,i)<0&&i.push(t))},function u(n){var t=n.keyCode,r=sn(t,i);sn(t,e)<0&&(-1<r&&i.splice(r,1),i[xi.l]||o(!0))}]),Kn(Yt,[ge,"drop",n,n+"out"],[function f(n){return Yt[_e](Ot.i&&Mr?9999999:0),Yt[Se](0),Si.prvD(n),Si.stpP(n),!1},function c(n){setTimeout(function(){Lt||o()},50)},function s(){Br=!0,ci(Kt,n)},function l(){Br=!1,i=[],si(Kt,n),o(!0)}])):Kn(nr,Q,function v(n){!0!==Ar&&function l(n){if(!Rt)return 1;var t="flex-grow",r="flex-shrink",e="flex-basis",i=[he,ve+he,de+he,oe+le,oe+ce,le,ce,"font-weight","word-spacing",t,r,e],o=[ae+le,ae+ce,ue+le+he,ue+ce+he],a=[pe,ve+pe,de+pe,oe+fe,oe+se,fe,se,"line-height",t,r,e],u=[ae+fe,ae+se,ue+fe+he,ue+se+he],f="s"===Or.x||"v-s"===Or.x,c=!1,s=function(n,t){for(var r=0;r<n[xi.l];r++)if(n[r]===t)return!0;return!1};return("s"===Or.y||"v-s"===Or.y)&&((c=s(a,n))||Dt||(c=s(u,n))),f&&!c&&((c=s(i,n))||Dt||(c=s(o,n))),c}((n=n.originalEvent||n).propertyName)&&St.update(me)}),Kn(Zt,ge,function d(n){$t||(t!==hi?clearTimeout(t):((Kr||Gr)&&Ge(!0),ht()||ci(Kt,Oe),ti("onScrollStart",n)),V||(Qe(!0),Qe(!1)),ti("onScroll",n),t=setTimeout(function(){Lt||(clearTimeout(t),t=hi,(Kr||Gr)&&Ge(!1),ht()||si(Kt,Oe),ti("onScrollStop",n))},175))},!0)}function ft(i){var n,t,o=function(n){var t=pt(kn+xe+(n?Dn:Mn),!0),r=pt(Cn,t),e=pt(Hn,t);return p||i||(t.append(r),r.append(e)),{an:t,un:r,cn:e}};function r(n){var t=ni(n),r=t.an,e=t.un,i=t.cn;p&&Rt?d([r,e,i],function(n,t){si(t.removeAttr(xi.s),In)}):mt(r||o(n).an)}i?(r(!0),r()):(n=o(!0),t=o(),f=n.an,s=n.un,l=n.cn,v=t.an,b=t.un,y=t.cn,p||(Qt.after(v),Qt.after(f)))}function ct(z){var T,i,O,k,e=ni(z),C=e.sn,t=x.top!==x,A=e.U,r=e.J,H=ge+e.G,o="active",a="snapHandle",u="click",R=1,f=[16,17];function c(n){return I&&t?n["screen"+r]:Si.page(n)[A]}function s(n){return qt.scrollbars[n]}function l(){R=.5}function v(){R=1}function d(n){Si.stpP(n)}function L(n){-1<sn(n.keyCode,f)&&l()}function N(n){-1<sn(n.keyCode,f)&&v()}function W(n){var t=(n.originalEvent||n).touches!==hi;return!($t||Lt||ht()||!Wr||t&&!s("touchSupport"))&&(1===Si.mBtn(n)||t)}function h(n){if(W(n)){var t=C.I,r=C.D,e=C.N*((c(n)-O)*k/(t-r));e=isFinite(e)?e:0,Vt&&z&&!Ot.i&&(e*=-1),Zt[H](Oi.round(i+e)),V&&Qe(z,i+e),g||Si.prvD(n)}else D(n)}function D(n){if(n=n||n.originalEvent,Yn(F,[B,q,K,G,J],[h,D,L,N,tt],!0),Si.rAF()(function(){Yn(F,u,d,!0,{$:!0})}),V&&Qe(z,!0),V=!1,si(P,En),si(e.cn,o),si(e.un,o),si(e.an,o),k=1,v(),T!==(O=i=hi)&&(St.scrollStop(),clearTimeout(T),T=hi),n){var t=ar[xi.bCR]();n.clientX>=t.left&&n.clientX<=t.right&&n.clientY>=t.top&&n.clientY<=t.bottom||Zn(),(Kr||Gr)&&Ge(!1)}}function M(n){i=Zt[H](),i=isNaN(i)?0:i,(Vt&&z&&!Ot.n||!Vt)&&(i=i<0?0:i),k=vt()[A],O=c(n),V=!s(a),ci(P,En),ci(e.cn,o),ci(e.an,o),Yn(F,[B,q,J],[h,D,tt]),Si.rAF()(function(){Yn(F,u,d,!1,{$:!0})}),!I&&w||Si.prvD(n),Si.stpP(n)}Kn(e.cn,$,function p(n){W(n)&&M(n)}),Kn(e.un,[$,X,Y],[function E(n){if(W(n)){var d,t=e.sn.D/Math.round(Oi.min(1,ee[e.F]/vr[e.F])*e.sn.I),h=Oi.round(ee[e.F]*t),p=270*t,b=400*t,y=e.un.offset()[e.P],r=n.ctrlKey,m=n.shiftKey,g=m&&r,w=!0,x=function(n){V&&Qe(z,n)},_=function(){x(),M(n)},S=function(){if(!Lt){var n=(O-y)*k,t=C.W,r=C.I,e=C.D,i=C.N,o=C.R,a=p*R,u=w?Oi.max(b,a):a,f=i*((n-e/2)/(r-e)),c=Vt&&z&&(!Ot.i&&!Ot.n||Mr),s=c?t<n:n<t,l={},v={easing:"linear",step:function(n){V&&(Zt[H](n),Qe(z,n))}};f=isFinite(f)?f:0,f=Vt&&z&&!Ot.i?i-f:f,m?(Zt[H](f),g?(f=Zt[H](),Zt[H](o),f=c&&Ot.i?i-f:f,f=c&&Ot.n?-f:f,l[A]=f,St.scroll(l,fi(v,{duration:130,complete:_}))):_()):(d=w?s:d,(c?d?n<=t+e:t<=n:d?t<=n:n<=t+e)?(clearTimeout(T),St.scrollStop(),T=hi,x(!0)):(T=setTimeout(S,u),l[A]=(d?"-=":"+=")+h,St.scroll(l,fi(v,{duration:a}))),w=!1)}};r&&l(),k=vt()[A],O=Si.page(n)[A],V=!s(a),ci(P,En),ci(e.un,o),ci(e.an,o),Yn(F,[q,K,G,J],[D,L,N,tt]),S(),Si.prvD(n),Si.stpP(n)}},function b(n){U=!0,(Kr||Gr)&&Ge(!0)},function y(n){U=!1,(Kr||Gr)&&Ge(!1)}]),Kn(e.an,$,function m(n){Si.stpP(n)}),j&&Kn(e.an,Q,function(n){n.target===e.an[0]&&(Je(z),Qe(z))})}function Ke(n,t,r){var e=n?f:v;li(Kt,n?an:un,!t),li(e,Ln,!r)}function Ge(n,t){if(clearTimeout(k),n)si(f,Nn),si(v,Nn);else{var r,e=function(){U||Lt||(!(r=l.hasClass("active")||y.hasClass("active"))&&(Kr||Gr||Jr)&&ci(f,Nn),!r&&(Kr||Gr||Jr)&&ci(v,Nn))};0<Xr&&!0!==t?k=setTimeout(e,Xr):e()}}function Je(n){var t={},r=ni(n),e=r.sn,i=Oi.min(1,ee[r.F]/vr[r.F]);t[r.K]=Oi.floor(100*i*1e6)/1e6+"%",ht()||r.cn.css(t),e.D=r.cn[0]["offset"+r.ln],e.M=i}function Qe(n,t){var r,e,i=cn(t)==gi,o=Vt&&n,a=ni(n),u=a.sn,f="translate(",c=_i.u("transform"),s=_i.u("transition"),l=n?Zt[_e]():Zt[Se](),v=t===hi||i?l:t,d=u.D,h=a.un[0]["offset"+a.ln],p=h-d,b={},y=(cr[ge+a.ln]-cr["client"+a.ln])*(Ot.n&&o?-1:1),m=function(n){return isNaN(n/y)?0:Oi.max(0,Oi.min(1,n/y))},g=function(n){var t=p*n;return t=isNaN(t)?0:t,t=o&&!Ot.i?h-d-t:t,t=Oi.max(0,t)},w=m(l),x=g(m(v)),_=g(w);u.N=y,u.R=l,u.L=w,ln?(r=o?-(h-d-x):x,e=n?f+r+"px, 0)":f+"0, "+r+"px)",b[c]=e,j&&(b[s]=i&&1<Oi.abs(x-u.W)?function S(n){var t=_i.u("transition"),r=n.css(t);if(r)return r;for(var e,i,o,a="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",u=new RegExp(a),f=new RegExp("^("+a+")+$"),c="property duration timing-function delay".split(" "),s=[],l=0,v=function(n){if(e=[],!n.match(f))return n;for(;n.match(u);)e.push(RegExp.$1),n=n.replace(u,ye);return e};l<c[xi.l];l++)for(i=v(n.css(t+"-"+c[l])),o=0;o<i[xi.l];o++)s[o]=(s[o]?s[o]+xe:ye)+i[o];return s.join(", ")}(a.cn)+", "+(c+xe+250)+"ms":ye)):b[a.P]=x,ht()||(a.cn.css(b),ln&&j&&i&&a.cn.one(Q,function(){Lt||a.cn.css(s,ye)})),u.W=x,u.j=_,u.I=h}function Ze(n,t){var r=t?"removeClass":"addClass",e=n?b:y,i=n?An:Rn;(n?s:l)[r](i),e[r](i)}function ni(n){return{K:n?he:pe,ln:n?"Width":"Height",P:n?le:fe,G:n?"Left":"Top",U:n?pn:bn,J:n?"X":"Y",F:n?"w":"h",vn:n?"l":"t",un:n?s:b,cn:n?l:y,an:n?f:v,sn:n?vn:dn}}function st(n){ir=ir||pt(Wn,!0),n?p&&Rt?si(ir.removeAttr(xi.s),In):mt(ir):p||Kt.append(ir)}function ti(n,t,r){if(!1!==r)if(Rt){var e,i=qt.callbacks[n],o=n;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),cn(i)==bi&&i.call(St,t),d(Pn,function(){cn((e=this).on)==bi&&e.on(o,t)})}else Lt||jn.push({n:n,a:t})}function ri(n,t,r){r=r||[ye,ye,ye,ye],n[(t=t||ye)+fe]=r[0],n[t+ce]=r[1],n[t+se]=r[2],n[t+le]=r[3]}function ei(n,t,r,e){return t=t||ye,n=n||ye,{t:e?0:ii(Kt.css(n+fe+t)),r:r?0:ii(Kt.css(n+ce+t)),b:e?0:ii(Kt.css(n+se+t)),l:r?0:ii(Kt.css(n+le+t))}}function lt(n,t){var r,e,i,o=function(n,t){if(i="",t&&typeof n==mi)for(e=n.split(xe),r=0;r<e[xi.l];r++)i+="|"+e[r]+"$";return i};return new RegExp("(^"+rn+"([-_].+|)$)"+o(Er,n)+o(Ir,t),"g")}function vt(){var n=fr[xi.bCR]();return{x:ln&&1/(Oi.round(n.width)/fr[xi.oW])||1,y:ln&&1/(Oi.round(n.height)/fr[xi.oH])||1}}function dt(n){var t="ownerDocument",r="HTMLElement",e=n&&n[t]&&n[t].parentWindow||vi;return typeof e[r]==pi?n instanceof e[r]:n&&typeof n==pi&&null!==n&&1===n.nodeType&&typeof n.nodeName==mi}function ii(n,t){var r=t?parseFloat(n):parseInt(n,10);return isNaN(r)?0:r}function ht(){return Cr&&zt.x&&zt.y}function oi(){return Nt?er[0]:sr}function ai(r,n){return"<div "+(r?cn(r)==mi?'class="'+r+'"':function(){var n,t=ye;if(Ci.isPlainObject(r))for(n in r)t+=("c"===n?"class":n)+'="'+r[n]+'" ';return t}():ye)+">"+(n||ye)+"</div>"}function pt(n,t){var r=cn(t)==gi,e=!r&&t||Kt;return p&&!e[xi.l]?null:p?e[r?"children":"find"](W+n.replace(/\s/g,W)).eq(0):Ci(ai(n))}function bt(n,t){for(var r,e=t.split(W),i=0;i<e.length;i++){if(!n[xi.hOP](e[i]))return;r=n[e[i]],i<e.length&&cn(r)==pi&&(n=r)}return r}function yt(n){var t=qt.updateOnLoad;t=cn(t)==mi?t.split(xe):t,Si.isA(t)&&!Lt&&d(t,n)}function ui(n,t,r){if(r)return r;if(cn(n)!=pi||cn(t)!=pi)return n!==t;for(var e in n)if("c"!==e){if(!n[xi.hOP](e)||!t[xi.hOP](e))return!0;if(ui(n[e],t[e]))return!0}return!1}function fi(){return Ci.extend.apply(this,[!0].concat([].slice.call(arguments)))}function ci(n,t){return e.addClass.call(n,t)}function si(n,t){return e.removeClass.call(n,t)}function li(n,t,r){return(r?ci:si)(n,t)}function mt(n){return e.remove.call(n)}function gt(n,t){return e.find.call(n,t).eq(0)}}return ki&&ki.fn&&(ki.fn.overlayScrollbars=function(n,t){return ki.isPlainObject(n)?(ki.each(this,function(){w(this,n,t)}),this):w(this,n)}),w});
assets/js/page-post-media.js CHANGED
@@ -508,28 +508,28 @@
508
  $(".dynamic-menu").remove();
509
  $(".active-menu").removeClass("active-menu");
510
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
511
- menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
512
  if(hasChildren) {
513
- menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
514
  } else {
515
- menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
516
  }
517
- menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
518
- "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
519
- "<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
520
  if(hasStars) {
521
- menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
522
  } else {
523
- menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
524
  }
525
- menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
526
- "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
527
 
528
  hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
529
  if (folders_media_options.post_type == "attachment" && hasPosts) {
530
- menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
531
  }
532
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
533
  "</ul></div>";
534
 
535
  $("body").append(menuHtml);
@@ -580,28 +580,28 @@
580
  $(".dynamic-menu").remove();
581
  $(".active-menu").removeClass("active-menu");
582
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
583
- menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
584
  if(hasChildren) {
585
- menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>";
586
  } else {
587
- menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>";
588
  }
589
- menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li>" +
590
- "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li>" +
591
- "<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>";
592
  if(hasStars) {
593
- menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star" : "Add a Star") + "</a></li>";
594
  } else {
595
- menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? "Remove Star (Pro)" : "Add a Star (Pro)") + "</a></li>";
596
  }
597
- menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li>" +
598
- "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>";
599
 
600
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
601
  if (folders_media_options.post_type == "attachment" && hasPosts) {
602
- menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>";
603
  }
604
- menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li>" +
605
  "</ul></div>";
606
  $("body").append(menuHtml);
607
  $(this).parents("li.jstree-node").addClass("active-menu");
@@ -1036,12 +1036,12 @@
1036
  if($(this).hasClass("all-open")) {
1037
  $(this).removeClass("all-open");
1038
  statusType = 0;
1039
- $(this).attr("data-folder-tooltip","Expand");
1040
  $("#js-tree-menu").jstree("close_all");
1041
  } else {
1042
  $(this).addClass("all-open");
1043
  statusType = 1;
1044
- $(this).attr("data-folder-tooltip","Collapse");
1045
  $("#js-tree-menu").jstree("open_all");
1046
  }
1047
  folderIDs = "";
@@ -1296,6 +1296,17 @@
1296
  }
1297
  }
1298
 
 
 
 
 
 
 
 
 
 
 
 
1299
  function setDragAndDropElements() {
1300
  $(".jstree-anchor:not(.ui-droppable)").droppable({
1301
  accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
@@ -1392,8 +1403,8 @@
1392
  helper: function (event, ui) {
1393
  $(".selected-items").remove();
1394
  var selectedItems = $(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;
1395
- selectedItems = (selectedItems == 0 || selectedItems == 1) ? "1 Item" : selectedItems + " Items";
1396
- return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " Selected</span></div>");
1397
  },
1398
  start: function( event, ui){
1399
  $("body").addClass("no-hover-css");
@@ -1548,10 +1559,10 @@
1548
  $(".selected-items").remove();
1549
  selectedItems = $("#the-list th input:checked").length;
1550
  if(selectedItems > 0) {
1551
- selectedItems = (selectedItems == 0 || selectedItems == 1) ? "1 Item" : selectedItems + " Items";
1552
- return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " Selected</span></div>");
1553
  } else {
1554
- return $("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>");
1555
  }
1556
  },
1557
  start: function( event, ui){
@@ -1835,7 +1846,7 @@
1835
  }
1836
 
1837
  function setCustomScrollForFolder() {
1838
- var scrollTop = 0;
1839
  if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
1840
  var $scrollerOuter = jQuery( '#custom-scroll-menu' );
1841
  var $dragger = $scrollerOuter.find( '.mCSB_dragger' );
@@ -1868,9 +1879,30 @@
1868
  });
1869
  if(scrollTop != 0) {
1870
  jQuery("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1871
  }
1872
  }
1873
 
 
 
 
 
1874
  function removeMultipleFolderItems() {
1875
  if($("#menu-checkbox").is(":checked")) {
1876
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
@@ -2009,7 +2041,7 @@
2009
  folders_media_options.terms = foldersArray;
2010
  var selectedDD = $(this);
2011
  currentDDVal = $(this).val();
2012
- selectedDD.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>");
2013
  lastFolderData = foldersArray;
2014
  for (var i = 0; i < foldersArray.length; i++) {
2015
  selectedDD.append("<option value='" + foldersArray[i].term_id + "'>" + foldersArray[i].name + " (" + foldersArray[i].trash_count + ")</option>");
@@ -2055,8 +2087,8 @@
2055
  }
2056
 
2057
  function removeFolderFromID(popup_type) {
2058
- var removeMessage = "Are you sure you want to delete the selected folder?";
2059
- var removeNotice = "Items in the folder will not be deleted.";
2060
  isMultipleRemove = false;
2061
  if(popup_type == 1) {
2062
  if($("#menu-checkbox").is(":checked")) {
@@ -2064,20 +2096,20 @@
2064
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
2065
  $(".folder-popup-form").hide();
2066
  $(".folder-popup-form").removeClass("disabled");
2067
- $("#error-folder-popup-message").html("Please select at least one folder to delete");
2068
  $("#error-folder-popup").show();
2069
  return;
2070
  } else {
2071
  if($("#js-tree-menu input.checkbox:checked").length > 1) {
2072
- removeMessage = "Are you sure you want to delete the selected folders?";
2073
- removeNotice = "Items in the selected folders will not be deleted.";
2074
  }
2075
  }
2076
  }
2077
  }
2078
  $(".folder-popup-form").hide();
2079
  $(".folder-popup-form").removeClass("disabled");
2080
- $("#remove-folder-item").text("Yes, Delete it!");
2081
  $("#remove-folder-message").text(removeMessage);
2082
  $("#remove-folder-notice").text(removeNotice);
2083
  $("#confirm-remove-folder").show();
@@ -2091,7 +2123,7 @@
2091
  parentID = 0;
2092
  }
2093
 
2094
- $("#update-folder-data").text("Submit");
2095
  $(".folder-form-errors").removeClass("active");
2096
  $("#update-folder-item-name").val(folderName);
2097
  $("#update-folder-item").removeClass("disabled");
@@ -2107,8 +2139,8 @@
2107
  return false;
2108
  }
2109
 
2110
- $("#add-update-folder-title").text("Add new folder");
2111
- $("#save-folder-data").text("Submit");
2112
  $(".folder-form-errors").removeClass("active");
2113
  $("#add-update-folder-name").val("");
2114
  if(isDuplicate) {
@@ -2132,15 +2164,15 @@
2132
  var currentStatus = true;
2133
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2134
  $("#expand-collapse-list").removeClass("all-open");
2135
- $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2136
  } else {
2137
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2138
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2139
  $("#expand-collapse-list").removeClass("all-open");
2140
- $("#expand-collapse-list").attr("data-folder-tooltip","Expand");
2141
  } else {
2142
  $("#expand-collapse-list").addClass("all-open");
2143
- $("#expand-collapse-list").attr("data-folder-tooltip","Collapse");
2144
  }
2145
  }
2146
  }, 500);
@@ -2410,4 +2442,4 @@
2410
  });
2411
  }
2412
  });
2413
- }));
508
  $(".dynamic-menu").remove();
509
  $(".active-menu").removeClass("active-menu");
510
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").data("folder-id")+"'><ul>";
511
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>";
512
  if(hasChildren) {
513
+ menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>";
514
  } else {
515
+ menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.PRO.NEW_SUB_FOLDER+"</a></li>";
516
  }
517
+ menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+folders_media_options.lang.RENAME+"</a></li>" +
518
+ "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+folders_media_options.lang.PRO.OPEN_THIS_FOLDER+"</a></li>" +
519
+ "<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+folders_media_options.lang.PRO.STICKY_FOLDER+"</a></li>";
520
  if(hasStars) {
521
+ menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? folders_media_options.lang.REMOVE_STAR : folders_media_options.lang.ADD_STAR) + "</a></li>";
522
  } else {
523
+ menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? folders_media_options.lang.PRO.REMOVE_STAR : folders_media_options.lang.PRO.ADD_STAR) + "</a></li>";
524
  }
525
+ menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span> "+folders_media_options.lang.PRO.LOCK_FOLDER+"</a></li>" +
526
+ "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span> "+folders_media_options.lang.PRO.DUPLICATE_FOLDER+"</a></li>";
527
 
528
  hasPosts = parseInt($(this).closest("li.jstree-node").find("h3.title:first > .total-count").text());
529
  if (folders_media_options.post_type == "attachment" && hasPosts) {
530
+ menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+folders_media_options.lang.PRO.DOWNLOAD_ZIP+"</a></li>";
531
  }
532
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+folders_media_options.lang.DELETE+"</a></li>" +
533
  "</ul></div>";
534
 
535
  $("body").append(menuHtml);
580
  $(".dynamic-menu").remove();
581
  $(".active-menu").removeClass("active-menu");
582
  menuHtml = "<div class='dynamic-menu' data-id='"+$(this).closest("li").prop("id")+"'><ul>";
583
+ menuHtml += "<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>";
584
  if(hasChildren) {
585
+ menuHtml += "<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>";
586
  } else {
587
+ menuHtml += "<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.PRO.NEW_SUB_FOLDER+"</a></li>";
588
  }
589
+ menuHtml += "<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+folders_media_options.lang.RENAME+"</a></li>" +
590
+ "<li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+folders_media_options.lang.PRO.OPEN_THIS_FOLDER+"</a></li>" +
591
+ "<li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+folders_media_options.lang.PRO.STICKY_FOLDER+"</a></li>";
592
  if(hasStars) {
593
+ menuHtml += "<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? folders_media_options.lang.REMOVE_STAR : folders_media_options.lang.ADD_STAR) + "</a></li>";
594
  } else {
595
+ menuHtml += "<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>" + ((isHigh) ? folders_media_options.lang.PRO.REMOVE_STAR : folders_media_options.lang.PRO.ADD_STAR) + "</a></li>";
596
  }
597
+ menuHtml += "<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+folders_media_options.lang.PRO.LOCK_FOLDER+"</a></li>" +
598
+ "<li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+folders_media_options.lang.PRO.DUPLICATE_FOLDER+"</a></li>";
599
 
600
  hasPosts = parseInt($(this).closest("a.jstree-anchor").find(".premio-folder-count").text());
601
  if (folders_media_options.post_type == "attachment" && hasPosts) {
602
+ menuHtml += "<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+folders_media_options.lang.PRO.DOWNLOAD_ZIP+"</a></li>";
603
  }
604
+ menuHtml += "<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+folders_media_options.lang.DELETE+"</a></li>" +
605
  "</ul></div>";
606
  $("body").append(menuHtml);
607
  $(this).parents("li.jstree-node").addClass("active-menu");
1036
  if($(this).hasClass("all-open")) {
1037
  $(this).removeClass("all-open");
1038
  statusType = 0;
1039
+ $(this).attr("data-folder-tooltip",folders_media_options.lang.EXPAND);
1040
  $("#js-tree-menu").jstree("close_all");
1041
  } else {
1042
  $(this).addClass("all-open");
1043
  statusType = 1;
1044
+ $(this).attr("data-folder-tooltip",folders_media_options.lang.COLLAPSE);
1045
  $("#js-tree-menu").jstree("open_all");
1046
  }
1047
  folderIDs = "";
1296
  }
1297
  }
1298
 
1299
+ function getFolderIDFromSlug(folderSlug) {
1300
+ if(folderPropertyArray.length > 0) {
1301
+ for(i=0; i<folderPropertyArray.length; i++) {
1302
+ if(folderPropertyArray[i]['slug'] == folderSlug) {
1303
+ return folderPropertyArray[i]['folder_id'];
1304
+ }
1305
+ }
1306
+ }
1307
+ return "";
1308
+ }
1309
+
1310
  function setDragAndDropElements() {
1311
  $(".jstree-anchor:not(.ui-droppable)").droppable({
1312
  accept: ".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",
1403
  helper: function (event, ui) {
1404
  $(".selected-items").remove();
1405
  var selectedItems = $(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;
1406
+ selectedItems = (selectedItems == 0 || selectedItems == 1) ? folders_media_options.lang.ONE_ITEM : (selectedItems + " "+ folders_media_options.lang.ITEMS);
1407
+ return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " "+folders_media_options.lang.SELECTED+"</span></div>");
1408
  },
1409
  start: function( event, ui){
1410
  $("body").addClass("no-hover-css");
1559
  $(".selected-items").remove();
1560
  selectedItems = $("#the-list th input:checked").length;
1561
  if(selectedItems > 0) {
1562
+ selectedItems = (selectedItems == 0 || selectedItems == 1) ? folders_media_options.lang.ONE_ITEM : (selectedItems + " "+folders_media_options.lang.ITEMS);
1563
+ return $("<div class='selected-items'><span class='total-post-count'>" + selectedItems + " "+folders_media_options.lang.SELECTED+"</span></div>");
1564
  } else {
1565
+ return $("<div class='selected-items'><span class='total-post-count'>"+folders_media_options.lang.SELECT_ITEMS+"</span></div>");
1566
  }
1567
  },
1568
  start: function( event, ui){
1846
  }
1847
 
1848
  function setCustomScrollForFolder() {
1849
+ /*var scrollTop = 0;
1850
  if($("#custom-scroll-menu").hasClass("mCustomScrollbar")) {
1851
  var $scrollerOuter = jQuery( '#custom-scroll-menu' );
1852
  var $dragger = $scrollerOuter.find( '.mCSB_dragger' );
1879
  });
1880
  if(scrollTop != 0) {
1881
  jQuery("#custom-scroll-menu").mCustomScrollbar("scrollTo", scrollTop+"px",{scrollInertia:0});
1882
+ }*/
1883
+ var contentHeight = $(window).height() - $("#wpadminbar").height() - $(".sticky-wcp-custom-form").height() - 40;
1884
+ $("#custom-scroll-menu").height(contentHeight);
1885
+ $("#custom-scroll-menu").overlayScrollbars({
1886
+ resize : 'none',
1887
+ sizeAutoCapable :true,
1888
+ autoUpdateInterval : 33,
1889
+ x :'scroll',
1890
+ clipAlways :false,
1891
+ y :'scroll'
1892
+ });
1893
+
1894
+ if($(".custom-scroll-menu").hasClass("hor-scroll")) {
1895
+ jQuery("#custom-scroll-menu .os-viewport").on("scroll", function () {
1896
+ setActionPosition();
1897
+ });
1898
+ setActionPosition();
1899
  }
1900
  }
1901
 
1902
+ function setActionPosition() {
1903
+ jQuery("#js-tree-menu span.folder-actions").css("right", (jQuery("#custom-scroll-menu .horizontal-scroll-menu").width() - jQuery("#custom-scroll-menu .os-viewport").width() - $("#custom-scroll-menu .os-viewport").scrollLeft() - 10));
1904
+ }
1905
+
1906
  function removeMultipleFolderItems() {
1907
  if($("#menu-checkbox").is(":checked")) {
1908
  if($("#js-tree-menu input.checkbox:checked").length > 0) {
2041
  folders_media_options.terms = foldersArray;
2042
  var selectedDD = $(this);
2043
  currentDDVal = $(this).val();
2044
+ selectedDD.html("<option value='all'>"+folders_media_options.lang.SELECT_FOLDER+"</option><option value='unassigned'>"+folders_media_options.lang.UNASSIGNED+"</option>");
2045
  lastFolderData = foldersArray;
2046
  for (var i = 0; i < foldersArray.length; i++) {
2047
  selectedDD.append("<option value='" + foldersArray[i].term_id + "'>" + foldersArray[i].name + " (" + foldersArray[i].trash_count + ")</option>");
2087
  }
2088
 
2089
  function removeFolderFromID(popup_type) {
2090
+ var removeMessage = folders_media_options.lang.DELETE_FOLDER_MESSAGE;
2091
+ var removeNotice = folders_media_options.lang.ITEM_NOT_DELETED;
2092
  isMultipleRemove = false;
2093
  if(popup_type == 1) {
2094
  if($("#menu-checkbox").is(":checked")) {
2096
  if($("#js-tree-menu input.checkbox:checked").length == 0) {
2097
  $(".folder-popup-form").hide();
2098
  $(".folder-popup-form").removeClass("disabled");
2099
+ $("#error-folder-popup-message").html(folders_media_options.lang.SELECT_AT_LEAST_ONE_FOLDER);
2100
  $("#error-folder-popup").show();
2101
  return;
2102
  } else {
2103
  if($("#js-tree-menu input.checkbox:checked").length > 1) {
2104
+ removeMessage = folders_media_options.lang.DELETE_FOLDERS_MESSAGE;
2105
+ removeNotice = folders_media_options.lang.ITEMS_NOT_DELETED;
2106
  }
2107
  }
2108
  }
2109
  }
2110
  $(".folder-popup-form").hide();
2111
  $(".folder-popup-form").removeClass("disabled");
2112
+ $("#remove-folder-item").text(folders_media_options.lang.YES_DELETE_IT);
2113
  $("#remove-folder-message").text(removeMessage);
2114
  $("#remove-folder-notice").text(removeNotice);
2115
  $("#confirm-remove-folder").show();
2123
  parentID = 0;
2124
  }
2125
 
2126
+ $("#update-folder-data").text(folders_media_options.lang.SUBMIT);
2127
  $(".folder-form-errors").removeClass("active");
2128
  $("#update-folder-item-name").val(folderName);
2129
  $("#update-folder-item").removeClass("disabled");
2139
  return false;
2140
  }
2141
 
2142
+ $("#add-update-folder-title").text(folders_media_options.lang.ADD_NEW_FOLDER);
2143
+ $("#save-folder-data").text(folders_media_options.lang.SUBMIT);
2144
  $(".folder-form-errors").removeClass("active");
2145
  $("#add-update-folder-name").val("");
2146
  if(isDuplicate) {
2164
  var currentStatus = true;
2165
  if($("#js-tree-menu .jstree-node.jstree-leaf").length == $("#js-tree-menu .jstree-node").length) {
2166
  $("#expand-collapse-list").removeClass("all-open");
2167
+ $("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.EXPAND);
2168
  } else {
2169
  var totalChild = $("#js-tree-menu .jstree-node.jstree-closed").length + $("#js-tree-menu .jstree-node.jstree-open").length;
2170
  if($("#js-tree-menu .jstree-node.jstree-closed").length == totalChild) {
2171
  $("#expand-collapse-list").removeClass("all-open");
2172
+ $("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.EXPAND);
2173
  } else {
2174
  $("#expand-collapse-list").addClass("all-open");
2175
+ $("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.COLLAPSE);
2176
  }
2177
  }
2178
  }, 500);
2442
  });
2443
  }
2444
  });
2445
+ }));
assets/js/page-post-media.min.js CHANGED
@@ -1 +1 @@
1
- !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){function o(){"yes"==folders_media_options.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(folders_media_options.defaultTimeout)))}function s(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),(e("#menu-checkbox").is(":checked")||e("#menu-checkbox").is(":checked"))&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function a(){e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,s){if(H=e(this).closest("li.jstree-node").attr("id"),e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").length){var a=e(this).closest("ul.jstree-container-ul").find(".jstree-clicked");M=a.closest("li.jstree-node").attr("id")}s.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),U=n(H,"nonce"),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(o(),p()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):s.draggable.hasClass("wcp-move-file")?(postID=s.draggable[0].attributes["data-id"].nodeValue,U=n(H,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(o(),p()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):s.draggable.hasClass("attachment")&&(chkStr=s.draggable[0].attributes["data-id"].nodeValue,U=n(H,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),V=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(e){o(),p(),C()}}))}}),e(".media-frame:not(.hide-router) .attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){e(".selected-items").remove();var s=e(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;return s=0==s||1==s?"1 Item":s+" Items",e("<div class='selected-items'><span class='total-post-count'>"+s+" Selected</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",appendTo:".media-modal",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".un-categorised-items").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,o){H=-1,U=folders_media_options.nonce,o.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),d(chkStr)):o.draggable.hasClass("wcp-move-file")?(postID=o.draggable[0].attributes["data-id"].nodeValue,chkStr=postID+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),d(chkStr)):o.draggable.hasClass("attachment")&&(chkStr=o.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),V=chkStr,d(chkStr))}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,s){if(e("body").removeClass("no-hover-css"),H=e(this).data("id"),e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").length){var a=e(this).closest("ul.jstree-container-ul").find(".jstree-clicked");M=a.closest("li.jstree-node").attr("id")}s.draggable.hasClass("wcp-move-multiple")?(U=n(H,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(e){o(),p(),C()}}))):s.draggable.hasClass("wcp-move-file")?(postID=s.draggable[0].attributes["data-id"].nodeValue,U=n(H,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(e){o(),p(),C()}})):s.draggable.hasClass("attachment")&&(chkStr=s.draggable[0].attributes["data-id"].nodeValue,U=n(H,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+H+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(e){o(),p(),C()}}))}}),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,o){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,o){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,o){return e(".selected-items").remove(),selectedItems=e("#the-list th input:checked").length,selectedItems>0?(selectedItems=0==selectedItems||1==selectedItems?"1 Item":selectedItems+" Items",e("<div class='selected-items'><span class='total-post-count'>"+selectedItems+" Selected</span></div>")):e("<div class='selected-items'><span class='total-post-count'>Select Items to move</span></div>")},start:function(t,o){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,o){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}})}function r(){e(D).jstree({core:{cache:!1,animation:0,max_depth:S?"-1":1,check_callback:function(t,o,s,a,r){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&r&&r.dnd)switch(r.pos){case"a":r.origin.get_node(r.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!S&&e("#do_not_show_again").is(":checked"))return!1;r.origin.get_node(r.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":r.origin.get_node(r.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){if(l(),a(),""!=folders_media_options.default_folder&&0!=folders_media_options.default_folder){var t=getFolderIDFromSlug(folders_media_options.default_folder);""!=t&&e(".folder-modal #media-attachment-taxonomy-filter option[value='"+t+"']").length&&(e(".folder-modal #media-attachment-taxonomy-filter").val(t).trigger("change"),e(".folder-modal #js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e(".folder-modal #js-tree-menu").jstree("select_node",t),e(".folder-modal #js-tree-menu .jstree-node[id='"+t+"'] > a").addClass("jstree-clicked"))}}).bind("after_open.jstree",function(){a()}).bind("open_all.jstree",function(){a()}).bind("create_node.jstree",function(){a()}).bind("delete_node.jstree",function(){a()}).bind("close_all.jstree",function(){a()}).bind("after_close.jstree",function(){a()}).bind("move_node.jstree",function(t,o){if(!S){var s=o.old_position,r=o.parent;if("#"!=r)return e("#js-tree-menu").jstree("move_node","#"+o.node.id,"#",s),e("#sub-drag-folder-popup").show(),!1}"#"!=o.node.parent&&jQuery("#js-tree-menu").jstree("open_node",o.node.parent),folderMoveId=o.node.id,orderString="",e(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),e(".folder-modal #"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?parentID=e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):parentID=0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+folders_media_options.post_type+"&nonce="+folders_media_options.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){t=e.parseJSON(t),"1"==t.status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),p(),C(),g(),a()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),a()}function d(t){var s=-1;e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").length?(M=e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id"),e.ajax({url:folders_media_options.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:M,type:folders_media_options.post_type,folder_id:s,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:M},method:"post",success:function(t){t=e.parseJSON(t),-1==t.status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(p(),o())}})):(U=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"post_id="+t+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id="+s+"&nonce="+U+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+M,method:"post",success:function(e){p(),o()}}))}function l(){e("#js-tree-menu .jstree-node").each(function(){var t=e(this).data("count")&&""!=e(this).data("count")?e(this).data("count"):0;e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=M&&0!=M&&e(".jstree-node[id='"+M+"']").length&&(e("#js-tree-menu").jstree("select_node",M),e(".sticky-folders .sticky-folder-"+M+" a").length&&e(".sticky-folders .sticky-folder-"+M+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),u(),m(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active")}function n(e,t){if(F.length>0)for(i=0;i<F.length;i++)if(parseInt(F[i].folder_id)==parseInt(e))return F[i][t];return""}function c(e){if(F.length>0)for(i=0;i<F.length;i++)if(parseInt(F[i].folder_id)==parseInt(e))return i;return null}function m(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var o=e(this).attr("id"),s=e.trim(e("#js-tree-menu").jstree(!0).get_node(o).text),a=e("li.jstree-node[id='"+o+"'] > a span.premio-folder-count").text(),r=e("li.jstree-node[id='"+o+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+o+"' class='sticky-fldr "+r+" sticky-folder-"+o+"'><a href='javascript:;'><span class='folder-title'>"+s+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+a+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var o=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+o+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active")}function u(){var t=0;if(e("#custom-scroll-menu").hasClass("mCustomScrollbar")){var o=jQuery("#custom-scroll-menu"),s=o.find(".mCSB_dragger"),a=o.find(".mCSB_container").height(),r=s.position().top;t=r/(o.height()-s.height())*(a-o.height()),e("#custom-scroll-menu").mCustomScrollbar("destroy")}var d=jQuery(".folder-modal .media-modal-content").height()-e(".folder-modal .sticky-wcp-custom-form").height()-40;e(".folder-modal #custom-scroll-menu").closest(".media-frame-menu").length&&jQuery(".folder-custom-menu").length&&jQuery(".media-frame-menu").length&&(d=jQuery(".folder-modal .media-modal-content").height()-e(".folder-modal .sticky-wcp-custom-form").height()-jQuery(".folder-custom-menu").offset().top+jQuery(".media-frame-menu").offset().top-40),0>d&&(d=350),e("#custom-scroll-menu").mCustomScrollbar({axis:"y",scrollButtons:{enable:!0},setHeight:d,theme:"3d",scrollbarPosition:"inside",scrollInertia:500,mouseWheelPixels:60}),0!=t&&jQuery("#custom-scroll-menu").mCustomScrollbar("scrollTo",t+"px",{scrollInertia:0})}function f(){if(e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var t="",o=!1;e("#js-tree-menu input.checkbox:checked").each(function(){t+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&(o=!0)}),e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_muliple_folder&term_id="+t+"&nonce="+folders_media_options.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(Q=parseInt(t.is_key_active),T=parseInt(t.folders),e("#current-folder").text(T),i=0;i<t.term_ids.length;i++)e(".folder-modal #js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),C(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),p(),m(),C(),e(".folder-modal #wcp_folder_"+M).length||(e(".header-posts a").trigger("click"),M=0)}else window.location.reload();e("#menu-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}function p(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=V&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==M)){if(e("#media-attachment-taxonomy-filter").length){V=V.split(",");for(var t=0;t<V.length;t++)""!=V[t]&&e(".attachments-browser li[data-id='"+V[t]+"']").remove()}V=""}e("#media-attachment-taxonomy-filter").length?b(0):(e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),K=t.taxonomies,g(),a()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(J+" #posts-filter",function(){var t={Title:"",Url:J};history.pushState(t,t.Title,t.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),triggerInlineUpdate()}):e("#wpbody").load(J+" #wpbody-content",!1,function(t){var o={Title:"",Url:J};history.pushState(o,o.Title,o.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>')}))}function h(){e("#media-attachment-taxonomy-filter").val();ne=e.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",beforeSend:function(){null!=ne&&ne.abort()},success:function(t){var t=e.parseJSON(t);K=t.taxonomies,g(),a()}})}function g(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=K;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>All Folders</option><option value='unassigned'>(Unassigned)</option>"),te=K;for(var o=0;o<K.length;o++)t.append("<option value='"+K[o].term_id+"'>"+K[o].name+" ("+K[o].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var o=0;o<K.length;o++)e("select.folder_for_media option:last-child").before("<option value='"+K[o].term_id+"'>"+K[o].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),o=0;o<K.length;o++)e(".jstree-node[id='"+K[o].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(K[o].trash_count),e(".sticky-folder-"+K[o].term_id+" .premio-folder-count").text(K[o].trash_count);e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=M&&e("#wcp_folder_"+M).addClass("active-item"),Y&&(e("#title_"+A).trigger("click"),Y=!1)}function v(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function j(t){var o="Are you sure you want to delete the selected folder?",s="Items in the folder will not be deleted.";if(z=!1,1==t&&e("#menu-checkbox").is(":checked")){if(z=!0,0==e("#js-tree-menu input.checkbox:checked").length)return e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html("Please select at least one folder to delete"),void e("#error-folder-popup").show();e("#js-tree-menu input.checkbox:checked").length>1&&(o="Are you sure you want to delete the selected folders?",s="Items in the selected folders will not be deleted.")}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text("Yes, Delete it!"),e("#remove-folder-message").text(o),e("#remove-folder-notice").text(s),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function y(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(A).text),parentID=e("#wcp_folder_"+A).closest("li.jstree-node").data("folder-id"),parentID==t&&(parentID=0),e("#update-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function k(){return 0==Q&&T>=10?(e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1):(e("#add-update-folder-title").text("Add new folder"),e("#save-folder-data").text("Submit"),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),B&&(q=A,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(A).text)+" #2"),A=e("#"+A+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+A+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),void e(".dynamic-menu").remove())}function w(){setTimeout(function(){if(e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand");else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Expand")):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip","Collapse"))}},500),a()}function b(o){ne=e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_get_default_list&active_id="+M,method:"post",beforeSend:function(){null!=ne&&ne.abort()},success:function(s){if(s=e.parseJSON(s),e(".header-posts .total-count").text(s.total_items),e(".un-categorised-items .total-count").text(s.empty_items),selectedVal=e("#media-attachment-taxonomy-filter").val(),"all"!=selectedVal&&1==o){var r=parent.wp;r.media!=t&&(r.media.frame.setState("insert"),null!==r.media.frame.content.get()&&"undefined"!=typeof r.media.frame.content.get().collection?(r.media.frame.content.get().collection.props.set({ignore:+new Date}),r.media.frame.content.get().options.selection.reset()):r.media.frame.library.props.set({ignore:+new Date}))}K=s.taxonomies,g(),a()}})}function x(t){e.ajax({url:folders_media_options.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+folders_media_options.post_type+"&post_id="+t+"&nonce="+folders_media_options.nonce,cache:!1,async:!1,success:function(){}})}function C(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3),a()}var I,S,P=[],D=".folder-modal #js-tree-menu",F=[],N=-1,H=0,A=0,O="",T=-1,Q=0,U="",J=folders_media_options.page_url,M="",V="",z=!1,Y=!1,B=!1,E=!1,q=0,R="",X=0,K=[],L=null,Z=null,W=wp.media.view.AttachmentFilters.extend({id:"media-attachment-taxonomy-filter",createFilters:function(){var e={};folders_media_options.terms.length;_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.trash_count+")",props:{media_folder:t.slug}}}),e.all={text:"All Folders",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e},change:function(){var e={};_.each(folders_media_options.terms||{},function(t,o){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"Select a folder >>",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e;var t=this.filters[this.el.value];t&&this.model.set(t.props)}}),G="all",$=0,ee=0,te=[],oe=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){oe.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new W({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var se=wp.media.model.Query;_.extend(se,{get:function(){var e=[];return function(t,o){var s,a={},r=se.orderby,d=se.defaultProps,l=!1;return delete t.query,delete t.cache,_.defaults(t,d),_.each(["include","exclude"],function(e){t[e]&&!_.isArray(t[e])&&(t[e]=[t[e]])}),_.each(t,function(e,t){_.isNull(e)||(a[se.propmap[t]||t]=e)}),_.defaults(a,se.defaultArgs),a.orderby=r.valuemap[t.orderby]||t.orderby,l=!1,l?s=_.find(e,function(e){return _.isEqual(e.args,a)}):e=[],s||(s=new se([],_.extend(o||{},{props:t,args:a})),e.push(s)),s}}()});var ae=window.wp;"undefined"!=typeof ae&&"function"==typeof ae.Uploader&&(ae.media.view.Modal.prototype.on("open",function(){P=[],setTimeout(function(){e("#media-attachment-taxonomy-filter").length&&("all"==e("#media-attachment-taxonomy-filter").val()&&(e("#media-attachment-taxonomy-filter option:gt(1)").remove(),_.each(folders_media_options.terms,function(t,o){e("#media-attachment-taxonomy-filter").append("<option value='"+t.term_id+"'>"+t.name+" ("+t.trash_count+")</option>")})),e("#wcp-content").length||e(".editor-post-featured-image").length&&e(".attachment-filters").val(G).trigger("change"))},100)}),ae.media.view.Modal.prototype.on("close",function(){P=[]}),e.extend(ae.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(t,o){$++,e(".folder-meter").css("width","0%"),e(".media-folder-loader").show(),e("#total_upload_files").text($)}),this.uploader.bind("BeforeUpload",function(t,o){var s=N,a=t.settings.multipart_params;if(s=parseInt(s),s>0&&(a.folder_for_media=s),$>ee){e(".media-folder-loader").show();var r=ee/$*100;e(".folder-meter").css("width",r+"%")}ee++,e("#current_upload_files").text(ee)}),this.uploader.bind("UploadComplete",function(e,t){N=-1}),this.uploader.bind("UploadComplete",function(t,o){var s=window.wp;e(".folder-meter").css("width","100%"),setTimeout(function(){e(".media-folder-loader").hide(),e(".folder-meter").css("width","0%"),$=0,ee=0},1250),h(),"undefined"!=typeof s.media.frame&&null!==s.media.frame.content.get()&&"undefined"!=typeof s.media.frame.content.get().collection&&(P=[],e(".folder-modal ul.attachments li.selected").length&&e(".folder-modal ul.attachments li.selected").each(function(){P.push(e(this).data("id"))}),s.media.frame.content.get().collection.props.set({ignore:+new Date}),s.media.frame.content.get().options.selection.reset())}))}}));var re=window.wp;if("undefined"!=typeof re&&"function"==typeof re.Uploader){var de=window.wp.media,le=de.view.Modal;de.view.Modal=de.view.Modal.extend({className:"folder-modal",initialize:function(){le.prototype.initialize.apply(this,arguments)},open:function(){le.prototype.open.apply(this,arguments)&&(e(".folder-modal").length||e(".supports-drag-drop").length&&e(".supports-drag-drop").each(function(){("block"==e(this).css("display")||"inline-block"==e(this).css("display"))&&e(this).addClass("folder-modal")}),e(".folder-modal").length?(e(".folder-custom-menu").remove(),e(".folder-modal .media-frame-tab-panel").removeClass("has-folder-menu"),e(".folder-modal .media-frame").hasClass("hide-menu")?e(".folder-custom-menu").length||(e(".folder-modal .media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){w(),u(),r()})):e(".folder-custom-menu").length||(e(".folder-modal .media-frame-menu").addClass("has-folder-menu"),e(".folder-modal .media-frame-menu .media-menu").append("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){w(),u(),r()})),e(".folder-form-data").remove(),e(".media-frame-tab-panel:first").before("<div class='folder-form-data'></div>"),e(".folder-form-data").load(folders_media_options.media_page_url+" #folder-add-update-content",function(){})):setTimeout(function(){-1!=N&&e("#media-attachment-taxonomy-filter").each(function(){e(this).val(N),e(this).trigger("change")})},1e3))},close:function(){le.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}e(document).ready(function(){function d(t){return e(".jstree-node[id='"+t+"']").next().length?e(".jstree-node[id='"+t+"']").next().attr("id"):e(".jstree-node[id='"+t+"']").prev().length?e(".jstree-node[id='"+t+"']").prev().attr("id"):e(".jstree-node[id='"+t+"']").parent().parent().hasClass("jstree-node")?e(".jstree-node[id='"+t+"']").parent().parent().attr("id"):0}e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),e(document).on("click","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:folders_media_options.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:M,type:folders_media_options.post_type,folder_id:-1,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:M,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),C(),p(),o()}})}),I=parseInt(folders_media_options.hasStars),S=parseInt(folders_media_options.hasChildren),e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),!1}),e(document).ajaxComplete(function(e,o,s){if(s.data!=t&&""!=s.data&&"string"==typeof s.data&&-1!=s.data.indexOf("action=query-attachments")&&a(),P.length>0)for(var r=0;r<P.length;r++)if(jQuery(".folder-modal ul.attachments li[data-id='"+P[r]+"']").length&&!jQuery(".folder-modal ul.attachments li[data-id='"+P[r]+"']").hasClass("selected")){var d=jQuery.Event("click");d.ctrlKey=!0,jQuery(".folder-modal ul.attachments li[data-id='"+P[r]+"']").trigger(d)}}),K=folders_media_options.terms,Q=parseInt(folders_media_options.is_key_active),T=parseInt(folders_media_options.folders),F=folders_media_options.folder_settings,e(document).on("click",".header-posts a.all-posts",function(t){A=0,M="",N="all",e(".active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change"),s()}),e(document).on("click",".un-categorised-items",function(t){A=0,M="",N="unassigned",e(".active-item").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change"),s()}),e(document).on("click","a.jstree-anchor",function(t){var o=e(this).closest("li.jstree-node").attr("id");A=o,N=A,e(this).closest(".folder-modal").find(".active-item").removeClass("active-item"),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").val(o),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").trigger("change"),thisSlug=n(o,"slug"),x(thisSlug),e(".custom-media-select").removeClass("active"),e(".folder-modal #js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e(".folder-modal #js-tree-menu").jstree("select_node",M),e(".folder-modal #js-tree-menu #"+N+"_anchor").addClass("jstree-clicked"),s()}),e(document).on("change",".folder_for_media",function(){"add-folder"!=e(this).val()&&null!=e(this).val()?N=e(this).val():"add-folder"==e(this).val()&&(N=-1)}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+A+"']").length?e(".folder-modal .jstree-node[id='"+A+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".update-inline-record",function(o){if(o.stopImmediatePropagation(),o.stopPropagation(),0!=folders_media_options.can_manage_folder){isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",S?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":menuHtml+="<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",I?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml);var s;o.pageX==t||o.pageY==t?(e(".dynamic-menu").css("left",L),e(".dynamic-menu").css("top",Z-10),s=Z):(e(".dynamic-menu").css("left",o.pageX),e(".dynamic-menu").css("top",o.pageY),s=o.pageY),s+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(s+e(".dynamic-menu").height()))}}),e(document).on("click","body, html",function(t){e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e(".folder-order").removeClass("active")}),e(document).on("click",".dynamic-menu, .folder-order",function(e){e.stopPropagation()}),e(document).on("contextmenu",".jstree-anchor",function(t){return L=t.pageX,Z=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(o){if(o.stopImmediatePropagation(),o.stopPropagation(),0!=folders_media_options.can_manage_folder){isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky"),isStickyClass=isSticky?!0:!1,e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>",S?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Folder</a></li>":menuHtml+="<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>New Sub-folder (Pro)</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>Rename</a></li><li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>Open this folder by default (Pro)</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>Sticky Folder (Pro)</a></li>",I?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star":"Add a Star")+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?"Remove Star (Pro)":"Add a Star (Pro)")+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>Lock Folder (Pro)</a></li><li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>Duplicate folder (Pro)</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>Download Zip (Pro)</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>Delete</a></li></ul></div>",e("body").append(menuHtml),e(this).parents("li.jstree-node").addClass("active-menu");var s;o.pageX==t||o.pageY==t?(e(".dynamic-menu").css("left",L),e(".dynamic-menu").css("top",Z-10),s=Z):(e(".dynamic-menu").css("left",o.pageX),e(".dynamic-menu").css("top",o.pageY),s=o.pageY),s+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(s+e(".dynamic-menu").height()))}}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".new-folder",function(t){t.stopPropagation(),A=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),Y=!1,B=!1,k()}),e(document).on("click",".new-main-folder",function(){E=1,A=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),Y=!1,B=!1,k()}),e(document).on("click","#add-new-folder",function(t){e("#js-tree-menu a.jstree-clicked").length?(A=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),S||e("#pro-notice").removeClass("hide-it")):(A=0,e("#pro-notice").addClass("hide-it")),Y=!1,k()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),O=e("#add-update-folder-name").val(),""==e.trim(O))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var o=A;Y&&(o=0),S||(o=0);var s="";0==o?(X=e("#js-tree-menu > ul > li.jstree-node").length,E&&(X=jQuery("#js-tree-menu > ul > li[id='"+A+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){s+=jQuery(this).attr("id")+",",e==X&&(s+="#,")}),X+=1)):X=e("#js-tree-menu > ul > li.jstree-node[id='"+o+"'] > ul.jstree-children > li").length+1,e.ajax({url:folders_media_options.ajax_url,data:{parent_id:o,type:folders_media_options.post_type,action:"wcp_add_new_folder",nonce:folders_media_options.nonce,term_id:o,order:X,name:O,is_duplicate:B,duplicate_from:q,parent_ids:s,parent_menu:E},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(Q=parseInt(result.is_key_active),T=parseInt(result.folders),e("#current-folder").text(T),e("#ttl-fldr").text(10),w(),result.data.length)for(var o=0;o<result.data.length;o++){var s={folder_id:result.data[o].term_id,folder_count:0,is_sticky:result.data[o].is_sticky,is_high:result.data[o].is_high,nonce:result.data[o].nonce,slug:result.data[o].slug,is_deleted:0};F.push(s),F.push(s),E?e("#js-tree-menu").jstree().create_node("#",{id:result.data[o].term_id,text:" "+result.data[o].title},X,function(){e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-nonce",result.data[o].nonce),e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-slug",result.data[o].slug),e(".jstree-node[id='"+result.data[o].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}):e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[o].term_id,text:" "+result.data[o].title},"last",function(){e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-nonce",result.data[o].nonce),e(".jstree-node[id='"+result.data[o].term_id+"']").attr("data-slug",result.data[o].slug),e(".jstree-node[id='"+result.data[o].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}),E=0,e(".jstree-node[id='"+result.data[o].term_id+"']").length&&e(".jstree-node[id='"+result.data[o].term_id+"'] > a.jstree-anchor").trigger("focus")}C(),m(),A=result.term_id,b(0),B=!1,q=0}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+A+"']").length?e(".folder-modal .jstree-node[id='"+A+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+A+"']").length?e(".folder-modal .jstree-node[id='"+A+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),document.onkeydown=function(t){t=t||window.event;var o=!1;o="key"in t?"Escape"===t.key||"Esc"===t.key:27===t.keyCode,o&&e(".folder-popup-form").hide()},e(document).on("click",".rename-folder",function(t){t.stopPropagation(),A=e(this).closest(".dynamic-menu").data("id"),y(),e(".dynamic-menu").remove()}),e(document).on("click","#inline-update",function(t){e("#js-tree-menu a.jstree-clicked").length&&(A=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),y())}),e(document).on("submit","#update-folder-form",function(o){return o.stopPropagation(),o.preventDefault(),O=e("#update-folder-item-name").val(),""==e.trim(O)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),U=n(A,"nonce"),parentID=e(".jstree-node[id='"+A+"']").closest("li.jstree-node").attr("id"),parentID==t&&(parentID=0),e.ajax({url:folders_media_options.ajax_url,data:{parent_id:parentID,type:folders_media_options.post_type,action:"wcp_update_folder",nonce:U,term_id:A,order:X,name:O},method:"post",success:function(t){result=e.parseJSON(t),"1"==result.status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),folderPostId=c(result.id),null!=folderPostId&&(F[folderPostId].nonce=result.nonce,F[folderPostId].slug=result.slug),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),C(),e("#media-attachment-taxonomy-filter").length&&b(0),e(".folder-modal .jstree-node[id='"+result.id+"']").length?e(".folder-modal .jstree-node[id='"+result.id+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1}),e(document).on("click",".mark-folder",function(t){t.stopPropagation(),H=e(this).closest(".dynamic-menu").data("id"),U=n(H,"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:folders_media_options.ajax_url,data:"term_id="+H+"&type="+folders_media_options.post_type+"&action=wcp_mark_un_mark_folder&nonce="+U,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=c(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(F[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(F[folderPostId].is_high=0)),e(".folder-modal .jstree-node[id='"+t.id+"']").length?e(".folder-modal .jstree-node[id='"+t.id+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus"),C()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),A=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),Y=!1,B=!0,k()}),e(document).on("click",".remove-folder",function(){H=e(this).closest(".dynamic-menu").data("id"),A=e(this).closest(".dynamic-menu").data("id"),j(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),U=n(A,"nonce"),z?f():e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_folder&term_id="+A+"&nonce="+U,method:"post",success:function(t){if(t=e.parseJSON(t),"1"==t.status){var o=d(A);e("#js-tree-menu").jstree().delete_node(A),Q=parseInt(t.is_key_active),T=parseInt(t.folders),e("#current-folder").text(T),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+A).remove(),C(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),p(),m(),M==A&&e(".header-posts").trigger("click"),0!=o&&e("#"+o+"_anchor").length?e("#"+o+"_anchor").trigger("click"):e(".header-posts").trigger("click")}else e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show()}})}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click","#expand-collapse-list",function(t){t.stopPropagation();var o=0;e(this).hasClass("all-open")?(e(this).removeClass("all-open"),o=0,e(this).attr("data-folder-tooltip","Expand"),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),o=1,e(this).attr("data-folder-tooltip","Collapse"),e("#js-tree-menu").jstree("open_all")),V="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){V+=e(this).attr("id")+","}),""!=V&&(e(".form-loader-count").css("width","100%"),U=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_change_all_status&status="+o+"&folders="+V+"&nonce="+U,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0),e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus"))}}))}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),R=e(this).attr("data-sort"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_folders_by_order&nonce="+folders_media_options.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){t=e.parseJSON(t),1==t.status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),K=t.terms,g(),r()),e(".form-loader-count").css("width","0")}})}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").hasClass("jstree")&&e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),e(document).on("click",".jstree-node .jstree-icon",function(){H=e(this).closest("li.jstree-node").attr("id"),e("li.jstree-node[id='"+H+"']").hasClass("jstree-open")?folderStatus=1:folderStatus=0,e(".form-loader-count").css("width","100%"),U=n(H,"nonce"),w(),e.ajax({url:folders_media_options.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+H+"&nonce="+U,method:"post",success:function(t){e(".form-loader-count").css("width","0"),t=e.parseJSON(t),"0"==t.status||(e("#wcp_folder_"+H).hasClass("active")?(e("#wcp_folder_"+H).removeClass("active"),e("#wcp_folder_"+H).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+H).addClass("active"),e("#wcp_folder_"+H).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),C())}})}),e(document).on("keyup","#folder-search",function(){v()}),e(document).on("change","#folder-search",function(){v()}),e(document).on("blur","#folder-search",function(){v()}),e(document).on("click","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:folders_media_options.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:folders_media_options.nonce,post_type:folders_media_options.post_type}})}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","#inline-remove, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(A=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),j(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),j(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(Y=!0,e("#add-new-folder").trigger("click"))}),e(document).on("click","#js-tree-menu input.checkbox",function(){s()}),a(),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==folders_media_options.useFolderUndo&&e.ajax({url:folders_media_options.ajax_url,type:"post",data:{post_type:folders_media_options.post_type,nonce:folders_media_options.nonce,action:"wcp_undo_folder_changes"},success:function(o){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){var s=parent.wp;s.media!=t&&(s.media.frame.setState("insert"),null!==s.media.frame.content.get()&&"undefined"!=typeof s.media.frame.content.get().collection?(s.media.frame.content.get().collection.props.set({ignore:+new Date}),s.media.frame.content.get().options.selection.reset()):s.media.frame.library.props.set({ignore:+new Date}))}p()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})});var ne;e(document).ready(function(){"yes"==folders_media_options.use_shortcuts&&(e(document).on("click",".view-shortcodes",function(t){t.preventDefault(),e("#keyboard-shortcut").show()}),e(document).keydown(function(t){var o=t.ctrlKey||t.metaKey?!0:!1;if(e("input").is(":focus")||e("textarea").is(":focus")||!t.shiftKey||78!=t.keyCode&&78!=t.which||e(".block-editor-block-list__block").is(":focus")||!e(".folder-modal").length||(t.preventDefault(),e("#add-new-folder").trigger("click")),(113==t.keyCode||113==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),console.log("fileFolderID: "+A),y(),e(".dynamic-menu").remove()),!o||67!=t.keyCode&&67!=t.which||e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(isFolderCopy=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="copy",e(".folders-undo-notification").removeClass("active"),e("#copy-message").addClass("active"),setTimeout(function(){e("#copy-message").removeClass("active")},5e3),s()),!o||88!=t.keyCode&&88!=t.which||e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),isFolderCopy=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="cut",e(".folders-undo-notification").removeClass("active"),e("#cut-message").addClass("active"),setTimeout(function(){e("#cut-message").removeClass("active")},5e3),s()),!o||86!=t.keyCode&&86!=t.which||e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),M=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),(""==M||isNaN(M))&&(M=0),0!=isFolderCopy&&""!=isFolderCopy&&isFolderCopy!=M&&("cut"==CPCAction?(lastParentID=e("#"+isFolderCopy).data("parent"),lastCopiedFolder=isFolderCopy,lastFolderOrder=e("#"+isFolderCopy).index()+1,""!=M&&0!=M?e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#"+M,0):e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#",e("#js-tree-menu > ul > li.jstree-node").length),e(".folders-undo-notification").removeClass("active"),e("#paste-message").addClass("active"),setTimeout(function(){e("#paste-message").removeClass("active")},5e3)):((""==M||isNaN(M))&&(M=0),copyFolders(isFolderCopy,M)),s(),CPCAction="",isFolderCopy=0)),!o||75!=t.keyCode&&75!=t.which||e("#keyboard-shortcut").show(),o&&(40==t.keyCode||40==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e(".folder-modal #"+A).data("parent")),r=parseInt(e(".folder-modal #"+A).index())+1,d=parseInt(e(".folder-modal #"+A).data("child"));isNaN(a)&&(a=e(".folder-modal li#"+A).parents("li.jstree-node").length?e(".folder-modal li#"+A).parents("li.jstree-node").data("folder"):0,d=e(".folder-modal li#"+A).parents("li.jstree-node").length?e(".folder-modal li#"+A).parents("li.jstree-node").children():e(".folder-modal #js-tree-menu > ul > li").length),0==a&&(a=""),d==r?e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,0):e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,r+1)}if(o&&(38==t.keyCode||38==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e(".folder-modal #"+A).data("parent")),r=parseInt(e(".folder-modal #"+A).index())-1,d=parseInt(e(".folder-modal #"+A).data("child"));isNaN(a)&&(r=parseInt(e("#"+A).index())-1,a=e(".folder-modal li#"+A).parents("li.jstree-node").length?e(".folder-modal li#"+A).parents("li.jstree-node").data("folder"):0,d=e(".folder-modal li#"+A).parents("li.jstree-node").length?e(".folder-modal li#"+A).parents("li.jstree-node").children():e(".folder-modal #js-tree-menu > ul > li").length),0==a&&(a=""),-1==r?e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,d):e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,r)}if((46==t.keyCode||46==t.which||8==t.keyCode||8==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").hasClass("is-locked")||(A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),j(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"))),o&&(40==t.keyCode||40==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+A).data("parent")),r=parseInt(e("#"+A).index())+1,d=parseInt(e("#"+A).data("child"));0==a&&(a=""),d==r?e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,0):e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,r+1)}if(o&&(38==t.keyCode||38==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){A=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var a=parseInt(e("#"+A).data("parent")),r=parseInt(e("#"+A).index())-1,d=parseInt(e("#"+A).data("child"));0==a&&(a=""),-1==r?e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,d):e(".folder-modal #js-tree-menu").jstree("move_node","#"+A,"#"+a,r)}(27==t.keyCode||27==t.which)&&(e(".folder-popup-form").hide(),e(".jstree-node[id='"+A+"']").length?e(".jstree-node[id='"+A+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus"))}))})});
1
+ !function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e,t){var a,o,s,r=[],l=[],n=-1,d=0,c=0,m="",u=-1,f=0,p="",h=folders_media_options.page_url,g="",v="",j=!1,y=!1,k=!1,b=!1,x=0,w="",$=0,C=[],E=null,O=null,D=wp.media.view.AttachmentFilters.extend({id:"media-attachment-taxonomy-filter",createFilters:function(){var e={};folders_media_options.terms.length,_.each(folders_media_options.terms||{},function(t,a){e[t.term_id]={text:t.name+" ("+t.trash_count+")",props:{media_folder:t.slug}}}),e.all={text:"All Folders",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e},change:function(){var e={};_.each(folders_media_options.terms||{},function(t,a){e[t.term_id]={text:t.name+" ("+t.count+")",props:{media_folder:t.slug}}}),e.all={text:"Select a folder >>",props:{media_folder:""},priority:10},e.unassigned={text:"(Unassigned)",props:{media_folder:"-1"},priority:10},this.filters=e;var t=this.filters[this.el.value];t&&this.model.set(t.props)}}),S=0,P=0,R=[],T=wp.media.view.AttachmentsBrowser;wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){T.prototype.createToolbar.call(this),this.toolbar.set("MediaLibraryOrganizerTaxonomyFilter",new D({controller:this.controller,model:this.collection.props,priority:-75}).render())}});var L,A=wp.media.model.Query;_.extend(A,{get:(L=[],function(e,t){var a,o={},s=A.orderby,r=A.defaultProps,l=!1;return delete e.query,delete e.cache,_.defaults(e,r),_.each(["include","exclude"],function(t){e[t]&&!_.isArray(e[t])&&(e[t]=[e[t]])}),_.each(e,function(e,t){!_.isNull(e)&&(o[A.propmap[t]||t]=e)}),_.defaults(o,A.defaultArgs),o.orderby=s.valuemap[e.orderby]||e.orderby,l=!1,L=[],a||(a=new A([],_.extend(t||{},{props:e,args:o})),L.push(a)),a})});var N=window.wp;void 0!==N&&"function"==typeof N.Uploader&&(N.media.view.Modal.prototype.on("open",function(){r=[],setTimeout(function(){e("#media-attachment-taxonomy-filter").length&&("all"==e("#media-attachment-taxonomy-filter").val()&&(e("#media-attachment-taxonomy-filter option:gt(1)").remove(),_.each(folders_media_options.terms,function(t,a){e("#media-attachment-taxonomy-filter").append("<option value='"+t.term_id+"'>"+t.name+" ("+t.trash_count+")</option>")})),!e("#wcp-content").length&&e(".editor-post-featured-image").length&&e(".attachment-filters").val("all").trigger("change"))},100)}),N.media.view.Modal.prototype.on("close",function(){r=[]}),e.extend(N.Uploader.prototype,{progress:function(){},init:function(){this.uploader&&(this.uploader.bind("FileFiltered",function(t,a){S++,e(".folder-meter").css("width","0%"),e(".media-folder-loader").show(),e("#total_upload_files").text(S)}),this.uploader.bind("BeforeUpload",function(t,a){var o=n,s=t.settings.multipart_params;if((o=parseInt(o))>0&&(s.folder_for_media=o),P<S){e(".media-folder-loader").show();var r=P/S*100;e(".folder-meter").css("width",r+"%")}P++,e("#current_upload_files").text(P)}),this.uploader.bind("UploadComplete",function(e,t){n=-1}),this.uploader.bind("UploadComplete",function(t,a){var o=window.wp;e(".folder-meter").css("width","100%"),setTimeout(function(){e(".media-folder-loader").hide(),e(".folder-meter").css("width","0%"),S=0,P=0},1250),e("#media-attachment-taxonomy-filter").val(),s=e.ajax({url:folders_media_options.ajax_url,data:"type=attachment&action=wcp_get_default_list&active_id=0",method:"post",beforeSend:function(){null!=s&&s.abort()},success:function(t){var t=e.parseJSON(t);C=t.taxonomies,H(),z()}}),void 0!==o.media.frame&&null!==o.media.frame.content.get()&&void 0!==o.media.frame.content.get().collection&&(r=[],e(".folder-modal ul.attachments li.selected").length&&e(".folder-modal ul.attachments li.selected").each(function(){r.push(e(this).data("id"))}),o.media.frame.content.get().collection.props.set({ignore:+new Date}),o.media.frame.content.get().options.selection.reset())}))}}));var F=window.wp;if(void 0!==F&&"function"==typeof F.Uploader){var I=window.wp.media,M=I.view.Modal;I.view.Modal=I.view.Modal.extend({className:"folder-modal",initialize:function(){M.prototype.initialize.apply(this,arguments)},open:function(){M.prototype.open.apply(this,arguments)&&(!e(".folder-modal").length&&e(".supports-drag-drop").length&&e(".supports-drag-drop").each(function(){("block"==e(this).css("display")||"inline-block"==e(this).css("display"))&&e(this).addClass("folder-modal")}),e(".folder-modal").length?(e(".folder-custom-menu").remove(),e(".folder-modal .media-frame-tab-panel").removeClass("has-folder-menu"),e(".folder-modal .media-frame").hasClass("hide-menu")?e(".folder-custom-menu").length||(e(".folder-modal .media-frame-tab-panel").before("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){ea(),X(),Y()})):e(".folder-custom-menu").length||(e(".folder-modal .media-frame-menu").addClass("has-folder-menu"),e(".folder-modal .media-frame-menu .media-menu").append("<div class='folder-custom-menu'><div class='folder-menu-content'><div class='cssload-container'><div class='cssload-tube-tunnel'></div></div></div></div>"),e(".folder-modal .folder-menu-content").load(folders_media_options.media_page_url+" #wcp-content-resize",function(){ea(),X(),Y()})),e(".folder-form-data").remove(),e(".media-frame-tab-panel:first").before("<div class='folder-form-data'></div>"),e(".folder-form-data").load(folders_media_options.media_page_url+" #folder-add-update-content",function(){})):setTimeout(function(){-1!=n&&e("#media-attachment-taxonomy-filter").each(function(){e(this).val(n),e(this).trigger("change")})},1e3))},close:function(){M.prototype.close.apply(this,arguments),e(".folder-modal").removeClass("folder-modal")}})}function U(){"yes"==folders_media_options.useFolderUndo&&(e("#do-undo").addClass("active"),e(".undo-folder-action").removeClass("disabled"),setTimeout(function(){e("#do-undo").removeClass("active"),e(".undo-folder-action").addClass("disabled")},parseInt(folders_media_options.defaultTimeout)))}function J(){e(".cut-folder-action, .copy-folder-action, .paste-folder-action, .delete-folder-action").addClass("disabled"),e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e(".delete-folder-action").removeClass("disabled"),(e("#menu-checkbox").is(":checked")||e("#menu-checkbox").is(":checked"))&&e("#js-tree-menu input.checkbox:checked").length>0&&e(".delete-folder-action").removeClass("disabled")}function z(){e(".jstree-anchor:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,a){d=e(this).closest("li.jstree-node").attr("id"),e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").length&&(g=e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").closest("li.jstree-node").attr("id")),a.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),p=B(d,"nonce"),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(U(),G()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):a.draggable.hasClass("wcp-move-file")?(postID=a.draggable[0].attributes["data-id"].nodeValue,p=B(d,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(U(),G()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})):a.draggable.hasClass("attachment")&&(chkStr=a.draggable[0].attributes["data-id"].nodeValue,p=B(d,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),v=chkStr,e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(e){U(),G(),es()}}))}}),e(".media-frame:not(.hide-router) .attachments-browser li.attachment:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,a){e(".selected-items").remove();var o=e(".media-frame:not(.hide-router) .attachments-browser li.attachment.selected").length;return e("<div class='selected-items'><span class='total-post-count'>"+(o=0==o||1==o?folders_media_options.lang.ONE_ITEM:o+" "+folders_media_options.lang.ITEMS)+" "+folders_media_options.lang.SELECTED+"</span></div>")},start:function(t,a){e("body").addClass("no-hover-css")},cursor:"move",appendTo:".media-modal",cursorAt:{left:0,top:0},stop:function(t,a){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}}),e(".un-categorised-items").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,a){d=-1,p=folders_media_options.nonce,a.draggable.hasClass("wcp-move-multiple")?e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),V(chkStr)):a.draggable.hasClass("wcp-move-file")?(chkStr=(postID=a.draggable[0].attributes["data-id"].nodeValue)+",",e(".wp-list-table input:checked").each(function(){postID!=e(this).val()&&(chkStr+=e(this).val()+",")}),V(chkStr)):a.draggable.hasClass("attachment")&&(chkStr=a.draggable[0].attributes["data-id"].nodeValue,e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),v=chkStr,V(chkStr))}}),e(".tree-structure .folder-item:not(.ui-droppable)").droppable({accept:".wcp-move-file, .wcp-move-multiple, .attachments-browser li.attachment",hoverClass:"wcp-drop-hover-list",classes:{"ui-droppable-active":"ui-state-highlight"},drop:function(t,a){e("body").removeClass("no-hover-css"),d=e(this).data("id"),e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").length&&(g=e(this).closest("ul.jstree-container-ul").find(".jstree-clicked").closest("li.jstree-node").attr("id")),a.draggable.hasClass("wcp-move-multiple")?(p=B(d,"nonce"),e(".wp-list-table input:checked").length&&(chkStr="",e(".wp-list-table input:checked").each(function(){chkStr+=e(this).val()+","}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(e){U(),G(),es()}}))):a.draggable.hasClass("wcp-move-file")?(postID=a.draggable[0].attributes["data-id"].nodeValue,p=B(d,"nonce"),chkStr=postID+",",e(".wp-list-table input:checked").each(function(){e(this).val()!=postID&&(chkStr+=e(this).val()+",")}),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(e){U(),G(),es()}})):a.draggable.hasClass("attachment")&&(chkStr=a.draggable[0].attributes["data-id"].nodeValue,p=B(d,"nonce"),e(".attachments-browser li.attachment.selected").length>1&&(chkStr="",e(".attachments-browser li.attachment.selected").each(function(){chkStr+=e(this).data("id")+","})),e.ajax({url:folders_media_options.ajax_url,data:"post_ids="+chkStr+"&type="+folders_media_options.post_type+"&action=wcp_change_multiple_post_folder&folder_id="+d+"&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(e){U(),G(),es()}}))}}),e(".wcp-move-file:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:"clone",cursor:"move",start:function(t,a){e(this).closest("td").addClass("wcp-draggable"),e("body").addClass("no-hover-css")},stop:function(t,a){e(this).closest("td").removeClass("wcp-draggable"),e("body").removeClass("no-hover-css")}}),e(".wcp-move-multiple:not(.ui-draggable)").draggable({revert:"invalid",containment:"document",helper:function(t,a){return(e(".selected-items").remove(),(selectedItems=e("#the-list th input:checked").length)>0)?e("<div class='selected-items'><span class='total-post-count'>"+(selectedItems=0==selectedItems||1==selectedItems?folders_media_options.lang.ONE_ITEM:selectedItems+" "+folders_media_options.lang.ITEMS)+" "+folders_media_options.lang.SELECTED+"</span></div>"):e("<div class='selected-items'><span class='total-post-count'>"+folders_media_options.lang.SELECT_ITEMS+"</span></div>")},start:function(t,a){e("body").addClass("no-hover-css")},cursor:"move",cursorAt:{left:0,top:0},stop:function(t,a){e(".selected-items").remove(),e("body").removeClass("no-hover-css")}})}function Y(){e(".folder-modal #js-tree-menu").jstree({core:{cache:!1,animation:0,max_depth:o?"-1":1,check_callback:function(t,a,s,r,l){if(e("*").removeClass("drag-bot").removeClass("drag-in").removeClass("drag-up"),("move_node"===t||"copy_node"===t)&&l&&l.dnd)switch(l.pos){case"a":l.origin.get_node(l.ref,!0).addClass("drag-bot"),nodeId=e(".drag-bot").attr("id"),e("#jstree-dnd").text("Below "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"i":if(!o&&e("#do_not_show_again").is(":checked"))return!1;l.origin.get_node(l.ref,!0).addClass("drag-in"),nodeId=e(".drag-in").attr("id"),e("#jstree-dnd").text("Inside "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;case"b":l.origin.get_node(l.ref,!0).addClass("drag-up"),nodeId=e(".drag-up").attr("id"),e("#jstree-dnd").text("Above "+e.trim(e("#js-tree-menu").jstree(!0).get_node(nodeId).text));break;default:e("#jstree-dnd").text(e("#jstree-dnd").data("txt"))}return!0}},data:{cache:!1},select_node:!1,search:{show_only_matches:!0,case_sensitive:!1,fuzzy:!1},plugins:["dnd","search","contextmenu"],contextmenu:{select_node:0,show_at_node:0,items:function(){return{}}}}).bind("ready.jstree",function(){if(e("#js-tree-menu .jstree-node").each(function(){var t=e(this).data("count")&&""!=e(this).data("count")?e(this).data("count"):0;e(".jstree-node[id='"+e(this).attr("id")+"'] > a span.premio-folder-count").text(t)}),e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=g&&0!=g&&e(".jstree-node[id='"+g+"']").length&&(e("#js-tree-menu").jstree("select_node",g),e(".sticky-folders .sticky-folder-"+g+" a").length&&e(".sticky-folders .sticky-folder-"+g+" a").addClass("active-item")),e(".ajax-preloader").hide(),e(".js-tree-data").show(),X(),K(),e(".sticky-folders ul > li").length>0&&e(".sticky-folders").addClass("active"),z(),""!=folders_media_options.default_folder&&0!=folders_media_options.default_folder){var t=function e(t){if(l.length>0){for(i=0;i<l.length;i++)if(l[i].slug==t)return l[i].folder_id}return""}(folders_media_options.default_folder);""!=t&&e(".folder-modal #media-attachment-taxonomy-filter option[value='"+t+"']").length&&(e(".folder-modal #media-attachment-taxonomy-filter").val(t).trigger("change"),e(".folder-modal #js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e(".folder-modal #js-tree-menu").jstree("select_node",t),e(".folder-modal #js-tree-menu .jstree-node[id='"+t+"'] > a").addClass("jstree-clicked"))}}).bind("after_open.jstree",function(){z()}).bind("open_all.jstree",function(){z()}).bind("create_node.jstree",function(){z()}).bind("delete_node.jstree",function(){z()}).bind("close_all.jstree",function(){z()}).bind("after_close.jstree",function(){z()}).bind("move_node.jstree",function(t,a){if(!o){var s=a.old_position;if("#"!=a.parent)return e("#js-tree-menu").jstree("move_node","#"+a.node.id,"#",s),e("#sub-drag-folder-popup").show(),!1}"#"!=a.node.parent&&jQuery("#js-tree-menu").jstree("open_node",a.node.parent),folderMoveId=a.node.id,orderString="",e(".folder-modal .jstree-node[id='"+folderMoveId+"']").closest("ul").children().each(function(){"undefined"!=e(this).attr("id")&&(orderString+=e(this).attr("id")+",")}),parentID=e(".folder-modal #"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+folderMoveId+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0,""!=orderString&&(e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"term_ids="+orderString+"&action=wcp_save_folder_order&type="+folders_media_options.post_type+"&nonce="+folders_media_options.nonce+"&term_id="+folderMoveId+"&parent_id="+parentID,method:"post",success:function(t){"1"==(t=e.parseJSON(t)).status?(e("#wcp_folder_parent").html(t.options),e(".form-loader-count").css("width","0"),G(),es(),H(),z()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0))}}))}),z()}function V(t){e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").length?(g=e(".folder-modal #js-tree-menu .jstree-anchor.jstree-clicked").closest(".jstree-node").attr("id"),e.ajax({url:folders_media_options.ajax_url,data:{post_id:t,action:"premio_check_for_other_folders",active_folder:g,type:folders_media_options.post_type,folder_id:-1,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:g},method:"post",success:function(t){-1==(t=e.parseJSON(t)).status?(e("#unassigned_folders").val(t.data.post_id),e("#confirm-your-change").show()):(G(),U())}})):(p=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"post_id="+t+"&type="+folders_media_options.post_type+"&action=wcp_remove_post_folder&folder_id=-1&nonce="+p+"&status="+folders_media_options.taxonomy_status+"&taxonomy="+g,method:"post",success:function(e){G(),U()}}))}function B(e,t){if(l.length>0){for(i=0;i<l.length;i++)if(parseInt(l[i].folder_id)==parseInt(e))return l[i][t]}return""}function W(e){if(l.length>0){for(i=0;i<l.length;i++)if(parseInt(l[i].folder_id)==parseInt(e))return i}return null}function K(){e(".sticky-folders > ul").html("");var t="";if(e("#js-tree-menu li.jstree-node.is-sticky").each(function(){var a=e(this).attr("id"),o=e.trim(e("#js-tree-menu").jstree(!0).get_node(a).text),s=e("li.jstree-node[id='"+a+"'] > a span.premio-folder-count").text(),r=e("li.jstree-node[id='"+a+"']").hasClass("is-high")?" is-high ":"";t+="<li data-folder-id='"+a+"' class='sticky-fldr "+r+" sticky-folder-"+a+"'><a href='javascript:;'><span class='folder-title'>"+o+"</span><span class='folder-actions'><span class='update-inline-record'><i class='pfolder-edit-folder'></i></span><span class='star-icon'><i class='pfolder-star'></i></span><span class='premio-folder-count'>"+s+"</span></span></a></li>"}),e(".sticky-folders > ul").html(t),e(".jstree-anchor.jstree-clicked").length){var a=e(".jstree-anchor.jstree-clicked").closest("li.jstree-node").attr("id");e(".sticky-folders .sticky-folder-"+a+" a").addClass("active-item")}e(".sticky-folders > ul > li").length>0?e(".sticky-folders").addClass("active"):e(".sticky-folders").removeClass("active")}function X(){var t=e(window).height()-e("#wpadminbar").height()-e(".sticky-wcp-custom-form").height()-40;e("#custom-scroll-menu").height(t),e("#custom-scroll-menu").overlayScrollbars({resize:"none",sizeAutoCapable:!0,autoUpdateInterval:33,x:"scroll",clipAlways:!1,y:"scroll"}),e(".custom-scroll-menu").hasClass("hor-scroll")&&(jQuery("#custom-scroll-menu .os-viewport").on("scroll",function(){q()}),q())}function q(){jQuery("#js-tree-menu span.folder-actions").css("right",jQuery("#custom-scroll-menu .horizontal-scroll-menu").width()-jQuery("#custom-scroll-menu .os-viewport").width()-e("#custom-scroll-menu .os-viewport").scrollLeft()-10)}function G(){if(e(".media-toolbar").hasClass("media-toolbar-mode-select")&&e("ul.attachments li.selected").length&&(e("ul.attachments li.selected").trigger("click"),e(".select-mode-toggle-button").trigger("click")),""!=v&&(e("#js-tree-menu a.jstree-clicked").length>0||"-1"==g)){if(e("#media-attachment-taxonomy-filter").length){v=v.split(",");for(var t=0;t<v.length;t++)""!=v[t]&&e(".attachments-browser li[data-id='"+v[t]+"']").remove()}v=""}e("#media-attachment-taxonomy-filter").length?eo(0):(e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=get_folders_default_list",method:"post",success:function(t){t=e.parseJSON(t),e(".header-posts .total-count").text(t.total_items),e(".un-categorised-items .total-count").text(t.empty_items),C=t.taxonomies,H(),z()}}),e(".folder-loader-ajax").addClass("active"),e("#folder-posts-filter").length?e("#folder-posts-filter").load(h+" #posts-filter",function(){var t={Title:"",Url:h};history.pushState(t,t.Title,t.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>'),triggerInlineUpdate()}):e("#wpbody").load(h+" #wpbody-content",!1,function(t){var a={Title:"",Url:h};history.pushState(a,a.Title,a.Url),"show"!=folders_media_options.show_in_page||e(".tree-structure").length||e(".wp-header-end").before('<div class="tree-structure-content"><div class="tree-structure"><ul></ul><div class="clear clearfix"></div></div></div>')}))}function H(){if(e("#media-attachment-taxonomy-filter").length&&(e("#media-attachment-taxonomy-filter").each(function(){folders_media_options.terms=C;var t=e(this);currentDDVal=e(this).val(),t.html("<option value='all'>"+folders_media_options.lang.SELECT_FOLDER+"</option><option value='unassigned'>"+folders_media_options.lang.UNASSIGNED+"</option>"),R=C;for(var a=0;a<C.length;a++)t.append("<option value='"+C[a].term_id+"'>"+C[a].name+" ("+C[a].trash_count+")</option>");t.val(currentDDVal).trigger("change")}),e("select.folder_for_media").length)){var t=e("select.folder_for_media").val();e("select.folder_for_media option:not(:first-child):not(:last-child)").remove();for(var a=0;a<C.length;a++)e("select.folder_for_media option:last-child").before("<option value='"+C[a].term_id+"'>"+C[a].name+"</option>");""!=t&&e(".folder_for_media").val(t)}for(e("span.premio-folder-count").text(""),e(".folder-count").text(""),a=0;a<C.length;a++)e(".jstree-node[id='"+C[a].term_id+"'] > a.jstree-anchor span.premio-folder-count").text(C[a].trash_count),e(".sticky-folder-"+C[a].term_id+" .premio-folder-count").text(C[a].trash_count);e("span.premio-folder-count").each(function(){""==e(this).text()&&e(this).text(0)}),""!=g&&e("#wcp_folder_"+g).addClass("active-item"),y&&(e("#title_"+c).trigger("click"),y=!1)}function Z(){var t=e.trim(e("#folder-search").val());e("#js-tree-menu").jstree("search",t)}function Q(t){var a=folders_media_options.lang.DELETE_FOLDER_MESSAGE,o=folders_media_options.lang.ITEM_NOT_DELETED;if(j=!1,1==t&&e("#menu-checkbox").is(":checked")){if(j=!0,0==e("#js-tree-menu input.checkbox:checked").length){e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(folders_media_options.lang.SELECT_AT_LEAST_ONE_FOLDER),e("#error-folder-popup").show();return}e("#js-tree-menu input.checkbox:checked").length>1&&(a=folders_media_options.lang.DELETE_FOLDERS_MESSAGE,o=folders_media_options.lang.ITEMS_NOT_DELETED)}e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#remove-folder-item").text(folders_media_options.lang.YES_DELETE_IT),e("#remove-folder-message").text(a),e("#remove-folder-notice").text(o),e("#confirm-remove-folder").show(),e("#remove-folder-item").focus()}function ee(){folderName=e.trim(e("#js-tree-menu").jstree(!0).get_node(c).text),t==(parentID=e("#wcp_folder_"+c).closest("li.jstree-node").data("folder-id"))&&(parentID=0),e("#update-folder-data").text(folders_media_options.lang.SUBMIT),e(".folder-form-errors").removeClass("active"),e("#update-folder-item-name").val(folderName),e("#update-folder-item").removeClass("disabled"),e("#update-folder-item").show(),e("#update-folder-item-name").focus(),e(".dynamic-menu").remove()}function et(){if(0==f&&u>=10)return e("#folder-limitation-message").html("You've reached the 10 folder limitation!"),e("#no-more-folder-credit").show(),!1;e("#add-update-folder-title").text(folders_media_options.lang.ADD_NEW_FOLDER),e("#save-folder-data").text(folders_media_options.lang.SUBMIT),e(".folder-form-errors").removeClass("active"),e("#add-update-folder-name").val(""),k&&(x=c,e("#add-update-folder-name").val(e.trim(e("#js-tree-menu").jstree(!0).get_node(c).text)+" #2"),c=e("#"+c+"_anchor").closest(".jstree-node").parent().parent().hasClass("jstree-node")?e("#"+c+"_anchor").closest(".jstree-node").parent().parent().attr("id"):0),e("#add-update-folder").removeClass("disabled"),e("#add-update-folder").show(),e("#add-update-folder-name").focus(),e(".dynamic-menu").remove()}function ea(){setTimeout(function(){if(e("#js-tree-menu .jstree-node.jstree-leaf").length==e("#js-tree-menu .jstree-node").length)e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.EXPAND);else{var t=e("#js-tree-menu .jstree-node.jstree-closed").length+e("#js-tree-menu .jstree-node.jstree-open").length;e("#js-tree-menu .jstree-node.jstree-closed").length==t?(e("#expand-collapse-list").removeClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.EXPAND)):(e("#expand-collapse-list").addClass("all-open"),e("#expand-collapse-list").attr("data-folder-tooltip",folders_media_options.lang.COLLAPSE))}},500),z()}function eo(a){s=e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_get_default_list&active_id="+g,method:"post",beforeSend:function(){null!=s&&s.abort()},success:function(o){if(o=e.parseJSON(o),e(".header-posts .total-count").text(o.total_items),e(".un-categorised-items .total-count").text(o.empty_items),"all"!=(selectedVal=e("#media-attachment-taxonomy-filter").val())&&1==a){var s=parent.wp;t!=s.media&&(s.media.frame.setState("insert"),null!==s.media.frame.content.get()&&void 0!==s.media.frame.content.get().collection?(s.media.frame.content.get().collection.props.set({ignore:+new Date}),s.media.frame.content.get().options.selection.reset()):s.media.frame.library.props.set({ignore:+new Date}))}C=o.taxonomies,H(),z()}})}function es(){e(".folder-loader-ajax").addClass("active"),e(".folder-loader-ajax img").removeClass("active"),e(".folder-loader-ajax svg#successAnimation").addClass("active").addClass("animated"),setTimeout(function(){e(".folder-loader-ajax").removeClass("active"),e(".folder-loader-ajax img").addClass("active"),e(".folder-loader-ajax svg#successAnimation").removeClass("active").removeClass("animated")},2e3),z()}e(document).ready(function(){e(document).on("click",".folder-settings-btn > a",function(t){t.stopPropagation(),e(".folder-settings-btn").toggleClass("active")}),e(document).on("click","body,html",function(){e(".folder-settings-btn").removeClass("active")}),e(document).on("click",".folder-setting-menu",function(e){e.stopPropagation()}),e(document).on("click","#remove-from-all-folders:not(.disabled), #remove-from-current-folder:not(.disabled)",function(){e("#remove-from-all-folders, #remove-from-current-folder").addClass("disabled");var t="all";e(this).hasClass("remove-from-current-folder")&&(t="current"),e("#confirm-your-change").hide(),e.ajax({url:folders_media_options.ajax_url,data:{post_id:e("#unassigned_folders").val(),action:"wcp_remove_post_folder",active_folder:g,type:folders_media_options.post_type,folder_id:-1,nonce:folders_media_options.nonce,status:folders_media_options.taxonomy_status,taxonomy:g,remove_from:t},method:"post",success:function(t){e("#remove-from-all-folders, #remove-from-current-folder").removeClass("disabled"),es(),G(),U()}})}),a=parseInt(folders_media_options.hasStars),o=parseInt(folders_media_options.hasChildren),e(document).on("click",".thumbnail-hover-box a",function(t){return t.stopPropagation(),t.stopImmediatePropagation(),t.preventDefault(),window.open(e(this).prop("href"),"_blank"),!1}),e(document).ajaxComplete(function(e,a,o){if(t!=o.data&&""!=o.data&&"string"==typeof o.data&&-1!=o.data.indexOf("action=query-attachments")&&z(),r.length>0){for(var s=0;s<r.length;s++)if(jQuery(".folder-modal ul.attachments li[data-id='"+r[s]+"']").length&&!jQuery(".folder-modal ul.attachments li[data-id='"+r[s]+"']").hasClass("selected")){var l=jQuery.Event("click");l.ctrlKey=!0,jQuery(".folder-modal ul.attachments li[data-id='"+r[s]+"']").trigger(l)}}}),C=folders_media_options.terms,f=parseInt(folders_media_options.is_key_active),u=parseInt(folders_media_options.folders),l=folders_media_options.folder_settings,e(document).on("click",".header-posts a.all-posts",function(t){c=0,g="",n="all",e(".active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("all").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("all").trigger("change"),J()}),e(document).on("click",".un-categorised-items",function(t){c=0,g="",n="unassigned",e(".active-item").removeClass("active-item"),e(".sticky-folders .active-item").removeClass("active-item"),e(".jstree-clicked").removeClass("jstree-clicked"),e(this).addClass("active-item"),e(this).closest(".media-frame").find("#media-attachment-taxonomy-filter").val("unassigned").trigger("change"),e(this).closest(".media-frame").find(".folder_for_media").val("-1").trigger("change"),J()}),e(document).on("click","a.jstree-anchor",function(t){var a,o=e(this).closest("li.jstree-node").attr("id");n=c=o,e(this).closest(".folder-modal").find(".active-item").removeClass("active-item"),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").val(o),e(this).closest(".folder-modal").find("#media-attachment-taxonomy-filter").trigger("change"),a=thisSlug=B(o,"slug"),e.ajax({url:folders_media_options.ajax_url,type:"post",data:"action=save_folder_last_status&post_type="+folders_media_options.post_type+"&post_id="+a+"&nonce="+folders_media_options.nonce,cache:!1,async:!1,success:function(){}}),e(".custom-media-select").removeClass("active"),e(".folder-modal #js-tree-menu .jstree-clicked").removeClass("jstree-clicked"),e(".folder-modal #js-tree-menu").jstree("select_node",g),e(".folder-modal #js-tree-menu #"+n+"_anchor").addClass("jstree-clicked"),J()}),e(document).on("change",".folder_for_media",function(){"add-folder"!=e(this).val()&&null!=e(this).val()?n=e(this).val():"add-folder"==e(this).val()&&(n=-1)}),e(document).on("click",".new-folder-pro",function(t){t.preventDefault(),e(".dynamic-menu").remove(),e("#sub-folder-popup").show()}),e(document).on("click",".close-popup-button a",function(){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+c+"']").length?e(".folder-modal .jstree-node[id='"+c+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".update-inline-record",function(s){var r;s.stopImmediatePropagation(),s.stopPropagation(),0!=folders_media_options.can_manage_folder&&(isHigh=e(this).closest("li.sticky-fldr").hasClass("is-high"),isStickyClass=!!(isSticky=e(this).closest("li.sticky-fldr").hasClass("is-sticky")),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").data("folder-id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>",o?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>":menuHtml+="<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.PRO.NEW_SUB_FOLDER+"</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+folders_media_options.lang.RENAME+"</a></li><li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+folders_media_options.lang.PRO.OPEN_THIS_FOLDER+"</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+folders_media_options.lang.PRO.STICKY_FOLDER+"</a></li>",a?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?folders_media_options.lang.REMOVE_STAR:folders_media_options.lang.ADD_STAR)+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?folders_media_options.lang.PRO.REMOVE_STAR:folders_media_options.lang.PRO.ADD_STAR)+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span> "+folders_media_options.lang.PRO.LOCK_FOLDER+"</a></li><li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span> "+folders_media_options.lang.PRO.DUPLICATE_FOLDER+"</a></li>",hasPosts=parseInt(e(this).closest("li.jstree-node").find("h3.title:first > .total-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+folders_media_options.lang.PRO.DOWNLOAD_ZIP+"</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+folders_media_options.lang.DELETE+"</a></li></ul></div>",e("body").append(menuHtml),t==s.pageX||t==s.pageY?(e(".dynamic-menu").css("left",E),e(".dynamic-menu").css("top",O-10),r=O):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),r=s.pageY),r+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(r+e(".dynamic-menu").height())))}),e(document).on("click","body, html",function(t){e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e(".folder-order").removeClass("active")}),e(document).on("click",".dynamic-menu, .folder-order",function(e){e.stopPropagation()}),e(document).on("contextmenu",".jstree-anchor",function(t){return E=t.pageX,O=t.pageY,e(this).find("span.folder-inline-edit").trigger("click"),!1}),e(document).on("click",".folder-actions span.folder-inline-edit",function(s){var r;s.stopImmediatePropagation(),s.stopPropagation(),0!=folders_media_options.can_manage_folder&&(isHigh=e(this).closest("li.jstree-node").hasClass("is-high"),isStickyClass=!!(isSticky=e(this).closest("li.jstree-node").hasClass("is-sticky")),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),menuHtml="<div class='dynamic-menu' data-id='"+e(this).closest("li").prop("id")+"'><ul>",menuHtml+="<li class='new-main-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>",o?menuHtml+="<li class='new-folder'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.NEW_FOLDER+"</a></li>":menuHtml+="<li class='new-folder-pro'><a href='javascript:;'><span class=''><i class='pfolder-add-folder'></i></span>"+folders_media_options.lang.PRO.NEW_SUB_FOLDER+"</a></li>",menuHtml+="<li class='rename-folder'><a href='javascript:;'><span class=''><i class='pfolder-edit'></i></span>"+folders_media_options.lang.RENAME+"</a></li><li class='default-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-active-icon'></i></span>"+folders_media_options.lang.PRO.OPEN_THIS_FOLDER+"</a></li><li class='sticky-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='sticky-pin'><i class='pfolder-pin'></i></span>"+folders_media_options.lang.PRO.STICKY_FOLDER+"</a></li>",a?menuHtml+="<li class='mark-folder'><a href='javascript:;'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?folders_media_options.lang.REMOVE_STAR:folders_media_options.lang.ADD_STAR)+"</a></li>":menuHtml+="<li class='mark-folder-pro'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-star'></i></span>"+(isHigh?folders_media_options.lang.PRO.REMOVE_STAR:folders_media_options.lang.PRO.ADD_STAR)+"</a></li>",menuHtml+="<li class='lock-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class='dashicons dashicons-lock'></span>"+folders_media_options.lang.PRO.LOCK_FOLDER+"</a></li><li class='duplicate-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-clone'></i></span>"+folders_media_options.lang.PRO.DUPLICATE_FOLDER+"</a></li>",hasPosts=parseInt(e(this).closest("a.jstree-anchor").find(".premio-folder-count").text()),"attachment"==folders_media_options.post_type&&hasPosts&&(menuHtml+="<li class='download-folder'><a target='_blank' href='"+folders_media_options.upgrade_url+"'><span class=''><i class='pfolder-zip-file'></i></span>"+folders_media_options.lang.PRO.DOWNLOAD_ZIP+"</a></li>"),menuHtml+="<li class='remove-folder'><a href='javascript:;'><span class=''><i class='pfolder-remove'></i></span>"+folders_media_options.lang.DELETE+"</a></li></ul></div>",e("body").append(menuHtml),e(this).parents("li.jstree-node").addClass("active-menu"),t==s.pageX||t==s.pageY?(e(".dynamic-menu").css("left",E),e(".dynamic-menu").css("top",O-10),r=O):(e(".dynamic-menu").css("left",s.pageX),e(".dynamic-menu").css("top",s.pageY),r=s.pageY),r+e(".dynamic-menu").height()>e(window).height()&&e(".dynamic-menu").css("margin-top",e(window).height()-(r+e(".dynamic-menu").height())))}),e(document).on("click",".dynamic-menu",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","body, html",function(){e(".dynamic-menu").remove()}),e(document).on("click",".new-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),y=!1,k=!1,et()}),e(document).on("click",".new-main-folder",function(){b=1,c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),y=!1,k=!1,et()}),e(document).on("click","#add-new-folder",function(t){e("#js-tree-menu a.jstree-clicked").length?(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),o||e("#pro-notice").removeClass("hide-it")):(c=0,e("#pro-notice").addClass("hide-it")),y=!1,et()}),e(document).on("submit","#save-folder-form",function(t){if(t.stopPropagation(),t.preventDefault(),m=e("#add-update-folder-name").val(),""==e.trim(m))e(".folder-form-errors").addClass("active"),e("#add-update-folder-name").focus();else{e("#save-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#add-update-folder").addClass("disabled");var a=c;y&&(a=0),o||(a=0);var s="";0==a?($=e("#js-tree-menu > ul > li.jstree-node").length,b&&($=jQuery("#js-tree-menu > ul > li[id='"+c+"']").index(),jQuery("#js-tree-menu > ul > li").each(function(e){s+=jQuery(this).attr("id")+",",e==$&&(s+="#,")}),$+=1)):$=e("#js-tree-menu > ul > li.jstree-node[id='"+a+"'] > ul.jstree-children > li").length+1,e.ajax({url:folders_media_options.ajax_url,data:{parent_id:a,type:folders_media_options.post_type,action:"wcp_add_new_folder",nonce:folders_media_options.nonce,term_id:a,order:$,name:m,is_duplicate:k,duplicate_from:x,parent_ids:s,parent_menu:b},method:"post",success:function(t){if(result=e.parseJSON(t),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),-1==result.status)e("#no-more-folder-credit").show();else if("1"==result.status){if(f=parseInt(result.is_key_active),u=parseInt(result.folders),e("#current-folder").text(u),e("#ttl-fldr").text(10),ea(),result.data.length)for(var a=0;a<result.data.length;a++){var o={folder_id:result.data[a].term_id,folder_count:0,is_sticky:result.data[a].is_sticky,is_high:result.data[a].is_high,nonce:result.data[a].nonce,slug:result.data[a].slug,is_deleted:0};l.push(o),l.push(o),b?e("#js-tree-menu").jstree().create_node("#",{id:result.data[a].term_id,text:" "+result.data[a].title},$,function(){e(".jstree-node[id='"+result.data[a].term_id+"']").attr("data-nonce",result.data[a].nonce),e(".jstree-node[id='"+result.data[a].term_id+"']").attr("data-slug",result.data[a].slug),e(".jstree-node[id='"+result.data[a].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}):e("#js-tree-menu").jstree().create_node(result.parent_id,{id:result.data[a].term_id,text:" "+result.data[a].title},"last",function(){e(".jstree-node[id='"+result.data[a].term_id+"']").attr("data-nonce",result.data[a].nonce),e(".jstree-node[id='"+result.data[a].term_id+"']").attr("data-slug",result.data[a].slug),e(".jstree-node[id='"+result.data[a].term_id+"'] > a.jstree-anchor .premio-folder-count").text(0)}),b=0,e(".jstree-node[id='"+result.data[a].term_id+"']").length&&e(".jstree-node[id='"+result.data[a].term_id+"'] > a.jstree-anchor").trigger("focus")}es(),K(),c=result.term_id,eo(0),k=!1,x=0}else e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show()}})}return!1}),e(document).on("click",".form-cancel-btn",function(){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+c+"']").length?e(".folder-modal .jstree-node[id='"+c+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".folder-popup-form",function(t){e(".folder-popup-form").hide(),e(".folder-modal .jstree-node[id='"+c+"']").length?e(".folder-modal .jstree-node[id='"+c+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")}),e(document).on("click",".popup-form-content",function(e){e.stopPropagation()}),document.onkeydown=function(t){t=t||window.event;var a=!1;(a="key"in t?"Escape"===t.key||"Esc"===t.key:27===t.keyCode)&&e(".folder-popup-form").hide()},e(document).on("click",".rename-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),ee(),e(".dynamic-menu").remove()}),e(document).on("click","#inline-update",function(t){e("#js-tree-menu a.jstree-clicked").length&&(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),ee())}),e(document).on("submit","#update-folder-form",function(a){return a.stopPropagation(),a.preventDefault(),m=e("#update-folder-item-name").val(),""==e.trim(m)?(e(".folder-form-errors").addClass("active"),e("#update-folder-item-name").focus()):(e("#update-folder-data").html('<span class="dashicons dashicons-update"></span>'),e("#update-folder-item").addClass("disabled"),p=B(c,"nonce"),t==(parentID=e(".jstree-node[id='"+c+"']").closest("li.jstree-node").attr("id"))&&(parentID=0),e.ajax({url:folders_media_options.ajax_url,data:{parent_id:parentID,type:folders_media_options.post_type,action:"wcp_update_folder",nonce:p,term_id:c,order:$,name:m},method:"post",success:function(t){"1"==(result=e.parseJSON(t)).status?(e("#js-tree-menu").jstree("rename_node",result.id," "+result.term_title),null!=(folderPostId=W(result.id))&&(l[folderPostId].nonce=result.nonce,l[folderPostId].slug=result.slug),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),es(),e("#media-attachment-taxonomy-filter").length&&eo(0),e(".folder-modal .jstree-node[id='"+result.id+"']").length?e(".folder-modal .jstree-node[id='"+result.id+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus")):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(result.message),e("#error-folder-popup").show())}})),!1}),e(document).on("click",".mark-folder",function(t){t.stopPropagation(),p=B(d=e(this).closest(".dynamic-menu").data("id"),"nonce"),e(".form-loader-count").css("width","100%"),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu"),e.ajax({url:folders_media_options.ajax_url,data:"term_id="+d+"&type="+folders_media_options.post_type+"&action=wcp_mark_un_mark_folder&nonce="+p,method:"post",cache:!1,success:function(t){t=e.parseJSON(t),e(".form-loader-count").css("width","0%"),"1"==t.status?(folderPostId=W(t.id),"1"==t.marked?(e("li.jstree-node[id='"+t.id+"']").addClass("is-high"),e(".sticky-folder-"+t.id).addClass("is-high"),null!=folderPostId&&(l[folderPostId].is_high=1)):(e("li.jstree-node[id='"+t.id+"']").removeClass("is-high"),e(".sticky-folder-"+t.id).removeClass("is-high"),null!=folderPostId&&(l[folderPostId].is_high=0)),e(".folder-modal .jstree-node[id='"+t.id+"']").length?e(".folder-modal .jstree-node[id='"+t.id+"'] > a.jstree-anchor").trigger("focus"):e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus"),es()):(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show())}})}),e(document).on("click",".duplicate-folder",function(t){t.stopPropagation(),c=e(this).closest(".dynamic-menu").data("id"),e(".dynamic-menu").remove(),y=!1,k=!0,et()}),e(document).on("click",".remove-folder",function(){d=e(this).closest(".dynamic-menu").data("id"),c=e(this).closest(".dynamic-menu").data("id"),Q(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")}),e(document).on("click","#remove-folder-item",function(t){t.stopPropagation(),e(".folder-popup-form").addClass("disabled"),e("#remove-folder-item").html('<span class="dashicons dashicons-update"></span>'),p=B(c,"nonce"),j?function t(){if(e("#menu-checkbox").is(":checked")&&e("#js-tree-menu input.checkbox:checked").length>0){var a="",o=!1;e("#js-tree-menu input.checkbox:checked").each(function(){a+=e(this).closest("li.jstree-node").attr("id")+",",e(this).closest("li.jstree-node").hasClass("jstree-clicked")&&(o=!0)}),e(".form-loader-count").css("width","100%"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_muliple_folder&term_id="+a+"&nonce="+folders_media_options.nonce,method:"post",success:function(t){if(t=e.parseJSON(t),e(".form-loader-count").css("width","0px"),"1"==t.status){for(f=parseInt(t.is_key_active),u=parseInt(t.folders),e("#current-folder").text(u),i=0;i<t.term_ids.length;i++)e(".folder-modal #js-tree-menu").jstree().delete_node(t.term_ids[i]);e("#ttl-fldr").text(10),es(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),G(),K(),es(),e(".folder-modal #wcp_folder_"+g).length||(e(".header-posts a").trigger("click"),g=0)}else window.location.reload();e("#menu-checkbox").attr("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox")}})}}():e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_remove_folder&term_id="+c+"&nonce="+p,method:"post",success:function(t){if("1"==(t=e.parseJSON(t)).status){var a,o=(a=c,e(".jstree-node[id='"+a+"']").next().length?e(".jstree-node[id='"+a+"']").next().attr("id"):e(".jstree-node[id='"+a+"']").prev().length?e(".jstree-node[id='"+a+"']").prev().attr("id"):e(".jstree-node[id='"+a+"']").parent().parent().hasClass("jstree-node")?e(".jstree-node[id='"+a+"']").parent().parent().attr("id"):0);e("#js-tree-menu").jstree().delete_node(c),f=parseInt(t.is_key_active),u=parseInt(t.folders),e("#current-folder").text(u),e("#ttl-fldr").text(10),e(".sticky-folders .sticky-folder-"+c).remove(),es(),e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),G(),K(),g==c&&e(".header-posts").trigger("click"),0!=o&&e("#"+o+"_anchor").length?e("#"+o+"_anchor").trigger("click"):e(".header-posts").trigger("click")}else e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show()}})}),e(document).on("click","#sort-order-list",function(t){t.stopPropagation(),e(".folder-order").toggleClass("active")}),e(document).on("click","#expand-collapse-list",function(t){t.stopPropagation();var a=0;e(this).hasClass("all-open")?(e(this).removeClass("all-open"),a=0,e(this).attr("data-folder-tooltip",folders_media_options.lang.EXPAND),e("#js-tree-menu").jstree("close_all")):(e(this).addClass("all-open"),a=1,e(this).attr("data-folder-tooltip",folders_media_options.lang.COLLAPSE),e("#js-tree-menu").jstree("open_all")),v="",e("#js-tree-menu .jstree-node:not(.jstree-leaf)").each(function(){v+=e(this).attr("id")+","}),""!=v&&(e(".form-loader-count").css("width","100%"),p=folders_media_options.nonce,e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_change_all_status&status="+a+"&folders="+v+"&nonce="+p,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status&&(e(".folder-popup-form").hide(),e(".folder-popup-form").removeClass("disabled"),e("#error-folder-popup-message").html(t.message),e("#error-folder-popup").show(),window.location.reload(!0),e(".folder-modal .jstree-anchor.jstree-clicked").length&&e(".folder-modal .jstree-anchor.jstree-clicked").trigger("focus"))}}))}),e(document).on("click",".folder-sort-menu a:not(.pro-feature)",function(t){t.stopPropagation(),t.preventDefault(),e(".form-loader-count").css("width","100%"),e(".folder-order").removeClass("active"),w=e(this).attr("data-sort"),e.ajax({url:folders_media_options.ajax_url,data:"type="+folders_media_options.post_type+"&action=wcp_folders_by_order&nonce="+folders_media_options.nonce+"&order="+e(this).attr("data-sort"),method:"post",success:function(t){1==(t=e.parseJSON(t)).status&&(e("#js-tree-menu").jstree().destroy(),e("#js-tree-menu").append("<ul></ul>"),e("#js-tree-menu ul").html(t.data),C=t.terms,H(),Y()),e(".form-loader-count").css("width","0")}})}),e(document).on("change","#media-attachment-taxonomy-filter",function(t){e("#js-tree-menu").hasClass("jstree")&&e("#js-tree-menu").jstree(!0).deselect_all(),e(".active-item").removeClass("active-item"),"all"==e(this).val()?e(".all-posts").addClass("active-item"):"unassigned"==e(this).val()?e(".un-categorised-items").addClass("active-item"):e("#js-tree-menu").jstree("select_node",e(this).val())}),e(document).on("click",".jstree-node .jstree-icon",function(){d=e(this).closest("li.jstree-node").attr("id"),folderStatus=e("li.jstree-node[id='"+d+"']").hasClass("jstree-open")?1:0,e(".form-loader-count").css("width","100%"),p=B(d,"nonce"),ea(),e.ajax({url:folders_media_options.ajax_url,data:"is_active="+folderStatus+"&action=save_wcp_folder_state&term_id="+d+"&nonce="+p,method:"post",success:function(t){e(".form-loader-count").css("width","0"),"0"==(t=e.parseJSON(t)).status||(e("#wcp_folder_"+d).hasClass("active")?(e("#wcp_folder_"+d).removeClass("active"),e("#wcp_folder_"+d).find("ul.ui-sortable:first-child > li").slideUp(),folderStatus=0):(e("#wcp_folder_"+d).addClass("active"),e("#wcp_folder_"+d).find("ul.ui-sortable:first-child > li").slideDown(),folderStatus=1),es())}})}),e(document).on("keyup","#folder-search",function(){Z()}),e(document).on("change","#folder-search",function(){Z()}),e(document).on("blur","#folder-search",function(){Z()}),e(document).on("click","#do_not_show_again",function(){var t=e(this).is(":checked")?1:0;e.ajax({url:folders_media_options.ajax_url,type:"post",data:{action:"premio_hide_child_popup",status:t,nonce:folders_media_options.nonce,post_type:folders_media_options.post_type}})}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#js-tree-menu").addClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!0)):(e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"),e("#menu-checkbox").prop("checked",!1))}),e(document).on("click","#menu-checkbox",function(){e(this).is(":checked")?(e("#menu-checkbox").prop("checked",!0),e("#js-tree-menu").addClass("show-folder-checkbox")):(e("#menu-checkbox").prop("checked",!1),e("#js-tree-menu input.checkbox").attr("checked",!1),e("#js-tree-menu").removeClass("show-folder-checkbox"))}),e(document).on("click",".folder-checkbox, .input-checkbox",function(e){e.stopImmediatePropagation(),e.stopPropagation()}),e(document).on("click","#inline-remove, .delete-folder-action:not(.disabled)",function(){e("#js-tree-menu a.jstree-clicked").length?(c=e("#js-tree-menu a.jstree-clicked").closest("li.jstree-node").attr("id"),Q(1),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")):e("#menu-checkbox").is(":checked")&&(e(".dynamic-menu").remove(),Q(1))}),e(document).on("change",".folder_for_media",function(){"add-folder"==e(this).val()&&(y=!0,e("#add-new-folder").trigger("click"))}),e(document).on("click","#js-tree-menu input.checkbox",function(){J()}),z(),e(document).on("click",".undo-button, .undo-folder-action:not(.disabled)",function(){e("#do-undo").removeClass("active"),"yes"==folders_media_options.useFolderUndo&&e.ajax({url:folders_media_options.ajax_url,type:"post",data:{post_type:folders_media_options.post_type,nonce:folders_media_options.nonce,action:"wcp_undo_folder_changes"},success:function(a){if(e("#undo-done").addClass("active"),setTimeout(function(){e("#undo-done").removeClass("active")},2500),e("#media-attachment-taxonomy-filter").length){var o=parent.wp;t!=o.media&&(o.media.frame.setState("insert"),null!==o.media.frame.content.get()&&void 0!==o.media.frame.content.get().collection?(o.media.frame.content.get().collection.props.set({ignore:+new Date}),o.media.frame.content.get().options.selection.reset()):o.media.frame.library.props.set({ignore:+new Date}))}G()}})}),e(document).on("click",".close-undo-box",function(t){t.preventDefault(),e("#do-undo").removeClass("active")})}),e(document).ready(function(){"yes"==folders_media_options.use_shortcuts&&(e(document).on("click",".view-shortcodes",function(t){t.preventDefault(),e("#keyboard-shortcut").show()}),e(document).keydown(function(t){var a=!!t.ctrlKey||!!t.metaKey;if(!(e("input").is(":focus")||e("textarea").is(":focus"))&&t.shiftKey&&(78==t.keyCode||78==t.which)&&!e(".block-editor-block-list__block").is(":focus")&&e(".folder-modal").length&&(t.preventDefault(),e("#add-new-folder").trigger("click")),(113==t.keyCode||113==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),console.log("fileFolderID: "+c),ee(),e(".dynamic-menu").remove()),a&&(67==t.keyCode||67==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(isFolderCopy=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="copy",e(".folders-undo-notification").removeClass("active"),e("#copy-message").addClass("active"),setTimeout(function(){e("#copy-message").removeClass("active")},5e3),J()),a&&(88==t.keyCode||88==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),isFolderCopy=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),CPCAction="cut",e(".folders-undo-notification").removeClass("active"),e("#cut-message").addClass("active"),setTimeout(function(){e("#cut-message").removeClass("active")},5e3),J()),a&&(86==t.keyCode||86==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&(t.preventDefault(),(""==(g=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"))||isNaN(g))&&(g=0),0!=isFolderCopy&&""!=isFolderCopy&&isFolderCopy!=g&&("cut"==CPCAction?(lastParentID=e("#"+isFolderCopy).data("parent"),lastCopiedFolder=isFolderCopy,lastFolderOrder=e("#"+isFolderCopy).index()+1,""!=g&&0!=g?e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#"+g,0):e("#js-tree-menu").jstree("move_node","#"+isFolderCopy,"#",e("#js-tree-menu > ul > li.jstree-node").length),e(".folders-undo-notification").removeClass("active"),e("#paste-message").addClass("active"),setTimeout(function(){e("#paste-message").removeClass("active")},5e3)):((""==g||isNaN(g))&&(g=0),copyFolders(isFolderCopy,g)),J(),CPCAction="",isFolderCopy=0)),a&&(75==t.keyCode||75==t.which)&&e("#keyboard-shortcut").show(),a&&(40==t.keyCode||40==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var o=parseInt(e(".folder-modal #"+c).data("parent")),s=parseInt(e(".folder-modal #"+c).index())+1,r=parseInt(e(".folder-modal #"+c).data("child"));isNaN(o)&&(o=e(".folder-modal li#"+c).parents("li.jstree-node").length?e(".folder-modal li#"+c).parents("li.jstree-node").data("folder"):0,r=e(".folder-modal li#"+c).parents("li.jstree-node").length?e(".folder-modal li#"+c).parents("li.jstree-node").children():e(".folder-modal #js-tree-menu > ul > li").length),0==o&&(o=""),r==s?e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,0):e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,s+1)}if(a&&(38==t.keyCode||38==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var o=parseInt(e(".folder-modal #"+c).data("parent")),s=parseInt(e(".folder-modal #"+c).index())-1,r=parseInt(e(".folder-modal #"+c).data("child"));isNaN(o)&&(s=parseInt(e("#"+c).index())-1,o=e(".folder-modal li#"+c).parents("li.jstree-node").length?e(".folder-modal li#"+c).parents("li.jstree-node").data("folder"):0,r=e(".folder-modal li#"+c).parents("li.jstree-node").length?e(".folder-modal li#"+c).parents("li.jstree-node").children():e(".folder-modal #js-tree-menu > ul > li").length),0==o&&(o=""),-1==s?e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,r):e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,s)}if((46==t.keyCode||46==t.which||8==t.keyCode||8==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")&&!e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").hasClass("is-locked")&&(c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id"),Q(0),e(".dynamic-menu").remove(),e(".active-menu").removeClass("active-menu")),a&&(40==t.keyCode||40==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var o=parseInt(e("#"+c).data("parent")),s=parseInt(e("#"+c).index())+1,r=parseInt(e("#"+c).data("child"));0==o&&(o=""),r==s?e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,0):e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,s+1)}if(a&&(38==t.keyCode||38==t.which)&&e(".folder-modal #js-tree-menu .jstree-anchor").is(":focus")){c=e(".folder-modal #js-tree-menu .jstree-anchor:focus").closest("li.jstree-node").attr("id");var o=parseInt(e("#"+c).data("parent")),s=parseInt(e("#"+c).index())-1,r=parseInt(e("#"+c).data("child"));0==o&&(o=""),-1==s?e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,r):e(".folder-modal #js-tree-menu").jstree("move_node","#"+c,"#"+o,s)}(27==t.keyCode||27==t.which)&&(e(".folder-popup-form").hide(),e(".jstree-node[id='"+c+"']").length?e(".jstree-node[id='"+c+"'] > a.jstree-anchor").trigger("focus"):e("#js-tree-menu .jstree-anchor.jstree-clicked").length&&e("#js-tree-menu .jstree-anchor.jstree-clicked").trigger("focus"))}))})});
folders.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Organize your Media library, Pages, and Posts into folders. You can easily drag and drop items into directories and change the folders tree view.
5
- * Version: 2.8.5
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
@@ -24,7 +24,7 @@ if(!defined("WCP_FOLDER_URL")) {
24
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
25
  }
26
  if(!defined("WCP_FOLDER_VERSION")) {
27
- define('WCP_FOLDER_VERSION', "2.8.5");
28
  }
29
 
30
 
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Organize your Media library, Pages, and Posts into folders. You can easily drag and drop items into directories and change the folders tree view.
5
+ * Version: 2.8.6
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  * Text Domain: folders
24
  define('WCP_FOLDER_URL', plugin_dir_url(__FILE__));
25
  }
26
  if(!defined("WCP_FOLDER_VERSION")) {
27
+ define('WCP_FOLDER_VERSION', "2.8.6");
28
  }
29
 
30
 
includes/class-affiliate.php CHANGED
@@ -189,18 +189,18 @@ class Folder_affiliate_program
189
  }
190
  </style>
191
  <div class="notice notice-info chaty-notice <?php echo esc_attr($this->pluginSlug) ?>-premio-affiliate <?php echo esc_attr($this->pluginSlug) ?>-premio-affiliate">
192
- <p>Hi there, you've been using <?php echo esc_attr($this->pluginName) ?> for a while now. Do you know that <b><?php echo esc_attr($this->pluginName) ?></b> has an affiliate program? Join now and get <b>25% lifetime commission</b> <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> Dismiss</a></p>
193
  <div class="clear clearfix"></div>
194
- <a class="button button-primary <?php echo esc_attr($this->pluginSlug) ?>-affiliate-btn" target="_blank" href="https://premio.io/affiliates/?utm_source=inapp&plugin=folders&domain=<?php echo esc_url($_SERVER['HTTP_HOST']) ?>">Tell me more <span class="dashicons dashicons-arrow-right-alt"></span></a>
195
  </div>
196
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-popup">
197
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-popup-content">
198
  <button class="<?php echo esc_attr($this->pluginSlug) ?>-close-affiliate-popup"><span class="dashicons dashicons-no-alt"></span></button>
199
- <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-title">Would you like us to remind you about this later?</div>
200
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-options">
201
- <a href="javascript:;" data-days="3">Remind me in 3 days</a>
202
- <a href="javascript:;" data-days="10">Remind me in 10 days</a>
203
- <a href="javascript:;" data-days="-1" class="dismiss">Don't remind me about this</a>
204
  </div>
205
  </div>
206
  </div>
189
  }
190
  </style>
191
  <div class="notice notice-info chaty-notice <?php echo esc_attr($this->pluginSlug) ?>-premio-affiliate <?php echo esc_attr($this->pluginSlug) ?>-premio-affiliate">
192
+ <p><?php printf(esc_html__("Hi there, you've been using %s for a while now. Do you know that %s has an affiliate program? Join now and get %s ", "folders"), $this->pluginName, "<b>".$this->pluginName."</b>", "<b>".esc_html__("25% lifetime commission", "folders")."</b>") ?> <a href="javascript:;" class="dismiss-btn"><span class="dashicons dashicons-no-alt"></span> <?php esc_html_e("Dismiss", "folders") ?></a></p>
193
  <div class="clear clearfix"></div>
194
+ <a class="button button-primary <?php echo esc_attr($this->pluginSlug) ?>-affiliate-btn" target="_blank" href="https://premio.io/affiliates/?utm_source=inapp&plugin=folders&domain=<?php echo esc_url($_SERVER['HTTP_HOST']) ?>"><?php esc_html_e("Tell me more", "folders") ?> <span class="dashicons dashicons-arrow-right-alt"></span></a>
195
  </div>
196
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-popup">
197
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-popup-content">
198
  <button class="<?php echo esc_attr($this->pluginSlug) ?>-close-affiliate-popup"><span class="dashicons dashicons-no-alt"></span></button>
199
+ <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-title"><?php esc_html_e("Would you like us to remind you about this later?", "folders") ?></div>
200
  <div class="<?php echo esc_attr($this->pluginSlug) ?>-affiliate-options">
201
+ <a href="javascript:;" data-days="3"><?php esc_html_e("Remind me in 3 days", "folders") ?></a>
202
+ <a href="javascript:;" data-days="10"><?php esc_html_e("Remind me in 10 days", "folders") ?></a>
203
+ <a href="javascript:;" data-days="-1" class="dismiss"><?php esc_html_e("Don't remind me about this", "folders") ?></a>
204
  </div>
205
  </div>
206
  </div>
includes/folders.class.php CHANGED
@@ -69,6 +69,16 @@ class WCP_Folders
69
  private static $folderSettings = false;
70
 
71
 
 
 
 
 
 
 
 
 
 
 
72
  /**
73
  * Define the core functionality of the import data functionality.
74
  *
@@ -234,8 +244,38 @@ class WCP_Folders
234
  * */
235
  add_action('wp_ajax_hide_folders_cta', [$this, 'hide_folders_cta']);
236
 
 
 
237
  }//end __construct()
238
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
 
240
  /**
241
  * Hide CTA button text
@@ -675,19 +715,17 @@ class WCP_Folders
675
 
676
 
677
  /**
678
- * Get folder items without trash
679
  *
680
  * @since 1.0.0
681
  * @access public
682
- * @return $folders
683
  */
684
  public function get_terms_filter_without_trash($terms, $taxonomies, $args)
685
  {
686
-
687
  $isForFolders = 0;
688
- if (!empty($taxonomies) && is_array($taxonomies) && count($taxonomies)) {
689
  foreach ($taxonomies as $taxonomy) {
690
- if (in_array($taxonomy, ["media_folder", "folder", "post_folder"])) {
691
  $isForFolders = 1;
692
  } else {
693
  $folder = substr($taxonomy, -7);
@@ -698,37 +736,37 @@ class WCP_Folders
698
  }
699
  }
700
 
701
- if ($isForFolders) {
702
  global $wpdb;
703
  if (!is_array($terms) && count($terms) < 1) {
704
  return $terms;
705
  }
706
 
707
  $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
 
708
  if ($trash_folders === false) {
709
- $trash_folders = [];
710
- $initial_trash_folders = [];
711
  }
712
 
713
- $post_table = $wpdb->prefix."posts";
714
- $term_table = $wpdb->prefix."term_relationships";
715
- $options = get_option('folders_settings');
716
- $option_array = [];
717
  if (!empty($options)) {
718
  foreach ($options as $option) {
719
  $option_array[] = self::get_custom_post_type($option);
720
  }
721
  }
722
-
723
  foreach ($terms as $key => $term) {
724
- if (isset($term->term_taxonomy_id) && isset($term->taxonomy) && !empty($term->taxonomy) && in_array($term->taxonomy, $option_array)) {
725
  $trash_count = null;
726
  if (isset($trash_folders[$term->term_taxonomy_id])) {
727
  $trash_count = $trash_folders[$term->term_taxonomy_id];
728
  } else {
729
  if (has_filter("premio_folder_item_in_taxonomy")) {
730
  $post_type = "";
731
- $taxonomy = $term->taxonomy;
732
 
733
  if ($taxonomy == "post_folder") {
734
  $post_type = "post";
@@ -739,20 +777,19 @@ class WCP_Folders
739
  } else {
740
  $post_type = trim($taxonomy, "'_folder'");
741
  }
742
-
743
- $arg = [
744
  'post_type' => $post_type,
745
- 'taxonomy' => $taxonomy,
746
- ];
747
  $trash_count = apply_filters("premio_folder_item_in_taxonomy", $term->term_id, $arg);
748
  }
749
 
750
  if ($trash_count === null) {
751
- $query = "SELECT COUNT(DISTINCT(p.ID))
752
- FROM {$post_table} p
753
- JOIN {$term_table} rl ON p.ID = rl.object_id
754
- WHERE rl.term_taxonomy_id = '%d' AND p.post_status != 'trash' LIMIT 1";
755
- $query = $wpdb->prepare($query, $term->term_taxonomy_id);
756
  $result = $wpdb->get_var($query);
757
  if (intval($result) > 0) {
758
  $trash_count = intval($result);
@@ -760,23 +797,20 @@ class WCP_Folders
760
  $trash_count = 0;
761
  }
762
  }
763
- }//end if
764
-
765
  if ($trash_count === null) {
766
  $trash_count = 0;
767
  }
768
-
769
  $terms[$key]->trash_count = $trash_count;
770
  $trash_folders[$term->term_taxonomy_id] = $trash_count;
771
- }//end if
772
- }//end foreach
773
 
774
  if (!empty($terms) && $initial_trash_folders != $trash_folders) {
775
  delete_transient("premio_folders_without_trash");
776
- set_transient("premio_folders_without_trash", $trash_folders, (3 * DAY_IN_SECONDS));
777
  }
778
- }//end if
779
-
780
  return $terms;
781
 
782
  }//end get_terms_filter_without_trash()
@@ -806,7 +840,7 @@ class WCP_Folders
806
  */
807
  public function folders_text()
808
  {
809
- load_plugin_textdomain("folders", false, dirname(plugin_basename(__FILE__)).'/languages/');
810
 
811
  }//end folders_text()
812
 
@@ -1547,56 +1581,87 @@ class WCP_Folders
1547
 
1548
 
1549
  /**
1550
- * Get unassigned page, post, media
1551
  *
1552
  * @since 1.0.0
1553
  * @access public
1554
- * @return $folders
1555
  */
1556
  public function get_tempt_posts($post_type="")
1557
  {
1558
  global $wpdb;
1559
 
1560
- $post_table = $wpdb->prefix."posts";
1561
- $term_table = $wpdb->prefix."term_relationships";
1562
  $term_taxonomy_table = $wpdb->prefix."term_taxonomy";
1563
- $taxonomy = self::get_custom_post_type($post_type);
 
1564
  $tlrcds = null;
1565
- if (has_filter("premio_folder_un_categorized_items")) {
1566
  $tlrcds = apply_filters("premio_folder_un_categorized_items", $post_type, $taxonomy);
1567
  }
1568
-
1569
- if ($tlrcds === null) {
1570
- if ($post_type != "attachment") {
1571
- $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1572
- NOT EXISTS (
1573
- SELECT 1
1574
- FROM {$term_table}
1575
- INNER JOIN {$term_taxonomy_table}
1576
- ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1577
- WHERE {$term_taxonomy_table}.taxonomy = '%s'
1578
- AND {$term_table}.object_id = {$post_table}.ID
1579
- )
1580
- ) AND {$post_table}.post_type = '%s' AND (({$post_table}.post_status = 'publish' OR {$post_table}.post_status = 'future' OR {$post_table}.post_status = 'draft' OR {$post_table}.post_status = 'private'))";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1581
  } else {
1582
- $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1583
- NOT EXISTS (
1584
- SELECT 1
1585
- FROM {$term_table}
1586
- INNER JOIN {$term_taxonomy_table}
1587
- ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1588
- WHERE {$term_taxonomy_table}.taxonomy = '%s'
1589
- AND {$term_table}.object_id = {$post_table}.ID
1590
- )
1591
- ) AND {$post_table}.post_type = '%s' AND {$post_table}.post_status = 'inherit'";
1592
- }//end if
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1593
 
1594
  $query = $wpdb->prepare($query, $taxonomy, $post_type);
1595
 
1596
  $tlrcds = $wpdb->get_var($query);
1597
- }//end if
1598
 
1599
- if (!empty($tlrcds)) {
1600
  return $tlrcds;
1601
  } else {
1602
  return 0;
@@ -1796,10 +1861,11 @@ class WCP_Folders
1796
 
1797
  $use_shortcuts = !isset($customize_folders['use_shortcuts']) ? "yes" : $customize_folders['use_shortcuts'];
1798
 
 
1799
  wp_dequeue_script("jquery-jstree");
1800
  // CMS Tree Page View Conflict
 
1801
  wp_enqueue_script('folders-tree', WCP_FOLDER_URL.'assets/js/jstree.min.js', [], WCP_FOLDER_VERSION);
1802
- wp_enqueue_script('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL.'assets/js/jquery.mcustomscrollbar.min.js', [], WCP_FOLDER_VERSION);
1803
  wp_enqueue_script('wcp-folders-media', WCP_FOLDER_URL.'assets/js/page-post-media.min.js', ['jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'], WCP_FOLDER_VERSION, true);
1804
  wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)).'assets/js/jquery.ui.touch-punch.min.js', ['jquery'], WCP_FOLDER_VERSION);
1805
  wp_localize_script(
@@ -1834,11 +1900,12 @@ class WCP_Folders
1834
  'defaultTimeout' => $defaultTimeout,
1835
  'default_folder' => $default_folder,
1836
  'use_shortcuts' => $use_shortcuts,
 
1837
  ]
1838
  );
1839
  // Free/Pro URL Change
1840
  wp_enqueue_style('folders-jstree', WCP_FOLDER_URL.'assets/css/jstree.min.css', [], WCP_FOLDER_VERSION);
1841
- wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL.'assets/css/jquery.mcustomscrollbar.min.css', [], WCP_FOLDER_VERSION);
1842
  wp_enqueue_style('folder-folders', WCP_FOLDER_URL.'assets/css/folders.min.css', [], WCP_FOLDER_VERSION);
1843
  wp_enqueue_style('folders-media', WCP_FOLDER_URL.'assets/css/page-post-media.min.css', [], WCP_FOLDER_VERSION);
1844
  wp_enqueue_style('folder-icon', WCP_FOLDER_URL.'assets/css/folder-icon.css', [], WCP_FOLDER_VERSION);
@@ -1862,6 +1929,7 @@ class WCP_Folders
1862
  $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']);
1863
  $css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(".esc_attr($rgbColor['r']).",".esc_attr($rgbColor['g']).",".esc_attr($rgbColor['b']).", 0.08) !important; color: #333333;}";
1864
  $css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff !important; }";
 
1865
  $css_text .= "#custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in >, body #custom-scroll-menu *.drag-in > a:hover { background: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff !important; }";
1866
  $css_text .= ".drag-bot > a { border-bottom: solid 2px ".esc_attr($customize_folders['folder_bg_color'])."}";
1867
  $css_text .= ".drag-up > a { border-top: solid 2px ".esc_attr($customize_folders['folder_bg_color'])."}";
@@ -1871,6 +1939,7 @@ class WCP_Folders
1871
  $css_text .= ".wcp-drop-hover {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff; }";
1872
  $css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
1873
  $css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
 
1874
  $css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(".esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08").") }";
1875
  $css_text .= ".jstree-default .jstree-clicked { background-color:".esc_attr($customize_folders['folder_bg_color'])."}";
1876
  $css_text .= ".jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: ".esc_attr($customize_folders['folder_bg_color'])."; color: #ffffff; }";
@@ -3879,7 +3948,7 @@ class WCP_Folders
3879
  } else if ($type == "email") {
3880
  $value = filter_var($value, FILTER_SANITIZE_EMAIL);
3881
  } else {
3882
- $value = filter_var($value);
3883
  }
3884
 
3885
  return $value;
@@ -4234,22 +4303,18 @@ class WCP_Folders
4234
  if (empty($post_type)) {
4235
  $post_type = $typenow;
4236
  }
4237
-
4238
  $item_count = null;
4239
- if (has_filter("premio_folder_all_categorized_items")) {
4240
  $item_count = apply_filters("premio_folder_all_categorized_items", $post_type);
4241
  }
4242
-
4243
- if ($item_count === null) {
4244
  if ($post_type == "attachment") {
4245
  $item_count = wp_count_posts($post_type)->inherit;
4246
  } else {
4247
- $item_count = (wp_count_posts($post_type)->publish + wp_count_posts($post_type)->draft + wp_count_posts($post_type)->future + wp_count_posts($post_type)->private);
4248
  }
4249
  }
4250
-
4251
  return $item_count;
4252
-
4253
  }//end get_ttlpst()
4254
 
4255
 
@@ -4594,8 +4659,8 @@ class WCP_Folders
4594
  wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)).'assets/css/folder-icon.css', [], WCP_FOLDER_VERSION);
4595
  wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)).'assets/css/design.min.css', [], WCP_FOLDER_VERSION);
4596
  wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)).'assets/css/jstree.min.css', [], WCP_FOLDER_VERSION);
4597
- wp_enqueue_style('wcp-folders-mcustomscrollbar', WCP_FOLDER_URL.'assets/css/jquery.mcustomscrollbar.min.css', [], WCP_FOLDER_VERSION);
4598
- wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)).'assets/css/folders.css', [], WCP_FOLDER_VERSION);
4599
  }
4600
 
4601
  if ($page == "media_page_folders-media-cleaning") {
@@ -4736,12 +4801,16 @@ class WCP_Folders
4736
  'href' => [],
4737
  'title' => [],
4738
  'target' => [],
 
4739
  ],
4740
  "span" => [
4741
  'class' => []
4742
  ]
4743
  ];
4744
 
 
 
 
4745
  if (!empty($content) && is_array($content)) {
4746
  echo '<ul class="subsubsub">';
4747
  foreach ($content as $k => $v) {
@@ -4778,12 +4847,17 @@ class WCP_Folders
4778
  // Free/Pro Version change
4779
  wp_dequeue_script("jquery-jstree");
4780
  wp_enqueue_script('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)).'assets/js/jstree.min.js', ['jquery'], WCP_FOLDER_VERSION);
4781
- wp_enqueue_script('wcp-folders-mcustomscrollbar', plugin_dir_url(dirname(__FILE__)).'assets/js/jquery.mcustomscrollbar.min.js', [], WCP_FOLDER_VERSION);
4782
  wp_enqueue_script('wcp-folders-custom', plugin_dir_url(dirname(__FILE__)).'assets/js/folders.min.js', ['jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'], WCP_FOLDER_VERSION);
4783
  wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)).'assets/js/jquery.ui.touch-punch.min.js', ['jquery'], WCP_FOLDER_VERSION);
4784
 
4785
  $post_type = self::get_custom_post_type($typenow);
4786
 
 
 
 
 
 
4787
  if ($typenow == "attachment") {
4788
  $admin_url = admin_url("upload.php?post_type=attachment&media_folder=");
4789
  } else {
@@ -4793,6 +4867,10 @@ class WCP_Folders
4793
  $admin_url .= "&s=".esc_attr($search);
4794
  }
4795
 
 
 
 
 
4796
  $admin_url .= "&".esc_attr($post_type)."=";
4797
  }
4798
 
@@ -4878,8 +4956,12 @@ class WCP_Folders
4878
  $currentPage = filter_input(INPUT_GET, 'paged');
4879
  if (!empty($currentPage)) {
4880
  $currentPage = intval($currentPage);
 
 
4881
  }
4882
 
 
 
4883
  $hasStars = self::check_for_setting("has_stars", "general");
4884
  $hasChild = self::check_for_setting("has_child", "general");
4885
  $hasChild = empty($hasChild) ? 0 : 1;
@@ -4891,6 +4973,7 @@ class WCP_Folders
4891
  'ajax_url' => admin_url('admin-ajax.php'),
4892
  'upgrade_url' => $this->getFoldersUpgradeURL(),
4893
  'post_type' => $typenow,
 
4894
  'page_url' => $admin_url,
4895
  'current_url' => $current_url,
4896
  'ajax_image' => plugin_dir_url(dirname(__FILE__))."assets/images/ajax-loader.gif",
@@ -4914,6 +4997,8 @@ class WCP_Folders
4914
  'defaultTimeout' => $defaultTimeout,
4915
  'default_folder' => $default_folder,
4916
  'use_shortcuts' => $use_shortcuts,
 
 
4917
  ]
4918
  );
4919
  } else {
@@ -4953,6 +5038,82 @@ class WCP_Folders
4953
  }//end folders_admin_scripts()
4954
 
4955
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4956
  /**
4957
  * Redirect to folders settings page on Plugin activation
4958
  *
@@ -6602,3 +6763,16 @@ class WCP_Folders
6602
 
6603
  }//end class
6604
 
 
 
 
 
 
 
 
 
 
 
 
 
 
69
  private static $folderSettings = false;
70
 
71
 
72
+ /**
73
+ * Folders Settings
74
+ *
75
+ * @var array $folders_settings Folders Settings
76
+ * @since 1.0.0
77
+ * @access public
78
+ */
79
+ var $folders_settings = false;
80
+
81
+
82
  /**
83
  * Define the core functionality of the import data functionality.
84
  *
244
  * */
245
  add_action('wp_ajax_hide_folders_cta', [$this, 'hide_folders_cta']);
246
 
247
+ add_action("manage_posts_extra_tablenav", [$this, "manage_posts_extra_fields"]);
248
+
249
  }//end __construct()
250
 
251
+ /**
252
+ * Add extra params in search
253
+ *
254
+ * @since 1.0.0
255
+ * @access public
256
+ * @return $response
257
+ */
258
+ function manage_posts_extra_fields($which) {
259
+ global $typenow;
260
+ if($which == "top" && !empty($typenow)) {
261
+ if ($this->folders_settings === false) {
262
+ $this->folders_settings = get_option('folders_settings');
263
+ $this->folders_settings = $this->folders_settings;
264
+ $this->folders_settings = is_array($this->folders_settings) ? $this->folders_settings : [];
265
+ }
266
+ if(in_array($typenow, $this->folders_settings)) {
267
+ $folder_type = self::get_custom_post_type($typenow);
268
+ if(isset($_REQUEST[$folder_type]) && !empty($_REQUEST[$folder_type])) {
269
+ $folder = sanitize_text_field($_REQUEST[$folder_type]);
270
+ echo "<input type='hidden' name='".esc_attr($folder_type)."' value='".esc_attr($folder)."' />";
271
+ } else if(isset($_REQUEST['ajax_action']) && $_REQUEST['ajax_action'] == "premio_dynamic_folders" && isset($_REQUEST['dynamic_folder'])) {
272
+ $dynamic_folder = sanitize_text_field($_REQUEST['dynamic_folder']);
273
+ echo "<input type='hidden' name='ajax_action' value='premio_dynamic_folders' />";
274
+ echo "<input type='hidden' name='dynamic_folder' value='".esc_attr($dynamic_folder)."' />";
275
+ }
276
+ }
277
+ }
278
+ }
279
 
280
  /**
281
  * Hide CTA button text
715
 
716
 
717
  /**
718
+ * Filter folders without trash count
719
  *
720
  * @since 1.0.0
721
  * @access public
 
722
  */
723
  public function get_terms_filter_without_trash($terms, $taxonomies, $args)
724
  {
 
725
  $isForFolders = 0;
726
+ if(!empty($taxonomies) && is_array($taxonomies) && count($taxonomies)){
727
  foreach ($taxonomies as $taxonomy) {
728
+ if (in_array($taxonomy, array("media_folder", "folder", "post_folder"))) {
729
  $isForFolders = 1;
730
  } else {
731
  $folder = substr($taxonomy, -7);
736
  }
737
  }
738
 
739
+ if($isForFolders) {
740
  global $wpdb;
741
  if (!is_array($terms) && count($terms) < 1) {
742
  return $terms;
743
  }
744
 
745
  $trash_folders = $initial_trash_folders = get_transient("premio_folders_without_trash");
746
+
747
  if ($trash_folders === false) {
748
+ $trash_folders = array();
749
+ $initial_trash_folders = array();
750
  }
751
 
752
+ $post_table = $wpdb->prefix . "posts";
753
+ $term_table = $wpdb->prefix . "term_relationships";
754
+ $options = get_option('folders_settings');
755
+ $option_array = array();
756
  if (!empty($options)) {
757
  foreach ($options as $option) {
758
  $option_array[] = self::get_custom_post_type($option);
759
  }
760
  }
 
761
  foreach ($terms as $key => $term) {
762
+ if (isset($term->term_id) && isset($term->taxonomy) && !empty($term->taxonomy) && in_array($term->taxonomy, $option_array)) {
763
  $trash_count = null;
764
  if (isset($trash_folders[$term->term_taxonomy_id])) {
765
  $trash_count = $trash_folders[$term->term_taxonomy_id];
766
  } else {
767
  if (has_filter("premio_folder_item_in_taxonomy")) {
768
  $post_type = "";
769
+ $taxonomy = $term->taxonomy;
770
 
771
  if ($taxonomy == "post_folder") {
772
  $post_type = "post";
777
  } else {
778
  $post_type = trim($taxonomy, "'_folder'");
779
  }
780
+ $arg = array(
 
781
  'post_type' => $post_type,
782
+ 'taxonomy' => $taxonomy,
783
+ );
784
  $trash_count = apply_filters("premio_folder_item_in_taxonomy", $term->term_id, $arg);
785
  }
786
 
787
  if ($trash_count === null) {
788
+ //$result = $wpdb->get_var("SELECT COUNT(*) FROM {$post_table} p JOIN {$term_table} rl ON p.ID = rl.object_id WHERE rl.term_taxonomy_id = '{$term->term_taxonomy_id}' AND p.post_status != 'trash' LIMIT 1");
789
+ $query = "SELECT COUNT(DISTINCT(p.ID))
790
+ FROM {$post_table} p
791
+ JOIN {$term_table} rl ON p.ID = rl.object_id
792
+ WHERE rl.term_taxonomy_id = '{$term->term_taxonomy_id}' AND p.post_status != 'trash' LIMIT 1";
793
  $result = $wpdb->get_var($query);
794
  if (intval($result) > 0) {
795
  $trash_count = intval($result);
797
  $trash_count = 0;
798
  }
799
  }
800
+ }
 
801
  if ($trash_count === null) {
802
  $trash_count = 0;
803
  }
 
804
  $terms[$key]->trash_count = $trash_count;
805
  $trash_folders[$term->term_taxonomy_id] = $trash_count;
806
+ }
807
+ }
808
 
809
  if (!empty($terms) && $initial_trash_folders != $trash_folders) {
810
  delete_transient("premio_folders_without_trash");
811
+ set_transient("premio_folders_without_trash", $trash_folders, 3 * DAY_IN_SECONDS);
812
  }
813
+ }
 
814
  return $terms;
815
 
816
  }//end get_terms_filter_without_trash()
840
  */
841
  public function folders_text()
842
  {
843
+ load_plugin_textdomain("folders", false, dirname(dirname(plugin_basename(__FILE__))).'/languages/');
844
 
845
  }//end folders_text()
846
 
1581
 
1582
 
1583
  /**
1584
+ * Returns total folders
1585
  *
1586
  * @since 1.0.0
1587
  * @access public
 
1588
  */
1589
  public function get_tempt_posts($post_type="")
1590
  {
1591
  global $wpdb;
1592
 
1593
+ $post_table = $wpdb->prefix."posts";
1594
+ $term_table = $wpdb->prefix."term_relationships";
1595
  $term_taxonomy_table = $wpdb->prefix."term_taxonomy";
1596
+ $term_meta = $wpdb->prefix."termmeta";
1597
+ $taxonomy = self::get_custom_post_type($post_type);
1598
  $tlrcds = null;
1599
+ if(has_filter("premio_folder_un_categorized_items")) {
1600
  $tlrcds = apply_filters("premio_folder_un_categorized_items", $post_type, $taxonomy);
1601
  }
1602
+ if($tlrcds === null) {
1603
+ $user_filter = false;
1604
+
1605
+ if(!$user_filter) {
1606
+ if ($post_type != "attachment") {
1607
+ $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1608
+ NOT EXISTS (
1609
+ SELECT 1
1610
+ FROM {$term_table}
1611
+ INNER JOIN {$term_taxonomy_table}
1612
+ ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1613
+ WHERE {$term_taxonomy_table}.taxonomy = '%s'
1614
+ AND {$term_table}.object_id = {$post_table}.ID
1615
+ )
1616
+ ) AND {$post_table}.post_type = '%s' AND (({$post_table}.post_status = 'publish' OR {$post_table}.post_status = 'future' OR {$post_table}.post_status = 'draft' OR {$post_table}.post_status = 'private' OR {$post_table}.post_status = 'pending'))";
1617
+ } else {
1618
+ $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1619
+ NOT EXISTS (
1620
+ SELECT 1
1621
+ FROM {$term_table}
1622
+ INNER JOIN {$term_taxonomy_table}
1623
+ ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1624
+ WHERE {$term_taxonomy_table}.taxonomy = '%s'
1625
+ AND {$term_table}.object_id = {$post_table}.ID
1626
+ )
1627
+ ) AND {$post_table}.post_type = '%s' AND {$post_table}.post_status = 'inherit'";
1628
+ }
1629
  } else {
1630
+ if ($post_type != "attachment") {
1631
+ $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1632
+ NOT EXISTS (
1633
+ SELECT 1
1634
+ FROM {$term_table}
1635
+ INNER JOIN {$term_taxonomy_table}
1636
+ ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1637
+ INNER JOIN {$term_meta}
1638
+ ON {$term_meta}.term_id = {$term_table}.term_taxonomy_id AND {$term_meta}.meta_key = 'created_by' AND {$term_meta}.meta_value = {$user_id}
1639
+ WHERE {$term_taxonomy_table}.taxonomy = '%s'
1640
+ AND {$term_table}.object_id = {$post_table}.ID
1641
+ )
1642
+ ) AND {$post_table}.post_type = '%s' AND (({$post_table}.post_status = 'publish' OR {$post_table}.post_status = 'future' OR {$post_table}.post_status = 'draft' OR {$post_table}.post_status = 'private' OR {$post_table}.post_status = 'pending'))";
1643
+ } else {
1644
+ $query = "SELECT COUNT(DISTINCT({$post_table}.ID)) AS total_records FROM {$post_table} WHERE 1=1 AND (
1645
+ NOT EXISTS (
1646
+ SELECT 1
1647
+ FROM {$term_table}
1648
+ INNER JOIN {$term_taxonomy_table}
1649
+ ON {$term_taxonomy_table}.term_taxonomy_id = {$term_table}.term_taxonomy_id
1650
+ INNER JOIN {$term_meta}
1651
+ ON {$term_meta}.term_id = {$term_table}.term_taxonomy_id AND {$term_meta}.meta_key = 'created_by' AND {$term_meta}.meta_value = {$user_id}
1652
+ WHERE {$term_taxonomy_table}.taxonomy = '%s'
1653
+ AND {$term_table}.object_id = {$post_table}.ID
1654
+ )
1655
+ ) AND {$post_table}.post_type = '%s' AND {$post_table}.post_status = 'inherit'";
1656
+ }
1657
+ }
1658
 
1659
  $query = $wpdb->prepare($query, $taxonomy, $post_type);
1660
 
1661
  $tlrcds = $wpdb->get_var($query);
1662
+ }
1663
 
1664
+ if(!empty($tlrcds)) {
1665
  return $tlrcds;
1666
  } else {
1667
  return 0;
1861
 
1862
  $use_shortcuts = !isset($customize_folders['use_shortcuts']) ? "yes" : $customize_folders['use_shortcuts'];
1863
 
1864
+ $lang = $this->js_strings();
1865
  wp_dequeue_script("jquery-jstree");
1866
  // CMS Tree Page View Conflict
1867
+ wp_enqueue_script('folders-overlayscrollbars', WCP_FOLDER_URL.'assets/js/jquery.overlayscrollbars.min.js', [], WCP_FOLDER_VERSION);
1868
  wp_enqueue_script('folders-tree', WCP_FOLDER_URL.'assets/js/jstree.min.js', [], WCP_FOLDER_VERSION);
 
1869
  wp_enqueue_script('wcp-folders-media', WCP_FOLDER_URL.'assets/js/page-post-media.min.js', ['jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'], WCP_FOLDER_VERSION, true);
1870
  wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)).'assets/js/jquery.ui.touch-punch.min.js', ['jquery'], WCP_FOLDER_VERSION);
1871
  wp_localize_script(
1900
  'defaultTimeout' => $defaultTimeout,
1901
  'default_folder' => $default_folder,
1902
  'use_shortcuts' => $use_shortcuts,
1903
+ 'lang' => $lang
1904
  ]
1905
  );
1906
  // Free/Pro URL Change
1907
  wp_enqueue_style('folders-jstree', WCP_FOLDER_URL.'assets/css/jstree.min.css', [], WCP_FOLDER_VERSION);
1908
+ wp_enqueue_style('folder-overlayscrollbars', WCP_FOLDER_URL.'assets/css/overlayscrollbars.min.css', [], WCP_FOLDER_VERSION);
1909
  wp_enqueue_style('folder-folders', WCP_FOLDER_URL.'assets/css/folders.min.css', [], WCP_FOLDER_VERSION);
1910
  wp_enqueue_style('folders-media', WCP_FOLDER_URL.'assets/css/page-post-media.min.css', [], WCP_FOLDER_VERSION);
1911
  wp_enqueue_style('folder-icon', WCP_FOLDER_URL.'assets/css/folder-icon.css', [], WCP_FOLDER_VERSION);
1929
  $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']);
1930
  $css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover { background: rgba(".esc_attr($rgbColor['r']).",".esc_attr($rgbColor['g']).",".esc_attr($rgbColor['b']).", 0.08) !important; color: #333333;}";
1931
  $css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff !important; }";
1932
+ $css_text .= "body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked .folder-actions { background: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff !important; }";
1933
  $css_text .= "#custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in >, body #custom-scroll-menu *.drag-in > a:hover { background: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff !important; }";
1934
  $css_text .= ".drag-bot > a { border-bottom: solid 2px ".esc_attr($customize_folders['folder_bg_color'])."}";
1935
  $css_text .= ".drag-up > a { border-top: solid 2px ".esc_attr($customize_folders['folder_bg_color'])."}";
1939
  $css_text .= ".wcp-drop-hover {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important; color: #ffffff; }";
1940
  $css_text .= "#custom-menu .route .nav-icon .wcp-icon {color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
1941
  $css_text .= ".mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
1942
+ $css_text .= ".os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle {background-color: ".esc_attr($customize_folders['folder_bg_color'])." !important;}";
1943
  $css_text .= "body:not(.no-hover-css) .jstree-hovered {background: rgba(".esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08").") }";
1944
  $css_text .= ".jstree-default .jstree-clicked { background-color:".esc_attr($customize_folders['folder_bg_color'])."}";
1945
  $css_text .= ".jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: ".esc_attr($customize_folders['folder_bg_color'])."; color: #ffffff; }";
3948
  } else if ($type == "email") {
3949
  $value = filter_var($value, FILTER_SANITIZE_EMAIL);
3950
  } else {
3951
+ $value = sanitize_text_field($value);
3952
  }
3953
 
3954
  return $value;
4303
  if (empty($post_type)) {
4304
  $post_type = $typenow;
4305
  }
 
4306
  $item_count = null;
4307
+ if(has_filter("premio_folder_all_categorized_items")) {
4308
  $item_count = apply_filters("premio_folder_all_categorized_items", $post_type);
4309
  }
4310
+ if($item_count === null) {
 
4311
  if ($post_type == "attachment") {
4312
  $item_count = wp_count_posts($post_type)->inherit;
4313
  } else {
4314
+ $item_count = wp_count_posts($post_type)->publish + wp_count_posts($post_type)->draft + wp_count_posts($post_type)->future + wp_count_posts($post_type)->private + wp_count_posts($post_type)->pending;
4315
  }
4316
  }
 
4317
  return $item_count;
 
4318
  }//end get_ttlpst()
4319
 
4320
 
4659
  wp_enqueue_style('wcp-folders-fa', plugin_dir_url(dirname(__FILE__)).'assets/css/folder-icon.css', [], WCP_FOLDER_VERSION);
4660
  wp_enqueue_style('wcp-folders-admin', plugin_dir_url(dirname(__FILE__)).'assets/css/design.min.css', [], WCP_FOLDER_VERSION);
4661
  wp_enqueue_style('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)).'assets/css/jstree.min.css', [], WCP_FOLDER_VERSION);
4662
+ wp_enqueue_style('folder-overlayscrollbars', WCP_FOLDER_URL.'assets/css/overlayscrollbars.min.css', [], WCP_FOLDER_VERSION);
4663
+ wp_enqueue_style('wcp-folders-css', plugin_dir_url(dirname(__FILE__)).'assets/css/folders.min.css', [], WCP_FOLDER_VERSION);
4664
  }
4665
 
4666
  if ($page == "media_page_folders-media-cleaning") {
4801
  'href' => [],
4802
  'title' => [],
4803
  'target' => [],
4804
+ 'class' => []
4805
  ],
4806
  "span" => [
4807
  'class' => []
4808
  ]
4809
  ];
4810
 
4811
+ if(isset($content['mine'])) {
4812
+ unset($content['mine']);
4813
+ }
4814
  if (!empty($content) && is_array($content)) {
4815
  echo '<ul class="subsubsub">';
4816
  foreach ($content as $k => $v) {
4847
  // Free/Pro Version change
4848
  wp_dequeue_script("jquery-jstree");
4849
  wp_enqueue_script('wcp-folders-jstree', plugin_dir_url(dirname(__FILE__)).'assets/js/jstree.min.js', ['jquery'], WCP_FOLDER_VERSION);
4850
+ wp_enqueue_script('folders-overlayscrollbars', WCP_FOLDER_URL.'assets/js/jquery.overlayscrollbars.min.js', [], WCP_FOLDER_VERSION);
4851
  wp_enqueue_script('wcp-folders-custom', plugin_dir_url(dirname(__FILE__)).'assets/js/folders.min.js', ['jquery', 'jquery-ui-resizable', 'jquery-ui-draggable', 'jquery-ui-droppable', 'jquery-ui-sortable', 'backbone'], WCP_FOLDER_VERSION);
4852
  wp_enqueue_script('wcp-jquery-touch', plugin_dir_url(dirname(__FILE__)).'assets/js/jquery.ui.touch-punch.min.js', ['jquery'], WCP_FOLDER_VERSION);
4853
 
4854
  $post_type = self::get_custom_post_type($typenow);
4855
 
4856
+ $post_status = "";
4857
+ if (isset($_GET['post_status']) && !empty($_GET['post_status'])) {
4858
+ $post_status = folders_sanitize_text('post_status', 'get');
4859
+ }
4860
+
4861
  if ($typenow == "attachment") {
4862
  $admin_url = admin_url("upload.php?post_type=attachment&media_folder=");
4863
  } else {
4867
  $admin_url .= "&s=".esc_attr($search);
4868
  }
4869
 
4870
+ if (!empty($post_status)) {
4871
+ $admin_url .= "&post_status=".sanitize_text_field($post_status);
4872
+ }
4873
+
4874
  $admin_url .= "&".esc_attr($post_type)."=";
4875
  }
4876
 
4956
  $currentPage = filter_input(INPUT_GET, 'paged');
4957
  if (!empty($currentPage)) {
4958
  $currentPage = intval($currentPage);
4959
+ } else {
4960
+ $currentPage = 1;
4961
  }
4962
 
4963
+ $lang = $this->js_strings();
4964
+
4965
  $hasStars = self::check_for_setting("has_stars", "general");
4966
  $hasChild = self::check_for_setting("has_child", "general");
4967
  $hasChild = empty($hasChild) ? 0 : 1;
4973
  'ajax_url' => admin_url('admin-ajax.php'),
4974
  'upgrade_url' => $this->getFoldersUpgradeURL(),
4975
  'post_type' => $typenow,
4976
+ 'custom_type' => $post_type,
4977
  'page_url' => $admin_url,
4978
  'current_url' => $current_url,
4979
  'ajax_image' => plugin_dir_url(dirname(__FILE__))."assets/images/ajax-loader.gif",
4997
  'defaultTimeout' => $defaultTimeout,
4998
  'default_folder' => $default_folder,
4999
  'use_shortcuts' => $use_shortcuts,
5000
+ 'post_status' => $post_status,
5001
+ 'lang' => $lang,
5002
  ]
5003
  );
5004
  } else {
5038
  }//end folders_admin_scripts()
5039
 
5040
 
5041
+ /**
5042
+ * Translated strings for javascript
5043
+ *
5044
+ * @since 1.0.0
5045
+ * @access public
5046
+ */
5047
+ public function js_strings()
5048
+ {
5049
+ return [
5050
+ "ALL_FOLDERS" => esc_html__("All Folders", "folders"),
5051
+ "NEW_FOLDER" => esc_html__("New folder", "folders"),
5052
+ "NEW_SUB_FOLDER" => esc_html__("New Sub-folder", "folders"),
5053
+ "RENAME" => esc_html__("Rename", "folders"),
5054
+ "REMOVE_STICKY_FOLDER" => esc_html__("Remove Sticky Folder", "folders"),
5055
+ "STICKY_FOLDER" => esc_html__("Sticky Folder", "folders"),
5056
+ "REMOVE_STAR" => esc_html__("Remove Star", "folders"),
5057
+ "ADD_STAR" => esc_html__("Add Star", "folders"),
5058
+ "LOCK_FOLDER" => esc_html__("Lock Folder", "folders"),
5059
+ "UNLOCK_FOLDER" => esc_html__("Unlock Folder", "folders"),
5060
+ "DUPLICATE_FOLDER" => esc_html__("Duplicate folder", "folders"),
5061
+ "DOWNLOAD_ZIP" => esc_html__("Download Zip", "folders"),
5062
+ "OPEN_THIS_FOLDER" => esc_html__("Open this folder by default", "folders"),
5063
+ "REMOVE_THIS_FOLDER" => esc_html__("Remove default folder", "folders"),
5064
+ "CUT" => esc_html__("Cut", "folders"),
5065
+ "COPY" => esc_html__("Copy", "folders"),
5066
+ "PASTE" => esc_html__("Paste", "folders"),
5067
+ "DELETE" => esc_html__("Delete", "folders"),
5068
+ "BULK_ORGANIZE" => esc_html__("Bulk Organize", "folders"),
5069
+ "DRAG_AND_DROP" => esc_html__("Drag and drop your media files to the relevant folders", "folders"),
5070
+ "SELECT_ALL" => esc_html__("Select All", "folders"),
5071
+ "MOVE_SELECTED_FILES" => esc_html__("Move Selected files to:", "folders"),
5072
+ "UPLOADING_FILES" => esc_html__("Uploading files", "folders"),
5073
+ "SELECT_ITEMS_TO_MOVE" => esc_html__("Please select items to move in folder", "folders"),
5074
+ "LOADING_FILES" => esc_html__("Loading...", "folders"),
5075
+ "SELECT_FOLDER" => esc_html__("Select Folder", "folders"),
5076
+ "UNASSIGNED" => esc_html__("(Unassigned)", "folders"),
5077
+ "SELECT_ITEMS" => esc_html__("Select Items to move", "folders"),
5078
+ "ONE_ITEM" => esc_html__("1 Item", "folders"),
5079
+ "ITEMS" => esc_html__("Items", "folders"),
5080
+ "SELECTED" => esc_html__("Selected", "folders"),
5081
+ "MOVE_TO_FOLDER" => esc_html__("Move to Folder", "folders"),
5082
+ "DELETE_FOLDER_MESSAGE" => esc_html__("Are you sure you want to delete the selected folder?", "folders"),
5083
+ "ITEM_NOT_DELETED" => esc_html__("Items in the folder will not be deleted.", "folders"),
5084
+ "DELETE_FOLDERS_MESSAGE" => esc_html__("Are you sure you want to delete the selected folders?", "folders"),
5085
+ "ITEMS_NOT_DELETED" => esc_html__("Items in the selected folders will not be deleted.", "folders"),
5086
+ "SELECT_AT_LEAST_ONE_FOLDER" => esc_html__("Please select at least one folder to delete", "folders"),
5087
+ "YES_DELETE_IT" => esc_html__("Yes, Delete it!", "folders"),
5088
+ "SUBMIT" => esc_html__("Submit", "folders"),
5089
+ "EXPAND" => esc_html__("Expand", "folders"),
5090
+ "COLLAPSE" => esc_html__("Collapse", "folders"),
5091
+ "DUPLICATING_FOLDER" => esc_html__("Duplicating to a new folder", "folders"),
5092
+ "ADD_NEW_FOLDER" => esc_html__("Add a new folder", "folders"),
5093
+ "ACTIVATE" => [
5094
+ "REMOVE_STAR" => esc_html__("Remove Star (Activate)", "folders"),
5095
+ "ADD_STAR" => esc_html__("Add a Star (Activate)", "folders"),
5096
+ "STICKY_FOLDER" => esc_html__("Sticky Folder (Activate)", "folders"),
5097
+ "NEW_SUB_FOLDER" => esc_html__("New Sub-folder (Activate)", "folders"),
5098
+ "LOCK_FOLDER" => esc_html__("Lock Folder (Activate)", "folders"),
5099
+ "DUPLICATE_FOLDER" => esc_html__("Duplicate folder (Activate)", "folders"),
5100
+ "DOWNLOAD_ZIP" => esc_html__("Download Zip (Activate)", "folders"),
5101
+ ],
5102
+ "PRO" => [
5103
+ "ADD_STAR" => esc_html__("Add a Star (Pro)", "folders"),
5104
+ "REMOVE_STAR" => esc_html__("Remove Star (Pro)", "folders"),
5105
+ "STICKY_FOLDER" => esc_html__("Sticky Folder (Pro)", "folders"),
5106
+ "NEW_SUB_FOLDER" => esc_html__("New Sub-folder (Pro)", "folders"),
5107
+ "LOCK_FOLDER" => esc_html__("Lock Folder (Pro)", "folders"),
5108
+ "DUPLICATE_FOLDER" => esc_html__("Duplicate folder (Pro)", "folders"),
5109
+ "DOWNLOAD_ZIP" => esc_html__("Download Zip (Pro)", "folders"),
5110
+ "OPEN_THIS_FOLDER" => esc_html__("Open this folder by default (Pro)", "folders"),
5111
+ ],
5112
+ ];
5113
+
5114
+ }//end js_strings()
5115
+
5116
+
5117
  /**
5118
  * Redirect to folders settings page on Plugin activation
5119
  *
6763
 
6764
  }//end class
6765
 
6766
+
6767
+ if(!function_exists("folders_sanitize_text")) {
6768
+ function folders_sanitize_text($key ,$type = "post") {
6769
+ if($type == "post") {
6770
+ $string = isset($_POST[$key])?sanitize_text_field($_POST[$key]):"";
6771
+ } else {
6772
+ $string = isset($_GET[$key])?sanitize_text_field($_GET[$key]):"";
6773
+ }
6774
+ $string = stripslashes($string);
6775
+ $str = preg_replace('/\x00|<[^>]*>?/', '', $string);
6776
+ return str_replace(["'", '"'], ['&#39;', '&#34;'], $str);
6777
+ }
6778
+ }
includes/plugins.class.php CHANGED
@@ -133,41 +133,59 @@ class WCP_Folder_Plugins
133
  }//end remove_plugin_folders_data()
134
 
135
 
136
- /**
137
- * Import data from other plugins
138
- *
139
- * @since 1.0.0
140
- * @access public
141
- * @return $response
142
- */
 
 
 
 
 
143
  public function import_plugin_folders_data()
144
  {
 
 
 
145
  $postData = filter_input_array(INPUT_POST);
146
 
147
- $plugin = isset($postData['plugin']) ? sanitize_text_field($postData['plugin']) : "";
148
- $nonce = isset($postData['nonce']) ? sanitize_text_field($postData['nonce']) : "";
149
- $response = [];
150
- $response['status'] = 0;
 
 
 
 
 
 
 
 
151
  $response['message'] = esc_html__("Invalid request", "folders");
152
  $response['data'] = [];
153
  $response['data']['plugin'] = $plugin;
154
  if (wp_verify_nonce($nonce, "import_data_from_".$plugin)) {
155
  $this->get_plugin_information();
156
- $folders = isset($this->plugins[$plugin]['folders']) ? $this->plugins[$plugin]['folders'] : [];
157
- $attachments = isset($this->plugins[$plugin]['attachments']) ? $this->plugins[$plugin]['attachments'] : [];
 
158
 
159
  $categoryByID = [];
160
  $foldersImported = [];
161
  $attachmentsImported = [];
162
-
163
  if ($plugin != 'filebird' && $plugin != 'real-media-library') {
 
164
  foreach ($folders as $folder) {
 
165
  $folder_id = $folder->term_id;
166
  $parent = intval($folder->parent);
167
 
168
  $taxonomy = 'media_folder';
169
 
170
- foreach ($this->postTypes as $post_type) {
171
  if (strpos($folder->taxonomy, $post_type) !== false) {
172
  if ($post_type == "post") {
173
  $taxonomy = "post_folder";
@@ -188,7 +206,17 @@ class WCP_Folder_Plugins
188
  $new_term = wp_insert_term($folder->name, $taxonomy, ['parent' => $parent]);
189
 
190
  if (is_wp_error($new_term)) {
191
- continue;
 
 
 
 
 
 
 
 
 
 
192
  }
193
 
194
  $arg = [
@@ -225,47 +253,54 @@ class WCP_Folder_Plugins
225
  'parent' => $parent,
226
  'name' => $folder->name,
227
  ];
228
- }//end foreach
229
-
230
- // STEP: Assign plugin categories to HF categories
231
- foreach ($attachments as $attachment) {
232
- $hf_category_id = isset($categoryByID[$attachment->term_taxonomy_id]['term_id']) ? intval($categoryByID[$attachment->term_taxonomy_id]['term_id']) : 0;
233
- $attachment_id = isset($attachment->object_id) ? intval($attachment->object_id) : 0;
234
 
235
- if (!$hf_category_id || !$attachment_id) {
236
- continue;
237
- }
238
-
239
- // Get attachment taxonomy by post type
240
- $post_type = get_post_type($attachment_id);
241
- if ($post_type == "post") {
242
- $taxonomy = "post_folder";
243
- } else if ($post_type == "page") {
244
- $taxonomy = "folder";
245
- } else if ($post_type == "attachment") {
246
- $taxonomy = "media_folder";
247
- } else {
248
- $taxonomy = $post_type.'_folder';
249
- }
250
-
251
- $term_ids = wp_get_object_terms($attachment_id, $taxonomy, ['fields' => 'ids']);
252
- $term_ids[] = $hf_category_id;
253
-
254
- $term_set = wp_set_object_terms($attachment_id, $term_ids, $taxonomy);
255
-
256
- if (is_wp_error($term_set)) {
257
- continue;
258
- }
 
 
259
 
260
- $attachmentsImported[] = [
261
- 'cat_id' => $hf_category_id,
262
- 'term_ids' => $term_ids,
263
- 'set' => $term_set,
264
- ];
 
 
 
 
265
  }//end foreach
266
  } else {
 
 
267
  foreach ($folders as $folder) {
268
- $parent = intval($folder->parent);
 
 
 
 
 
269
  $parentID = 0;
270
 
271
  if ($parent && isset($categoryByID[$parent]['term_id'])) {
@@ -275,7 +310,17 @@ class WCP_Folder_Plugins
275
  $new_term = wp_insert_term($folder->name, "media_folder", ['parent' => $parentID]);
276
 
277
  if (is_wp_error($new_term)) {
278
- continue;
 
 
 
 
 
 
 
 
 
 
279
  }
280
 
281
  $taxonomy = 'media_folder';
@@ -298,38 +343,55 @@ class WCP_Folder_Plugins
298
  'parent' => $parent,
299
  'term_id' => $new_term['term_id'],
300
  ];
301
- }//end foreach
302
-
303
- foreach ($attachments as $attachment) {
304
- $hf_category_id = isset($categoryByID[$attachment->folder_id]['term_id']) ? intval($categoryByID[$attachment->folder_id]['term_id']) : 0;
305
- $attachment_id = isset($attachment->attachment_id) ? intval($attachment->attachment_id) : 0;
306
-
307
- if (! $hf_category_id || ! $attachment_id) {
308
- continue;
309
- }
310
 
311
- $term_ids = wp_get_object_terms($attachment_id, "media_folder", ['fields' => 'ids']);
312
- $term_ids[] = $hf_category_id;
313
-
314
- $term_set = wp_set_object_terms($attachment_id, $term_ids, "media_folder");
315
-
316
- if (is_wp_error($term_set)) {
317
- continue;
318
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
 
320
- $attachmentsImported[] = [
321
- 'cat_id' => $hf_category_id,
322
- 'term_ids' => $term_ids,
323
- 'set' => $term_set,
324
- ];
 
 
 
 
 
325
  }//end foreach
326
  }//end if
327
 
328
- $response['status'] = 1;
329
- $response['data']['imported'] = count($foldersImported);
330
- $response['data']['attachments'] = count($attachmentsImported);
 
 
 
 
 
 
 
331
  $response['data']['plugin'] = $plugin;
332
- $response['message'] = sprintf(esc_html__('%s folders imported and %s attachments categorized.', 'folders'), count($foldersImported), count($attachmentsImported));
333
  }//end if
334
 
335
  echo json_encode($response);
@@ -366,16 +428,17 @@ class WCP_Folder_Plugins
366
  return $this->plugins;
367
  }
368
 
369
- $this->plugins = [
370
  // FileBird
371
  'filebird' => [
372
  'name' => 'FileBird (v4)',
373
  'taxonomy' => 'filebird',
 
374
  'folders' => [],
375
  'attachments' => [],
376
  'total_folders' => 0,
377
  'total_attachments' => 0,
378
- 'isExists' => 0,
379
  ],
380
  'enhanced-media-library' => [
381
  // Enhanced Media Library
@@ -385,17 +448,17 @@ class WCP_Folder_Plugins
385
  'attachments' => [],
386
  'total_folders' => 0,
387
  'total_attachments' => 0,
388
- 'isExists' => 0,
389
  ],
390
  'wicked-folders' => [
391
- // Enhanced Media Library
392
  'name' => 'Wicked Folders',
393
  'taxonomy' => 'wf_attachment_folders',
394
  'folders' => [],
395
  'attachments' => [],
396
  'total_folders' => 0,
397
  'total_attachments' => 0,
398
- 'isExists' => 0,
399
  ],
400
  'real-media-library' => [
401
  // Real Media Library
@@ -406,17 +469,17 @@ class WCP_Folder_Plugins
406
  'attachments' => [],
407
  'total_folders' => 0,
408
  'total_attachments' => 0,
409
- 'isExists' => 0,
410
  ],
411
  'wp-media-folder' => [
412
- // Real Media Library
413
  'name' => 'WP Media Folder (by JoomUnited)',
414
  'taxonomy' => 'wpmf-category',
415
  'folders' => [],
416
  'attachments' => [],
417
  'total_folders' => 0,
418
  'total_attachments' => 0,
419
- 'isExists' => 0,
420
  ],
421
  'mediamatic' => [
422
  // Mediamatic
@@ -426,7 +489,7 @@ class WCP_Folder_Plugins
426
  'attachments' => [],
427
  'total_folders' => 0,
428
  'total_attachments' => 0,
429
- 'isExists' => 0,
430
  ],
431
  'happyfiles' => [
432
  // HappyFiles
@@ -436,11 +499,11 @@ class WCP_Folder_Plugins
436
  'attachments' => [],
437
  'total_folders' => 0,
438
  'total_attachments' => 0,
439
- 'isExists' => 0,
440
  ],
441
  ];
442
- $postTypes = get_post_types([]);
443
- $this->postTypes = array_keys($postTypes);
444
 
445
  foreach ($this->plugins as $slug => $plugin_data) {
446
  $taxonomy = $plugin_data['taxonomy'];
@@ -449,7 +512,7 @@ class WCP_Folder_Plugins
449
  // Run for all registered post types
450
  $folders = [];
451
 
452
- foreach ($this->postTypes as $post_type) {
453
  $wicked_folders = $this->get_plugin_folders('wf_'.$post_type.'_folders', $slug);
454
 
455
  if (is_array($wicked_folders)) {
@@ -483,8 +546,8 @@ class WCP_Folder_Plugins
483
  $this->plugins[$key]['total_attachments'] = count($attachments);
484
 
485
  if (count($folders) > 0 || count($attachments) > 0) {
486
- $this->plugins[$key]['isExists'] = 1;
487
- $this->isExists = 1;
488
  }
489
  }
490
 
@@ -561,14 +624,14 @@ class WCP_Folder_Plugins
561
  foreach ($folders as $folder) {
562
  // FileBird, Real Media Library
563
  if ($taxonomy === 'filebird' || $taxonomy === 'rml') {
564
- $folder_object = new \stdClass();
565
 
566
- $folder_object->name = $folder->name;
567
- $folder_object->id = intval($folder->id);
568
- $folder_object->parent = intval($folder->parent);
569
- $folder_object->position = intval($folder->ord);
570
 
571
- $mapped_folders[] = $folder_object;
572
  }
573
  }
574
 
@@ -591,22 +654,22 @@ class WCP_Folder_Plugins
591
  foreach ($attachments as $folder) {
592
  // FileBird
593
  if ($taxonomy === 'filebird') {
594
- $folder_object = new \stdClass();
595
 
596
- $folder_object->folder_id = intval($folder->folder_id);
597
- $folder_object->attachment_id = intval($folder->attachment_id);
598
 
599
- $mapped_attachments[] = $folder_object;
600
  }
601
 
602
  // Real Media Library
603
  if ($taxonomy === 'rml') {
604
- $folder_object = new \stdClass();
605
 
606
- $folder_object->folder_id = intval($folder->fid);
607
- $folder_object->attachment_id = intval($folder->attachment);
608
 
609
- $mapped_attachments[] = $folder_object;
610
  }
611
  }//end foreach
612
 
@@ -628,32 +691,32 @@ class WCP_Folder_Plugins
628
 
629
  // FileBird has its own db table
630
  if ($taxonomy === 'filebird') {
631
- $filebird_attachments_table = $wpdb->prefix.'fbv_attachment_folder';
632
 
633
- // Get FileBird attachments (order by 'folder_id')
634
- if ($wpdb->get_var("SHOW TABLES LIKE '$filebird_attachments_table'") == $filebird_attachments_table) {
635
- return $wpdb->get_results("SELECT * FROM $filebird_attachments_table ORDER BY folder_id ASC");
636
  }
637
  }
638
 
639
  // Real Media Library has its own db table
640
  else if ($taxonomy === 'rml') {
641
- $rml_attachments_table = $wpdb->prefix.'realmedialibrary_posts';
642
 
643
- // Get FileBird folders (order by 'parent' to create parent categories first)
644
- if ($wpdb->get_var("SHOW TABLES LIKE '$rml_attachments_table'") == $rml_attachments_table) {
645
- return $wpdb->get_results("SELECT * FROM $rml_attachments_table ORDER BY fid ASC");
646
  }
647
  }
648
 
649
  // Default: Plugins with custom taxonomy terms
650
  else {
651
- $query = "SELECT ".$wpdb->term_relationships.".object_id,
652
- ".$wpdb->term_relationships.".term_taxonomy_id
653
- FROM ".$wpdb->term_relationships."
654
- WHERE ".$wpdb->term_relationships.".term_taxonomy_id IN (%s)";
655
- $query = $wpdb->prepare($query, implode(',', array_column($folders, 'term_id')));
656
- return $wpdb->get_results($query);
657
  }
658
 
659
  }//end get_plugin_attachments()
133
  }//end remove_plugin_folders_data()
134
 
135
 
136
+ public function filter_categories_by_term_id($attachments)
137
+ {
138
+ $termsData = [];
139
+ foreach ($attachments as $attachment) {
140
+ $termsData[$attachment->folder_id][] = $attachment->attachment_id;
141
+ }
142
+
143
+ return $termsData;
144
+
145
+ }//end filter_categories_by_term_id()
146
+
147
+
148
  public function import_plugin_folders_data()
149
  {
150
+
151
+ global $wpdb;
152
+
153
  $postData = filter_input_array(INPUT_POST);
154
 
155
+ $paged = isset($postData['paged']) && is_numeric($postData['paged']) && $postData['paged'] > 0 ? intval(sanitize_text_field($postData['paged'])) : 1;
156
+ $attachedItems = isset($postData['attached']) && is_numeric($postData['attached']) && $postData['attached'] > 0 ? intval(sanitize_text_field($postData['attached'])) : 0;
157
+ $startFrom = (10 * ($paged - 1));
158
+ $endFolder = (10 * $paged);
159
+ $totalFolders = 0;
160
+
161
+ $plugin = isset($postData['plugin']) ? $postData['plugin'] : "";
162
+ $nonce = isset($postData['nonce']) ? $postData['nonce'] : "";
163
+
164
+ $dataSet = [];
165
+ $response = [];
166
+ $response['status'] = 0;
167
  $response['message'] = esc_html__("Invalid request", "folders");
168
  $response['data'] = [];
169
  $response['data']['plugin'] = $plugin;
170
  if (wp_verify_nonce($nonce, "import_data_from_".$plugin)) {
171
  $this->get_plugin_information();
172
+ $folders = isset($this->plugins[$plugin]['folders']) ? $this->plugins[$plugin]['folders'] : [];
173
+ $totalFolders = count($folders);
174
+ $attachments = isset($this->plugins[$plugin]['attachments']) ? $this->plugins[$plugin]['attachments'] : [];
175
 
176
  $categoryByID = [];
177
  $foldersImported = [];
178
  $attachmentsImported = [];
 
179
  if ($plugin != 'filebird' && $plugin != 'real-media-library') {
180
+ $currentFolder = -1;
181
  foreach ($folders as $folder) {
182
+ $currentFolder++;
183
  $folder_id = $folder->term_id;
184
  $parent = intval($folder->parent);
185
 
186
  $taxonomy = 'media_folder';
187
 
188
+ foreach ($this->post_types as $post_type) {
189
  if (strpos($folder->taxonomy, $post_type) !== false) {
190
  if ($post_type == "post") {
191
  $taxonomy = "post_folder";
206
  $new_term = wp_insert_term($folder->name, $taxonomy, ['parent' => $parent]);
207
 
208
  if (is_wp_error($new_term)) {
209
+ if (isset($new_term->errors['term_exists']) && $new_term->error_data['term_exists']) {
210
+ $termId = $new_term->error_data['term_exists'];
211
+ $termData = get_term($termId, "", ARRAY_A);
212
+ if (!empty($termData)) {
213
+ $new_term = $termData;
214
+ } else {
215
+ continue;
216
+ }
217
+ } else {
218
+ continue;
219
+ }
220
  }
221
 
222
  $arg = [
253
  'parent' => $parent,
254
  'name' => $folder->name,
255
  ];
 
 
 
 
 
 
256
 
257
+ $newTermID = $new_term['term_id'];
258
+ $folderItems = 0;
259
+ $failedItems = 0;
260
+ $query = "SELECT object_id FROM ".$wpdb->term_relationships." WHERE term_taxonomy_id = %d";
261
+ $query = $wpdb->prepare($query, [$folder->term_taxonomy_id]);
262
+ $results = $wpdb->get_results($query);
263
+ $found_results = count($results);
264
+ if ($currentFolder >= $startFrom && $currentFolder < $endFolder) {
265
+ if (count($results)) {
266
+ foreach ($results as $result) {
267
+ $term_set = wp_set_object_terms($result->object_id, $newTermID, $taxonomy, true);
268
+
269
+ if (is_wp_error($term_set)) {
270
+ $failedItems++;
271
+ continue;
272
+ }
273
+
274
+ $folderItems++;
275
+
276
+ $attachmentsImported[] = [
277
+ 'cat_id' => $newTermID,
278
+ 'term_ids' => $result->object_id,
279
+ 'set' => $term_set,
280
+ ];
281
+ }
282
+ }
283
 
284
+ $dataSet[] = [
285
+ 'id' => $newTermID,
286
+ 'old_id' => $folder->term_taxonomy_id,
287
+ 'name' => $folder->name,
288
+ 'items' => $folderItems,
289
+ 'failed' => $failedItems,
290
+ 'results' => $found_results,
291
+ ];
292
+ }//end if
293
  }//end foreach
294
  } else {
295
+ $attachments = $this->filter_categories_by_term_id($attachments);
296
+ $currentFolder = -1;
297
  foreach ($folders as $folder) {
298
+ $currentFolder++;
299
+ $parent = intval($folder->parent);
300
+ if ($parent == -1) {
301
+ $parent = 0;
302
+ }
303
+
304
  $parentID = 0;
305
 
306
  if ($parent && isset($categoryByID[$parent]['term_id'])) {
310
  $new_term = wp_insert_term($folder->name, "media_folder", ['parent' => $parentID]);
311
 
312
  if (is_wp_error($new_term)) {
313
+ if (isset($new_term->errors['term_exists']) && $new_term->error_data['term_exists']) {
314
+ $termId = $new_term->error_data['term_exists'];
315
+ $termData = get_term($termId, "", ARRAY_A);
316
+ if (!empty($termData)) {
317
+ $new_term = $termData;
318
+ } else {
319
+ continue;
320
+ }
321
+ } else {
322
+ continue;
323
+ }
324
  }
325
 
326
  $taxonomy = 'media_folder';
343
  'parent' => $parent,
344
  'term_id' => $new_term['term_id'],
345
  ];
 
 
 
 
 
 
 
 
 
346
 
347
+ $newTermID = $new_term['term_id'];
348
+ $folderItems = 0;
349
+ $failedItems = 0;
350
+ $found_results = 0;
351
+ if ($currentFolder >= $startFrom && $currentFolder < $endFolder) {
352
+ if (isset($attachments[$folder->id]) && count($attachments[$folder->id]) > 0) {
353
+ foreach ($attachments[$folder->id] as $result) {
354
+ $term_set = wp_set_object_terms($result, $newTermID, $taxonomy, true);
355
+
356
+ if (is_wp_error($term_set)) {
357
+ $failedItems++;
358
+ continue;
359
+ }
360
+
361
+ $folderItems++;
362
+
363
+ $attachmentsImported[] = [
364
+ 'cat_id' => $newTermID,
365
+ 'term_ids' => $result->object_id,
366
+ 'set' => $term_set,
367
+ ];
368
+ }
369
 
370
+ $dataSet[] = [
371
+ 'id' => $newTermID,
372
+ 'old_id' => $folder->id,
373
+ 'name' => $folder->name,
374
+ 'items' => $folderItems,
375
+ 'failed' => $failedItems,
376
+ 'results' => $found_results,
377
+ ];
378
+ }//end if
379
+ }//end if
380
  }//end foreach
381
  }//end if
382
 
383
+ delete_transient("premio_folders_without_trash");
384
+
385
+ $totalPages = ceil($totalFolders / 10);
386
+ $response['status'] = 1;
387
+ $response['data']['imported'] = count($foldersImported);
388
+ $response['data']['attachments'] = (count($attachmentsImported) + $attachedItems);
389
+ $response['data']['data_set'] = $dataSet;
390
+ $response['data']['folders'] = $totalFolders;
391
+ $response['data']['pages'] = $totalPages;
392
+ $response['data']['current'] = $paged;
393
  $response['data']['plugin'] = $plugin;
394
+ $response['message'] = sprintf(esc_html__('%s folders imported and %s attachments categorized.', 'folders'), count($foldersImported), (count($attachmentsImported) + $attachedItems));
395
  }//end if
396
 
397
  echo json_encode($response);
428
  return $this->plugins;
429
  }
430
 
431
+ $this->plugins = [
432
  // FileBird
433
  'filebird' => [
434
  'name' => 'FileBird (v4)',
435
  'taxonomy' => 'filebird',
436
+ // has custom DB table
437
  'folders' => [],
438
  'attachments' => [],
439
  'total_folders' => 0,
440
  'total_attachments' => 0,
441
+ 'is_exists' => 0,
442
  ],
443
  'enhanced-media-library' => [
444
  // Enhanced Media Library
448
  'attachments' => [],
449
  'total_folders' => 0,
450
  'total_attachments' => 0,
451
+ 'is_exists' => 0,
452
  ],
453
  'wicked-folders' => [
454
+ // Wicked Folders
455
  'name' => 'Wicked Folders',
456
  'taxonomy' => 'wf_attachment_folders',
457
  'folders' => [],
458
  'attachments' => [],
459
  'total_folders' => 0,
460
  'total_attachments' => 0,
461
+ 'is_exists' => 0,
462
  ],
463
  'real-media-library' => [
464
  // Real Media Library
469
  'attachments' => [],
470
  'total_folders' => 0,
471
  'total_attachments' => 0,
472
+ 'is_exists' => 0,
473
  ],
474
  'wp-media-folder' => [
475
+ // WP Media Folder
476
  'name' => 'WP Media Folder (by JoomUnited)',
477
  'taxonomy' => 'wpmf-category',
478
  'folders' => [],
479
  'attachments' => [],
480
  'total_folders' => 0,
481
  'total_attachments' => 0,
482
+ 'is_exists' => 0,
483
  ],
484
  'mediamatic' => [
485
  // Mediamatic
489
  'attachments' => [],
490
  'total_folders' => 0,
491
  'total_attachments' => 0,
492
+ 'is_exists' => 0,
493
  ],
494
  'happyfiles' => [
495
  // HappyFiles
499
  'attachments' => [],
500
  'total_folders' => 0,
501
  'total_attachments' => 0,
502
+ 'is_exists' => 0,
503
  ],
504
  ];
505
+ $post_types = get_post_types([]);
506
+ $this->post_types = array_keys($post_types);
507
 
508
  foreach ($this->plugins as $slug => $plugin_data) {
509
  $taxonomy = $plugin_data['taxonomy'];
512
  // Run for all registered post types
513
  $folders = [];
514
 
515
+ foreach ($this->post_types as $post_type) {
516
  $wicked_folders = $this->get_plugin_folders('wf_'.$post_type.'_folders', $slug);
517
 
518
  if (is_array($wicked_folders)) {
546
  $this->plugins[$key]['total_attachments'] = count($attachments);
547
 
548
  if (count($folders) > 0 || count($attachments) > 0) {
549
+ $this->plugins[$key]['is_exists'] = 1;
550
+ $this->is_exists = 1;
551
  }
552
  }
553
 
624
  foreach ($folders as $folder) {
625
  // FileBird, Real Media Library
626
  if ($taxonomy === 'filebird' || $taxonomy === 'rml') {
627
+ $folderObj = new \stdClass();
628
 
629
+ $folderObj->name = $folder->name;
630
+ $folderObj->id = intval($folder->id);
631
+ $folderObj->parent = intval($folder->parent);
632
+ $folderObj->position = intval($folder->ord);
633
 
634
+ $mapped_folders[] = $folderObj;
635
  }
636
  }
637
 
654
  foreach ($attachments as $folder) {
655
  // FileBird
656
  if ($taxonomy === 'filebird') {
657
+ $folderObj = new \stdClass();
658
 
659
+ $folderObj->folder_id = intval($folder->folder_id);
660
+ $folderObj->attachment_id = intval($folder->attachment_id);
661
 
662
+ $mapped_attachments[] = $folderObj;
663
  }
664
 
665
  // Real Media Library
666
  if ($taxonomy === 'rml') {
667
+ $folderObj = new \stdClass();
668
 
669
+ $folderObj->folder_id = intval($folder->fid);
670
+ $folderObj->attachment_id = intval($folder->attachment);
671
 
672
+ $mapped_attachments[] = $folderObj;
673
  }
674
  }//end foreach
675
 
691
 
692
  // FileBird has its own db table
693
  if ($taxonomy === 'filebird') {
694
+ $filebirdTable = $wpdb->prefix.'fbv_attachment_folder';
695
 
696
+ // Get FileBird attachments
697
+ if ($wpdb->get_var("SHOW TABLES LIKE '{$filebirdTable}'") == $filebirdTable) {
698
+ return $wpdb->get_results("SELECT * FROM {$filebirdTable} ORDER BY folder_id ASC");
699
  }
700
  }
701
 
702
  // Real Media Library has its own db table
703
  else if ($taxonomy === 'rml') {
704
+ $rmlTable = $wpdb->prefix.'realmedialibrary_posts';
705
 
706
+ // Get Data from Real Media Library DB Table
707
+ if ($wpdb->get_var("SHOW TABLES LIKE '{$rmlTable}'") == $rmlTable) {
708
+ return $wpdb->get_results("SELECT * FROM {$rmlTable} ORDER BY fid ASC");
709
  }
710
  }
711
 
712
  // Default: Plugins with custom taxonomy terms
713
  else {
714
+ return $wpdb->get_results(
715
+ "SELECT TR.object_id,
716
+ TR.term_taxonomy_id
717
+ FROM ".$wpdb->term_relationships." AS TR
718
+ WHERE TR.term_taxonomy_id IN (".implode(',', array_column($folders, 'term_taxonomy_id')).")"
719
+ );
720
  }
721
 
722
  }//end get_plugin_attachments()
includes/tree.class.php CHANGED
@@ -131,7 +131,7 @@ class WCP_Tree
131
 
132
  $string .= "<li id='".esc_attr($term->term_id)."' class='".esc_attr($class)."' data-slug='".esc_attr($term->slug)."' data-nonce='".esc_attr($nonce)."' data-folder='".esc_attr($term->term_id)."' data-child='".esc_attr($child)."' data-count='".esc_attr($count)."' data-parent='".esc_attr($parent)."'>
133
  ".esc_attr($term->name)."
134
- <ul>".esc_attr($return['string'])."</ul>
135
  </li>";
136
 
137
  $sticky_string .= $return['sticky_string'];
@@ -156,7 +156,7 @@ class WCP_Tree
156
  */
157
  public static function get_option_data_for_select($postType)
158
  {
159
- $string = "<option value='0'>Parent Folder</option>";
160
  $string .= self::get_folder_option_data($postType, 0, '');
161
  return $string;
162
 
131
 
132
  $string .= "<li id='".esc_attr($term->term_id)."' class='".esc_attr($class)."' data-slug='".esc_attr($term->slug)."' data-nonce='".esc_attr($nonce)."' data-folder='".esc_attr($term->term_id)."' data-child='".esc_attr($child)."' data-count='".esc_attr($count)."' data-parent='".esc_attr($parent)."'>
133
  ".esc_attr($term->name)."
134
+ <ul>".$return['string']."</ul>
135
  </li>";
136
 
137
  $sticky_string .= $return['sticky_string'];
156
  */
157
  public static function get_option_data_for_select($postType)
158
  {
159
+ $string = "<option value='0'>".esc_html__("Parent Folder", "folders")."</option>";
160
  $string .= self::get_folder_option_data($postType, 0, '');
161
  return $string;
162
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: folder, folders, replace media, pages folders, media library, posts folders, media folders, media replace, file manager, directories, media library folders, media library folder
4
  Requires at least: 3.0.0
5
  Tested up to: 6.0
6
- Stable tag: 2.8.5
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly create unlimited folders and organize and manage your Media Library files, Pages & Posts in folders
@@ -199,6 +199,12 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
199
 
200
  == Changelog ==
201
 
 
 
 
 
 
 
202
  = 2.8.5 =
203
  WPML Folders bug fixed
204
 
3
  Tags: folder, folders, replace media, pages folders, media library, posts folders, media folders, media replace, file manager, directories, media library folders, media library folder
4
  Requires at least: 3.0.0
5
  Tested up to: 6.0
6
+ Stable tag: 2.8.6
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly create unlimited folders and organize and manage your Media Library files, Pages & Posts in folders
199
 
200
  == Changelog ==
201
 
202
+ = 2.8.6 =
203
+ - We've added a horizontal scroll to the folders view
204
+ - Importing folders works better and faster now, the same goes for uploading folders and media library scan for used files (Pro)
205
+ - Published/Drafts view works for specific folders too
206
+ - Fixed some bugs
207
+
208
  = 2.8.5 =
209
  WPML Folders bug fixed
210
 
templates/admin/admin-content.php CHANGED
@@ -69,6 +69,7 @@ button.button.organize-button:hover { background-color: <?php echo esc_attr($cus
69
  $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); ?>
70
  body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover, .dynamic-menu a.active, .dynamic-menu a:hover, .folder-setting-menu li a:hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;}
71
  body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
 
72
  #custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
73
  .drag-bot > a {
74
  border-bottom: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
@@ -97,6 +98,7 @@ body:not(.no-hover-css) .wcp-container .route .title:hover, body:not(.no-hover-c
97
  }
98
  #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;}
99
  .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; }
 
100
  .jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
101
  <?php
102
 
@@ -159,6 +161,7 @@ if (!empty($post_type)) {
159
  $active_all_class = "active-item";
160
  }
161
  }
 
162
  ?>
163
  <div id="wcp-content" class="<?php echo esc_attr(isset($display_status) && $display_status == "hide" ? "hide-folders-area" : "") ?>" >
164
  <div id="wcp-content-resize">
@@ -225,20 +228,21 @@ if (!empty($post_type)) {
225
  <div class="folder-separator-2"></div>
226
  </div>
227
  </div>
228
- <div id="custom-scroll-menu">
229
- <div class="ajax-preloader">
230
- <div class="cssload-container">
231
- <div class="cssload-tube-tunnel"></div>
 
 
232
  </div>
233
- </div>
234
- <div class="js-tree-data">
235
  <div id="js-tree-menu" class="<?php echo ($status == 1) ? "active" : "" ?>">
236
- <!--<div class="wcp-parent" id="title0"><i class="fa fa-folder-o"></i> All Folders</div>-->
237
  <ul class='space first-space' id='space_0'>
238
  <?php echo ($terms_data); ?>
239
  </ul>
240
  </div>
241
  </div>
 
242
  </div>
243
  </div>
244
  </div>
@@ -427,7 +431,7 @@ if (!empty($post_type)) {
427
  <?php esc_html_e("Confirm your change", "folders") ?>
428
  </div>
429
  <div class="folder-form-message" style="padding: 25px 10px;" >
430
- Hey, it looks like you want to move the file to "Unassigned Files." Do you want to move the file from the current folder only or from all the folders where the file exists?
431
  </div>
432
  <div class="folder-form-buttons">
433
  <input type="hidden" id="unassigned_folders" />
69
  $rgbColor = self::hexToRgb($customize_folders['folder_bg_color']); ?>
70
  body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked), body:not(.no-hover-css) #custom-scroll-menu .jstree-hovered:not(.jstree-clicked):hover, .dynamic-menu a.active, .dynamic-menu a:hover, .folder-setting-menu li a:hover { background: rgba(<?php echo esc_attr($rgbColor['r'].",".$rgbColor['g'].",".$rgbColor['b'].", 0.08") ?>) !important; color: #333333;}
71
  body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked, body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked:not(.jstree-clicked):focus, #custom-scroll-menu .jstree-clicked, #custom-scroll-menu .jstree-clicked:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
72
+ body:not(.no-hover-css) #custom-scroll-menu .jstree-clicked .folder-actions { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
73
  #custom-scroll-menu .jstree-hovered.wcp-drop-hover, #custom-scroll-menu .jstree-hovered.wcp-drop-hover:hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover, #custom-scroll-menu .jstree-clicked.wcp-drop-hover:hover, body #custom-scroll-menu *.drag-in > a:hover { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff !important; }
74
  .drag-bot > a {
75
  border-bottom: solid 2px <?php echo esc_attr($customize_folders['folder_bg_color']) ?>;
98
  }
99
  #custom-menu .route .nav-icon .wcp-icon {color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important;}
100
  .mCS-3d.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; }
101
+ .os-theme-dark>.os-scrollbar>.os-scrollbar-track>.os-scrollbar-handle { background: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; }
102
  .jstree-node.drag-in > a.jstree-anchor.jstree-hovered { background-color: <?php echo esc_attr($customize_folders['folder_bg_color']) ?> !important; color: #ffffff; }
103
  <?php
104
 
161
  $active_all_class = "active-item";
162
  }
163
  }
164
+ $horClass = (!isset($customize_folders['enable_horizontal_scroll']) || $customize_folders['enable_horizontal_scroll'] == "on") ? "hor-scroll" : "";
165
  ?>
166
  <div id="wcp-content" class="<?php echo esc_attr(isset($display_status) && $display_status == "hide" ? "hide-folders-area" : "") ?>" >
167
  <div id="wcp-content-resize">
228
  <div class="folder-separator-2"></div>
229
  </div>
230
  </div>
231
+ <div id="custom-scroll-menu" class="custom-scroll-menu <?php echo esc_attr($horClass) ?>">
232
+ <div class="horizontal-scroll-menu">
233
+ <div class="ajax-preloader">
234
+ <div class="cssload-container">
235
+ <div class="cssload-tube-tunnel"></div>
236
+ </div>
237
  </div>
238
+ <div class="js-tree-data">
 
239
  <div id="js-tree-menu" class="<?php echo ($status == 1) ? "active" : "" ?>">
 
240
  <ul class='space first-space' id='space_0'>
241
  <?php echo ($terms_data); ?>
242
  </ul>
243
  </div>
244
  </div>
245
+ </div>
246
  </div>
247
  </div>
248
  </div>
431
  <?php esc_html_e("Confirm your change", "folders") ?>
432
  </div>
433
  <div class="folder-form-message" style="padding: 25px 10px;" >
434
+ <?php esc_html_e("Hey, it looks like you want to move the file to \"Unassigned Files.\" Do you want to move the file from the current folder only or from all the folders where the file exists?", "folders") ?>
435
  </div>
436
  <div class="folder-form-buttons">
437
  <input type="hidden" id="unassigned_folders" />
templates/admin/folder-popup.php CHANGED
@@ -13,16 +13,16 @@ if (!defined('ABSPATH')) {
13
  <div class="folder-popup" id="folder-intro-popup">
14
  <div class="folder-popup-box">
15
  <div class="folder-popup-header">
16
- Welcome to Folders &#127881;
17
  <button class="close-folder-popup"><span class="dashicons dashicons-no-alt"></span></button>
18
  <div class="clear"></div>
19
  </div>
20
  <div class="folder-popup-content">
21
- Select the places where you want Folders to appear (Media Library, Posts, Pages, Custom Posts). Need help? Visit our <a target="_blank" href="https://premio.io/help/folders/?utm_soruce=wordpressfolders">Help Center</a>.
22
  <iframe width="420" height="240" src="https://www.youtube.com/embed/1SqDey4idlQ?rel=0"></iframe>
23
  </div>
24
  <div class="folder-popup-footer">
25
- <button type="button">Go to Folders</button>
26
  </div>
27
  </div>
28
  </div>
13
  <div class="folder-popup" id="folder-intro-popup">
14
  <div class="folder-popup-box">
15
  <div class="folder-popup-header">
16
+ <?php esc_html_e("Welcome to Folders", "folders") ?> &#127881;
17
  <button class="close-folder-popup"><span class="dashicons dashicons-no-alt"></span></button>
18
  <div class="clear"></div>
19
  </div>
20
  <div class="folder-popup-content">
21
+ <?php printf(esc_html__("Select the places where you want Folders to appear (Media Library, Posts, Pages, Custom Posts). Need help? Visit our %s", "folders"), '<a target="_blank" href="https://premio.io/help/folders/?utm_soruce=wordpressfolders">'.esc_html__("Help Center", "folders")."</a>.") ?>
22
  <iframe width="420" height="240" src="https://www.youtube.com/embed/1SqDey4idlQ?rel=0"></iframe>
23
  </div>
24
  <div class="folder-popup-footer">
25
+ <button type="button"><?php esc_html_e("Go to Folders", "folders"); ?></button>
26
  </div>
27
  </div>
28
  </div>
templates/admin/general-settings.php CHANGED
@@ -283,23 +283,33 @@ if (! defined('ABSPATH')) {
283
  });
284
  }
285
 
 
 
286
  function importPluginData() {
287
  $("#import-folder-button").addClass("button");
288
  $("#import-folder-button").prop("disabled", true);
289
- $(".other-plugins-"+selectedItem+" .import-folder-data").prop("disabled", true);
290
  $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").addClass("active");
 
 
 
 
 
291
  $.ajax({
292
  url: "<?php echo admin_url("admin-ajax.php") ?>",
293
  data: {
294
  'plugin': $(".other-plugins-"+selectedItem).data("plugin"),
295
  'nonce': $(".other-plugins-"+selectedItem).data("nonce"),
296
- 'action': 'wcp_import_plugin_folders_data'
 
 
297
  },
298
  type: 'post',
299
  success: function(res){
300
  var response = $.parseJSON(res);
301
  if(response.status == -1) {
302
- $(".other-plugins-"+selectedItem+" .import-folder-data").prop("disabled", false);
 
303
  $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").removeClass("active");
304
  $("#import-third-party-plugin-data").hide();
305
  $("#no-more-folder-credit").show();
@@ -307,10 +317,20 @@ if (! defined('ABSPATH')) {
307
  $("#import-folder-button").prop("disabled", false);
308
  } else if(response.status) {
309
  $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("success-import");
310
- $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
 
 
 
 
 
 
 
 
311
  } else {
312
  $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import");
313
  $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
 
 
314
  }
315
  $("#import-folder-button").prop("disabled", false);
316
  $("#import-plugin-data").hide();
@@ -650,7 +670,7 @@ if ($wp_status == "yes") {
650
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
651
  </span>
652
  </span>
653
- <span class="recommanded">Recommended</span>
654
  </label>
655
  </a>
656
  </td>
@@ -667,7 +687,7 @@ if ($wp_status == "yes") {
667
  </label>
668
  </td>
669
  <td colspan="3">
670
- <label for="use_folder_undo" ><?php esc_html_e('Use folders with Undo action after performing tasks', 'folders'); ?> <span class="recommanded">Recommended</span></label>
671
  </td>
672
  </tr>
673
  <?php
@@ -740,7 +760,7 @@ if ($wp_status == "yes") {
740
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
741
  </span>
742
  </span>
743
- <span class="recommanded">Recommended</span>
744
  </label>
745
  </a>
746
  </td>
@@ -834,7 +854,7 @@ if ($wp_status == "yes") {
834
  <span class="new"><?php printf(esc_html__("%sPro version ✨%s includes updating all previous links of the file in the database, changing dates & more", "folders"), "<a href='".esc_url($this->getFoldersUpgradeURL())."' target='_blank'>", "</a>") ?></span>
835
  </span>
836
  </span>
837
- <span class="recommanded">Recommended</span>
838
  </label>
839
  </td>
840
  </tr>
@@ -1197,6 +1217,23 @@ if ($wp_status == "yes") {
1197
  </select>
1198
  </td>
1199
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1200
  <?php
1201
  $show_in_page = isset($customize_folders['show_in_page']) ? $customize_folders['show_in_page'] : "hide";
1202
  $show_folder = WCP_Folders::check_for_setting("show_in_page", "customize_folders");
283
  });
284
  }
285
 
286
+ var totalAttachments = 0;
287
+
288
  function importPluginData() {
289
  $("#import-folder-button").addClass("button");
290
  $("#import-folder-button").prop("disabled", true);
291
+ $(".import-folder-data").prop("disabled", true);
292
  $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").addClass("active");
293
+ totalAttachments = 0;
294
+ importPluginDataByPage(1);
295
+ }
296
+
297
+ function importPluginDataByPage(pageNo) {
298
  $.ajax({
299
  url: "<?php echo admin_url("admin-ajax.php") ?>",
300
  data: {
301
  'plugin': $(".other-plugins-"+selectedItem).data("plugin"),
302
  'nonce': $(".other-plugins-"+selectedItem).data("nonce"),
303
+ 'action': 'wcp_import_plugin_folders_data',
304
+ 'paged' : pageNo,
305
+ 'attached': totalAttachments
306
  },
307
  type: 'post',
308
  success: function(res){
309
  var response = $.parseJSON(res);
310
  if(response.status == -1) {
311
+ totalAttachments = 0;
312
+ $(".import-folder-data").prop("disabled", false);
313
  $(".other-plugins-"+selectedItem+" .import-folder-data .spinner").removeClass("active");
314
  $("#import-third-party-plugin-data").hide();
315
  $("#no-more-folder-credit").show();
317
  $("#import-folder-button").prop("disabled", false);
318
  } else if(response.status) {
319
  $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("success-import");
320
+
321
+ if(parseInt(response.data.pages) > parseInt(response.data.current)) {
322
+ totalAttachments = response.data.attachments;
323
+ importPluginDataByPage(parseInt(response.data.current)+1);
324
+ } else {
325
+ totalAttachments = 0;
326
+ $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
327
+ $(".import-folder-data").prop("disabled", false);
328
+ }
329
  } else {
330
  $(".other-plugins-"+response.data.plugin+" .import-message").html(response.message).addClass("error-import");
331
  $(".other-plugins-"+response.data.plugin+" .import-folder-data").remove();
332
+ $(".import-folder-data").prop("disabled", false);
333
+ totalAttachments = 0;
334
  }
335
  $("#import-folder-button").prop("disabled", false);
336
  $("#import-plugin-data").hide();
670
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
671
  </span>
672
  </span>
673
+ <span class="recommanded"><?php esc_html_e("Recommended", "folders") ?></span>
674
  </label>
675
  </a>
676
  </td>
687
  </label>
688
  </td>
689
  <td colspan="3">
690
+ <label for="use_folder_undo" ><?php esc_html_e('Use folders with Undo action after performing tasks', 'folders'); ?> <span class="recommanded"><?php esc_html_e("Recommended", "folders") ?></span></label>
691
  </td>
692
  </tr>
693
  <?php
760
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
761
  </span>
762
  </span>
763
+ <span class="recommanded"><?php esc_html_e("Recommended", "folders") ?></span>
764
  </label>
765
  </a>
766
  </td>
854
  <span class="new"><?php printf(esc_html__("%sPro version ✨%s includes updating all previous links of the file in the database, changing dates & more", "folders"), "<a href='".esc_url($this->getFoldersUpgradeURL())."' target='_blank'>", "</a>") ?></span>
855
  </span>
856
  </span>
857
+ <span class="recommanded"><?php esc_html_e("Recommended", "folders") ?></span>
858
  </label>
859
  </td>
860
  </tr>
1217
  </select>
1218
  </td>
1219
  </tr>
1220
+ <?php $enable_horizontal_scroll = ! isset($customize_folders['enable_horizontal_scroll']) || empty($customize_folders['enable_horizontal_scroll']) ? "on" : $customize_folders['enable_horizontal_scroll']; ?>
1221
+ <tr>
1222
+ <td class="no-padding">
1223
+ <label for="enable_horizontal_scroll" >
1224
+ <?php esc_html_e("Enable Horizontal Scroll", 'folders'); ?> <span class="folder-tooltip" data-title="<?php esc_html_e("When a folder has too much text or you have many levels of sub-folders, a horizontal scroll bar will appear on the bottom to scroll & view Folder names", "folders") ?>"><span class="dashicons dashicons-editor-help"></span></span>
1225
+ </label>
1226
+ </td>
1227
+ <td colspan="2">
1228
+ <input type="hidden" name="customize_folders[enable_horizontal_scroll]" value="off" />
1229
+ <div class="inline-checkbox">
1230
+ <label class="folder-switch " for="enable_horizontal_scroll">
1231
+ <input type="checkbox" class="sr-only normal-input" name="customize_folders[enable_horizontal_scroll]" id="enable_horizontal_scroll" value="on" <?php checked($enable_horizontal_scroll, "on") ?>>
1232
+ <div class="folder-slider normal round"></div>
1233
+ </label>
1234
+ </div>
1235
+ </td>
1236
+ </tr>
1237
  <?php
1238
  $show_in_page = isset($customize_folders['show_in_page']) ? $customize_folders['show_in_page'] : "hide";
1239
  $show_folder = WCP_Folders::check_for_setting("show_in_page", "customize_folders");
templates/admin/upgrade-table.php CHANGED
@@ -9,7 +9,6 @@
9
  if (! defined('ABSPATH')) {
10
  exit;
11
  }
12
-
13
  $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=";
14
  ?>
15
 
@@ -17,23 +16,23 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
17
  <div class="easy-modal-inner">
18
  <div class="container">
19
  <div class="pricing-table">
20
- <div class="price-title">Unlock All Features</div>
21
  <div class="pricing-table-header">
22
  <div class="pricing-table-body">
23
  <div class="pricing-table-content first active" data-option="1_year">
24
- <div class="year-col">1 Year</div>
25
- <div class="update-col">Updates &amp; Support</div>
26
  <div class="pricing-discount-col"></div>
27
  </div>
28
  <div class="pricing-table-content second" data-option="2_year">
29
- <div class="year-col">2 Years</div>
30
- <div class="update-col">Updates &amp; Support</div>
31
- <div class="pricing-discount-col"><span>32% off &#128526;</span></div>
32
  </div>
33
  <div class="pricing-table-content third" data-option="lifetime">
34
- <div class="year-col">Lifetime</div>
35
- <div class="update-col">Updates &amp; Support</div>
36
- <div class="pricing-discount-col"><span>63% off &#129395;</span></div>
37
  </div>
38
  </div>
39
  </div>
@@ -43,20 +42,20 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
43
  <div class="price-table basic-feature">
44
  <div class="price-table-top">
45
  <div class="price-head">
46
- <div class="plan-name">Basic</div>
47
- <div class="plan-price">$39<span>/year</span></div>
48
  </div>
49
- <div class="price-websites">For small website owners</div>
50
- <div class="price-offer">Renewals for <b>25% off</b></div>
51
  </div>
52
  <div class="price-table-middle">
53
  <ul>
54
- <li><a href="javascript:;" class="cus-tooltip">1 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 1 domain</span></a></li>
55
- <li><a href="javascript:;">Organize pages, posts, and media files</a></li>
56
- <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
57
  <li><a href="javascript:;" class="cus-tooltip">
58
  <span class="html-tooltip dynamic last">
59
- Dynamic Folders<span class="has-tooltip">*</span>
60
  <span class="tooltip-text" style="">
61
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
62
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
@@ -64,10 +63,10 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
64
  </span>
65
  </a>
66
  </li>
67
- <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
68
  <li><a href="javascript:;" class="cus-tooltip">
69
  <span class="html-tooltip last">
70
- Metadata details on Media Library hover <span class="has-tooltip">*</span>
71
  <span class="tooltip-text " style="">
72
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
73
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
@@ -75,27 +74,27 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
75
  </span>
76
  </a>
77
  </li>
78
- <li><a href="javascript:;" class="cus-tooltip">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li>
79
- <li><a href="javascript:;" class="cus-tooltip">Directly upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
80
- <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
81
- <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
82
- <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
83
- <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
84
- <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li>
85
- <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
86
- <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
87
- <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
88
  </ul>
89
  </div>
90
  <div class="price-table-bottom">
91
  <div class="custom-dd">
92
  <select class="multiple-options">
93
- <option data-option="1_year" data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($proURL) ?>22">Updates &amp; support for 1 year</option>
94
- <option data-option="2_year" data-header="For 2 years" data-price="59" value="<?php echo esc_url($proURL) ?>23">Updates &amp; support for 2 years</option>
95
- <option data-option="lifetime" data-header="For lifetime" data-price="119" value="<?php echo esc_url($proURL) ?>24">Updates &amp; support for lifetime</option>
96
  </select>
97
  </div>
98
- <a class="cart-link" target="_blank" href="<?php echo esc_url($proURL) ?>22">Buy now</a>
99
  </div>
100
  <div class="bottom-position"></div>
101
  </div>
@@ -104,20 +103,20 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
104
  <div class="price-table plus-feature">
105
  <div class="price-table-top">
106
  <div class="price-head">
107
- <div class="plan-name">Plus</div>
108
- <div class="plan-price">$89<span>/year</span></div>
109
  </div>
110
- <div class="price-websites">For businesses with multiple websites</div>
111
- <div class="price-offer">Renewals for <b>25% off</b></div>
112
  </div>
113
  <div class="price-table-middle">
114
  <ul>
115
  <li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li>
116
- <li><a href="javascript:;">Organize pages, posts, and media files</a></li>
117
- <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
118
  <li><a href="javascript:;" class="cus-tooltip">
119
  <span class="html-tooltip dynamic last">
120
- Dynamic Folders<span class="has-tooltip">*</span>
121
  <span class="tooltip-text top" style="">
122
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
123
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
@@ -125,10 +124,10 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
125
  </span>
126
  </a>
127
  </li>
128
- <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
129
  <li><a href="javascript:;" class="cus-tooltip">
130
  <span class="html-tooltip last">
131
- Metadata details on Media Library hover <span class="has-tooltip">*</span>
132
  <span class="tooltip-text" style="">
133
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
134
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
@@ -136,27 +135,27 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
136
  </span>
137
  </a>
138
  </li>
139
- <li><a href="javascript:;" class="cus-tooltip">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li>
140
- <li><a href="javascript:;" class="cus-tooltip">Directly upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
141
- <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
142
- <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
143
- <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
144
- <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
145
- <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li>
146
- <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
147
- <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
148
- <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
149
  </ul>
150
  </div>
151
  <div class="price-table-bottom">
152
  <div class="custom-dd">
153
  <select class="multiple-options">
154
- <option data-option="1_year" data-header="Renewals for 25% off" data-price="89" value="<?php echo esc_url($proURL) ?>25">Updates &amp; support for 1 year</option>
155
- <option data-option="2_year" data-header="For 2 years" data-price="139" value="<?php echo esc_url($proURL) ?>26">Updates &amp; support for 2 years</option>
156
- <option data-option="lifetime" data-header="For lifetime" data-price="229" value="<?php echo esc_url($proURL) ?>27">Updates &amp; support for lifetime</option>
157
  </select>
158
  </div>
159
- <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=25">Buy now</a>
160
  </div>
161
  <div class="bottom-position"></div>
162
  </div>
@@ -165,28 +164,28 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
165
  <div class="price-table agency-feature">
166
  <div class="price-table-top">
167
  <div class="price-head">
168
- <div class="plan-name">Agency</div>
169
- <div class="plan-price">$149<span>/year</span></div>
170
  </div>
171
- <div class="price-websites">For agencies who manage clients</div>
172
- <div class="price-offer">Renewals for <b>25% off</b></div>
173
  </div>
174
  <div class="price-table-middle">
175
  <ul>
176
  <li>
177
  <div class="website-package">
178
  <select class="multiple-web-options">
179
- <option value="50_websites">50 websites</option>
180
- <option value="500_websites">500 websites</option>
181
- <option value="1000_websites">1000 websites</option>
182
  </select>
183
  </div>
184
  </li>
185
- <li><a href="javascript:;">Organize pages, posts, and media files</a></li>
186
- <li><a href="javascript:;" class="cus-tooltip">Unlimited subfolders (with multilevel support)<span class="has-tooltip">*</span><span class="tooltip__content">Create unlimited folders, sub-folders with multi-level support</span></a></li>
187
  <li><a href="javascript:;" class="cus-tooltip">
188
  <span class="html-tooltip dynamic last">
189
- Dynamic Folders<span class="has-tooltip">*</span>
190
  <span class="tooltip-text top" style="">
191
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
192
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
@@ -194,37 +193,37 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
194
  </span>
195
  </a>
196
  </li>
197
- <li><a href="javascript:;" class="cus-tooltip">Create folders for each post type. I.e. WooCommerce, Elementor<span class="has-tooltip">*</span><span class="tooltip__content">Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)</span></a></li>
198
  <li><a href="javascript:;" class="cus-tooltip">
199
  <span class="html-tooltip last">
200
- Metadata details on Media Library hover <span class="has-tooltip">*</span>
201
  <span class="tooltip-text top" style="">
202
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
203
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
204
  </span>
205
  </span>
206
  </a></li>
207
- <li><a href="javascript:;" class="cus-tooltip">Clean unused media files from your Media Library<span class="has-tooltip">*</span><span class="tooltip__content">Media Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them</span></a></li>
208
- <li><a href="javascript:;" class="cus-tooltip">Directly upload folders with all its content<span class="has-tooltip">*</span><span class="tooltip__content">Upload a folder (all its content within the folder) directly</span></a></li>
209
- <li><a href="javascript:;" class="cus-tooltip">Sort folders based on the date<span class="has-tooltip">*</span><span class="tooltip__content">Sort folders based on the creation date of the folders</span></a></li>
210
- <li><a href="javascript:;" class="cus-tooltip">Replace media for all file types and update file names from WordPress titles<span class="has-tooltip">*</span><span class="tooltip__content">Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side</span></a></li>
211
- <li><a href="javascript:;" class="cus-tooltip">Advanced Media Replacements<span class="has-tooltip">*</span><span class="tooltip__content">Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO</span></a></li>
212
- <li><a href="javascript:;" class="cus-tooltip">User access restriction<span class="has-tooltip">*</span><span class="tooltip__content">Restrict users within their own folders only (restrict Dynamic Folder access as well)</span></a></li>
213
- <li><a href="javascript:;" class="cus-tooltip">Bookmark, lock & duplicate folders<span class="has-tooltip">*</span><span class="tooltip__content">Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders</span></a></li>
214
- <li><a href="javascript:;" class="cus-tooltip">Move files to trash before permanently removing<span class="has-tooltip">*</span><span class="tooltip__content">Before deleting files permanently, move them to trash to reduce accidental deletion</span></a></li>
215
- <li><a href="javascript:;" class="cus-tooltip">Customize folder styles with fonts, custom colors & more<span class="has-tooltip">*</span><span class="tooltip__content">Customize folders with your preferred colors, font size, font family & more</span></a></li>
216
- <li><a href="javascript:;" class="cus-tooltip">Download folders as ZIP<span class="has-tooltip">*</span><span class="tooltip__content">Download all contents of a folder as a ZIP</span></a></li>
217
  </ul>
218
  </div>
219
  <div class="price-table-bottom">
220
  <div class="custom-dd">
221
  <select class="multiple-options has-multiple-websites">
222
- <option data-option="1_year" data-header="Renewals for 25% off" data-price="149" value="<?php echo esc_url($proURL) ?>28">Updates &amp; support for 1 year</option>
223
- <option data-option="2_year" data-header="For 2 years" data-price="229" value="<?php echo esc_url($proURL) ?>29">Updates &amp; support for 2 years</option>
224
- <option data-option="lifetime" data-header="For lifetime" data-price="389" value="<?php echo esc_url($proURL) ?>30">Updates &amp; support for lifetime</option>
225
  </select>
226
  </div>
227
- <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&amp;download_id=687&amp;edd_options%5Bprice_id%5D=28">Buy now</a>
228
  </div>
229
  <div class="bottom-position"></div>
230
  </div>
@@ -248,9 +247,9 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
248
  <div class="folder-testimonial">
249
  <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div>
250
  <div class="testimonial-data">
251
- <div class="testimonial-title">A brilliant solution!</div>
252
- <div class="testimonial-desc">I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!</div>
253
- <div class="testimonial-author">- Trevor Jordan</div>
254
  </div>
255
  </div>
256
  </div>
@@ -356,13 +355,13 @@ $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_opti
356
  }
357
  thisOption = $(this).find("option:selected").attr("data-option");
358
  if (thisOption == "1_year") {
359
- thisPrice = thisPrice + "<span>/year</span>";
360
- priceText = "Renewals for <b>25% off</b>";
361
  } else if (thisOption == "2_year") {
362
- thisPrice = thisPrice + "<span>/2 years</span>";
363
- priceText = "Renewals for <b>25% off</b>";
364
  } else {
365
- thisPrice = thisPrice + "<span>/lifetime</span>";
366
  priceText = "For lifetime";
367
  }
368
  $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);
9
  if (! defined('ABSPATH')) {
10
  exit;
11
  }
 
12
  $proURL = "https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=";
13
  ?>
14
 
16
  <div class="easy-modal-inner">
17
  <div class="container">
18
  <div class="pricing-table">
19
+ <div class="price-title"><?php esc_html_e("Unlock All Features", "folders") ?></div>
20
  <div class="pricing-table-header">
21
  <div class="pricing-table-body">
22
  <div class="pricing-table-content first active" data-option="1_year">
23
+ <div class="year-col"><?php esc_html_e("1 Year", "folders") ?></div>
24
+ <div class="update-col"><?php esc_html_e("Updates & Support", "folders") ?></div>
25
  <div class="pricing-discount-col"></div>
26
  </div>
27
  <div class="pricing-table-content second" data-option="2_year">
28
+ <div class="year-col"><?php esc_html_e("2 Years", "folders") ?></div>
29
+ <div class="update-col"><?php esc_html_e("Updates & Support", "folders") ?></div>
30
+ <div class="pricing-discount-col"><span><?php esc_html_e("32% off", "folders") ?> &#128526;</span></div>
31
  </div>
32
  <div class="pricing-table-content third" data-option="lifetime">
33
+ <div class="year-col"><?php esc_html_e("Lifetime", "folders") ?></div>
34
+ <div class="update-col"><?php esc_html_e("Updates & Support", "folders") ?></div>
35
+ <div class="pricing-discount-col"><span><?php esc_html_e("63% off", "folders") ?> &#129395;</span></div>
36
  </div>
37
  </div>
38
  </div>
42
  <div class="price-table basic-feature">
43
  <div class="price-table-top">
44
  <div class="price-head">
45
+ <div class="plan-name"><?php esc_html_e("Basic", "folders") ?></div>
46
+ <div class="plan-price">$39<span><?php esc_html_e("/year", "folders") ?></span></div>
47
  </div>
48
+ <div class="price-websites"><?php esc_html_e("For small website owners", "folders") ?></div>
49
+ <div class="price-offer"><?php printf(esc_html__("Renewals for %s", "folders"), "<b>".esc_html__("25% off", "folders")."</b>") ?></div>
50
  </div>
51
  <div class="price-table-middle">
52
  <ul>
53
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("1 website", "folders") ?> <span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Use Folders on 1 domain", "folders") ?></span></a></li>
54
+ <li><a href="javascript:;"><?php esc_html_e("Organize pages, posts, and media files", "folders") ?></a></li>
55
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Unlimited subfolders (with multilevel support)", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Create unlimited folders, sub-folders with multi-level support", "folders") ?></span></a></li>
56
  <li><a href="javascript:;" class="cus-tooltip">
57
  <span class="html-tooltip dynamic last">
58
+ <?php esc_html_e("Dynamic Folders", "folders") ?><span class="has-tooltip">*</span>
59
  <span class="tooltip-text" style="">
60
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
61
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
63
  </span>
64
  </a>
65
  </li>
66
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Create folders for each post type. I.e. WooCommerce, Elementor", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)", "folders") ?></span></a></li>
67
  <li><a href="javascript:;" class="cus-tooltip">
68
  <span class="html-tooltip last">
69
+ <?php esc_html_e("Metadata details on Media Library hover", "folders") ?> <span class="has-tooltip">*</span>
70
  <span class="tooltip-text " style="">
71
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
72
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
74
  </span>
75
  </a>
76
  </li>
77
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Clean unused media files from your Media Library", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("DMedia Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them", "folders") ?></span></a></li>
78
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Directly upload folders with all its content", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Upload a folder (all its content within the folder) directly", "folders") ?></span></a></li>
79
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Sort folders based on the date", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Sort folders based on the creation date of the folders", "folders") ?></span></a></li>
80
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Replace media for all file types and update file names from WordPress titles", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side", "folders") ?></span></a></li>
81
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Advanced Media Replacements", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO", "folders") ?></span></a></li>
82
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("User access restriction", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Restrict users within their own folders only (restrict Dynamic Folder access as well)", "folders") ?></span></a></li>
83
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Bookmark, lock & duplicate folders", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders", "folders") ?></span></a></li>
84
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Move files to trash before permanently removing", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Before deleting files permanently, move them to trash to reduce accidental deletion", "folders") ?></span></a></li>
85
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Customize folder styles with fonts, custom colors & more", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Customize folders with your preferred colors, font size, font family & more", "folders") ?></span></a></li>
86
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Download folders as ZIP", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Download all contents of a folder as a ZIP", "folders") ?></span></a></li>
87
  </ul>
88
  </div>
89
  <div class="price-table-bottom">
90
  <div class="custom-dd">
91
  <select class="multiple-options">
92
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="39" value="<?php echo esc_url($proURL) ?>22"><?php esc_html_e("Updates & support for 1 year", "folders") ?></option>
93
+ <option data-option="2_year" data-header="For 2 years" data-price="59" value="<?php echo esc_url($proURL) ?>23"><?php esc_html_e("Updates & support for 2 years", "folders") ?></option>
94
+ <option data-option="lifetime" data-header="For lifetime" data-price="119" value="<?php echo esc_url($proURL) ?>24"><?php esc_html_e("Updates & support for lifetime", "folders") ?></option>
95
  </select>
96
  </div>
97
+ <a class="cart-link" target="_blank" href="<?php echo esc_url($proURL) ?>22"><?php esc_html_e("Buy now", "folders") ?></a>
98
  </div>
99
  <div class="bottom-position"></div>
100
  </div>
103
  <div class="price-table plus-feature">
104
  <div class="price-table-top">
105
  <div class="price-head">
106
+ <div class="plan-name"><?php esc_html_e("Plus", "folders") ?></div>
107
+ <div class="plan-price">$89<span><?php esc_html_e("/year", "folders") ?></span></div>
108
  </div>
109
+ <div class="price-websites"><?php esc_html_e("For businesses with multiple websites", "folders") ?></div>
110
+ <div class="price-offer"><?php printf(esc_html__("Renewals for %s", "folders"), "<b>".esc_html__("25% off", "folders")."</b>") ?></div>
111
  </div>
112
  <div class="price-table-middle">
113
  <ul>
114
  <li><a href="javascript:;" class="cus-tooltip">5 website <span class="has-tooltip">*</span><span class="tooltip__content">Use Folders on 5 domains</span></a></li>
115
+ <li><a href="javascript:;"><?php esc_html_e("Organize pages, posts, and media files", "folders") ?></a></li>
116
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Unlimited subfolders (with multilevel support)", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Create unlimited folders, sub-folders with multi-level support", "folders") ?></span></a></li>
117
  <li><a href="javascript:;" class="cus-tooltip">
118
  <span class="html-tooltip dynamic last">
119
+ <?php esc_html_e("Dynamic Folders", "folders") ?><span class="has-tooltip">*</span>
120
  <span class="tooltip-text top" style="">
121
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
122
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
124
  </span>
125
  </a>
126
  </li>
127
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Create folders for each post type. I.e. WooCommerce, Elementor", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)", "folders") ?></span></a></li>
128
  <li><a href="javascript:;" class="cus-tooltip">
129
  <span class="html-tooltip last">
130
+ <?php esc_html_e("Metadata details on Media Library hover", "folders") ?> <span class="has-tooltip">*</span>
131
  <span class="tooltip-text" style="">
132
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
133
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
135
  </span>
136
  </a>
137
  </li>
138
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Clean unused media files from your Media Library", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("DMedia Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them", "folders") ?></span></a></li>
139
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Directly upload folders with all its content", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Upload a folder (all its content within the folder) directly", "folders") ?></span></a></li>
140
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Sort folders based on the date", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Sort folders based on the creation date of the folders", "folders") ?></span></a></li>
141
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Replace media for all file types and update file names from WordPress titles", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side", "folders") ?></span></a></li>
142
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Advanced Media Replacements", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO", "folders") ?></span></a></li>
143
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("User access restriction", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Restrict users within their own folders only (restrict Dynamic Folder access as well)", "folders") ?></span></a></li>
144
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Bookmark, lock & duplicate folders", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders", "folders") ?></span></a></li>
145
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Move files to trash before permanently removing", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Before deleting files permanently, move them to trash to reduce accidental deletion", "folders") ?></span></a></li>
146
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Customize folder styles with fonts, custom colors & more", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Customize folders with your preferred colors, font size, font family & more", "folders") ?></span></a></li>
147
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Download folders as ZIP", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Download all contents of a folder as a ZIP", "folders") ?></span></a></li>
148
  </ul>
149
  </div>
150
  <div class="price-table-bottom">
151
  <div class="custom-dd">
152
  <select class="multiple-options">
153
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="89" value="<?php echo esc_url($proURL) ?>25"><?php esc_html_e("Updates & support for 1 year", "folders") ?></option>
154
+ <option data-option="2_year" data-header="For 2 years" data-price="139" value="<?php echo esc_url($proURL) ?>26"><?php esc_html_e("Updates & support for 2 years", "folders") ?></option>
155
+ <option data-option="lifetime" data-header="For lifetime" data-price="229" value="<?php echo esc_url($proURL) ?>27"><?php esc_html_e("Updates & support for lifetime", "folders") ?></option>
156
  </select>
157
  </div>
158
+ <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=25"><?php esc_html_e("Buy now", "folders") ?></a>
159
  </div>
160
  <div class="bottom-position"></div>
161
  </div>
164
  <div class="price-table agency-feature">
165
  <div class="price-table-top">
166
  <div class="price-head">
167
+ <div class="plan-name"><?php esc_html_e("Agency", "folders") ?></div>
168
+ <div class="plan-price">$149<span><?php esc_html_e("/year", "folders") ?></span></div>
169
  </div>
170
+ <div class="price-websites"><?php esc_html_e("For agencies who manage clients", "folders") ?></div>
171
+ <div class="price-offer"><?php printf(esc_html__("Renewals for %s", "folders"), "<b>".esc_html__("25% off", "folders")."</b>") ?></div>
172
  </div>
173
  <div class="price-table-middle">
174
  <ul>
175
  <li>
176
  <div class="website-package">
177
  <select class="multiple-web-options">
178
+ <option value="50_websites"><?php esc_html_e("50 websites", "folders") ?></option>
179
+ <option value="500_websites"><?php esc_html_e("500 websites", "folders") ?></option>
180
+ <option value="1000_websites"><?php esc_html_e("1000 websites", "folders") ?></option>
181
  </select>
182
  </div>
183
  </li>
184
+ <li><a href="javascript:;"><?php esc_html_e("Organize pages, posts, and media files", "folders") ?></a></li>
185
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Unlimited subfolders (with multilevel support)", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Create unlimited folders, sub-folders with multi-level support", "folders") ?></span></a></li>
186
  <li><a href="javascript:;" class="cus-tooltip">
187
  <span class="html-tooltip dynamic last">
188
+ <?php esc_html_e("Dynamic Folders", "folders") ?><span class="has-tooltip">*</span>
189
  <span class="tooltip-text top" style="">
190
  <?php esc_html_e("Automatically filter posts/pages/custom posts/media files based on author, date, file types & more", "folders") ?>
191
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/dynamic-folders.gif") ?>">
193
  </span>
194
  </a>
195
  </li>
196
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Create folders for each post type. I.e. WooCommerce, Elementor", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Use folders with other plugins that have custom post type (e.g. Elementor templates, WooCommerce & more)", "folders") ?></span></a></li>
197
  <li><a href="javascript:;" class="cus-tooltip">
198
  <span class="html-tooltip last">
199
+ <?php esc_html_e("Metadata details on Media Library hover", "folders") ?> <span class="has-tooltip">*</span>
200
  <span class="tooltip-text top" style="">
201
  <?php esc_html_e("Show useful metadata including title, size, type, date, dimension & more on hover.", "folders") ?>
202
  <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/folders-media.gif") ?>">
203
  </span>
204
  </span>
205
  </a></li>
206
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Clean unused media files from your Media Library", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("DMedia Cleaner will first analyze your whole WordPress and show you a list of unused media files for you to go through and delete them", "folders") ?></span></a></li>
207
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Directly upload folders with all its content", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Upload a folder (all its content within the folder) directly", "folders") ?></span></a></li>
208
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Sort folders based on the date", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Sort folders based on the creation date of the folders", "folders") ?></span></a></li>
209
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Replace media for all file types and update file names from WordPress titles", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace all types of media files including PDF/SVG/ZIP/DOCX/XSLX & more. While replacing compare the two files side by side", "folders") ?></span></a></li>
210
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Advanced Media Replacements", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Replace media files when uploading and update all references in the database, change dates, organize by newer date & more without hurting your SEO", "folders") ?></span></a></li>
211
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("User access restriction", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Restrict users within their own folders only (restrict Dynamic Folder access as well)", "folders") ?></span></a></li>
212
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Bookmark, lock & duplicate folders", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Bookmark, lock/unlock or duplicate folders for faster & easier access to your favorite folders", "folders") ?></span></a></li>
213
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Move files to trash before permanently removing", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Before deleting files permanently, move them to trash to reduce accidental deletion", "folders") ?></span></a></li>
214
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Customize folder styles with fonts, custom colors & more", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Customize folders with your preferred colors, font size, font family & more", "folders") ?></span></a></li>
215
+ <li><a href="javascript:;" class="cus-tooltip"><?php esc_html_e("Download folders as ZIP", "folders") ?><span class="has-tooltip">*</span><span class="tooltip__content"><?php esc_html_e("Download all contents of a folder as a ZIP", "folders") ?></span></a></li>
216
  </ul>
217
  </div>
218
  <div class="price-table-bottom">
219
  <div class="custom-dd">
220
  <select class="multiple-options has-multiple-websites">
221
+ <option data-option="1_year" data-header="Renewals for 25% off" data-price="149" value="<?php echo esc_url($proURL) ?>28"><?php esc_html_e("Updates & support for 1 year", "folders") ?></option>
222
+ <option data-option="2_year" data-header="For 2 years" data-price="229" value="<?php echo esc_url($proURL) ?>29"><?php esc_html_e("Updates & support for 2 years", "folders") ?></option>
223
+ <option data-option="lifetime" data-header="For lifetime" data-price="389" value="<?php echo esc_url($proURL) ?>30"><?php esc_html_e("Updates & support for lifetime", "folders") ?></option>
224
  </select>
225
  </div>
226
+ <a class="cart-link" target="_blank" href="https://go.premio.io/?edd_action=add_to_cart&download_id=687&edd_options[price_id]=28"><?php esc_html_e("Buy now", "folders") ?></a>
227
  </div>
228
  <div class="bottom-position"></div>
229
  </div>
247
  <div class="folder-testimonial">
248
  <div class="testimonial-image"> <img src="<?php echo esc_url(WCP_FOLDER_URL."assets/images/client-image.jpg") ?>"> </div>
249
  <div class="testimonial-data">
250
+ <div class="testimonial-title"><?php esc_html_e("A brilliant solution!", 'folders'); ?></div>
251
+ <div class="testimonial-desc"><?php esc_html_e("I’ve used other folder plug-ins for my WordPress media files, but Folders is better than any of them. An uncluttered interface, intuitive to use, allows drag-and-drop and allows subfolders: exactly what I needed in a media library folder plug-in. I can’t believe it’s free!", 'folders'); ?></div>
252
+ <div class="testimonial-author"><?php esc_html_e("- Trevor Jordan", 'folders'); ?></div>
253
  </div>
254
  </div>
255
  </div>
355
  }
356
  thisOption = $(this).find("option:selected").attr("data-option");
357
  if (thisOption == "1_year") {
358
+ thisPrice = thisPrice + "<span><?php esc_html_e("/year", "folders") ?></span>";
359
+ priceText = "<?php printf(esc_html__("Renewals for %s", "folders"), "<b>".esc_html__("25% off", "folders")."</b>") ?>";
360
  } else if (thisOption == "2_year") {
361
+ thisPrice = thisPrice + "<span><?php esc_html_e("/2 years", "folders") ?></span>";
362
+ priceText = "<?php printf(esc_html__("Renewals for %s", "folders"), "<b>".esc_html__("25% off", "folders")."</b>") ?>";
363
  } else {
364
+ thisPrice = thisPrice + "<span><?php esc_html_e("/lifetime", "folders") ?></span>";
365
  priceText = "For lifetime";
366
  }
367
  $(this).closest(".price-table").find("a.cart-link").attr("href", thisValue);