Heray-Was-Here
Server : LiteSpeed
System : Linux server310.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : myveqfxv ( 6863)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/myveqfxv/www/wp-content/plugins/gutenverse/assets/js/frontend/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/myveqfxv/www/wp-content/plugins/gutenverse/assets/js/frontend/postlist.js
(()=>{var t={2087(t,e,r){var n=r(2243)(r(4358),"DataView");t.exports=n},402(t,e,r){var n=r(2243)(r(4358),"Map");t.exports=n},6541(t,e,r){var n=r(2243)(r(4358),"Promise");t.exports=n},5032(t,e,r){var n=r(2243)(r(4358),"Set");t.exports=n},474(t,e,r){var n=r(4358).Symbol;t.exports=n},6542(t,e,r){var n=r(2243)(r(4358),"WeakMap");t.exports=n},5723(t,e,r){var n=r(474),o=r(3918),a=r(9365),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):a(t)}},5427(t,e,r){var n=r(5723),o=r(827);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},1392(t,e,r){var n=r(1583),o=r(3855),a=r(7604),i=r(2586),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,p=u.toString,l=s.hasOwnProperty,f=RegExp("^"+p.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?f:c).test(i(t))}},5882(t,e,r){var n=r(5723),o=r(8723),a=r(827),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&o(t.length)&&!!i[n(t)]}},2651(t,e,r){var n=r(4154),o=r(8225),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},2652(t){t.exports=function(t){return function(e){return t(e)}}},2614(t,e,r){var n=r(4358)["__core-js_shared__"];t.exports=n},9023(t,e,r){var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2243(t,e,r){var n=r(1392),o=r(4099);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},3918(t,e,r){var n=r(474),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[c]=r:delete t[c]),o}},7534(t,e,r){var n=r(2087),o=r(402),a=r(6541),i=r(5032),c=r(6542),u=r(5723),s=r(2586),p="[object Map]",l="[object Promise]",f="[object Set]",b="[object WeakMap]",d="[object DataView]",y=s(n),g=s(o),v=s(a),m=s(i),j=s(c),w=u;(n&&w(new n(new ArrayBuffer(1)))!=d||o&&w(new o)!=p||a&&w(a.resolve())!=l||i&&w(new i)!=f||c&&w(new c)!=b)&&(w=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case y:return d;case g:return p;case v:return l;case m:return f;case j:return b}return e}),t.exports=w},4099(t){t.exports=function(t,e){return null==t?void 0:t[e]}},3855(t,e,r){var n,o=r(2614),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},4154(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},8225(t,e,r){var n=r(942)(Object.keys,Object);t.exports=n},6122(t,e,r){t=r.nmd(t);var n=r(9023),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,i=a&&a.exports===o&&n.process,c=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(t){}}();t.exports=c},9365(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},942(t){t.exports=function(t,e){return function(r){return t(e(r))}}},4358(t,e,r){var n=r(9023),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();t.exports=a},2586(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9707(t,e,r){var n=r(5427),o=r(827),a=Object.prototype,i=a.hasOwnProperty,c=a.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&i.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},2958(t){var e=Array.isArray;t.exports=e},8537(t,e,r){var n=r(1583),o=r(8723);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},6677(t,e,r){t=r.nmd(t);var n=r(4358),o=r(9756),a=e&&!e.nodeType&&e,i=a&&t&&!t.nodeType&&t,c=i&&i.exports===a?n.Buffer:void 0,u=(c?c.isBuffer:void 0)||o;t.exports=u},3282(t,e,r){var n=r(2651),o=r(7534),a=r(9707),i=r(2958),c=r(8537),u=r(6677),s=r(4154),p=r(7586),l=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(i(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||p(t)||a(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(s(t))return!n(t).length;for(var r in t)if(l.call(t,r))return!1;return!0}},1583(t,e,r){var n=r(5723),o=r(7604);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8723(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7604(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},827(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7586(t,e,r){var n=r(5882),o=r(2652),a=r(6122),i=a&&a.isTypedArray,c=i?o(i):n;t.exports=c},9756(t){t.exports=function(){return!1}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={id:n,loaded:!1,exports:{}};return t[n](a,a.exports,r),a.loaded=!0,a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(e){var r=function(e){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==t(r)?r:r+""}function n(t,r,n){return(r=e(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function o(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,e(o.key),o)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function i(t,e){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},i(t,e)}const c=gutenverseCoreFrontend;var u=r(3282),s=r.n(u);const p=window.wp.url;function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach(function(e){n(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function b(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(b=function(){return!!t})()}var d=function(e){function r(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),e=this,o=arguments,n=a(n=r),function(e,r){if(r&&("object"==t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e)}(e,b()?Reflect.construct(n,o||[],a(e).constructor):n.apply(e,o));var e,n,o}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&i(t,e)}(r,e),n=r,(u=[{key:"init",value:function(){var t=this;this._elements.map(function(e){t._tabItems(e)})}},{key:"_loadMore",value:function(t,e){var r=this,n=t.find(".guten-postlist").data("id"),o=e.postId,a=e.inheritQuery,i=e.postType,u=e.postOffset,l=e.numberPost,f=e.includePost,b=e.excludePost,d=e.includeCategory,y=e.excludeCategory,g=e.includeAuthor,v=e.includeTag,m=e.excludeTag,j=e.sortBy,w=e.layout,h=e.imageEnabled,O=e.backgroundImageEnabled,x=e.iconEnabled,P=e.icon,_=e.metaEnabled,S=e.metaDateEnabled,I=e.metaDateType,A=e.metaDateFormat,D=e.metaDateFormatCustom,T=e.metaDateIcon,E=e.metaDateIconPosition,k=e.metaCategoryEnabled,q=e.metaCategoryIcon,C=e.metaPosition,F=e.paginationMode,M=e.paginationLoadmoreText,B=e.paginationLoadingText,L=e.paginationNumberPost,N=e.paginationScrollLimit,G=e.paginationIcon,R=e.paginationIconPosition,$=null,U=!1;window.GutenverseData&&!s()(window.GutenverseData.query)&&($=window.GutenverseData.query,U=!0),t.find(".guten-block-loadmore").html("<span>".concat(B,"</span>"));var Q=(window.wpApiSettings&&window.wpApiSettings.root?window.wpApiSettings.root:"/wp-json/")+(0,p.addQueryArgs)("gutenverse-client/v1/postlist/data",{context:"edit",attributes:{elementId:n,postId:o,inheritQuery:a,postType:i,postOffset:u,numberPost:parseInt(l)+parseInt(L),includePost:f,excludePost:b,includeCategory:d,excludeCategory:y,includeAuthor:g,includeTag:v,excludeTag:m,sortBy:j,layout:w,imageEnabled:h,backgroundImageEnabled:O,iconEnabled:x,icon:P,metaEnabled:_,metaDateEnabled:S,metaDateType:I,metaDateFormat:A,metaDateFormatCustom:D,metaDateIcon:T,metaDateIconPosition:E,metaCategoryEnabled:k,metaCategoryIcon:q,metaPosition:C,paginationMode:F,paginationLoadmoreText:M,paginationLoadingText:B,paginationNumberPost:L,paginationScrollLimit:N,paginationIcon:G,paginationIconPosition:R,qApi:U,qSearch:$&&$.q_search,qCategory:$&&$.q_category_name,qTag:$&&$.q_tag,qAuthor:$&&$.q_author}});fetch(Q).then(function(t){return t.json()}).then(function(o){t.replace(o.rendered);var a=(0,c.u)(".".concat(n,".guten-post-list"));if("scrollload"===F&&r._shouldItBeLoading(a,e)){var i=JSON.parse(a.find(".guten-postlist").data("settings"));r._loadMore(a,i)}else r._tabItems(".".concat(n,".guten-post-list"))}).catch(function(){})}},{key:"_shouldItBeLoading",value:function(t,e){var r=e.numberPost,n=e.paginationScrollLimit,o=t.find(".guten-block-loadmore");return o.length>0&&o.first().getBoundingClientRect().y<window.screen.height/2&&(parseInt(n)>=parseInt(r)||0===parseInt(n))}},{key:"_paginatePosts",value:function(t,e,r){var n=this,o=t.find(".guten-postlist").data("id"),a=parseInt(t.find(".guten_block_nav").data("page")||1),i=parseInt(e.numberPost,10);isNaN(r)?"next"===r?a+=1:"prev"===r&&a>1&&(a-=1):a=parseInt(r,10);var c=null,u=!1;window.GutenverseData&&!s()(window.GutenverseData.query)&&(c=window.GutenverseData.query,u=!0);var l=(window.wpApiSettings&&window.wpApiSettings.root?window.wpApiSettings.root:"/wp-json/")+(0,p.addQueryArgs)("gutenverse-client/v1/postlist/data",{attributes:f(f({},e),{},{paged:a,numberPost:i,paginationNumberPost:i,qApi:u,qSearch:c&&c.q_search,qCategory:c&&c.q_category_name,qTag:c&&c.q_tag,qAuthor:c&&c.q_author})});fetch(l).then(function(t){return t.json()}).then(function(e){t.html(e.rendered),n._tabItems(".".concat(o,".guten-post-list"))}).catch(function(){})}},{key:"_tabItems",value:function(t){var e=this,r=(0,c.u)(t),n=JSON.parse(r.find(".guten-postlist").data("settings")),o=n.paginationMode;if("scrollload"===o){var a,i=function(){clearTimeout(a),a=setTimeout(function(){e._shouldItBeLoading(r,n)&&e._loadMore(r,n)},500)};window.removeEventListener("scroll",i),window.addEventListener("scroll",i)}if("prevnext"===o||"number"===o){var u=r.find(".guten_block_nav .prev"),s=r.find(".guten_block_nav .next");u.on("click",function(t){t.preventDefault(),u.hasClass("disabled")||e._paginatePosts(r,n,"prev")}),s.on("click",function(t){t.preventDefault(),s.hasClass("disabled")||e._paginatePosts(r,n,"next")}),"number"===o&&r.first().querySelectorAll(".guten_block_nav .btn-pagination").forEach(function(t){var o=t.getAttribute("data-page");o&&!isNaN(o)&&t.addEventListener("click",function(t){t.preventDefault(),e._paginatePosts(r,n,o)})})}r.find(".guten-block-loadmore").on("click",function(){e._loadMore(r,n)})}}])&&o(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(c.Default),y=(0,c.u)(".guten-post-list");y&&new d(y)})()})();

Hry