Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /proc/thread-self/cwd/wp-content/plugins/uicore-elements/assets/js/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/thread-self/cwd/wp-content/plugins/uicore-elements/assets/js/utils/ajax-request.js
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:String(e)}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);n=n.call(e,t||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(n){var o=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(n);return _possibleConstructorReturn(this,o?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.addEventListener("DOMContentLoaded",function(){var t=function(){_inherits(t,elementorModules.frontend.handlers.Base);var e=_createSuper(t);function t(){return _classCallCheck(this,t),e.apply(this,arguments)}return _createClass(t,[{key:"bindEvents",value:function(){var t=this,e=this.$element.find("button.ui-e-load-more"),n=this.$element.find("button[data-ui-e-action=filter]"),o=this.$element.find("button[data-ui-e-action=clear]");window["ui_next_page_widget"+this.getID()]||(e.on("click",function(){return t.ajaxRequest("load")}),o.on("click",function(){return t.ajaxRequest("clear",jQuery(event.target))}),n.on("click",function(e){return t.ajaxRequest("filter",jQuery(e.target))}))}},{key:"ajaxRequest",value:function(t){var n=this,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;window["ui_next_page_widget"+this.getID()]||("load"==t?window["ui_next_page_widget"+this.getID()]=2:"filter"==t&&(window["ui_next_page_widget"+this.getID()]=1)),("filter"==t||"clear"==t)&&e.hasClass("ui-e-active")||("filter"==t&&(window["ui_taxonomy_"+this.getID()]=e.data("ui-e-taxonomy"),window["ui_term_"+this.getID()]=e.data("ui-e-term"),window["ui_next_page_widget"+this.getID()]=1,e.addClass("ui-e-active").siblings().removeClass("ui-e-active")),"clear"==t&&(window["ui_taxonomy_"+this.getID()]=null,window["ui_term_"+this.getID()]=null,e.addClass("ui-e-active").siblings().removeClass("ui-e-active")),e=encodeURIComponent(JSON.stringify(window["ui_query_"+this.getID()])),jQuery.ajax({url:"/wp-json/uielem/v1/load_more/",method:"GET",data:{widget_id:this.getID(),widget_type:this.getWidgetType(),page:window["ui_next_page_widget"+this.getID()],type:window["ui_taxonomy_"+this.getID()],term:window["ui_term_"+this.getID()],max_num_pages:window["ui_total_pages_"+this.getID()],current_query:e},success:function(e){n.updateMarkup(e.markup,t),e.total_pages==window["ui_next_page_widget"+n.getID()]&&n.$element.find("button.ui-e-load-more").hide(),e.total_pages>window["ui_next_page_widget"+n.getID()]&&n.$element.find("button.ui-e-load-more").show(),("load"==t||"filter"==t&&e.total_pages>window["ui_next_page_widget"+n.getID()])&&++window["ui_next_page_widget"+n.getID()],elementorFrontend.elementsHandler.runReadyTrigger(n.$element)},error:function(e,t,n){console.error("AJAX Error:",t,n)}}))}},{key:"updateMarkup",value:function(e,t){var n=this.$element.find(".ui-e-grid, .ui-e-adv-grid"),e=jQuery(e);("load"==t?n:n.empty()).append(e)}}]),t}();jQuery(window).on("elementor/frontend/init",function(){function e(e){elementorFrontend.elementsHandler.addHandler(t,{$element:e})}elementorFrontend.hooks.addAction("frontend/element_ready/uicore-advanced-post-grid.default",e),elementorFrontend.hooks.addAction("frontend/element_ready/uicore-advanced-product-grid.default",e)})});

Spamworldpro Mini