Viewing File: /home/ubuntu/theridgecorp-landing/blog/wp-content/plugins/the-post-grid/assets/elementor/main.js
(()=>{"use strict";var e={338:(e,t,n)=>{var r=n(795);t.H=r.createRoot,r.hydrateRoot},795:e=>{e.exports=window.ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};n.r(r),n.d(r,{hasBrowserEnv:()=>he,hasStandardBrowserEnv:()=>ge,hasStandardBrowserWebWorkerEnv:()=>ye,navigator:()=>Ce,origin:()=>we});const o=window.wp.element;var s=n(338);function i(e,t){return function(){return e.apply(t,arguments)}}const{toString:a}=Object.prototype,{getPrototypeOf:l}=Object,c=(u=Object.create(null),e=>{const t=a.call(e);return u[t]||(u[t]=t.slice(8,-1).toLowerCase())});var u;const d=e=>(e=e.toLowerCase(),t=>c(t)===e),f=e=>t=>typeof t===e,{isArray:p}=Array,m=f("undefined"),h=d("ArrayBuffer"),C=f("string"),g=f("function"),y=f("number"),w=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==c(e))return!1;const t=l(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},E=d("Date"),v=d("File"),R=d("Blob"),S=d("FileList"),O=d("URLSearchParams"),[L,N,T,x]=["ReadableStream","Request","Response","Headers"].map(d);function P(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function A(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,_=e=>!m(e)&&e!==j,k=(F="undefined"!=typeof Uint8Array&&l(Uint8Array),e=>F&&e instanceof F);var F;const B=d("HTMLFormElement"),U=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),D=d("RegExp"),M=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};P(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},q="abcdefghijklmnopqrstuvwxyz",H="0123456789",V={DIGIT:H,ALPHA:q,ALPHA_DIGIT:q+q.toUpperCase()+H},I=d("AsyncFunction"),z=(Z="function"==typeof setImmediate,$=g(j.postMessage),Z?setImmediate:$?(J=`axios@${Math.random()}`,W=[],j.addEventListener("message",(({source:e,data:t})=>{e===j&&t===J&&W.length&&W.shift()()}),!1),e=>{W.push(e),j.postMessage(J,"*")}):e=>setTimeout(e));var Z,$,J,W;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||z,G={isArray:p,isArrayBuffer:h,isBuffer:function(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&g(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||g(e.append)&&("formdata"===(t=c(e))||"object"===t&&g(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&h(e.buffer),t},isString:C,isNumber:y,isBoolean:e=>!0===e||!1===e,isObject:w,isPlainObject:b,isReadableStream:L,isRequest:N,isResponse:T,isHeaders:x,isUndefined:m,isDate:E,isFile:v,isBlob:R,isRegExp:D,isFunction:g,isStream:e=>w(e)&&g(e.pipe),isURLSearchParams:O,isTypedArray:k,isFileList:S,forEach:P,merge:function e(){const{caseless:t}=_(this)&&this||{},n={},r=(r,o)=>{const s=t&&A(n,o)||o;b(n[s])&&b(r)?n[s]=e(n[s],r):b(r)?n[s]=e({},r):p(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&P(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(P(t,((t,r)=>{n&&g(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],r&&!r(i,e,t)||a[i]||(t[i]=e[i],a[i]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:c,kindOfTest:d,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!y(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:B,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:M,freezeMethods:e=>{M(e,((t,n)=>{if(g(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];g(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return p(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:A,global:j,isContextDefined:_,ALPHABET:V,generateString:(e=16,t=V.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&g(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(w(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=p(e)?[]:{};return P(e,((e,t)=>{const s=n(e,r+1);!m(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:I,isThenable:e=>e&&(w(e)||g(e))&&g(e.then)&&g(e.catch),setImmediate:z,asap:K};function X(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(X,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const Q=X.prototype,Y={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Y[e]={value:e}})),Object.defineProperties(X,Y),Object.defineProperty(Q,"isAxiosError",{value:!0}),X.from=(e,t,n,r,o,s)=>{const i=Object.create(Q);return G.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),X.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ee=X;function te(e){return G.isPlainObject(e)||G.isArray(e)}function ne(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function re(e,t,n){return e?e.concat(t).map((function(e,t){return e=ne(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const oe=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)})),se=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!a&&G.isBlob(e))throw new ee("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(te)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(a=G.toArray(e)))return n=ne(n),a.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===i?re([n],r,s):null===i?n:n+"[]",l(e))})),!1;return!!te(e)||(t.append(re(o,n,s),l(e)),!1)}const u=[],d=Object.assign(oe,{defaultVisitor:c,convertValue:l,isVisitable:te});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),G.forEach(n,(function(n,s){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(s)?s.trim():s,r,d))&&e(n,r?r.concat(s):[s])})),u.pop()}}(e),t};function ie(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&se(e,this,t)}const le=ae.prototype;le.append=function(e,t){this._pairs.push([e,t])},le.toString=function(e){const t=e?function(t){return e.call(this,t,ie)}:ie;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ce=ae;function ue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function de(e,t,n){if(!t)return e;const r=n&&n.encode||ue;G.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):G.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const fe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},me={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ce,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},he="undefined"!=typeof window&&"undefined"!=typeof document,Ce="object"==typeof navigator&&navigator||void 0,ge=he&&(!Ce||["ReactNative","NativeScript","NS"].indexOf(Ce.product)<0),ye="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,we=he&&window.location.href||"http://localhost",be={...r,...me},Ee=function(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&G.isArray(r)?r.length:s,a?(G.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&G.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&G.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(G.isFormData(e)&&G.isFunction(e.entries)){const n={};return G.forEachEntry(e,((e,r)=>{t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},ve={transitional:pe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return r?JSON.stringify(Ee(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return se(e,new be.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return be.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return se(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(0,JSON.parse)(e),G.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ve.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw ee.from(e,ee.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:be.classes.FormData,Blob:be.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(e=>{ve.headers[e]={}}));const Re=ve,Se=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Oe=Symbol("internals");function Le(e){return e&&String(e).trim().toLowerCase()}function Ne(e){return!1===e||null==e?e:G.isArray(e)?e.map(Ne):String(e)}function Te(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}class xe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Le(t);if(!o)throw new Error("header name must be a non-empty string");const s=G.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Ne(e))}const s=(e,t)=>G.forEach(e,((e,n)=>o(e,n,t)));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Se[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(G.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Le(e)){const n=G.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(G.isFunction(t))return t.call(this,e,n);if(G.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Le(e)){const n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Te(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Le(e)){const o=G.findKey(n,e);!o||t&&!Te(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Te(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return G.forEach(this,((r,o)=>{const s=G.findKey(n,o);if(s)return t[s]=Ne(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ne(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return G.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Oe]=this[Oe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Le(e);t[r]||(function(e,t){const n=G.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}xe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(xe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),G.freezeMethods(xe);const Pe=xe;function Ae(e,t){const n=this||Re,r=t||n,o=Pe.from(r.headers);let s=r.data;return G.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function je(e){return!(!e||!e.__CANCEL__)}function _e(e,t,n){ee.call(this,null==e?"canceled":e,ee.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(_e,ee,{__CANCEL__:!0});const ke=_e;function Fe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ee("Request failed with status code "+n.status,[ee.ERR_BAD_REQUEST,ee.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Be=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[i];o||(o=l),n[s]=a,r[s]=l;let u=i,d=0;for(;u!==s;)d+=n[u++],u%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,l=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&s<=i?(i-s)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Ue=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},De=e=>(...t)=>G.asap((()=>e(...t))),Me=be.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,be.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(be.origin),be.navigator&&/(msie|trident)/i.test(be.navigator.userAgent)):()=>!0,qe=be.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),G.isString(r)&&i.push("path="+r),G.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function He(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ve=e=>e instanceof Pe?{...e}:e;function Ie(e,t){t=t||{};const n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!G.isUndefined(t))return r(void 0,t)}function i(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(Ve(e),Ve(t),0,!0)};return G.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=l[r]||o,i=s(e[r],t[r],r);G.isUndefined(i)&&s!==a||(n[r]=i)})),n}const ze=e=>{const t=Ie({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:l}=t;if(t.headers=a=Pe.from(a),t.url=de(He(t.baseURL,t.url),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),G.isFormData(r))if(be.hasStandardBrowserEnv||be.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(be.hasStandardBrowserEnv&&(o&&G.isFunction(o)&&(o=o(t)),o||!1!==o&&Me(t.url))){const e=s&&i&&qe.read(i);e&&a.set(s,e)}return t},Ze="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=ze(e);let o=r.data;const s=Pe.from(r.headers).normalize();let i,a,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let h=new XMLHttpRequest;function C(){if(!h)return;const r=Pe.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Fe((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=C:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(C)},h.onabort=function(){h&&(n(new ee("Request aborted",ee.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new ee("Network Error",ee.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||pe;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ee(t,o.clarifyTimeoutError?ee.ETIMEDOUT:ee.ECONNABORTED,e,h)),h=null},void 0===o&&s.setContentType(null),"setRequestHeader"in h&&G.forEach(s.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),G.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([l,u]=Be(p,!0),h.addEventListener("progress",l)),f&&h.upload&&([a,c]=Be(f),h.upload.addEventListener("progress",a),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{h&&(n(!t||t.type?new ke(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const g=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);g&&-1===be.protocols.indexOf(g)?n(new ee("Unsupported protocol "+g+":",ee.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Je=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ee?t:new ke(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new ee(`timeout ${t} of ms exceeded`,ee.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>G.asap(i),a}},We=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ke=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*We(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},Ge="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Xe=Ge&&"function"==typeof ReadableStream,Qe=Ge&&("function"==typeof TextEncoder?(Ye=new TextEncoder,e=>Ye.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ye;const et=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tt=Xe&&et((()=>{let e=!1;const t=new Request(be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),nt=Xe&&et((()=>G.isReadableStream(new Response("").body))),rt={stream:nt&&(e=>e.body)};var ot;Ge&&(ot=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!rt[e]&&(rt[e]=G.isFunction(ot[e])?t=>t[e]():(t,n)=>{throw new ee(`Response type '${e}' is not supported`,ee.ERR_NOT_SUPPORT,n)})})));const st={http:null,xhr:Ze,fetch:Ge&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=ze(e);c=c?(c+"").toLowerCase():"text";let p,m=Je([o,s&&s.toAbortSignal()],i);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let C;try{if(l&&tt&&"get"!==n&&"head"!==n&&0!==(C=await(async(e,t)=>{const n=G.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e)){const t=new Request(be.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return G.isArrayBufferView(e)||G.isArrayBuffer(e)?e.byteLength:(G.isURLSearchParams(e)&&(e+=""),G.isString(e)?(await Qe(e)).byteLength:void 0)})(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(G.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Ue(C,Be(De(l)));r=Ke(n.body,65536,e,t)}}G.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let s=await fetch(p);const i=nt&&("stream"===c||"response"===c);if(nt&&(a||i&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=G.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&Ue(t,Be(De(a),!0))||[];s=new Response(Ke(s.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let g=await rt[G.findKey(rt,c)||"text"](s,e);return!i&&h&&h(),await new Promise(((t,n)=>{Fe(t,n,{data:g,headers:Pe.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:p})}))}catch(t){if(h&&h(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new ee("Network Error",ee.ERR_NETWORK,e,p),{cause:t.cause||t});throw ee.from(t,t&&t.code,e,p)}})};G.forEach(st,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const it=e=>`- ${e}`,at=e=>G.isFunction(e)||null===e||!1===e,lt=e=>{e=G.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!at(n)&&(r=st[(t=String(n)).toLowerCase()],void 0===r))throw new ee(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(it).join("\n"):" "+it(e[0]):"as no adapter specified";throw new ee("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function ct(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ke(null,e)}function ut(e){return ct(e),e.headers=Pe.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),lt(e.adapter||Re.adapter)(e).then((function(t){return ct(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=Pe.from(t.headers),t}),(function(t){return je(t)||(ct(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=Pe.from(t.response.headers))),Promise.reject(t)}))}const dt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{dt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ft={};dt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new ee(r(o," has been removed"+(t?" in "+t:"")),ee.ERR_DEPRECATED);return t&&!ft[o]&&(ft[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},dt.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const pt={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ee("options must be an object",ee.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new ee("option "+s+" must be "+n,ee.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ee("Unknown option "+s,ee.ERR_BAD_OPTION)}},validators:dt},mt=pt.validators;class ht{constructor(e){this.defaults=e,this.interceptors={request:new fe,response:new fe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Ie(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&pt.assertOptions(n,{silentJSONParsing:mt.transitional(mt.boolean),forcedJSONParsing:mt.transitional(mt.boolean),clarifyTimeoutError:mt.transitional(mt.boolean)},!1),null!=r&&(G.isFunction(r)?t.paramsSerializer={serialize:r}:pt.assertOptions(r,{encode:mt.function,serialize:mt.function},!0)),pt.assertOptions(t,{baseUrl:mt.spelling("baseURL"),withXsrfToken:mt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[t.method]);o&&G.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Pe.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!a){const e=[ut.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let f=t;for(d=0;d<u;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=ut.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return de(He((e=Ie(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}G.forEach(["delete","get","head","options"],(function(e){ht.prototype[e]=function(t,n){return this.request(Ie(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Ie(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ht.prototype[e]=t(),ht.prototype[e+"Form"]=t(!0)}));const Ct=ht;class gt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new ke(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new gt((function(t){e=t})),cancel:e}}}const yt=gt,wt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(wt).forEach((([e,t])=>{wt[t]=e}));const bt=wt,Et=function e(t){const n=new Ct(t),r=i(Ct.prototype.request,n);return G.extend(r,Ct.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Ie(t,n))},r}(Re);Et.Axios=Ct,Et.CanceledError=ke,Et.CancelToken=yt,Et.isCancel=je,Et.VERSION="1.7.9",Et.toFormData=se,Et.AxiosError=ee,Et.Cancel=Et.CanceledError,Et.all=function(e){return Promise.all(e)},Et.spread=function(e){return function(t){return e.apply(null,t)}},Et.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},Et.mergeConfig=Ie,Et.AxiosHeaders=Pe,Et.formToJSON=e=>Ee(G.isHTMLForm(e)?new FormData(e):e),Et.getAdapter=lt,Et.HttpStatusCode=bt,Et.default=Et;const vt=Et,Rt=window.React;var St=n.n(Rt);function Ot(){return Ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ot.apply(this,arguments)}function Lt(e,t){return Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Lt(e,t)}var Nt=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Lt(t,n);var o=r.prototype;return o.componentDidUpdate=function(){this.state.hasDistributed||this.props.sequential||this.distributeChildren()},r.getDerivedStateFromProps=function(e,t){var n=e.children,o=e.columnsCount;return t&&n===t.children?null:Ot({},r.getEqualCountColumns(n,o),{children:n,hasDistributed:!1})},o.distributeChildren=function(){var e=this,t=this.props,n=t.children,r=t.columnsCount,o=Array(r).fill(0);if(this.state.childRefs.every((function(e){return e.current.getBoundingClientRect().height}))){var s=Array.from({length:r},(function(){return[]})),i=0;St().Children.forEach(n,(function(t){if(t&&St().isValidElement(t)){var n=e.state.childRefs[i].current.getBoundingClientRect().height,r=o.indexOf(Math.min.apply(Math,o));o[r]+=n,s[r].push(t),i++}})),this.setState((function(e){return Ot({},e,{columns:s,hasDistributed:!0})}))}},r.getEqualCountColumns=function(e,t){var n=Array.from({length:t},(function(){return[]})),r=0,o=[];return St().Children.forEach(e,(function(e){if(e&&St().isValidElement(e)){var s=St().createRef();o.push(s),n[r%t].push(St().createElement("div",{style:{display:"flex",justifyContent:"stretch"},key:r,ref:s},e)),r++}})),{columns:n,childRefs:o}},o.renderColumns=function(){var e=this.props,t=e.gutter,n=e.itemTag,r=e.itemStyle;return this.state.columns.map((function(e,o){return St().createElement(n,{key:o,style:Ot({display:"flex",flexDirection:"column",justifyContent:"flex-start",alignContent:"stretch",flex:1,width:0,gap:t},r)},e.map((function(e){return e})))}))},o.render=function(){var e=this.props,t=e.gutter,n=e.className,r=e.style,o=e.containerTag;return St().createElement(o,{style:Ot({display:"flex",flexDirection:"row",justifyContent:"center",alignContent:"stretch",boxSizing:"border-box",width:"100%",gap:t},r),className:n},this.renderColumns())},r}(St().Component);Nt.propTypes={},Nt.defaultProps={columnsCount:3,gutter:"0",className:null,style:{},containerTag:"div",itemTag:"div",itemStyle:{},sequential:!1};const Tt=Nt;var xt="undefined"!=typeof window?Rt.useLayoutEffect:Rt.useEffect,Pt=function(e){var t,n,r,o,s,i=e.columnsCountBreakPoints,a=void 0===i?{350:1,750:2,900:3}:i,l=e.children,c=e.className,u=void 0===c?null:c,d=e.style,f=void 0===d?null:d,p=(t=function(){var e=(0,Rt.useState)(!1),t=e[0],n=e[1];return xt((function(){n(!0)}),[]),t}(),n=(0,Rt.useState)("undefined"!=typeof window?window.innerWidth:0),r=n[0],o=n[1],s=(0,Rt.useCallback)((function(){t&&o(window.innerWidth)}),[t]),xt((function(){if(t)return window.addEventListener("resize",s),s(),function(){return window.removeEventListener("resize",s)}}),[t,s]),r),m=(0,Rt.useMemo)((function(){var e=Object.keys(a).sort((function(e,t){return e-t})),t=e.length>0?a[e[0]]:1;return e.forEach((function(e){e<p&&(t=a[e])})),t}),[p,a]);return St().createElement("div",{className:u,style:f},St().Children.map(l,(function(e,t){return St().cloneElement(e,{key:t,columnsCount:m})})))};Pt.propTypes={};const At=Pt,jt=Tt,{__}=wp.i18n,{Fragment:_t}=wp.element,{Spinner:kt}=wp.components,{apiFetch:Ft}=wp,Bt=({data:e,importLayout:t,insertIndex:n})=>(0,o.createElement)("div",{className:"rttpg-layout-column"},(0,o.createElement)("div",{className:"rttpg-single-block-item "},(0,o.createElement)("div",{className:"rttpg-single-item-inner"},(0,o.createElement)("div",{className:"rttpg-layout-image-wrap"},(0,o.createElement)("img",{className:"lazy-image",alt:e.title,src:e.image_url}),(0,o.createElement)("div",{className:"tpg-spinner"},(0,o.createElement)(kt,null)),"free"!==e.status?(0,o.createElement)("span",{className:"rttpg-pro"},__("Pro")):(0,o.createElement)("span",{className:"rttpg-free"},__("Free"))),(0,o.createElement)("div",{className:"rttpg-tmpl-info"},(0,o.createElement)("div",{className:"rttpg-import-button-group"},(0,o.createElement)(_t,null,(0,o.createElement)("a",{className:"rttpg-button",target:"_blank",href:e.preview_link},(0,o.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M19 0H13C12.7348 0 12.4804 0.105357 12.2929 0.292893C12.1054 0.48043 12 0.734783 12 1C12 1.26522 12.1054 1.51957 12.2929 1.70711C12.4804 1.89464 12.7348 2 13 2H16.586L8.293 10.293C8.19749 10.3852 8.12131 10.4956 8.0689 10.6176C8.01649 10.7396 7.9889 10.8708 7.98775 11.0036C7.9866 11.1364 8.0119 11.2681 8.06218 11.391C8.11246 11.5138 8.18671 11.6255 8.28061 11.7194C8.3745 11.8133 8.48615 11.8875 8.60905 11.9378C8.73194 11.9881 8.86362 12.0134 8.9964 12.0122C9.12918 12.0111 9.2604 11.9835 9.38241 11.9311C9.50441 11.8787 9.61475 11.8025 9.707 11.707L18 3.414V7C18 7.26522 18.1054 7.51957 18.2929 7.70711C18.4804 7.89464 18.7348 8 19 8C19.2652 8 19.5196 7.89464 19.7071 7.70711C19.8946 7.51957 20 7.26522 20 7V1C20 0.734783 19.8946 0.48043 19.7071 0.292893C19.5196 0.105357 19.2652 0 19 0Z",fill:"black"}),(0,o.createElement)("path",{d:"M17 8.588C16.7348 8.588 16.4804 8.69336 16.2929 8.88089C16.1054 9.06843 16 9.32278 16 9.588V16.751C15.9997 17.0822 15.8681 17.3997 15.6339 17.6339C15.3997 17.8681 15.0822 17.9997 14.751 18H3.249C2.91783 17.9997 2.60029 17.8681 2.36612 17.6339C2.13194 17.3997 2.00026 17.0822 2 16.751V5.249C2.00026 4.91783 2.13194 4.60029 2.36612 4.36612C2.60029 4.13194 2.91783 4.00026 3.249 4H9.471C9.73621 4 9.99057 3.89464 10.1781 3.70711C10.3656 3.51957 10.471 3.26522 10.471 3C10.471 2.73478 10.3656 2.48043 10.1781 2.29289C9.99057 2.10536 9.73621 2 9.471 2H3.249C2.38764 2.00106 1.56186 2.3437 0.952779 2.95278C0.343703 3.56186 0.00105851 4.38764 0 5.249V16.749C0.000529143 17.6107 0.34294 18.437 0.952073 19.0465C1.56121 19.656 2.38729 19.9989 3.249 20H14.749C15.6107 19.9995 16.437 19.6571 17.0465 19.0479C17.656 18.4388 17.9989 17.6127 18 16.751V9.588C18 9.32278 17.8946 9.06843 17.7071 8.88089C17.5196 8.69336 17.2652 8.588 17 8.588Z",fill:"black"})),__("Preview")," "),"free"===e.status||rttpgParams.hasPro?(0,o.createElement)("a",{className:"rttpg-button rttpg-button-download",onClick:r=>{t(e.content,n),function(e){let t=rttpgParams.current_user_id;const n={method:"GET",url:`${rttpgParams.ajaxurl}?action=rttpg_el_layout_count&nonce=${rttpgParams.nonce}&user_id=${t}&layout_id=${e}`,headers:{"Content-Type":"application/json"}};Ft(n)}(e.id),console.log(e.id)}},(0,o.createElement)("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M11 12.2295C10.9048 12.2296 10.8106 12.2113 10.7226 12.1757C10.6347 12.14 10.5547 12.0878 10.4874 12.0219C10.4201 11.956 10.3668 11.8778 10.3304 11.7917C10.294 11.7056 10.2753 11.6134 10.2754 11.5202L10.2754 0.912773C10.2754 0.72466 10.3517 0.544251 10.4876 0.411235C10.6235 0.278219 10.8078 0.203491 11 0.203491C11.1922 0.203491 11.3765 0.278219 11.5124 0.411235C11.6483 0.544251 11.7246 0.72466 11.7246 0.912773L11.7246 11.5202C11.7246 11.7083 11.6483 11.8887 11.5124 12.0218C11.3765 12.1548 11.1922 12.2295 11 12.2295Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0002 12.4295C10.8793 12.4296 10.7595 12.4064 10.6475 12.361C10.5356 12.3157 10.4336 12.2491 10.3475 12.1648C10.2614 12.0806 10.1929 11.9803 10.1461 11.8696C10.0994 11.7589 10.0753 11.6402 10.0754 11.5201C10.0754 11.5201 10.0754 11.5201 10.0754 11.52L10.2748 11.5202H10.0754L10.0754 11.5201L10.0754 0.91276C10.0754 0.670205 10.1738 0.438473 10.3477 0.268295C10.5214 0.0982601 10.7561 0.003479 11 0.003479C11.2439 0.003479 11.4786 0.0982601 11.6523 0.268295C11.8262 0.438473 11.9246 0.670205 11.9246 0.91276L11.9246 11.5202C11.9246 11.7628 11.8262 11.9945 11.6523 12.1647C11.4786 12.3347 11.244 12.4294 11.0002 12.4295ZM10.7226 12.1756C10.8106 12.2113 10.9048 12.2296 11 12.2295C11.1922 12.2295 11.3765 12.1548 11.5124 12.0217C11.6483 11.8887 11.7246 11.7083 11.7246 11.5202L11.7246 0.91276C11.7246 0.724647 11.6483 0.544239 11.5124 0.411223C11.3765 0.278207 11.1922 0.203479 11 0.203479C10.8078 0.203479 10.6235 0.278207 10.4876 0.411223C10.3517 0.544239 10.2754 0.724647 10.2754 0.91276L10.2754 11.5202C10.2753 11.6134 10.294 11.7056 10.3304 11.7917C10.3668 11.8778 10.4201 11.956 10.4874 12.0219C10.5547 12.0878 10.6347 12.14 10.7226 12.1756Z",fill:"white"}),(0,o.createElement)("path",{d:"M11 12.5484C10.7565 12.5488 10.5152 12.5021 10.2902 12.4109C10.0652 12.3198 9.86076 12.186 9.6887 12.0173L5.77508 8.18661C5.63924 8.05365 5.56293 7.87332 5.56293 7.68529C5.56293 7.49726 5.63924 7.31693 5.77508 7.18397C5.91091 7.05101 6.09515 6.97632 6.28725 6.97632C6.47935 6.97632 6.66359 7.05101 6.79942 7.18397L10.713 11.0147C10.7507 11.0515 10.7955 11.0808 10.8447 11.1008C10.8939 11.1207 10.9467 11.131 11 11.131C11.0533 11.131 11.1061 11.1207 11.1553 11.1008C11.2045 11.0808 11.2493 11.0515 11.287 11.0147L15.2006 7.18397C15.3372 7.05473 15.5202 6.98319 15.7102 6.98475C15.9002 6.98632 16.082 7.06086 16.2164 7.19233C16.3508 7.3238 16.427 7.50168 16.4288 7.68765C16.4305 7.87362 16.3575 8.0528 16.2255 8.18661L12.3113 12.0173C12.1392 12.186 11.9348 12.3197 11.7098 12.4108C11.4847 12.502 11.2435 12.5487 11 12.5484Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.287 11.0146L15.2006 7.18396C15.3372 7.05472 15.5202 6.98318 15.7102 6.98474C15.9002 6.9863 16.082 7.06085 16.2164 7.19232C16.3508 7.32379 16.4271 7.50166 16.4288 7.68763C16.4305 7.87361 16.3575 8.05279 16.2255 8.1866L12.3113 12.0173C12.1392 12.1859 11.9348 12.3197 11.7098 12.4108C11.4847 12.502 11.2435 12.5487 11 12.5484C10.7565 12.5488 10.5153 12.5021 10.2902 12.4109C10.0652 12.3198 9.86076 12.186 9.6887 12.0173L5.77508 8.1866C5.63924 8.05364 5.56293 7.87331 5.56293 7.68528C5.56293 7.49725 5.63924 7.31692 5.77508 7.18396C5.91092 7.051 6.09515 6.97631 6.28725 6.97631C6.47936 6.97631 6.66359 7.051 6.79943 7.18396L10.713 11.0146C10.7507 11.0515 10.7955 11.0808 10.8447 11.1008C10.8939 11.1207 10.9467 11.131 11 11.131C11.0533 11.131 11.1061 11.1207 11.1553 11.1008C11.2045 11.0808 11.2493 11.0515 11.287 11.0146ZM12.4513 12.1601L16.3654 8.32954L16.3679 8.32703C16.5368 8.1558 16.6309 7.92559 16.6287 7.6858C16.6266 7.44602 16.5282 7.21755 16.3563 7.04935C16.1845 6.88129 15.953 6.78673 15.7119 6.78475C15.4708 6.78276 15.2378 6.8735 15.0631 7.03866L11.1471 10.8717C11.1281 10.8902 11.1054 10.9052 11.0802 10.9154C11.0549 10.9257 11.0276 10.931 11 10.931C10.9724 10.931 10.9451 10.9257 10.9199 10.9154C10.8946 10.9052 10.8719 10.8902 10.853 10.8717L6.93933 7.04103C6.76567 6.87106 6.53103 6.77631 6.28725 6.77631C6.04347 6.77631 5.80884 6.87106 5.63518 7.04103C5.46138 7.21115 5.36293 7.44281 5.36293 7.68528C5.36293 7.92775 5.46138 8.15941 5.63518 8.32953L9.54868 12.1601C9.73954 12.3472 9.96607 12.4954 10.2151 12.5963C10.4641 12.6971 10.7308 12.7488 11 12.7484",fill:"white"}),(0,o.createElement)("path",{d:"M19.0788 19H2.92116C2.41182 18.9994 1.92353 18.8011 1.56337 18.4486C1.20322 18.0961 1.00061 17.6181 1 17.1196V12.1614C1 11.9733 1.07635 11.7929 1.21224 11.6599C1.34814 11.5269 1.53245 11.4521 1.72464 11.4521C1.91682 11.4521 2.10114 11.5269 2.23703 11.6599C2.37293 11.7929 2.44928 11.9733 2.44928 12.1614V17.1196C2.44943 17.242 2.49919 17.3594 2.58766 17.446C2.67612 17.5326 2.79605 17.5813 2.92116 17.5815H19.0788C19.2039 17.5813 19.3239 17.5326 19.4123 17.446C19.5008 17.3594 19.5506 17.242 19.5507 17.1196V12.1614C19.5507 11.9733 19.6271 11.7929 19.763 11.6599C19.8989 11.5269 20.0832 11.4521 20.2754 11.4521C20.4675 11.4521 20.6519 11.5269 20.7878 11.6599C20.9237 11.7929 21 11.9733 21 12.1614V17.1196C20.9994 17.6181 20.7968 18.0961 20.4366 18.4486C20.0765 18.8011 19.5882 18.9994 19.0788 19Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.0788 19.2H2.92116C2.36023 19.1994 1.82139 18.981 1.42348 18.5915C1.02542 18.2019 0.800684 17.6727 0.800003 17.1198L0.800003 12.1614C0.800003 11.9189 0.898484 11.6871 1.07235 11.517C1.24606 11.3469 1.48078 11.2521 1.72464 11.2521C1.9685 11.2521 2.20322 11.3469 2.37694 11.517C2.5508 11.6871 2.64928 11.9189 2.64928 12.1614L2.64928 17.1193C2.64928 17.1194 2.64928 17.1193 2.64928 17.1193C2.64939 17.1874 2.67702 17.2536 2.72756 17.3031C2.77826 17.3527 2.84789 17.3814 2.9214 17.3815H19.0786C19.1521 17.3814 19.2217 17.3527 19.2724 17.3031C19.323 17.2536 19.3506 17.1874 19.3507 17.1193V12.1614C19.3507 11.9189 19.4492 11.6871 19.6231 11.517C19.7968 11.3469 20.0315 11.2521 20.2754 11.2521C20.5192 11.2521 20.7539 11.3469 20.9277 11.517C21.1015 11.6871 21.2 11.9189 21.2 12.1614V17.1196C21.1993 17.6725 20.9746 18.2019 20.5765 18.5915C20.1786 18.981 19.6398 19.1994 19.0788 19.2ZM19.0788 17.5815H2.92116C2.79606 17.5813 2.67612 17.5326 2.58766 17.446C2.4992 17.3594 2.44943 17.242 2.44928 17.1196V12.1614C2.44928 11.9733 2.37293 11.7929 2.23704 11.6599C2.10114 11.5269 1.91683 11.4521 1.72464 11.4521C1.53245 11.4521 1.34814 11.5269 1.21224 11.6599C1.07635 11.7929 1 11.9733 1 12.1614V17.1196C1.00062 17.6181 1.20322 18.0961 1.56338 18.4486C1.92353 18.8011 2.41183 18.9994 2.92116 19H19.0788C19.5882 18.9994 20.0765 18.8011 20.4366 18.4486C20.7968 18.0961 20.9994 17.6181 21 17.1196V12.1614C21 11.9733 20.9237 11.7929 20.7878 11.6599C20.6519 11.5269 20.4676 11.4521 20.2754 11.4521C20.0832 11.4521 19.8989 11.5269 19.763 11.6599C19.6271 11.7929 19.5507 11.9733 19.5507 12.1614V17.1196C19.5506 17.242 19.5008 17.3594 19.4123 17.446C19.3239 17.5326 19.2039 17.5813 19.0788 17.5815Z",fill:"white"})),__("Import")):(0,o.createElement)("a",{className:"rttpg-button-download",target:"_blank",href:"//www.radiustheme.com/downloads/the-post-grid-pro-for-wordpress/"},(0,o.createElement)("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M10.9917 0.522392C11.0869 0.522318 11.1811 0.540613 11.2691 0.576231C11.3571 0.611849 11.437 0.664092 11.5043 0.72997C11.5716 0.795848 11.6249 0.874068 11.6613 0.960155C11.6977 1.04624 11.7164 1.13851 11.7163 1.23167L11.7163 11.8391C11.7163 12.0272 11.64 12.2076 11.5041 12.3407C11.3682 12.4737 11.1839 12.5484 10.9917 12.5484C10.7995 12.5484 10.6152 12.4737 10.4793 12.3407C10.3434 12.2076 10.2671 12.0272 10.2671 11.8391L10.2671 1.23167C10.2671 1.04356 10.3434 0.863153 10.4793 0.730137C10.6152 0.597121 10.7995 0.522392 10.9917 0.522392Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9916 0.322405C11.1124 0.32231 11.2323 0.345541 11.3442 0.390868C11.4561 0.436199 11.5581 0.502796 11.6442 0.587055C11.7303 0.671322 11.7988 0.77161 11.8456 0.882298C11.8923 0.992971 11.9164 1.11174 11.9163 1.23177C11.9163 1.2318 11.9163 1.23182 11.9163 1.23185L11.7169 1.23169L11.9163 1.23169L11.9163 1.23177L11.9163 11.8391C11.9163 12.0817 11.8179 12.3134 11.644 12.4836C11.4703 12.6536 11.2356 12.7484 10.9917 12.7484C10.7478 12.7484 10.5131 12.6536 10.3394 12.4836C10.1655 12.3134 10.0671 12.0817 10.0671 11.8391L10.0671 1.23169C10.0671 0.989131 10.1655 0.757398 10.3394 0.587221C10.5131 0.417222 10.7477 0.322444 10.9916 0.322405ZM11.2691 0.576243C11.1812 0.540626 11.0869 0.52233 10.9917 0.522405C10.7995 0.522405 10.6152 0.597133 10.4793 0.730149C10.3434 0.863165 10.2671 1.04357 10.2671 1.23169L10.2671 11.8391C10.2671 12.0272 10.3434 12.2077 10.4793 12.3407C10.6152 12.4737 10.7995 12.5484 10.9917 12.5484C11.1839 12.5484 11.3682 12.4737 11.5041 12.3407C11.64 12.2077 11.7163 12.0272 11.7163 11.8391L11.7163 1.23169C11.7164 1.13852 11.6977 1.04626 11.6613 0.960168C11.625 0.87408 11.5716 0.79586 11.5043 0.729982C11.437 0.664104 11.3571 0.611862 11.2691 0.576243Z",fill:"white"}),(0,o.createElement)("path",{d:"M10.9917 0.203482C11.2352 0.203103 11.4765 0.249829 11.7015 0.340973C11.9265 0.432118 12.1309 0.565886 12.303 0.734592L16.2166 4.56528C16.3525 4.69824 16.4288 4.87857 16.4288 5.0666C16.4288 5.25463 16.3525 5.43496 16.2166 5.56792C16.0808 5.70088 15.8966 5.77557 15.7045 5.77557C15.5124 5.77557 15.3281 5.70088 15.1923 5.56792L11.2787 1.73723C11.241 1.70034 11.1962 1.67108 11.147 1.65112C11.0978 1.63116 11.045 1.62088 10.9917 1.62088C10.9384 1.62088 10.8856 1.63116 10.8364 1.65112C10.7872 1.67108 10.7424 1.70034 10.7047 1.73723L6.79112 5.56792C6.65449 5.69716 6.47147 5.7687 6.28147 5.76714C6.09147 5.76557 5.9097 5.69103 5.77531 5.55956C5.64092 5.42809 5.56466 5.25022 5.56295 5.06424C5.56125 4.87827 5.63424 4.69909 5.7662 4.56528L9.6804 0.734592C9.8525 0.565936 10.0569 0.432201 10.2819 0.341059C10.507 0.249918 10.7482 0.203165 10.9917 0.203482Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7047 1.73724L6.79112 5.56793C6.65449 5.69717 6.47147 5.76871 6.28147 5.76715C6.09147 5.76559 5.9097 5.69104 5.77531 5.55957C5.64091 5.4281 5.56465 5.25023 5.56295 5.06426C5.56125 4.87829 5.63423 4.6991 5.76619 4.56529L9.6804 0.734604C9.85249 0.565948 10.0569 0.432213 10.2819 0.341072C10.507 0.24993 10.7482 0.203177 10.9917 0.203494C11.2352 0.203115 11.4765 0.24984 11.7015 0.340985C11.9265 0.43213 12.1309 0.565898 12.303 0.734604L16.2166 4.56529C16.3525 4.69825 16.4288 4.87858 16.4288 5.06661C16.4288 5.25464 16.3525 5.43497 16.2166 5.56793C16.0808 5.70089 15.8966 5.77559 15.7045 5.77559C15.5124 5.77559 15.3281 5.70089 15.1923 5.56793L11.2787 1.73724C11.241 1.70036 11.1962 1.6711 11.147 1.65113C11.0978 1.63117 11.045 1.62089 10.9917 1.62089C10.9384 1.62089 10.8856 1.63117 10.8364 1.65113C10.7872 1.6711 10.7424 1.70036 10.7047 1.73724ZM9.54041 0.591762L5.6263 4.42235L5.62379 4.42486C5.45492 4.59609 5.36076 4.8263 5.36296 5.06609C5.36516 5.30588 5.46351 5.53435 5.63545 5.70254C5.80724 5.8706 6.03873 5.96516 6.27982 5.96714C6.52091 5.96913 6.75395 5.87839 6.92856 5.71323L10.8446 1.88017C10.8636 1.86165 10.8863 1.84673 10.9115 1.83648C10.9368 1.82622 10.9641 1.82089 10.9917 1.82089C11.0193 1.82089 11.0466 1.82622 11.0719 1.83648C11.0971 1.84673 11.1198 1.86164 11.1388 1.88017L15.0524 5.71086C15.226 5.88084 15.4607 5.97559 15.7045 5.97559C15.9482 5.97559 16.1829 5.88084 16.3565 5.71086C16.5303 5.54074 16.6288 5.30909 16.6288 5.06661C16.6288 4.82414 16.5303 4.59248 16.3565 4.42236L12.443 0.591798C12.2522 0.404655 12.0256 0.256491 11.7766 0.155613C11.5276 0.0547734 11.2609 0.00311138 10.9917 0.0034933",fill:"white"}),(0,o.createElement)("path",{d:"M19.0788 19H2.92116C2.41182 18.9994 1.92353 18.8011 1.56337 18.4486C1.20322 18.0961 1.00061 17.6181 1 17.1196V12.1614C1 11.9733 1.07635 11.7929 1.21224 11.6599C1.34814 11.5269 1.53245 11.4521 1.72464 11.4521C1.91682 11.4521 2.10114 11.5269 2.23703 11.6599C2.37293 11.7929 2.44928 11.9733 2.44928 12.1614V17.1196C2.44943 17.242 2.49919 17.3594 2.58766 17.446C2.67612 17.5326 2.79605 17.5813 2.92116 17.5815H19.0788C19.2039 17.5813 19.3239 17.5326 19.4123 17.446C19.5008 17.3594 19.5506 17.242 19.5507 17.1196V12.1614C19.5507 11.9733 19.6271 11.7929 19.763 11.6599C19.8989 11.5269 20.0832 11.4521 20.2754 11.4521C20.4675 11.4521 20.6519 11.5269 20.7878 11.6599C20.9237 11.7929 21 11.9733 21 12.1614V17.1196C20.9994 17.6181 20.7968 18.0961 20.4366 18.4486C20.0765 18.8011 19.5882 18.9994 19.0788 19Z",fill:"white"}),(0,o.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.0788 19.2H2.92116C2.36023 19.1994 1.82139 18.981 1.42347 18.5915C1.02541 18.2019 0.80068 17.6727 0.799999 17.1198L0.799999 12.1614C0.799999 11.9189 0.89848 11.6871 1.07234 11.517C1.24606 11.3469 1.48077 11.2521 1.72464 11.2521C1.9685 11.2521 2.20322 11.3469 2.37693 11.517C2.55079 11.6871 2.64927 11.9189 2.64927 12.1614L2.64927 17.1193C2.64927 17.1194 2.64927 17.1193 2.64927 17.1193C2.64938 17.1874 2.67702 17.2536 2.72755 17.3031C2.77826 17.3527 2.84789 17.3814 2.9214 17.3815H19.0786C19.1521 17.3814 19.2217 17.3527 19.2724 17.3031C19.323 17.2536 19.3506 17.1874 19.3507 17.1193V12.1614C19.3507 11.9189 19.4492 11.6871 19.6231 11.517C19.7968 11.3469 20.0315 11.2521 20.2754 11.2521C20.5192 11.2521 20.7539 11.3469 20.9277 11.517C21.1015 11.6871 21.2 11.9189 21.2 12.1614V17.1196C21.1993 17.6725 20.9746 18.2019 20.5765 18.5915C20.1786 18.981 19.6398 19.1994 19.0788 19.2ZM19.0788 17.5815H2.92116C2.79605 17.5813 2.67612 17.5326 2.58766 17.446C2.49919 17.3594 2.44943 17.242 2.44927 17.1196V12.1614C2.44927 11.9733 2.37293 11.7929 2.23703 11.6599C2.10114 11.5269 1.91682 11.4521 1.72464 11.4521C1.53245 11.4521 1.34814 11.5269 1.21224 11.6599C1.07634 11.7929 0.999999 11.9733 0.999999 12.1614V17.1196C1.00061 17.6181 1.20322 18.0961 1.56337 18.4486C1.92353 18.8011 2.41182 18.9994 2.92116 19H19.0788C19.5882 18.9994 20.0765 18.8011 20.4366 18.4486C20.7968 18.0961 20.9994 17.6181 21 17.1196V12.1614C21 11.9733 20.9237 11.7929 20.7878 11.6599C20.6519 11.5269 20.4675 11.4521 20.2754 11.4521C20.0832 11.4521 19.8989 11.5269 19.763 11.6599C19.6271 11.7929 19.5507 11.9733 19.5507 12.1614V17.1196C19.5506 17.242 19.5008 17.3594 19.4123 17.446C19.3239 17.5326 19.2039 17.5813 19.0788 17.5815Z",fill:"white"})),__("Upgrade to Pro")))))),(0,o.createElement)("h4",{className:"rttpg-tmpl-title"},e.title))),{useEffect:Ut,useState:Dt,useRef:Mt}=wp.element,{Spinner:qt}=wp.components,{apiFetch:Ht}=wp,{__:Vt}=wp.i18n,It=(0,o.createElement)("svg",{width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M3.18778 6C3.03869 5.99939 2.89575 5.94399 2.78943 5.84561L0.165003 3.3754C0.0593532 3.27596 0 3.14109 0 3.00046C0 2.85983 0.0593532 2.72496 0.165003 2.62552C0.270652 2.52608 0.413943 2.47021 0.563354 2.47021C0.712764 2.47021 0.856055 2.52608 0.961705 2.62552L3.18778 4.72078L8.0383 0.155306C8.09061 0.106068 8.15271 0.0670104 8.22106 0.0403629C8.28941 0.0137154 8.36267 0 8.43665 0C8.51063 0 8.58388 0.0137154 8.65223 0.0403629C8.72058 0.0670104 8.78269 0.106068 8.835 0.155306C8.88731 0.204545 8.92881 0.262999 8.95712 0.327332C8.98543 0.391664 9 0.460616 9 0.530249C9 0.599882 8.98543 0.668834 8.95712 0.733167C8.92881 0.797499 8.88731 0.855954 8.835 0.905192L3.58614 5.84561C3.47982 5.94399 3.33688 5.99939 3.18778 6Z",fill:"white"})),zt=e=>{const t=Mt(),[n,r]=Dt(!0),[s,i]=Dt([]),[a,l]=Dt([]),[c,u]=Dt([]),[d,f]=Dt(""),[p,m]=Dt(""),[h,C]=Dt("all"),[g,y]=Dt(""),[w,b]=Dt(""),E={cat:"all",name:"Layout",count:d},[v,R]=Dt(E),[S,O]=Dt([]),[L,N]=Dt("layout"),[T,x]=Dt([]),[P,A]=Dt([]),[j,_]=Dt("all"),[k,F]=Dt("");Ut((()=>{(()=>{let e=rttpgParams.current_user_id;const t={method:"GET",url:"https://www.radiustheme.com/demo/plugins/the-post-grid-elementor/wp-json/rttpgelapi/v1/layouts/",headers:{"Content-Type":"application/json"},data:{nonce:rttpgParams.nonce,user_id:e,status:1}};vt(t).then((e=>{e.data.success&&(i(e.data),l(e.data.layouts.category),O(e.data.sections.category),f(e.data.layouts.all_terms),m(e.data.sections.all_terms)),r(!1)})).catch((e=>{console.error(e),r(!1)}))})()}),[]),Ut((()=>{a&&"layout"===L&&A(a),S&&"section"===L&&A(S);const e=s?.layouts?.posts,t=s?.sections?.posts;e&&"layout"===L&&(u(e),x(e)),t&&"section"===L&&(u(t),x(t))}),[a,S,L]);const B=e=>{N(e),C("all"),y(""),_("all"),F(""),setTimeout((function(){C("all"),R({cat:"all",name:"layout"===e?"Layout":"Sections",count:"layout"===e?d:p})}),100)};return Ut((()=>{u([]),(()=>{let e=[...T];if("pro"===j&&(e=e.filter((e=>"free"!==e.status)),F(e.length)),"free"===j&&(e=e.filter((e=>"free"===e.status)),F(e.length)),g?(e=e.filter((e=>e.title.toLowerCase().includes(g))),0===e.length?b("Sorry, we couldn't find the match."):(b(""),F(e.length))):b(""),"all"!=v.cat){let t=e.filter((e=>e.category===v.cat));u(t),F(t.length)}else u(e);C(v.cat)})()}),["",j,v,g]),(0,o.createElement)(o.Fragment,null,(0,o.createElement)("div",{className:"rttpg-layout-modal-inner"},(0,o.createElement)("div",{className:"rttpg-modal-inner"},(0,o.createElement)("div",{className:`rttpg-modal-inner modal-${L}`},(0,o.createElement)("div",{className:"rttpg-layout-modal-header"},(0,o.createElement)("div",{className:"rttpg-layout-header-inner"},(0,o.createElement)("button",{className:"layout"===L?"active":"button",onClick:()=>B("layout")},Vt("Starter Layouts")),(0,o.createElement)("button",{className:"section"===L?"active":"button",onClick:()=>B("section")},Vt("Premade Section"))),(0,o.createElement)("div",{className:"layout-search-wrapper"},(0,o.createElement)("input",{ref:t,type:"text",onChange:e=>y(e.target.value),value:g,placeholder:Vt("Search Here..."),className:"form-control"}),(0,o.createElement)("button",{className:"tpg-search-empty",onClick:()=>{y(""),t.current.focus()}}),(0,o.createElement)("svg",{width:"27",height:"27",viewBox:"0 0 27 27",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M26.77 25.6596L20.6351 19.5248C22.518 17.3777 23.5569 14.6608 23.5569 11.7785C23.5569 8.63218 22.3316 5.67452 20.107 3.44996C17.8824 1.22539 14.9248 0 11.7785 0C8.63218 0 5.67452 1.22539 3.44996 3.44996C1.22539 5.67452 0 8.63218 0 11.7785C0 14.9248 1.22539 17.8824 3.44996 20.107C5.67452 22.3316 8.63218 23.5569 11.7785 23.5569C14.6608 23.5569 17.3777 22.518 19.5248 20.6351L25.6596 26.77C25.813 26.9233 26.0139 27 26.2148 27C26.4157 27 26.6166 26.9233 26.77 26.77C27.0767 26.4632 27.0767 25.9663 26.77 25.6596ZM4.56032 18.9966C2.63252 17.0684 1.57046 14.5049 1.57046 11.7785C1.57046 9.05202 2.63252 6.48851 4.56032 4.56032C6.48851 2.63252 9.05202 1.57046 11.7785 1.57046C14.5049 1.57046 17.0684 2.63252 18.9966 4.56032C20.9244 6.48851 21.9865 9.05202 21.9865 11.7785C21.9865 14.5049 20.9244 17.0684 18.9966 18.9966C17.0684 20.9244 14.5049 21.9865 11.7785 21.9865C9.05202 21.9865 6.48851 20.9244 4.56032 18.9966Z",fill:"white"}))),(0,o.createElement)("button",{className:"rttpg-modal-close-wrapper",onClick:e=>{window.tmPromo.destroy()}},(0,o.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.createElement)("path",{d:"M7 8.49049L1.78327 13.7072C1.58809 13.9024 1.33967 14 1.03802 14C0.736375 14 0.487959 13.9024 0.292775 13.7072C0.0975915 13.512 0 13.2636 0 12.962C0 12.6603 0.0975915 12.4119 0.292775 12.2167L5.50951 7L0.292775 1.78327C0.0975915 1.58809 0 1.33967 0 1.03802C0 0.736375 0.0975915 0.487959 0.292775 0.292775C0.487959 0.0975915 0.736375 0 1.03802 0C1.33967 0 1.58809 0.0975915 1.78327 0.292775L7 5.50951L12.2167 0.292775C12.4119 0.0975915 12.6603 0 12.962 0C13.2636 0 13.512 0.0975915 13.7072 0.292775C13.9024 0.487959 14 0.736375 14 1.03802C14 1.33967 13.9024 1.58809 13.7072 1.78327L8.49049 7L13.7072 12.2167C13.9024 12.4119 14 12.6603 14 12.962C14 13.2636 13.9024 13.512 13.7072 13.7072C13.512 13.9024 13.2636 14 12.962 14C12.6603 14 12.4119 13.9024 12.2167 13.7072L7 8.49049Z",fill:"white"})))),(0,o.createElement)("div",{className:"rttpg-layout-modal-sidebar"},(0,o.createElement)("div",{className:"rttpg-modal-sidebar-content"},(0,o.createElement)("h3",null,Vt("Categories")),(0,o.createElement)("ul",{className:"rttpg-template-categories"},"layout"===L&&(0,o.createElement)("li",{className:"all"===h?"block active":"block",onClick:()=>{F(""),_("all"),R({cat:"all",name:"Layout",count:d})}},(0,o.createElement)("span",{className:"list-checkbox"},It),Vt("All Starter Layouts"),(0,o.createElement)("span",{className:"item-count"},d)),"section"===L&&(0,o.createElement)("li",{className:"all"===h?"block active":"block",onClick:()=>{F(""),_("all"),R({cat:"all",name:"Section",count:p})}},(0,o.createElement)("span",{className:"list-checkbox"},It),Vt("All Premade Sections"),(0,o.createElement)("span",{className:"item-count"},p)),P&&P.map((e=>{let t=h===e.term_id?"active":"";return(0,o.createElement)("li",{className:`block ${t}`,key:e.term_id,onClick:()=>R({cat:e.term_id,name:e.name,count:e.count})},(0,o.createElement)("span",{className:"list-checkbox"},It),Vt(e.name),(0,o.createElement)("span",{className:"item-count"},e.count))}))))),(0,o.createElement)("div",{className:"rttpg-modal-content-wrapper"},"saved_blocks"!=L&&(0,o.createElement)("div",{className:"rttpg-template-sub-header"},(0,o.createElement)("h4",null,"layout"===L?d+" Layouts ":p+" Sections ",k&&"( "+k+" )"),(0,o.createElement)("div",{className:"rttpg-template-filter-button-group"},(0,o.createElement)("button",{className:"all"===j?"active":"",onClick:()=>{_("all"),F("")}},Vt("All")),(0,o.createElement)("button",{className:"free"===j?"active":"",onClick:()=>{_("free")}},Vt("Free")),(0,o.createElement)("button",{className:"pro"===j?"active":"",onClick:()=>{_("pro")}},(0,o.createElement)("img",{src:rttpgParams.plugin_url+"/assets/images/crown.svg",alt:""}),Vt("Premium")))),n?(0,o.createElement)("div",{className:"tpg-loader"},(0,o.createElement)(qt,null)):(0,o.createElement)("div",{id:"modalContainer",className:"rttpg-template-list"},(0,o.createElement)("div",{className:"rttpg-modal-template-container"},(0,o.createElement)("div",{id:"layouts-blocks-list",className:"rttpg-builder-page-templates"},w&&(0,o.createElement)("span",{className:"rttpg-not-fount"},w),c&&"layout"===L&&c.map((t=>(0,o.createElement)(Bt,{key:t.id,data:t,importLayout:e.importLayout,insertIndex:e.insertIndex}))),c&&"section"===L&&(0,o.createElement)(At,{columnsCountBreakPoints:{300:1,768:2,1200:3}},(0,o.createElement)(jt,{gutter:"20px"},c.map((t=>(0,o.createElement)(Bt,{key:t.id,data:t,importLayout:e.importLayout,insertIndex:e.insertIndex})))))))))))))};var Zt=jQuery("#tmpl-elementor-add-section");if(0<Zt.length){var $t=Zt.html(),Jt=rttpgParams.plugin_url+"/assets/images/icon-40x40.svg";function Wt(e,t,n){for(let r in e)r===t?e[t]=n||{}:"object"==typeof e[r]&&Wt(e[r],t,n);return e}$t=$t.replace('<div class="elementor-add-section-drag-title','<div class="elementor-add-section-area-button rttpg-import-button" style="vertical-align: bottom;margin-left: 5px;padding:0"><img src="'+Jt+'" alt="TPG"/></div><div class="elementor-add-section-drag-title'),Zt.html($t);const Kt=(e,t)=>{let n=JSON.parse(e).map((e=>({...e,id:Math.random().toString(16).slice(2)})));Wt(n,"category_ids",""),Wt(n,"orderby","date"),Wt(n,"order","DESC"),Wt(n,"offset",""),null!=t&&-1!=t?(t>1&&(t-=1),elementor.getPreviewView().addChildModel(n,{at:t,silent:0})):elementor.getPreviewView().addChildModel(n,{silent:0}),elementor.channels.data.trigger("template:after:insert",{}),null!=$e&&void 0!==$e.internal?$e.internal("document/save/set-is-modified",{status:!0}):elementor.saver.setFlagEditorChange(!0),window.tmPromo.destroy()};wp.domReady((function(){elementor.on("preview:loaded",(function(){jQuery(elementor.$previewContents[0].body).on("click",".rttpg-import-button",(function(e){const t=0<jQuery(this).parents(".elementor-section-wrap").length?jQuery(this).parents(".elementor-add-section").index():-1;window.tmPromo=elementorCommon.dialogsManager.createWidget("lightbox",{id:"rttpg-import-template-wrapper",headerMessage:!1,message:"",hide:{auto:!1,onClick:!1,onOutsideClick:!1,onOutsideContextMenu:!1,onBackgroundClick:!0},position:{my:"center",at:"center"},onShow:function(){var e=jQuery(".dialog-content-tempromo");const n=document.createElement("div");n.classList.add("rttpg-import-wrapper-inner"),(0,s.H)(n).render((0,o.createElement)(zt,{importLayout:Kt,insertIndex:t})),e.addClass("rttpg-import-main-wrapper"),e.html(n)},onHide:function(){window.tmPromo.hide()}}),window.tmPromo.getElements("header").remove(),window.tmPromo.getElements("message").append(window.tmPromo.addElement("content-tempromo")),window.tmPromo.show()}))}))}))}})();
Back to Directory
File Manager