403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/envira-gallery/assets/js/min/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/envira-gallery/assets/js/min/admin-min.js
function fetchAndPopulateChoices(e,t,i,n){fetch(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action="+t,credentials:"same-origin"}).then(function(e){return e.json()}).then(function(e){e=e.galleries.map(function(e){return{value:e.gallery_id,label:e.gallery_title}});i.setChoices(e,"value","label",!0),void 0!==n&&i.setChoiceByValue(n)}).catch(function(e){console.log(e)})}jQuery(document).ready(function(d){d(".importfile").each(function(){var e=d(this),i=e.next("label"),n=i.html();e.on("change",function(e){var t="";this.files&&1<this.files.length?t=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):e.target.value&&(t=e.target.value.split("\\").pop()),t?i.find("span").html(t):i.html(n)}),e.on("focus",function(){e.addClass("has-focus")}).on("blur",function(){e.removeClass("has-focus")})}),d("#screen-meta-links").prependTo("#envira-header-temp"),d("#screen-meta").prependTo("#envira-header-temp"),d("#screen-meta-links").css("display","block"),"undefined"!=typeof Clipboard&&d(document).on("click",".envira-clipboard",function(e){new Clipboard(".envira-clipboard");e.preventDefault()});var e=document.getElementById("envira-permissions-dialog-id");if(e){let l=null;l=new A11yDialog(e);var t=document.getElementsByClassName("envira-permissions-select-field");const m=[];for(var i=0;i<t.length;i++){var n,o=t[i];0<o.length&&(n=o.getAttribute("id")+"_select",m[n]=new Choices(o,{allowHTML:!0,searchChoices:!1,searchEnabled:!1,removeItemButton:!0,itemSelectText:"",addItemText:"",shouldSort:!1,shouldSortItems:!1,classNames:{containerInner:"choices__inner roles_inner",containerOuter:"choices roles_inner"}}),o.addEventListener("addItem",function(e){a(d(this).attr("id"),e.detail.value,e.detail.label,"add"),s()},!1),o.addEventListener("removeItem",function(e){a(d(this).attr("id"),e.detail.value,e.detail.label,"remove"),s()},!1))}function s(){d(".choices__item").each(function(){"administrator"===d(this).attr("data-value")&&(d(this).removeClass("choices__item--selectable"),d(this).removeAttr("data-deletable"),d(this).removeAttr("data-item"),d(this).addClass("demos"),d(this).off("click"))}),d(".choices__button").each(function(){"Remove item: 'administrator'"===d(this).attr("aria-label")&&d(this).hide()})}function a(n,o,s,a){if(enviraPermissions&&enviraPermissions.hasOwnProperty(n)){var r=enviraPermissionsLabels[n],c=enviraPermissions[n];let e=n+"_select",t=function(i,n,o){for(var s=[],a=0;a<i.length;a++){let t=i[a];var r,c=document.querySelector("#"+t).selectedOptions;let e=[];for(r of c)e.push(r.value);"add"===n?-1===e.indexOf(o)&&(e.push(o),s.push(enviraPermissionsLabels[t])):-1!==e.indexOf(o)&&(e=e.filter(function(e){return e!==o}),s=s.filter(function(e){return e!==enviraPermissionsLabels[t]}))}return s}(c,a,o),i="";n=1<(t=t.filter(function(e){return e!==r})).length?"permissions":"permission";"add"===a?(i=`<p>In order to give <strong>${r}</strong> permission,
				<strong>${t}</strong> ${n} ${1<t.length?"are":"is"} also required.</p>`,i+=`<p>Would you like to also grant <strong>${t}</strong> ${n} to ${s}?</p>`):(i=`<p>In order to remove <strong>${r}</strong> permission,
				<strong>${t}</strong> ${n} will also be removed.</p>`,i+=`<p>Would you like to also remove <strong>${t}</strong> ${n} to <strong>${s}</strong>?</p>`),0<t.length?(d("#envira-permissions-alert").html(i),l.show(),d(".envira-permissions-yes").on("click",function(){u(c,o,a),l.hide()}),d(".envira-permissions-cancel").on("click",function(){"add"===a&&m[e].removeActiveItemsByValue(o),"remove"===a&&m[e].setChoiceByValue(o),l.hide()})):u(c,o,a),setTimeout(()=>m[e].hideDropdown(),0)}}function u(n,o,s){for(var a=0;a<n.length;a++){var r=n[a],c=document.querySelector("#"+r).selectedOptions;let e=[];var l;let t=enviraPermissionsLabels[r];for(l of c)e.push(l.value);r=Object.keys(enviraPermissionsLabels).find(e=>enviraPermissionsLabels[e]===t);let i=m[r+"_select"];"add"===s?-1===e.indexOf(o)&&(e.push(o),i.setChoiceByValue(o)):-1!==e.indexOf(o)&&(e=e.filter(function(e){return e!==o}),i.removeActiveItemsByValue(o))}}s()}0<d("#envira-config-image-sort").length&&(e=document.getElementById("envira-config-image-sort"),new Choices(e,{allowHTML:!0,searchChoices:!1,searchEnabled:!1,itemSelectText:"",addItemText:"",shouldSort:!1,shouldSortItems:!1,classNames:{containerInner:"choices__inner sort_inner",containerOuter:"choices sort_inner"}})),0<d("#envira-config-image-sort-dir").length&&(e=document.getElementById("envira-config-image-sort-dir"),new Choices(e,{allowHTML:!0,searchChoices:!1,searchEnabled:!1,itemSelectText:"",addItemText:"",classNames:{containerInner:"choices__inner sort_dir",containerOuter:"choices sort_dir"}})),d(".widgets-sortables").on("click","div.widget-top",function(e,t){var i,n,o=d(this).parent().attr("id"),s=(n=-1!==o.indexOf("envira-album")?(i="envira_widget_get_albums","album"):(i="envira_widget_get_galleries","gallery"),d("#"+o+" select.form-control").val());d("#"+o+" select.form-control option:selected").text();d("#"+o+" select.form-control").find("option").remove(),0<d("#"+o+" select.form-control").length&&(o=new Choices("#"+o+" select.form-control",{searchPlaceholderValue:"Search for an "+n,loadingText:"",itemSelectText:""}),fetchAndPopulateChoices(ajaxurl,i,o,s))}),d(document).on("widget-updated",function(e,t){var i,n,t=d(t).attr("id"),o=(n=-1!==t.indexOf("album")?(i="envira_widget_get_albums","album"):(i="envira_widget_get_galleries","gallery"),d("#"+t+" select.form-control").val());d("#"+t+" select.form-control option:selected").text();d("#"+t+" select.form-control").find("option").remove(),0<d("#"+t+" select.form-control").length&&(t=new Choices("#"+t+" select.form-control",{searchPlaceholderValue:"Search for an "+n,loadingText:"",itemSelectText:""}),fetchAndPopulateChoices(ajaxurl,i,t,o))}),d(document).on("widget-added",function(e,t){d(t).attr("id")}),d("#envira-top-notification .notice-dismiss").on("click",function(){d("#envira-top-notification").remove(),d.ajax({url:ajaxurl,type:"POST",data:{action:"envira_dismiss_upsell_notification",nonce:envira_gallery_admin_notifications.dismiss_upsell_nonce}})}),d("div.tablenav").each(function(){const e=d(this);e.text().trim()||e.hide()})}),function(i,e,t){let n;e.envira_notifications=n={init(){var e=this;e.$drawer=i("#envira-notifications-drawer"),e.find_elements(),e.init_open(),e.init_close(),e.init_dismiss(),e.init_view_switch(),e.update_count(e.active_count)},should_init(){return 0<this.$drawer.length},find_elements(){var e=this;e.$open_button=i("#envira-notifications-button"),e.$count=e.$drawer.find("#envira-notifications-count"),e.$dismissed_count=e.$drawer.find("#envira-notifications-dismissed-count"),e.active_count=e.$open_button.data("count")?e.$open_button.data("count"):0,e.dismissed_count=e.$open_button.data("dismissed"),e.$body=i("body"),e.$dismissed_button=i("#envira-notifications-show-dismissed"),e.$active_button=i("#envira-notifications-show-active"),e.$active_list=i(".envira-notifications-list .envira-notifications-active"),e.$dismissed_list=i(".envira-notifications-list .envira-notifications-dismissed"),e.$dismiss_all=i("#envira-dismiss-all")},update_count(e){var t=this;t.$open_button.data("count",e).attr("data-count",e),0===e&&t.$open_button.removeAttr("data-count"),t.$count.text(e),t.dismissed_count+=Math.abs(e-t.active_count),t.active_count=e,t.$dismissed_count.text(t.dismissed_count),0===t.active_count&&t.$dismiss_all.hide()},init_open(){var t=this;t.$open_button.on("click",function(e){e.preventDefault(),t.$body.addClass("envira-notifications-open")})},init_close(){var t=this;t.$body.on("click",".envira-notifications-close, .envira-notifications-overlay",function(e){e.preventDefault(),t.$body.removeClass("envira-notifications-open")})},init_dismiss(){var t=this;t.$drawer.on("click",".envira-notification-dismiss",function(e){e.preventDefault();e=i(this).data("id");if(t.dismiss_notification(e),"all"===e)return t.move_to_dismissed(t.$active_list.find("li")),void t.update_count(0);t.move_to_dismissed(i(this).closest("li")),t.update_count(t.active_count-1)})},move_to_dismissed(e){var t=this;e.slideUp(function(){i(this).prependTo(t.$dismissed_list).show()})},dismiss_notification(e){return i.post(ajaxurl,{action:"envira_notification_dismiss",nonce:t.dismiss_notification_nonce,id:e})},init_view_switch(){var t=this;t.$dismissed_button.on("click",function(e){e.preventDefault(),t.$drawer.addClass("show-dismissed")}),t.$active_button.on("click",function(e){e.preventDefault(),t.$drawer.removeClass("show-dismissed")})}},i(function(){n.init()})}(jQuery,window,envira_gallery_admin_notifications);

Youez - 2016 - github.com/yon3zu
LinuXploit