PluginProbe
WDesignKit – AI Templates, Widget Builder & MCP Workflow / 1.0.21
WDesignKit – AI Templates, Widget Builder & MCP Workflow v1.0.21
2.6.6 2.6.5 2.6.4 2.6.3 2.6.2 2.6.1 2.6.0 2.5.5 2.5.4 2.5.3 2.5.2 2.5.1 2.5.0 2.4.0 2.3.3 2.3.2 2.3.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 All 128 releases
wdesignkit / build / index.js

index.js in WDesignKit – AI Templates, Widget Builder & MCP Workflow 1.0.21, at build/index.js

1 lines 1.2 MB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{var e={669:(e,t,a)=>{e.exports=a(609)},448:(e,t,a)=>{"use strict";var l=a(867),n=a(26),i=a(372),s=a(327),r=a(97),o=a(109),c=a(985),d=a(874),m=a(648),p=a(644),u=a(205);e.exports=function(e){return new Promise((function(t,a){var w,g=e.data,C=e.headers,v=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w)}l.isFormData(g)&&l.isStandardBrowserEnv()&&delete C["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";C.Authorization="Basic "+btoa(_+":"+k)}var E=r(e.baseURL,e.url);function f(){if(h){var l="getAllResponseHeaders"in h?o(h.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:l,config:e,request:h};n((function(e){t(e),b()}),(function(e){a(e),b()}),i),h=null}}if(h.open(e.method.toUpperCase(),s(E,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,"onloadend"in h?h.onloadend=f:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(f)},h.onabort=function(){h&&(a(new m("Request aborted",m.ECONNABORTED,e,h)),h=null)},h.onerror=function(){a(new m("Network Error",m.ERR_NETWORK,e,h,h)),h=null},h.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",l=e.transitional||d;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),a(new m(t,l.clarifyTimeoutError?m.ETIMEDOUT:m.ECONNABORTED,e,h)),h=null},l.isStandardBrowserEnv()){var y=(e.withCredentials||c(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;y&&(C[e.xsrfHeaderName]=y)}"setRequestHeader"in h&&l.forEach(C,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete C[t]:h.setRequestHeader(t,e)})),l.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),v&&"json"!==v&&(h.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(w=function(e){h&&(a(!e||e&&e.type?new p:e),h.abort(),h=null)},e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),g||(g=null);var N=u(E);N&&-1===["http","https","file"].indexOf(N)?a(new m("Unsupported protocol "+N+":",m.ERR_BAD_REQUEST,e)):h.send(g)}))}},609:(e,t,a)=>{"use strict";var l=a(867),n=a(849),i=a(321),s=a(185),r=function e(t){var a=new i(t),r=n(i.prototype.request,a);return l.extend(r,i.prototype,a),l.extend(r,a),r.create=function(a){return e(s(t,a))},r}(a(546));r.Axios=i,r.CanceledError=a(644),r.CancelToken=a(972),r.isCancel=a(502),r.VERSION=a(288).version,r.toFormData=a(675),r.AxiosError=a(648),r.Cancel=r.CanceledError,r.all=function(e){return Promise.all(e)},r.spread=a(713),r.isAxiosError=a(268),e.exports=r,e.exports.default=r},972:(e,t,a)=>{"use strict";var l=a(644);function n(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var a=this;this.promise.then((function(e){if(a._listeners){var t,l=a._listeners.length;for(t=0;t<l;t++)a._listeners[t](e);a._listeners=null}})),this.promise.then=function(e){var t,l=new Promise((function(e){a.subscribe(e),t=e})).then(e);return l.cancel=function(){a.unsubscribe(t)},l},e((function(e){a.reason||(a.reason=new l(e),t(a.reason))}))}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},n.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},n.source=function(){var e;return{token:new n((function(t){e=t})),cancel:e}},e.exports=n},644:(e,t,a)=>{"use strict";var l=a(648);function n(e){l.call(this,null==e?"canceled":e,l.ERR_CANCELED),this.name="CanceledError"}a(867).inherits(n,l,{__CANCEL__:!0}),e.exports=n},502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,a)=>{"use strict";var l=a(867),n=a(327),i=a(782),s=a(572),r=a(185),o=a(97),c=a(875),d=c.validators;function m(e){this.defaults=e,this.interceptors={request:new i,response:new i}}m.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=r(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var a=t.transitional;void 0!==a&&c.assertOptions(a,{silentJSONParsing:d.transitional(d.boolean),forcedJSONParsing:d.transitional(d.boolean),clarifyTimeoutError:d.transitional(d.boolean)},!1);var l=[],n=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(n=n&&e.synchronous,l.unshift(e.fulfilled,e.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!n){var m=[s,void 0];for(Array.prototype.unshift.apply(m,l),m=m.concat(o),i=Promise.resolve(t);m.length;)i=i.then(m.shift(),m.shift());return i}for(var p=t;l.length;){var u=l.shift(),w=l.shift();try{p=u(p)}catch(e){w(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},m.prototype.getUri=function(e){e=r(this.defaults,e);var t=o(e.baseURL,e.url);return n(t,e.params,e.paramsSerializer)},l.forEach(["delete","get","head","options"],(function(e){m.prototype[e]=function(t,a){return this.request(r(a||{},{method:e,url:t,data:(a||{}).data}))}})),l.forEach(["post","put","patch"],(function(e){function t(t){return function(a,l,n){return this.request(r(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:a,data:l}))}}m.prototype[e]=t(),m.prototype[e+"Form"]=t(!0)})),e.exports=m},648:(e,t,a)=>{"use strict";var l=a(867);function n(e,t,a,l,n){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),l&&(this.request=l),n&&(this.response=n)}l.inherits(n,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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=n.prototype,s={};["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"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(n,s),Object.defineProperty(i,"isAxiosError",{value:!0}),n.from=function(e,t,a,s,r,o){var c=Object.create(i);return l.toFlatObject(e,c,(function(e){return e!==Error.prototype})),n.call(c,e.message,t,a,s,r),c.name=e.name,o&&Object.assign(c,o),c},e.exports=n},782:(e,t,a)=>{"use strict";var l=a(867);function n(){this.handlers=[]}n.prototype.use=function(e,t,a){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!a&&a.synchronous,runWhen:a?a.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},n.prototype.forEach=function(e){l.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=n},97:(e,t,a)=>{"use strict";var l=a(793),n=a(303);e.exports=function(e,t){return e&&!l(t)?n(e,t):t}},572:(e,t,a)=>{"use strict";var l=a(867),n=a(527),i=a(502),s=a(546),r=a(644);function o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new r}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=n.call(e,e.data,e.headers,e.transformRequest),e.headers=l.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),l.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return o(e),t.data=n.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(o(e),t&&t.response&&(t.response.data=n.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},185:(e,t,a)=>{"use strict";var l=a(867);e.exports=function(e,t){t=t||{};var a={};function n(e,t){return l.isPlainObject(e)&&l.isPlainObject(t)?l.merge(e,t):l.isPlainObject(t)?l.merge({},t):l.isArray(t)?t.slice():t}function i(a){return l.isUndefined(t[a])?l.isUndefined(e[a])?void 0:n(void 0,e[a]):n(e[a],t[a])}function s(e){if(!l.isUndefined(t[e]))return n(void 0,t[e])}function r(a){return l.isUndefined(t[a])?l.isUndefined(e[a])?void 0:n(void 0,e[a]):n(void 0,t[a])}function o(a){return a in t?n(e[a],t[a]):a in e?n(void 0,e[a]):void 0}var c={url:s,method:s,data:s,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:o};return l.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,n=t(e);l.isUndefined(n)&&t!==o||(a[e]=n)})),a}},26:(e,t,a)=>{"use strict";var l=a(648);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(new l("Request failed with status code "+a.status,[l.ERR_BAD_REQUEST,l.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a)):e(a)}},527:(e,t,a)=>{"use strict";var l=a(867),n=a(546);e.exports=function(e,t,a){var i=this||n;return l.forEach(a,(function(a){e=a.call(i,e,t)})),e}},546:(e,t,a)=>{"use strict";var l=a(867),n=a(16),i=a(648),s=a(874),r=a(675),o={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!l.isUndefined(e)&&l.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var d,m={transitional:s,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(d=a(448)),d),transformRequest:[function(e,t){if(n(t,"Accept"),n(t,"Content-Type"),l.isFormData(e)||l.isArrayBuffer(e)||l.isBuffer(e)||l.isStream(e)||l.isFile(e)||l.isBlob(e))return e;if(l.isArrayBufferView(e))return e.buffer;if(l.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var a,i=l.isObject(e),s=t&&t["Content-Type"];if((a=l.isFileList(e))||i&&"multipart/form-data"===s){var o=this.env&&this.env.FormData;return r(a?{"files[]":e}:e,o&&new o)}return i||"application/json"===s?(c(t,"application/json"),function(e,t,a){if(l.isString(e))try{return(0,JSON.parse)(e),l.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||m.transitional,a=t&&t.silentJSONParsing,n=t&&t.forcedJSONParsing,s=!a&&"json"===this.responseType;if(s||n&&l.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(s){if("SyntaxError"===e.name)throw i.from(e,i.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:a(623)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};l.forEach(["delete","get","head"],(function(e){m.headers[e]={}})),l.forEach(["post","put","patch"],(function(e){m.headers[e]=l.merge(o)})),e.exports=m},874:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},288:e=>{e.exports={version:"0.27.2"}},849:e=>{"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),l=0;l<a.length;l++)a[l]=arguments[l];return e.apply(t,a)}}},327:(e,t,a)=>{"use strict";var l=a(867);function n(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,a){if(!t)return e;var i;if(a)i=a(t);else if(l.isURLSearchParams(t))i=t.toString();else{var s=[];l.forEach(t,(function(e,t){null!=e&&(l.isArray(e)?t+="[]":e=[e],l.forEach(e,(function(e){l.isDate(e)?e=e.toISOString():l.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),i=s.join("&")}if(i){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},372:(e,t,a)=>{"use strict";var l=a(867);e.exports=l.isStandardBrowserEnv()?{write:function(e,t,a,n,i,s){var r=[];r.push(e+"="+encodeURIComponent(t)),l.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),l.isString(n)&&r.push("path="+n),l.isString(i)&&r.push("domain="+i),!0===s&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},268:(e,t,a)=>{"use strict";var l=a(867);e.exports=function(e){return l.isObject(e)&&!0===e.isAxiosError}},985:(e,t,a)=>{"use strict";var l=a(867);e.exports=l.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function n(e){var l=e;return t&&(a.setAttribute("href",l),l=a.href),a.setAttribute("href",l),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname}}return e=n(window.location.href),function(t){var a=l.isString(t)?n(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},16:(e,t,a)=>{"use strict";var l=a(867);e.exports=function(e,t){l.forEach(e,(function(a,l){l!==t&&l.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[l])}))}},623:e=>{e.exports=null},109:(e,t,a)=>{"use strict";var l=a(867),n=["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"];e.exports=function(e){var t,a,i,s={};return e?(l.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=l.trim(e.substr(0,i)).toLowerCase(),a=l.trim(e.substr(i+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([a]):s[t]?s[t]+", "+a:a}})),s):s}},205:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},675:(e,t,a)=>{"use strict";var l=a(867);e.exports=function(e,t){t=t||new FormData;var a=[];function n(e){return null===e?"":l.isDate(e)?e.toISOString():l.isArrayBuffer(e)||l.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(l.isPlainObject(i)||l.isArray(i)){if(-1!==a.indexOf(i))throw Error("Circular reference detected in "+s);a.push(i),l.forEach(i,(function(a,i){if(!l.isUndefined(a)){var r,o=s?s+"."+i:i;if(a&&!s&&"object"==typeof a)if(l.endsWith(i,"{}"))a=JSON.stringify(a);else if(l.endsWith(i,"[]")&&(r=l.toArray(a)))return void r.forEach((function(e){!l.isUndefined(e)&&t.append(o,n(e))}));e(a,o)}})),a.pop()}else t.append(s,n(i))}(e),t}},875:(e,t,a)=>{"use strict";var l=a(288).version,n=a(648),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,a){function i(e,t){return"[Axios v"+l+"] Transitional option '"+e+"'"+t+(a?". "+a:"")}return function(a,l,r){if(!1===e)throw new n(i(l," has been removed"+(t?" in "+t:"")),n.ERR_DEPRECATED);return t&&!s[l]&&(s[l]=!0,console.warn(i(l," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(a,l,r)}},e.exports={assertOptions:function(e,t,a){if("object"!=typeof e)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var l=Object.keys(e),i=l.length;i-- >0;){var s=l[i],r=t[s];if(r){var o=e[s],c=void 0===o||r(o,s,e);if(!0!==c)throw new n("option "+s+" must be "+c,n.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new n("Unknown option "+s,n.ERR_BAD_OPTION)}},validators:i}},867:(e,t,a)=>{"use strict";var l,n=a(849),i=Object.prototype.toString,s=(l=Object.create(null),function(e){var t=i.call(e);return l[t]||(l[t]=t.slice(8,-1).toLowerCase())});function r(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function o(e){return Array.isArray(e)}function c(e){return void 0===e}var d=r("ArrayBuffer");function m(e){return null!==e&&"object"==typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var u=r("Date"),w=r("File"),g=r("Blob"),C=r("FileList");function v(e){return"[object Function]"===i.call(e)}var b=r("URLSearchParams");function h(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var a=0,l=e.length;a<l;a++)t.call(null,e[a],a,e);else for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}var _,k=(_="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return _&&e instanceof _});e.exports={isArray:o,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"==typeof FormData&&e instanceof FormData||i.call(e)===t||v(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:m,isPlainObject:p,isUndefined:c,isDate:u,isFile:w,isBlob:g,isFunction:v,isStream:function(e){return m(e)&&v(e.pipe)},isURLSearchParams:b,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:h,merge:function e(){var t={};function a(a,l){p(t[l])&&p(a)?t[l]=e(t[l],a):p(a)?t[l]=e({},a):o(a)?t[l]=a.slice():t[l]=a}for(var l=0,n=arguments.length;l<n;l++)h(arguments[l],a);return t},extend:function(e,t,a){return h(t,(function(t,l){e[l]=a&&"function"==typeof t?n(t,a):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,a,l){e.prototype=Object.create(t.prototype,l),e.prototype.constructor=e,a&&Object.assign(e.prototype,a)},toFlatObject:function(e,t,a){var l,n,i,s={};t=t||{};do{for(n=(l=Object.getOwnPropertyNames(e)).length;n-- >0;)s[i=l[n]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:r,endsWith:function(e,t,a){e=String(e),(void 0===a||a>e.length)&&(a=e.length),a-=t.length;var l=e.indexOf(t,a);return-1!==l&&l===a},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var a=new Array(t);t-- >0;)a[t]=e[t];return a},isTypedArray:k,isFileList:C}},679:(e,t,a)=>{"use strict";var l=a(54),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},r={};function o(e){return l.isMemo(e)?s:r[e.$$typeof]||n}r[l.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},r[l.Memo]=s;var c=Object.defineProperty,d=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,w=Object.prototype;e.exports=function e(t,a,l){if("string"!=typeof a){if(w){var n=u(a);n&&n!==w&&e(t,n,l)}var s=d(a);m&&(s=s.concat(m(a)));for(var r=o(t),g=o(a),C=0;C<s.length;++C){var v=s[C];if(!(i[v]||l&&l[v]||g&&g[v]||r&&r[v])){var b=p(a,v);try{c(t,v,b)}catch(e){}}}}return t}},103:(e,t)=>{"use strict";var a="function"==typeof Symbol&&Symbol.for,l=a?Symbol.for("react.element"):60103,n=a?Symbol.for("react.portal"):60106,i=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,r=a?Symbol.for("react.profiler"):60114,o=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,d=a?Symbol.for("react.async_mode"):60111,m=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,u=a?Symbol.for("react.suspense"):60113,w=a?Symbol.for("react.suspense_list"):60120,g=a?Symbol.for("react.memo"):60115,C=a?Symbol.for("react.lazy"):60116,v=a?Symbol.for("react.block"):60121,b=a?Symbol.for("react.fundamental"):60117,h=a?Symbol.for("react.responder"):60118,_=a?Symbol.for("react.scope"):60119;function k(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case l:switch(e=e.type){case d:case m:case i:case r:case s:case u:return e;default:switch(e=e&&e.$$typeof){case c:case p:case C:case g:case o:return e;default:return t}}case n:return t}}}function E(e){return k(e)===m}t.AsyncMode=d,t.ConcurrentMode=m,t.ContextConsumer=c,t.ContextProvider=o,t.Element=l,t.ForwardRef=p,t.Fragment=i,t.Lazy=C,t.Memo=g,t.Portal=n,t.Profiler=r,t.StrictMode=s,t.Suspense=u,t.isAsyncMode=function(e){return E(e)||k(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===l},t.isForwardRef=function(e){return k(e)===p},t.isFragment=function(e){return k(e)===i},t.isLazy=function(e){return k(e)===C},t.isMemo=function(e){return k(e)===g},t.isPortal=function(e){return k(e)===n},t.isProfiler=function(e){return k(e)===r},t.isStrictMode=function(e){return k(e)===s},t.isSuspense=function(e){return k(e)===u},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===m||e===r||e===s||e===u||e===w||"object"==typeof e&&null!==e&&(e.$$typeof===C||e.$$typeof===g||e.$$typeof===o||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===h||e.$$typeof===_||e.$$typeof===v)},t.typeOf=k},54:(e,t,a)=>{"use strict";e.exports=a(103)},296:(e,t,a)=>{var l=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,s=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,c="object"==typeof self&&self&&self.Object===Object&&self,d=o||c||Function("return this")(),m=Object.prototype.toString,p=Math.max,u=Math.min,w=function(){return d.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function C(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==m.call(e)}(e))return NaN;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var a=i.test(e);return a||s.test(e)?r(e.slice(2),a?2:8):n.test(e)?NaN:+e}e.exports=function(e,t,a){var l,n,i,s,r,o,c=0,d=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var a=l,i=n;return l=n=void 0,c=t,s=e.apply(i,a)}function h(e){var a=e-o;return void 0===o||a>=t||a<0||m&&e-c>=i}function _(){var e=w();if(h(e))return k(e);r=setTimeout(_,function(e){var a=t-(e-o);return m?u(a,i-(e-c)):a}(e))}function k(e){return r=void 0,v&&l?b(e):(l=n=void 0,s)}function E(){var e=w(),a=h(e);if(l=arguments,n=this,o=e,a){if(void 0===r)return function(e){return c=e,r=setTimeout(_,t),d?b(e):s}(o);if(m)return r=setTimeout(_,t),b(o)}return void 0===r&&(r=setTimeout(_,t)),s}return t=C(t)||0,g(a)&&(d=!!a.leading,i=(m="maxWait"in a)?p(C(a.maxWait)||0,t):i,v="trailing"in a?!!a.trailing:v),E.cancel=function(){void 0!==r&&clearTimeout(r),c=0,l=o=n=r=void 0},E.flush=function(){return void 0===r?s:k(w())},E}},441:(e,t,a)=>{"use strict";function l(e){return l="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},l(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var n=r(a(196)),i=r(a(296)),s=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,l)}return a}function c(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?o(Object(a),!0).forEach((function(t){w(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):o(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function d(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function w(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var g=function(e){!function(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&&m(e,t)}(C,e);var t,a,r,o,g=(r=C,o=function(){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(){var e,t=u(r);if(o){var a=u(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}(this,e)});function C(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),w(p(t=g.call(this,e)),"onChange",(function(e){e.persist();var a=t.state.value,l=t.props.minLength;t.setState({value:e.target.value},(function(){var n=t.state.value;n.length>=l?t.notify(e):a.length>n.length&&t.notify(c(c({},e),{},{target:c(c({},e.target),{},{value:""})}))}))})),w(p(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var a=t.props.onKeyDown;a&&(e.persist(),a(e))})),w(p(t),"onBlur",(function(e){t.forceNotify(e);var a=t.props.onBlur;a&&(e.persist(),a(e))})),w(p(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var a=(0,i.default)((function(e){t.isDebouncing=!1,t.doNotify(e)}),e);t.notify=function(e){t.isDebouncing=!0,a(e)},t.flush=function(){return a.flush()},t.cancel=function(){t.isDebouncing=!1,a.cancel()}}})),w(p(t),"doNotify",(function(){t.props.onChange.apply(void 0,arguments)})),w(p(t),"forceNotify",(function(e){var a=t.props.debounceTimeout;if(t.isDebouncing||!(a>0)){t.cancel&&t.cancel();var l=t.state.value,n=t.props.minLength;l.length>=n?t.doNotify(e):t.doNotify(c(c({},e),{},{target:c(c({},e.target),{},{value:l})}))}})),t.isDebouncing=!1,t.state={value:void 0===e.value||null===e.value?"":e.value};var a=t.props.debounceTimeout;return t.createNotifier(a),t}return t=C,(a=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,a=t.value,l=t.debounceTimeout,n=e.debounceTimeout,i=e.value,s=this.state.value;void 0!==a&&i!==a&&s!==a&&this.setState({value:a}),l!==n&&this.createNotifier(l)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,a=this.props,l=a.element,i=(a.onChange,a.value,a.minLength,a.debounceTimeout,a.forceNotifyByEnter),r=a.forceNotifyOnBlur,o=a.onKeyDown,d=a.onBlur,m=a.inputRef,p=function(e,t){if(null==e)return{};var a,l,n=function(e,t){if(null==e)return{};var a,l,n={},i=Object.keys(e);for(l=0;l<i.length;l++)a=i[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)a=i[l],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}(a,s),u=this.state.value;e=i?{onKeyDown:this.onKeyDown}:o?{onKeyDown:o}:{},t=r?{onBlur:this.onBlur}:d?{onBlur:d}:{};var w=m?{ref:m}:{};return n.default.createElement(l,c(c(c(c({},p),{},{onChange:this.onChange,value:u},e),t),w))}}])&&d(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),C}(n.default.PureComponent);t.DebounceInput=g,w(g,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0})},775:(e,t,a)=>{"use strict";var l=a(441).DebounceInput;l.DebounceInput=l,e.exports=l},358:function(e,t,a){var l;l=e=>(()=>{var t={703:(e,t,a)=>{"use strict";var l=a(414);function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,a,n,i,s){if(s!==l){var r=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw r.name="Invariant Violation",r}}function t(){return e}e.isRequired=e;var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:n};return a.PropTypes=a,a}},697:(e,t,a)=>{e.exports=a(703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},98:t=>{"use strict";t.exports=e}},a={};function l(e){var n=a[e];if(void 0!==n)return n.exports;var i=a[e]={exports:{}};return t[e](i,i.exports,l),i.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var a in t)l.o(t,a)&&!l.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{"use strict";l.r(n),l.d(n,{default:()=>_});var e=l(98),t=l.n(e),a=l(697),i=l.n(a);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},s.apply(this,arguments)}var r=function(e){var a=e.pageClassName,l=e.pageLinkClassName,n=e.page,i=e.selected,r=e.activeClassName,o=e.activeLinkClassName,c=e.getEventListener,d=e.pageSelectedHandler,m=e.href,p=e.extraAriaContext,u=e.pageLabelBuilder,w=e.rel,g=e.ariaLabel||"Page "+n+(p?" "+p:""),C=null;return i&&(C="page",g=e.ariaLabel||"Page "+n+" is your current page",a=void 0!==a?a+" "+r:r,void 0!==l?void 0!==o&&(l=l+" "+o):l=o),t().createElement("li",{className:a},t().createElement("a",s({rel:w,role:m?void 0:"button",className:l,href:m,tabIndex:i?"-1":"0","aria-label":g,"aria-current":C,onKeyPress:d},c(d)),u(n)))};r.propTypes={pageSelectedHandler:i().func.isRequired,selected:i().bool.isRequired,pageClassName:i().string,pageLinkClassName:i().string,activeClassName:i().string,activeLinkClassName:i().string,extraAriaContext:i().string,href:i().string,ariaLabel:i().string,page:i().number.isRequired,getEventListener:i().func.isRequired,pageLabelBuilder:i().func.isRequired,rel:i().string};const o=r;function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},c.apply(this,arguments)}var d=function(e){var a=e.breakLabel,l=e.breakAriaLabel,n=e.breakClassName,i=e.breakLinkClassName,s=e.breakHandler,r=e.getEventListener,o=n||"break";return t().createElement("li",{className:o},t().createElement("a",c({className:i,role:"button",tabIndex:"0","aria-label":l,onKeyPress:s},r(s)),a))};d.propTypes={breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabel:i().string,breakClassName:i().string,breakLinkClassName:i().string,breakHandler:i().func.isRequired,getEventListener:i().func.isRequired};const m=d;function p(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function u(e){return u="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},u(e)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},w.apply(this,arguments)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var h=function(e){!function(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&&g(e,t)}(r,e);var a,l,n,i,s=(n=r,i=function(){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(){var e,t=v(n);if(i){var a=v(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C(e)}(this,e)});function r(e){var a,l;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),b(C(a=s.call(this,e)),"handlePreviousPage",(function(e){var t=a.state.selected;a.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),b(C(a),"handleNextPage",(function(e){var t=a.state.selected,l=a.props.pageCount;a.handleClick(e,null,t<l-1?t+1:void 0,{isNext:!0})})),b(C(a),"handlePageSelected",(function(e,t){if(a.state.selected===e)return a.callActiveCallback(e),void a.handleClick(t,null,void 0,{isActive:!0});a.handleClick(t,null,e)})),b(C(a),"handlePageChange",(function(e){a.state.selected!==e&&(a.setState({selected:e}),a.callCallback(e))})),b(C(a),"getEventListener",(function(e){return b({},a.props.eventListener,e)})),b(C(a),"handleClick",(function(e,t,l){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n.isPrevious,s=void 0!==i&&i,r=n.isNext,o=void 0!==r&&r,c=n.isBreak,d=void 0!==c&&c,m=n.isActive,p=void 0!==m&&m;e.preventDefault?e.preventDefault():e.returnValue=!1;var u=a.state.selected,w=a.props.onClick,g=l;if(w){var C=w({index:t,selected:u,nextSelectedPage:l,event:e,isPrevious:s,isNext:o,isBreak:d,isActive:p});if(!1===C)return;Number.isInteger(C)&&(g=C)}void 0!==g&&a.handlePageChange(g)})),b(C(a),"handleBreakClick",(function(e,t){var l=a.state.selected;a.handleClick(t,e,l<e?a.getForwardJump():a.getBackwardJump(),{isBreak:!0})})),b(C(a),"callCallback",(function(e){void 0!==a.props.onPageChange&&"function"==typeof a.props.onPageChange&&a.props.onPageChange({selected:e})})),b(C(a),"callActiveCallback",(function(e){void 0!==a.props.onPageActive&&"function"==typeof a.props.onPageActive&&a.props.onPageActive({selected:e})})),b(C(a),"getElementPageRel",(function(e){var t=a.state.selected,l=a.props,n=l.nextPageRel,i=l.prevPageRel,s=l.selectedPageRel;return t-1===e?i:t===e?s:t+1===e?n:void 0})),b(C(a),"pagination",(function(){var e=[],l=a.props,n=l.pageRangeDisplayed,i=l.pageCount,s=l.marginPagesDisplayed,r=l.breakLabel,o=l.breakClassName,c=l.breakLinkClassName,d=l.breakAriaLabels,p=a.state.selected;if(i<=n)for(var u=0;u<i;u++)e.push(a.getPageElement(u));else{var w=n/2,g=n-w;p>i-n/2?w=n-(g=i-p):p<n/2&&(g=n-(w=p));var C,v,b=function(e){return a.getPageElement(e)},h=[];for(C=0;C<i;C++){var _=C+1;if(_<=s)h.push({type:"page",index:C,display:b(C)});else if(_>i-s)h.push({type:"page",index:C,display:b(C)});else if(C>=p-w&&C<=p+(0===p&&n>1?g-1:g))h.push({type:"page",index:C,display:b(C)});else if(r&&h.length>0&&h[h.length-1].display!==v&&(n>0||s>0)){var k=C<p?d.backward:d.forward;v=t().createElement(m,{key:C,breakAriaLabel:k,breakLabel:r,breakClassName:o,breakLinkClassName:c,breakHandler:a.handleBreakClick.bind(null,C),getEventListener:a.getEventListener}),h.push({type:"break",index:C,display:v})}}h.forEach((function(t,a){var l=t;"break"===t.type&&h[a-1]&&"page"===h[a-1].type&&h[a+1]&&"page"===h[a+1].type&&h[a+1].index-h[a-1].index<=2&&(l={type:"page",index:t.index,display:b(t.index)}),e.push(l.display)}))}return e})),void 0!==e.initialPage&&void 0!==e.forcePage&&console.warn("(react-paginate): Both initialPage (".concat(e.initialPage,") and forcePage (").concat(e.forcePage,") props are provided, which is discouraged.")+" Use exclusively forcePage prop for a controlled component.\nSee https://reactjs.org/docs/forms.html#controlled-components"),l=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,a.state={selected:l},a}return a=r,(l=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,a=e.disableInitialCallback,l=e.extraAriaContext,n=e.pageCount,i=e.forcePage;void 0===t||a||this.callCallback(t),l&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(n)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(n,"). Did you forget a Math.ceil()?")),void 0!==t&&t>n-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(n-1,").")),void 0!==i&&i>n-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(i," > ").concat(n-1,")."))}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&(this.props.forcePage>this.props.pageCount-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(this.props.forcePage," > ").concat(this.props.pageCount-1,").")),this.setState({selected:this.props.forcePage})),Number.isInteger(e.pageCount)&&!Number.isInteger(this.props.pageCount)&&console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(this.props.pageCount,"). Did you forget a Math.ceil()?"))}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,a=t.pageCount,l=e+t.pageRangeDisplayed;return l>=a?a-1:l}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"getElementHref",value:function(e){var t=this.props,a=t.hrefBuilder,l=t.pageCount,n=t.hrefAllControls;if(a)return n||e>=0&&e<l?a(e+1,l,this.state.selected):void 0}},{key:"ariaLabelBuilder",value:function(e){var t=e===this.state.selected;if(this.props.ariaLabelBuilder&&e>=0&&e<this.props.pageCount){var a=this.props.ariaLabelBuilder(e+1,t);return this.props.extraAriaContext&&!t&&(a=a+" "+this.props.extraAriaContext),a}}},{key:"getPageElement",value:function(e){var a=this.state.selected,l=this.props,n=l.pageClassName,i=l.pageLinkClassName,s=l.activeClassName,r=l.activeLinkClassName,c=l.extraAriaContext,d=l.pageLabelBuilder;return t().createElement(o,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:a===e,rel:this.getElementPageRel(e),pageClassName:n,pageLinkClassName:i,activeClassName:s,activeLinkClassName:r,extraAriaContext:c,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:d,getEventListener:this.getEventListener})}},{key:"render",value:function(){var e=this.props.renderOnZeroPageCount;if(0===this.props.pageCount&&void 0!==e)return e?e(this.props):e;var a=this.props,l=a.disabledClassName,n=a.disabledLinkClassName,i=a.pageCount,s=a.className,r=a.containerClassName,o=a.previousLabel,c=a.previousClassName,d=a.previousLinkClassName,m=a.previousAriaLabel,u=a.prevRel,g=a.nextLabel,C=a.nextClassName,v=a.nextLinkClassName,b=a.nextAriaLabel,h=a.nextRel,_=this.state.selected,k=0===_,E=_===i-1,f="".concat(p(c)).concat(k?" ".concat(p(l)):""),y="".concat(p(C)).concat(E?" ".concat(p(l)):""),N="".concat(p(d)).concat(k?" ".concat(p(n)):""),$="".concat(p(v)).concat(E?" ".concat(p(n)):""),L=k?"true":"false",x=E?"true":"false";return t().createElement("ul",{className:s||r,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:f},t().createElement("a",w({className:N,href:this.getElementHref(_-1),tabIndex:k?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":L,"aria-label":m,rel:u},this.getEventListener(this.handlePreviousPage)),o)),this.pagination(),t().createElement("li",{className:y},t().createElement("a",w({className:$,href:this.getElementHref(_+1),tabIndex:E?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":x,"aria-label":b,rel:h},this.getEventListener(this.handleNextPage)),g)))}}])&&function(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}(a.prototype,l),Object.defineProperty(a,"prototype",{writable:!1}),r}(e.Component);b(h,"propTypes",{pageCount:i().number.isRequired,pageRangeDisplayed:i().number,marginPagesDisplayed:i().number,previousLabel:i().node,previousAriaLabel:i().string,prevPageRel:i().string,prevRel:i().string,nextLabel:i().node,nextAriaLabel:i().string,nextPageRel:i().string,nextRel:i().string,breakLabel:i().oneOfType([i().string,i().node]),breakAriaLabels:i().shape({forward:i().string,backward:i().string}),hrefBuilder:i().func,hrefAllControls:i().bool,onPageChange:i().func,onPageActive:i().func,onClick:i().func,initialPage:i().number,forcePage:i().number,disableInitialCallback:i().bool,containerClassName:i().string,className:i().string,pageClassName:i().string,pageLinkClassName:i().string,pageLabelBuilder:i().func,activeClassName:i().string,activeLinkClassName:i().string,previousClassName:i().string,nextClassName:i().string,previousLinkClassName:i().string,nextLinkClassName:i().string,disabledClassName:i().string,disabledLinkClassName:i().string,breakClassName:i().string,breakLinkClassName:i().string,extraAriaContext:i().string,ariaLabelBuilder:i().func,eventListener:i().string,renderOnZeroPageCount:i().func,selectedPageRel:i().string}),b(h,"defaultProps",{pageRangeDisplayed:2,marginPagesDisplayed:3,activeClassName:"selected",previousLabel:"Previous",previousClassName:"previous",previousAriaLabel:"Previous page",prevPageRel:"prev",prevRel:"prev",nextLabel:"Next",nextClassName:"next",nextAriaLabel:"Next page",nextPageRel:"next",nextRel:"next",breakLabel:"...",breakAriaLabels:{forward:"Jump forward",backward:"Jump backward"},disabledClassName:"disabled",disableInitialCallback:!1,pageLabelBuilder:function(e){return e},eventListener:"onClick",renderOnZeroPageCount:void 0,selectedPageRel:"canonical",hrefAllControls:!1});const _=h})(),n})(),e.exports=l(a(196))},359:(e,t)=>{"use strict";var a=Symbol.for("react.element"),l=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),o=Symbol.for("react.context"),c=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),w=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case n:case s:case i:case m:case p:return e;default:switch(e=e&&e.$$typeof){case c:case o:case d:case w:case u:case r:return e;default:return t}}case l:return t}}}(e)===o}},973:(e,t,a)=>{"use strict";e.exports=a(359)},250:(e,t,a)=>{"use strict";var l=a(196),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=l.useState,s=l.useEffect,r=l.useLayoutEffect,o=l.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!n(e,a)}catch(e){return!0}}var d="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),l=i({inst:{value:a,getSnapshot:t}}),n=l[0].inst,d=l[1];return r((function(){n.value=a,n.getSnapshot=t,c(n)&&d({inst:n})}),[e,a,t]),s((function(){return c(n)&&d({inst:n}),e((function(){c(n)&&d({inst:n})}))}),[e]),o(a),a};t.useSyncExternalStore=void 0!==l.useSyncExternalStore?l.useSyncExternalStore:d},139:(e,t,a)=>{"use strict";var l=a(196),n=a(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=n.useSyncExternalStore,r=l.useRef,o=l.useEffect,c=l.useMemo,d=l.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,a,l,n){var m=r(null);if(null===m.current){var p={hasValue:!1,value:null};m.current=p}else p=m.current;m=c((function(){function e(e){if(!o){if(o=!0,s=e,e=l(e),void 0!==n&&p.hasValue){var t=p.value;if(n(t,e))return r=t}return r=e}if(t=r,i(s,e))return t;var a=l(e);return void 0!==n&&n(t,a)?t:(s=e,r=a)}var s,r,o=!1,c=void 0===a?null:a;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,a,l,n]);var u=s(e,m[0],m[1]);return o((function(){p.hasValue=!0,p.value=u}),[u]),d(u),u}},688:(e,t,a)=>{"use strict";e.exports=a(250)},798:(e,t,a)=>{"use strict";e.exports=a(139)},196:e=>{"use strict";e.exports=window.React}},t={};function a(l){var n=t[l];if(void 0!==n)return n.exports;var i=t[l]={exports:{}};return e[l].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var l in t)a.o(t,l)&&!a.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:t[l]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.wp.element;var t,l=a(196),n=a.n(l),i=a(669),s=a.n(i);function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},r.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(t||(t={}));const o="popstate";function c(e,t){if(!1===e||null==e)throw new Error(t)}function d(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function m(e,t){return{usr:e.state,key:e.key,idx:t}}function p(e,t,a,l){return void 0===a&&(a=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:a,key:t&&t.key||l||Math.random().toString(36).substr(2,8)})}function u(e){let{pathname:t="/",search:a="",hash:l=""}=e;return a&&"?"!==a&&(t+="?"===a.charAt(0)?a:"?"+a),l&&"#"!==l&&(t+="#"===l.charAt(0)?l:"#"+l),t}function w(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let l=e.indexOf("?");l>=0&&(t.search=e.substr(l),e=e.substr(0,l)),e&&(t.pathname=e)}return t}var g;function C(e,t,a){void 0===a&&(a="/");let l=M(("string"==typeof t?w(t):t).pathname||"/",a);if(null==l)return null;let n=v(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,a)=>e===t[a]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(n);let i=null;for(let e=0;null==i&&e<n.length;++e)i=L(n[e],H(l));return i}function v(e,t,a,l){void 0===t&&(t=[]),void 0===a&&(a=[]),void 0===l&&(l="");let n=(e,n,i)=>{let s={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};s.relativePath.startsWith("/")&&(c(s.relativePath.startsWith(l),'Absolute route path "'+s.relativePath+'" nested under path "'+l+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(l.length));let r=Z([l,s.relativePath]),o=a.concat(s);e.children&&e.children.length>0&&(c(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+r+'".'),v(e.children,t,o,r)),(null!=e.path||e.index)&&t.push({path:r,score:$(r,e.index),routesMeta:o})};return e.forEach(((e,t)=>{var a;if(""!==e.path&&null!=(a=e.path)&&a.includes("?"))for(let a of b(e.path))n(e,t,a);else n(e,t)})),t}function b(e){let t=e.split("/");if(0===t.length)return[];let[a,...l]=t,n=a.endsWith("?"),i=a.replace(/\?$/,"");if(0===l.length)return n?[i,""]:[i];let s=b(l.join("/")),r=[];return r.push(...s.map((e=>""===e?i:[i,e].join("/")))),n&&r.push(...s),r.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(g||(g={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const h=/^:\w+$/,_=3,k=2,E=1,f=10,y=-2,N=e=>"*"===e;function $(e,t){let a=e.split("/"),l=a.length;return a.some(N)&&(l+=y),t&&(l+=k),a.filter((e=>!N(e))).reduce(((e,t)=>e+(h.test(t)?_:""===t?E:f)),l)}function L(e,t){let{routesMeta:a}=e,l={},n="/",i=[];for(let e=0;e<a.length;++e){let s=a[e],r=e===a.length-1,o="/"===n?t:t.slice(n.length)||"/",c=x({path:s.relativePath,caseSensitive:s.caseSensitive,end:r},o);if(!c)return null;Object.assign(l,c.params);let d=s.route;i.push({params:l,pathname:Z([n,c.pathname]),pathnameBase:R(Z([n,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(n=Z([n,c.pathnameBase]))}return i}function x(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[a,l]=function(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!0),d("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let l=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(l.push(t),"/([^\\/]+)")));return e.endsWith("*")?(l.push("*"),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),l]}(e.path,e.caseSensitive,e.end),n=t.match(a);if(!n)return null;let i=n[0],s=i.replace(/(.)\/+$/,"$1"),r=n.slice(1);return{params:l.reduce(((e,t,a)=>{if("*"===t){let e=r[a]||"";s=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(a){return d(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+a+")."),e}}(r[a]||"",t),e}),{}),pathname:i,pathnameBase:s,pattern:e}}function H(e){try{return decodeURI(e)}catch(t){return d(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function M(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,l=e.charAt(a);return l&&"/"!==l?null:e.slice(a)||"/"}function V(e,t,a,l){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(l)+"]. Please separate it out to the `to."+a+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function D(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function S(e,t,a,l){let n;void 0===l&&(l=!1),"string"==typeof e?n=w(e):(n=r({},e),c(!n.pathname||!n.pathname.includes("?"),V("?","pathname","search",n)),c(!n.pathname||!n.pathname.includes("#"),V("#","pathname","hash",n)),c(!n.search||!n.search.includes("#"),V("#","search","hash",n)));let i,s=""===e||""===n.pathname,o=s?"/":n.pathname;if(l||null==o)i=a;else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}i=e>=0?t[e]:"/"}let d=function(e,t){void 0===t&&(t="/");let{pathname:a,search:l="",hash:n=""}="string"==typeof e?w(e):e,i=a?a.startsWith("/")?a:function(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?a.length>1&&a.pop():"."!==e&&a.push(e)})),a.length>1?a.join("/"):"/"}(a,t):t;return{pathname:i,search:B(l),hash:T(n)}}(n,i),m=o&&"/"!==o&&o.endsWith("/"),p=(s||"."===o)&&a.endsWith("/");return d.pathname.endsWith("/")||!m&&!p||(d.pathname+="/"),d}const Z=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",T=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const O=["post","put","patch","delete"],j=(new Set(O),["get",...O]);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},A.apply(this,arguments)}new Set(j),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const P=l.createContext(null),W=l.createContext(null),I=l.createContext(null),F=l.createContext(null),q=l.createContext({outlet:null,matches:[],isDataRoute:!1}),U=l.createContext(null);function K(){return null!=l.useContext(F)}function J(){return K()||c(!1),l.useContext(F).location}function z(e){l.useContext(I).static||l.useLayoutEffect(e)}function G(){let{isDataRoute:e}=l.useContext(q);return e?function(){let{router:e}=function(e){let t=l.useContext(P);return t||c(!1),t}(ne.UseNavigateStable),t=re(ie.UseNavigateStable),a=l.useRef(!1);return z((()=>{a.current=!0})),l.useCallback((function(l,n){void 0===n&&(n={}),a.current&&("number"==typeof l?e.navigate(l):e.navigate(l,A({fromRouteId:t},n)))}),[e,t])}():function(){K()||c(!1);let e=l.useContext(P),{basename:t,navigator:a}=l.useContext(I),{matches:n}=l.useContext(q),{pathname:i}=J(),s=JSON.stringify(D(n).map((e=>e.pathnameBase))),r=l.useRef(!1);return z((()=>{r.current=!0})),l.useCallback((function(l,n){if(void 0===n&&(n={}),!r.current)return;if("number"==typeof l)return void a.go(l);let o=S(l,JSON.parse(s),i,"path"===n.relative);null==e&&"/"!==t&&(o.pathname="/"===o.pathname?t:Z([t,o.pathname])),(n.replace?a.replace:a.push)(o,n.state,n)}),[t,a,s,i,e])}()}function Y(){let{matches:e}=l.useContext(q),t=e[e.length-1];return t?t.params:{}}function X(e,t){let{relative:a}=void 0===t?{}:t,{matches:n}=l.useContext(q),{pathname:i}=J(),s=JSON.stringify(D(n).map((e=>e.pathnameBase)));return l.useMemo((()=>S(e,JSON.parse(s),i,"path"===a)),[e,s,i,a])}function Q(e,a,n){K()||c(!1);let{navigator:i}=l.useContext(I),{matches:s}=l.useContext(q),r=s[s.length-1],o=r?r.params:{},d=(r&&r.pathname,r?r.pathnameBase:"/");r&&r.route;let m,p=J();if(a){var u;let e="string"==typeof a?w(a):a;"/"===d||(null==(u=e.pathname)?void 0:u.startsWith(d))||c(!1),m=e}else m=p;let g=m.pathname||"/",v=C(e,{pathname:"/"===d?g:g.slice(d.length)||"/"}),b=function(e,t,a){var n;if(void 0===t&&(t=[]),void 0===a&&(a=null),null==e){var i;if(null==(i=a)||!i.errors)return null;e=a.matches}let s=e,r=null==(n=a)?void 0:n.errors;if(null!=r){let e=s.findIndex((e=>e.route.id&&(null==r?void 0:r[e.route.id])));e>=0||c(!1),s=s.slice(0,Math.min(s.length,e+1))}return s.reduceRight(((e,n,i)=>{let o=n.route.id?null==r?void 0:r[n.route.id]:null,c=null;a&&(c=n.route.errorElement||te);let d=t.concat(s.slice(0,i+1)),m=()=>{let t;return t=o?c:n.route.Component?l.createElement(n.route.Component,null):n.route.element?n.route.element:e,l.createElement(le,{match:n,routeContext:{outlet:e,matches:d,isDataRoute:null!=a},children:t})};return a&&(n.route.ErrorBoundary||n.route.errorElement||0===i)?l.createElement(ae,{location:a.location,revalidation:a.revalidation,component:c,error:o,children:m(),routeContext:{outlet:null,matches:d,isDataRoute:!0}}):m()}),null)}(v&&v.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Z([d,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:Z([d,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n);return a&&b?l.createElement(F.Provider,{value:{location:A({pathname:"/",search:"",hash:"",state:null,key:"default"},m),navigationType:t.Pop}},b):b}function ee(){let e=function(){var e;let t=l.useContext(U),a=function(e){let t=l.useContext(W);return t||c(!1),t}(ie.UseRouteError),n=re(ie.UseRouteError);return t||(null==(e=a.errors)?void 0:e[n])}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),a?l.createElement("pre",{style:n},a):null,null)}const te=l.createElement(ee,null);class ae extends l.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?l.createElement(q.Provider,{value:this.props.routeContext},l.createElement(U.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function le(e){let{routeContext:t,match:a,children:n}=e,i=l.useContext(P);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),l.createElement(q.Provider,{value:t},n)}var ne,ie,se;function re(e){let t=function(e){let t=l.useContext(q);return t||c(!1),t}(),a=t.matches[t.matches.length-1];return a.route.id||c(!1),a.route.id}function oe(e){let{to:t,replace:a,state:n,relative:i}=e;K()||c(!1);let{matches:s}=l.useContext(q),{pathname:r}=J(),o=G(),d=S(t,D(s).map((e=>e.pathnameBase)),r,"path"===i),m=JSON.stringify(d);return l.useEffect((()=>o(JSON.parse(m),{replace:a,state:n,relative:i})),[o,m,i,a,n]),null}function ce(e){c(!1)}function de(e){let{basename:a="/",children:n=null,location:i,navigationType:s=t.Pop,navigator:r,static:o=!1}=e;K()&&c(!1);let d=a.replace(/^\/*/,"/"),m=l.useMemo((()=>({basename:d,navigator:r,static:o})),[d,r,o]);"string"==typeof i&&(i=w(i));let{pathname:p="/",search:u="",hash:g="",state:C=null,key:v="default"}=i,b=l.useMemo((()=>{let e=M(p,d);return null==e?null:{location:{pathname:e,search:u,hash:g,state:C,key:v},navigationType:s}}),[d,p,u,g,C,v,s]);return null==b?null:l.createElement(I.Provider,{value:m},l.createElement(F.Provider,{children:n,value:b}))}function me(e){let{children:t,location:a}=e;return Q(pe(t),a)}function pe(e,t){void 0===t&&(t=[]);let a=[];return l.Children.forEach(e,((e,n)=>{if(!l.isValidElement(e))return;let i=[...t,n];if(e.type===l.Fragment)return void a.push.apply(a,pe(e.props.children,i));e.type!==ce&&c(!1),e.props.index&&e.props.children&&c(!1);let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=pe(e.props.children,i)),a.push(s)})),a}function ue(){return ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},ue.apply(this,arguments)}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate"}(ne||(ne={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId"}(ie||(ie={})),l.startTransition,function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(se||(se={})),new Promise((()=>{})),l.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const we=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],ge=l.startTransition;function Ce(e){let{basename:a,children:n,future:i,window:s}=e,g=l.useRef();var C;null==g.current&&(g.current=(void 0===(C={window:s,v5Compat:!0})&&(C={}),function(e,a,l,n){void 0===n&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,d=i.history,w=t.Pop,g=null,C=v();function v(){return(d.state||{idx:null}).idx}function b(){w=t.Pop;let e=v(),a=null==e?null:e-C;C=e,g&&g({action:w,location:_.location,delta:a})}function h(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,a="string"==typeof e?e:u(e);return c(t,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,t)}null==C&&(C=0,d.replaceState(r({},d.state,{idx:C}),""));let _={get action(){return w},get location(){return e(i,d)},listen(e){if(g)throw new Error("A history only accepts one active listener");return i.addEventListener(o,b),g=e,()=>{i.removeEventListener(o,b),g=null}},createHref:e=>a(i,e),createURL:h,encodeLocation(e){let t=h(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,a){w=t.Push;let n=p(_.location,e,a);l&&l(n,e),C=v()+1;let r=m(n,C),o=_.createHref(n);try{d.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(o)}s&&g&&g({action:w,location:_.location,delta:1})},replace:function(e,a){w=t.Replace;let n=p(_.location,e,a);l&&l(n,e),C=v();let i=m(n,C),r=_.createHref(n);d.replaceState(i,"",r),s&&g&&g({action:w,location:_.location,delta:0})},go:e=>d.go(e)};return _}((function(e,t){let{pathname:a="/",search:l="",hash:n=""}=w(e.location.hash.substr(1));return p("",{pathname:a,search:l,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let a=e.document.querySelector("base"),l="";if(a&&a.getAttribute("href")){let t=e.location.href,a=t.indexOf("#");l=-1===a?t:t.slice(0,a)}return l+"#"+("string"==typeof t?t:u(t))}),(function(e,t){d("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),C)));let v=g.current,[b,h]=l.useState({action:v.action,location:v.location}),{v7_startTransition:_}=i||{},k=l.useCallback((e=>{_&&ge?ge((()=>h(e))):h(e)}),[h,_]);return l.useLayoutEffect((()=>v.listen(k)),[v,k]),l.createElement(de,{basename:a,children:n,location:b.location,navigationType:b.action,navigator:v})}const ve="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,be=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,he=l.forwardRef((function(e,t){let a,{onClick:n,relative:i,reloadDocument:s,replace:r,state:o,target:d,to:m,preventScrollReset:p}=e,w=function(e,t){if(null==e)return{};var a,l,n={},i=Object.keys(e);for(l=0;l<i.length;l++)a=i[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}(e,we),{basename:g}=l.useContext(I),C=!1;if("string"==typeof m&&be.test(m)&&(a=m,ve))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),a=M(t.pathname,g);t.origin===e.origin&&null!=a?m=a+t.search+t.hash:C=!0}catch(e){}let v=function(e,t){let{relative:a}=void 0===t?{}:t;K()||c(!1);let{basename:n,navigator:i}=l.useContext(I),{hash:s,pathname:r,search:o}=X(e,{relative:a}),d=r;return"/"!==n&&(d="/"===r?n:Z([n,r])),i.createHref({pathname:d,search:o,hash:s})}(m,{relative:i}),b=function(e,t){let{target:a,replace:n,state:i,preventScrollReset:s,relative:r}=void 0===t?{}:t,o=G(),c=J(),d=X(e,{relative:r});return l.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,a)){t.preventDefault();let a=void 0!==n?n:u(c)===u(d);o(e,{replace:a,state:i,preventScrollReset:s,relative:r})}}),[c,o,d,n,i,a,e,s,r])}(m,{replace:r,state:o,target:d,preventScrollReset:p,relative:i});return l.createElement("a",ue({},w,{href:a||v,onClick:C||s?n:function(e){n&&n(e),e.defaultPrevented||b(e)},ref:t,target:d}))}));var _e,ke;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher"})(_e||(_e={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ke||(ke={}));var Ee="wdesignkit";const fe=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},ye=e=>"string"==typeof e?e.replaceAll("'","\\'"):e,Ne=(e,t)=>{if("select"==e.type)return`'${e.name}' => esc_html__('${ye(e.select_defaultValue[0])}', '${Ee}'), \n`;if("choose"==e.type)return`'${e.name}' => esc_html__('${ye(e.align_defaultValue)}', '${Ee}'), \n`;if("select2"==e.type){var a="";return"gutenberg"==t&&e&&e.select2_defaultValue&&(e.multiple?(a+=`'${e.name}' => array(`,e.select2_defaultValue.map((e=>{a+=`['value' => '${ye(e.value)}', 'label' => '${ye(e.lable)}'],`})),a+="),"):a=`'${e.name}' => ['value' => '${ye(e.select2_defaultValue[0].value)}', 'label' => '${ye(e.select2_defaultValue[0].lable)}']`),`${a}`}return"dimension"==e.type||"slider"==e.type?`'${e.name}' => esc_html__('', '${Ee}'), \n`:"selecttemplate"==e.type?`'${e.name}' => esc_html__('${e.s_template_defaultValue}', '${Ee}'), \n`:"switcher"==e.type?`'${e.name}' => esc_html__(${!!ye(e.defaultValue)&&ye(e.defaultValue)}, '${Ee}'), \n`:`'${e.name}' => esc_html__('${ye(e.defaultValue)}', '${Ee}'), \n`},Le=(e,t,a,l)=>{var n="",i="";const s=(e,t)=>{let l="";var n="";if(a&&(n="value."),t&&t.relation&&e&&!0===e){let e="or"===t.relation?"||":"and"===t.relation?"&&":"";t.values.map((t=>{t.name&&t.operator&&("true"==t.value||"false"==t.value||"null"==t.value?(l+=l?e:"(",l+=` ${n}${t.name} ${t.operator} ${t.value} `):(l+=l?e:"(",l+=` ${n}${t.name} ${t.operator} "${t.value}" `))})),l&&(l+=") &&")}return l};if("text"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Text, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n type: "${e.type}",\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.placeHolder?`placeholder:\`${e.placeHolder}\`,`:""}\n ${e.dynamic?"dynamic: true,":""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.defaultValue)}'\n ),\n`}else if("url"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Url, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n type: "${e.type}",\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.dynamic?`dynamic: [true, '${e.name}'],`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.placeHolder?`placeholder:\`${e.placeHolder}\`,`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' => array(\n 'url' => '${ye(e.defaultValue)}',\n ${e.is_external?"'target' => true,":""}\n ${e.nofollow?"'nofollow' => 'no-follow'":""}\n ),\n\n ),\n`}else if("number"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Text, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n type: "${e.type}",\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.dynamic?"dynamic: true,":""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.placeHolder?`placeholder:\`${e.placeHolder}\`,`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.defaultValue)}',\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${l||""}}};}',\n ),\n ),`:""}\n ),\n`}else if("select"==e.type){let t="";e.options.length>0&&(t+="[",e.options.map((e=>{t+=`['${e.value}',__('${e.lable}')],`})),t+="]");let r=s(e.conditions,e.condition_value);n+=`${r} React.createElement(Pmgc_Select, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n options:${t},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.select_defaultValue[0])}'\n ),\n`}else if("select2"==e.type){let t="";var r=[];e.options.length>0&&(t+="[",e.options.map((e=>{t+=`{'value' : \`${e.value}\`, 'label' : __(\`${e.lable}\`)},`})),t+="]"),e&&e?.select2_defaultValue?.length>0&&(e.multiple?e.select2_defaultValue.map((e=>{r.push(`['value' => '${ye(e.value)}', 'label' => '${ye(e.lable)}']`)})):r=`'value' => '${ye(e.select2_defaultValue[0].value)}', 'label' => '${ye(e.select2_defaultValue[0].lable)}'`);let o=s(e.conditions,e.condition_value);n+=`${o} React.createElement(Pmgc_select2, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n options:${t},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.multiple?`isMulti: ${e.multiple},`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => array(${r}),\n ),\n`}else if("textarea"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_TextArea, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n rows:"${e.rows}",\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.dynamic?"dynamic: true,":""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.defaultValue)}',\n ),\n`}else if("dimension"==e.type){let t=s(e.conditions,e.condition_value),r="";e.dimension_units&&e.dimension_units.map((e=>{r+=`'${e}',`})),n+=`${t} React.createElement(Pmgc_Dimension, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n noLock: false,\n unit: [${r}],\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n ${e.responsive?"responsive: true,\n device: device,\n onDeviceChange: (value) => setDevice( value ),":""}\n }),\n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n ${e.responsive?`'default' => (object) array(\n 'md' => array(\n "top" => ${e.dimension_defaultValue.top?e.dimension_defaultValue.top:'""'},\n "right" => ${e.dimension_defaultValue.right?e.dimension_defaultValue.right:'""'},\n "bottom" => ${e.dimension_defaultValue.bottom?e.dimension_defaultValue.bottom:'""'},\n "left" => ${e.dimension_defaultValue.left?e.dimension_defaultValue.left:'""'},\n ),\n "unit" => "${e.dimension_defaultValue.unit}",\n ),`:"'default' => '',"}\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{ ${e.selector_value}: {{${e.name}${l||""}}}}',\n ),\n ),`:""}\n ), \n`}else if("color"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Color, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n disableAlpha: ${!e.alpha},\n disableGlobal: ${!e.global},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.defaultValue)}',\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${l||""}}};}',\n ),\n ),`:""}\n ), \n`}else if("gradientcolor"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Gradient, {\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.defaultValue)}',\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${l||""}}};}',\n ),\n ),`:""}\n ), \n`}else if("switcher"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Toggle, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.responsive?"responsive: true,\n device: device,\n onDeviceChange: (value) => setDevice( value ),":""}\n ${a?`onChange: v => { value.${e.name} = (v == true ? '${e.return_value}' : v); onChange(value); },`:`onChange: (value) => setAttributes(value == true ? { ${e.name}: '${e.return_value}' } : { ${e.name}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n ${e.responsive?"'type' => 'object',\n 'default' => [ 'md' => true,'sm' => false,'xs' => false ],":`'type' => 'boolean',\n 'default' => ${1==e.defaultValue},`}\n ), \n`}else if("heading"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Label_Heading, {\n label: __(\`${e.lable}\`),\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:"${e.separator}",`:""}\n inlineblock: true,\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n ), \n`}else if("border"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Border, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' =>(object) array(\n 'openBorder' => 0,\n 'type' => '',\n 'color' => '',\n 'width' =>(object) array(\n 'md' =>(object)array(\n 'top' => '',\n 'left' => '',\n 'bottom' => '',\n 'right' => '',\n ),\n 'sm' =>(object)array(),\n 'xs' =>(object)array(),\n "unit" => "",\n ),\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n\n ), \n`}else if("boxshadow"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_BoxShadow, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' =>(object) array(\n 'openShadow' => 0,\n 'inset' => 0,\n 'horizontal' => 0,\n 'vertical' => 4,\n 'blur' => 8,\n 'spread' => 0,\n 'color' => "rgba(0,0,0,0.40)",\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n ), \n`}else if("textshadow"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_BoxShadow, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n istextShadow: true,\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' =>(object) array(\n 'openShadow' => 0,\n 'typeShadow' => 'text-shadow', //"text-shadow" Or "drop-shadow"\n 'horizontal' => 2,\n 'vertical' => 3,\n 'blur' => 2,\n 'color' => "rgba(0,0,0,0.5)",\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n ), \n`}else if("background"==e.type){let t=s(e.conditions,e.condition_value);var o=[];e.types.length>0&&e.types.map((e=>{'"classic"'==e?(o.push('"color"'),o.push('"image"')):o.push(e)})),n+=`${t} React.createElement(Pmgc_Background, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n sources: [${o}],\n ${e.separator?`separator:'${e.separator}',`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' =>(object) array(\n 'openBg'=> 0,\n 'bgType' => 'color',\n 'videoSource' => 'local',\n 'bgDefaultColor' => '',\n 'bgGradient' =>(object) array('color1' => '#16d03e', 'color2' => '#1f91f3', 'type' => 'linear', 'direction' => '90', 'start' => 5, 'stop' => 80, 'radial' => 'center', 'clip' => false),\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n ), \n`}else if("typography"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Typography, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n ${e.separator?`separator:'${e.separator}',`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n device: device,\n onDeviceChange: (value) => setDevice( value ),\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default'=>(object) array(\n 'openTypography' => 0,\n 'size' => array('md' => 20, 'unit' => 'px'),\n 'height' => array('md' => 22, 'unit' => 'px'),\n 'spacing' => array('md' => 0.1, 'unit' => 'px'),\n 'fontFamily' => array(\n 'family' => '',\n 'fontWeight' => 400,\n ),\n 'fontStyle' => 'Default',\n 'textTransform' => 'None',\n 'textDecoration' => 'Default',\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n ), \n`}else if("cssfilter"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_CssFilter, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n ${e.separator?`separator:'${e.separator}',`:""}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' => array(\n 'openFilter' => false,\n 'blur' => 0,\n 'brightness' => 100,\n 'contrast' => 100,\n 'saturate' => 100,\n 'hue' => 0,\n ),\n ${e.selector?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selector}',\n ),\n ),`:""}\n ), \n`}else if("media"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Media, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n multiple: false,\n ${e.separator?`separator:'${e.separator}',`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.dynamic?`dynamic: [true, '${e.name}'],`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e?.media_types?.length>0?`type: [${e.media_types}],`:"type: [],"}\n panel: true,\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'default' => array(\n 'url' => '${ye(e.defaultValue)}',\n 'Id' => '',\n ),\n ), \n`}else if("gallery"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Media, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.dynamic?`dynamic: [true, '${e.name}'],`:""}\n multiple: true,\n ${e.separator?`separator:'${e.separator}',`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n panel: true,\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'array',\n 'default' => array(\n (object) array('url' => '', 'Id' => ''),\n ),\n ), \n`}else if("iconscontrol"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_IconList, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:'${e.separator}',`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default'=> '${ye(e.defaultValue)}',\n ), \n`}else if("slider"==e.type){let t="";e.size_units.length>0&&e.size_units.filter((e=>{if(1==e.checked)return e})).map((e=>{t+=`'${e.type}', `}));let r=s(e.conditions,e.condition_value);n+=`${r} React.createElement(Pmgc_Range, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e.separator?`separator:'${e.separator}',`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e?.description?`help: \`${e.description}\`,`:""}\n min: ${a?"value.":""}${e.name}${l||""} && ${a?"value.":""}${e.name}${l||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${l||""}.unit, 'min') : 0,\n max: ${a?"value.":""}${e.name}${l||""} && ${a?"value.":""}${e.name}${l||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${l||""}.unit, 'max') : 100,\n step: ${a?"value.":""}${e.name}${l||""} && ${a?"value.":""}${e.name}${l||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${l||""}.unit, 'step') : 1,\n ${e.responsive&&e.show_unit?`\n unit: [${t}],\n responsive: true,\n device: device,\n onDeviceChange: (value) => this.setState({ device: value }),`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n ${e.responsive&&e.show_unit?`'type' => 'object',\n 'default' => [ \n // 'md' => ${e.slider_defaultValue[1]?e.slider_defaultValue[1]:""},\n "unit" => '${e.slider_defaultValue[0]}',\n ],`:"'type' => 'string',\n 'default' => '',"}\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${l||""}}};}',\n ),\n ),`:""}\n ), \n`}else if("choose"==e.type){let t=s(e.conditions,e.condition_value);var c="";e.align_option.length>0&&(c="",c+="[",e.align_option.map((e=>{var t;t="align_svg"==e.align_icon||"align_title"==e.align_icon?"":e.align_icon,c+=`{ label: __('${e.align_lable}'), value: '${e.align_value}', title: __('${e.align_title?e.align_title:""}'), icon: '${t}', svg: '${e.align_svg?e.align_svg:""}' }, \n`})),c+="]"),n+=`${t} React.createElement(Pmgc_RadioAdvanced, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e.separator?`separator:'${e.separator}',`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n options : ${c},\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${e.responsive?"responsive: true,\n device: device,\n onDeviceChange: (value) => setDevice( value ),":""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n ${e.responsive?"'type' => 'object',\n 'default' => [ 'md' => '', 'sm' => '', 'xs' => 'column' ],":"'type' => 'string',\n 'default' => '',"}\n ${e.selectors||e.selector_value?`'style' => array(\n (object) array(\n 'selector' => '{{PLUS_WRAP}} ${e.selectors}{ ${e.selector_value}: {{${e.name}${l||""}}}; }',\n ),\n ),`:""}\n ), \n`}else if("popover"==e.type){let t=s(e.conditions,e.condition_value),a="",r="",o="";e.fields.map((t=>{a+=Le(t,"js",e.name)})),e.fields.map((e=>{r+=Le(e,"php")})),e.fields&&e.fields.length>0&&(o+="[",e.fields.map((e=>{o+=Ne(e,"gutenberg")})),o+="]\n"),n+=`${t} React.createElement(Pmgc_GroupPopover, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${e.name+(l||"")},\n ${e?.description?`help: \`${e.description}\`,`:""}\n onChange: value => setAttributes({ ${e.name}${l||""}: value }),\n },\n (value, onChange) => {\n return [\n React.createElement(Fragment, null,\n ${a}\n )]\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'object',\n 'groupField' => array(\n (object) array(\n ${r}\n )\n ),\n 'default' => ${o||"[]"},\n ), \n`}else if("normalhover"==e.type){let t=s(e.conditions,e.condition_value),a="";n+=`${t} React.createElement(Pmgc_Tabs, null, `,e?.nha_array?.length>0&&e.nha_array.map(((t,l)=>{if(null!=t){if(e.nha_array_lable?.[l])var i=e.nha_array_lable[l].charAt(0).toUpperCase()+e.nha_array_lable[l].slice(1);else i=0==l?"Normal":1==l?"Hover":2==l?"Active":`Tab - ${l}`;n+=`React.createElement(Pmgc_Tab, {\n tabTitle: __('${i}')\n }, `,e.fields.map((e=>{e.key==t&&(n+=Le(e,"js",""),a+=Le(e,"php",""))})),n+="), \n"}})),n+="), \n",i+=`${a}\n`}else if("repeater"==e.type){let t=s(e.conditions,e.condition_value),a="",r="";var d="";e.fields.map((t=>{a+=Le(t,"js",e.name)})),e.fields.map((e=>{r+=Le(e,"php")})),e.fields.length>0&&(d+="array(\n '_key' => '0', \n",e.fields.map((e=>{d+=Ne(e,"gutenberg")})),d+="),"),n+=`${t} React.createElement(Pmgc_Repeater, {\n // max: 10,\n ${e?.showLable&&e.lable?`labelText:__(\`${e.lable}\`),`:""}\n value: ${e.name+(l||"")},\n attributeName: '${e.name+(l||"")}',\n addText: 'Add Item',\n ${e.title_field?`titleField: \`{${e.title_field}}\`,`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n onChange: value => setAttributes({ ${e.name}${l||""}: value }),\n },\n (value, onChange) => {\n return [\n React.createElement(Fragment, null,\n ${a}\n )]\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'array',\n 'repeaterField' => array(\n (object) array(\n ${r}\n )\n ),\n 'default' => array(${d}),\n ), \n`}else if("rawhtml"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Note, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e.defaultValue?`description: \`${e.defaultValue}\`,`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`}else if("headingtags"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(Pmgc_Heading, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n value: ${a?"value."+e.name:e.name+(l||"")},\n ${e?.description?`help: \`${e.description}\`,`:""}\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }), \n`,i+=`'${e.name}${l||""}' => array(\n 'type' => 'string',\n 'default' => '${e.select_defaultValue[0]}'\n ), \n`}else if("styleimage"==e.type){let t="";e.options.length>0&&(t+="array(",e.options.map((e=>{t+=`{ 'value': '${e.value}', 'lable': __('${e.lable}'), 'svg': __('${e.svg}'), }, `})),t+=")");let a=s(e.conditions,e.condition_value);n+=`${a} React.createElement(Pmgc_Styles, {\n ${e?.showLable&&e.lable?`label: __("${e.lable}"),`:""}\n columns: '${e.columns}',\n ${e?.description?`help: '${ye(e.description)}',`:""}\n ${e.separator?`separator:'${e.separator}',`:""}\n value: ${e.name},\n options: ${t},\n onChange: (value) => setAttributes({ ${e.name}: value }),\n }), \n`,i+=`'${e.name}' => array(\n 'type' => 'string',\n 'default' => '${ye(e.select_defaultValue[0])}',\n ),\n`}else if("datetime"==e.type){let t=s(e.conditions,e.condition_value);n+=`${t} React.createElement(DateTimePicker, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n ${e?.description?`help: \`${e.description}\`,`:""}\n currentDate: ${a?"value."+e.name:e.name+(l||"")},\n ${e.separator?`separator:"${e.separator}",`:""}\n ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n is12Hour: true,\n ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${l||""}: value }),`}\n }),\n`,i+=`'${e.name}${l||""}' => array(),\n`}return"php"==t?i=(i=i.replaceAll("{{CURRENT_ITEM}}","{{TP_REPEAT_ID}}")).replaceAll("{{WRAPPER}}","{{PLUS_WRAP}}"):"js"==t?n:void 0},xe=(e,t)=>{const a=e=>{var t="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""==e.name||""==e.operator||(i+=`array('name' => '${ye(e.name)}', 'operator' => '${e.operator}', 'value' => '${ye(e.value)}'),\n`)})),""==i?t="":t+=`'conditions' => array(\n 'relation' => '${e.condition_value.relation}',\n 'terms' => [${i}],\n ),`),t};var l="wdesignkit",n="",i="",s=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::TEXT,\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${l}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${e.input_type?`'input_type' => '${e.input_type}',`:""} \n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("number"==e.type){let i="",s=e?.number_setting?.min,o=e?.number_setting?.max,c=e?.number_setting?.step;var r="";""==t&&null!=t&&(i=`'name' => '${e.name}',`),""!=e.selectors&&(r+="'selectors' => array(",r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,r+="),");let d=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::NUMBER,\n 'min' => ${null!=s&&""!=s?s:'""'},\n 'max' => ${null!=o&&""!=o?o:'""'},\n 'step' => ${null!=c&&""!=c?c:'""'},\n 'default' => ${null!=e.defaultValue&&""!=e.defaultValue?e.defaultValue:'""'},\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n ${r}\n )`;n+=null!=t&&""==t?d:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${d}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${d}\n );\n`}else if("repeater"==e.type){var o="",c="",d="",m="",p="";if(""==t&&null!=t&&(c=`'name' => '${e.name}',`),"Old"==e.repeater_type?d+=`repeater_${fe()}`:"New"==e.repeater_type&&(d=""),e.fields){p+="array(";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(p+="array(",p+=`'_id'=>uniqid('Wkit-${fe()}'),\n`,e.fields.map((e=>{p+=Ne(e,"elementor")})),p+="),\n");p+=")"}e.fields.length>0&&("Old"==e.repeater_type?o+=`$${d}->get_controls(),`:"New"==e.repeater_type&&(o+="array(",e.fields.map((e=>{s.includes(e.type)||(o+=`${xe(e,"")},`)})),o+="),"));let i=`array(\n ${c}\n\t\t\t\t'type' => Controls_Manager::REPEATER,\n\t\t\t\t${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.title_field?`'title_field' => '${ye(e.title_field)}',`:""}\n\t\t\t\t'fields' => ${o||"array(),"}\n ${p?`'default' => ${p},`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.prevent_empty?"":`'prevent_empty' => ${e.prevent_empty},`} \n ${a(e)}\n )`;null!=t&&""==t?n+=i:t&&null!=t?n+=`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${i}\n );\n`:"Old"==e.repeater_type?(e.fields.map((e=>{m+=xe(e,d)})),n+=`$${d} = new \\Elementor\\Repeater();\n\n ${m}\n \n $this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${i}\n );\n`):n+=`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${i}\n );\n`}else if("popover"==e.type){let i="";var u="";""==t&&null!=t&&(i=`'name' => '${e.name}',`),e.fields&&(t&&null!=t?(u+=`$${t}->start_popover();\n`,e.fields.map((e=>{u+=xe(e,t)})),u+=`$${t}->end_popover();\n`):(u+="$this->start_popover();\n",e.fields.map((e=>{u+=xe(e)})),u+="$this->end_popover();\n"));let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::POPOVER_TOGGLE,\n ${e.return_value?`'return_value' => '${ye(e.return_value)}',`:""}\n 'default' => 'yes',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n 'label_block' => false,\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n ${u}\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n ${u}\n`}else if("normalhover"==e.type){let i="";u="",""==t&&null!=t&&(i=`'name' => '${e.name}',`),e.fields&&(t&&null!=t?e.nha_array.length>0&&e.nha_array.map(((a,n)=>{if(null!=a){if(e.nha_array_lable?.[n])var i=e.nha_array_lable[n].charAt(0).toUpperCase()+e.nha_array_lable[n].slice(1);else i=0==n?"Normal":1==n?"Hover":2==n?"Active":`Tab-${n}`;u+=`$${t}->start_controls_tab(\n\n '${e.name}_${a}_tab',\n array(\n 'label' => esc_html__( '${i}', '${l}' ),\n )\n );\n`,e.fields.filter((e=>{if(e.key==a)return e})).map((e=>{u+=xe(e,t)})),u+=`$${t}->end_controls_tab();\n`}})):e?.nha_array?.length>0&&e.nha_array.map(((t,a)=>{if(null!=e.nha_array[a]){if(e.nha_array_lable?.[a])var n=e.nha_array_lable[a].charAt(0).toUpperCase()+e.nha_array_lable[a].slice(1);else n=0==a?"Normal":1==a?"Hover":2==a?"Active":`Tab-${a}`;u+=`$this->start_controls_tab(\n\n '${e.name}_${t}_tab',\n array(\n 'label' => esc_html__( '${n}', '${l}' ),\n )\n );\n`,e.fields.filter((e=>{if(e.key==t)return e})).map((e=>{u+=xe(e)})),u+="$this->end_controls_tab();\n"}})));let s=`array(\n ${i}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->start_controls_tabs('${e.name}',\n ${s}\n );\n ${u}\n\n $this->end_controls_tabs();`:`$this->start_controls_tabs('${e.name}',\n ${s}\n );\n ${u}\n\n $this->end_controls_tabs();`}else if("wysiwyg"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n\t\t\t\t'type' => Controls_Manager::WYSIWYG,\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${l}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("code"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n 'type' => Controls_Manager::CODE,\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'language' => '${e.language}',\n 'rows'=> '${e.rows}' ,\n ${e.defaultValue?`'default' => '${ye(e.defaultValue)}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("choose"==e.type){let i="";if(r="",""==t&&null!=t&&(i=`'name' => '${e.name}',`),""!=e.selectors&&(r+="'selectors' => array(",r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,r+="),"),e.align_option){var w="";w+="'options' => array(",e.align_option.map((e=>{w+=`\n '${e.align_value}' => array(\n 'title' => esc_html__( '${ye(e.align_lable)}', '${l}' ),\n 'icon' => '${ye(e.align_icon)}',\n ),\n `})),w+="),"}let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n 'type' => Controls_Manager::CHOOSE,\n ${w}\n ${e.align_defaultValue?`'default' => '${ye(e.align_defaultValue)}',`:""}\n 'toggle' => true,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("datetime"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::DATE_TIME,\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("gallery"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n 'label' => esc_html__( '${ye(e.lable)}', '${l}' ),\n 'type' => Controls_Manager::GALLERY,\n 'default' => array(),\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("background"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let i=`\n Group_Control_Background::get_type(),\n array(\n 'name' => '${e.name}',\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'types' => [${e.types}],\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r}\n )`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`}else if("border"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let i=`\n Group_Control_Border::get_type(),\n array(\n 'name' => '${e.name}',\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r}\n )`;n+=t&&null!=t?`$${t}->add_group_control(\n ${i}\n );\n`:`$this->add_group_control(\n ${i}\n );\n`}else if("dimension"==e.type){r="";let i="",s="",o="";""==t&&null!=t&&(i=`'name' => '${e.name}',`),""!=e.selectors&&(r+="'selectors' => array(",r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',`,r+="),"),e.dimension_units&&e.dimension_units.map((e=>{s+=`'${e}',`})),e.dimension_defaultValue&&(1==e.dimension_defaultValue.isLinked?o=`array(\n 'top' => '${e.dimension_defaultValue.top}',\n 'right' => '${e.dimension_defaultValue.top}',\n 'bottom' => '${e.dimension_defaultValue.top}',\n 'left' => '${e.dimension_defaultValue.top}',\n 'unit' => '${e.dimension_defaultValue.unit}',\n 'isLinked' => '${e.dimension_defaultValue.isLinked}',\n )`:0==e.dimension_defaultValue.isLinked&&(o=`array(\n 'top' => '${e.dimension_defaultValue.top}',\n 'right' => '${e.dimension_defaultValue.right}',\n 'bottom' => '${e.dimension_defaultValue.bottom}',\n 'left' => '${e.dimension_defaultValue.left}',\n 'unit' => '${e.dimension_defaultValue.unit}',\n 'isLinked' => '${e.dimension_defaultValue.isLinked}',\n )`));let c=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::DIMENSIONS,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n 'size_units' => array(${s}),\n ${o?`'default' => ${o},`:""}\n ${1==e.responsive?`'tablet_default' => ${o},\n 'mobile_default' => ${o},\n 'widescreen_default' => ${o},`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r}\n )`;n+=null!=t&&""==t?c:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${c}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${c}\n );\n`}else if("boxshadow"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let i=`\n Group_Control_Box_Shadow::get_type(),\n array(\n 'name' => '${e.name}',\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r} \n )`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`}else if("textshadow"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let i=`\n Group_Control_Text_Shadow::get_type(),\n array(\n\t\t\t\t'name' => '${e.name}',\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n\t\t\t\t${r}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${i}\n );\n`}else if("color"==e.type){r="";let i="";null!=t&&""==t&&(i=`'name' => '${e.name}',`),""!=e.selectors&&(r+="'selectors' => array(",r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,r+="),");let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::COLOR,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`} \n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.defaultValue?`'default' => '${ye(e.defaultValue)}',`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n 'alpha' => ${e.alpha},\n ${!0===e.global?`'global' => array(\n 'active' => ${e.global},\n ),`:""}\n ${a(e)}\n ${r}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("cssfilter"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let l=`\n\t\t\t\\Elementor\\Group_Control_Css_Filter::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => '${e.name}',\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n\t\t\t\t${r}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${l}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${l}\n );\n`}else if("hidden"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let i=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::HIDDEN,\n ${e.defaultValue?`'default' => '${ye(e.defaultValue)}',`:""}\n )`;n+=null!=t&&""==t?i:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${i}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${i}\n );\n`}else if("media"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::MEDIA,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n 'default' => array(\n 'url' => ${e.defaultValue?`'${e.defaultValue}'`:"\\Elementor\\Utils::get_placeholder_image_src()"},\n ),\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'media_types' => array(${e.media_types}),\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("typography"==e.type){r="",""!=e.selector&&(r+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let l=`\n Group_Control_Typography::get_type(),\n\t\t\tarray(\n\t\t\t\t'name' => '${e.name}',\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n ${r}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${l}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n ${l}\n );\n`}else if("heading"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::HEADING,\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("divider"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n ${a}\n 'type' => Controls_Manager::DIVIDER,\n )`;n+=null!=t&&""==t?l:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${l}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${l}\n );\n`}else if("rawhtml"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::RAW_HTML,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${e.defaultValue?`'raw' => esc_html__( '${ye(e.defaultValue)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("iconscontrol"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::ICONS,\n 'fa4compatibility' => 'icon',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${e.skin?`'skin' => '${e.skin}',`:""}\n ${e.exclude_inline_options?`'exclude_inline_options' => array('${e.exclude_inline_options}'),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${e.defaultValue?`'default' => array(\n 'value' => '${ye(e.defaultValue)}',\n 'library' => 'fa-solid',\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("slider"==e.type){r="";var g="",C="",v="";let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`),""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(g+=`"${e.type}",`,C+=`'${e.type}' => array(\n\t\t\t\t\t\t'min' => ${e?.min||0==e?.min?e?.min:"0"},\n\t\t\t\t\t\t'max' => ${e?.max||0==e?.max?e?.max:"1000"},\n\t\t\t\t\t\t'step' => ${e?.step||0==e?.step?e?.step:"1"},\n\t\t\t\t\t),`)})),g&&C?(g=`'size_units' => array( ${g} ),`,C=`'range' => array(${C}),`):(g="",C="")),""!=e.slider_defaultValue&&null!=e.slider_defaultValue&&(v+=g?`array(\n 'unit' => '${e.slider_defaultValue[0]}',\n 'size' => ${e.slider_defaultValue[1]?e.slider_defaultValue[1]:"''"},\n )`:`array(\n 'size' => ${e.slider_defaultValue[1]?e.slider_defaultValue[1]:"''"},\n )`),""!=e.selectors&&(r+="'selectors' => array(",e&&1==e.show_unit&&g?r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}}{{UNIT}};',)`:r+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}};',)`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SLIDER,\n ${g}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${C}\n ${v?`'default' => ${v},`:""}\n ${1==e.responsive?`'tablet_default' => ${v},\n 'mobile_default' => ${v},\n 'widescreen_default' => ${v},`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'render_type' => 'ui',\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n ${r}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("select"==e.type){let i=e.options;var b="";let s="";""==t&&null!=t&&(s=`'name' => '${e.name}',`),i.map((e=>{b+=`'${e.value}' => esc_html__( '${e.lable}', '${l}' ),`}));let r=`array(\n ${s}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SELECT,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${e.select_defaultValue[0]?`'default' => '${ye(e.select_defaultValue[0])}',`:""}\n ${a(e)}\n 'options' => array( ${b} ),\n )`;n+=null!=t&&""==t?r:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`}else if("selecttemplate"==e.type){b="";let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SELECT,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n 'default' => '0',\n ${a(e)}\n 'options' => Wdkit_Wb_Elementor_Controller::wdkit_get_templates(),\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("select2"==e.type){let i=e.options;b="";let s="";var h=[];""==t&&null!=t&&(s=`'name' => '${e.name}',`),i.map((e=>{b+=`'${ye(e.value)}' => esc_html__( '${ye(e.lable)}', '${l}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{h.push("'"+ye(e.value)+"'")}));let r=`array(\n ${s}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SELECT2,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'default' => array(${h}),\n ${!0===e.multiple?`'multiple' => ${e.multiple},`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n\n 'options' => array( ${b} ),\n ${a(e)}\n )`;n+=null!=t&&""==t?r:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`}else if("textarea"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n 'type' => Controls_Manager::TEXTAREA,\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'rows' => '${e.rows}',\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${l}' ),`:""}\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${l}' ),`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("switcher"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => esc_html__( '${ye(e.label_on)}', '${l}' ),\n 'label_off' => esc_html__( '${ye(e.label_off)}', '${l}' ),\n ${e?.description?`'description' => esc_html__( '${e.description}', '${l}' ),`:""}\n 'return_value' => '${ye(e.return_value)}',\n 'default' => '${1==e.defaultValue?e.return_value:""}',\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n 'label_block' => false,\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("headingtags"==e.type){let i=[{value:"h1",lable:"H1"},{value:"h2",lable:"H2"},{value:"h3",lable:"H3"},{value:"h4",lable:"H4"},{value:"h5",lable:"H5"},{value:"h6",lable:"H6"}];b="";let s="";""==t&&null!=t&&(s=`'name' => '${e.name}',`),i.map((e=>{b+=`'${e.value}' => esc_html__( '${e.lable}', '${l}' ),`}));let r=`array(\n ${s}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::SELECT,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${e.select_defaultValue[0]?`'default' => '${ye(e.select_defaultValue[0])}',`:""}\n ${a(e)}\n 'options' => array( ${b} ),\n )`;n+=null!=t&&""==t?r:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`}else if("url"==e.type){let i="",s=[];""==t&&null!=t&&(i=`'name' => '${e.name}',`),e.url_options&&1==e.url_options&&e.url_options_array?(s+="array(",e.url_options_array.map((e=>{s+=`'${e}',`})),s+=")"):s=!1;let r=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::URL,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${l}' ),`:""}\n 'options' => ${s},\n 'default' => array(\n 'url' => '${e.defaultValue}',\n 'is_external' => ${e.is_external},\n 'nofollow' => ${e.nofollow},\n 'custom_attributes' => '${e.custom_attributes}',\n ),\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${ye(e.controlClass)}',`:""}\n ${!0===e.dynamic?`'dynamic' => array(\n 'active' => ${e.dynamic},\n ),`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?r:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n`}else if("alert"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'heading' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::ALERT,\n ${e?.description?`'content' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'alert_type' => '${e.alert_type}',\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("notice"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'heading' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n 'type' => Controls_Manager::NOTICE,\n ${e?.description?`'content' => esc_html__( '${ye(e.description)}', '${l}' ),`:""}\n 'notice_type' => '${e.notice_type}',\n 'dismissible' => ${e.dismissible}, \n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}else if("deprecatednotice"==e.type){let i="";""==t&&null!=t&&(i=`'name' => '${e.name}',`);let s=`array(\n ${i}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${l}' ),`:""}\n ${e?.description?`'content' => esc_html__( '${ye(e.description)}', '${l}' ).' <a href="">' . esc_html__( 'Learn more', 'textdomain' ) . '</a>',`:""}\n 'type' => Controls_Manager::DEPRECATED_NOTICE,\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n 'widget' => '${ye(e.deprecatedValue[0].Widget)}',\n 'since' => '${ye(e.deprecatedValue[1].Since)}',\n 'last' => '${ye(e.deprecatedValue[2].Last)}',\n 'plugin' => '${ye(e.deprecatedValue[3].Plugin)}',\n 'replacement' => '${ye(e.deprecatedValue[4].Replacement)}',\n ${a(e)}\n )`;n+=null!=t&&""==t?s:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${s}\n );\n`}return n},He=(e,t,a,l)=>{const n=e=>{var t="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""==e.name||""==e.operator||(r+=`['${ye(e.name)}','${"=="==e.operator?"=":e.operator}', ${1==e.value||0==e.value||"true"==e.value||"false"==e.value?e.value:`'${ye(e.value)}'`}],\n`)})),""==r?t="":t+=`'required' => [${r}],`),t};var i="wdesignkit",s="",r="",o=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let r=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'text',\n 'spellcheck' => true,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${i}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("number"==e.type){let r=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'number',\n 'min' => ${e?.number_setting?.min?e?.number_setting?.min:'""'},\n 'max' => ${e?.number_setting?.max?e?.number_setting?.max:'""'},\n 'step' => ${e?.number_setting?.step?e?.number_setting?.step:'""'},\n 'default' => ${e.defaultValue?e.defaultValue:0},\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${!1===e.lableBlock?"":`'inline' =>${e.lableBlock},`}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n ${e.selector_value||e.selectors?`'css' => [\n [\n 'property' => '${ye(e.selector_value)}',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("repeater"==e.type){var c="",d="";if(""==a&&null!=a&&e.name,"Old"==e.repeater_type?fe():e.repeater_type,e.fields){d+="[";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(d+="[",e.fields.map((e=>{d+=Ne(e,"elementor")})),d+="],\n");d+="]"}e.fields.length>0&&(c+="[",e.fields.forEach((e=>{o.includes(e.type)||(c+=`\n ${He(e,"","repeater")}`)})),c+="],"),s+=`\n $this->controls['${e.name}'] = [\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n\t\t\t\t'type' => 'repeater',\n ${e.title_field?`'titleProperty' => '${ye(e.title_field)}',`:""}\n ${d?`'default' => ${d},`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n 'inline' => false,\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n 'fields' => ${c||"[]"}\n ${n(e)}\n ];\n `}else if("textarea"==e.type){let r=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'textarea',\n 'rows' => '${e.rows}',\n 'spellcheck' => true,\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n ${e.defaultValue?`'default' => '${ye(e.defaultValue)}',`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("color"==e.type){let r=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'color',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.selector_value||e.selectors?`'css' => [\n [\n 'property' => '${ye(e.selector_value)}',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""} \n ${e.defaultValue?`'default' => [\n 'hex' => '${ye(e.defaultValue)}',\n ],`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("select"==e.type){let r=e.options;var m="";r.map((e=>{m+=`'${e.value}' => esc_html__( '${e.lable}', '${i}' ),`}));let o=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'select',\n 'options' => [ ${m} ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n 'multiple' => false, \n 'searchable' => true,\n 'clearable' => true,\n ${e.select_defaultValue[0]?`'default' => '${ye(e.select_defaultValue[0])}',`:""}\n ${n(e)}\n\n `;s+=a?`'${e.name}' => [\n ${o}\n ],`:`$this->controls['${e.name}'] = [\n ${o}\n ]\n ;\n`}else if("select2"==e.type){let r=e.options;m="";var p=[];r.map((e=>{m+=`'${ye(e.value)}' => esc_html__( '${ye(e.lable)}', '${i}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{p.push("'"+ye(e.value)+"'")}));let o=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'select',\n 'options' => [ ${m} ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n 'multiple' => true, \n 'searchable' => true,\n 'clearable' => true,\n ${p?`'default' => array(${p}),`:""}\n ${n(e)}\n\n `;s+=a?`'${e.name}' => [\n ${o}\n ],`:`$this->controls['${e.name}'] = [\n ${o}\n ]\n ;\n`}else if("url"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n 'type' => 'link',\n 'pasteStyles' => false,\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("media"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n 'type' => 'image',\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("iconscontrol"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'icon',\n 'default' => [\n 'library' => 'Fontawesome - Regular',\n 'icon' => '${ye(e.defaultValue)}',\n ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${e.selectors?`'css' => [\n [\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("slider"==e.type){var u="",w="";""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(u+=`"${e.type}",`,w+=`'${e.type}' => [\n\t\t\t\t\t\t'min' => ${e?.min||0==e?.min?e?.min:"0"},\n\t\t\t\t\t\t'max' => ${e?.max||0==e?.max?e?.max:"1000"},\n\t\t\t\t\t\t'step' => ${e?.step||0==e?.step?e?.step:"1"},\n\t\t\t\t\t],`)})),u&&w?(u=`'size_units' => [ ${u} ],`,w=`'units' => [${w}],`):(u="",w=""));let r=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'slider',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.selector_value||e.selectors?`'css' => [\n [\n 'property' => '${ye(e.selector_value)}',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""}\n ${w}\n \n 'default' => '${e.slider_defaultValue[1]}${ye(e.slider_defaultValue[0])}',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("dimension"==e.type){let r="";e.dimension_defaultValue&&(1==e.dimension_defaultValue.isLinked?r=`[\n 'top' => '${e.dimension_defaultValue.top}',\n 'right' => '${e.dimension_defaultValue.top}',\n 'bottom' => '${e.dimension_defaultValue.top}',\n 'left' => '${e.dimension_defaultValue.top}',\n ]`:0==e.dimension_defaultValue.isLinked&&(r=`[\n 'top' => '${e.dimension_defaultValue.top}',\n 'right' => '${e.dimension_defaultValue.right}',\n 'bottom' => '${e.dimension_defaultValue.bottom}',\n 'left' => '${e.dimension_defaultValue.left}',\n ]`));let o=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'dimensions',\n ${e.selector_value||e.selectors?`'css' => [\n [\n 'property' => '${ye(e.selector_value)}',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""}\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${r?`'default' => ${r},`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${o}\n ],`:`$this->controls['${e.name}'] = [\n ${o}\n ]\n ;\n`}else if("background"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'background',\n ${e.selector?`'css' => [\n [\n 'property' => 'background',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n 'exclude' => [\n 'videoUrl',\n 'videoScale',\n ],\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}`;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("border"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'border',\n ${e.selector?`'css' => [\n [\n 'property' => 'border',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("typography"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'typography',\n ${e.selector?`'css' => [\n [\n 'property' => 'typography',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n 'inline' => true,\n ${n(e)}\n 'popup' => true, \n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("textshadow"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'text-shadow',\n ${e.selector?`'css' => [\n [\n 'property' => 'text-shadow',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("boxshadow"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'box-shadow',\n ${e.selector?`'css' => [\n [\n 'property' => 'box-shadow',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("cssfilter"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'filters',\n ${e.selector?`'css' => [\n [\n 'property' => 'filter',\n 'selector' => '${ye(e.selector)}',\n ],\n ],`:""}\n 'inline' => true,\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("svg"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n 'type' => 'svg',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("datetime"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'datepicker',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${i}' ),`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("code"==e.type){let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'code',\n 'mode' => '${e.language}',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => '${ye(e.defaultValue)}',`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("gallery"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'image-gallery',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n 'inline' => false,\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("align"==e.type){const r={"text-align":"text-align","justify-content":"justify-content","align-items":"align-items","flex-direction":"direction"}[e.alignType.trim()];let o=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => '${r}',\n 'options' => [\n 'textAlign' => esc_html__( 'Text Align', 'bricks' ),\n 'justifyContent' => esc_html__( 'Justify Content', 'bricks' ),\n 'alignItems' => esc_html__( 'Align Items', 'bricks' ),\n ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${r||e.selectors?`'css' => [\n [\n 'property' => '${e.alignType.trim()}',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],`:""}\n \n `;s+=a?`'${e.name}' => [\n ${o}\n ],`:`$this->controls['${e.name}'] = [\n ${o}\n ]\n ;\n`}else if("headingtags"==e.type){m="",[{value:"h1",lable:"H1"},{value:"h2",lable:"H2"},{value:"h3",lable:"H3"},{value:"h4",lable:"H4"},{value:"h5",lable:"H5"},{value:"h6",lable:"H6"}].map((e=>{m+=`'${e.value}' => esc_html__( '${e.lable}', '${i}' ),`}));let r=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'select',\n 'options' => [ ${m} ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${ye(e.placeHolder)}', '${i}' ),`:""}\n 'multiple' => false, \n 'searchable' => false,\n 'clearable' => false,\n ${e.select_defaultValue[0]?`'default' => '${ye(e.select_defaultValue[0])}',`:""}\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("heading"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'info',\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("switcher"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'checkbox',\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => ${e.defaultValue},`:""}\n ${n(e)}\n\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("wysiwyg"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'editor',\n 'inlineEditing' => [\n 'selector' => '.text-editor',\n 'toolbar' => true,\n ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${ye(e.defaultValue)}', '${i}' ),`:""} \n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("query"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'query',\n 'default' => [\n 'post_type' => 'post',\n ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}else if("divider"==e.type){let i=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n 'type' => 'separator',\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${i}\n ],`:`$this->controls['${e.name}'] = [\n ${i}\n ]\n ;\n`}else if("gradientcolor"==e.type){let r=`\n\n 'tab' => '${t}',\n ${a?"":`'group' => '${ye(l?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${ye(e.lable)}', '${i}' ),`:""}\n 'type' => 'gradient',\n 'css' => [\n [\n 'property' => 'background-image',\n 'selector' => '${ye(e.selectors)}',\n ],\n ],\n ${e?.description?`'description' => esc_html__( '${ye(e.description)}', '${i}' ),`:""}\n 'inline' => false,\n ${n(e)}\n `;s+=a?`'${e.name}' => [\n ${r}\n ],`:`$this->controls['${e.name}'] = [\n ${r}\n ]\n ;\n`}return s},Me=async(e,t,a,l,n,i,r,o)=>{const c=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},d=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,2)+e},m=()=>Math.floor(1e6*Math.random()),p=function(e){return(new DOMParser).parseFromString(e,"text/html")};wdkitData.WDKIT_SITE_URL;var u=wdkitData.WDKIT_SERVER_PATH,w="wdesignkit",g=(e=>{let t=JSON.parse(e),a=p(t);return(a.head.innerHTML+a.body.innerHTML).replaceAll("'","\\'")})(a),C=[],v=[],b="",h={},_="",k="",E="",f=c(),y=c(),N=[],$={ajax:"",api:""},L=[],x={selecttemplate:"use wdkit\\wdkit_wbcontroller\\Wdkit_Wb_Elementor_Controller;"};const H=e=>{var a=t.WcardData.widgetdata.name.trim(),l=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+l:"folder"==e?a.replaceAll(" ","-")+"_"+l:null==e?a:void 0},M=e=>{let t=[],a=p(g);if(a.querySelectorAll(`[data-${e}]`).length>0){g=a.head.innerHTML+a.body.innerHTML;let l=a.querySelectorAll(`[data-${e}]`);return Object.values(l).map((e=>{t.push(e.outerHTML)})),t}};(()=>{if("update"==e||"sync"==e&&null!=i){let e=new URL(window.location).hash.split("/"),a=e.length-1,l=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=l;let n=e.join("/");document.location.hash=n}})();const V=async e=>{if(e){let t=M(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var l=p(t);N.map((t=>{t.name!=e&&l.querySelectorAll(`[data-${t.name}]`).length>0&&V(t.name)}));let i=M(e);if(i.length>0){let t=N.findIndex((t=>t.name==e)),l=N[t];if("repeater"==l.type){let e=d(),t=`$${l.name+"_"+e} .= '${i[0]}';`;b+=`$${l.name+"_"+e} = '';\n if ( $settings['${l.name}'] ) {\n foreach ( $settings['${l.name}'] as $key => $r_item ) {\n ${h?.[l.name]?h?.[l.name]:""}\n ${t}\n }\n }`,g=g.replace(i[0],`'.$${l.name+"_"+e}.'`)}else if("gallery"==l.type){let e=d();if(null!=l?.repeater){var n=`$${l.name+"_"+e} = '';\n if($r_item['${l.name}']){\n foreach ( ${l?.repeater?"$r_item":"$settings"}['${l.name}'] as $image ) {\n $${l.name+"_"+e} .= '${i[a]}';\n }\n }`;h?.[l?.repeater]&&(n=h?.[l?.repeater]+n),h=Object.assign({},h,{[l?.repeater]:n})}else _+=`$${l.name+"_"+e} = '';\n if($settings['${l.name}']){\n foreach ( ${l?.repeater?"$r_item":"$settings"}['${l.name}'] as $image ) {\n $${l.name+"_"+e} .= '${i[0]}';\n }\n }`;g=g.replace([i[0]],`'.$${l.name+"_"+e}.'`)}else if("select2"==l.type){let e=d();l?.repeater?(n=l?.multiple?`$${l.name+"_"+e} = '';\n if ( $r_item['${l.name}'] && $r_item['${l.name}'] != "undefined" ) {\n foreach ( $r_item['${l.name}'] as $s_item ) {\n $${l.name+"_"+e} .= '${i[0]}';\n }\n }`:`$${l.name+"_"+e} = '';\n if ( $r_item['${l.name}'] && $r_item['${l.name}'] != "undefined" ) {\n $${l.name+"_"+e} .= '${i[0]}';\n }`,h?.[l?.repeater]&&(n=h?.[l?.repeater]+n),h=Object.assign({},h,{[l?.repeater]:n})):_+=l?.multiple?`$${l.name+"_"+e} = '';\n if ( ${l?.repeater?"$r_item":"$settings"}['${l.name}'] && ${l?.repeater?"$r_item":"$settings"}['${l.name}'] != "undefined" ) {\n foreach ( ${l?.repeater?"$r_item":"$settings"}['${l.name}'] as $s_item ) {\n $${l.name+"_"+e} .= '${i[0]}';\n }\n }`:`$${l.name+"_"+e} = '';\n if ( ${l?.repeater?"$r_item":"$settings"}['${l.name}'] && ${l?.repeater?"$r_item":"$settings"}['${l.name}'] != "undefined" ) {\n $${l.name+"_"+e} .= '${i[0]}';\n }`,g=g.replace([i[0]],`'.$${l.name+"_"+e}.'`)}else if("headingtags"==l.type){let e=d();if(null!=l?.repeater){let t=i[0],a=c();t=t.replaceAll(`data-${l.name}`,a),t=t.replaceAll([l.name],`'.$r_item["${l.name}"].'`),t=t.replaceAll([a],`data-${l.name}`),n=`$${l.name+"_"+e} = '';\n if($r_item['${l.name}']){\n $${l.name+"_"+e} = '${t}';\n }`,h?.[l?.repeater]&&(n=h?.[l?.repeater]+n),h=Object.assign({},h,{[l?.repeater]:n})}else{let t=i[0],a=c();t=t.replaceAll(`data-${l.name}`,a),t=t.replaceAll([l.name],`'.$settings["${l.name}"].'`),t=t.replaceAll([a],`data-${l.name}`),_+=`$${l.name+"_"+e} = '';\n if($settings['${l.name}']){\n $${l.name+"_"+e} = '${t}';\n }`}g=g.replace([i[0]],`'.$${l.name+"_"+e}.'`)}}}}))}},D=(e,t)=>{L.includes(e.type)||L.push(e.type);var a="";if("icon"==e.type||"iconscontrol"==e.type){if(g.search(e.name)>=1){if(null!=t){let a=`$${e.name} = "";\n if(!empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['value'])){\n ob_start();\n \\Elementor\\Icons_Manager::render_icon($r_item['${e.name}'],['aria-hidden'=>'true']);\n $Icon = ob_get_contents();\n ob_end_clean();\n $${e.name} .= ${e.parent_class||null==e.parent_class?"'<span class=\"tp-title-icon\">'.$Icon.'</span>';":"$Icon;"}\n };\n`;h?.[t]&&(a=h?.[t]+a),h=Object.assign({},h,{[t]:a})}else _+=`$${e.name} = "";\n if(!empty($settings['${e.name}']) && !empty($settings['${e.name}']['value'])){\n ob_start();\n \\Elementor\\Icons_Manager::render_icon($settings['${e.name}'],['aria-hidden'=>'true']);\n $Icon = ob_get_contents();\n ob_end_clean();\n $${e.name} .= ${e.parent_class||null==e.parent_class?"'<span class=\"tp-title-icon\">'.$Icon.'</span>';":"$Icon;"}\n };\n`;g=g.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("media"==e.type){if(g.search(e.name)>=1){if(null!=t){let a=`$${e.name} = !empty($r_item['${e.name}']['url']) ? $r_item['${e.name}']['url'] : '';\n`;h?.[t]&&(a=h?.[t]+a),h=Object.assign({},h,{[t]:a})}else _+=`$${e.name} = !empty($settings['${e.name}']['url']) ? $settings['${e.name}']['url'] : '';\n`;g=g.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){N.push({type:e.type,name:e.name,repeater:t});let l=M(e.name);l?l.map(((t,l)=>{let n=t;h[e.name]="",e.fields.map((i=>{if(a+=D(i,e.name),n){if(t.search(`data-${i.name}="{${i.name}}"`)>-1){let e=(s=n,(new DOMParser).parseFromString(s,"text/html").body);if(e.querySelector(`[data-${i.name}]`)&&e.querySelector(`[data-${i.name}]`).outerHTML){let t=e.querySelector(`[data-${i.name}]`).outerHTML;g=g.replaceAll(t,`'.$${i.name+l}.'`)}}else g="media"==i.type||"iconscontrol"==i.type?g.replaceAll(`{{${i.name}}}`,`' . $${i.name} . '`):"url"==i.type?(g=(g=g.replaceAll(`{{${i.name}-url}}`,`' . $${i.name}_url . '`)).replaceAll(`{{${i.name}-is_external}}`,`' . $${i.name}_is_external . '`)).replaceAll(`{{${i.name}-nofollow}}`,`' . $${i.name}_nofollow . '`):g.replaceAll(`{{${i.name}}}`,`' . $r_item['${i.name}'] . '`);g=(g=(g=g.replaceAll("{loop-class-repeater}","elementor-repeater-item-' .esc_attr($r_item['_id']) . '")).replaceAll(`{{${e.name}_index}}`,"'.$key.'")).replaceAll(`{{${e.name}_uid}}`,"'.esc_attr($r_item['_id']).'")}var s}))})):e.fields.map((t=>{a+=D(t,e.name)}))}else if("gallery"==e.type){N.push({type:e.type,name:e.name,repeater:t});let a=M(e.name);a&&a.map(((t,a)=>{t&&(g=g.replaceAll("{{"+e.name+"}}","'.esc_attr( $image['url'] ).'"))}))}else if("select2"==e.type){N.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple});let a=M(e.name);a&&a.map(((t,a)=>{t&&(g=e.multiple?g.replaceAll("{{"+e.name+"}}","' .$s_item. '"):g.replaceAll("{{"+e.name+"}}",`' .$settings['${e.name}']. '`))}))}else if("url"==e.type){if(null!=t){let a=`$${e.name}_is_external = !empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['is_external']) ? '_blank' : '';\n`;a+=`$${e.name}_url = !empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['url'])? $r_item['${e.name}']['url'] : '';\n`,a+=`$${e.name}_nofollow = !empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['nofollow'])? 'nofollow' : '';\n`,h?.[t]&&(a=h?.[t]+a),h=Object.assign({},h,{[t]:a})}else _+=`$${e.name}_url = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['url']) ? $settings['${e.name}']['url'] : '';\n`,_+=`$${e.name}_is_external = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['is_external']) ? '_blank' : '';\n`,_+=`$${e.name}_nofollow = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['nofollow']) ? 'nofollow' : '';\n`,_+=`$${e.name}_custmAtr = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['custom_attributes']) ? $settings['${e.name}']['custom_attributes'] : '';\n $${e.name}_atr = '';\n \n if( !empty( $${e.name}_custmAtr ) ){\n $${e.name}_custmAtr = trim( $${e.name}_custmAtr, " " );\n $main_array = explode( ",", $${e.name}_custmAtr );\n\n foreach ( $main_array as $key => $value ) {\n if( !empty( $value ) ){\n $ct_array = explode( "|", $value );\n $${e.name}_atr .= $ct_array[0] .' = "'. $ct_array[1].'"';\n }\n }\n }`;g=(g=(g=(g=g.replaceAll(`{{${e.name}-is_external}}`,`'.$${e.name}_is_external.'`)).replaceAll(`{{${e.name}-url}}`,`'.$${e.name}_url.'`)).replaceAll(`{{${e.name}-nofollow}}`,`'.$${e.name}_nofollow.'`)).replaceAll(`{{${e.name}-custom_atr}}=""`,`'.$${e.name}_atr.'`)}else if("selecttemplate"==e.type){if(null!=t){let a=`$${e.name} = !empty($r_item['${e.name}']) ? Wdkit_Wb_Elementor_Controller::wdkit_elementor()->frontend->get_builder_content_for_display( $r_item['${e.name}'] ) : '';\n`;h?.[t]&&(a=h?.[t]+a),h=Object.assign({},h,{[t]:a})}else _+=`$${e.name} = !empty($settings['${e.name}']) ? Wdkit_Wb_Elementor_Controller::wdkit_elementor()->frontend->get_builder_content_for_display( $settings['${e.name}'] ) : '';\n`;g=g.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("popover"==e.type)e.fields&&e.fields.map((e=>{a+=D(e)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{a+=D(e)}));else if("number"==e.type){if(null!=t){let a=`$${e.name} = isset($r_item['${e.name}']) ? $r_item['${e.name}'] : '';\n`;h?.[t]&&(a=h?.[t]+a),h=Object.assign({},h,{[t]:a})}else _+=`$${e.name} = isset($settings['${e.name}']) ? $settings['${e.name}'] : '';\n`;g=g.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else"headingtags"==e.type?N.push({type:e.type,name:e.name,repeater:t}):null!=t?g=g.replaceAll(`{{${e.name}}}`,`' . $r_item['${e.name}'] . '`):(_+=`$${e.name} = !empty($settings['${e.name}']) ? $settings['${e.name}'] : '';\n`,g=g.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`));return a};t.Editor_data?.links[0]?.js?.length>0&&t.Editor_data.links[0].js.map((function(e){e&&(C+=`wp_enqueue_script( 'wd_ex_script_${c()}', '${e}', array(), '${wdkitData.WDKIT_VERSION}.${m()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(v+=`wp_enqueue_style( 'wd_css_ex_1_${c()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${m()}', 'all' );\n`)})),t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{b+=D(e)}))})),N.length>0&&N.map((e=>{V(e.name)})),t.CardItems.cardData[0].layout.map((e=>{k+=`$this->start_controls_section('${e.section}_tab_content',\n [\n 'label' => esc_html__( '${e.section}', '${w}' ),\n 'tab' => Controls_Manager::TAB_CONTENT,\n ]\n );\n`,e.inner_sec.map((e=>{k+=xe(e)})),k+="$this->end_controls_section();"})),t.CardItems.cardData[0].style.map((e=>{E+=`$this->start_controls_section(\n '${e.section}_style_secdddtion',\n [\n 'label' => esc_html__( '${e.section}', '${w}' ),\n 'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n ]\n );\n`,e.inner_sec.map((e=>{E+=xe(e)})),E+="$this->end_controls_section();"}));var S,Z='""'!=n?`(function ($) {\n "use strict";\n var WidgetScrollSequenceHandler = function($scope, $) { \n \n ${JSON.parse(n)} \n };\t\n $(window).on('elementor/frontend/init', function () {\n elementorFrontend.hooks.addAction('frontend/element_ready/wb-${t.WcardData.widgetdata.widget_id}.default', WidgetScrollSequenceHandler);\n });\n })(jQuery);`:"",R=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(l);if(t&&t.WcardData&&t.WcardData.widgetdata&&t.WcardData.widgetdata.css_parent_node&&1==t.WcardData.widgetdata.css_parent_node){a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`);let t=a.split("}"),l="";return t.map((t=>{let a=t.trim();if(a.search("{")>-1)if(a.search("@import")>-1)l+=a+"}";else if("."==a.charAt(0)){a=a.replace(".",`.wkit-wb-Widget_${e} .`);let t=/,.*{/;a.search(/,\s*\./)>-1&&a.match(t)&&(a=a.replace(/,\s*\./g,`, .wkit-wb-Widget_${e} .`)),l+=a+"}"}else a.charAt(0).match("[a-zA-Z]+")&&!a.startsWith("body")?(a=a.replace(a.charAt(0),`.wkit-wb-Widget_${e} `+a.charAt(0)),l+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` { .wkit-wb-Widget_${e}`),l+=a+"}"):l+=a+"}";else a.search("{")<=-1&&(l+="}")})),l=l.slice(0,-1),l}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`,B=`<?php\n/*\n * Widget Name: ${H()}\n * Author: POSIMYTH\n * Author URI: https://posimyth.com\n * \n * @package wdesignkit\n */\n\n${S="",L?.length>0&&L.map((e=>{x?.[e]&&(S+=x?.[e])})),S}\nuse Elementor\\Widget_Base;\nuse Elementor\\Controls_Manager;\nuse Elementor\\Utils;\nuse Elementor\\Group_Control_Typography;\nuse Elementor\\Group_Control_Border;\nuse Elementor\\Group_Control_Background;\nuse Elementor\\Group_Control_Box_Shadow;\nuse Elementor\\Group_Control_Text_Shadow;\nuse Elementor\\Group_Control_Image_Size;\n\nif ( ! defined( 'ABSPATH' ) ) {\n exit; // Exit if accessed directly.\n}\n\n/**\n * Class Wdkit_${H("file").replaceAll("-","_")}\n */\nclass Wdkit_${H("file").replaceAll("-","_")} extends Widget_Base {\n\n /**\n * Get Widget Name.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_name() {\n return 'wb-${t.WcardData.widgetdata.widget_id}';\n }\n\n /**\n * Get Widget Title.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_title() {\n return esc_html__('${H()}', '${w}');\n }\n\n ${t.WcardData.widgetdata.w_icon?`/**\n * Get Widget Icon.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_icon() {\n return '${t.WcardData.widgetdata.w_icon}';\n }`:""}\n\n /**\n * Get Widget categories.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_categories() {\n $GG_Databash = get_option( "wkit_builder" );\n if ( (empty($GG_Databash) || $GG_Databash == false) ) {\n return array('WDesignKit');\n }else{\n if( in_array( '${t.WcardData.widgetdata.category}', $GG_Databash ) ){\n\n return array('${t.WcardData.widgetdata.category}');\n }else{\n return array('WDesignKit');\n }\n }\n }\n\n /**\n * Get Widget keywords.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_keywords() {\n return array(${(()=>{if(t&&t.WcardData&&t.WcardData.widgetdata&&t.WcardData.widgetdata.key_words){let e=t.WcardData.widgetdata.key_words,a="";return e.forEach(((t,l)=>{a+=`'${t}'`,l!=e.length-1&&(a+=",")})),a}return"'WDesignKit'"})()});\n }\n\n ${0!=C?.length||Z?`/**\n * Get Widget Scripts\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_script_depends() {\n \n /**External js enqueue*/\n ${C}\n\n ${Z?`wp_enqueue_script( 'wkit_child_script_${f}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${H("folder")}/${H("file")}.js', array(), '${wdkitData.WDKIT_VERSION}.${m()}', true );`:""}\n\n return [ 'wkit_child_script_${f}' ];\n }`:""}\n\n ${0!=v?.length||R?`/**\n * Get Widget Styles\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_style_depends() {\n \n /**External Css enqueue*/\n ${v}\n\n ${R?`wp_enqueue_style( 'wkit_css_1_${y}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${H("folder")}/${H("file")}.css', false, '${wdkitData.WDKIT_VERSION}.${m()}', 'all' );`:""}\n\n return [ 'wkit_css_1_${y}' ];\n }`:""}\n\n ${t.WcardData.widgetdata.helper_link.trim().length>=1?`/**\n * Widget Support URL.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_custom_help_url() {\n return '${t.WcardData.widgetdata.helper_link.trim()}';\n }`:""}\n\n /**\n * Register controls.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n ${k||E?`protected function register_controls() {\n\n ${k}\n\n ${E}\n\n }`:""}\n\n /**\n * Written in PHP and HTML.\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n protected function render() { \t\n $settings = $this->get_settings_for_display();\n ${_}\n ${b}\n\n $output = '';\n $output .= '<div class="wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}" data-wdkitunique="${t.WcardData.widgetdata.widget_id}">';\n $output .= '${g}';\n $output .= '</div>';\n \n echo $output;\n }\n}`,T=Object.assign({},(()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(i){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=H("folder"),l=H("file"),n=`${u}/elementor/${e}/${l}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:a})}}return t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];if(a){let e=H("folder"),l=H("file"),n=`${u}/elementor/${e}/${l}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:a})}}return t.WcardData}return t.WcardData}{let a=r.type;var e="";if(a.search("jpeg")>-1)e="jpg";else if(a.search("jpg")>-1)e="jpg";else{if(!(a.search("png")>-1))return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:"",img_ext:e})};e="png"}if(e){let a=H("folder"),l=H("file"),n=`${u}/elementor/${a}/${l}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:e})}}}})().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION});let O={widgetdata:T};var j=`{\n "section_data":${JSON.stringify(t.CardItems.cardData)},\n "widget_data":${JSON.stringify(O)},\n "Editor_Link":${JSON.stringify(t.Editor_data)},\n "Editor_data":{\n "html":${a},\n "css":${l},\n "js":${n}\n } \n }`;if(null==i)var A="";else A=i;var P={old_folder:A,file_name:H("file"),folder_name:H("folder"),description:t.WcardData.widgetdata.description,elementor_php_file:B,elementor_js:Z,elementor_css:R,json_file:j,plugin:"elementor",d_image:o||"",call:e},W=new FormData;W.append("action","get_wdesignkit"),W.append("kit_nonce",wdkitData.kit_nonce),W.append("image",r),W.append("type","wkit_create_widget"),W.append("value",JSON.stringify(P)),await s().post(ajaxurl,W,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),$.api=e.data)})).catch((e=>console.error(e)));var I=t.WcardData.widgetdata.w_image,F=t.WcardData.widgetdata.img_ext;let q=Pe();if(q&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/elementor/${H("folder")}/${H("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(I=t?.widget_data?.widgetdata?.w_image,F=t?.widget_data?.widgetdata?.img_ext)})();let e={token:q.token,type:"add",title:H(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:j,w_uniq:t.WcardData.widgetdata.widget_id,w_image:I,w_imgext:F,w_version:t.WcardData.widgetdata.widget_version,w_updates:t.WcardData.widgetdata.version_detail,r_id:t?.WcardData?.widgetdata?.r_id?t?.WcardData?.widgetdata?.r_id:0},a={type:"wkit_add_widget",widget_info:JSON.stringify(e)};await je(a).then((e=>{e?.success||e?.message&&e?.message,$.ajax={data:e}}))}return $},Ve=async(e,t,a,l,n,i,r,o,c=!1)=>{const d=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},m=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,2)+e},p=()=>Math.floor(1e6*Math.random());var u=wdkitData.WDKIT_SERVER_PATH,w="",g="",C="",v="",b=(e=>{var t;return(t=JSON.parse(e),(new DOMParser).parseFromString(t,"text/html").body).innerHTML.replaceAll("'","\\'")})(a),h=[],_=[],k=[],E={},f=[],y=[],N=[],$=d(),L="",x={ajax:"",api:""},H="",M=t?.Editor_data?.links?.[0]?.external_cdn?[...t?.Editor_data?.links?.[0]?.external_cdn]:[];t.Editor_data?.links[0]?.js?.length>0&&t.Editor_data.links[0].js.map((function(e){e&&(h+=`wp_enqueue_script( 'wd_ex_script_${d()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${p()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(_+=`wp_enqueue_style( 'wd_css_ex_1_${d()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${p()}', 'all' );\n`)}));const V=e=>{var a=t.WcardData.widgetdata.name.trim(),l=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+l:"folder"==e?a.replaceAll(" ","-")+"_"+l:null==e?a:void 0},D=function(e){return(new DOMParser).parseFromString(e,"text/html")},S=e=>{let t=[],a=D(b);if(a.querySelectorAll(`[data-${e}]`).length>0){b=a.head.innerHTML+a.body.innerHTML;let l=a.querySelectorAll(`[data-${e}]`);return Object.values(l).map((e=>{t.push(e.outerHTML)})),t}};(()=>{if("update"==e&&null!=i){let e=new URL(window.location).hash.split("/"),a=e.length-1,l=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=l;let n=e.join("/");document.location.hash=n}})();const Z=async(e,t)=>{if(e){let t=S(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var l=D(t);y.map((t=>{t.name!=e&&l.querySelectorAll(`[data-${t.name}]`).length>0&&Z(t.name)}));let a=S(e);if(a.length>0){let t=y.findIndex((t=>t.name==e)),l=y[t];if("repeater"==l.type){let e=m(),t=`${l.name+"_"+e} += \`${a[0]}\`;`;v+=`\nlet ${l.name+"_"+e} = "";\n \n${l.name} ${l?.condition?l.condition:""} && ${l.name}.map((r_item, index) => {\n ${E?.[l.name]?E?.[l.name]:""}\n ${t}\n })`,b=b.replace(a[0],"${"+l.name+"_"+e+"}")}else if("gallery"==l.type){let e=m();if(null!=l?.repeater){var n=`\nlet ${l.name+"_"+e} = '';\n r_item?.${l.name} ${l?.condition?l.condition:""} && r_item.${l.name}.map((g_image, index) => {\n ${l.name+"_"+e} += \`${a[0]}\`;\n })`;E?.[l?.repeater]&&(n=E?.[l?.repeater]+n),E=Object.assign({},E,{[l?.repeater]:n})}else H+=null!=l?.popover?`\nlet ${l.name+"_"+e} = '';\n ${l?.popover}?.${l.name} ${l?.condition?l.condition:""} && ${l.popover}.${l.name}.map((g_image, index) => {\n ${l.name+"_"+e} += \`${a[0]}\`;\n })`:`\nlet ${l.name+"_"+e} = '';\n ${l.name} ${l?.condition?l.condition:""} && ${l.name}.map((g_image, index) => {\n ${l.name+"_"+e} += \`${a[0]}\`;\n })`;b=b.replace([a[0]],"${"+l.name+"_"+e+"}")}else if("select2"==l.type){let e=m();if(null!=l?.repeater){if(l.multiple)n=`\nlet ${l.name+"_"+e} = '';\n r_item?.${l.name}?.length > 0 && r_item.${l.name}.map((s2_item, index) => {\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;\n })`;else n=`\nlet ${l.name+"_"+e} = '';\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;`;E?.[l?.repeater]&&(n=E?.[l?.repeater]+n),E=Object.assign({},E,{[l?.repeater]:n})}else null!=l?.popover?l.multiple?H+=`\nlet ${l.name+"_"+e} = '';\n ${l?.popover}?.${l.name}?.length > 0 && ${l.popover}.${l.name}.map((s2_item, index) => {\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;\n })`:H+=`\nlet ${l.name+"_"+e} = '';\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;`:l.multiple?H+=`\nlet ${l.name+"_"+e} = '';\n ${l.name}?.length > 0 && ${l.name}.map((s2_item, index) => {\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;\n })`:H+=`\nlet ${l.name+"_"+e} = '';\n ${l.name+"_"+e} ${l?.condition?l.condition:""} += \`${a[0]}\`;`;b=b.replace([a[0]],"${"+l.name+"_"+e+"}")}else if("headingtags"==l.type){let e=m();if(null!=l?.repeater){let t=a[0],i=d();t=t.replaceAll(`data-${l.name}`,i),t=t.replaceAll([l.name],"${r_item?."+l.name+"}"),t=t.replaceAll([i],`data-${l.name}`),n=`let ${l.name+"_"+e} = '';\n if(r_item?.${l.name} ${l?.condition?l.condition:""}){\n ${l.name+"_"+e} = \`${t}\`;\n }`,E?.[l?.repeater]&&(n=E?.[l?.repeater]+n),E=Object.assign({},E,{[l?.repeater]:n})}else if(null!=l?.popover){let t=a[0],n=d();t=t.replaceAll(`data-${l.name}`,n),t=t.replaceAll([l.name],"${"+l?.popover+"?."+l.name+"}"),t=t.replaceAll([n],`data-${l.name}`),H+=`let ${l.name+"_"+e} = '';\n if(${l?.popover}?.${l.name} ${l?.condition?l.condition:""}){\n ${l.name+"_"+e} = \`${t}\`;\n }`}else{let t=a[0],n=d();t=t.replaceAll(`data-${l.name}`,n),t=t.replaceAll([l.name],"${"+l.name+"}"),t=t.replaceAll([n],`data-${l.name}`),H+=`let ${l.name+"_"+e} = '';\n if(${l.name} ${l?.condition?l.condition:""}){\n ${l.name+"_"+e} = \`${t}\`;\n }`}b=b.replace([a[0]],"${"+l.name+"_"+e+"}")}}}}))}},R=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((l,n)=>{l.name&&l.operator&&(a+=t?`(${t}?.${l.name} ${l.operator} "${l.value}")`:`(${l.name} ${l.operator} "${l.value}")`,n<e?.condition_value?.values?.length-1&&(a+="or"===e?.condition_value.relation?"||":"&&"))})),a?`&& ( ${a} )`:""},B=(e,t,a)=>{let l="";if("iconscontrol"==e.type)if(t){if(e.parent_class||null==e.parent_class)var n=`<span class="tp-title-icon"><i class="'+r_item?.${e.name}+'"></i></span>`;else n=`<i class="'+r_item?.${e.name}+'"></i>`;b=b.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+" }");let a=`\nlet grnp_${e.name} = r_item?.${e.name} != undefined ${R(e,"r_item")} ? '${n}' : '';\n`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(n=e.parent_class||null==e.parent_class?`<span class="tp-title-icon"><i class="'+${a}.${e.name}+'"></i></span>`:`<i class="'+${a}.${e.name}+'"></i>`,b=b.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),l+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${R(e,a)} ? '${n}' : '';\n`):(n=e.parent_class||null==e.parent_class?`<span class="tp-title-icon"><i class="'+${e.name}+'"></i></span>`:`<i class="'+${e.name}+'"></i>`,b=b.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),l+=`\nlet g_${e.name} = ${e.name} != undefined ${R(e)} ? '${n}' : '';\n`);else if("url"==e.type){if(b.search(`{{${e.name}-url}}`))if(t){let a=`\nlet grnp_${e.name}_url = r_item?.${e.name}?.url && r_item?.${e.name}?.url != undefined ? r_item?.${e.name}.url : "";`;b=b.replaceAll(`{{${e.name}-url}}`,"${grnp_"+e.name+"_url}"),E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(l+=`\nlet pop_${e.name}_url = ${a}?.${e.name}?.url && ${a}?.${e.name}?.url != undefined ? ${a}?.${e.name}.url : "";`,b=b.replaceAll(`{{${e.name}-url}}`,"${pop_"+e.name+"_url}")):(l+=`\nlet g_${e.name}_url = ${e.name}?.url && ${e.name}?.url != undefined ? ${e.name}.url : "";`,b=b.replaceAll(`{{${e.name}-url}}`,"${g_"+e.name+"_url}"));if(b.search(`{{${e.name}-is_external}}`))if(t){b=b.replaceAll(`{{${e.name}-is_external}}`,"${grnp_"+e.name+"_target}");let a=`\nlet grnp_${e.name}_target = r_item?.${e.name}?.target && r_item?.${e.name}?.target != undefined ? r_item?.${e.name}.target : "";`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(b=b.replaceAll(`{{${e.name}-is_external}}`,"${pop_"+e.name+"_target}"),l+=`\nlet pop_${e.name}_target = ${a}?.${e.name}?.target && ${a}?.${e.name}?.target != undefined ? ${a}?.${e.name}?.target : "";`):(b=b.replaceAll(`{{${e.name}-is_external}}`,"${g_"+e.name+"_target}"),l+=`\nlet g_${e.name}_target = ${e.name}?.target && ${e.name}?.target != undefined ? ${e.name}.target : "";`);if(b.search(`{{${e.name}-nofollow}}`))if(t){b=b.replaceAll(`{{${e.name}-nofollow}}`,"${grnp_"+e.name+"_nofollow}");let a=`\nlet grnp_${e.name}_nofollow = r_item?.${e.name}?.nofollow && r_item?.${e.name}?.nofollow != undefined ? r_item?.${e.name}.nofollow : "";`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(b=b.replaceAll(`{{${e.name}-nofollow}}`,"${pop_"+e.name+"_nofollow}"),l+=`\nlet pop_${e.name}_nofollow = ${a}?.${e.name}?.nofollow && ${a}?.${e.name}?.nofollow != undefined ? ${a}?.${e.name}?.nofollow : "";`):(b=b.replaceAll(`{{${e.name}-nofollow}}`,"${g_"+e.name+"_nofollow}"),l+=`\nlet g_${e.name}_nofollow = ${e.name}?.nofollow && ${e.name}?.nofollow != undefined ? ${e.name}.nofollow : "";`);if(b.search(`{{${e.name}-custom_atr}}=""`))if(t){b=b.replaceAll(`{{${e.name}-custom_atr}}=""`,"${grnp_"+e.name+"_attr}");let a=`\nlet grnp_${e.name}_ctmArt = r_item?.${e.name}?.attr && r_item?.${e.name}?.attr != undefined ? r_item?.${e.name}.attr : "";\n let grnp_${e.name}_attr = ''\n\n if (grnp_${e.name}_ctmArt) {\n let main_array = grnp_${e.name}_ctmArt.split(',');\n main_array?.length > 0 && main_array.map((atr) => {\n if(atr){\n let sub_array = atr.split("|");\n grnp_${e.name}_attr += (sub_array[0]?.trim() ? sub_array[0]?.trim() : '') + "='" + (sub_array[1]?.trim() ? sub_array[1]?.trim() : '') + "' ";\n }\n })\n }`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(b=b.replaceAll(`{{${e.name}-custom_atr}}=""`,"${pop_"+e.name+"_attr}"),l+=`\nlet pop_${e.name}_ctmArt = ${a}?.${e.name}?.attr && ${a}?.${e.name}?.attr != undefined ? ${a}?.${e.name}?.attr : "";\n let pop_${e.name}_attr = ''\n\n if (pop_${e.name}_ctmArt) {\n let main_array = pop_${e.name}_ctmArt.split(',');\n main_array?.length > 0 && main_array.map((atr) => {\n if(atr){\n let sub_array = atr.split("|");\n pop_${e.name}_attr += (sub_array[0]?.trim() ? sub_array[0]?.trim() : '') + "='" + (sub_array[1]?.trim() ? sub_array[1]?.trim() : '') + "' ";\n }\n })\n }`):(b=b.replaceAll(`{{${e.name}-custom_atr}}=""`,"${g_"+e.name+"_attr}"),l+=`\nlet g_${e.name}_ctmArt = ${e.name}?.attr != undefined ? ${e.name}.attr : "";\n let g_${e.name}_attr = ''\n\n if (g_${e.name}_ctmArt) {\n let main_array = g_${e.name}_ctmArt.split(',');\n main_array?.length > 0 && main_array.map((atr) => {\n if(atr){\n let sub_array = atr.split("|");\n g_${e.name}_attr += (sub_array[0]?.trim() ? sub_array[0]?.trim() : '') + "='" + (sub_array[1]?.trim() ? sub_array[1]?.trim() : '') + "' ";\n }\n })\n }`)}else if("media"==e.type)if(t){b=b.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+"}");let a=`\nlet grnp_${e.name} = r_item?.${e.name}?.url != undefined ${R(e,"r_item")} ? r_item?.${e.name}.url : "";`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(b=b.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),l+=`\nlet pop_${e.name} = ${a}?.${e.name}?.url != undefined ${R(e,a)} ? ${a}.${e.name}.url : "";`):(b=b.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),l+=`\nlet g_${e.name} = ${e.name} && ${e.name}.url && ${e.name}.url != undefined ${R(e)} ? ${e.name}.url : "";`);else if("popover"==e.type)e.fields&&e.fields.map((t=>{l+=B(t,"",e.name)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{l+=B(e)}));else if("repeater"==e.type){y.push({type:e.type,name:e.name,repeater:t,condition:R(e,t)});let a=S(e.name);a?a.map(((t,a)=>{E[e.name]="";let n=t;e.fields.map((i=>{if(l+=B(i,e.name),n){if(t.search(`data-${i.name}="{${i.name}}"`)>-1){let e=(s=n,(new DOMParser).parseFromString(s,"text/html").body);if(e.querySelector(`[data-${i.name}]`)&&e.querySelector(`[data-${i.name}]`).outerHTML){let t=e.querySelector(`[data-${i.name}]`).outerHTML;b=b.replaceAll(t,`'+${i.name+a}+'`)}}else b="media"==i.type||"iconscontrol"==i.type?b.replaceAll(`{{${i.name}}}`,`'+${i.name}+'`):b.replaceAll(`{{${i.name}}}`,"${r_item."+i.name+"}");b=(b=(b=b.replaceAll("{loop-class-repeater}","tp-repeater-item-${r_item._key}")).replaceAll(`{{${e.name}_index}}`,"${index}")).replaceAll(`{{${e.name}_uid}}`,"${r_item._key}")}var s}))})):e.fields.map((t=>{l+=B(t,e.name)}))}else if("gallery"==e.type){a?y.push({type:e.type,name:e.name,popover:a,condition:R(e,t)}):y.push({type:e.type,name:e.name,repeater:t,condition:R(e,t)});let l=S(e.name);l&&l.map(((t,a)=>{t&&(b=b.replaceAll("{{"+e.name+"}}","${g_image.url}"))}))}else if("select2"==e.type){a?y.push({type:e.type,name:e.name,popover:a,multiple:e.multiple,condition:R(e,t)}):y.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:R(e,t)});let l=S(e.name);l&&l.map(((t,a)=>{t&&(b=e.multiple?b.replaceAll("{{"+e.name+"}}","${s2_item?.value}"):b.replaceAll("{{"+e.name+"}}","${"+e.name+".value}"))}))}else if("slider"==e.type){var i="";e.size_units&&e.size_units.map(((t,a)=>{i+=`g_${e.name}_list['${t.type}'] = { "type": "${t.type}", "min": ${t.min}, "max": ${t.max}, "step": ${t.step} };\n`})),L+=`const ${e.name}Function = (unit, type) => {\n var g_${e.name}_list = [];\n ${i}\n return g_${e.name}_list[unit][type];\n };`}else if("headingtags"==e.type)a?y.push({type:e.type,name:e.name,popover:a,condition:R(e,t)}):y.push({type:e.type,name:e.name,repeater:t,condition:R(e,t)});else if(t){b=b.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+"}");let a=`\nlet grnp_${e.name} = r_item.${e.name} ${R(e,"r_item")} ? r_item.${e.name} : "";`;E?.[t]&&(a=E?.[t]+a),E=Object.assign({},E,{[t]:a})}else a?(b=b.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),l+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${R(e,a)} ? ${a}.${e.name} : "";`):(b=b.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),l+=`\nlet g_${e.name} = ${e.name} && ${e.name} != undefined ${R(e)} ? ${e.name} : "";`);return l};t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{H+=B(e)}))})),t.CardItems.cardData[0].style.map((e=>{e.inner_sec.map((e=>{H+=B(e)}))})),y.length>0&&y.map((e=>{Z(e.name)}));let T={pmgc:{text:"Pmgc_Text",number:"Pmgc_Text",media:"Pmgc_Media",gallery:"Pmgc_Media",choose:"Pmgc_RadioAdvanced",background:"Pmgc_Background",border:"Pmgc_Border",boxshadow:"Pmgc_BoxShadow",color:"Pmgc_Color",cssfilter:"Pmgc_CssFilter",dimension:"Pmgc_Dimension",typography:"Pmgc_Typography",gradientcolor:"Pmgc_Gradient",heading:"Pmgc_Label_Heading",textshadow:"Pmgc_BoxShadow",fontawesomeiconlist:"Pmgc_IconList",linksearch:"Pmgc_LinkSearch",multirange:"Pmgc_MultiRange",rawhtml:"Pmgc_Note",radioadvanced:"Pmgc_RadioAdvanced",slider:"Pmgc_Range",select:"Pmgc_Select",select2:"Pmgc_select2",styleimage:"Pmgc_Styles",sortable:"Pmgc_Sortable",imagestyles:"Pmgc_ImageStyles",tab:"Pmgc_Tab",textarea:"Pmgc_TextArea",switcher:"Pmgc_Toggle",url:"Pmgc_Url",iconscontrol:"Pmgc_IconList",popover:"Pmgc_GroupPopover",normalhover:"Pmgc_Tabs",repeater:"Pmgc_Repeater",headingtags:"Pmgc_Heading"}};t.CardItems.cardData[0].layout.map((e=>{w+=`React.createElement(PanelBody, { title: __("${e.section}"), initialOpen: true },\n`,e.inner_sec.map((e=>{"repeater"!=e.type&&"popover"!=e.type&&"normalhover"!=e.type||e.fields.map((t=>{f.includes(T.pmgc[t.type])||T?.pmgc?.[t.type]&&f.push(T.pmgc[t.type]),"datetime"==t.type&&(k.includes("DateTimePicker")||k.push("DateTimePicker")),"normalhover"==e.type&&N.push(t.name)})),f.includes(T.pmgc[e.type])||("datetime"==e.type&&(k.includes("DateTimePicker")||k.push("DateTimePicker")),T?.pmgc?.[e.type]&&f.push(T.pmgc[e.type])),N.includes(e.name)||N.push(e.name),w+=Le(e,"js"),C+=Le(e,"php")})),w+="),"})),t.CardItems.cardData[0].style.map((e=>{g+=`React.createElement(PanelBody, { title: __("${e.section}"), initialOpen: true },\n`,e.inner_sec.map((e=>{"repeater"!=e.type&&"popover"!=e.type&&"normalhover"!=e.type||e.fields.map((t=>{f.includes(T.pmgc[t.type])||f.push(T.pmgc[t.type]),"normalhover"==e.type&&N.push(t.name)})),f.includes(T.pmgc[e.type])||f.push(T.pmgc[e.type]),N.includes(e.name)||N.push(e.name),g+=Le(e,"js"),C+=Le(e,"php")})),g+="),"})),f.map((e=>{}));var O="";N.map((e=>{O+=`${e},\n`}));var j=JSON.stringify(t.CardItems.cardData),A=JSON.stringify((()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(i){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=V("folder"),l=V("file"),n=`${u}/gutenberg/${e}/${l}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:a})}}return t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];if(a){let e=V("folder"),l=V("file"),n=`${u}/gutenberg/${e}/${l}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:a})}}return t.WcardData}return t.WcardData}{let a=r.type;var e="";if(a.search("jpeg")>-1)e="jpg";else if(a.search("jpg")>-1)e="jpg";else{if(!(a.search("png")>-1))return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:"",img_ext:e})};e="png"}if(e){let a=V("folder"),l=V("file"),n=`${u}/gutenberg/${a}/${l}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:n,img_ext:e})}}}})()),P=JSON.stringify(t.Editor_data);let W=d();var I=`\n class ${V("file").replaceAll("-","_")} {\n constructor() {\n this.${V("file").replaceAll("-","_")}_${W}();\n }\n \n ${V("file").replaceAll("-","_")}_${W}() {\n const { useState, useEffect } = wp.element;\n const { __ } = wp.i18n; // Import __() from wp.i18n\n const { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks\n \n const {\n PanelBody,\n ${k}\n } = wp.components;\n \n const {\n Pmgc_PanelTabs,\n Pmgc_Tab,\n ${f?.length>0?f+",":""}\n Pmgc_EditReusable,\n Pmgc_Global,\n Pmgc_HelperFunction,\n Pmgc_CssGenerator,\n } = wp.Pmgc_Components;\n \n const {\n Component,\n Fragment\n } = wp.element;\n \n const {\n InspectorControls,\n InnerBlocks,\n RichText,\n } = wp.blockEditor;\n \n registerBlockType('cgb/${V("folder").replaceAll("_","-").toLowerCase()}-block', {\n title: __('${V()}'), // Block title.\n description: __('${t.WcardData.widgetdata.description}'),\n icon: React.createElement("i", {\n class: "${t.WcardData.widgetdata.w_icon}",\n style: { fontSize: "20px" }\n }),\n category: '${t?.WcardData?.widgetdata?.category?t.WcardData.widgetdata.category:"common"}',\n keywords: [${(()=>{if(t&&t.WcardData&&t.WcardData.widgetdata&&t.WcardData.widgetdata.key_words){let a=t.WcardData.widgetdata.key_words;var e="";return a.forEach((t=>{e+=`__('${t}'),`})),e}return""})()}],\n \n edit: (props) => {\n const [device, setDevice] = useState('');\n ${L}\n \n const {\n isSelected,\n attributes,\n setAttributes,\n } = props;\n \n const {\n ${O}\n block_id,\n } = attributes;\n\n var clientId = props.clientId.substr(0, 6)\n props.setAttributes({ block_id: clientId })\n\n \n useEffect(() => {\n const {\n __experimentalGetPreviewDeviceType: getPreviewDeviceType,\n } = wp.data.select('core/edit-site') || wp.data.select('core/edit-post') || wp.data.select("core/edit-widgets");\n var selectDevices = '';\n if (getPreviewDeviceType() == 'Desktop') {\n selectDevices = 'md'\n } else if (getPreviewDeviceType() == 'Tablet') {\n selectDevices = 'sm'\n } else if (getPreviewDeviceType() == 'Mobile') {\n selectDevices = 'xs'\n }\n setDevice(selectDevices)\n }, [])\n \n \n \n const inspectorControls = (isSelected && (React.createElement(InspectorControls, null,\n React.createElement(Fragment, null,\n React.createElement(Pmgc_PanelTabs, null,\n React.createElement(Pmgc_Tab, { tabTitle: __("Layout") },\n ${w}\n ),\n React.createElement(Pmgc_Tab, { tabTitle: __("Style") },\n ${g}\n ),\n React.createElement(Pmgc_Tab, { tabTitle: __("Advanced") }\n )\n )\n )\n )));\n\n if (props.attributes.block_id) {\n var element = document.getElementsByClassName("tpgb-block-" + block_id)\n if (null != element && "undefined" != typeof element) {\n Pmgc_CssGenerator(props.attributes, 'cgb', "${V("folder").replaceAll("_","-").toLowerCase()}-block", block_id, false, props.clientId);\n }\n }\n\n ${H}\n ${v}\n\n \n return (\n React.createElement(Fragment, null, inspectorControls,\n wp.element.createElement("div", {\n class: "wkit-wb-Widget_${t.WcardData.widgetdata.widget_id} cgb-block-"+block_id+"",\n dangerouslySetInnerHTML: {\n __html: \`${b}\`\n }\n })\n )\n \n );\n },\n \n save: (props) => {\n\n const {\n isSelected,\n attributes,\n setAttributes,\n } = props;\n\n const {\n ${O}\n block_id,\n } = attributes;\n\n ${H}\n ${v}\n\n let styleCss = Pmgc_CssGenerator(attributes, 'cgb', "${V("folder").replaceAll("_","-").toLowerCase()}-block", block_id, true);\n\n\n return (\n React.createElement(Fragment, null,\n wp.element.createElement("div", {\n class: "wkit-wb-Widget_${t.WcardData.widgetdata.widget_id} cgb-block-" + block_id + "",\n dangerouslySetInnerHTML: {\n __html: \`${b}\`\n }\n\n }),\n /*#__PURE__*/React.createElement("style", null, styleCss)\n )\n );\n },\n });\n}\n}\n new ${V("file").replaceAll("-","_")}();`,F=M.includes("jQuery")?`var $this = this;\n setTimeout(() => {\n let main_html = jQuery('.wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}');\n\n jQuery.each(main_html, function (idx, scope) {\n $this.main_function_${$}(jQuery(scope));\n });\n }, 800);`:`setTimeout(() => {\n let main_html = document.querySelectorAll(".wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}") \n main_html.forEach(element => {\n this.main_function_${$}([element])\n });\n }, 800);`,q='""'!=n?`class MyClass_${$} {\n\n constructor() {\n window.addEventListener('DOMContentLoaded', (event) => {\n ${F}\n });\n }\n\n main_function_${$}($scope) {\n ${JSON.parse(n)} \n }\n }\n\n new MyClass_${$}();`:"",U=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(l);if(t&&t.WcardData&&t.WcardData.widgetdata&&t.WcardData.widgetdata.css_parent_node&&1==t.WcardData.widgetdata.css_parent_node){a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`);let t=a.split("}"),l="";return t.map((t=>{let a=t.trim();a.search("{")>-1?a.search("@import")>-1?l+=a+"}":"."==a.charAt(0)?(a=a.replace(".",`.wkit-wb-Widget_${e} .`),l+=a+"}"):a.charAt(0).match("[a-zA-Z]+")&&!a.startsWith("body")?(a=a.replace(a.charAt(0),`.wkit-wb-Widget_${e} `+a.charAt(0)),l+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` { .wkit-wb-Widget_${e}`),l+=a+"}"):l+=a+"}":a.search("{")<=-1&&(l+="}")})),l=l.slice(0,-1),l}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`;let K=d(),J=d(),z=d(),G=M.includes("jQuery")?"array('jquery')":"[]";var Y=`<?php\n function wb_${V("file").replaceAll("-","_")}() { \n\n if ( ( !empty( $_GET['action'] ) && 'edit' === $_GET['action'] ) || ! is_admin() ){\n ${q?`wp_enqueue_script("wbuilder-cgb-block_external${K}-js", WDKIT_SERVER_PATH .'/gutenberg/${V("folder")}/index.js', ${G}, '${wdkitData.WDKIT_VERSION}.${p()}', true);`:""}\n\n ${h}\n ${_}\n }\n\n wp_register_script('wbuilder-cgb-block_${K}-js', WDKIT_SERVER_PATH .'/gutenberg/${V("folder")}/${V("file")}.js',\n array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wkit-editor-block-pmgc' ), '${wdkitData.WDKIT_VERSION}.${p()}', true\n );\n \n ${U?`wp_register_style('wbuilder-cgb-style_${J}-css', WDKIT_SERVER_PATH .'/gutenberg/${V("folder")}/${V("file")}.css', is_admin() ? array( 'wp-editor' ) : null, null );`:""}\n \n register_block_type(\n 'cgb/${V("folder").replaceAll("_","-").toLowerCase()}-block', array(\n 'attributes' => [\n 'block_id' => [\n 'type' => 'string',\n 'default' => '',\n ],\n ${C}\n \n ],\n ${U?`'style' => 'wbuilder-cgb-style_${J}-css',`:""}\n 'editor_script' => 'wbuilder-cgb-block_${K}-js',\n 'render_callback' => 'wkit_render_callback_${z}'\n )\n );\n \n }\n add_action( 'init', 'wb_${V("file").replaceAll("-","_")}' );\n \n function wkit_render_callback_${z}($atr, $cnt) { \n $output = $cnt;\n \n return $output;\n }`,X=`{\n "section_data": ${j},\n "widget_data":${A},\n "Editor_Link":${P},\n "Editor_data": {\n "html":${a},\n "css":${l},\n "js":${n}\n }\n }`;if(null==i)var Q="";else Q=i;var ee={old_folder:Q,file_name:V("file"),folder_name:V("folder"),description:t.WcardData.widgetdata.description,gutenberg_js:I,gutenberg_php_file:Y,gutenberg_css:U,external_js_file:q,json_file:X,plugin:"gutenberg",d_image:o||"",call:e},te=new FormData;te.append("action","get_wdesignkit"),te.append("kit_nonce",wdkitData.kit_nonce),te.append("type","wkit_create_widget"),te.append("image",r),te.append("value",JSON.stringify(ee)),await s().post(ajaxurl,te).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),x.api=e.data)})).catch((e=>console.log(e)));var ae=t.WcardData.widgetdata.w_image,le=t.WcardData.widgetdata.img_ext;let ne=Pe();if(ne&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/gutenberg/${V("folder")}/${V("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(ae=t?.widget_data?.widgetdata?.w_image,le=t?.widget_data?.widgetdata?.img_ext)})();let e={token:ne.token,type:"add",title:V(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:X,w_uniq:t.WcardData.widgetdata.widget_id,w_image:ae,w_imgext:le,w_version:t.WcardData.widgetdata.widget_version,w_updates:t.WcardData.widgetdata.version_detail,r_id:t?.WcardData?.widgetdata?.r_id?t?.WcardData?.widgetdata?.r_id:0},a={type:"wkit_add_widget",widget_info:JSON.stringify(e)};await je(a).then((e=>{e?.success||e?.message&&e?.message,x.ajax={data:e}}))}return x},De=async(e,t,a,l,n,i,r,o)=>{const c=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e};var d="",m=wdkitData.WDKIT_SERVER_PATH,p="",u={},w="",g="wdesignkit",C=[],v=[],b="",h={api:"",ajax:""},_=[],k=t.Editor_code?.Editor_codes?.[0]?.php,E=c(),f=c(),y=t?.Editor_data?.links?.[0]?.external_cdn?[...t?.Editor_data?.links?.[0]?.external_cdn]:[];const N=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,2)+e},$=()=>Math.floor(1e6*Math.random()),L=e=>{let a=`${m}/bricks/${M("folder")}/${M("file")}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:a,img_ext:e})}},x=function(e){return(new DOMParser).parseFromString(e,"text/html")};var H=(e=>{let t=x(JSON.parse(e));return(t.head.innerHTML+t.body.innerHTML).replaceAll("'","\\'")})(a);const M=e=>{var a=t.WcardData.widgetdata.name.trim(),l=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+l:"folder"==e?a.replaceAll(" ","-")+"_"+l:a},V=e=>{let t=[],a=x(H),l=a.querySelectorAll(`[data-${e}]`);if(l.length>0)return H=a.head.innerHTML+a.body.innerHTML,Object.values(l).map((e=>{t.push(e.outerHTML)})),t};(()=>{if("update"===e||"sync"===e&&null!=i){let e=new URL(window.location).hash.split("/"),a=e.length-1,l=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=l,document.location.hash=e.join("/")}})();const D=async e=>{if(e){let t=V(e);t?.length>0&&t?.map(((t,a)=>{if(t){var l=x(t);_.map((t=>{t.name!=e&&l.querySelectorAll(`[data-${t.name}]`).length>0&&D(t.name)}));let a=V(e);if(!(a.length>0))return!1;{let t=_.findIndex((t=>t.name==e)),l=_[t];if("repeater"==l.type){let e=N(),t=`$${l.name+"_"+e} .= '${a[0]}';`;b+=`$${l.name+"_"+e} = '';\n if ( !empty($this->settings['${l.name}']) ${l?.condition?l.condition:""}) {\n foreach ( $this->settings['${l.name}'] as $key => $r_item ) {\n ${u?.[l.name]?u?.[l.name]:""}\n ${t}\n }\n }`,H=H.replace(a[0],`'.$${l.name+"_"+e}.'`)}else if("gallery"===l.type){let e=N();if(null!=l?.repeater){var n=`$${l.name+"_"+e} = '';\n if(!empty($r_item['${l.name}']) ${l?.condition?l.condition:""}){\n foreach ( ${l?.repeater?"$r_item":"$this->settings"}['${l.name}']['images'] as $image ) {\n $${l.name} = $image['url'];\n $${l.name+"_"+e} .= '${a[0]}';\n }\n }`;u?.[l?.repeater]&&(n=u?.[l?.repeater]+n),u=Object.assign({},u,{[l?.repeater]:n})}else p+=`$${l.name+"_"+e} = '';\n if( !empty ($this->settings['${l.name}']) ${l?.condition?l.condition:""}){\n foreach ( ${l?.repeater?"$r_item":"$this->settings"}['${l.name}']['images'] as $image ) {\n $${l.name} = $image['url'];\n $${l.name+"_"+e} .= '${a[0]}';\n }\n }`;H=H.replace([a[0]],`'.$${l.name+"_"+e}.'`)}else if("select2"===l.type){let e=N();l?.repeater?(n=l?.multiple?`$${l.name+"_"+e} = '';\n if ( !empty($r_item['${l.name}']) ${l?.condition?l.condition:""}) {\n foreach ( $r_item['${l.name}'] as $s_item ) {\n $${l.name+"_"+e} .= '${a[0]}';\n }\n }`:`$${l.name+"_"+e} = '';\n if ( !empty($r_item['${l.name}']) ${l?.condition?l.condition:""}) {\n $${l.name+"_"+e} .= '${a[0]}';\n }`,u?.[l?.repeater]&&(n=u?.[l?.repeater]+n),u=Object.assign({},u,{[l?.repeater]:n})):p+=l?.multiple?`$${l.name+"_"+e} = '';\n if ( !empty($this->settings['${l.name}']) ${l?.condition?l.condition:""}) {\n foreach ( $this->settings['${l.name}'] as $s_item ) {\n $${l.name+"_"+e} .= '${a[0]}';\n }\n }`:`$${l.name+"_"+e} = '';\n if ( !empty($this->settings['${l.name}']) ${l?.condition?l.condition:""}) {\n $${l.name+"_"+e} .= '${a[0]}';\n }`,H=H.replace([a[0]],`'.$${l.name+"_"+e}.'`)}else if("headingtags"===l.type){let e=N();if(null!=l?.repeater){let t=a[0];t=t.replaceAll([l.name],`'.$r_item["${l.name}"].'`),n=`$${l.name+"_"+e} = '';\n if(!empty($r_item['${l.name}']) ${l?.condition?l.condition:""}){\n $${l.name+"_"+e} = '${t}';\n }`,u?.[l?.repeater]&&(n=u?.[l?.repeater]+n),u=Object.assign({},u,{[l?.repeater]:n})}else{let t=a[0],n=c();t=t.replaceAll(`data-${l.name}`,n),t=t.replaceAll([l.name],`'.$this->settings["${l.name}"].'`),t=t.replaceAll([n],`data-${l.name}`),p+=`$${l.name+"_"+e} = '';\n if(!empty($this->settings['${l.name}']) ${l?.condition?l.condition:""}){\n $${l.name+"_"+e} = '${t}';\n }`}H=H.replace([a[0]],`'.$${l.name+"_"+e}.'`)}}}}))}},S=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((l,n)=>{l.name&&l.operator&&(a+=t?`!empty($r_item['${l.name}']) && $r_item['${l.name}'] ${l.operator} ${"true"===l.value||"false"===l.value?l.value:`'${l.value}'`}`:`!empty($this->settings['${l.name}']) && $this->settings['${l.name}'] ${l.operator} ${"true"===l.value||"false"===l.value?l.value:`'${l.value}'`}`,n<e?.condition_value?.values?.length-1&&(a+="or"===e?.condition_value.relation?"||":"&&"))})),a?`&& (${a}) `:""},Z=(e,t)=>{var a="";if("url"==e.type){if(t){let a=`$${e.name}_is_external = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['newTab']) ${S(e,t)} ? '_blank' : '';\n`;a+=`$${e.name}_url = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${S(e,t)} ? $r_item['${e.name}']['url'] : '';\n`,a+=`$${e.name}_nofollow = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['rel']) ${S(e,t)} ? $r_item['${e.name}']['rel'] : '';\n`,a+=`$${e.name}_arialabel = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['ariaLabel']) ${S(e,t)} ? 'ariaLabel="'.$r_item['${e.name}']['ariaLabel'].'"' : '';\n`,a+=`$${e.name}_title = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['title']) ${S(e,t)} ? 'title="'.$r_item['${e.name}']['title'].'"' : '';\n`,u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else p+=`$${e.name}_is_external = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['newTab']) ${S(e)} ? '_blank' : '';\n`,p+=`$${e.name}_url = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['url']) ${S(e)} ? $this->settings['${e.name}']['url'] : '';\n`,p+=`$${e.name}_nofollow = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['rel']) ${S(e)}? $this->settings['${e.name}']['rel'] : '';\n`,p+=`$${e.name}_arialabel = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['ariaLabel']) ${S(e)} ? 'ariaLabel="'.$this->settings['${e.name}']['ariaLabel'].'"' : '';\n`,p+=`$${e.name}_title = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['title']) ${S(e)} ? 'title="'.$this->settings['${e.name}']['title'].'"' : '';\n`;H=(H=(H=(H=H.replaceAll(`{{${e.name}-is_external}}`,`'.$${e.name}_is_external.'`)).replaceAll(`{{${e.name}-url}}`,`'.$${e.name}_url.'`)).replaceAll(`{{${e.name}-nofollow}}`,`'.$${e.name}_nofollow.'`)).replaceAll(`{{${e.name}-custom_atr}}=""`,`'.$${e.name}_arialabel.' '.$${e.name}_title.'`)}else if("media"==e.type){if(H.search(e.name)>=1){if(t){let a=`$${e.name} = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${S(e,t)} ? $r_item['${e.name}']['url'] : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else p+=`$${e.name} = isset($this->settings['${e.name}']) && !empty($this->settings['${e.name}']['url']) ${S(e)} ? $this->settings['${e.name}']['url'] : '';\n`;H=H.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){_.push({type:e.type,name:e.name,repeater:t,condition:S(e,t)});let l=V(e.name);l&&l.map(((t,l)=>{let n=t;u[e.name]="",e.fields.map((i=>{if(a+=Z(i,e.name),n){if(t.search(`data-${i.name}="{${i.name}}"`)>-1){let e=(s=n,(new DOMParser).parseFromString(s,"text/html").body);if(e.querySelector(`[data-${i.name}]`)&&e.querySelector(`[data-${i.name}]`).outerHTML){let t=e.querySelector(`[data-${i.name}]`).outerHTML;H=H.replaceAll(t,`'.$${i.name+l}.'`)}}else H="media"==i.type||"iconscontrol"==i.type?H.replaceAll(`{{${i.name}}}`,`' . $${i.name} . '`):"url"==i.type?(H=(H=H.replaceAll(`{{${i.name}-url}}`,`' . $${i.name}_url . '`)).replaceAll(`{{${i.name}-is_external}}`,`' . $${i.name}_is_external . '`)).replaceAll(`{{${i.name}-nofollow}}`,`' . $${i.name}_nofollow . '`):"svg"==i.type?H.replaceAll(`{{${i.name}}}`,`' . $${i.name} . '`):H.replaceAll(`{{${i.name}}}`,`' . $r_item['${i.name}'] . '`);H=(H=(H=(H=H.replaceAll("{loop-class-repeater}","bricks-repeater-item-' .esc_attr($r_item['id']) . ' repeater-item")).replaceAll(`{{${e.name}_index}}`,"'.$key.'")).replaceAll(`{{${e.name}_UID}}`,"'.esc_attr($r_item['id']).'")).replaceAll(`{{${e.name}-custom_atr}}=""`,`'.$${e.name}_arialabel.' '.$${e.name}_title.'`)}var s}))}))}else if("gallery"==e.type){_.push({type:e.type,name:e.name,repeater:t,condition:S(e,t)});let a=V(e.name);a&&a.map(((t,a)=>{t&&(H=H.replaceAll("{{"+e.name+"}}",`' . $${e.name} . '`))}))}else if("select2"==e.type){_.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:S(e,t)});let a=V(e.name);a&&a.map(((t,a)=>{t&&(H=e.multiple?H.replaceAll("{{"+e.name+"}}","' .$s_item. '"):H.replaceAll("{{"+e.name+"}}",`' .$settings['${e.name}']. '`))}))}else if("iconscontrol"==e.type){if(H.search(e.name)>=1){if(t){if(e.parent_class||null==e.parent_class)var l=`<span class="tp-title-icon"><i class="'.$r_item['${e.name}']['icon'].'"></i></span>`;else l=`<i class="'.$r_item['${e.name}']['icon'].'"></i>`;let a=`$${e.name} = isset( $r_item['${e.name}'] ) && !empty($r_item['${e.name}']['icon']) ${S(e,t)} ? '${l}' : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else l=e.parent_class||null==e.parent_class?`<span class="tp-title-icon"><i class="'.$this->settings['${e.name}']['icon'].'"></i></span>`:`<i class="'.$this->settings['${e.name}']['icon'].'"></i>`,p+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${S(e)} ? '${l}' : '';\n`;H=H.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("svg"==e.type)if(t){let a=`$${e.name} = isset( $r_item['${e.name}']['url'] ) ${S(e,t)} ? file_get_contents( esc_url( $r_item['${e.name}']['url'] ) ) : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else p+=`$${e.name} =\n isset( $this->settings['${e.name}']['url'] ) ${S(e)} ? file_get_contents( esc_url( $this->settings['${e.name}']['url'] ) ) : '';\n`,H=H.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if("headingtags"==e.type)_.push({type:e.type,name:e.name,repeater:t,condition:S(e,t)});else if("query"==e.type){if(t){let a=`$query_args = $this->settings['${e.name}'];\n $posts_query = new WP_Query( $query_args );\n\n if ( $posts_query->have_posts() ) :\n while ( $posts_query->have_posts() ) : $posts_query->the_post();\n the_title( '<h5>', '</h5>' );\n the_post_thumbnail( 'thumbnail' );\n endwhile;\n wp_reset_postdata();\n else : \n esc_html_e( 'No posts matched your criteria.', 'bricks' );\n endif;;\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else p+=`$query_args = $this->settings['${e.name}'];\n $posts_query = new WP_Query( $query_args );\n\n if ( $posts_query->have_posts() ) :\n while ( $posts_query->have_posts() ) : $posts_query->the_post();\n the_title( '<h5>', '</h5>' );\n the_post_thumbnail( 'thumbnail' );\n endwhile;\n wp_reset_postdata();\n else : \n esc_html_e( 'No posts matched your criteria.', 'bricks' );\n endif;\n`;H=H.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if(t){H=H.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']) ${S(e,t)} ? $r_item['${e.name}'] : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else p+=`$${e.name} =\n isset( $this->settings['${e.name}'] ) ${S(e)} ? $this->settings['${e.name}'] : '';\n`,H=H.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);return a};t.Editor_data?.links[0]?.js?.length>0&&t.Editor_data.links[0].js.map((function(e){e&&(C+=`wp_enqueue_script( 'my_child_script_${c()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${$()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(v+=`wp_enqueue_style( 'wd_css_ex_1_${c()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${$()}', 'all' );\n`)})),t.CardItems?.cardData?.[0].layout.map((e=>{e.inner_sec.map((e=>{k&&(k=k.replaceAll(`{{${e.name}}}`,e.name)),b+=Z(e)}))})),_.length>0&&_.map((e=>{D(e.name)})),t.CardItems?.cardData?.[0].layout.map((e=>{w+=`$this->control_groups['${e.section}'] =\n [\n 'title' => esc_html__( '${e.section}', '${g}' ),\n 'tab' => 'content',\n ];\n \n`,e.inner_sec.map((t=>{d+=He(t,"content",void 0,e)}))})),t.CardItems?.cardData?.[0].style.map((e=>{w+=`$this->control_groups['${e.section}'] =\n [\n 'title' => esc_html__( '${e.section}', '${g}' ),\n 'tab' => 'style',\n ];\n \n`,e.inner_sec.map((t=>{d+=He(t,"style",void 0,e)}))}));let R=y.includes("jQuery")?"array('jquery')":"[]";var B=`<?php \n\n /** \n * Exit if accessed directly.\n */\n if ( ! defined( 'ABSPATH' ) ) {\n exit; \n } \n \n if ( ! class_exists( '${M("file").replaceAll("-","_")}' ) ) {\n\n class ${M("file").replaceAll("-","_")} extends \\Bricks\\Element {\n \n // Element properties\n public $category = '${t?.WcardData?.widgetdata?.category}'; // Use predefined element category 'general'\n public $name = 'wb-${t?.WcardData?.widgetdata?.widget_id}'; // Make sure to prefix your elements\n public $icon = '${t?.WcardData?.widgetdata?.w_icon}'; // Themify icon font class\n public $css_selector = '.wkit-wb-Widget_${t?.WcardData?.widgetdata?.widget_id}'; // Default CSS selector\n public $scripts = array('${M("file")}.js'); // Script(s) run when element is rendered on frontend or updated in builder\n \n // Return localised bricks label.\n public function get_label() {\n return esc_html__( '${M()}', 'Bricks' );\n }\n \n // Set builder control groups.\n public function set_control_groups() {\n ${w}\n }\n \n // Set builder controls.\n public function set_controls() {\n ${d}\n }\n public function enqueue_scripts() {\n\n ${C}\n wp_enqueue_script( 'wkit_child_script_${E}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${M("folder")}/${M("file")}.js', ${R}, '${wdkitData.WDKIT_VERSION}.${$()}', true );\n \n ${v}\n wp_enqueue_style( 'wkit_child_script_${E}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${M("folder")}/${M("file")}.css', [], '${wdkitData.WDKIT_VERSION}.${$()}', false );\n }\n\n // Render element HTML\n public function render() {\n // Set element attributes\n $root_classes[] = 'wkit-wb-Widget_${t?.WcardData?.widgetdata?.widget_id}';\n \n if ( ! empty( $this->settings['type'] ) ) {\n $root_classes[] = "color-{$this->settings['type']}";\n }\n \n // Add 'class' attribute to element root tag\n $this->set_attribute( '_root', 'class', $root_classes );\n \n // Render element HTML\n ${k||` \n ${p}\n ${b}\n \n // '_root' attribute is required since Bricks 1.4 (contains element ID, class, etc.)\n $output = '';\n $output .= '<div ' . $this->render_attributes('_root') . ' class="wkit-wb-Widget_${t.WcardData?.widgetdata?.widget_id}" data-wdkitunique="${t.WcardData?.widgetdata?.widget_id}">';\n $output .= '${H}';\n $output .= '</div>';\n echo $output; `}\n }\n }\n }`,T=y.includes("jQuery")?`var $this = this;\n setTimeout(() => {\n let main_html = jQuery('.wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}');\n\n jQuery.each(main_html, function (idx, scope) {\n $this.main_function_${f}(jQuery(scope));\n });\n }, 800);`:`setTimeout(() => {\n let main_html = document.querySelectorAll(".wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}") \n main_html.forEach(element => {\n this.main_function_${f}([element])\n });\n }, 800);`,O='""'!=n?`class MyClass_${f} {\n constructor() {\n ${T}\n }\n\n main_function_${f}($scope) {\n ${JSON.parse(n)} \n }\n }\n\n new MyClass_${f}();`:"",j=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(l);if(!a)return"";if(1==t?.WcardData?.widgetdata?.css_parent_node){a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`);let t=a.split("}"),l="";return t.map((t=>{let a=t.trim();if(a.search("{")>-1)if(a.search("@import")>-1)l+=a+"}";else if("."===a.charAt(0)){a=a.replace(".",`.wkit-wb-Widget_${e} .`);let t=/,.*{/;a.search(/,\s*\./)>-1&&a.match(t)&&(a=a.replace(/,\s*\./g,`, .wkit-wb-Widget_${e} .`)),l+=a+"}"}else a.charAt(0).match("[a-zA-Z]+")&&!a.startsWith("body")?(a=a.replace(a.charAt(0),`.wkit-wb-Widget_${e} `+a.charAt(0)),l+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),l+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` { .wkit-wb-Widget_${e}`),l+=a+"}"):l+=a+"}";else a.search("{")<=-1&&(l+="}")})),l=l.slice(0,-1),l}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`;let A={widgetdata:Object.assign({},(()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(i){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];return a?L(a):t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];return a?L(a):t.WcardData}return t.WcardData}{let a=r.type;var e="";if(a.search("jpeg")>-1)e="jpg";else if(a.search("jpg")>-1)e="jpg";else{if(!(a.search("png")>-1))return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:"",img_ext:e})};e="png"}if(e)return L(e)}})().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION})};var P=`{\n "section_data":${JSON.stringify(t.CardItems.cardData)},\n "widget_data":${JSON.stringify(A)},\n "Editor_Link":${JSON.stringify(t.Editor_data)},\n "Editor_data":{\n "html":${a},\n "css":${l},\n "js":${n}\n }\n }`;if(null==i)var W="";else W=i;var I={old_folder:W,file_name:M("file"),folder_name:M("folder"),description:t.WcardData.widgetdata.description,bricks_php_file:B,bricks_js:O,bricks_css:j,json_file:P,plugin:"bricks",d_image:o||"",call:e},F=new FormData;F.append("action","get_wdesignkit"),F.append("kit_nonce",wdkitData.kit_nonce),F.append("image",r),F.append("type","wkit_create_widget"),F.append("value",JSON.stringify(I)),await s().post(ajaxurl,F,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),h.api=e.data)})).catch((e=>console.error(e)));var q=t.WcardData.widgetdata.w_image,U=t.WcardData.widgetdata.img_ext;let K=Pe();if(K&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/bricks/${M("folder")}/${M("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(q=t?.widget_data?.widgetdata?.w_image,U=t?.widget_data?.widgetdata?.img_ext)})();let e={token:K.token,type:"add",title:M(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:P,w_uniq:t.WcardData.widgetdata.widget_id,w_image:q,w_imgext:U,w_version:t.WcardData.widgetdata.widget_version,w_updates:t.WcardData.widgetdata.version_detail,r_id:t?.WcardData?.widgetdata?.r_id?t?.WcardData?.widgetdata?.r_id:0},a={type:"wkit_add_widget",widget_info:JSON.stringify(e)};await je(a).then((e=>{e?.success||e?.message&&e?.message,h.ajax={data:e}}))}return h},{__}=wp.i18n,{Fragment:Se}=wp.element;var Ze=wdkitData.WDKIT_URL;const Re=e=>{let t=Number(e),a=[];for(let e=0;e<t;e++)a.push(e);return a},Be=e=>{var t=e.replace(/\s+/g,"-");return(t=t.replace(/[^\w-]+/g,"")).toLowerCase()},Te=e=>{if(e){let t=e.split(" ");return t.length>1?t[0].charAt(0)+t[1].charAt(0):t[0].charAt(0)+t[0].charAt(1)}},Oe=async e=>!!e&&await s().post(ajaxurl,e,{headers:{"content-type":"application/json"}}).then((e=>e.data)).catch((e=>e)),je=async e=>{let t=new FormData;return t&&e&&(t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),e.w_image&&t.append("w_image",e.w_image),Object.entries(e).map((([e,a])=>t.append(e,a)))),Oe(t)},Ae=async()=>{let e=Pe(),t="wdkit"==window.wdkit_editor?"":window.wdkit_editor,a="";e&&e.user_email&&(a=e.user_email);let l={type:"get_user_info",email:a,builder:t,site_url:window.location.origin+window.location.pathname},n=await je(l);return n?.data?.success||We(),window.userData=n,n},Pe=()=>JSON.parse(localStorage.getItem("wdkit-login")),We=async e=>{let t=Pe();if(t&&t.user_email){let e={type:"wkit_logout",email:t.user_email,logout_type:t.login_type};await je(e),window.userData="",localStorage.removeItem("wdkit-login")}window.location.hash="/login"},Ie=(e,t="",a="all")=>{var l=[];return e&&e.workspace&&Object.entries(e.workspace).map((([e,t])=>{"admin"!==t.roles&&"editor"!==t.roles||("all"==a?l[e]={w_id:t.w_id,title:t.work_title}:"copy"!=a&&"t-copy"!=a&&"move"!=a||(l[e]={w_id:t.w_id,title:t.work_title}))})),l},Fe=()=>(0,e.createElement)("div",{className:"wkit-content-loader"},(0,e.createElement)("div",{className:"wb-contentLoader-circle"})),qe=({props:t,children:a})=>(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show",onClick:e=>{Object.values(e.target.classList).includes("wkit-model-transp")&&a.props.popCloseHandler(!1)}},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{a.props.popCloseHandler(!1)}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),a)),Ue=t=>(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{t.setdeleteWsID(-1)}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"popup-missing"},(0,e.createElement)("div",{className:"popup-header"},__("Please Confirm")),(0,e.createElement)("div",{className:"popup-body"},(0,e.createElement)("div",{className:"wkit-popup-content-title"},__("Are you sure want to permanently delete")),(0,e.createElement)("div",{className:"wkit-popup-buttons"},(0,e.createElement)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>{t.setdeleteWsID(-1)}},__("No")),(0,e.createElement)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>t.removeFunction()},t.isLoading?(0,e.createElement)(Fe,null):(0,e.createElement)("span",null,__("Yes")))))))),Ke=t=>{var a=wdkitData.WDKIT_URL;let n=J();const[i,s]=(0,l.useState)(!1),[r,o]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[m,p]=(0,l.useState)(!1),[u,w]=(0,l.useState)(-1),[g,C]=(0,l.useState)("");let v=n.pathname.split("/"),b=t.data,h="",_="";t.builder&&b.post_builder&&Object.entries(t.builder).forEach((([e,t])=>{t.p_id==Number(b.post_builder)&&(h=t.plugin_icon,_=t.plugin_name)})),(0,l.useEffect)((()=>{t.favorite&&t.favorite.includes(Number(b.id))&&s(!0)}),[b.id]);const k=async e=>{o(!0);let a=t;if(!e)return{error:!1,data:__("Not found")};{let n=Pe();var l="";n&&n.user_email&&(l=n.user_email);let r={type:"manage_favorite",email:l,template_id:e},c=await je(r);if("success"==c?.data){t.wdkit_set_toast(c?.message,c?.description,"","success");let l=-1;(l=t.favorite.indexOf(e))&&(l>-1?t.favorite.splice(l,1):t.favorite.push(e)),s(!i),o(!1),a.handler(t.favorite)}}},E=Y(),f=()=>{let e=b;if("pagetemplate"==e.type){let a=t?.checklist?.pages?.findIndex((t=>t.id==e.id));return a>-1}if("section"==e.type){let a=t?.checklist?.sections?.findIndex((t=>t.id==e.id));return a>-1}},y=e=>"pagetemplate"==e.type?"page":"websitekit"==e.type?"kit":e.type,N=e=>e?e.replace(/\s/g,"%20"):"",[$,L]=(0,l.useState)(!1);return document.addEventListener("click",(e=>{var t=e.target.closest(".w-designkit-hover-select"),a=document.querySelectorAll(".wkit-dropdown-content");null==t&&a.length>0&&a.forEach(((e,t)=>{1!=$&&L(!1)}))})),(0,e.createElement)("div",{className:"wdesign-template-boxed"},"active"!=b.is_activated&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate"},(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-h1"},__("Credit Limit Reached!")),(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-p"},__("This Template got disabled until you have more credits to make it active.")),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",null,__("Buy Credits")))),(!t.filter||t.filter&&"browse"!=t.filter)&&!(window.location.hash.search("#/share_with_me")>-1)&&!(window.location.hash.search("/kit/")>-1)&&(0,e.createElement)("span",{className:"wdkit-inner-boxed-remove"},(0,e.createElement)("svg",{onClick:()=>{w(b.id),C("delete")},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66634 1.83203C5.44533 1.83203 5.23337 1.91983 5.07709 2.07611C4.9208 2.23239 4.83301 2.44435 4.83301 2.66536V3.4987H9.16634V2.66536C9.16634 2.44435 9.07854 2.23239 8.92226 2.07611C8.76598 1.91983 8.55402 1.83203 8.33301 1.83203H5.66634ZM10.1663 3.4987V2.66536C10.1663 2.17913 9.97319 1.71282 9.62937 1.369C9.28555 1.02519 8.81924 0.832031 8.33301 0.832031H5.66634C5.18011 0.832031 4.7138 1.02519 4.36998 1.369C4.02616 1.71282 3.83301 2.17913 3.83301 2.66536V3.4987H2.33301C2.32078 3.4987 2.30865 3.49914 2.29664 3.5H1C0.723858 3.5 0.5 3.72386 0.5 4C0.5 4.27614 0.723858 4.5 1 4.5H1.83301V13.332C1.83301 13.8183 2.02616 14.2846 2.36998 14.6284C2.7138 14.9722 3.18011 15.1654 3.66634 15.1654H10.333C10.8192 15.1654 11.2856 14.9722 11.6294 14.6284C11.9732 14.2846 12.1663 13.8183 12.1663 13.332V4.5H13C13.2761 4.5 13.5 4.27614 13.5 4C13.5 3.72386 13.2761 3.5 13 3.5H11.7027C11.6907 3.49914 11.6786 3.4987 11.6663 3.4987H10.1663ZM2.83301 13.332V4.5H11.1663V13.332C11.1663 13.553 11.0785 13.765 10.9223 13.9213C10.766 14.0776 10.554 14.1654 10.333 14.1654H3.66634C3.44533 14.1654 3.23337 14.0776 3.07709 13.9213C2.9208 13.765 2.83301 13.553 2.83301 13.332ZM7.5 7.33203C7.5 7.05589 7.27614 6.83203 7 6.83203C6.72386 6.83203 6.5 7.05589 6.5 7.33203V11.332C6.5 11.6082 6.72386 11.832 7 11.832C7.27614 11.832 7.5 11.6082 7.5 11.332V7.33203Z",fill:"#1E1E1E"})))),(0,e.createElement)("div",{className:"wdkit-inner-boxed"},(0,e.createElement)("div",{className:"top-part"},(0,e.createElement)("div",{className:"kit-list-pin-icons"},"/my_uploaded"==n?.pathname&&(0,e.createElement)("div",{className:"kit-pin-icon pin-section-pages",onClick:e=>{k(b.id)}},i?r?(0,e.createElement)("svg",{width:"18",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,e.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"white",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))):(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/wb-svg/fav-icon-selected.svg",alt:"page"}):r?(0,e.createElement)("svg",{width:"18",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,e.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"white",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))):(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/unfavourite.svg",alt:"section"}),(0,e.createElement)("span",{className:"kit-hint-tooltip"},__(i?"UnFavourite":"Favourite"))),(0,e.createElement)("div",{className:"kit-pin-icon pin-section-pages"},"section"==t.data.type?(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/sections.svg",alt:"section"}):"pagetemplate"==t.data.type?(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/pages.svg",alt:"page"}):(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/websitekit.svg",alt:"kit"}),(0,e.createElement)("span",{className:"kit-hint-tooltip"},"section"==t.data.type?__("Section"):"pagetemplate"==t.data.type?__("Page"):__("Website Kit"))),b.post_status&&!t.filter&&(0,e.createElement)("div",{className:"kit-pin-icon pin-public-private"},"publish"==b.post_status?(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/public.svg",alt:"public"}):(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"assets/images/svg/private.svg",alt:"private"}),(0,e.createElement)("span",{className:"kit-hint-tooltip"},"publish"==b.post_status?__("Public"):__("Private")))),"pro"==t.data.free_pro&&(0,e.createElement)("div",{className:"wdkit-card-tag"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.75 16.5H5.25C4.9425 16.5 4.6875 16.245 4.6875 15.9375C4.6875 15.63 4.9425 15.375 5.25 15.375H12.75C13.0575 15.375 13.3125 15.63 13.3125 15.9375C13.3125 16.245 13.0575 16.5 12.75 16.5Z",fill:"white"}),(0,e.createElement)("path",{d:"M15.2622 4.14003L12.2622 6.28503C11.8647 6.57003 11.2947 6.39753 11.1222 5.94003L9.70468 2.16003C9.46468 1.50753 8.54218 1.50753 8.30218 2.16003L6.87718 5.93253C6.70468 6.39753 6.14218 6.57003 5.74468 6.27753L2.74468 4.13253C2.14468 3.71253 1.34968 4.30503 1.59718 5.00253L4.71718 13.74C4.82218 14.04 5.10718 14.235 5.42218 14.235H12.5697C12.8847 14.235 13.1697 14.0325 13.2747 13.74L16.3947 5.00253C16.6497 4.30503 15.8547 3.71253 15.2622 4.14003ZM10.8747 11.0625H7.12468C6.81718 11.0625 6.56218 10.8075 6.56218 10.5C6.56218 10.1925 6.81718 9.93753 7.12468 9.93753H10.8747C11.1822 9.93753 11.4372 10.1925 11.4372 10.5C11.4372 10.8075 11.1822 11.0625 10.8747 11.0625Z",fill:"white"})),(0,e.createElement)("span",null,__("Pro"))),(0,e.createElement)("div",{className:"wdkit-temp-feature-img "+(E.kit_id?"wkit-webkit-hover":"")},(0,e.createElement)("label",{htmlFor:"template_"+b.id,style:{cursor:"websitekit-view"==t.type||"websitekit"==t.type?"pointer":"default"},onClick:e=>{if("websitekit-view"==t.type){let t=e.target.closest(".wdkit-inner-boxed");t&&t.querySelector(".wdkit-download-temp").click()}}},(x="",v.includes("my_uploaded")?x=`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`:v.includes("browse")&&(x=`${wdkitData.wdkit_server_url}${y(t.data)}/${Be(t.data.title)}/${t.data.id}`),"websitekit"!==t.type&&"websitekit-view"!==t.type&&(v.includes("my_uploaded")||v.includes("browse"))?(0,e.createElement)("a",{href:x,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server"},(0,e.createElement)("picture",null,t.data&&t.data.responsive_image&&t.data.responsive_image.map(((t,a)=>(0,e.createElement)(Se,{key:a},(0,e.createElement)("source",{media:`(min-width: ${t.size}px)`,srcSet:N(t.url)})))),(0,e.createElement)("img",{src:b.post_image&&b.post_image.indexOf("wdesignkit")>-1?b.post_image:a+"assets/images/placeholder.jpg",alt:"featured-img",draggable:!1}))):(0,e.createElement)("picture",null,t.data&&t.data.responsive_image&&t.data.responsive_image.map(((t,a)=>(0,e.createElement)(Se,{key:a},(0,e.createElement)("source",{media:`(min-width: ${t.size}px)`,srcSet:N(t.url)})))),(0,e.createElement)("img",{src:b.post_image&&b.post_image.indexOf("wdesignkit")>-1?b.post_image:a+"assets/images/placeholder.jpg",alt:"featured-img",draggable:!1}))),(0,e.createElement)("input",{type:"checkbox",id:"template_"+b.id,name:"selectTemplate",value:b.id,checked:f(),onChange:e=>{(e=>{if(t.handlerMultiSelect){const{value:a,checked:l}=e.target;l?t.handlerMultiSelect(t.data,"add"):t.handlerMultiSelect(t.data,"remove")}})(e)},style:{display:"none"}}),f()&&(0,e.createElement)("div",{className:"wkit-check-mark"},(0,e.createElement)("div",{className:"wkit-checkmark-icon"}))))),(0,e.createElement)("div",{className:"boxed-bottom"},(0,e.createElement)("div",{className:"template-wrap-title"},t.data.title&&(0,e.createElement)(Se,null,v.includes("browse")&&(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}${y(t.data)}/${Be(t.data.title)}/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server"},(0,e.createElement)("div",{className:"temp-title"},t.data.title)),v.includes("my_uploaded")&&(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server"},(0,e.createElement)("div",{className:"temp-title"},t.data.title)),!v.includes("my_uploaded")&&!v.includes("browse")&&(0,e.createElement)("div",{className:"temp-title"},t.data.title)),(0,e.createElement)("div",{className:"wkit-download-eye-wrapperd"},t&&"websitekit-view"==t.type&&(0,e.createElement)(he,{to:`/${n.pathname.split("/")[1]}/kit/${b.id}?page=${t.currentPage}${t.wsID?`&wsID=${t.wsID}`:""}`,className:"wdkit-download-temp"},(0,e.createElement)("img",{className:"wkit-download-template",src:a+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:!1})),t&&"websitekit"!==t.type&&"websitekit-view"!==t.type&&(0,e.createElement)("div",{onClick:()=>{(e=>{if("active"==b.is_activated){var a=!1;if("pro"==t.data.free_pro&&"1"==t?.credits?.pro_template_limit?.meta_value){let e=_.toLowerCase();"elementor"===e?"1"==t?.credits?.access_elementor?.meta_value&&(a=!0):"gutenberg"===e?"1"==t?.credits?.access_gutenburg?.meta_value&&(a=!0):"bricks"===e&&"1"==t?.credits?.access_bricks?.meta_value&&(a=!0)}if("pro"==t.data.free_pro&&!a)return t.wdkit_set_toast("pro Account require","","","danger"),!1;t.handlerTempID(e)}else t.wdkit_set_toast("Template Deactivate","This Template is Deactivated","","danger")})(b.id)},className:"wdkit-download-temp"},(0,e.createElement)("img",{className:"wkit-download-template",src:a+"assets/images/svg/popup-download.svg",alt:"download-svg",draggable:!1})),(!t.filter||t.filter&&"browse"!=t.filter)&&!(window.location.hash.search("#/share_with_me")>-1)&&!(window.location.hash.search("#/browse/kit")>-1)&&"subscriber"!=t?.role&&(0,e.createElement)("div",{className:"w-designkit-hover-select","data-id":t.data.id},(0,e.createElement)("img",{className:"wkit-select-img",onClick:e=>{L(!$)},src:a+"assets/images/wb-svg/3-dot.svg",alt:"extra-opt-img",draggable:!1}),(0,e.createElement)("div",{style:{display:0==$?"none":"block"},className:"wkit-dropdown-content"},(0,e.createElement)("div",{className:"wkit-select-menu-wrapper"},"/my_uploaded"==n?.pathname&&(0,e.createElement)(Se,null,i?(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>k(b.id)},r?(0,e.createElement)("svg",{width:"20",xmlns:"http://www.w3.org/2000/svg",style:{background:"0 0",display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,e.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#000",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.6306 3.4574C15.2475 3.07416 14.7927 2.77014 14.2921 2.56272C13.7915 2.3553 13.2549 2.24854 12.7131 2.24854C12.1712 2.24854 11.6347 2.3553 11.1341 2.56272C10.6335 2.77014 10.1786 3.07416 9.79558 3.4574L9.00058 4.2524L8.20558 3.4574C7.43181 2.68364 6.38235 2.24894 5.28808 2.24894C4.1938 2.24894 3.14435 2.68364 2.37058 3.4574C1.59681 4.23117 1.16211 5.28063 1.16211 6.3749C1.16211 7.46918 1.59681 8.51864 2.37058 9.2924L3.16558 10.0874L9.00058 15.9224L14.8356 10.0874L15.6306 9.2924C16.0138 8.90934 16.3178 8.45451 16.5253 7.95392C16.7327 7.45333 16.8394 6.91677 16.8394 6.3749C16.8394 5.83304 16.7327 5.29648 16.5253 4.79589C16.3178 4.29529 16.0138 3.84047 15.6306 3.4574Z",fill:"#737373"})),__("Remove Favorite")):(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>k(b.id)},r?(0,e.createElement)("svg",{width:"20",xmlns:"http://www.w3.org/2000/svg",style:{background:"0 0",display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,e.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#000",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))):(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.6306 3.4574C15.2475 3.07416 14.7927 2.77014 14.2921 2.56272C13.7915 2.3553 13.2549 2.24854 12.7131 2.24854C12.1712 2.24854 11.6347 2.3553 11.1341 2.56272C10.6335 2.77014 10.1786 3.07416 9.79558 3.4574L9.00058 4.2524L8.20558 3.4574C7.43181 2.68364 6.38235 2.24894 5.28808 2.24894C4.1938 2.24894 3.14435 2.68364 2.37058 3.4574C1.59681 4.23117 1.16211 5.28063 1.16211 6.3749C1.16211 7.46918 1.59681 8.51864 2.37058 9.2924L3.16558 10.0874L9.00058 15.9224L14.8356 10.0874L15.6306 9.2924C16.0138 8.90934 16.3178 8.45451 16.5253 7.95392C16.7327 7.45333 16.8394 6.91677 16.8394 6.3749C16.8394 5.83304 16.7327 5.29648 16.5253 4.79589C16.3178 4.29529 16.0138 3.84047 15.6306 3.4574Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),__("Add Favorite"))),(!t.wsRoles||"subscriber"!=t.wsRoles)&&(0,e.createElement)(Se,null,t?.data?.user_id==t?.userinfo?.id&&(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",{className:"wkit-design-item"},(0,e.createElement)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.9531 2.66989C12.1378 2.48521 12.357 2.33873 12.5983 2.23878C12.8396 2.13884 13.0983 2.0874 13.3594 2.0874C13.6205 2.0874 13.8791 2.13884 14.1204 2.23878C14.3618 2.33873 14.5809 2.48521 14.7656 2.66989C14.9503 2.85456 15.0968 3.0738 15.1967 3.31508C15.2966 3.55637 15.3482 3.81497 15.3482 4.07614C15.3482 4.3373 15.2966 4.59592 15.1967 4.83719C15.0968 5.07848 14.9503 5.29771 14.7656 5.48239L5.27344 14.9745L1.40625 16.0292L2.46094 12.162L11.9531 2.66989Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),__("Edit"))),(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>{d(b.id),t.wsRoles?p("copy"):p("t-copy")}},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_6220_28330)"},(0,e.createElement)("path",{d:"M15 6.75H8.25C7.42157 6.75 6.75 7.42157 6.75 8.25V15C6.75 15.8284 7.42157 16.5 8.25 16.5H15C15.8284 16.5 16.5 15.8284 16.5 15V8.25C16.5 7.42157 15.8284 6.75 15 6.75Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.75 11.25H3C2.60218 11.25 2.22064 11.092 1.93934 10.8107C1.65804 10.5294 1.5 10.1478 1.5 9.75V3C1.5 2.60218 1.65804 2.22064 1.93934 1.93934C2.22064 1.65804 2.60218 1.5 3 1.5H9.75C10.1478 1.5 10.5294 1.65804 10.8107 1.93934C11.092 2.22064 11.25 2.60218 11.25 3V3.75",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_6220_28330"},(0,e.createElement)("rect",{width:"18",height:"18",fill:"white"})))),__("Copy to Workspace")),!(window.location.hash.search("/kit/")>-1)&&!(window.location.hash.search("#/manage_workspace")>-1)&&(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>{w(b.id),C("delete")}},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3.75 5.50006H4.91667M4.91667 5.50006H14.25M4.91667 5.50006L4.91638 13.666C4.91638 13.9754 5.0393 14.2722 5.25809 14.491C5.47688 14.7098 5.77363 14.8327 6.08305 14.8327H11.9164C12.2258 14.8327 12.5225 14.7098 12.7413 14.491C12.9601 14.2722 13.083 13.9754 13.083 13.666V5.49935M6.66638 5.49935V4.33268C6.66638 4.02326 6.7893 3.72652 7.00809 3.50772C7.22688 3.28893 7.52363 3.16602 7.83305 3.16602H10.1664C10.4758 3.16602 10.7725 3.28893 10.9913 3.50772C11.2101 3.72652 11.333 4.02326 11.333 4.33268V5.49935",stroke:"#737373",strokeWidth:"1.3125",strokeLinecap:"round",strokeLinejoin:"round"})),__("Delete")),("admin"==t.wsRoles||"editor"==t.wsRoles)&&(0,e.createElement)(Se,null,(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>{d(b.id),t.wsRoles&&p("move")}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.625 6.75L2.375 9M2.375 9L4.625 11.25M2.375 9H17.3746M7.62482 3.75L9.87482 1.5M9.87482 1.5L12.1248 3.75M9.87482 1.5V16.5M12.1248 14.25L9.87482 16.5M9.87482 16.5L7.62482 14.25M15.1246 6.75L17.3746 9M17.3746 9L15.1246 11.25",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),__("Move to Workspace")),(0,e.createElement)("button",{className:"wkit-design-item",onClick:()=>{w(b.id),C("remove")}},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3.75 5.50006H4.91667M4.91667 5.50006H14.25M4.91667 5.50006L4.91638 13.666C4.91638 13.9754 5.0393 14.2722 5.25809 14.491C5.47688 14.7098 5.77363 14.8327 6.08305 14.8327H11.9164C12.2258 14.8327 12.5225 14.7098 12.7413 14.491C12.9601 14.2722 13.083 13.9754 13.083 13.666V5.49935M6.66638 5.49935V4.33268C6.66638 4.02326 6.7893 3.72652 7.00809 3.50772C7.22688 3.28893 7.52363 3.16602 7.83305 3.16602H10.1664C10.4758 3.16602 10.7725 3.28893 10.9913 3.50772C11.2101 3.72652 11.333 4.02326 11.333 4.33268V5.49935",stroke:"#737373",strokeWidth:"1.3125",strokeLinecap:"round",strokeLinejoin:"round"})),__("Remove"))))))),u>-1&&(0,e.createElement)(Ue,{deletetype:g,removeFunction:()=>{"delete"==g?(async()=>{let e=Pe(),a="";if(e&&e.user_email&&(a=e.user_email),u>-1){t.setLoading&&t.setLoading(!0);let e={type:"template_remove",email:a,template_id:u},l=await je(e);if(l?.success){let e=await Ae();t.wdkit_set_toast(l?.message,l?.description,"","success"),t.UpdateUserData(e)}}w(-1)})():(async()=>{if(t.setLoading&&t.setLoading(!0),u&&E&&E.id){let e={wid:E.id,template_id:u,wstype:"temp_remove",moveId:E.id},a=await Je(e);a?.data?.success&&t.wdkit_set_toast(a?.data?.message,a?.data?.description,"","success");let l=await Ae();t.UpdateUserData(l)}t.setLoading&&t.setLoading(!1)})()},setdeleteWsID:e=>{w(e)}}))),(0,e.createElement)(it,{avg_rating:t.data?.avg_rating,total_rating:t.data?.total_rating}),(0,e.createElement)("div",{className:"btn-reviews"},(0,e.createElement)("div",{className:"btn-img"},(0,e.createElement)("a",null,(0,e.createElement)("img",{src:a+"assets/images/svg/eye.svg",alt:__("post views")}),t.data.post_views),(0,e.createElement)("hr",{className:"wkit-icon-divider-hr"}),(0,e.createElement)("a",null,(0,e.createElement)("img",{src:a+"assets/images/svg/download-template.svg",alt:__("post download")}),t.data.post_download)),(0,e.createElement)("div",{className:"kit-pin-icon"},t.data.post_builder&&h&&(0,e.createElement)("div",{className:"elementor-right-part kit-pin-icon"},(0,e.createElement)("img",{src:h,alt:__("builder icon"),draggable:!1})),(0,e.createElement)("span",{className:"kit-hint-tooltip"},__(_||"")))))),c&&(0,e.createElement)(qe,{popupclose:()=>{t.handlerAfterSuccessImported()},popCloseHandler:e=>{d(!1)}},(0,e.createElement)(nt,{UpdateUserData:e=>t.UpdateUserData(e),setloading:e=>t.setloading(e),userData:t?.userData,temp_id:c,action:m,popCloseHandler:e=>d(!1),wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast(e,a,l,n)}})));var x},Je=async e=>{let t=Pe(),a="";t&&t.user_email&&(a=t.user_email);let l={type:"manage_workspace",email:a};l=Object.assign({},l,e);var n=await je(l);return n&&n.data&&n.data.success?(e&&("t-copy"==e.wstype||"copy"==e.wstype||"move"==e.wstype||"temp_remove"==e.wstype)&&window.userData&&window.userData.data&&Object.values(window.userData.data.workspace).map(((t,a)=>{if(Number(e.wid)!=t.w_id||"t-copy"!=e.wstype&&"copy"!=e.wstype&&"move"!=e.wstype||window.userData.data.workspace[a].work_templates.push(e.template_id),("move"==e.wstype||"temp_remove"==e.wstype)&&e.moveId&&Number(e.moveId)==t.w_id){var l=window.userData.data.workspace[a].work_templates.indexOf(e.template_id);-1!==l&&window.userData.data.workspace[a].work_templates.splice(l,1)}})),n):n},ze=()=>(0,e.createElement)("div",{className:"wkit-maintenance-mode-content"},(0,e.createElement)("div",{className:"wkit-maintenance-mode-text"},(0,e.createElement)("span",{className:"wkit-maintenance-mode-header"},"Website Upgrade in Progress."),(0,e.createElement)("span",{className:"wkit-maintenance-mode-description"},"Our website is undergoing a transformation to serve you better.")),(0,e.createElement)("img",{className:"wkit-maintenance-mode-image",src:Ze+"assets/images/jpg/maintenance_mode.png"})),Ge=()=>(0,e.createElement)("div",{className:"wkit-deactivate-account-content"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,e.createElement)("path",{d:"M17.9255 8.29136L6.28109 28.4585C6.07076 28.8227 5.96 29.2359 5.95996 29.6564C5.95992 30.077 6.0706 30.4902 6.28087 30.8544C6.49114 31.2186 6.7936 31.5211 7.15782 31.7314C7.52205 31.9416 7.93521 32.0523 8.35578 32.0523H31.6427C32.0632 32.0523 32.4764 31.9416 32.8406 31.7314C33.2048 31.5211 33.5073 31.2186 33.7176 30.8544C33.9278 30.4902 34.0385 30.077 34.0385 29.6564C34.0384 29.2359 33.9277 28.8227 33.7173 28.4585L22.0742 8.29136C21.864 7.92724 21.5616 7.62487 21.1975 7.41465C20.8334 7.20442 20.4203 7.09375 19.9998 7.09375C19.5794 7.09375 19.1663 7.20442 18.8022 7.41465C18.4381 7.62487 18.1357 7.92724 17.9255 8.29136Z",fill:"#FFCD38"}),(0,e.createElement)("path",{d:"M20.152 14.5078H19.8482C19.1004 14.5078 18.4941 15.114 18.4941 15.8619V22.3341C18.4941 23.0819 19.1004 23.6881 19.8482 23.6881H20.152C20.8998 23.6881 21.506 23.0819 21.506 22.3341V15.8619C21.506 15.114 20.8998 14.5078 20.152 14.5078Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M20.0001 28.8244C20.8318 28.8244 21.506 28.1501 21.506 27.3184C21.506 26.4867 20.8318 25.8125 20.0001 25.8125C19.1684 25.8125 18.4941 26.4867 18.4941 27.3184C18.4941 28.1501 19.1684 28.8244 20.0001 28.8244Z",fill:"#FFF7ED"})),(0,e.createElement)("span",null,"You can't access Pro feature, limit reached with two active sites. To unlock, deactivate one site or upgrade plan for more")),Ye=t=>{const[a,n]=(0,l.useState)(!1),i=G();let s=Pe(),r=J(),o=r.pathname.split("/");return(0,e.createElement)(Se,null,!o.includes("login")&&!o.includes("login-api")&&!o.includes("builder")&&(0,e.createElement)("div",{className:"wkit-user-details-wrapper"},(0,e.createElement)("div",{className:"wkit-filter-update-btn"},(o.includes("browse")||o.includes("widget-browse"))&&(0,e.createElement)("div",{className:"wkit-filter-humber-menu"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.75 4.2308H12.169C12.5131 5.79731 13.9121 6.97336 15.5805 6.97336C17.2488 6.97336 18.6478 5.79736 18.9919 4.2308H23.25C23.6642 4.2308 24 3.89498 24 3.4808C24 3.06661 23.6642 2.7308 23.25 2.7308H18.9915C18.6467 1.16508 17.2459 -0.0117188 15.5805 -0.0117188C13.9141 -0.0117188 12.5139 1.16489 12.1693 2.7308H0.75C0.335812 2.7308 0 3.06661 0 3.4808C0 3.89498 0.335812 4.2308 0.75 4.2308ZM13.588 3.48277C13.588 3.48009 13.588 3.47738 13.588 3.4747C13.5913 2.37937 14.4851 1.48833 15.5805 1.48833C16.6743 1.48833 17.5681 2.37816 17.5728 3.47297L17.573 3.48398C17.5712 4.58119 16.6781 5.47341 15.5805 5.47341C14.4833 5.47341 13.5904 4.58208 13.5879 3.48553L13.588 3.48277ZM23.25 19.769H18.9915C18.6467 18.2033 17.2459 17.0265 15.5805 17.0265C13.9141 17.0265 12.5139 18.2031 12.1693 19.769H0.75C0.335812 19.769 0 20.1047 0 20.519C0 20.9332 0.335812 21.269 0.75 21.269H12.169C12.5131 22.8355 13.9121 24.0115 15.5805 24.0115C17.2488 24.0115 18.6478 22.8355 18.9919 21.269H23.25C23.6642 21.269 24 20.9332 24 20.519C24 20.1047 23.6642 19.769 23.25 19.769ZM15.5805 22.5115C14.4833 22.5115 13.5904 21.6202 13.5879 20.5237L13.588 20.5209C13.588 20.5182 13.588 20.5155 13.588 20.5129C13.5913 19.4175 14.4851 18.5265 15.5805 18.5265C16.6743 18.5265 17.5681 19.4163 17.5728 20.511L17.573 20.5221C17.5714 21.6194 16.6782 22.5115 15.5805 22.5115ZM23.25 11.2499H11.831C11.4869 9.68339 10.0879 8.50739 8.41955 8.50739C6.75117 8.50739 5.35223 9.68339 5.00808 11.2499H0.75C0.335812 11.2499 0 11.5857 0 11.9999C0 12.4141 0.335812 12.7499 0.75 12.7499H5.00845C5.35331 14.3156 6.75413 15.4924 8.41955 15.4924C10.0859 15.4924 11.4861 14.3158 11.8307 12.7499H23.25C23.6642 12.7499 24 12.4141 24 11.9999C24 11.5857 23.6642 11.2499 23.25 11.2499ZM10.412 11.9979C10.412 12.0007 10.412 12.0033 10.412 12.006C10.4087 13.1013 9.51492 13.9924 8.41955 13.9924C7.32572 13.9924 6.43191 13.1025 6.42717 12.0078L6.42703 11.9968C6.42867 10.8995 7.32188 10.0074 8.41955 10.0074C9.5167 10.0074 10.4096 10.8987 10.4121 11.9953L10.412 11.9979Z",fill:"black"}))),t?.wdkit_meta?.Setting?.plugin_version?.success&&(0,e.createElement)(Se,null,a?(0,e.createElement)("a",{className:"wkit-update-latest-btn wkit-pink-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))):(0,e.createElement)("a",{className:"wkit-update-latest-btn wkit-pink-btn-class",onClick:()=>{(async()=>{n(!0),await je({type:"update_latest_plugin"}).then((async e=>{if(e.success){let a=await Ae();t.wdkit_set_meta(a.data),t.wdkit_set_toast([e?.message,e?.description,"","success"])}else t.wdkit_set_toast([e?.message,e?.description,"","danger"]);n(!1)}))})()}},__("Update "+t?.wdkit_meta?.Setting?.plugin_version?.version)))),(0,e.createElement)("div",{className:"wkit-user-info"},(0,e.createElement)("div",{className:"wkit-info-data"},t?.wdkit_meta?.userinfo?(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-user-title"},t?.wdkit_meta?.userinfo?.full_name),(0,e.createElement)("div",{className:"wkit-desg"},t?.wdkit_meta?.userinfo?.user_email)):s?(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-user-title-loading-wrap"},(0,e.createElement)("div",{className:"wkit-user-title-part"},(0,e.createElement)("div",{className:"wkit-user-title-loading"}),(0,e.createElement)("div",{className:"wkit-desg-loading"})),(0,e.createElement)("div",{className:"wkit-ex-profile-img"}))):(0,e.createElement)("div",{className:"wdkit-login-signUp-btn",onClick:()=>{t.wdkit_Login_Route(r.pathname)}},(0,e.createElement)(he,{to:"/login"},(0,e.createElement)("button",null," ",__("Login / SignUp")," ")))),s&&(0,e.createElement)("div",{className:"wkit-img wkit-user-profile",onClick:()=>(()=>{let e=document.querySelector(".wkit-user-profile");if(e){let t=e.classList;Object.values(t).includes("wdkit-show")?e.classList.remove("wdkit-show"):e.classList.add("wdkit-show")}})()},t?.wdkit_meta?.userinfo&&(0,e.createElement)(Se,null,t?.wdkit_meta?.userinfo?.user_profile?(0,e.createElement)("img",{src:t.wdkit_meta.userinfo.user_profile,alt:"user-profile",style:{objectFit:"cover"}}):(0,e.createElement)("div",{className:"wkit-ex-profile-img"},Te(t?.wdkit_meta?.userinfo?.full_name))),t?.wdkit_meta?.userinfo&&(0,e.createElement)("ul",{className:"wkit-user-profile-menu"},(0,e.createElement)("div",{className:"wkit-drop-down-outer",style:{zIndex:"99"}}),(0,e.createElement)("div",{className:"wkit-profile-dropDown"},(0,e.createElement)("li",null,(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}${t?.wdkit_meta?.userinfo?.user_name}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.875 15.75V14.25C15.875 13.4544 15.5589 12.6913 14.9963 12.1287C14.4337 11.5661 13.6706 11.25 12.875 11.25H6.875C6.07935 11.25 5.31629 11.5661 4.75368 12.1287C4.19107 12.6913 3.875 13.4544 3.875 14.25V15.75M12.8754 5.25C12.8754 6.90685 11.5322 8.25 9.87537 8.25C8.21851 8.25 6.87537 6.90685 6.87537 5.25C6.87537 3.59315 8.21851 2.25 9.87537 2.25C11.5322 2.25 12.8754 3.59315 12.8754 5.25Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),__("Profile"))),(0,e.createElement)("hr",null),(0,e.createElement)("li",null,(0,e.createElement)("a",{style:{cursor:"pointer"},onClick:e=>{(async()=>{await We(i),t.wdkit_set_toast(["Logged out successfully!","You're logged out! Remember your login details and sign in again.","","success"]),await je({type:"wkit_meta_data",meta_type:"all"}).then((e=>{1==e?.data?.success&&t.wdkit_set_meta(e?.data)}))})(t.wdkit_Login_Route(r.pathname))}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.625 15.75H4.625C4.22718 15.75 3.84564 15.592 3.56434 15.3107C3.28304 15.0294 3.125 14.6478 3.125 14.25V3.75C3.125 3.35218 3.28304 2.97064 3.56434 2.68934C3.84564 2.40804 4.22718 2.25 4.625 2.25H7.625M12.8748 12.7501L16.6248 9.00009M16.6248 9.00009L12.8748 5.25009M16.6248 9.00009L7.625 9",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),__("Logout")))))))))},Xe=t=>{let a=Number(t.template_id.pages.length)+Number(t.template_id.sections.length);if(!t.template_id&&!t.template_id.pages&&!t.template_id.sections)return!1;const[n,i]=(0,l.useState)(!1),[s,r]=(0,l.useState)([]),[o,c]=(0,l.useState)([]),[d,m]=(0,l.useState)(),[p,u]=(0,l.useState)(0),[w,g]=(0,l.useState)(0),[C,v]=(0,l.useState)(0),[b,h]=(0,l.useState)(0);var _=[],k=[],E=[],f=[],y=[],N=[];(0,l.useEffect)((()=>{$()}),[t.template_id]),wdkitData.WDKIT_URL;const $=()=>{let e=Pe(),a="";e&&e.user_email&&(a=e.user_email),(t.template_id.pages&&0!=t.template_id.pages.length||t.template_id.sections&&0!=t.template_id.sections.length)&&(i(!0),0!=t.template_id.pages.length&&(t.template_id?.pages?.length>0&&t.template_id.pages?t.template_id.pages:[]).forEach((async function(e,l){let n={type:"import_kit_template",website_kit:t.kit_id,email:a,template_ids:JSON.stringify(e),editor:"wdkit"==wdkitData.use_editor&&t.template_id.builder?t.template_id.builder:wdkitData.use_editor,page_section:"pages",custom_meta:t.custom_meta_import||!1};await je(n).then((t=>{if(t.success){let a=Object.assign({},t[e.id],{status:!0},{id:e.id});_.push(a),E.push(a),u(E.length),r(_)}else{let a=Object.assign({},t[e.id],{status:!1},{id:e.id});_.push(a),y.push(a),v(y.length),r(_)}})),m(l)})),0!=t.template_id.sections.length&&(t.template_id?.sections?.length>0&&t.template_id.sections?t.template_id.sections:[]).forEach((async function(e,l){let n={type:"import_kit_template",website_kit:t.kit_id,email:a,template_ids:JSON.stringify(e),editor:"wdkit"==wdkitData.use_editor&&t.template_id.builder?t.template_id.builder:wdkitData.use_editor,page_section:"sections",custom_meta:t.custom_meta_import||!1};await je(n).then((t=>{if(t.success){let a=Object.assign({},t[e.id],{status:!0},{id:e.id});k.push(a),f.push(a),g(f.length),c(k)}else{let a=Object.assign({},t[e.id],{status:!1},{id:e.id});k.push(a),N.push(a),h(N.length),c(k)}})),m(l)})),i(!1))};return(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"popup-header"},__("Import Templates")),(0,e.createElement)("div",{className:"success-body"},o.length+s.length==a?(0,e.createElement)("div",{className:"wkit-import-kit-success-header"},p+w===a&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-import-kit-success-title-content"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,e.createElement)("path",{d:"M37.8721 23.3124L37.8604 23.3181C36.4893 24.3696 35.9084 26.1589 36.3965 27.8147L36.4022 27.8263C37.1807 30.4581 35.252 33.1129 32.5098 33.1827H32.4982C30.767 33.2292 29.2449 34.3329 28.6697 35.9654V35.9712C27.7518 38.5622 24.6264 39.5788 22.3664 38.016C20.9632 37.0578 19.1081 37.0078 17.6317 38.016H17.6259C15.3661 39.573 12.2405 38.5621 11.3284 35.9653C10.7481 34.3288 9.22824 33.229 7.49996 33.1826H7.48832C4.74629 33.1128 2.81746 30.458 3.59598 27.8263L3.60176 27.8146C4.08965 26.1588 3.50871 24.3695 2.13777 23.3181L2.12613 23.3123C-0.052461 21.6391 -0.052461 18.3626 2.12613 16.6895L2.13777 16.6837C3.50871 15.6322 4.08965 13.8428 3.59598 12.1871V12.1755C2.8116 9.54385 4.74621 6.88885 7.48832 6.81916H7.49996C9.22535 6.77267 10.7532 5.66885 11.3284 4.03642V4.03064C12.2404 1.43963 15.3661 0.422987 17.6259 1.9858H17.6317C19.055 2.9676 20.9372 2.9676 22.3664 1.9858C24.6491 0.409471 27.7572 1.45517 28.6697 4.03064V4.03642C29.2449 5.66306 30.7669 6.77275 32.4982 6.81916H32.5098C35.2519 6.88885 37.1807 9.54385 36.4022 12.1755L36.3965 12.1871C35.9084 13.8428 36.4893 15.6322 37.8604 16.6837L37.8721 16.6895C40.0507 18.3626 40.0507 21.6392 37.8721 23.3124Z",fill:"#3EB655"}),(0,e.createElement)("path",{d:"M19.9994 30.821C25.976 30.821 30.821 25.976 30.821 19.9994C30.821 14.0227 25.976 9.17773 19.9994 9.17773C14.0227 9.17773 9.17773 14.0227 9.17773 19.9994C9.17773 25.976 14.0227 30.821 19.9994 30.821Z",fill:"#8BD399"}),(0,e.createElement)("path",{opacity:"0.1",d:"M28.3088 13.0728C26.437 11.533 24.0423 10.6074 21.4316 10.6074C15.4551 10.6074 10.6074 15.4551 10.6074 21.4316C10.6074 24.0423 11.533 26.437 13.0727 28.3088C10.6945 26.325 9.17969 23.3409 9.17969 19.9998C9.17969 14.0231 14.0232 9.17969 19.9998 9.17969C23.3409 9.17969 26.325 10.6945 28.3088 13.0728Z",fill:"black"}),(0,e.createElement)("path",{d:"M17.4247 24.2359L15.0317 21.69C14.405 21.0231 14.4373 19.9746 15.104 19.3479C15.7706 18.7204 16.8196 18.7541 17.4458 19.4205L18.5881 20.6353L23.4438 15.0855C24.0457 14.3967 25.0926 14.3269 25.7819 14.9296C26.4706 15.5323 26.5401 16.5789 25.9377 17.2676L19.8787 24.1923C19.2333 24.9292 18.0941 24.9485 17.4247 24.2359Z",fill:"white"})),(0,e.createElement)("div",{className:"wkit-import-kit-success-title"},__(`${Number(p+w)>0?Number(p+w):0}/${a} Successfully Imported`))),(0,e.createElement)("div",{className:"wkit-import-kit-success-subTitle"},__("Yay! Your kit has been successfully imported"))),p+w===0&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-import-kit-success-title-content"},(0,e.createElement)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M17.9255 8.3812L6.28109 28.5484C6.07076 28.9126 5.96 29.3257 5.95996 29.7463C5.95992 30.1669 6.0706 30.58 6.28087 30.9443C6.49114 31.3085 6.7936 31.6109 7.15782 31.8212C7.52205 32.0315 7.93521 32.1422 8.35578 32.1421H31.6427C32.0632 32.1422 32.4764 32.0315 32.8406 31.8212C33.2048 31.6109 33.5073 31.3085 33.7176 30.9443C33.9278 30.58 34.0385 30.1669 34.0385 29.7463C34.0384 29.3257 33.9277 28.9126 33.7173 28.5484L22.0742 8.3812C21.864 8.01708 21.5616 7.71472 21.1975 7.50449C20.8334 7.29427 20.4203 7.18359 19.9998 7.18359C19.5794 7.18359 19.1663 7.29427 18.8022 7.50449C18.4381 7.71472 18.1357 8.01708 17.9255 8.3812Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M20.152 14.5977H19.8482C19.1004 14.5977 18.4941 15.2039 18.4941 15.9517V22.4239C18.4941 23.1717 19.1004 23.778 19.8482 23.778H20.152C20.8998 23.778 21.506 23.1717 21.506 22.4239V15.9517C21.506 15.2039 20.8998 14.5977 20.152 14.5977Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M20.0001 28.9142C20.8318 28.9142 21.506 28.24 21.506 27.4083C21.506 26.5766 20.8318 25.9023 20.0001 25.9023C19.1684 25.9023 18.4941 26.5766 18.4941 27.4083C18.4941 28.24 19.1684 28.9142 20.0001 28.9142Z",fill:"#FFF7ED"})),(0,e.createElement)("div",{className:"wkit-import-kit-fail-title"},__(`${Number(p+w)>0?Number(p+w):0}/${a} Import Failed!`))),(0,e.createElement)("div",{className:"wkit-import-kit-fail-subTitle"},__("Ops! Your templates are failed to import. Please Try Again."),(0,e.createElement)("a",{href:"https://blog.wdesignkit.com/documents/how-to-manage-licence-in-wdesignkit/#Manage-Licence",style:{color:"#040483",fontWeight:"500"},target:"_blank",rel:"noopener noreferrer"},"Why Failed?"))),p+w!==0&&p+w!==a&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-import-kit-success-title-content"},(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M17.9255 8.29136L6.28109 28.4585C6.07076 28.8227 5.96 29.2359 5.95996 29.6564C5.95992 30.077 6.0706 30.4902 6.28087 30.8544C6.49114 31.2186 6.7936 31.5211 7.15782 31.7314C7.52205 31.9416 7.93521 32.0523 8.35578 32.0523H31.6427C32.0632 32.0523 32.4764 31.9416 32.8406 31.7314C33.2048 31.5211 33.5073 31.2186 33.7176 30.8544C33.9278 30.4902 34.0385 30.077 34.0385 29.6564C34.0384 29.2359 33.9277 28.8227 33.7173 28.4585L22.0742 8.29136C21.864 7.92724 21.5616 7.62487 21.1975 7.41465C20.8334 7.20442 20.4203 7.09375 19.9998 7.09375C19.5794 7.09375 19.1663 7.20442 18.8022 7.41465C18.4381 7.62487 18.1357 7.92724 17.9255 8.29136Z",fill:"#FFBB5C"}),(0,e.createElement)("path",{d:"M20.152 14.5078H19.8482C19.1004 14.5078 18.4941 15.114 18.4941 15.8619V22.3341C18.4941 23.0819 19.1004 23.6881 19.8482 23.6881H20.152C20.8998 23.6881 21.506 23.0819 21.506 22.3341V15.8619C21.506 15.114 20.8998 14.5078 20.152 14.5078Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M20.0001 28.8244C20.8318 28.8244 21.506 28.1501 21.506 27.3184C21.506 26.4867 20.8318 25.8125 20.0001 25.8125C19.1684 25.8125 18.4941 26.4867 18.4941 27.3184C18.4941 28.1501 19.1684 28.8244 20.0001 28.8244Z",fill:"#FFF7ED"})),(0,e.createElement)("div",{className:"wkit-import-kit-partial-title"},__(`${Number(p+w)>0?Number(p+w):0}/${a} Partially Imported!`))),(0,e.createElement)("div",{className:"wkit-import-kit-partial-subTitle"},__(`Happy to say your ${Number(p+w)} Templates Imported but sorry to know ${a-(p+w)} Failed to Import.`),(0,e.createElement)("a",{href:"https://blog.wdesignkit.com/documents/how-to-manage-licence-in-wdesignkit/#Manage-Licence",style:{color:"#040483",fontWeight:"500"},target:"_blank",rel:"noopener noreferrer"},"Why Failed?")))):(0,e.createElement)("div",{className:"wkit-import-kit-success-header"},(0,e.createElement)("div",{className:"wkit-import-kit-loading-progress-content"},(0,e.createElement)("div",{className:"wkit-import-kit-progress-title"},__(`${Number(p+w)>0?Number(p+w):0}/${a} Importing...`))),(0,e.createElement)("div",{className:"wkit-import-kit-progressBar-content"},(0,e.createElement)("div",{className:"wkit-import-kit-progressBar-thumb",style:{width:100*Number(p+w)/Number(a)+"%"}}))),(0,e.createElement)("div",{className:"wkit-success-wrapper"},t.template_id.pages.length>0&&(0,e.createElement)("div",{className:"wkit-success-content"},(0,e.createElement)("div",{className:"wkit-success-template-content"},(0,e.createElement)("span",{className:"wkit-success-template-count"},__("Pages :")," ",p),C>0&&(0,e.createElement)("div",{className:"wkit-fail-template-count"},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M18 10C18 14.4183 14.4183 18 10 18C5.58171 18 2 14.4183 2 10C2 5.58171 5.58171 2 10 2C14.4183 2 18 5.58171 18 10ZM9.07464 14.236L15.0102 8.30045C15.2117 8.0989 15.2117 7.7721 15.0102 7.57055L14.2802 6.84065C14.0787 6.63907 13.7519 6.63907 13.5503 6.84065L8.70968 11.6813L6.44971 9.42126C6.24816 9.21971 5.92136 9.21971 5.71977 9.42126L4.98987 10.1511C4.78832 10.3527 4.78832 10.6796 4.98987 10.8811L8.34471 14.2359C8.54629 14.4375 8.87306 14.4375 9.07464 14.236Z",fill:"#00A31B"})),(0,e.createElement)("span",{style:{color:"#00A31B"}},p," ",__("Success.")),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M8.96322 4.14666L3.14104 14.2302C3.03587 14.4123 2.98049 14.6189 2.98047 14.8292C2.98045 15.0395 3.03579 15.2461 3.14092 15.4282C3.24606 15.6103 3.39729 15.7615 3.5794 15.8667C3.76151 15.9718 3.9681 16.0271 4.17838 16.0271H15.8218C16.0321 16.0271 16.2387 15.9718 16.4208 15.8667C16.6029 15.7615 16.7541 15.6103 16.8593 15.4282C16.9644 15.2461 17.0197 15.0395 17.0197 14.8292C17.0197 14.6189 16.9643 14.4123 16.8592 14.2302L11.0376 4.14666C10.9325 3.9646 10.7813 3.81341 10.5992 3.7083C10.4172 3.60319 10.2106 3.54785 10.0004 3.54785C9.79018 3.54785 9.58366 3.60319 9.40159 3.7083C9.21953 3.81341 9.06834 3.9646 8.96322 4.14666Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M10.077 7.25684H9.92508C9.55116 7.25684 9.24805 7.55995 9.24805 7.93387V11.17C9.24805 11.5439 9.55116 11.847 9.92508 11.847H10.077C10.4509 11.847 10.754 11.5439 10.754 11.17V7.93387C10.754 7.55995 10.4509 7.25684 10.077 7.25684Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M10.001 14.4132C10.4169 14.4132 10.754 14.076 10.754 13.6602C10.754 13.2443 10.4169 12.9072 10.001 12.9072C9.58516 12.9072 9.24805 13.2443 9.24805 13.6602C9.24805 14.076 9.58516 14.4132 10.001 14.4132Z",fill:"#FFF7ED"})),(0,e.createElement)("span",null,C," ",__("Failed.")))),(0,e.createElement)("div",{className:"wkit-success-list-content"},(0,e.createElement)("div",{className:"wkit-success-col"},t.template_id.pages.map(((t,a)=>{let l=s.findIndex((e=>e.id==t.id));if(l>-1)var n=!0,i=s[l].view,r=s[l].status;else n=!1;return(0,e.createElement)("div",{className:`wkit-success-list-item ${n&&(r?"":"wkit-import-fail")}`,key:a},(0,e.createElement)("div",{className:"wkit-plugin-img-title-wrapper"},(0,e.createElement)("img",{src:t.post_image}),(0,e.createElement)("div",{className:"heading"},t.title)),n?r?(0,e.createElement)("a",{href:i||"",target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.666016 8.00033C0.666016 8.00033 3.33268 2.66699 7.99935 2.66699C12.666 2.66699 15.3327 8.00033 15.3327 8.00033C15.3327 8.00033 12.666 13.3337 7.99935 13.3337C3.33268 13.3337 0.666016 8.00033 0.666016 8.00033Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"}))):(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M8.96322 4.14666L3.14104 14.2302C3.03587 14.4123 2.98049 14.6189 2.98047 14.8292C2.98045 15.0395 3.03579 15.2461 3.14092 15.4282C3.24606 15.6103 3.39729 15.7615 3.5794 15.8667C3.76151 15.9718 3.9681 16.0271 4.17838 16.0271H15.8218C16.0321 16.0271 16.2387 15.9718 16.4208 15.8667C16.6029 15.7615 16.7541 15.6103 16.8593 15.4282C16.9644 15.2461 17.0197 15.0395 17.0197 14.8292C17.0197 14.6189 16.9643 14.4123 16.8592 14.2302L11.0376 4.14666C10.9325 3.9646 10.7813 3.81341 10.5992 3.7083C10.4172 3.60319 10.2106 3.54785 10.0004 3.54785C9.79018 3.54785 9.58366 3.60319 9.40159 3.7083C9.21953 3.81341 9.06834 3.9646 8.96322 4.14666Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M10.077 7.25684H9.92508C9.55116 7.25684 9.24805 7.55995 9.24805 7.93387V11.17C9.24805 11.5439 9.55116 11.847 9.92508 11.847H10.077C10.4509 11.847 10.754 11.5439 10.754 11.17V7.93387C10.754 7.55995 10.4509 7.25684 10.077 7.25684Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M10.001 14.4132C10.4169 14.4132 10.754 14.076 10.754 13.6602C10.754 13.2443 10.4169 12.9072 10.001 12.9072C9.58516 12.9072 9.24805 13.2443 9.24805 13.6602C9.24805 14.076 9.58516 14.4132 10.001 14.4132Z",fill:"#FFF7ED"})):(0,e.createElement)("div",null,(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{animation:"spin 1.5s linear infinite"},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{d:"M2.76054 12.0855C3.58507 12.0855 4.25349 11.4171 4.25349 10.5926C4.25349 9.76803 3.58507 9.09961 2.76054 9.09961C1.936 9.09961 1.26758 9.76803 1.26758 10.5926C1.26758 11.4171 1.936 12.0855 2.76054 12.0855Z",fill:"#909BA6"}),(0,e.createElement)("path",{d:"M12.3661 10.7615C13.0817 10.7615 13.6619 10.1813 13.6619 9.4657C13.6619 8.75006 13.0817 8.16992 12.3661 8.16992C11.6505 8.16992 11.0703 8.75006 11.0703 9.4657C11.0703 10.1813 11.6505 10.7615 12.3661 10.7615Z",fill:"#C8D2DC"}),(0,e.createElement)("path",{d:"M11.1837 4.22581C11.7749 4.22581 12.2541 3.74656 12.2541 3.15538C12.2541 2.56421 11.7749 2.08496 11.1837 2.08496C10.5925 2.08496 10.1133 2.56421 10.1133 3.15538C10.1133 3.74656 10.5925 4.22581 11.1837 4.22581Z",fill:"#E9EDF1"}),(0,e.createElement)("path",{d:"M1.58437 8.4411C2.45939 8.4411 3.16873 7.74905 3.16873 6.89536C3.16873 6.04166 2.45939 5.34961 1.58437 5.34961C0.709345 5.34961 0 6.04166 0 6.89536C0 7.74905 0.709345 8.4411 1.58437 8.4411Z",fill:"#7E8B96"}),(0,e.createElement)("path",{d:"M6.13565 14.0004C6.93113 14.0004 7.57599 13.372 7.57599 12.5969C7.57599 11.8217 6.93113 11.1934 6.13565 11.1934C5.34017 11.1934 4.69531 11.8217 4.69531 12.5969C4.69531 13.372 5.34017 14.0004 6.13565 14.0004Z",fill:"#A2ABB8"}),(0,e.createElement)("path",{d:"M9.83706 13.3863C10.5928 13.3863 11.2054 12.7898 11.2054 12.054C11.2054 11.3182 10.5928 10.7217 9.83706 10.7217C9.08136 10.7217 8.46875 11.3182 8.46875 12.054C8.46875 12.7898 9.08136 13.3863 9.83706 13.3863Z",fill:"#B9C3CD"}),(0,e.createElement)("path",{d:"M3.29894 4.8518C4.21373 4.8518 4.95531 4.12792 4.95531 3.23498C4.95531 2.34204 4.21373 1.61816 3.29894 1.61816C2.38416 1.61816 1.64258 2.34204 1.64258 3.23498C1.64258 4.12792 2.38416 4.8518 3.29894 4.8518Z",fill:"#5F6C75"}),(0,e.createElement)("path",{d:"M12.7751 7.30062C13.4512 7.30062 13.9993 6.76265 13.9993 6.09904C13.9993 5.43543 13.4512 4.89746 12.7751 4.89746C12.0989 4.89746 11.5508 5.43543 11.5508 6.09904C11.5508 6.76265 12.0989 7.30062 12.7751 7.30062Z",fill:"#DCE6EB"}),(0,e.createElement)("path",{d:"M7.40859 3.49393C8.37314 3.49393 9.15507 2.71201 9.15507 1.74746C9.15507 0.782902 8.37314 0.000976562 7.40859 0.000976562C6.44403 0.000976562 5.66211 0.782902 5.66211 1.74746C5.66211 2.71201 6.44403 3.49393 7.40859 3.49393Z",fill:"#4E5A61"}))))}))))),t.template_id.sections.length>0&&(0,e.createElement)("div",{className:"wkit-success-content"},(0,e.createElement)("div",{className:"wkit-success-template-content"},(0,e.createElement)("span",{className:"wkit-success-template-count"},__("Sections :")," ",w),b>0&&(0,e.createElement)("div",{className:"wkit-fail-template-count"},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M18 10C18 14.4183 14.4183 18 10 18C5.58171 18 2 14.4183 2 10C2 5.58171 5.58171 2 10 2C14.4183 2 18 5.58171 18 10ZM9.07464 14.236L15.0102 8.30045C15.2117 8.0989 15.2117 7.7721 15.0102 7.57055L14.2802 6.84065C14.0787 6.63907 13.7519 6.63907 13.5503 6.84065L8.70968 11.6813L6.44971 9.42126C6.24816 9.21971 5.92136 9.21971 5.71977 9.42126L4.98987 10.1511C4.78832 10.3527 4.78832 10.6796 4.98987 10.8811L8.34471 14.2359C8.54629 14.4375 8.87306 14.4375 9.07464 14.236Z",fill:"#00A31B"})),(0,e.createElement)("span",{style:{color:"#00A31B"}},w,__("Success.")),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M8.96322 4.14666L3.14104 14.2302C3.03587 14.4123 2.98049 14.6189 2.98047 14.8292C2.98045 15.0395 3.03579 15.2461 3.14092 15.4282C3.24606 15.6103 3.39729 15.7615 3.5794 15.8667C3.76151 15.9718 3.9681 16.0271 4.17838 16.0271H15.8218C16.0321 16.0271 16.2387 15.9718 16.4208 15.8667C16.6029 15.7615 16.7541 15.6103 16.8593 15.4282C16.9644 15.2461 17.0197 15.0395 17.0197 14.8292C17.0197 14.6189 16.9643 14.4123 16.8592 14.2302L11.0376 4.14666C10.9325 3.9646 10.7813 3.81341 10.5992 3.7083C10.4172 3.60319 10.2106 3.54785 10.0004 3.54785C9.79018 3.54785 9.58366 3.60319 9.40159 3.7083C9.21953 3.81341 9.06834 3.9646 8.96322 4.14666Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M10.077 7.25684H9.92508C9.55116 7.25684 9.24805 7.55995 9.24805 7.93387V11.17C9.24805 11.5439 9.55116 11.847 9.92508 11.847H10.077C10.4509 11.847 10.754 11.5439 10.754 11.17V7.93387C10.754 7.55995 10.4509 7.25684 10.077 7.25684Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M10.001 14.4132C10.4169 14.4132 10.754 14.076 10.754 13.6602C10.754 13.2443 10.4169 12.9072 10.001 12.9072C9.58516 12.9072 9.24805 13.2443 9.24805 13.6602C9.24805 14.076 9.58516 14.4132 10.001 14.4132Z",fill:"#FFF7ED"})),(0,e.createElement)("span",null,b," ",__("Failed.")))),(0,e.createElement)("div",{className:"wkit-success-list-content"},(0,e.createElement)("div",{className:"wkit-success-col"},t.template_id.sections.map(((t,a)=>{let l=o.findIndex((e=>e.id==t.id));if(l>-1)var n=!0,i=o[l].view,s=o[l].status;else n=!1;return(0,e.createElement)("div",{className:`wkit-success-list-item ${n&&(s?"":"wkit-import-fail")}`,key:a},(0,e.createElement)("div",{className:"wkit-plugin-img-title-wrapper"},(0,e.createElement)("img",{src:t.post_image}),(0,e.createElement)("div",{className:"heading"},t.title)),n?s?(0,e.createElement)("a",{href:i||"",target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.666016 8.00033C0.666016 8.00033 3.33268 2.66699 7.99935 2.66699C12.666 2.66699 15.3327 8.00033 15.3327 8.00033C15.3327 8.00033 12.666 13.3337 7.99935 13.3337C3.33268 13.3337 0.666016 8.00033 0.666016 8.00033Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"}))):(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M8.96322 4.14666L3.14104 14.2302C3.03587 14.4123 2.98049 14.6189 2.98047 14.8292C2.98045 15.0395 3.03579 15.2461 3.14092 15.4282C3.24606 15.6103 3.39729 15.7615 3.5794 15.8667C3.76151 15.9718 3.9681 16.0271 4.17838 16.0271H15.8218C16.0321 16.0271 16.2387 15.9718 16.4208 15.8667C16.6029 15.7615 16.7541 15.6103 16.8593 15.4282C16.9644 15.2461 17.0197 15.0395 17.0197 14.8292C17.0197 14.6189 16.9643 14.4123 16.8592 14.2302L11.0376 4.14666C10.9325 3.9646 10.7813 3.81341 10.5992 3.7083C10.4172 3.60319 10.2106 3.54785 10.0004 3.54785C9.79018 3.54785 9.58366 3.60319 9.40159 3.7083C9.21953 3.81341 9.06834 3.9646 8.96322 4.14666Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M10.077 7.25684H9.92508C9.55116 7.25684 9.24805 7.55995 9.24805 7.93387V11.17C9.24805 11.5439 9.55116 11.847 9.92508 11.847H10.077C10.4509 11.847 10.754 11.5439 10.754 11.17V7.93387C10.754 7.55995 10.4509 7.25684 10.077 7.25684Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M10.001 14.4132C10.4169 14.4132 10.754 14.076 10.754 13.6602C10.754 13.2443 10.4169 12.9072 10.001 12.9072C9.58516 12.9072 9.24805 13.2443 9.24805 13.6602C9.24805 14.076 9.58516 14.4132 10.001 14.4132Z",fill:"#FFF7ED"})):(0,e.createElement)("div",null,(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{animation:"spin 1.5s linear infinite"},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{d:"M2.76054 12.0855C3.58507 12.0855 4.25349 11.4171 4.25349 10.5926C4.25349 9.76803 3.58507 9.09961 2.76054 9.09961C1.936 9.09961 1.26758 9.76803 1.26758 10.5926C1.26758 11.4171 1.936 12.0855 2.76054 12.0855Z",fill:"#909BA6"}),(0,e.createElement)("path",{d:"M12.3661 10.7615C13.0817 10.7615 13.6619 10.1813 13.6619 9.4657C13.6619 8.75006 13.0817 8.16992 12.3661 8.16992C11.6505 8.16992 11.0703 8.75006 11.0703 9.4657C11.0703 10.1813 11.6505 10.7615 12.3661 10.7615Z",fill:"#C8D2DC"}),(0,e.createElement)("path",{d:"M11.1837 4.22581C11.7749 4.22581 12.2541 3.74656 12.2541 3.15538C12.2541 2.56421 11.7749 2.08496 11.1837 2.08496C10.5925 2.08496 10.1133 2.56421 10.1133 3.15538C10.1133 3.74656 10.5925 4.22581 11.1837 4.22581Z",fill:"#E9EDF1"}),(0,e.createElement)("path",{d:"M1.58437 8.4411C2.45939 8.4411 3.16873 7.74905 3.16873 6.89536C3.16873 6.04166 2.45939 5.34961 1.58437 5.34961C0.709345 5.34961 0 6.04166 0 6.89536C0 7.74905 0.709345 8.4411 1.58437 8.4411Z",fill:"#7E8B96"}),(0,e.createElement)("path",{d:"M6.13565 14.0004C6.93113 14.0004 7.57599 13.372 7.57599 12.5969C7.57599 11.8217 6.93113 11.1934 6.13565 11.1934C5.34017 11.1934 4.69531 11.8217 4.69531 12.5969C4.69531 13.372 5.34017 14.0004 6.13565 14.0004Z",fill:"#A2ABB8"}),(0,e.createElement)("path",{d:"M9.83706 13.3863C10.5928 13.3863 11.2054 12.7898 11.2054 12.054C11.2054 11.3182 10.5928 10.7217 9.83706 10.7217C9.08136 10.7217 8.46875 11.3182 8.46875 12.054C8.46875 12.7898 9.08136 13.3863 9.83706 13.3863Z",fill:"#B9C3CD"}),(0,e.createElement)("path",{d:"M3.29894 4.8518C4.21373 4.8518 4.95531 4.12792 4.95531 3.23498C4.95531 2.34204 4.21373 1.61816 3.29894 1.61816C2.38416 1.61816 1.64258 2.34204 1.64258 3.23498C1.64258 4.12792 2.38416 4.8518 3.29894 4.8518Z",fill:"#5F6C75"}),(0,e.createElement)("path",{d:"M12.7751 7.30062C13.4512 7.30062 13.9993 6.76265 13.9993 6.09904C13.9993 5.43543 13.4512 4.89746 12.7751 4.89746C12.0989 4.89746 11.5508 5.43543 11.5508 6.09904C11.5508 6.76265 12.0989 7.30062 12.7751 7.30062Z",fill:"#DCE6EB"}),(0,e.createElement)("path",{d:"M7.40859 3.49393C8.37314 3.49393 9.15507 2.71201 9.15507 1.74746C9.15507 0.782902 8.37314 0.000976562 7.40859 0.000976562C6.44403 0.000976562 5.66211 0.782902 5.66211 1.74746C5.66211 2.71201 6.44403 3.49393 7.40859 3.49393Z",fill:"#4E5A61"}))))}))))))))},Qe=t=>(0,e.createElement)("div",{className:"wkit-skeleton-main-wrap wkit-skeleton-row"},Object.values(Re(12)).map(((t,a)=>(0,e.createElement)("div",{className:"wkit-skeleton-boxed",key:a},(0,e.createElement)("div",{className:"wkit-skeleton-inner-boxed "},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"}))),(0,e.createElement)("div",{className:"wkit-template-bg"},(0,e.createElement)("div",{className:"wkit-skeleton-square"})),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"template-page-kit-title"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",{className:"wkit-select"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"wkit-action-inner"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-img-border-rounded"})))))))),et=t=>{var a=t?.page?t?.page:"",l=wdkitData.WDKIT_URL,n=t?.link?t.link:"https://blog.wdesignkit.com/docs/";return(0,e.createElement)("div",{className:"wkit-content-not-availble"},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:l+"assets/images/jpg/empty-dog.png",alt:"section"}),(0,e.createElement)("h5",{className:"wkit-common-desc"},__("Nothing related found!")),(0,e.createElement)("a",{href:n,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",{type:"submit",className:"wkit-common-btn wkit-pink-btn-class"},__(`How to Add ${a}`))))},tt=()=>{let t=J().pathname.split("/");var a=wdkitData.WDKIT_URL;if(!t.includes("builder")||!t.includes("widget-listing"))return(0,e.createElement)("div",{className:"wkit-mobile-header-main"},(0,e.createElement)("img",{className:"wdkit-main-logo",src:a+"/assets/images/jpg/Wdesignkit-logo.png",alt:"wdesignkit-logo"}),(0,e.createElement)("div",{className:"wkit-mobile-hamburger-dot"},(0,e.createElement)("div",{className:"wkit-hamburger-icon",onClick:()=>{document.querySelector(".wkit-hamburger-menu-content").classList.add("wkit-hamburger-content-show"),document.querySelector(".wkit-opp").style.visibility="visible"}}),(0,e.createElement)("div",{className:"wkit-opp",onClick:()=>{document.querySelector(".wkit-hamburger-menu-content.wkit-hamburger-content-show").classList.remove("wkit-hamburger-content-show"),document.querySelector(".wkit-opp").style.visibility="hidden"}},(0,e.createElement)("ul",{className:"wkit-hamburger-menu-content"},(0,e.createElement)("div",{className:"wkit-menu-site-logo"},(0,e.createElement)("img",{src:a+"assets/images/jpg/Wdesignkit-full-logo.png",alt:"wdesignlogo",draggable:"false"})),(0,e.createElement)("li",{className:t.includes("browse")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/browse"},(0,e.createElement)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5H5V8H19V5ZM3 8V9.5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V9.5V8V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V8ZM19 19V9.5H5L5 19H19ZM16.3819 12.5H7.61805H6.5C6.22386 12.5 6 12.2761 6 12V11.5C6 11.2239 6.22386 11 6.5 11H7.61805H16.3819H17.5C17.7761 11 18 11.2239 18 11.5V12C18 12.2761 17.7761 12.5 17.5 12.5H16.3819ZM7.86622 15.5C7.7784 15.3482 7.65181 15.2216 7.5 15.1338C7.34819 15.2216 7.2216 15.3482 7.13378 15.5C7.2216 15.6518 7.34819 15.7784 7.5 15.8662C7.65181 15.7784 7.7784 15.6518 7.86622 15.5ZM7 14C6.44772 14 6 14.4477 6 15V16C6 16.5523 6.44772 17 7 17H8C8.55228 17 9 16.5523 9 16V15C9 14.4477 8.55228 14 8 14H7ZM12 15.1338C12.1518 15.2216 12.2784 15.3482 12.3662 15.5C12.2784 15.6518 12.1518 15.7784 12 15.8662C11.8482 15.7784 11.7216 15.6518 11.6338 15.5C11.7216 15.3482 11.8482 15.2216 12 15.1338ZM10.5 15C10.5 14.4477 10.9477 14 11.5 14H12.5C13.0523 14 13.5 14.4477 13.5 15V16C13.5 16.5523 13.0523 17 12.5 17H11.5C10.9477 17 10.5 16.5523 10.5 16V15ZM16.8662 15.5C16.7784 15.3482 16.6518 15.2216 16.5 15.1338C16.3482 15.2216 16.2216 15.3482 16.1338 15.5C16.2216 15.6518 16.3482 15.7784 16.5 15.8662C16.6518 15.7784 16.7784 15.6518 16.8662 15.5ZM16 14C15.4477 14 15 14.4477 15 15V16C15 16.5523 15.4477 17 16 17H17C17.5523 17 18 16.5523 18 16V15C18 14.4477 17.5523 14 17 14H16ZM6.5 7C6.77614 7 7 6.77614 7 6.5C7 6.22386 6.77614 6 6.5 6C6.22386 6 6 6.22386 6 6.5C6 6.77614 6.22386 7 6.5 7ZM9 6.5C9 6.77614 8.77614 7 8.5 7C8.22386 7 8 6.77614 8 6.5C8 6.22386 8.22386 6 8.5 6C8.77614 6 9 6.22386 9 6.5ZM10.5 7C10.7761 7 11 6.77614 11 6.5C11 6.22386 10.7761 6 10.5 6C10.2239 6 10 6.22386 10 6.5C10 6.77614 10.2239 7 10.5 7Z",fill:"white"})),__("Browse Design"))),"wdkit"!=window.wdkit_editor&&(0,e.createElement)("li",{className:t.includes("save_template")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/save_template"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 2H2V6H22V2ZM2 22L2 8H12V13.6263C12 14.5847 13.0682 15.1564 13.8656 14.6248L16 13.2019L18.1344 14.6248C18.9318 15.1564 20 14.5847 20 13.6263V8H22V22H2ZM18 8H14V12.1315L15.3898 11.2049C15.7593 10.9586 16.2407 10.9586 16.6102 11.2049L18 12.1315V8ZM2 0C0.895431 0 0 0.89543 0 2V22C0 23.1046 0.89543 24 2 24H22C23.1046 24 24 23.1046 24 22V2C24 0.895431 23.1046 0 22 0H2ZM6 4C6 4.55228 5.55228 5 5 5C4.44772 5 4 4.55228 4 4C4 3.44772 4.44772 3 5 3C5.55228 3 6 3.44772 6 4ZM9 5C9.55228 5 10 4.55228 10 4C10 3.44772 9.55228 3 9 3C8.44771 3 8 3.44772 8 4C8 4.55228 8.44771 5 9 5ZM4 13C4 12.4477 4.44772 12 5 12H7C7.55228 12 8 12.4477 8 13C8 13.5523 7.55228 14 7 14H5C4.44772 14 4 13.5523 4 13ZM5 17C4.44772 17 4 17.4477 4 18C4 18.5523 4.44772 19 5 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H5Z",fill:"white"})),__("Save Template"))),"wdkit"==window.wdkit_editor&&(0,e.createElement)("li",{className:t.includes("widget-browse")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/widget-browse"},(0,e.createElement)("svg",{width:"22",height:"24",viewBox:"0 0 22 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.85305 0.582239C10.5417 0.10019 11.4583 0.100192 12.1469 0.582239L11 2.2207L2.66749 8.05344L1.52057 6.41497L9.85305 0.582239ZM1.83245 13.6967L1.4181 13.3652C0.375944 12.5314 0.427213 10.9303 1.52057 10.165L1.83245 9.94666L1.4181 9.61518C0.375943 8.78145 0.427214 7.18032 1.52057 6.41497L2.66749 8.05344L6.62467 11.2192L9.75058 13.7199C10.481 14.3043 11.5189 14.3043 12.2494 13.7199L15.3753 11.2192L19.3325 8.05344L11 2.2207L12.1469 0.582239L20.4794 6.41497C21.5727 7.18033 21.624 8.78145 20.5818 9.61518L20.1675 9.94666L20.4794 10.165C21.5727 10.9303 21.624 12.5315 20.5818 13.3652L20.1675 13.6967L20.4794 13.915C21.5727 14.6803 21.624 16.2815 20.5818 17.1152L16.6247 20.2809L13.4988 22.7816C12.0379 23.9503 9.96207 23.9503 8.50119 22.7816L5.37528 20.2809L1.4181 17.1152C0.375944 16.2815 0.427213 14.6803 1.52057 13.915L1.83245 13.6967ZM3.45999 14.9987L2.66749 15.5534L6.62467 18.7192L9.75058 21.2199C10.481 21.8043 11.5189 21.8043 12.2494 21.2199L15.3753 18.7192L19.3325 15.5534L18.54 14.9987L16.6247 16.5309L13.4988 19.0316C12.0379 20.2003 9.96207 20.2003 8.50119 19.0316L5.37528 16.5309L3.45999 14.9987ZM16.6247 12.7809L18.54 11.2487L19.3325 11.8034L15.3753 14.9692L12.2494 17.4699C11.5189 18.0543 10.481 18.0543 9.75058 17.4699L6.62467 14.9692L2.66749 11.8034L3.45999 11.2487L5.37528 12.7809L8.50119 15.2816C9.96207 16.4503 12.0379 16.4503 13.4988 15.2816L16.6247 12.7809Z",fill:"white"})),__("Browse Widget"))),(0,e.createElement)("li",{className:t.includes("my_uploaded")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/my_uploaded"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9 16H15V10H19L12 3L5 10H9V16ZM12 5.83L14.17 8H13V14H11V8H9.83L12 5.83ZM5 18H19V20H5V18Z",fill:"white"})),__("My Templates"))),(0,e.createElement)("li",{className:t.includes("share_with_me")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/share_with_me"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12C9 11.76 8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5C21 3.34 19.66 2 18 2C16.34 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12C3 13.66 4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.35C15.11 18.56 15.08 18.78 15.08 19C15.08 20.61 16.39 21.92 18 21.92C19.61 21.92 20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08ZM18 4C18.55 4 19 4.45 19 5C19 5.55 18.55 6 18 6C17.45 6 17 5.55 17 5C17 4.45 17.45 4 18 4ZM6 13C5.45 13 5 12.55 5 12C5 11.45 5.45 11 6 11C6.55 11 7 11.45 7 12C7 12.55 6.55 13 6 13ZM18 20.02C17.45 20.02 17 19.57 17 19.02C17 18.47 17.45 18.02 18 18.02C18.55 18.02 19 18.47 19 19.02C19 19.57 18.55 20.02 18 20.02Z",fill:"white"})),__("Shared with me"))),(0,e.createElement)("li",{className:t.includes("manage_workspace")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/manage_workspace"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 15C7.1 15 8 15.9 8 17C8 18.1 7.1 19 6 19C4.9 19 4 18.1 4 17C4 15.9 4.9 15 6 15ZM6 13C3.8 13 2 14.8 2 17C2 19.2 3.8 21 6 21C8.2 21 10 19.2 10 17C10 14.8 8.2 13 6 13ZM12 5C13.1 5 14 5.9 14 7C14 8.1 13.1 9 12 9C10.9 9 10 8.1 10 7C10 5.9 10.9 5 12 5ZM12 3C9.8 3 8 4.8 8 7C8 9.2 9.8 11 12 11C14.2 11 16 9.2 16 7C16 4.8 14.2 3 12 3ZM18 15C19.1 15 20 15.9 20 17C20 18.1 19.1 19 18 19C16.9 19 16 18.1 16 17C16 15.9 16.9 15 18 15ZM18 13C15.8 13 14 14.8 14 17C14 19.2 15.8 21 18 21C20.2 21 22 19.2 22 17C22 14.8 20.2 13 18 13Z",fill:"white"})),"Manage Workspace")),"wdkit"==window.wdkit_editor&&(0,e.createElement)(Se,null,(0,e.createElement)("li",{className:t.includes("activate")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/activate"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 8C13.1046 8 14 7.10457 14 6C14 4.89543 13.1046 4 12 4C10.8954 4 10 4.89543 10 6C10 7.10457 10.8954 8 12 8ZM12 10C12.3453 10 12.6804 9.95625 13 9.87398V11.2192L12.291 11.042C12.1 10.9942 11.9 10.9942 11.709 11.042L11 11.2192V9.87398C11.3196 9.95625 11.6547 10 12 10ZM16 6C16 6.3453 15.9562 6.68038 15.874 7H20C21.1046 7 22 7.89543 22 9V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V9C2 7.89543 2.89543 7 4 7H8.12602C8.04375 6.68038 8 6.3453 8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6ZM9 9H4V20H20V9H15V12.2438C15 13.0245 14.2663 13.5974 13.509 13.408L12 13.0308L10.491 13.408C9.73366 13.5974 9 13.0245 9 12.2438V9ZM7 16C6.44772 16 6 16.4477 6 17C6 17.5523 6.44771 18 7 18H17C17.5523 18 18 17.5523 18 17C18 16.4477 17.5523 16 17 16H7Z",fill:"white"})),__("Manage Licence"))),(0,e.createElement)("li",{className:t.includes("widget-listing")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/widget-listing"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8535 0.582239C11.5422 0.10019 12.4587 0.100192 13.1474 0.582239L12.0005 2.2207L3.66798 8.05344L2.52106 6.41497L10.8535 0.582239ZM2.83294 13.6967L2.41859 13.3652C1.37643 12.5314 1.4277 10.9303 2.52106 10.165L2.83294 9.94666L2.41859 9.61518C1.37643 8.78145 1.4277 7.18032 2.52106 6.41497L3.66798 8.05344L7.62516 11.2192L10.7511 13.7199C11.4815 14.3043 12.5194 14.3043 13.2499 13.7199L16.3758 11.2192L20.3329 8.05344L12.0005 2.2207L13.1474 0.582239L21.4799 6.41497C22.5732 7.18033 22.6245 8.78145 21.5823 9.61518L21.168 9.94666L21.4799 10.165C22.5732 10.9303 22.6245 12.5315 21.5823 13.3652L21.168 13.6967L21.4799 13.915C22.5732 14.6803 22.6245 16.2815 21.5823 17.1152L17.6252 20.2809L14.4992 22.7816C13.0384 23.9503 10.9626 23.9503 9.50168 22.7816L6.37577 20.2809L2.41859 17.1152C1.37643 16.2815 1.4277 14.6803 2.52106 13.915L2.83294 13.6967ZM4.46048 14.9987L3.66798 15.5534L7.62516 18.7192L10.7511 21.2199C11.4815 21.8043 12.5194 21.8043 13.2499 21.2199L16.3758 18.7192L20.3329 15.5534L19.5404 14.9987L17.6252 16.5309L14.4992 19.0316C13.0384 20.2003 10.9626 20.2003 9.50168 19.0316L6.37577 16.5309L4.46048 14.9987ZM17.6252 12.7809L19.5404 11.2487L20.3329 11.8034L16.3758 14.9692L13.2499 17.4699C12.5194 18.0543 11.4815 18.0543 10.7511 17.4699L7.62516 14.9692L3.66798 11.8034L4.46048 11.2487L6.37577 12.7809L9.50168 15.2816C10.9626 16.4503 13.0384 16.4503 14.4992 15.2816L17.6252 12.7809Z",fill:"white"})),__("My Widgets"))),(0,e.createElement)("li",{className:t.includes("settings")?"wkit-mobileMenu-active":""},(0,e.createElement)(he,{to:"/settings"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2C4.55228 2 5 2.44772 5 3V10C5 10.5523 4.55228 11 4 11C3.44772 11 3 10.5523 3 10V3C3 2.44772 3.44772 2 4 2ZM5 15H7C7.55228 15 8 14.5523 8 14C8 13.4477 7.55228 13 7 13H4H1C0.447715 13 0 13.4477 0 14C0 14.5523 0.447715 15 1 15H3V21C3 21.5523 3.44772 22 4 22C4.55228 22 5 21.5523 5 21V15ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V12ZM12 2C12.5523 2 13 2.44772 13 3V7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H12H9C8.44771 9 8 8.55228 8 8C8 7.44772 8.44771 7 9 7H11V3C11 2.44772 11.4477 2 12 2ZM20 15H23C23.5523 15 24 15.4477 24 16C24 16.5523 23.5523 17 23 17H21V21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21V17H17C16.4477 17 16 16.5523 16 16C16 15.4477 16.4477 15 17 15H20ZM20 2C20.5523 2 21 2.44772 21 3V12C21 12.5523 20.5523 13 20 13C19.4477 13 19 12.5523 19 12V3C19 2.44772 19.4477 2 20 2Z",fill:"white"})),__("Settings"))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/wdesignkit/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M23.6139 12.8736C23.651 13.7597 23.3351 14.6243 22.7355 15.2778C22.136 15.9312 21.3017 16.3202 20.4157 16.3593C20.3639 16.3617 20.3121 16.3629 20.2605 16.3629C20.0251 16.3627 19.7904 16.3372 19.5604 16.2869C18.8781 17.3404 17.9834 18.2399 16.9336 18.9278C15.8837 19.6157 14.7018 20.077 13.4635 20.282C13.3171 20.7123 13.0249 21.0779 12.6375 21.3156C12.25 21.5533 11.7917 21.6482 11.3418 21.5838C10.8918 21.5194 10.4785 21.2999 10.1733 20.9631C9.86803 20.6263 9.69004 20.1935 9.67008 19.7394C9.65011 19.2853 9.78943 18.8385 10.064 18.4763C10.3385 18.114 10.7309 17.859 11.1735 17.7554C11.6161 17.6518 12.0809 17.7061 12.4877 17.9089C12.8945 18.1117 13.2176 18.4502 13.4013 18.866C15.1447 18.5436 16.7196 17.6196 17.8516 16.2551C18.9837 14.8907 19.601 13.1722 19.5961 11.3993C19.5961 7.2108 16.1885 3.80322 12 3.80322C7.81145 3.80322 4.40387 7.2108 4.40387 11.3993C4.40364 12.6945 4.73465 13.9682 5.36542 15.0993C5.3868 15.1367 5.40284 15.1768 5.41309 15.2186C5.47402 15.3879 5.4675 15.5742 5.3949 15.7389C5.32229 15.9036 5.18916 16.034 5.02304 16.1033C4.61629 16.2745 4.17941 16.3626 3.7381 16.3625C3.68617 16.3625 3.63412 16.3613 3.58196 16.3589C2.69635 16.3193 1.86257 15.9302 1.26345 15.2768C0.664339 14.6233 0.348783 13.759 0.38598 12.8733C0.400933 12.5201 0.392589 12.205 0.384433 11.9002C0.376839 11.6133 0.368917 11.3166 0.381948 11.007C0.420839 10.1422 0.792852 9.32593 1.42007 8.72925C2.04728 8.13257 2.88105 7.80173 3.74673 7.80602C5.13685 4.62546 8.31278 2.39697 12 2.39697C15.6872 2.39697 18.8631 4.62546 20.2532 7.80607C21.119 7.80113 21.953 8.13168 22.5804 8.72838C23.2077 9.32507 23.5796 10.1415 23.6179 11.0065C23.631 11.3165 23.6231 11.6132 23.6154 11.9001C23.6074 12.2049 23.599 12.5202 23.6139 12.8736ZM17.8971 11.3993C17.8967 12.3028 17.6889 13.1941 17.2896 14.0045C16.8903 14.8149 16.3102 15.5228 15.594 16.0735C14.8779 16.6243 14.0448 17.0032 13.159 17.181C12.2733 17.3589 11.3585 17.3309 10.4852 17.0993L8.09832 18.4778C7.97789 18.5473 7.83953 18.5796 7.70075 18.5705C7.56197 18.5614 7.42901 18.5114 7.31867 18.4267C7.20833 18.3421 7.12558 18.2266 7.08088 18.0949C7.03618 17.9632 7.03154 17.8212 7.06754 17.6868L7.67757 15.4112C6.66733 14.3192 6.10522 12.8869 6.10309 11.3993C6.10309 8.14675 8.74829 5.50085 12 5.50085C15.2516 5.50085 17.8971 8.14675 17.8971 11.3993ZM10.3605 11.3993C10.3605 11.2128 10.2864 11.034 10.1546 10.9021C10.0227 10.7703 9.84387 10.6962 9.65739 10.6962H9.65621C9.51721 10.6965 9.38139 10.7379 9.26594 10.8153C9.15048 10.8927 9.06056 11.0026 9.00755 11.1312C8.95453 11.2597 8.94079 11.401 8.96807 11.5373C8.99535 11.6736 9.06242 11.7988 9.16081 11.897C9.25919 11.9952 9.38448 12.062 9.52084 12.089C9.65719 12.116 9.7985 12.102 9.9269 12.0488C10.0553 11.9955 10.165 11.9054 10.2422 11.7898C10.3194 11.6742 10.3607 11.5383 10.3607 11.3993H10.3605ZM12.7032 11.3993C12.7032 11.3763 12.7019 11.3533 12.6995 11.3304C12.6973 11.3074 12.6938 11.2846 12.6892 11.262C12.685 11.2394 12.6794 11.2172 12.6723 11.1954C12.6658 11.1734 12.6578 11.1518 12.6494 11.1303C12.6409 11.1087 12.6306 11.0885 12.6198 11.0684C12.6091 11.0481 12.5974 11.0284 12.5847 11.0093C12.5719 10.99 12.5581 10.9714 12.5434 10.9535C12.5289 10.9356 12.5135 10.9186 12.497 10.9024C12.4811 10.886 12.4637 10.8706 12.4459 10.8556C12.4281 10.8415 12.4093 10.8274 12.3901 10.8148C12.371 10.8021 12.3513 10.7903 12.3311 10.7796C12.3109 10.7688 12.2898 10.759 12.2687 10.7501C12.2476 10.7413 12.226 10.7336 12.2041 10.7271C12.1602 10.713 12.1149 10.7039 12.0691 10.6999C12.0002 10.6933 11.9307 10.6966 11.8628 10.7098C11.8402 10.7144 11.8178 10.7202 11.7958 10.7271C11.7739 10.7336 11.7523 10.7412 11.7311 10.7501C11.71 10.759 11.6889 10.7688 11.6688 10.7796C11.6486 10.7904 11.6289 10.8021 11.6097 10.8148C11.5904 10.8274 11.5717 10.8415 11.5544 10.8556C11.5361 10.8706 11.5193 10.886 11.5029 10.9024C11.4864 10.9186 11.4709 10.9356 11.4564 10.9535C11.4419 10.9714 11.4283 10.99 11.4157 11.0093C11.4028 11.0284 11.3909 11.0481 11.38 11.0684C11.3692 11.0885 11.3595 11.1091 11.3509 11.1303C11.342 11.1516 11.3342 11.1733 11.3275 11.1954C11.321 11.217 11.3154 11.2395 11.3107 11.262C11.306 11.2846 11.3026 11.3074 11.3003 11.3304C11.298 11.3534 11.297 11.3763 11.297 11.3993C11.297 11.4223 11.298 11.4457 11.3003 11.4687C11.3026 11.4915 11.3061 11.5142 11.3107 11.5367C11.3154 11.5592 11.321 11.5817 11.3275 11.6037C11.3342 11.6256 11.342 11.6472 11.3509 11.6684C11.3595 11.6897 11.3692 11.7105 11.38 11.7307C11.3908 11.7509 11.403 11.7706 11.4157 11.7898C11.4283 11.8089 11.4419 11.8274 11.4564 11.8451C11.471 11.8631 11.4865 11.8803 11.5029 11.8967C11.5193 11.9126 11.5361 11.9285 11.5544 11.9431C11.572 11.9577 11.5905 11.9713 11.6097 11.9838C11.6289 11.9965 11.6486 12.0087 11.6688 12.0195C11.7095 12.0407 11.752 12.0583 11.7958 12.072C11.8178 12.0785 11.8403 12.0842 11.8628 12.0888C11.908 12.0981 11.954 12.1026 12.0002 12.1024C12.1864 12.1019 12.365 12.028 12.497 11.8967C12.5294 11.8638 12.5588 11.828 12.5847 11.7898C12.5973 11.7706 12.6091 11.7509 12.6198 11.7307C12.6306 11.7106 12.6405 11.6895 12.6494 11.6684C12.6583 11.6473 12.6658 11.6253 12.6723 11.6037C12.6793 11.5817 12.685 11.5593 12.6892 11.5367C12.6938 11.5142 12.6972 11.4915 12.6995 11.4687C12.7019 11.4456 12.7031 11.4224 12.7031 11.3992L12.7032 11.3993ZM15.047 11.3993C15.047 11.2128 14.9729 11.034 14.841 10.9021C14.7092 10.7703 14.5303 10.6962 14.3439 10.6962H14.3425C14.2035 10.6965 14.0677 10.7379 13.9522 10.8153C13.8368 10.8928 13.7469 11.0027 13.6939 11.1312C13.6409 11.2597 13.6271 11.401 13.6544 11.5373C13.6817 11.6736 13.7488 11.7988 13.8472 11.897C13.9455 11.9952 14.0708 12.062 14.2072 12.089C14.3435 12.116 14.4848 12.102 14.6132 12.0488C14.7416 11.9955 14.8514 11.9054 14.9286 11.7898C15.0058 11.6742 15.047 11.5383 15.047 11.3993Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},__("Support")))))))))},at=t=>(0,e.createElement)("div",{className:"wkit-browse-skeleton-main wkit-skeleton-main-wrap "},(0,e.createElement)("div",{className:"wkit-browse-skeleton-left-side"},(0,e.createElement)("div",{className:"wkit-skeleton-boxed wkit-browse-inner"},(0,e.createElement)("div",{className:"wkit-skeleton-line",style:{width:"100%"}}),(0,e.createElement)("div",{className:"wkit-innerbox-flex",style:{marginBottom:40}},(0,e.createElement)("div",{className:"wkit-small-img-box"}),(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("div",{className:"wkit-skeleton-line",style:{width:"100%"}}),(0,e.createElement)("div",{className:"wkit-filter-small-line"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",{className:"wkit-skeleton-line",style:{width:"100%"}}),(0,e.createElement)("div",{className:"wkit-filter-small-line"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"})))),(0,e.createElement)("div",{className:"wkit-skeleton-right-side"},(0,e.createElement)("div",{className:"wkit-skeleton-main-wrap wkit-skeleton-row"},Object.values(Re(12)).map(((t,a)=>(0,e.createElement)("div",{className:"wkit-skeleton-boxed",key:a},(0,e.createElement)("div",{className:"wkit-skeleton-inner-boxed "},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"}))),(0,e.createElement)("div",{className:"wkit-template-bg"},(0,e.createElement)("div",{className:"wkit-skeleton-square"})),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"template-page-kit-title"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",{className:"wkit-select"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"wkit-action-inner"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-img-border-rounded"})))))))))),lt=()=>(0,e.createElement)("div",{className:"wkit-skeleton-main-wrap wkit-skeleton-row"},Object.values(Re(6)).map(((t,a)=>(0,e.createElement)("div",{className:"wkit-skeleton-boxed wkit-workspace-boxed",key:a},(0,e.createElement)("div",{className:"wkit-skeleton-inner-boxed "},(0,e.createElement)("ul",null,(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-small-img-box"}))),(0,e.createElement)("div",{className:"wkit-template-bg"},(0,e.createElement)("div",{className:"wkit-skeleton-square"})),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"template-page-kit-title"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))),(0,e.createElement)("div",{className:"wkit-title-meta-content"},(0,e.createElement)("div",{className:"wkit-action-inner"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})),(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-img-border-rounded"})))))))),nt=t=>{const a=Y();if(!t.temp_id)return"";const[n,i]=(0,l.useState)(null),[s,r]=(0,l.useState)([]),[o,c]=(0,l.useState)(""),[d,m]=(0,l.useState)(!1);return(0,l.useEffect)((()=>{r(Ie(t.userData,t.temp_id,t.action))}),[]),(0,e.createElement)("div",{className:"wkit-copy-move-ws-wrap"},(0,e.createElement)("div",{className:"wkit-ws-label-heading"},__("Copy to Workspace")),(0,e.createElement)("div",{className:"wkit-ws-content dropdown-custom-width"},(0,e.createElement)("select",{className:"wkit-select-workspace "+o,onChange:e=>i(e.target.value)},(0,e.createElement)("option",{value:""},__("Select Workspace")),s&&s.map(((t,a)=>(0,e.createElement)("option",{value:t.w_id,key:a},t.title)))),(0,e.createElement)("div",{className:"wkit-copy-wrap"},d?(0,e.createElement)("button",{className:"btn-workspace-add wkit-pink-btn-class"},Fe()):(0,e.createElement)("button",{type:"button",className:"btn-workspace-add wkit-pink-btn-class",onClick:()=>(async()=>{if("move"==t.action&&t.setloading(!0),c(""),n){m(!0);let l={wid:n,template_id:t.temp_id,wstype:t.action};a&&a.id&&"move"==t.action&&(l=Object.assign({},l,{current_wid:a.id}));var e=await Je(l);e?.data?.success?(m(!1),t.wdkit_set_toast(e?.data?.message,e?.data?.description,"","success")):(m(!1),t.wdkit_set_toast(e?.data?.message,e?.data?.description,"","danger"));const i=setTimeout((()=>{t.popCloseHandler(!1)}),1e3);if("move"==t.action){let e=await Ae();t.UpdateUserData(e),t.setloading(!1)}return()=>{clearTimeout(i)}}})()},"move"==t.action?__("Move"):__("Copy")))))},it=t=>{const a=t.avg_rating,l=()=>(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.35279 0.230779L11.9212 5.68903L17.6625 6.56451C17.8112 6.58761 17.9344 6.69674 17.9807 6.84619C18.027 6.99563 17.9884 7.15959 17.8809 7.2694L13.7272 11.5171L14.7079 17.5162C14.7337 17.6709 14.6731 17.8275 14.5517 17.9199C14.4302 18.0124 14.2691 18.0246 14.1362 17.9515L9.00059 15.1197L3.86502 17.9523C3.73217 18.0257 3.57094 18.0137 3.44943 17.9212C3.32793 17.8288 3.26734 17.6722 3.29327 17.5174L4.27397 11.5171L0.119103 7.2694C0.0116435 7.15959 -0.027039 6.99563 0.0192579 6.84619C0.0655548 6.69674 0.188839 6.58761 0.337471 6.56451L6.07884 5.68903L8.64838 0.230779C8.71377 0.0896426 8.85058 0 9.00059 0C9.1506 0 9.28741 0.0896426 9.35279 0.230779Z",fill:"#F0B137"})),n=()=>(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6.53121 5.90199L9.00056 0.656576L11.4687 5.90191L11.5823 6.14313L11.8458 6.18332L17.4134 7.0323L13.3697 11.1675L13.193 11.3483L13.2338 11.5978L14.1833 17.4065L9.24202 14.6818L9.00055 14.5487L8.7591 14.6819L3.81791 17.4073L4.76742 11.5978L4.80821 11.3482L4.63141 11.1675L0.586611 7.0323L6.15421 6.18332L6.41769 6.14314L6.53121 5.90199ZM17.5236 6.91968L17.5234 6.91982L17.5236 6.91968ZM0.476449 6.91968C0.476503 6.91973 0.476557 6.91979 0.476611 6.91984L0.476541 6.91977L0.476449 6.91968Z",stroke:"#F0B137"}),(0,e.createElement)("path",{d:"M3.86502 17.9523L9.35279 15.1197V0.230779C9.28741 0.0896426 9.1506 0 9.00059 0C8.85058 0 8.71377 0.0896426 8.64838 0.230779L6.07884 5.68903L0.337471 6.56451C0.188839 6.58761 0.0655548 6.69674 0.0192579 6.84619C-0.027039 6.99563 0.0116435 7.15959 0.119103 7.2694L4.27397 11.5171L3.29327 17.5174C3.26734 17.6722 3.32793 17.8288 3.44943 17.9212C3.57094 18.0137 3.73217 18.0257 3.86502 17.9523Z",fill:"#F0B137"})),i=()=>(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6.53121 5.90199L9.00056 0.656576L11.4687 5.90191L11.5823 6.14313L11.8458 6.18332L17.4134 7.0323L13.3697 11.1675L13.193 11.3483L13.2338 11.5978L14.1833 17.4065L9.24202 14.6818L9.00055 14.5487L8.7591 14.6819L3.81791 17.4073L4.76742 11.5978L4.80821 11.3482L4.63141 11.1675L0.586611 7.0323L6.15421 6.18332L6.41769 6.14314L6.53121 5.90199ZM17.5236 6.91968L17.5234 6.91982L17.5236 6.91968ZM0.476449 6.91968C0.476503 6.91973 0.476557 6.91979 0.476611 6.91984L0.476541 6.91977L0.476449 6.91968Z",stroke:"#F0B137"}));return(0,e.createElement)("div",{className:"wdkit-star-rating"},Array.from({length:5}).map(((t,s)=>a>=s+1?(0,e.createElement)(l,{key:s}):a>=s+.5?(0,e.createElement)(n,{key:s}):(0,e.createElement)(i,{key:s}))),(0,e.createElement)("span",null,"(",t.total_rating," ",1==t.total_rating?"Review":"Reviews",")"))},st=t=>{var a=t.widgetData,n=wdkitData.WDKIT_URL;let i=t.index,s=J().pathname.split("/");const[r,o]=(0,l.useState)(!1),[c,d]=(0,l.useState)(-1),m=G(),p=e=>e?e.replace(/\s/g,"%20"):"",u=e=>{let a=t.widgetbuilder.findIndex((t=>t.w_id==e.builder));if(a>-1&&t.widgetbuilder[a]?.builder_name)return t.widgetbuilder[a].builder_name};return(0,e.createElement)("div",{className:"wkit-widgetlist-grid-content"},"active"!=a.is_activated&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate"},(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-h1"},__("Credit Limit Reached!")),(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-p"},__("This Template got disabled until you have more credits to make it active.")),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",null,__("Buy Credits")))),(!t.filter||t.filter&&"browse"!=t.filter)&&!(window.location.hash.search("#/share_with_me")>-1)&&!(window.location.hash.search("/kit/")>-1)&&(0,e.createElement)("span",{className:"wdkit-inner-boxed-remove"},(0,e.createElement)("svg",{onClick:()=>{On_OpenPopup(),setwsID(w_id)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66634 1.83203C5.44533 1.83203 5.23337 1.91983 5.07709 2.07611C4.9208 2.23239 4.83301 2.44435 4.83301 2.66536V3.4987H9.16634V2.66536C9.16634 2.44435 9.07854 2.23239 8.92226 2.07611C8.76598 1.91983 8.55402 1.83203 8.33301 1.83203H5.66634ZM10.1663 3.4987V2.66536C10.1663 2.17913 9.97319 1.71282 9.62937 1.369C9.28555 1.02519 8.81924 0.832031 8.33301 0.832031H5.66634C5.18011 0.832031 4.7138 1.02519 4.36998 1.369C4.02616 1.71282 3.83301 2.17913 3.83301 2.66536V3.4987H2.33301C2.32078 3.4987 2.30865 3.49914 2.29664 3.5H1C0.723858 3.5 0.5 3.72386 0.5 4C0.5 4.27614 0.723858 4.5 1 4.5H1.83301V13.332C1.83301 13.8183 2.02616 14.2846 2.36998 14.6284C2.7138 14.9722 3.18011 15.1654 3.66634 15.1654H10.333C10.8192 15.1654 11.2856 14.9722 11.6294 14.6284C11.9732 14.2846 12.1663 13.8183 12.1663 13.332V4.5H13C13.2761 4.5 13.5 4.27614 13.5 4C13.5 3.72386 13.2761 3.5 13 3.5H11.7027C11.6907 3.49914 11.6786 3.4987 11.6663 3.4987H10.1663ZM2.83301 13.332V4.5H11.1663V13.332C11.1663 13.553 11.0785 13.765 10.9223 13.9213C10.766 14.0776 10.554 14.1654 10.333 14.1654H3.66634C3.44533 14.1654 3.23337 14.0776 3.07709 13.9213C2.9208 13.765 2.83301 13.553 2.83301 13.332ZM7.5 7.33203C7.5 7.05589 7.27614 6.83203 7 6.83203C6.72386 6.83203 6.5 7.05589 6.5 7.33203V11.332C6.5 11.6082 6.72386 11.832 7 11.832C7.27614 11.832 7.5 11.6082 7.5 11.332V7.33203Z",fill:"#1E1E1E"})))),(0,e.createElement)("div",{className:"wkit-widget-card"},(0,e.createElement)("div",{className:"wkit-widget-card-top-part"},(0,e.createElement)("div",{className:"wkit-widget-upper-icons"},"private"==a.status&&(0,e.createElement)("div",{className:"wkit-widget-public-icon"},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:n+"/assets/images/svg/private.svg",alt:"private",draggable:!1}),(0,e.createElement)("span",{className:"wkit-widget-icon-tooltip"},__("Private"))),"public"==a.status&&(0,e.createElement)("div",{className:"wkit-widget-public-icon"},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:n+"/assets/images/svg/public.svg",alt:"public",draggable:!1}),(0,e.createElement)("span",{className:"wkit-widget-icon-tooltip"},__("Public")))),"pro"==a.free_pro&&(0,e.createElement)("div",{className:"wdkit-card-tag"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.75 16.5H5.25C4.9425 16.5 4.6875 16.245 4.6875 15.9375C4.6875 15.63 4.9425 15.375 5.25 15.375H12.75C13.0575 15.375 13.3125 15.63 13.3125 15.9375C13.3125 16.245 13.0575 16.5 12.75 16.5Z",fill:"white"}),(0,e.createElement)("path",{d:"M15.2622 4.14003L12.2622 6.28503C11.8647 6.57003 11.2947 6.39753 11.1222 5.94003L9.70468 2.16003C9.46468 1.50753 8.54218 1.50753 8.30218 2.16003L6.87718 5.93253C6.70468 6.39753 6.14218 6.57003 5.74468 6.27753L2.74468 4.13253C2.14468 3.71253 1.34968 4.30503 1.59718 5.00253L4.71718 13.74C4.82218 14.04 5.10718 14.235 5.42218 14.235H12.5697C12.8847 14.235 13.1697 14.0325 13.2747 13.74L16.3947 5.00253C16.6497 4.30503 15.8547 3.71253 15.2622 4.14003ZM10.8747 11.0625H7.12468C6.81718 11.0625 6.56218 10.8075 6.56218 10.5C6.56218 10.1925 6.81718 9.93753 7.12468 9.93753H10.8747C11.1822 9.93753 11.4372 10.1925 11.4372 10.5C11.4372 10.8075 11.1822 11.0625 10.8747 11.0625Z",fill:"white"})),(0,e.createElement)("span",null,__("Pro"))),(0,e.createElement)("div",null,s.includes("widget-browse")&&(0,e.createElement)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widget/${Be(a.title)}/${a.id}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("picture",null,a.responsive_image.map(((t,a)=>(0,e.createElement)(Se,{key:a},(0,e.createElement)("source",{media:`(min-width: ${t.size}px)`,srcSet:p(t.url)})))),(0,e.createElement)("img",{className:"wkit-widget-image-content",src:a.image,alt:"featured-img",draggable:!1}))),!s.includes("widget-browse")&&(0,e.createElement)("picture",null,a.responsive_image.map(((t,a)=>(0,e.createElement)(Se,{key:a},(0,e.createElement)("source",{media:`(min-width: ${t.size}px)`,srcSet:p(t.url)})))),(0,e.createElement)("img",{className:"wkit-widget-image-content",src:a.image,alt:"featured-img",draggable:!1})))),(0,e.createElement)("div",{className:"wkit-widget-card-bottom-part"},(0,e.createElement)("div",{className:"wkit-widget-title-content"},s.includes("widget-browse")&&(0,e.createElement)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widget/${Be(a.title)}/${a.id}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("span",null,a.title)),!s.includes("widget-browse")&&(0,e.createElement)("div",{className:"wkit-widget-title-heading"},(0,e.createElement)("span",null,a.title)),t.existingwidget.includes(a.w_unique)?(0,e.createElement)("div",{className:"wkit-widget-download-activity"},(0,e.createElement)(he,{className:"wkit-widget-eye-icon",to:"/widget-listing"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 10 11",fill:"none"},(0,e.createElement)("path",{d:"M6.49176 5.20895C6.49176 6.03395 5.82509 6.70062 5.00009 6.70062C4.17509 6.70062 3.50842 6.03395 3.50842 5.20895C3.50842 4.38395 4.17509 3.71729 5.00009 3.71729C5.82509 3.71729 6.49176 4.38395 6.49176 5.20895Z",stroke:"#19191B",strokeWidth:"1.02473",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M5.00006 8.65511C6.47089 8.65511 7.84172 7.78844 8.79589 6.28844C9.17089 5.70094 9.17089 4.71344 8.79589 4.12594C7.84172 2.62594 6.47089 1.75928 5.00006 1.75928C3.52922 1.75928 2.15839 2.62594 1.20422 4.12594C0.829224 4.71344 0.829224 5.70094 1.20422 6.28844C2.15839 7.78844 3.52922 8.65511 5.00006 8.65511Z",stroke:"#19191B",strokeWidth:"1.02473",strokeLinecap:"round",strokeLinejoin:"round"})))):(0,e.createElement)(Se,null,1==r&&c==i?(0,e.createElement)("div",{className:"wkit-widget-download-activity"},(0,e.createElement)("div",{className:"plugin-download-icon"},(0,e.createElement)("div",{className:"wb-download-loader",style:{display:"flex"}},(0,e.createElement)("div",{className:"wb-download-loader-circle"})))):(0,e.createElement)("div",{className:"wkit-widget-download-activity",onClick:e=>{(async(e,a)=>{let l=Pe();var n=!1;if("pro"==e.free_pro&&"1"==t?.credits?.pro_widget_limit?.meta_value){let a=u(e).toLowerCase();"elementor"===a?"1"==t?.credits?.access_elementor?.meta_value&&(n=!0):"gutenberg"===a?"1"==t?.credits?.access_gutenburg?.meta_value&&(n=!0):"bricks"===a&&"1"==t?.credits?.access_bricks?.meta_value&&(n=!0)}if("pro"==e.free_pro&&!n)return await t.wdkit_set_toast("pro Account require","","","danger"),!1;if(null==l)return m("/login"),!1;let i=e.id;if(d(a),window.location.hash.search("#/share_with_me")>-1)var s={type:"widget/download",w_uniq:i,u_id:t.userinfo?.id,d_type:"workspace"};else s={type:"widget/download",w_uniq:i,u_id:t.userinfo?.id};let r={type:"wkit_public_download_widget",widget_info:JSON.stringify(s)};await je(r).then((async a=>{a?.success?await(async a=>{let l=JSON.parse(a.json),n=l?.widget_data?.widgetdata?.type,i=JSON.stringify(l?.Editor_data?.html),s=JSON.stringify(l?.Editor_data?.js),r=JSON.stringify(l?.Editor_data?.css),c=a.image;var m=Object.assign({},l.widget_data.widgetdata,{r_id:a.r_id,allow_push:!0});t?.userinfo?.id!=e?.user_id&&(m=Object.assign({},l.widget_data.widgetdata,{allow_push:!1}));let p=Object.assign({},l.widget_data,{widgetdata:m});a={CardItems:{cardData:l.section_data},WcardData:p,Editor_data:l.Editor_Link,Editor_code:{Editor_codes:[l.Editor_data]}};var u="";if("elementor"===n?u=await Me("public_download",a,i,r,s,"",c).then((e=>e)):"gutenberg"===n?u=await Ve("public_download",a,i,r,s,"",c).then((e=>e)):"bricks"===n&&(u=await De("public_download",a,i,r,s,"",c).then((e=>e))),u?.api?.success){let a=[...t.existingwidget];a.push(e.w_unique);let l=await Ae();l?.success&&t.wdkit_set_meta(l?.data),t.setexistingwidget(a),t.wdkit_set_toast("Downloaded Successfully!","Start using or editing it further.","","success")}o(!1),d(-1)})(a):(await t.wdkit_set_toast(a?.message,a?.description,"","danger"),await o(!1),await d(-1))}))})(a,i),o(!0)}},(0,e.createElement)("div",{className:"plugin-download-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none"},(0,e.createElement)("path",{d:"M6.79116 0.0356951C6.73488 0.0567989 6.64344 0.117764 6.58951 0.171695C6.40192 0.359281 6.41364 0.117764 6.41364 3.55762V6.61995L5.93999 6.1463C5.43351 5.64216 5.34441 5.57885 5.14979 5.57651C4.97862 5.57651 4.86372 5.62575 4.73241 5.75237C4.53779 5.9423 4.49558 6.16271 4.60814 6.40892C4.63627 6.47223 4.92 6.77236 5.50151 7.35154C6.26592 8.11126 6.37144 8.20739 6.50744 8.2707C6.8193 8.41608 7.16164 8.41843 7.48054 8.28008C7.60481 8.22381 7.71736 8.12298 8.48646 7.36091C9.11956 6.7325 9.36342 6.47457 9.39625 6.39954C9.45487 6.27292 9.45722 6.06657 9.40329 5.93995C9.31887 5.73361 9.08205 5.57651 8.86398 5.57651C8.65295 5.57885 8.57322 5.63513 8.06205 6.1463L7.58605 6.61995V3.55762C7.58605 0.117764 7.59778 0.359281 7.41019 0.171695C7.2484 0.00755787 7.01392 -0.0416832 6.79116 0.0356951Z",fill:"#19191B"}),(0,e.createElement)("path",{d:"M1.37381 5.45235C1.22843 5.50394 1.08305 5.65635 1.03147 5.81111C0.996296 5.91897 0.991606 5.98463 1.00568 6.266C1.05726 7.38214 1.3996 8.42558 2.00926 9.33302C2.46181 10.0107 3.15118 10.6743 3.83353 11.0987C5.46083 12.1069 7.44924 12.2781 9.24302 11.5676C10.0074 11.2652 10.6827 10.8056 11.3018 10.1701C12.3405 9.10323 12.9267 7.75027 12.9947 6.26131C13.0111 5.86738 12.9807 5.74311 12.8259 5.58835C12.5961 5.35856 12.235 5.35856 12.0052 5.58835C11.8763 5.71732 11.8364 5.84628 11.82 6.20973C11.8012 6.5849 11.7543 6.90145 11.6629 7.24145C11.2103 8.93909 9.84564 10.2756 8.14096 10.6883C5.57104 11.312 2.98001 9.75275 2.32112 7.18517C2.23905 6.86159 2.16871 6.35745 2.16871 6.07842C2.16871 5.86035 2.11477 5.71028 1.99284 5.58835C1.83105 5.42421 1.59657 5.37497 1.37381 5.45235Z",fill:"#19191B"})))))),(0,e.createElement)(it,{avg_rating:t?.widgetData?.avg_rating,total_rating:t?.widgetData?.total_rating}),(0,e.createElement)("div",{className:"wkit-widget-info-content"},(0,e.createElement)("div",{className:"wkit-widget-info-icons-content"},(0,e.createElement)("div",{className:"wkit-widget-info-icons"},(0,e.createElement)("img",{src:n+"/assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,e.createElement)("label",null,t?.widgetData?.views?t.widgetData.views:0)),(0,e.createElement)("hr",{className:"wkit-icon-divider-hr"}),(0,e.createElement)("div",{className:"wkit-widget-info-icons"},(0,e.createElement)("img",{src:n+"/assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,e.createElement)("label",null,t?.widgetData?.download?t.widgetData.download:0))),(0,e.createElement)("div",{className:"wkit-widget-builder-icon"},(0,e.createElement)("img",{src:(e=>{let a=t.widgetbuilder.findIndex((t=>t.w_id==e.builder));return a>-1&&t.widgetbuilder[a]?.builder_icon?t.widgetbuilder[a].builder_icon:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`})(a),draggable:!1}),(0,e.createElement)("span",{className:"wkit-widget-builder-tooltip"},u(a)?__(u(a)):__("")))))))},rt=t=>(0,e.createElement)("div",{className:"wkit-upload-heading"},(0,e.createElement)("div",{className:"wkit-share-icon-heading"},t.svg,t.loader?(0,e.createElement)("span",{className:"wkit-upload-heading-skeleton"}):(0,e.createElement)("span",{className:"wkit-share-heading"},t.title)),t.loader?(0,e.createElement)("span",{className:"wkit-upload-heading-skeleton"}):t.custom_dropdown&&t.custom_dropdown()),ot=t=>{const[a,n]=(0,l.useState)(!1);if((0,l.useEffect)((()=>{t.OpenPopup?n(!0):n(!1)}),[t.OpenPopup]),a)return(0,e.createElement)("div",{className:"wkit-plugin-popup-main-content"},(0,e.createElement)("div",{className:"wkit-plugin-popup-outer",onClick:()=>{n(!1),t.closePopup()}}),(0,e.createElement)("div",{className:"wkit-plugin-popup-content"},(0,e.createElement)("div",{className:"wkit-plugin-popup-header"},(0,e.createElement)("span",null,t.heading),(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:()=>{n(!1),t.closePopup()}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wkit-plugin-popup-body"},t.body())))};wp.wkit_Helper={fetch_api:Oe,form_data:je,get_userinfo:Ae,Template_loop:Ke,Kits_loop:t=>{let a=t.data;return(0,e.createElement)("div",{className:"wkit-popup-template-boxed"},(0,e.createElement)("div",{className:"wkit-kit-inner-loop"},(0,e.createElement)("div",{className:"wkit-popup-top-part"},a.post_status&&(0,e.createElement)("div",{className:"template-status-pin-green"},"publish"==a.post_status?(0,e.createElement)("img",{className:"wkit-public-private-temp",src:Ze+"assets/images/svg/public.svg",alt:"public"}):(0,e.createElement)("img",{className:"wkit-public-private-temp",src:Ze+"assets/images/svg/private.svg",alt:"private"})),(0,e.createElement)("div",{className:"wdkit-temp-feature-img"},(0,e.createElement)("img",{src:a.post_image?a.post_image:Ze+"assets/images/placeholder.jpg",alt:"featured-img"}),t&&"websitekit"==t.type&&(0,e.createElement)(he,{to:"/my_uploaded/kit/"+a.id,className:"wkit-view"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M19.8791 9.49273C17.9962 5.81877 14.2684 3.33301 9.99998 3.33301C5.73158 3.33301 2.00276 5.82051 0.120814 9.49308C0.0413845 9.6502 0 9.82379 0 9.99985C0 10.1759 0.0413845 10.3495 0.120814 10.5066C2.0038 14.1806 5.73158 16.6663 9.99998 16.6663C14.2684 16.6663 17.9972 14.1788 19.8791 10.5063C19.9586 10.3491 20 10.1756 20 9.9995C20 9.82344 19.9586 9.64985 19.8791 9.49273ZM9.99998 14.9997C9.01108 14.9997 8.04438 14.7064 7.22213 14.157C6.39988 13.6076 5.75902 12.8267 5.38058 11.9131C5.00215 10.9995 4.90313 9.99413 5.09606 9.02422C5.28898 8.05432 5.76518 7.1634 6.46445 6.46414C7.16371 5.76488 8.05462 5.28867 9.02453 5.09575C9.99443 4.90282 10.9998 5.00184 11.9134 5.38028C12.827 5.75871 13.6079 6.39958 14.1573 7.22182C14.7067 8.04407 15 9.01077 15 9.99967C15.0003 10.6564 14.8712 11.3067 14.62 11.9135C14.3689 12.5202 14.0006 13.0716 13.5362 13.5359C13.0719 14.0003 12.5205 14.3686 11.9138 14.6197C11.307 14.8709 10.6567 15 9.99998 14.9997ZM9.99998 6.66634C9.70246 6.6705 9.40685 6.71476 9.12116 6.79794C9.35666 7.11796 9.46966 7.51179 9.43969 7.90799C9.40972 8.30419 9.23875 8.67653 8.95779 8.95749C8.67684 9.23844 8.3045 9.40941 7.9083 9.43938C7.51209 9.46935 7.11827 9.35635 6.79824 9.12085C6.61601 9.79224 6.64891 10.5039 6.8923 11.1556C7.1357 11.8073 7.57733 12.3663 8.15505 12.7538C8.73277 13.1414 9.41749 13.338 10.1128 13.3161C10.8081 13.2941 11.4791 13.0546 12.0312 12.6314C12.5833 12.2081 12.9888 11.6224 13.1905 10.9566C13.3923 10.2908 13.3802 9.57856 13.156 8.92001C12.9317 8.26147 12.5066 7.68983 11.9405 7.28555C11.3743 6.88127 10.6957 6.6647 9.99998 6.66634Z",className:"popup-eye"})),__("View All")))),(0,e.createElement)("div",{className:"wkit-popup-boxed-bottom"},(0,e.createElement)("div",{className:"wrapper-title"},t.data.title&&(0,e.createElement)("div",{className:"title"},t.data.title)))))},Letter_image:Te,Success_import_template:t=>{if(!t.template_id&&!t.template_id.pages&&!t.template_id.sections)return!1;if(t.template_id.pages||t.template_id.sections){if(t.template_id.pages?.length>0)var a=t.template_id.pages[0].id;else t.template_id.sections?.length>0&&(a=t.template_id.sections[0].id);let e=t?.template_list?.findIndex((e=>e.id==a));if(e>-1)var n=t?.template_list?.[e]?.title;else n=""}const[i,s]=(0,l.useState)(!1),[r,o]=(0,l.useState)({}),[c,d]=(0,l.useState)({}),[m,p]=(0,l.useState)(),[u,w]=(0,l.useState)({message:"",description:""});(0,l.useEffect)((()=>{C()}),[t.template_id]);var g=wdkitData.WDKIT_URL;const C=async()=>{let e=Pe(),a="";if(e&&e.user_email&&(a=e.user_email),t.template_id.pages&&0!=t.template_id.pages.length||t.template_id.sections&&0!=t.template_id.sections.length){if(s(!0),0!=t.template_id.pages.length){let m={type:"import_multi_template",email:a,template_ids:JSON.stringify(t.template_id.pages),editor:"wdkit"==wdkitData.use_editor&&t.template_id.builder?t.template_id.builder:wdkitData.use_editor,page_section:"pages",custom_meta:t.custom_meta_import||!1},u=await je(m);u?.success?(t.wdkit_set_toast(u?.message,u?.description,"","success"),w({message:u?.message,description:u?.description}),delete u.success,o(u),p(!0)):(w({message:u?.message,description:u?.description}),t.wdkit_set_toast(u?.message,u?.description,"","danger"))}if(0!=t.template_id.sections.length){let g={type:"import_multi_template",email:a,template_ids:JSON.stringify(t.template_id.sections),editor:"wdkit"==wdkitData.use_editor&&t.template_id.builder?t.template_id.builder:wdkitData.use_editor,page_section:"sections",custom_meta:t.custom_meta_import||!1},C=await je(g);C?.success?(t.wdkit_set_toast(C?.message,C?.description,"","success"),w({message:C?.message,description:C?.description}),delete C.success,d(C),p(!0)):(t.wdkit_set_toast(C?.message,C?.description,"","danger"),w({message:C?.message,description:C?.description}))}s(!1)}else if(t.template_id){s(!0);let v={type:"import_template",email:a,template_id:t.template_id,editor:wdkitData.use_editor,custom_meta:t.custom_meta_import||!1},b=await je(v);if(b?.success){w({message:b?.message,description:b?.description});let h=JSON.parse(b.content);if(h&&h.content&&"gutenberg"==wdkitData.use_editor){let _=wp.blocks.parse(h.content),k=JSON.stringify(_);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(k)){let E={type:"media_import",email:a,content:k,editor:wdkitData.use_editor},f=await je(E);f.data&&f.success&&(_=f.data,wp.data.dispatch("core/block-editor").insertBlocks(_))}else wp.data.dispatch("core/block-editor").insertBlocks(_);return s(!1),p(!0),()=>{clearTimeout(timeId)}}if(h&&h.content&&"elementor"==h.file_type&&"elementor"==wdkitData.use_editor){p(!0),w({message:b?.message,description:b?.description});let y=JSON.stringify(h.content);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(y)){let N={type:"media_import",email:a,content:y,editor:wdkitData.use_editor},$=await je(N);$.data&&$.success&&(h.content=$.data)}var l=window.elementor,n=$e;if(l){if(void 0!==n){function L(e){return e.forEach((function(e){e.id=elementorCommon.helpers.getUniqueId(),0<e.elements.length&&L(e.elements)})),e}for(var i=0;i<h.content.length;i++){var r={elType:h.content[i].elType,settings:h.content[i].settings};r.elements=L(h.content[i].elements),n.run("document/elements/create",{container:l.getPreviewContainer(),model:r,options:{index:0}})}}else{var c=new Backbone.Model({getTitle:function(){return"Wdesignkit Import"}});for(n.channels.data.trigger("template:before:insert",c),i=0;i<h.content.length;i++)n.getPreviewView().addChildElement(h.content[i],{index:0});n.channels.data.trigger("template:after:insert",{})}return s(!1),()=>{clearTimeout(timeId)}}}else s(!1)}else w({message:b?.message,description:b?.description}),s(!1)}else s(!1)},v=(a,l)=>{var n=(0,e.createElement)("img",{src:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`});if(t.template_list){let a=t.template_list.findIndex((e=>e.id==l));n=a>-1&&t.template_list[a].post_image?(0,e.createElement)("img",{src:t.template_list[a].post_image}):(0,e.createElement)("img",{src:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`})}return(0,e.createElement)("div",{className:"wkit-success-list-item"},(0,e.createElement)("div",{className:"wkit-plugin-img-title-wrapper"}," ",n,(0,e.createElement)("div",{className:"heading"},a[l].title)),(0,e.createElement)("a",{href:a[l].view,target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.666016 8.00033C0.666016 8.00033 3.33268 2.66699 7.99935 2.66699C12.666 2.66699 15.3327 8.00033 15.3327 8.00033C15.3327 8.00033 12.666 13.3337 7.99935 13.3337C3.33268 13.3337 0.666016 8.00033 0.666016 8.00033Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M8 10C9.10457 10 10 9.10457 10 8C10 6.89543 9.10457 6 8 6C6.89543 6 6 6.89543 6 8C6 9.10457 6.89543 10 8 10Z",stroke:"#2A2A96",strokeLinecap:"round",strokeLinejoin:"round"})),__("View")))};return(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"popup-header"},__("Import Templates")),(0,e.createElement)("div",{className:"success-body"},i?(0,e.createElement)("div",{className:"import-data-loading"},(0,e.createElement)("span",null,n," Importing..."),(0,e.createElement)("div",{className:"wkit-import-progressBar-loader"},(0,e.createElement)("div",{className:"wkit-import-data-progressBar-thumb"}))):(0,e.createElement)("div",{className:"success-body"},(0,e.createElement)("div",{className:"success-icon-temp"},m?(0,e.createElement)("svg",{className:"wkit-success-icon",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none"},(0,e.createElement)("path",{d:"M37.8721 23.3124L37.8604 23.3181C36.4893 24.3696 35.9084 26.1589 36.3965 27.8147L36.4022 27.8263C37.1807 30.4581 35.252 33.1129 32.5098 33.1827H32.4982C30.767 33.2292 29.2449 34.3329 28.6697 35.9654V35.9712C27.7518 38.5622 24.6264 39.5788 22.3664 38.016C20.9632 37.0578 19.1081 37.0078 17.6317 38.016H17.6259C15.3661 39.573 12.2405 38.5621 11.3284 35.9653C10.7481 34.3288 9.22824 33.229 7.49996 33.1826H7.48832C4.74629 33.1128 2.81746 30.458 3.59598 27.8263L3.60176 27.8146C4.08965 26.1588 3.50871 24.3695 2.13777 23.3181L2.12613 23.3123C-0.052461 21.6391 -0.052461 18.3626 2.12613 16.6895L2.13777 16.6837C3.50871 15.6322 4.08965 13.8428 3.59598 12.1871V12.1755C2.8116 9.54385 4.74621 6.88885 7.48832 6.81916H7.49996C9.22535 6.77267 10.7532 5.66885 11.3284 4.03642V4.03064C12.2404 1.43963 15.3661 0.422987 17.6259 1.9858H17.6317C19.055 2.9676 20.9372 2.9676 22.3664 1.9858C24.6491 0.409471 27.7572 1.45517 28.6697 4.03064V4.03642C29.2449 5.66306 30.7669 6.77275 32.4982 6.81916H32.5098C35.2519 6.88885 37.1807 9.54385 36.4022 12.1755L36.3965 12.1871C35.9084 13.8428 36.4893 15.6322 37.8604 16.6837L37.8721 16.6895C40.0507 18.3626 40.0507 21.6392 37.8721 23.3124Z",fill:"#3EB655"}),(0,e.createElement)("path",{d:"M19.9994 30.821C25.976 30.821 30.821 25.976 30.821 19.9994C30.821 14.0227 25.976 9.17773 19.9994 9.17773C14.0227 9.17773 9.17773 14.0227 9.17773 19.9994C9.17773 25.976 14.0227 30.821 19.9994 30.821Z",fill:"#8BD399"}),(0,e.createElement)("path",{opacity:"0.1",d:"M28.3088 13.0728C26.437 11.533 24.0423 10.6074 21.4316 10.6074C15.4551 10.6074 10.6074 15.4551 10.6074 21.4316C10.6074 24.0423 11.533 26.437 13.0727 28.3088C10.6945 26.325 9.17969 23.3409 9.17969 19.9998C9.17969 14.0231 14.0232 9.17969 19.9998 9.17969C23.3409 9.17969 26.325 10.6945 28.3088 13.0728Z",fill:"black"}),(0,e.createElement)("path",{d:"M17.4247 24.2359L15.0317 21.69C14.405 21.0231 14.4373 19.9746 15.104 19.3479C15.7706 18.7204 16.8196 18.7541 17.4458 19.4205L18.5881 20.6353L23.4438 15.0855C24.0457 14.3967 25.0926 14.3269 25.7819 14.9296C26.4706 15.5323 26.5401 16.5789 25.9377 17.2676L19.8787 24.1923C19.2333 24.9292 18.0941 24.9485 17.4247 24.2359Z",fill:"white"})):(0,e.createElement)("img",{src:g+"assets/images/jpg/error.png",alt:"success-icon"})),m?(0,e.createElement)("div",{className:""},(0,e.createElement)("div",{className:"wkit-success-heading wkit-get-success"},u.message),(0,e.createElement)("div",{className:"wkit-desc"},u.description)):(0,e.createElement)("div",{className:""},(0,e.createElement)("div",{className:"wkit-success-heading"},u.message),(0,e.createElement)("div",{className:"wkit-desc"},(0,e.createElement)("span",null,u.description),(0,e.createElement)("a",{href:"https://blog.wdesignkit.com/documents/how-to-manage-licence-in-wdesignkit/#Manage-Licence",style:{color:"#040483",fontWeight:"500"},target:"_blank",rel:"noopener noreferrer"},"Why Failed ?"))),0==i&&(Object.keys(r).length>0||Object.keys(c).length>0)&&(0,e.createElement)("div",{className:"wkit-success-wrapper"},r&&Object.keys(r).length>0&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-success-list-content"},(0,e.createElement)("div",{className:"wkit-success-col"},"wdkit"!=wdkitData.use_editor&&(0,e.createElement)("div",{className:"wkit-plugin-success-heading"},__("Pages (")+Object.keys(r).length+")"),r[t.template_id.pages[0].id]&&v(r,t.template_id.pages[0].id)))),c&&Object.keys(c).length>0&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-success-list-content"},(0,e.createElement)("div",{className:"wkit-success-col"},"wdkit"!=wdkitData.use_editor&&(0,e.createElement)("div",{className:"wkit-plugin-success-heading"},__("Sections (")+Object.keys(c).length+")"),c?.[t.template_id?.sections?.[0]?.id]&&v(c,t.template_id.sections[0].id))))))))},Plugin_missing:t=>{var a=wdkitData.WDKIT_URL;if(t.pageNow&&"browse"==t.pageNow){const e=t.navigation;let a=Pe(),l="";if(!a||!a.user_email)return void e("/login");l=a.user_email}if(!t.template_id&&!t.templateData)return"";let n="",i=[];Object.values(t.templateData).map((e=>{e.id==Number(t.template_id)?(n=e,i.push(e)):t.template_id.pages&&t.template_id.sections&&(t.template_id.pages.length>0&&t.template_id.pages.some((t=>Number(t.id)==Number(e.id)))&&(n=e,i.push(e)),t.template_id.sections.length>0&&t.template_id.sections.some((t=>Number(t.id)==Number(e.id)))&&(n=e,i.push(e)))}));const[s,r]=(0,l.useState)("step-1"),[o,c]=(0,l.useState)([]),[d,m]=(0,l.useState)(!1),[p,u]=(0,l.useState)(""),[w,g]=(0,l.useState)(!1),[C,v]=(0,l.useState)([]),[b,h]=(0,l.useState)("yes"),[_,k]=(0,l.useState)(!1),[E,f]=(0,l.useState)("false");(0,l.useEffect)((()=>{y()}),[t.template_id]);const y=async()=>{m(!0);let e=[];if(t.pluginData&&i.length>0)if(i.map((a=>{Object.values(t.pluginData).map(((t,l)=>{a.plugins_id.includes(t.p_id)&&(e.findIndex((e=>e.p_id==t.p_id))>-1||(e=[...e,t]))}))})),e){let t={type:"check_plugins_depends",plugins:JSON.stringify(e),editor:wdkitData.use_editor},a=await je(t);a.data&&a.success?(c(a.data.plugins),m(!1),Object.values(a.data.plugins).map(((e,t)=>{e.status&&(C[t]=e.status)})),await v(C),N()):(c([]),m(!1))}else m(!1);else m(!1)},N=()=>{if(0==C.length)f("false");else{var e=0;C.map((t=>{"active"==t&&(e+=1)})),C.length==e?f("true"):f("false")}},$=async(e,t)=>{if("all"==e)for(let e of o){let t=Object.values(document.querySelectorAll(".wkit-pro-manually"));t.length>0&&t.map((e=>{"none"!=e.style.display&&""!=e.style.display||(e.style.display="flex",setTimeout((()=>{e.style.display="none"}),2e3))})),"active"!=e.status&&"manually"!=e.status&&(await u(e.p_id),await g(!0)),await L(e,2),await u(""),await g(!1)}else"single"==e&&(await u(t?.p_id),await g(!0),await L(t,2),await u(""),await g(!1))},L=async(e,t)=>{if(e&&e.p_id&&"active"!=e.status){let a={type:"install_plugins_depends",plugins:JSON.stringify(e),editor:wdkitData.use_editor},l=await je(a);if(null==l?.success||null==l?.p_id){if(Number(t)<3){let a=t?t+1:1;await L(e,a)}}else l?.success&&o&&e.p_id==l.p_id&&(Object.values(o).map(((e,t)=>{e.p_id==l.p_id&&(o[t].status=l.status),e.status&&(C[t]=e.status)})),await v(C),N())}},x=e=>{if(e){let e=!1;"yes"==b&&(e=!0),r("step-1"),t.handlerSuccessImport(!0,e)}},H=(t,l)=>{var n;n=t[0].post_image&&t[0].post_image.indexOf("wdesignkit")>-1?(0,e.createElement)("img",{src:t[0].post_image}):a+"assets/images/placeholder.jpg";var i="";t[0].title&&(i=(0,e.createElement)("span",{className:"wkit-download-temp-title"},t[0].title));var s="";if(t[0].wp_post_type!=l.type||void 0!==l.change&&0!=l.change)s="";else{let e="";wdkitData.post_type_list[l.type]&&(e=wdkitData.post_type_list[l.type])}return(0,e.createElement)("div",{className:"section-inner-list"},n,i,s)},M=(e=!0)=>{"step-1"!=s||"kit_page"!=t.type&&"wdkit"!=t.type?"step-1"==s&&"kit_page"!=t.type&&"wdkit"!=t.type?(r("step-3"),x(!!e)):"step-2"!=s||0==t.template_id.pages.length&&0==t.template_id.sections.length||(r("step-3"),x(!!e)):r("step-2")},V=(a,l,n)=>{var i;return i=l?.wp_post_type?l.wp_post_type:Object.keys(wdkitData.post_type_list).includes(l?.type)?l.type:"page",(0,e.createElement)(Se,null,(0,e.createElement)("select",{className:"wkit-select",value:i,onChange:e=>{var a,i,s,r;a=n,i="type",s=e.target.value,r=l.id,"pages"==a&&r&&t.template_id.pages.map(((e,a)=>{e.id===r&&(t.template_id.pages[a][i]=s,t.template_id.pages[a].wp_post_type=s,t.template_id.pages[a].change=!0)})),"sections"==a&&r&&t.template_id.sections.map(((e,a)=>{e.id===r&&(t.template_id.sections[a][i]=s,t.template_id.sections[a].wp_post_type=s,t.template_id.sections[a].change=!0)})),k(!_)}},wdkitData.post_type_list&&Object.entries(wdkitData.post_type_list).map((([t,a],l)=>(0,e.createElement)(Se,{key:l},(0,e.createElement)("option",{value:t},a))))))};return(0,e.createElement)("div",{className:"popup-missing"},"step-1"==s&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"popup-header"},__("Plugin Missing")),d&&(0,e.createElement)("div",{className:"import-data-loading"},(0,e.createElement)((()=>(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"wkit-select-main"},(0,e.createElement)("div",{className:"wkit-skeleton-label",style:{width:"50%",marginTop:"20px",marginBottom:"40px"}}),(0,e.createElement)("div",{className:"wkit-save-plugin-wrapper"},[1,2,3,4].map(((t,a)=>(0,e.createElement)("div",{className:"wkit-plugin-list",key:a},(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-plugin-skeleton"},(0,e.createElement)("div",{className:"wkit-small-img-box"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-small-check-box"}))))))),(0,e.createElement)("div",{className:"wkit-btn-right"},(0,e.createElement)("div",{className:"wkit-skeleton-label"}),(0,e.createElement)("button",{className:"wkit-btn-skeleton",style:{width:"120px",height:"50px"}}))))),null)),!d&&(()=>{var l="";o.length>0&&t.pluginData&&(l=(0,e.createElement)("div",{className:"wkit-pluginMissing-text"},__("To download this template you need to install below listed plugin")));var n;n=o.length>0&&t.pluginData?Object.values(o).map(((t,l)=>{return(0,e.createElement)(Se,{key:l},(0,e.createElement)("div",{className:"wkit-plugin-list-item"},(0,e.createElement)("div",{className:"wkit-plugin-img-title-wrapper"},(0,e.createElement)("div",{className:"wkit-plugin-image"},(0,e.createElement)("img",{src:t.plugin_icon,alt:"plugin-icon"})),(0,e.createElement)("div",{className:"wkit-plugin-name"},t.plugin_name)),(n=t.status||"",i=t.p_id,s=t,w&&!n||p&&p==i?(0,e.createElement)("div",{className:"wkit-loading-check"},(0,e.createElement)("svg",{width:"15",height:"15",xmlns:"http://www.w3.org/2000/svg",style:{background:"0 0",display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,e.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#fff",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544"},(0,e.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))):"active"==n?(0,e.createElement)("div",{className:"wkit-complete-check"},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.49554 5.97363L3.98608 8.46417L10.4615 1.98877",stroke:"white",strokeWidth:"1.99243",strokeLinecap:"round",strokeLinejoin:"round"}))):"inactive"==n?(0,e.createElement)("a",{className:"",onClick:()=>{$("single",s)}},(0,e.createElement)("img",{className:"wkit-download-template",src:a+"assets/images/svg/popup-download.svg",alt:"popup-logo-img",draggable:!1})):"warning"==n?(0,e.createElement)("div",{className:"wkit-icon-white-bg"},(0,e.createElement)("span",{className:"wkit-tooltip"},__("Something won't wrong")," ",(0,e.createElement)("a",{href:"#",style:{color:"white",textDecoration:"underline"}},__("Try Again"))),(0,e.createElement)("a",null,(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 15C4.14062 15 1 11.8594 1 8C1 4.14062 4.14062 1 8 1C11.8594 1 15 4.14062 15 8C15 11.8594 11.8594 15 8 15ZM8 5.75C8.41406 5.75 8.75 5.41437 8.75 5C8.75 4.58594 8.41406 4.25 8 4.25C7.58594 4.25 7.25 4.58437 7.25 5C7.25 5.41563 7.58437 5.75 8 5.75ZM9.5 11H8.5V7.5C8.5 7.225 8.275 7 8 7H7C6.725 7 6.5 7.225 6.5 7.5C6.5 7.775 6.725 8 7 8H7.5V11H6.5C6.225 11 6 11.225 6 11.5C6 11.775 6.225 12 6.5 12H9.5C9.77612 12 10 11.7761 10 11.5C10 11.225 9.775 11 9.5 11Z",className:"wkit-icon-white"})))):"manually"==n?(0,e.createElement)("div",{className:"wkit-icon-orange-bg"},(0,e.createElement)("span",{className:"wkit-tooltip wkit-pro-manually"},__("Install Manually."),(0,e.createElement)("a",{href:"#",style:{color:"white",textDecoration:"underline"}},__("Learn How?"))),(0,e.createElement)("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 15C4.14062 15 1 11.8594 1 8C1 4.14062 4.14062 1 8 1C11.8594 1 15 4.14062 15 8C15 11.8594 11.8594 15 8 15ZM8 5.75C8.41406 5.75 8.75 5.41437 8.75 5C8.75 4.58594 8.41406 4.25 8 4.25C7.58594 4.25 7.25 4.58437 7.25 5C7.25 5.41563 7.58437 5.75 8 5.75ZM9.5 11H8.5V7.5C8.5 7.225 8.275 7 8 7H7C6.725 7 6.5 7.225 6.5 7.5C6.5 7.775 6.725 8 7 8H7.5V11H6.5C6.225 11 6 11.225 6 11.5C6 11.775 6.225 12 6.5 12H9.5C9.77612 12 10 11.7761 10 11.5C10 11.225 9.775 11 9.5 11Z",className:"wkit-icon-white"}))):void 0)));var n,i,s})):(0,e.createElement)("div",{className:"wkit-no-install-plugin"},(0,e.createElement)("img",{src:a+"assets/images/jpg/no-plugin.png",className:"no-plugin-img",alt:"no-plugin"}),(0,e.createElement)("h6",{className:"no-plugin-title"},__("No need to install any Plugin.")),(0,e.createElement)("p",{className:"no-plugin-desc"},__("You have selected design which doesn't need any plugin to install. Press Next.")));var i="";return 1!=d&&(i="false"==E&&o.length>0?(0,e.createElement)(Se,null,(0,e.createElement)("button",{className:"wkit-download-select",onClick:e=>M()},(0,e.createElement)("span",null,__("Continue Anyway")),(0,e.createElement)("div",{className:"wkit-continue-toot-tip"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8 0C3.58125 0 0 3.58125 0 8C0 12.4187 3.58125 16 8 16C12.4187 16 16 12.4187 16 8C16 3.58125 12.4187 0 8 0ZM8 15C4.14062 15 1 11.8594 1 8C1 4.14062 4.14062 1 8 1C11.8594 1 15 4.14062 15 8C15 11.8594 11.8594 15 8 15ZM8 5.75C8.41406 5.75 8.75 5.41437 8.75 5C8.75 4.58594 8.41406 4.25 8 4.25C7.58594 4.25 7.25 4.58437 7.25 5C7.25 5.41563 7.58437 5.75 8 5.75ZM9.5 11H8.5V7.5C8.5 7.225 8.275 7 8 7H7C6.725 7 6.5 7.225 6.5 7.5C6.5 7.775 6.725 8 7 8H7.5V11H6.5C6.225 11 6 11.225 6 11.5C6 11.775 6.225 12 6.5 12H9.5C9.77612 12 10 11.7761 10 11.5C10 11.225 9.775 11 9.5 11Z",className:"wkit-info-svg"})),(0,e.createElement)("span",{className:"wkit-continue-toot-tip-text"},__("It will skip plugin installation and your imported page might not look as expected")))),(0,e.createElement)("button",{key:Math.random().toString(),className:"wkit-download-all wkit-btn-class",disabled:!!w,onClick:()=>$("all")},__(w?"Installing":"Install All"))):(0,e.createElement)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{M()}},__("Next"))),(0,e.createElement)("div",{className:"popup-body"},l,(0,e.createElement)("div",{className:o.length>0&&t.pluginData?"plugin-wrapper":"plugin-wrapper no-plugin"},n),(0,e.createElement)("div",{className:"wkit-button-popup"},i))})()),("kit_page"==t.type||"wdkit"==t.type)&&"step-2"==s&&(0,e.createElement)(Se,null,(0,e.createElement)("div",{className:"popup-header"},__("Import Templates")),(0,e.createElement)("div",{className:"popup-body"},(0,e.createElement)("div",{className:"kit-type-flex"},0!=t.template_id?.pages?.length&&(0,e.createElement)("div",{className:"wkit-kit-select-content"},(0,e.createElement)("span",{className:"wkit-select-count"},"Pages: ",t.template_id?.pages?.length),(0,e.createElement)("div",{className:"kit-type-col"},(()=>{if(0!=t.template_id.pages.length){let a=Object.entries(t.template_id.pages).map((([a,l],n)=>{let i=t.templateData.filter((e=>l.id==e.id));return(0,e.createElement)(Se,{key:n},(0,e.createElement)("li",{className:"kit-page-list"},H(i,l),(0,e.createElement)("div",{className:"section-page-post-type"},V(0,l,"pages"))))}));return(0,e.createElement)(Se,null,"wdkit"!=wdkitData.use_editor&&(0,e.createElement)("div",{className:"kit-type-heading"},__("List of Pages ")+"("+t.template_id.pages.length+")"),(0,e.createElement)("ul",{className:"kit-pages-sec-lists"},a))}})()," ")),0!=t.template_id?.sections?.length&&(0,e.createElement)("div",{className:"wkit-kit-select-content"},(0,e.createElement)("span",{className:"wkit-select-count"},"Sections: ",t.template_id?.sections?.length),(0,e.createElement)("div",{className:"kit-type-col"}," ",(()=>{if(0!=t.template_id.sections.length){let a=Object.entries(t.template_id.sections).map((([a,l],n)=>{let i=t.templateData.filter((e=>l.id==e.id));return(0,e.createElement)(Se,{key:n},(0,e.createElement)("li",{className:"kit-section-list"},H(i,l),(0,e.createElement)("div",{className:"section-page-post-type"},V(0,l,"sections"))))}));return(0,e.createElement)(Se,null,"wdkit"!=wdkitData.use_editor&&(0,e.createElement)("div",{className:"kit-type-heading"},__("List of Sections ")+"("+t.template_id.sections.length+")"),(0,e.createElement)("ul",{className:"kit-pages-sec-lists"},a))}})()," "))),(0,e.createElement)("div",{className:"wkit-next-step-second"},(0,e.createElement)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{M()}},__("Import"))))))},Popup_body_data:()=>{var t=wdkitData.WDKIT_URL;return(0,e.createElement)("div",{className:"popup_option_main"},(0,e.createElement)("div",{className:"wdesignkit-dropdown"},(0,e.createElement)("div",{className:"wdesign_heading"},__("Page Builder")),(0,e.createElement)("button",{className:"wdesignkit-openbtn"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1"),(0,e.createElement)("img",{src:t+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})),(0,e.createElement)("div",{className:"wdesignkit-dropdown-content"},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 2")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 3")))),(0,e.createElement)("div",{className:"wdesignkit-dropdown"},(0,e.createElement)("div",{className:"wdesign_heading"},__("Section")),(0,e.createElement)("button",{className:"wdesignkit-openbtn"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1"),(0,e.createElement)("img",{src:t+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})),(0,e.createElement)("div",{className:"wdesignkit-dropdown-content"},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 2")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 3")))),(0,e.createElement)("div",{className:"wdesignkit-dropdown"},(0,e.createElement)("div",{className:"wdesign_heading"},__("Page")),(0,e.createElement)("button",{className:"wdesignkit-openbtn"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1"),(0,e.createElement)("img",{src:t+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})),(0,e.createElement)("div",{className:"wdesignkit-dropdown-content"},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 2")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 3")))),(0,e.createElement)("div",{className:"wdesignkit-dropdown"},(0,e.createElement)("div",{className:"wdesign_heading"},__("Kits")),(0,e.createElement)("button",{className:"wdesignkit-openbtn"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1"),(0,e.createElement)("img",{src:t+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})),(0,e.createElement)("div",{className:"wdesignkit-dropdown-content"},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 2")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 3")))),(0,e.createElement)("div",{className:"wdesignkit-dropdown"},(0,e.createElement)("div",{className:"wdesign_heading"},__("Plugin Required")),(0,e.createElement)("button",{className:"wdesignkit-openbtn"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1"),(0,e.createElement)("img",{src:t+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})),(0,e.createElement)("div",{className:"wdesignkit-dropdown-content"},(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 1")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 2")),(0,e.createElement)("a",{href:"#"},(0,e.createElement)("img",{src:t+"assets/images/svg/elementor.svg",alt:"dashborad img"}),__("Option 3")))))},Wkit_user_details:Ye,checkBuilder:(e,t="all",a)=>{let l=!1;if("wdkit"==wdkitData.use_editor&&"all"==t)return!0;if("wdkit"!=wdkitData.use_editor&&"all"==t&&(t=wdkitData.use_editor),window.userData&&window.userData.data&&window.userData.data.builder&&e){let a=window.userData.data.builder;Object.entries(a).forEach((([a,n])=>{n.p_id==Number(e)&&n.original_slug==t&&(l=!0)}))}else{let n=a;n&&Object.entries(n).forEach((([a,n])=>{n.p_id==Number(e)&&n.original_slug==t&&(l=!0)}))}return l},loadingIcon:()=>(0,e.createElement)("div",{className:"wkit-loading-check"},(0,e.createElement)("img",{style:{width:"125px",height:"125px"},src:Ze+"assets/images/jpg/wdkit_loader.gif"})),Add_workspace:t=>{const a=()=>{document.querySelector(".wkit-model-transp.wkit-popup-show")&&document.querySelector(".wkit-model-transp.wkit-popup-show").classList.remove("wkit-popup-show"),t.closePopUp()},[n,i]=(0,l.useState)(""),[s,r]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),[d,m]=(0,l.useState)("");return(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{a()}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wdesignkit-model-content"},(0,e.createElement)("div",{className:"popup-header"},__("Add New Workspace")),(0,e.createElement)("div",{className:"popup-body wkit-AddWp-popup-body"},(0,e.createElement)("label",{className:"wkit-popup-content-title"},__("Workspace Name")),(0,e.createElement)("input",{type:"text",name:"workspace-name",className:"wkit-search-share "+d,placeholder:__("Enter Workspace Name"),value:n,onChange:e=>{(e.target.value.length<=100||(t.Toast(["Limit Reached","Limit Reached","","danger"]),0))&&i(e.target.value)}}),s?(0,e.createElement)("button",{className:"wkit-add-workspace-btn wkit-btn-class"},Fe()):(0,e.createElement)("button",{className:"wkit-add-workspace-btn wkit-btn-class",onClick:()=>(async()=>{if("manage"==t.type&&t.setLoading(!0),m(""),n){r(!0);let l={builder:window.wdkit_editor,title:n,wstype:"add"};var e=await Je(l);if(e?.data?.success){let e=await Ae();c(!0),r(!1),t.Toast("Workspace is added","Workspace add successfully","success");const l=setTimeout((()=>{c(!1),a()}),1e3);return t.UpdateUserData(e),()=>{clearTimeout(l)}}t.Toast("workspace not added","workspace can not be add! check your limit","danger"),c(!1),r(!1)}else m("wkit-error-red");"manage"==t.type&&t.setLoading(!1)})()},__("Next"))))))},Popup_Content:qe,select_WorkSpace:Ie,manage_WorkSpace_Api:Je,wkit_getCategoryList:e=>{if(window.wKit_Category)return window.wKit_Category;if(window.wKit_Category=[],e&&e.length>0){const t=t=>{let a=[];return""!=t&&Object.entries(e).map((([e,l])=>{l.parent===t&&(a[l.term_id]=l)})),a};Object.entries(e).map((([e,a])=>{0==a.parent&&(window.wKit_Category[a.term_name]=t(a.term_id))}))}return window.wKit_Category},wkitGetBuilder:(e,t)=>{let a="";return e&&t&&Object.entries(t).map((([t,l])=>{Number(l.p_id)===Number(e)&&(a=l.original_slug)})),a||""},wkit_set_user_login:e=>{e&&localStorage.setItem("wdkit-login",JSON.stringify(e))},wkit_get_user_login:Pe,wkit_logout:We};const{__:ct}=wp.i18n,{form_data:dt,wkit_set_user_login:mt,get_userinfo:pt,wkit_get_user_login:ut}=wp.wkit_Helper,wt=t=>{var a=wdkitData.WDKIT_ASSETS;const n=G(),[i,s]=(0,l.useState)(),[r,o]=(0,l.useState)(),[c,d]=(0,l.useState)(!1),[m,p]=(0,l.useState)(!1),[u,w]=(0,l.useState)(!1),[g,C]=(0,l.useState)(!1);(0,l.useEffect)((()=>{let e=ut();e?.success&&n("/my_uploaded")}),[]);const v=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},b=t=>m==t?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,(0,e.createElement)("span",{className:"wkit-loader"}),(0,e.createElement)("span",{className:"wkit-loader"}),(0,e.createElement)("span",{className:"wkit-loader"}))):(0,e.createElement)("span",null,ct("Continue with")," ",ct(t));return(0,e.createElement)("div",{className:"wkit-login"},(0,e.createElement)("div",{className:"wkit-login-right-side"},(0,e.createElement)("div",{className:"login-right-heading"},(0,e.createElement)("div",{className:"login-right-h2"},ct("Extend Your Design Capacity with"),(0,e.createElement)("span",null,(0,e.createElement)("img",{src:a+"images/jpg/Wdesignkit-full-logo-original.png",alt:"Wdesignkit",draggable:"false"}))),(0,e.createElement)("div",{className:"login-right-p"},ct("No time to design? Get Wdesignkit today and jump-start your WordPress websites with Elementor, Gutenberg and Bricks.")),(0,e.createElement)("img",{src:a+"images/jpg/carousel-slider.png",alt:"Login",className:"login-right-img",draggable:!1}))),(0,e.createElement)("div",{className:"wkit-login-left-side"},(0,e.createElement)("div",{className:"wkit-login-heading"},(0,e.createElement)("span",null,ct("Login to WDesignKit")),(0,e.createElement)("div",{className:"wkit-login-desc"},ct("Explore, Download or Manage your Designs and Widgets."))),(0,e.createElement)("div",{className:"wkit-wb-btns"},(0,e.createElement)("button",{className:"wkit-wb-btn",onClick:e=>(async e=>{var a=v();p("Google");var l=`${wdkitData.wdkit_server_url}api/auth/google/callback-plugin`,i=window.location.origin+window.location.pathname,s=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${l}&response_type=code&scope=email%20profile&state=${a}`,r=screen.height/2-260,o=screen.width/2-335,c=window.open(s,"","location=1,status=1,resizable=yes,width=670,height=520,top="+r+",left="+o);const d=async()=>{if(c&&!c.closed)setTimeout(d,100);else{let l={type:"social_login",state:a,login_type:"normal",site_url:i};var e=await dt(l).then((async e=>e));if(1==e?.data?.success){let a=e?.data?.user?.user_email,l=e?.data?.success,i="Login successfully",s=e?.data?.token;const r={messages:i,success:l,token:s,user_email:a,login_type:"normal"};s&&a&&await mt(r);let o=await pt();t.wdkit_set_meta(o.data),t.wdkit_set_toast([e.messages,e.description,"","success"]),t.LoginRoutes?n(`${t.LoginRoutes}`):n("/my_uploaded")}else t.wdkit_set_toast(["Invalid Login Details","Login Error: Check your details and try again.","","danger"]);p(!1)}};setTimeout(d,100)})()},(0,e.createElement)("img",{src:a+"images/svg/google.svg",alt:"google",draggable:!1}),b("Google")),(0,e.createElement)("button",{className:"wkit-wb-btn",onClick:e=>(async e=>{var a=v();p("Facebook");var l=encodeURIComponent(`${wdkitData.wdkit_server_url}api/auth/facebook/callback-plugin`),i=window.location.origin+window.location.pathname,s=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${l}&response_type=code&scope=email&state=${a}`,r=screen.height/2-260,o=screen.width/2-335,c=window.open(s,"","location=1,status=1,resizable=yes,width=670,height=520,top="+r+",left="+o);const d=async()=>{if(c&&!c.closed)setTimeout(d,100);else{let l={type:"social_login",state:a,site_url:i};var e=await dt(l).then((async e=>e));if(1==e?.data?.success){let a=e?.data?.user?.user_email,l=e.data.success,i="Login successfully",s=e.data.token;const r={messages:i,success:l,token:s,user_email:a,login_type:"normal"};s&&a&&await mt(r);let o=await pt();t.wdkit_set_meta(o.data),t.wdkit_set_toast([e.messages,e.description,"","success"]),t.LoginRoutes?n(`${t.LoginRoutes}`):n("/my_uploaded")}else t.wdkit_set_toast(["Invalid Login Details","Login Error: Check your details and try again.","","danger"]);p(!1)}};setTimeout(d,100)})()},(0,e.createElement)("img",{src:a+"images/svg/facebook.svg",alt:"facebook",draggable:!1}),b("Facebook"))),(0,e.createElement)("div",{className:"wkit-wb-btn-api"},(0,e.createElement)(he,{to:"/login-api",className:"wkit-wb-login-api-link"},(0,e.createElement)("button",{className:"wkit-wb-apiKey"},(0,e.createElement)("img",{src:a+"images/svg/login-api.svg",alt:"login-api",draggable:!1}),(0,e.createElement)("span",null,ct("Connect via API key"))))),(0,e.createElement)("div",{className:"wkit-wb-main-line"},(0,e.createElement)("div",{className:"wkit-wb-sign-email"},(0,e.createElement)("hr",{className:"wkit-wb-line"}),(0,e.createElement)("a",{className:"wkit-wb-line-text"},ct("Or sign Up with Email")),(0,e.createElement)("hr",{className:"wkit-wb-line"}))),(0,e.createElement)("form",{autoComplete:"off",className:"wkit-wb-form",onSubmit:async e=>{if(e.preventDefault(),!i)return void t.wdkit_set_toast(["Please fill all fields","Missing information! Complete all fields.","","danger"]);if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(i))return void t.wdkit_set_toast(["Invalid Login Details","Login Error: Check your details and try again.","","danger"]);if(!r)return void t.wdkit_set_toast(["Please fill all fields","Missing information! Complete all fields.","","danger"]);if(d(!0),u)var a="normal";else a="session";let l={type:"wkit_login",user_email:i,user_password:r,login_type:a,site_url:window.location.origin+window.location.pathname},s=await dt(l).then((e=>e));if(s?.success){mt(u?Object.assign({},{user_email:i},s,{login_type:"normal"}):Object.assign({},{user_email:i},s,{login_type:"session"}));let e=await pt();return t.wdkit_set_meta(e.data),s.messages&&t.wdkit_set_toast([s?.messages,s?.description,"","success"]),d(!1),void(t.LoginRoutes?n(`${t.LoginRoutes}`):n("/browse"))}return s?.message&&t.wdkit_set_toast([s?.message,s?.description,"","danger"]),void d(!1)}},(0,e.createElement)("div",{className:"wkit-form-group"},(0,e.createElement)("label",{className:"wkit-label"},ct("Email")),(0,e.createElement)("input",{type:"text",name:"email",placeholder:"Enter Email Address",className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>s(e.target.value)})),(0,e.createElement)("div",{className:"wkit-form-group wkit-form-password"},(0,e.createElement)("label",{className:"wkit-label"},ct("Password")),(0,e.createElement)("div",{className:"wkit-login-password-inp"},(0,e.createElement)("input",{type:g?"text":"password",name:"password",placeholder:"Enter your Password",className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>o(e.target.value)}),(0,e.createElement)("div",{className:"wkit-password-eye"},g?(0,e.createElement)("svg",{onClick:()=>{C(!g)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{d:"M10.465 10.465C9.46785 11.2251 8.25365 11.6462 7 11.6667C2.91667 11.6667 0.583336 7 0.583336 7C1.30894 5.64777 2.31533 4.46636 3.535 3.535M5.775 2.47334C6.17653 2.37935 6.58762 2.33237 7 2.33334C11.0833 2.33334 13.4167 7 13.4167 7C13.0626 7.66244 12.6403 8.2861 12.1567 8.86083M8.23667 8.23667C8.07646 8.4086 7.88326 8.54651 7.66859 8.64216C7.45393 8.7378 7.22219 8.78924 6.98722 8.79338C6.75225 8.79753 6.51885 8.7543 6.30094 8.66629C6.08304 8.57827 5.88509 8.44727 5.71891 8.28109C5.55274 8.11491 5.42173 7.91697 5.33372 7.69906C5.2457 7.48116 5.20248 7.24776 5.20662 7.01278C5.21077 6.77781 5.2622 6.54608 5.35785 6.33141C5.45349 6.11675 5.5914 5.92355 5.76334 5.76334",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M0.583336 0.583332L13.4167 13.4167",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("svg",{onClick:()=>{C(!g)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none"},(0,e.createElement)("path",{d:"M0.583333 6C0.583333 6 2.91667 1.33333 7 1.33333C11.0833 1.33333 13.4167 6 13.4167 6C13.4167 6 11.0833 10.6667 7 10.6667C2.91667 10.6667 0.583333 6 0.583333 6Z",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 7.75C7.9665 7.75 8.75 6.9665 8.75 6C8.75 5.0335 7.9665 4.25 7 4.25C6.0335 4.25 5.25 5.0335 5.25 6C5.25 6.9665 6.0335 7.75 7 7.75Z",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("div",{className:"wkit-remember-wrapper"},(0,e.createElement)("div",{className:"wkit-remember-text"},(0,e.createElement)("input",{type:"checkbox",id:"select-1",className:"wkit-check-box wkit-styled-checkbox",checked:u,onChange:e=>{w(e.target.checked)}}),(0,e.createElement)("label",{htmlFor:"select-1"},ct("Remember me"))),(0,e.createElement)("a",{className:"wkit-login-desc-text wkit-login-page-link",href:`${wdkitData.wdkit_server_url}password/forgot`,target:"_blank",rel:"noopener noreferrer"},ct("Forgot Password?"))),1==c?(0,e.createElement)("div",{className:"wkit-login-btn"},(0,e.createElement)("div",{className:"wkit-wb-loginloader"},(0,e.createElement)("div",{className:"wkit-publish-loader",style:{display:c&&"flex"}},(0,e.createElement)("div",{className:"wb-loader-circle"})))):(0,e.createElement)("button",{className:"wkit-login-btn"},ct("logged"==c?"Logged in":"Log in")),(0,e.createElement)("div",{className:"wkit-login-desc-text"},ct("Don't have an account?"),(0,e.createElement)("a",{className:"wkit-login-page-link",href:`${wdkitData.wdkit_server_url}signup`,target:"_blank",style:{color:"#C22076"}},ct(" Sign Up"))))))},{__:gt}=wp.i18n,{form_data:Ct,wkit_set_user_login:vt,get_userinfo:bt,wkit_get_user_login:ht}=wp.wkit_Helper,_t=t=>{const a=G();var n=wdkitData.WDKIT_ASSETS;const[i,s]=(0,l.useState)(""),[r,o]=(0,l.useState)(!1);(0,l.useEffect)((()=>{let e=ht();e?.success&&a("/my_uploaded")}),[]);const c=(0,l.useRef)();return(0,e.createElement)("div",{className:"wkit-login"},(0,e.createElement)("div",{className:"wkit-login-right-side"},(0,e.createElement)("div",{className:"login-right-heading"},(0,e.createElement)("img",{src:n+"images/jpg/log-in-api.png",alt:"Login",className:"login-api-right-img",draggable:!1}))),(0,e.createElement)("div",{className:"wkit-login-left-side"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-login-heading"},(0,e.createElement)("span",null,gt("Login With API")),(0,e.createElement)("div",{className:"wkit-login-desc"},gt("Enter your API Connection key to get access")))),(0,e.createElement)("div",{className:"wkit-form-group"},(0,e.createElement)("label",{className:"wkit-login-label"},gt("API Key")),(0,e.createElement)("input",{type:"text",name:"email",ref:c,onChange:e=>{s(e.target.value)},placeholder:"23eaf7f0-f4f7-495e-8b86-fad3261282ac",className:"wkit-input-field",autoComplete:"off",required:!0})),1==r?(0,e.createElement)("div",{className:"wkit-login-btn"},(0,e.createElement)("div",{className:"wkit-wb-loginloader"},(0,e.createElement)("div",{className:"wkit-publish-loader",style:{display:r&&"flex"}},(0,e.createElement)("div",{className:"wb-loader-circle"})))):(0,e.createElement)("button",{className:"wkit-login-btn",onClick:e=>{i?(async()=>{o(!0);let e={type:"api_login",buildertype:window.wdkit_editor,login_type:"session",site_url:window.location.origin+window.location.pathname,token:i};var l=await Ct(e).then((e=>e));if(1==l?.data?.success){let e=l.data.user.user_email,n=l.data.success,i="Login successfully",s=l.token;const r={messages:i,user_email:e,login_type:"session",token:s,success:n};s&&e&&await vt(r);let c=await bt();t.wdkit_set_meta(c.data),o(!1),t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","success"]),a("/my_uploaded")}else o(!1),t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","danger"])})():t.wdkit_set_toast([res?.data?.message,res?.data?.description,"","danger"])}},gt("logged"==r?"Logged In":"Login")),(0,e.createElement)(he,{to:"/login",className:"wkit-wb-backLogin"},(0,e.createElement)("button",{className:"wkit-login-back-btn"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none"},(0,e.createElement)("path",{d:"M22 11.25C22.6904 11.25 23.25 10.6904 23.25 10C23.25 9.30964 22.6904 8.75 22 8.75L22 11.25ZM1.11612 9.11612C0.627962 9.60427 0.627962 10.3957 1.11612 10.8839L9.07107 18.8388C9.55922 19.327 10.3507 19.327 10.8388 18.8388C11.327 18.3507 11.327 17.5592 10.8388 17.0711L3.76777 10L10.8388 2.92893C11.327 2.44078 11.327 1.64932 10.8388 1.16116C10.3507 0.673009 9.55922 0.673009 9.07107 1.16116L1.11612 9.11612ZM22 8.75L2 8.75L2 11.25L22 11.25L22 8.75Z",fill:"#C22076"})),(0,e.createElement)("span",null,gt("Back to Login")))),(0,e.createElement)("div",{className:"wkit-login-desc-text"},gt("You need existing account to use this method. "),(0,e.createElement)("a",{className:"wkit-login-page-link",href:`${wdkitData.wdkit_server_url}signup`,target:"_blank",rel:"noopener noreferrer",style:{color:"#C22076"}},gt("Signup"))),(0,e.createElement)("div",{className:"wkit-login-desc-text"},(0,e.createElement)("a",{className:"wkit-login-page-link",href:"https://blog.wdesignkit.com/documents/create-login-api-key-to-login-to-wdesignkit-account/",style:{color:"#C22076"},target:"_blank",rel:"noopener noreferrer"},gt("How to get API Login Key?")))))};var kt=a(775),Et=a(358),ft=a.n(Et);const{Fragment:yt}=wp.element,{__:Nt}=wp.i18n,$t=t=>{const[a,n]=(0,l.useState)(t.filterArgs),[i,s]=(0,l.useState)([]),[r,o]=(0,l.useState)([]),[c,d]=(0,l.useState)([]),[m,p]=(0,l.useState)([]),[u,w]=(0,l.useState)(""),[g,C]=(0,l.useState)(""),[v,b]=(0,l.useState)([]),[h,_]=(0,l.useState)([]),[k,E]=(0,l.useState)(t?.tag_list);(0,l.useEffect)((()=>{p(t?.filter_data?.builder?t?.filter_data?.builder:""),s(t?.filter_data?.category?JSON.parse(t?.filter_data?.category.replaceAll('"',"")):[]),o(t?.filter_data?.plugin?JSON.parse(t?.filter_data?.plugin.replaceAll('"',"")):[]),d(t?.filter_data?.tag?JSON.parse(t?.filter_data?.tag.replaceAll('"',"")):[]),b(t?.filter_data?.free_pro?t?.filter_data?.free_pro:""),_(t?.filter_data?.page_type?JSON.parse(t?.filter_data?.page_type):[]),n(t.filter_data)}),[t.filter_data]),(0,l.useEffect)((()=>{E(t?.tag_list?t?.tag_list:[])}),[t?.tag_list]);const f=()=>{document.querySelector(".wkit-mobile-filter-main").classList.remove("wkit-filter-menu-show")},y=(e,t)=>{if("category"==t){let t=[...i];if(t.includes(Number(e.target.value))){let l=t.indexOf(Number(e.target.value));t.splice(l,1),s(t),n(Object.assign({},a,{category:JSON.stringify(t)}))}else t.push(Number(e.target.value)),s(t),n(Object.assign({},a,{category:JSON.stringify(t)}))}else if("builder"==t){var l="";e.target.checked&&(l=e.target.value),p(l);let t=Object.assign({},a,{builder:l});n(t)}else if("plugin"==t){let t=[...r];if(t.includes(Number(e.target.value))){let l=t.indexOf(Number(e.target.value));t.splice(l,1),o(t),n(Object.assign({},a,{plugin:JSON.stringify(t)}))}else t.push(Number(e.target.value)),o(t),n(Object.assign({},a,{plugin:JSON.stringify(t)}))}else if("tags"==t){let t=[...c];if(t.includes(Number(e.target.value))){let l=t.indexOf(Number(e.target.value));t.splice(l,1),d(t),n(Object.assign({},a,{tag:JSON.stringify(t)}))}else t.push(Number(e.target.value)),d(t),n(Object.assign({},a,{tag:JSON.stringify(t)}))}else if("search"==t){let e=Object.assign({},a,{search:g},{page:1});n(e)}else if("free_pro"===t){var m="";e.target.checked&&(m=e.target.value),b(m);let t=Object.assign({},a,{free_pro:m});n(t)}else if("pageType"===t)if(e.target.checked){let t=[...h,e.target.value];_(t),n(Object.assign({},a,{page_type:JSON.stringify(t)}))}else{let e=h?.filter((e=>e!==e.target.value));_(e),n(Object.assign({},a,{page_type:JSON.stringify(e)}))}};return wdkitData.WDKIT_URL,(0,e.createElement)("div",{className:"wkit-mobile-filter-main"},(0,e.createElement)("div",{className:"wkit-filter-main-heading"},"Filter by"),(0,e.createElement)("div",{className:"close-icon"},(0,e.createElement)("a",{className:"close",onClick:()=>f()},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Search :"),(0,e.createElement)(yt,null,(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)("input",{className:"wkit-browse-search",placeholder:Nt("Search Templates..."),type:"text",value:g,onChange:e=>{C(e.target.value)}})))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Page Builder :"),(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},t.builder_list&&t.builder_list.length>0&&t.builder_list.map(((t,a)=>(0,e.createElement)(yt,{key:a},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",name:"check1",checked:t.p_id==m,value:t.p_id,className:"wkit-custom-cateogry",id:t.plugin_name,onChange:e=>{y(e,"builder")}}),(0,e.createElement)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:t.plugin_name},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:t.plugin_icon,alt:"section",draggable:!1}),t.plugin_name))))))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Free / Pro :"),(0,e.createElement)(yt,null,(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-free-btn-label",value:"free",onChange:e=>{y(e,"free_pro")},checked:"free"==v}),(0,e.createElement)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-free-btn-label"},"Free")),(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{y(e,"free_pro")},checked:"pro"==v}),(0,e.createElement)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-pro-btn-label"},"Pro"))))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Type :"),(0,e.createElement)(yt,null,(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",value:"section",className:"wkit-custom-cateogry",id:"wkit_paget_type_section",name:"selectPageType",onChange:e=>y(e,"pageType"),checked:!!h.includes("section")}),(0,e.createElement)("label",{htmlFor:"wkit_paget_type_section",className:"wkit-check-wrapper"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.45825 1.45868V12.542H5.54159V1.45868H1.45825ZM1.16659 0.583679C0.844419 0.583679 0.583252 0.844846 0.583252 1.16701V12.8337C0.583252 13.1558 0.84442 13.417 1.16659 13.417H5.83325C6.15542 13.417 6.41659 13.1558 6.41659 12.8337V1.16701C6.41659 0.844846 6.15542 0.583679 5.83325 0.583679H1.16659ZM8.45825 1.45868V5.54201H12.5416V1.45868H8.45825ZM8.16659 0.583679C7.84442 0.583679 7.58325 0.844847 7.58325 1.16701V5.83368C7.58325 6.15585 7.84442 6.41701 8.16659 6.41701H12.8333C13.1554 6.41701 13.4166 6.15585 13.4166 5.83368V1.16701C13.4166 0.844846 13.1554 0.583679 12.8333 0.583679H8.16659ZM8.02303 7.72951C7.78141 7.72951 7.58553 7.92539 7.58553 8.16701C7.58553 8.40864 7.78141 8.60451 8.02303 8.60451H12.9791C13.2207 8.60451 13.4166 8.40864 13.4166 8.16701C13.4166 7.92539 13.2207 7.72951 12.9791 7.72951H8.02303ZM7.58553 10.5003C7.58553 10.2587 7.78141 10.0628 8.02303 10.0628H12.9791C13.2207 10.0628 13.4166 10.2587 13.4166 10.5003C13.4166 10.742 13.2207 10.9378 12.9791 10.9378H8.02303C7.78141 10.9378 7.58553 10.742 7.58553 10.5003ZM8.02303 12.3962C7.78141 12.3962 7.58553 12.5921 7.58553 12.8337C7.58553 13.0753 7.78141 13.2712 8.02303 13.2712H12.9791C13.2207 13.2712 13.4166 13.0753 13.4166 12.8337C13.4166 12.5921 13.2207 12.3962 12.9791 12.3962H8.02303Z",fill:"black"})),(0,e.createElement)("span",null,"Section"))),(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",value:"pagetemplate",className:"wkit-custom-cateogry",id:"wkit_paget_type_pagetemplate",name:"selectPageType",onChange:e=>y(e,"pageType"),checked:!!h.includes("pagetemplate")}),(0,e.createElement)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-check-wrapper"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08325 1.60382C2.35838 1.60382 1.77075 2.19145 1.77075 2.91632V11.083C1.77075 11.8079 2.35838 12.3955 3.08325 12.3955H8.91659C9.64146 12.3955 10.2291 11.8079 10.2291 11.083V4.52049H8.91659C8.03063 4.52049 7.31242 3.80228 7.31242 2.91632V1.60382H3.08325ZM8.18742 2.22254L9.61037 3.64549H8.91659C8.51388 3.64549 8.18742 3.31903 8.18742 2.91632V2.22254ZM0.895752 2.91632C0.895752 1.7082 1.87513 0.728821 3.08325 0.728821H7.74992H7.93114L8.05928 0.856962L10.9759 3.77363L11.1041 3.90177V4.08299V11.083C11.1041 12.2911 10.1247 13.2705 8.91659 13.2705H3.08325C1.87513 13.2705 0.895752 12.2911 0.895752 11.083V2.91632ZM3.22909 6.99965C3.22909 6.75803 3.42496 6.56215 3.66659 6.56215H6.58325C6.82488 6.56215 7.02075 6.75803 7.02075 6.99965C7.02075 7.24128 6.82488 7.43715 6.58325 7.43715H3.66659C3.42496 7.43715 3.22909 7.24128 3.22909 6.99965ZM3.66659 9.18715C3.42496 9.18715 3.22909 9.38303 3.22909 9.62465C3.22909 9.86628 3.42496 10.0622 3.66659 10.0622H8.33325C8.57488 10.0622 8.77075 9.86628 8.77075 9.62465C8.77075 9.38303 8.57488 9.18715 8.33325 9.18715H3.66659Z",fill:"black"})),(0,e.createElement)("span",null,"Page"))),(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",value:"websitekit",className:"wkit-custom-cateogry",id:"wkit_page_type_websitekit",name:"selectPageType",onChange:e=>y(e,"pageType"),checked:!!h.includes("websitekit")}),(0,e.createElement)("label",{htmlFor:"wkit_page_type_websitekit",className:"wkit-check-wrapper"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.68292 4.61448L9.90514 3.05893C10.1506 2.99757 10.3883 3.18321 10.3883 3.4362V16.5627C10.3883 16.8157 10.1506 17.0013 9.90514 16.94L3.68292 15.3844C3.5098 15.3411 3.38835 15.1856 3.38835 15.0071V4.99176C3.38835 4.81331 3.50979 4.65776 3.68292 4.61448ZM2.22168 4.99176C2.22168 4.27797 2.70748 3.65577 3.39996 3.48265L9.62218 1.92709C10.604 1.68165 11.555 2.4242 11.555 3.4362V3.77592H11.5553H15.8331C16.6922 3.77592 17.3887 4.47236 17.3887 5.33147V14.6648C17.3887 15.5239 16.6922 16.2204 15.8331 16.2204H11.5553H11.555V16.5627C11.555 17.5747 10.604 18.3172 9.62218 18.0718L3.39996 16.5162C2.70748 16.3431 2.22168 15.7209 2.22168 15.0071V4.99176ZM11.5553 4.94258H15.8331C16.0479 4.94258 16.222 5.11669 16.222 5.33147V14.6648C16.222 14.8796 16.0479 15.0537 15.8331 15.0537H11.5553V4.94258Z",fill:"black"})),(0,e.createElement)("span",null,"Website Kit")))))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Page Builder :"),(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},t.plugin_list&&t.plugin_list.length>0&&t.plugin_list.map(((t,a)=>(0,e.createElement)(yt,{key:a},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",name:"check1",checked:r.includes(t.p_id),value:t.p_id,className:"wkit-custom-cateogry",id:`${t.plugin_name}-plugin`,onChange:e=>{y(e,"plugin")}}),(0,e.createElement)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:`${t.plugin_name}-plugin`},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:t.plugin_icon,alt:"section",draggable:!1}),t.plugin_name))))))),(0,e.createElement)("div",{className:"wkit-filter-by-categorties"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Categories :"),(0,e.createElement)("div",{className:"wkit-category-mobile-filter wkit-template-filter"},Object.entries(t.category_list).map(((t,a)=>(0,e.createElement)(yt,{key:a},(0,e.createElement)("div",{className:"wkit-filter-category"},(0,e.createElement)("span",null,t[0]," : "),(0,e.createElement)("div",{className:"wkit-filter-category-list"},Object.values(t[1]).map(((t,a)=>(0,e.createElement)(yt,{key:a},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",name:"check1",className:"wkit-custom-cateogry",checked:i.includes(t.term_id),value:t.term_id,id:t.term_id,onChange:e=>{y(e,"category")}}),(0,e.createElement)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:t.term_id},t.term_name)))))))))))),(0,e.createElement)("div",{className:"wkit-filter-by-categorties"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},"Tag :"),(0,e.createElement)(yt,null,(0,e.createElement)("div",{className:"wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)(kt.DebounceInput,{className:"wkit-browse-search",placeholder:Nt("Search Tags..."),name:"wkit-search",type:"text",minLength:0,debounceTimeout:500,onChange:e=>{var a;a=e.target.value,w(a),E(a?t?.tag_list?.filter((e=>e.tag_name.toLowerCase().includes(a.toLowerCase()))):t?.tag_list)},value:u}),(0,e.createElement)("button",{type:"submit",className:"wkit_search_button wkit-btn-class"},(0,e.createElement)("svg",{className:"wkit-search-icon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"wkit-browse-tag"},k&&Object.values(k)?.map(((t,a)=>{if(a<5)return(0,e.createElement)(yt,{key:a},(0,e.createElement)("div",{className:"wkit-tag-filter-list"},(0,e.createElement)("input",{type:"checkbox",name:"check1",checked:c.includes(Number(t.tag_id)),value:t.tag_id,className:"wkit-tag-checkbox",id:`${t.tag_id}-tag`,onChange:e=>y(e,"tags")}),(0,e.createElement)("label",{name:"check1",className:"wkit-browse-tag-name",htmlFor:`${t.tag_id}-tag`},t.tag_name)))})))))),(0,e.createElement)("div",{className:"wkit-common-btn wkit-pink-btn-class",onClick:e=>{t.setfilter_data(a),t.setcategory_check(i),t.setplugin_check(r),t.settag_check(c),y(e,"search"),f()}},(0,e.createElement)("span",null,"Visit Site")))},{Fragment:Lt}=wp.element,{__:xt}=wp.i18n,{Template_loop:Ht,Plugin_missing:Mt,Success_import_template:Vt,wkit_getCategoryList:Dt,form_data:St,wkit_get_user_login:Zt,wkitGetBuilder:Rt,checkBuilder:Bt}=wp.wkit_Helper,Tt=t=>{const a=G();wdkitData.WDKIT_URL;const[n,i]=(0,l.useState)(!1),[s,r]=(0,l.useState)("loading"),[o,c]=(0,l.useState)([]),[d,m]=(0,l.useState)(!0),[p,u]=(0,l.useState)(["free_pro","type","plugins","category-0","tags"]),[w,g]=(0,l.useState)([]),[C,v]=(0,l.useState)([]),[b,h]=(0,l.useState)(""),[_,k]=(0,l.useState)(""),[E,f]=(0,l.useState)([]),[y,N]=(0,l.useState)(""),[$,L]=(0,l.useState)(""),[x,H]=(0,l.useState)(""),[M,V]=(0,l.useState)(!1),[D,S]=(0,l.useState)(!1),[Z,R]=(0,l.useState)(""),[B,T]=(0,l.useState)(1),[O,j]=(0,l.useState)(12),[A,P]=(0,l.useState)({}),W=(0,l.useRef)(null),[I,F]=(0,l.useState)([]),[q,U]=(0,l.useState)([]),[K,z]=(0,l.useState)({type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:O,page:B,free_pro:""});(0,l.useEffect)((()=>{window.location&&"#/browse"!=window.location.hash&&(window.location.hash="#/browse")}),[]);let Y={websitekit:"Page Kits",section:"Sections",pagetemplate:"Full Pages"};(0,l.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_template&&e.push(1001),t?.wdkit_meta?.Setting?.gutenberg_template&&e.push(1002),U(e)}),[t?.wdkit_meta?.Setting]),(0,l.useEffect)((()=>{document.querySelector(".wkit-filter-humber-menu")&&document.querySelector(".wkit-filter-humber-menu").addEventListener("click",(e=>{e.preventDefault(),document.querySelector(".wkit-mobile-filter-main")&&document.querySelector(".wkit-mobile-filter-main").classList.add("wkit-filter-menu-show")}))})),J().state,(0,l.useMemo)((()=>{(async()=>{if(i(!0),q.length>0){if("wdkit"==window.wdkit_editor)if($)var e=Object.assign({},K,{builder:JSON.stringify([$])});else e=Object.assign({},K,{builder:JSON.stringify(q)});else e=Object.assign({},K,{builder:""});var t=await St(e).then((e=>(r(e),e)));""==o&&t?.category&&(c(Dt(t?.category)),0===Object.keys(A).length&&P(t.tags)),i(!1)}})()}),[K,q]);const X=e=>{if(p?.includes(e)){var t=p.filter((t=>t!==e));u(t)}else u([...p,e])},Q=async(e,t="plugins")=>{const{value:a,checked:l}=e.target;if("builder"===t)if(l){var n=Object.assign({},K,{builder:a},{page:1});L(a),T(1),z(n)}else n=Object.assign({},K,{builder:""},{page:1}),L(""),T(1),z(n);if("plugins"===t)if(l){var i=[...w,Number(a)];g(i),n=Object.assign({},K,{plugin:JSON.stringify(i)},{page:1}),T(1)}else i=w?.filter((e=>e!==Number(a))),g(i),T(1),n=Object.assign({},K,{plugin:JSON.stringify(i)},{page:1});if("tags"===t)if(l){var s=[...C,Number(a)];await v(s),n=Object.assign({},K,{tag:JSON.stringify(s)},{page:1}),T(1)}else s=C.filter((e=>e!==Number(a))),await v(s),n=Object.assign({},K,{tag:JSON.stringify(s)},{page:1}),T(1);if("category"===t)if(l){var r=[...E,Number(a)];f(r),n=Object.assign({},K,{category:JSON.stringify(r)},{page:1}),T(1)}else r=E?.filter((e=>e!==Number(a))),f(r),n=Object.assign({},K,{category:JSON.stringify(r)},{page:1}),T(1);if("search"===t&&(n=Object.assign({},K,{search:b,page:1}),T(1)),"free_pro"===t&&(l?(n=Object.assign({},K,{free_pro:a},{page:1}),N(a),T(1)):(n=Object.assign({},K,{free_pro:""},{page:1}),N(""),T(1))),"pageType"===t){var o=[a];F(a),n=Object.assign({},K,{page_type:JSON.stringify(o)},{search:b},{page:1}),T(1)}n=Object.assign({},n,{search:b}),z(n),k(b)},ee=()=>(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2 4L5.72241 7.71186L9.44482 4",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"})),te=()=>(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.44482 7.71191L5.72241 4.00005L2 7.71191",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"})),ae=e=>{"Enter"===e.key&&(Q(e,"search"),W.current.blur())},le=e=>0==e||!!q.includes(e);return(0,e.createElement)("div",{className:"wkit-browse-main"},s?.template?(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-browse-column "+(d?"":"wkit-browse-column-collapse")},d?(0,e.createElement)("div",{className:"wkit-browse-inner-column"},(0,e.createElement)("div",{className:"wkit-expand-filter"},(0,e.createElement)("div",{className:"wkit-left-main-title"},xt("Filters")),(0,e.createElement)("div",{style:{cursor:"pointer"},onClick:()=>{m(!d)}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.64182 7.47781L6.76141 4.58998L9.64924 1.70215C9.93877 1.41262 9.93877 0.944928 9.64924 0.655403C9.35972 0.365878 8.89202 0.365878 8.6025 0.655403L5.195 4.06289C4.90548 4.35242 4.90548 4.82011 5.195 5.10964L8.6025 8.51713C8.89202 8.80666 9.35972 8.80666 9.64924 8.51713C9.93134 8.23503 9.93134 7.75991 9.64182 7.47781ZM1.69843 0.135742C2.10673 0.135742 2.4408 0.46981 2.4408 0.878115V8.30184C2.4408 8.71015 2.10673 9.04422 1.69843 9.04422C1.29012 9.04422 0.956055 8.71015 0.956055 8.30184V0.878115C0.956055 0.46981 1.29012 0.135742 1.69843 0.135742Z",fill:"#19191B"})))),(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-wb-filterTitle"},xt("Search")),(0,e.createElement)("div",{className:"wkit-search-filter"},(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)("input",{className:"wkit-browse-search",placeholder:xt("Search Templates"),type:"text",value:b,onChange:e=>{h(e.target.value)},onKeyDown:ae,ref:W}),(0,e.createElement)("span",{className:"wkit_search_button wkit-btn-class",onClick:e=>{Q(e,"search")}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})))))),"wdkit"==wdkitData.use_editor&&!(q.length<=1)&&(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-wb-filterTitle"},xt("Page Builder")),(0,e.createElement)("div",{className:"wkit-choose-builder-wrap wkit-mt-15 wkit-justify-left"},s?.builder.length>0&&Object.values(s?.builder)?.map(((t,a)=>{if(le(t.p_id))return(0,e.createElement)("div",{className:"wkit-wb-widgetType",key:a},(0,e.createElement)("div",{className:"wkit-select-builder-list"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-builder-radio",id:"select_builder_"+t.original_slug,value:t.p_id,onChange:e=>{Q(e,"builder")},checked:K.builder==t.p_id}),(0,e.createElement)("label",{className:"wkit-builder-label",htmlFor:"select_builder_"+t.original_slug},""!=t.plugin_icon&&(0,e.createElement)("img",{className:"wkit-browse-filter-builder "+(K.builder==t.p_id?"wkit-select-builder":""),src:t.plugin_icon,draggable:!1}),(0,e.createElement)("span",{className:"wkit-builder-toolTip"},t.original_slug))))})))),(0,e.createElement)("div",{className:"filter-wrapper"},(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>X("free_pro")},(0,e.createElement)("div",{className:"wkit-filter-heading"},xt("Free / Pro")),(0,e.createElement)("div",{className:"wkit-arrow-down"},p?.includes("free_pro")?te():ee())),p?.includes("free_pro")&&(0,e.createElement)("div",{className:"wkit-freePro-wrap wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-select-freePro-type"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",onChange:e=>{Q(e,"free_pro")},checked:"free"==K.free_pro}),(0,e.createElement)("label",{className:"wkit-freePro-label",htmlFor:"wkit-free-btn-label"},"Free")),(0,e.createElement)("div",{className:"wkit-select-freePro-type"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{Q(e,"free_pro")},checked:"pro"==K.free_pro}),(0,e.createElement)("label",{className:"wkit-freePro-label",htmlFor:"wkit-pro-btn-label"},"Pro")))),(0,e.createElement)("hr",null),(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>X("type")},(0,e.createElement)("div",{className:"wkit-filter-heading"},xt("Type")),(0,e.createElement)("div",{className:"wkit-arrow-down"},p?.includes("type")?te():ee())),p?.includes("type")&&(0,e.createElement)("div",{className:"wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-pageType-wrap"},(0,e.createElement)("div",{className:"wkit-pageType-list"},(0,e.createElement)("input",{type:"radio",value:"pagetemplate",className:"wkit-styled-type-radio",id:"wkit_paget_type_pagetemplate",name:"selectPageType",onChange:e=>Q(e,"pageType"),checked:!!I.includes("pagetemplate")}),(0,e.createElement)("label",{htmlFor:"wkit_paget_type_pagetemplate"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.08325 1.60382C2.35838 1.60382 1.77075 2.19145 1.77075 2.91632V11.083C1.77075 11.8079 2.35838 12.3955 3.08325 12.3955H8.91659C9.64146 12.3955 10.2291 11.8079 10.2291 11.083V4.52049H8.91659C8.03063 4.52049 7.31242 3.80228 7.31242 2.91632V1.60382H3.08325ZM8.18742 2.22254L9.61037 3.64549H8.91659C8.51388 3.64549 8.18742 3.31903 8.18742 2.91632V2.22254ZM0.895752 2.91632C0.895752 1.7082 1.87513 0.728821 3.08325 0.728821H7.74992H7.93114L8.05928 0.856962L10.9759 3.77363L11.1041 3.90177V4.08299V11.083C11.1041 12.2911 10.1247 13.2705 8.91659 13.2705H3.08325C1.87513 13.2705 0.895752 12.2911 0.895752 11.083V2.91632ZM3.22909 6.99965C3.22909 6.75803 3.42496 6.56215 3.66659 6.56215H6.58325C6.82488 6.56215 7.02075 6.75803 7.02075 6.99965C7.02075 7.24128 6.82488 7.43715 6.58325 7.43715H3.66659C3.42496 7.43715 3.22909 7.24128 3.22909 6.99965ZM3.66659 9.18715C3.42496 9.18715 3.22909 9.38303 3.22909 9.62465C3.22909 9.86628 3.42496 10.0622 3.66659 10.0622H8.33325C8.57488 10.0622 8.77075 9.86628 8.77075 9.62465C8.77075 9.38303 8.57488 9.18715 8.33325 9.18715H3.66659Z",fill:"black"})),(0,e.createElement)("span",null,xt("Full Pages")))),(0,e.createElement)("div",{className:"wkit-pageType-list"},(0,e.createElement)("input",{type:"radio",value:"section",className:"wkit-styled-type-radio",id:"wkit_paget_type_section",name:"selectPageType",onChange:e=>Q(e,"pageType"),checked:!!I.includes("section")}),(0,e.createElement)("label",{htmlFor:"wkit_paget_type_section"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.45825 1.45868V12.542H5.54159V1.45868H1.45825ZM1.16659 0.583679C0.844419 0.583679 0.583252 0.844846 0.583252 1.16701V12.8337C0.583252 13.1558 0.84442 13.417 1.16659 13.417H5.83325C6.15542 13.417 6.41659 13.1558 6.41659 12.8337V1.16701C6.41659 0.844846 6.15542 0.583679 5.83325 0.583679H1.16659ZM8.45825 1.45868V5.54201H12.5416V1.45868H8.45825ZM8.16659 0.583679C7.84442 0.583679 7.58325 0.844847 7.58325 1.16701V5.83368C7.58325 6.15585 7.84442 6.41701 8.16659 6.41701H12.8333C13.1554 6.41701 13.4166 6.15585 13.4166 5.83368V1.16701C13.4166 0.844846 13.1554 0.583679 12.8333 0.583679H8.16659ZM8.02303 7.72951C7.78141 7.72951 7.58553 7.92539 7.58553 8.16701C7.58553 8.40864 7.78141 8.60451 8.02303 8.60451H12.9791C13.2207 8.60451 13.4166 8.40864 13.4166 8.16701C13.4166 7.92539 13.2207 7.72951 12.9791 7.72951H8.02303ZM7.58553 10.5003C7.58553 10.2587 7.78141 10.0628 8.02303 10.0628H12.9791C13.2207 10.0628 13.4166 10.2587 13.4166 10.5003C13.4166 10.742 13.2207 10.9378 12.9791 10.9378H8.02303C7.78141 10.9378 7.58553 10.742 7.58553 10.5003ZM8.02303 12.3962C7.78141 12.3962 7.58553 12.5921 7.58553 12.8337C7.58553 13.0753 7.78141 13.2712 8.02303 13.2712H12.9791C13.2207 13.2712 13.4166 13.0753 13.4166 12.8337C13.4166 12.5921 13.2207 12.3962 12.9791 12.3962H8.02303Z",fill:"black"})),(0,e.createElement)("span",null,xt("Sections")))),(0,e.createElement)("div",{className:"wkit-pageType-list"},(0,e.createElement)("input",{type:"radio",value:"websitekit",className:"wkit-styled-type-radio",id:"wkit_page_type_websitekit",name:"selectPageType",onChange:e=>Q(e,"pageType"),checked:!!I.includes("websitekit")}),(0,e.createElement)("label",{htmlFor:"wkit_page_type_websitekit"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.68292 4.61448L9.90514 3.05893C10.1506 2.99757 10.3883 3.18321 10.3883 3.4362V16.5627C10.3883 16.8157 10.1506 17.0013 9.90514 16.94L3.68292 15.3844C3.5098 15.3411 3.38835 15.1856 3.38835 15.0071V4.99176C3.38835 4.81331 3.50979 4.65776 3.68292 4.61448ZM2.22168 4.99176C2.22168 4.27797 2.70748 3.65577 3.39996 3.48265L9.62218 1.92709C10.604 1.68165 11.555 2.4242 11.555 3.4362V3.77592H11.5553H15.8331C16.6922 3.77592 17.3887 4.47236 17.3887 5.33147V14.6648C17.3887 15.5239 16.6922 16.2204 15.8331 16.2204H11.5553H11.555V16.5627C11.555 17.5747 10.604 18.3172 9.62218 18.0718L3.39996 16.5162C2.70748 16.3431 2.22168 15.7209 2.22168 15.0071V4.99176ZM11.5553 4.94258H15.8331C16.0479 4.94258 16.222 5.11669 16.222 5.33147V14.6648C16.222 14.8796 16.0479 15.0537 15.8331 15.0537H11.5553V4.94258Z",fill:"black"})),(0,e.createElement)("span",null,xt("Page Kits"))))))),(0,e.createElement)("hr",null),(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>X("plugins")},(0,e.createElement)("div",{className:"wkit-filter-heading"},xt("Plugins")),(0,e.createElement)("div",{className:"wkit-arrow-down"},p?.includes("plugins")?te():ee())),p?.includes("plugins")&&(0,e.createElement)("div",{className:"wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-plugin-wrap"},Object.values(s?.plugin)?.map(((t,a)=>{if("wdkit"!=window.wdkit_editor){if("elementor"==window.wdkit_editor)var l="1001";else l="gutenberg"==window.wdkit_editor?"1002":"0";if(l==t.plugin_builder||0==t.plugin_builder)return(0,e.createElement)("div",{className:"wkit-plugin-name",key:a},(0,e.createElement)("input",{type:"checkbox",value:t.p_id,className:"wkit-check-box wkit-styled-checkbox",id:"plugin_"+t.p_id,name:"selectPlugin",onChange:e=>Q(e,"plugins"),checked:!!w.includes(Number(t.p_id))}),(0,e.createElement)("label",{htmlFor:"plugin_"+t.p_id},(0,e.createElement)("img",{src:t.plugin_icon?t.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1}),(0,e.createElement)("span",null,t.plugin_name)))}else if(le(t.plugin_builder)&&(K.builder==t.plugin_builder||""==K.builder||0==t.plugin_builder))return(0,e.createElement)("div",{className:"wkit-plugin-name",key:a},(0,e.createElement)("input",{type:"checkbox",value:t.p_id,className:"wkit-check-box wkit-styled-checkbox",id:"plugin_"+t.p_id,name:"selectPlugin",onChange:e=>Q(e,"plugins"),checked:w.includes(Number(t.p_id))?"checked":""}),(0,e.createElement)("label",{htmlFor:"plugin_"+t.p_id},(0,e.createElement)("img",{src:t.plugin_icon?t.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1}),(0,e.createElement)("span",null,t.plugin_name)))}))))),(0,e.createElement)("hr",null),!(Object.values(o).length<=0)&&(0,e.createElement)(Lt,null,Object.entries(o)?.map((([t,a],l)=>(0,e.createElement)(Lt,{key:l},(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>X("category-"+l)},(0,e.createElement)("div",{className:"wkit-filter-heading"},t),(0,e.createElement)("div",{className:"wkit-arrow-down"},p?.includes("category-"+l)?te():ee())),p?.includes("category-"+l)&&(0,e.createElement)("div",{className:"wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-plugin-wrap"},Object.entries(a)?.map((([t,a],l)=>(0,e.createElement)("div",{className:"wkit-plugin-name",key:l},(0,e.createElement)("input",{type:"checkbox",value:t,className:"wkit-check-box wkit-styled-checkbox",id:"category_"+t,name:"selectPlugin",onChange:e=>Q(e,"category"),checked:E.includes(Number(t))?"checked":""}),(0,e.createElement)("label",{htmlFor:"category_"+t},a.term_name)))))),(0,e.createElement)("hr",null))))),(0,e.createElement)(Lt,null,(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>X("tags")},(0,e.createElement)("div",{className:"wkit-filter-heading"},xt("Tags")),(0,e.createElement)("div",{className:"wkit-arrow-down"},p?.includes("tags")?te():ee())),p?.includes("tags")&&(0,e.createElement)("div",{className:"wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)(kt.DebounceInput,{className:"wkit-browse-search",placeholder:xt("Search Tags"),name:"wkit-search",type:"text",minLength:0,debounceTimeout:500,onChange:e=>{var t;t=e.target.value,R(t),P(t?s?.tags?.filter((e=>e.tag_name.toLowerCase().includes(t.toLowerCase()))):s?.tags)},value:Z}),(0,e.createElement)("button",{type:"submit",className:"wkit_search_button wkit-btn-class"},(0,e.createElement)("svg",{className:"wkit-search-icon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})))),(0,e.createElement)("div",{className:"wkit-browse-tag"},Object.values(A)?.map(((t,a)=>{if(a<5)return(0,e.createElement)("div",{className:"wkit-tag-filter-list",key:a},(0,e.createElement)("input",{type:"checkbox",value:t.tag_id,className:"wkit-tag-checkbox",id:"tag_"+t.tag_id,name:"selectTags",onChange:e=>Q(e,"tags"),checked:C.includes(Number(t.tag_id))?"checked":""}),(0,e.createElement)("label",{className:"wkit-browse-tag-name",htmlFor:"tag_"+t.tag_id},t.tag_name))}))))))):(0,e.createElement)("div",{className:"filter-abosulte",onClick:()=>{m(!d)}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.724998 7.9175L3.635 5L0.7175 2.0825C0.425 1.79 0.425 1.3175 0.7175 1.025C1.01 0.7325 1.4825 0.7325 1.775 1.025L5.2175 4.4675C5.51 4.76 5.51 5.2325 5.2175 5.525L1.775 8.9675C1.4825 9.26 1.01 9.26 0.7175 8.9675C0.4325 8.6825 0.432499 8.2025 0.724998 7.9175ZM8.75 0.5C8.3375 0.5 8 0.8375 8 1.25V8.75C8 9.1625 8.3375 9.5 8.75 9.5C9.1625 9.5 9.5 9.1625 9.5 8.75V1.25C9.5 0.8375 9.1625 0.5 8.75 0.5Z",fill:"white"})),xt("Filters"))),(0,e.createElement)($t,{filter_type:"template",filter_data:K,setfilter_data:e=>{z(e)},setcategory_check:e=>{f(e)},settag_check:e=>{v(e)},setplugin_check:e=>{g(e)},category_list:o,builder_list:s?.builder,plugin_list:s?.plugin,tag_list:s?.tags}),(0,e.createElement)("div",{className:"wkit-browse-right-column"},(()=>{const t=(e,t)=>{if("plugin"==t){let t=[...w];t=t.filter((t=>t!==Number(e))),g(t),z(Object.assign({},K,{plugin:JSON.stringify(t)}))}else if("category"==t){let t=[...E];t=t.filter((t=>t!==Number(e))),f(t),z(Object.assign({},K,{category:JSON.stringify(t)}))}else if("tag"==t){let t=[...C];t=t.filter((t=>t!==Number(e))),v(t),z(Object.assign({},K,{tag:JSON.stringify(t)}))}else"page_type"==t?(F([]),z(Object.assign({},K,{page_type:""}))):"search"==t?(k(""),h(""),z(Object.assign({},K,{search:""}))):"builder"==t?(L(""),z(Object.assign({},K,{builder:""}))):"free_pro"==t&&(N(""),z(Object.assign({},K,{free_pro:"free"})))};return(0,e.createElement)("div",{className:"wkit-free-dropdown-mixed"},(""!=y||w.length>0||E.length>0||C.length>0||""!=_||""!=$||0!=I)&&(0,e.createElement)("div",{className:"wkit-browse-applied-filter"},(0,e.createElement)(Lt,null,(0,e.createElement)("label",{className:"applied-filter-text"},xt("Applied Filter :")),""!=y&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,y)),(0,e.createElement)("button",{onClick:e=>t(e,"free_pro")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),""!=_&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,_)),(0,e.createElement)("button",{onClick:e=>t(e,"search")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),""!=$&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,(e=>{let t=s?.builder,a=t.findIndex((t=>t.p_id==e));if(a>-1)return t[a].original_slug})($))),(0,e.createElement)("button",{onClick:e=>t(e,"builder")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),w.length>0&&Object.values(s?.plugin)?.map(((a,l)=>(0,e.createElement)(Lt,{key:l},w?.includes(a.p_id)&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("img",{src:a.plugin_icon?a.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo"}),(0,e.createElement)("span",null,a.plugin_name)),(0,e.createElement)("button",{onClick:()=>{t(a.p_id,"plugin")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))))))),""!=I&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,Y?.[I])),(0,e.createElement)("button",{onClick:e=>t(e,"page_type")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),E.length>0&&Object.values(s?.category)?.map(((a,l)=>(0,e.createElement)(Lt,{key:l},E.includes(a.term_id)&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,a.term_name)),(0,e.createElement)("button",{onClick:()=>{t(a.term_id,"category")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))))))),C.length>0&&Object.values(s?.tags)?.map(((a,l)=>(0,e.createElement)(Lt,{key:l},C.includes(a?.tag_id)&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,a.tag_name)),(0,e.createElement)("button",{onClick:()=>{t(a.tag_id,"tag")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))))))),(0,e.createElement)("button",{className:"wdkit-reset-all-filters wkit-btn-class",onClick:()=>{g([]),v([]),f([]),F([]),N(""),k(""),h(""),L(""),z(Object.assign({},K,{type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:O,page_type:"",page:B,category:"",tag:"",search:"",free_pro:""}))}},"Clear All"))))})(),(0,e.createElement)("div",{className:"wdkit-loop"},(0,e.createElement)(Lt,null,0==n&&s?.template.length>0&&(0,e.createElement)("div",{className:d?"wdesign-kit-main":"wkit-browse-filter-close wdesign-kit-main"},Object.values(s.template).map(((a,l)=>(0,e.createElement)(Lt,{key:l},("active"==a.is_activated&&"wdkit"==wdkitData.use_editor&&Bt(a.post_builder,"all",s?.builder)||"wdkit"!=wdkitData.use_editor)&&(0,e.createElement)(Ht,{data:a,builder:s.builder,currentPage:B,credits:t?.wdkit_meta?.credits,handlerTempID:e=>{"wdkit"==wdkitData.use_editor?((e,t,a,l,n)=>{if(e&&t&&l){let i=[{id:e,type:t}];l=n&&l?Rt(l,n):"",H("section"==a?{pages:[],sections:i,builder:l}:{pages:i,sections:[],builder:l})}else H(e)})(e,a.wp_post_type,a.type,Number(a.post_builder),s.builder):H(e)},type:"websitekit"==a.type?a.type+"-view":a.type,filter:"browse",width:"24%",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})))))),1==n&&(0,e.createElement)(Qe,{style:{width:"100%"}}),0==n&&s?.template.length<=0&&(0,e.createElement)(et,{page:"template",link:"https://blog.wdesignkit.com/docs/export-templates-from-elementor-site-to-cloud"}),(()=>{if(s?.template.length>0&&s?.totalpage>1)return(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:s.totalpage,marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&(K.page=e.nextSelectedPage+1,z({...K}),T(e.nextSelectedPage+1))},forcePage:B-1,onPageActive:()=>{}}))})())),x&&(0,e.createElement)("div",{className:"wkit-myupload-main wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content wkit-import-template"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",H(""))})(e),V(!1),H("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),M?(0,e.createElement)(Vt,{template_id:x,custom_meta_import:D,template_list:s?.template,handlerAfterSuccessImported:()=>{V(!1),H("")},wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}}):(0,e.createElement)(Mt,{template_id:x,handlerSuccessImport:(e,t)=>{V(e),S(t)},type:wdkitData?.use_editor,templateData:s?.template,pluginData:s?.plugin,pageNow:"browse",navigation:a})))):(0,e.createElement)(at,null))},{Fragment:Ot}=wp.element,{__:jt}=wp.i18n,{Success_import_template:At,Template_loop:Pt,Plugin_missing:Wt,checkBuilder:It,wkit_get_user_login:Ft,wkitGetBuilder:qt}=wp.wkit_Helper,Ut=t=>{if(!Ft())return t.wdkit_Login_Route("/my_uploaded"),(0,e.createElement)(oe,{to:"/login"});let a=J();const[n,i]=(0,l.useState)("pagetemplate"),[s,r]=(0,l.useState)("loading"),[o,c]=(0,l.useState)(""),[d,m]=(0,l.useState)(!1),[p,u]=(0,l.useState)(!1),[w,g]=(0,l.useState)(!1),[C,v]=(0,l.useState)("all"),[b,h]=(0,l.useState)(!1),[_,k]=(0,l.useState)([]),[E,f]=(0,l.useState)(1),[y,N]=(0,l.useState)(12),[$,L]=(0,l.useState)(2),[x,H]=(0,l.useState)(),[M,V]=(0,l.useState)();let D=0;(0,l.useEffect)((()=>{r(t?.wdkit_meta),R()}),[t.wdkit_meta]),(0,l.useEffect)((()=>{(async()=>{if(a.search){let e=a.search.slice(1);await i(e),window.location.hash="/my_uploaded"}})()}),[]),(0,l.useEffect)((()=>{Z()}),[n,_,E]);const S=a.state;(0,l.useEffect)((()=>{S&&(f(S),i("websitekit"))}),[S]);const Z=async()=>{if(h(!0),_[n]&&t?.wdkit_meta?.template){let t=(E-1)*y,a=t+y;if(await H(t),await V(a),w){var e=0;s?.favoritetemplate?.length>0&&s?.favoritetemplate.map((t=>{(_?.[n]?.length>0&&_?.[n].findIndex((e=>e.id==t)))>-1&&e++})),await L(Math.ceil(e/y))}else await L(Math.ceil(_[n].length/y));setTimeout((()=>{h(!1)}),700)}},R=async()=>{let e=t?.wdkit_meta?.template,a=[],l=[],n=[];await e&&e.map((e=>{e.user_id==t?.wdkit_meta?.userinfo?.id&&("pagetemplate"==e.type?a.push(e):"section"==e.type?l.push(e):"websitekit"==e.type&&n.push(e))}));let i={pagetemplate:[...a],section:[...l],websitekit:[...n]};k(i)},B=e=>{s.favoritetemplate=e,r(s)};return window.addEventListener("keydown",(function(e){"Escape"===e.key?document.querySelector(".wkit-model-transp.wkit-popup-show")&&document.querySelector(".wkit-model-transp.wkit-popup-show").classList.remove("wkit-popup-show"):"Escape"===e.key&&document.querySelector(".wkit-author-transp.wkit-popup-show").classList.remove("wkit-popup-show")})),(0,e.createElement)("div",{className:"wkit-myupload-main"},(0,e.createElement)("div",{className:"wkit-navbar"},(0,e.createElement)("div",{className:"wkit-navbar-left-btn"},(0,e.createElement)("button",{className:"pagetemplate"==n?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{f(1),i("pagetemplate")}},(0,e.createElement)("div",{className:"wdkit-img"},(0,e.createElement)("svg",{width:"18",height:"22",viewBox:"0 0 18 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 1.75C2.75736 1.75 1.75 2.75736 1.75 4V18C1.75 19.2426 2.75736 20.25 4 20.25H14C15.2426 20.25 16.25 19.2426 16.25 18V6.75H14C12.4812 6.75 11.25 5.51878 11.25 4V1.75H4ZM12.75 2.81066L15.1893 5.25H14C13.3096 5.25 12.75 4.69036 12.75 4V2.81066ZM0.25 4C0.25 1.92893 1.92893 0.25 4 0.25H12H12.3107L12.5303 0.46967L17.5303 5.46967L17.75 5.68934V6V18C17.75 20.0711 16.0711 21.75 14 21.75H4C1.92893 21.75 0.25 20.0711 0.25 18V4ZM4.25 11C4.25 10.5858 4.58579 10.25 5 10.25H10C10.4142 10.25 10.75 10.5858 10.75 11C10.75 11.4142 10.4142 11.75 10 11.75H5C4.58579 11.75 4.25 11.4142 4.25 11ZM5 14.75C4.58579 14.75 4.25 15.0858 4.25 15.5C4.25 15.9142 4.58579 16.25 5 16.25H13C13.4142 16.25 13.75 15.9142 13.75 15.5C13.75 15.0858 13.4142 14.75 13 14.75H5Z",className:"wkit-svg-hover"}))),(0,e.createElement)("div",{className:"wdkit-filter-title"},jt("Pages"))),(0,e.createElement)("button",{className:"section"==n?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{f(1),i("section")}},(0,e.createElement)("div",{className:"wdkit-img"},(0,e.createElement)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 1.5V20.5H8.5V1.5H1.5ZM1 0C0.447715 0 0 0.447716 0 1V21C0 21.5523 0.447715 22 1 22H9C9.55229 22 10 21.5523 10 21V1C10 0.447715 9.55228 0 9 0H1ZM13.5 1.5V8.5H20.5V1.5H13.5ZM13 0C12.4477 0 12 0.447715 12 1V9C12 9.55229 12.4477 10 13 10H21C21.5523 10 22 9.55228 22 9V1C22 0.447715 21.5523 0 21 0H13ZM12.7539 12.25C12.3397 12.25 12.0039 12.5858 12.0039 13C12.0039 13.4142 12.3397 13.75 12.7539 13.75H21.25C21.6642 13.75 22 13.4142 22 13C22 12.5858 21.6642 12.25 21.25 12.25H12.7539ZM12.0039 17C12.0039 16.5858 12.3397 16.25 12.7539 16.25H21.25C21.6642 16.25 22 16.5858 22 17C22 17.4142 21.6642 17.75 21.25 17.75H12.7539C12.3397 17.75 12.0039 17.4142 12.0039 17ZM12.7539 20.25C12.3397 20.25 12.0039 20.5858 12.0039 21C12.0039 21.4142 12.3397 21.75 12.7539 21.75H21.25C21.6642 21.75 22 21.4142 22 21C22 20.5858 21.6642 20.25 21.25 20.25H12.7539Z",className:"wkit-svg-hover"}))),(0,e.createElement)("div",{className:"wdkit-filter-title"},jt("Sections"))),(0,e.createElement)("button",{className:"websitekit"==n?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{f(1),i("websitekit")}},(0,e.createElement)("div",{className:"wdkit-img"},(0,e.createElement)("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.87873 4.07646L9.87873 2.07646C10.1943 1.99757 10.5 2.23625 10.5 2.56153V2.99998V4.49998V17.5V19V19.4384C10.5 19.7637 10.1943 20.0024 9.87873 19.9235L1.87873 17.9235C1.65615 17.8679 1.5 17.6679 1.5 17.4384V4.56153C1.5 4.3321 1.65615 4.13211 1.87873 4.07646ZM12 19V19.4384C12 20.7396 10.7772 21.6943 9.51493 21.3787L1.51493 19.3787C0.624594 19.1561 0 18.3562 0 17.4384V4.56153C0 3.6438 0.624595 2.84383 1.51493 2.62125L9.51493 0.621247C10.7772 0.305674 12 1.26039 12 2.56153V2.99998H17.5C18.6046 2.99998 19.5 3.89541 19.5 4.99998V17C19.5 18.1045 18.6046 19 17.5 19H12ZM12 4.49998V17.5H17.5C17.7761 17.5 18 17.2761 18 17V4.99998C18 4.72384 17.7761 4.49998 17.5 4.49998H12Z",className:"wkit-svg-hover"}))),(0,e.createElement)("div",{className:"wdkit-filter-title"},jt("Kits")))),(0,e.createElement)("div",{className:"wkit-navbar-right-btn"},(0,e.createElement)("div",{className:"wdkit-favourite-btn",onClick:()=>{(()=>{if(w)L(Math.ceil(_[n].length/y));else{var e=0;s?.favoritetemplate?.length>0&&s?.favoritetemplate.map((t=>{(_?.[n]?.length>0&&_?.[n].findIndex((e=>e.id==t)))>-1&&e++})),L(Math.ceil(e/y))}g(!w)})()}},w?(0,e.createElement)("svg",{className:"wkit-active-favourite-svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8.99888 2.24221C10.4655 0.525545 13.1822 -0.174455 15.3822 1.32555C16.5489 2.12555 17.2822 3.47555 17.3322 4.89221C17.4405 8.12555 14.5822 10.7172 10.2072 14.6839L10.1155 14.7672C9.48221 15.3505 8.50721 15.3505 7.87388 14.7755L7.79054 14.7005L7.74021 14.6548C3.39357 10.7056 0.549324 8.12146 0.665542 4.90055C0.715542 3.47555 1.44888 2.12555 2.61554 1.32555C4.81554 -0.182788 7.53221 0.525545 8.99888 2.24221Z",fill:"#040483"})):(0,e.createElement)("svg",{className:"wkit-svg-hover",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M19.6602 3.98968C17.0202 2.18968 13.7602 3.02968 12.0002 5.08968C10.2402 3.02968 6.98021 2.17968 4.34021 3.98968C2.94021 4.94968 2.06021 6.56968 2.00021 8.27968C1.86021 12.1597 5.30021 15.2697 10.5502 20.0397L10.6502 20.1297C11.4102 20.8197 12.5802 20.8197 13.3402 20.1197L13.4502 20.0197C18.7002 15.2597 22.1302 12.1497 22.0002 8.26968C21.9402 6.56968 21.0602 4.94968 19.6602 3.98968ZM12.1002 18.5497L12.0002 18.6497L11.9002 18.5497C7.14021 14.2397 4.00021 11.3897 4.00021 8.49968C4.00021 6.49968 5.50021 4.99968 7.50021 4.99968C9.04021 4.99968 10.5402 5.98968 11.0702 7.35968H12.9402C13.4602 5.98968 14.9602 4.99968 16.5002 4.99968C18.5002 4.99968 20.0002 6.49968 20.0002 8.49968C20.0002 11.3897 16.8602 14.2397 12.1002 18.5497Z",fill:"#040483"})),(0,e.createElement)("span",{className:"wdkit-favourite-btn-title"},jt("Favourites"))))),(0,e.createElement)("div",{className:"wdkit-loop"},0==b&&_[n]?.length>0&&(0,e.createElement)("div",{className:"wdesign-kit-main"},Object.values(_[n]).slice(x,M).map(((a,l)=>{if(a.user_id==t?.wdkit_meta?.userinfo?.id)return D=""==D?0:D,(0,e.createElement)(Ot,{key:l},"websitekit"==n?(!w&&a.type===n&&It(a.post_builder,C)||w&&s.favoritetemplate.includes(Number(a.id))&&It(a.post_builder,C))&&(D++,(0,e.createElement)(Pt,{userData:s,userinfo:t?.wdkit_meta?.userinfo,handler:e=>B(e),handlerTempID:e=>c(e),data:a,builder:s.builder,currentPage:E,setLoading:e=>{h(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),favorite:s.favoritetemplate,type:n+"-view",width:"24%",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})):(!w&&a.type===n&&It(a.post_builder,C)||w&&s.favoritetemplate.includes(Number(a.id))&&It(a.post_builder,C))&&(D++,(0,e.createElement)(Pt,{userData:s,userinfo:t?.wdkit_meta?.userinfo,handler:e=>B(e),handlerTempID:e=>{"wdkit"==wdkitData.use_editor?((e,t,a,l,n)=>{if(e&&t&&l){let i=[{id:e,type:t}];l=n&&l?qt(l,n):"",c("section"==a?{pages:[],sections:i,builder:l}:{pages:i,sections:[],builder:l})}else c(e)})(e,a.wp_post_type,a.type,Number(a.post_builder),s.builder):c(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),setLoading:e=>{h(e)},data:a,builder:s.builder,currentPage:E,favorite:s.favoritetemplate,type:n,handlerAfterSuccessImported:()=>{m(!1),c("")},width:"24%",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})))}))),1==b&&(0,e.createElement)(Qe,null),0==b&&D<=0&&(0,e.createElement)(et,{page:"template",link:"https://blog.wdesignkit.com/documents/export-templates-from-your-elementor-site-to-cloud/"})),o&&(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content wkit-import-template"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",c(""))})(e),m(!1),c("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),d?(0,e.createElement)(Ot,null,(0,e.createElement)(At,{template_id:o,custom_meta_import:p,template_list:_[n],handlerAfterSuccessImported:()=>{m(!1),c("")},wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})):(0,e.createElement)(Wt,{template_id:o,handlerSuccessImport:(e,t)=>{m(e),u(t)},type:wdkitData.use_editor,templateData:s.template,pluginData:s.plugin}))),(0,e.createElement)("div",{className:"wkit-wb-paginatelist"},$>1&&(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:$,marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&f(e.nextSelectedPage+1)},forcePages:E-1,onPageActive:()=>{}}))))},{Fragment:Kt}=wp.element,{__:Jt}=wp.i18n,{form_data:zt,Success_import_template:Gt,Template_loop:Yt,Plugin_missing:Xt,checkBuilder:Qt,loadingIcon:ea,wkit_get_user_login:ta}=wp.wkit_Helper,aa=t=>{const a=Y(),n=J(),i=G(),s=new URLSearchParams(n.search),r=s.get("page"),o=s.get("wsID"),[c,d]=(0,l.useState)("loading"),[m,p]=(0,l.useState)(""),[u,w]=(0,l.useState)(!1),[g,C]=(0,l.useState)(!1),[v,b]=(0,l.useState)({pages:[],sections:[]}),[h,_]=(0,l.useState)(!1),[k,E]=(0,l.useState)(!1);var f=t.wdkit_meta?.builder?t.wdkit_meta.builder:[];(0,l.useEffect)((()=>{E(!0),a&&a.kit_id&&(async e=>{if(!e)return;let t=ta(),a="";t&&t.user_email&&t.user_email;let l={type:"kit_template",builder:window.wdkit_editor};l=Object.assign({},l,e);let n=await zt(l);if(n?.success){let e=Object.entries(n?.kitimages),t=Object.entries(n?.responsive_image),a=n?.template,l=[];a?.length>0&&await a.map((a=>{let n=e.findIndex((e=>e[0]==a.id)),i=t.findIndex((e=>e[0]==a.id));if(n>-1){let s=Object.assign({},a,{post_image:e[n][1],responsive_image:t[i][1]});l.push(s)}else l.push(a)}));var i=Object.assign({},n,{template:l})}else i=[];return await E(!1),i})({template_id:a.kit_id}).then((async e=>{await y(e)}))}),[]);const y=async e=>{let a=e?.template,l=[];a&&a.map((async e=>{("publish"==e.post_status||t?.wdkit_meta?.userinfo?.id&&e.user_id==t?.wdkit_meta?.userinfo?.id)&&l.push(e)}));let n=Object.assign({},e.data,{template:l}),i=Object.assign({},e,{data:n});await d(i)};(0,l.useEffect)((()=>{if(c?.data?.template?.length>0){let e=c?.data?.template?.length,t=v.pages.length+v.sections.length,a=c?.data?.template?.map((e=>e.is_activated)),l=[...a,...Array.isArray(c?.data?.pages)?c?.data?.pages.map((e=>e.is_activated)):[]].filter((e=>"active"==e)).length;C(e==t||l==t)}else C(!1)}),[v]);return(0,e.createElement)("div",{className:"wkit-myupload-main"},(0,e.createElement)("div",{className:"wkit-kit-header"},(0,e.createElement)("div",{className:"wkit-kit-header-back"},(0,e.createElement)(he,{to:`/${(()=>{let e=n.pathname.split("/");return"manage_workspace"==e[1]?"manage_workspace/workspace_template/"+o:e[1]})()}`,state:r},(0,e.createElement)("div",{className:"wkit-kit-header-backbtn"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M19 12H5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M12 19L5 12L12 5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)(rt,{loader:k,title:c?.kitdata?.title,svg:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",style:{width:"28px"}},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.82914 8.8996L18.0599 6.27202C18.5305 6.16194 18.9808 6.51905 18.9808 7.0023V28.9997C18.9808 29.483 18.5305 29.8401 18.0599 29.73L6.82914 27.1025C6.48991 27.0231 6.25 26.7206 6.25 26.3722V9.62988C6.25 9.28149 6.48991 8.97897 6.82914 8.8996ZM4 9.62988C4 8.23631 4.95964 7.02623 6.31657 6.70876L17.5473 4.08119C19.4295 3.64083 21.2308 5.06931 21.2308 7.0023V7.24968H21.3262H28.9992C30.6561 7.24968 31.9992 8.59282 31.9992 10.2497V25.7502C31.9992 27.4071 30.6561 28.7502 28.9992 28.7502H21.3262H21.2308V28.9997C21.2308 30.9327 19.4295 32.3612 17.5473 31.9209L6.31657 29.2933C4.95964 28.9758 4 27.7657 4 26.3722V9.62988ZM21.3262 9.49968H28.9992C29.4135 9.49968 29.7492 9.83546 29.7492 10.2497V25.7502C29.7492 26.1644 29.4135 26.5002 28.9992 26.5002H21.3262V9.49968Z",fill:"#040483"})),custom_dropdown:()=>(0,e.createElement)("div",{className:"wkit-kit-selectAll-btn"},(0,e.createElement)("input",{id:"wkit-selectAll-kitTemp",className:"wkit-selectAll-check-box",type:"checkbox",checked:g,onChange:()=>{(()=>{c?.data?.template?.length;const e=v.pages.length+v.sections.length,t=c?.data?.template?.filter((e=>"active"===e.is_activated)).length;if(g||t===e)b({pages:[],sections:[]});else{const e=c?.data?.template,t=[],a=[];e.forEach((e=>{"section"===e.type&&"active"==e.is_activated?a.push(e):"pagetemplate"===e.type&&"active"==e.is_activated&&t.push(e)})),b({pages:t,sections:a})}})()}}),(0,e.createElement)("label",{htmlFor:"wkit-selectAll-kitTemp"},Jt("Select All")))})),(0,e.createElement)("div",{className:"wdkit-loop"},0==k&&c?.data?.template?.length>0&&f&&(0,e.createElement)("div",{className:"wdesign-kit-main"},Object.values(c.data.template).map(((a,l)=>(0,e.createElement)(Kt,{key:l},Qt(a.post_builder,"all",f)&&(0,e.createElement)(Yt,{handler:e=>(e=>{c.data.favorite=e,d(c)})(e),handlerTempID:e=>p(e),data:a,setLoading:e=>{E(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),userinfo:t?.wdkit_meta?.userinfo,builder:t?.wdkit_meta?.builder,checklist:v,favorite:c.data.favorite||[],type:"websitekit",handlerMultiSelect:(e,t)=>{((e,t)=>{e&&"add"==t?"pagetemplate"==e.type?(v.pages.push(e),b({pages:v.pages,sections:v.sections})):"section"==e.type&&(v.sections.push(e),b({pages:v.pages,sections:v.sections})):e&&"remove"==t&&("pagetemplate"==e.type?b({pages:v.pages.filter((t=>t.id!=Number(e.id))),sections:v.sections}):"section"==e.type&&b({pages:v.pages,sections:v.sections.filter((t=>t.id!=Number(e.id)))}))})(e,t)}}))))),1==k&&(0,e.createElement)(Qe,null),0==k&&(null==c?.data?.template||c?.data?.template?.length<=0)&&(0,e.createElement)(et,{page:"template",link:"https://blog.wdesignkit.com/documents/create-pagekit-from-sections-and-full-pages-for-elementor-or-gutenberg/"})),0==k&&c?.data?.template?.length>0&&(v?.pages?.length>0||v?.sections?.length>0)&&(0,e.createElement)("div",{className:"wkit-total-template-wrapper"},(0,e.createElement)("div",{className:"wkit-total-title"},"Total Template Selected ( "+(v?.pages?.length+v?.sections?.length)+"/"+(c?.data?.template?.length?c?.data?.template?.length:0)+" )"),(0,e.createElement)("div",{className:"wkit-button-wrapper-group"},(0,e.createElement)("button",{type:"submit",className:"wkit-download-all wkit-btn-class",onClick:()=>{(()=>{let e=ta();e?.token?p(v):i("/login")})()}},Jt("Download")))),m&&(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content wkit-import-template"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",p(""),w(!1))})(e),w(!1),p("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),u?(0,e.createElement)(Xe,{kit_id:a.kit_id,template_id:v,custom_meta_import:h,template_list:c?.data?.template,handlerAfterSuccessImported:()=>{w(!1),p("")}}):(0,e.createElement)(Xt,{template_id:m,handlerSuccessImport:(e,t)=>((e,t)=>{p(Object.assign({},m)),_(t),w(e)})(e,t),type:"kit_page",templateData:c.data.template,pluginData:t?.wdkit_meta?.plugin}))))},{__:la}=wp.i18n,{Fragment:na}=wp.element,{__:ia}=wp.i18n,{form_data:sa,Template_loop:ra,checkBuilder:oa,loadingIcon:ca,Plugin_missing:da,Success_import_template:ma,wkit_get_user_login:pa,wkitGetBuilder:ua}=wp.wkit_Helper,wa=t=>{var a=wdkitData.WDKIT_URL;if(!pa())return t.wdkit_Login_Route("/share_with_me"),(0,e.createElement)(oe,{to:"/login"});const[n,i]=(0,l.useState)(1),[s,r]=(0,l.useState)(12),[o,c]=(0,l.useState)(0),[d,m]=(0,l.useState)(),[p,u]=(0,l.useState)([]),[w,g]=(0,l.useState)(""),[C,v]=(0,l.useState)(!1),[b,h]=(0,l.useState)(!1),[_,k]=(0,l.useState)("all"),[E,f]=(0,l.useState)("templates"),[y,N]=(0,l.useState)(!0),[$,L]=(0,l.useState)([]),x=J().state;(0,l.useEffect)((()=>{x&&i(x)}),[x]),(0,l.useEffect)((()=>{t?.wdkit_meta?.userinfo&&m(t?.wdkit_meta)}),[t?.wdkit_meta?.userinfo]),(0,l.useEffect)((()=>{d&&(async()=>{N(!0);let e=Pe();if(e){let a={token:e.token,type:"widgets"==E?"builder":"templates"==E?"template":"",current_page:n,par_page:s,id:d?.userinfo?.id,builder:window.wdkit_editor},l={type:"shared_with_me",api_info:JSON.stringify(a)};await je(l).then((async e=>{if(await u(e),"widgets"==E){(async e=>{if(e){let a=[];(t?.wdkit_meta?.widget_list?t.wdkit_meta.widget_list:[]).map((async t=>{"plugin"!=t?.type&&"done"!=t?.type||e.findIndex((e=>e.w_unique==t.w_unique))>-1&&a.push(t.w_unique)})),L(a)}})(e?.data?.content)}let a=e?.data?.data?.total?e.data.data.total:0;c(Math.ceil(a/s))}))}N(!1)})()}),[E,n,d]);return(0,e.createElement)("div",{className:"wkit-myupload-main"},(0,e.createElement)(rt,{title:"Shared With Me",svg:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M27 24.121C25.86 24.121 24.84 24.571 24.06 25.276L13.365 19.051C13.44 18.706 13.5 18.361 13.5 18.001C13.5 17.641 13.44 17.296 13.365 16.951L23.94 10.786C24.75 11.536 25.815 12.001 27 12.001C29.49 12.001 31.5 9.99098 31.5 7.50098C31.5 5.01098 29.49 3.00098 27 3.00098C24.51 3.00098 22.5 5.01098 22.5 7.50098C22.5 7.86098 22.56 8.20598 22.635 8.55098L12.06 14.716C11.25 13.966 10.185 13.501 9 13.501C6.51 13.501 4.5 15.511 4.5 18.001C4.5 20.491 6.51 22.501 9 22.501C10.185 22.501 11.25 22.036 12.06 21.286L22.74 27.526C22.665 27.841 22.62 28.171 22.62 28.501C22.62 30.916 24.585 32.881 27 32.881C29.415 32.881 31.38 30.916 31.38 28.501C31.38 26.086 29.415 24.121 27 24.121ZM27 6.00098C27.825 6.00098 28.5 6.67598 28.5 7.50098C28.5 8.32598 27.825 9.00098 27 9.00098C26.175 9.00098 25.5 8.32598 25.5 7.50098C25.5 6.67598 26.175 6.00098 27 6.00098ZM9 19.501C8.175 19.501 7.5 18.826 7.5 18.001C7.5 17.176 8.175 16.501 9 16.501C9.825 16.501 10.5 17.176 10.5 18.001C10.5 18.826 9.825 19.501 9 19.501ZM27 30.031C26.175 30.031 25.5 29.356 25.5 28.531C25.5 27.706 26.175 27.031 27 27.031C27.825 27.031 28.5 27.706 28.5 28.531C28.5 29.356 27.825 30.031 27 30.031Z",fill:"#040483"})),custom_dropdown:()=>"wdkit"==window?.wdkit_editor&&(0,e.createElement)(na,null,(0,e.createElement)("div",{className:"wkit-custom-dropDown",onClick:e=>{(e=>{let t=e.target.closest(".wkit-custom-dropDown"),a=t.querySelector(".wkit-custom-dropDown-content")?t.querySelector(".wkit-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-show")?(a.classList.remove("wkit-show"),document.querySelector(".wkit-custom-dropDown-header img").style.transform="rotate(0deg)"):(a.classList.add("wkit-show"),document.querySelector(".wkit-custom-dropDown-header img").style.transform="rotate(180deg)",document.querySelector(".wkit-custom-dropDown-header img").style.transition="0.3s"))})(e)},style:{width:"150px"}},(0,e.createElement)("div",{className:"wkit-custom-dropDown-header wkit-shareWithMe-drop-down"},"templates"===E&&(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.375 1.5H2.375L2.375 4.5H17.375V1.5ZM0.875 4.5V6V16.5C0.875 17.3284 1.54657 18 2.375 18H17.375C18.2034 18 18.875 17.3284 18.875 16.5V6V4.5V1.5C18.875 0.671573 18.2034 0 17.375 0H2.375C1.54657 0 0.875 0.671573 0.875 1.5V4.5ZM2.375 16.5H17.375V6H2.375L2.375 16.5ZM3.875 8.625C3.875 8.41789 4.04289 8.25 4.25 8.25H15.5C15.7071 8.25 15.875 8.41789 15.875 8.625V9.375C15.875 9.58211 15.7071 9.75 15.5 9.75H4.25C4.04289 9.75 3.875 9.58211 3.875 9.375V8.625ZM4.625 11.25C4.21079 11.25 3.875 11.5858 3.875 12V13.5C3.875 13.9142 4.21079 14.25 4.625 14.25H6.125C6.53921 14.25 6.875 13.9142 6.875 13.5V12C6.875 11.5858 6.53921 11.25 6.125 11.25H4.625ZM8.375 12C8.375 11.5858 8.71079 11.25 9.125 11.25H10.625C11.0392 11.25 11.375 11.5858 11.375 12V13.5C11.375 13.9142 11.0392 14.25 10.625 14.25H9.125C8.71079 14.25 8.375 13.9142 8.375 13.5V12ZM13.625 11.25C13.2108 11.25 12.875 11.5858 12.875 12V13.5C12.875 13.9142 13.2108 14.25 13.625 14.25H15.125C15.5392 14.25 15.875 13.9142 15.875 13.5V12C15.875 11.5858 15.5392 11.25 15.125 11.25H13.625ZM4.625 3.75C5.03921 3.75 5.375 3.41421 5.375 3C5.375 2.58579 5.03921 2.25 4.625 2.25C4.21079 2.25 3.875 2.58579 3.875 3C3.875 3.41421 4.21079 3.75 4.625 3.75ZM8.375 3C8.375 3.41421 8.03921 3.75 7.625 3.75C7.21079 3.75 6.875 3.41421 6.875 3C6.875 2.58579 7.21079 2.25 7.625 2.25C8.03921 2.25 8.375 2.58579 8.375 3ZM10.625 3.75C11.0392 3.75 11.375 3.41421 11.375 3C11.375 2.58579 11.0392 2.25 10.625 2.25C10.2108 2.25 9.875 2.58579 9.875 3C9.875 3.41421 10.2108 3.75 10.625 3.75Z",fill:"#737373"})),"widgets"===E&&(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.01515 0.436679C9.53163 0.0751434 10.2191 0.0751432 10.7355 0.436679L16.9849 4.81123C17.8049 5.38524 17.8434 6.58609 17.0617 7.21138L16.751 7.45999L16.9849 7.62373C17.8049 8.19774 17.8434 9.39859 17.0617 10.0239L16.751 10.2725L16.9849 10.4362C17.8049 11.0102 17.8434 12.2111 17.0617 12.8364L14.0939 15.2107L11.7494 17.0862C10.6538 17.9628 9.09692 17.9628 8.00126 17.0862L5.65682 15.2107L2.68894 12.8364C1.90733 12.2111 1.94577 11.0102 2.76579 10.4362L2.99971 10.2725L2.68894 10.0239C1.90733 9.39859 1.94577 8.19774 2.76579 7.62373L2.99971 7.45999L2.68894 7.21138C1.90732 6.58609 1.94578 5.38524 2.76579 4.81123L9.01515 0.436679ZM4.22036 11.249L3.62599 11.6651L6.59387 14.0394L8.9383 15.9149C9.48613 16.3532 10.2646 16.3532 10.8124 15.9149L13.1568 14.0394L16.1247 11.6651L15.5303 11.249L14.0939 12.3982L11.7494 14.2737C10.6538 15.1503 9.09692 15.1503 8.00126 14.2737L5.65682 12.3982L4.22036 11.249ZM14.0939 9.58569L15.5303 8.43652L16.1247 8.85258L13.1568 11.2269L10.8124 13.1024C10.2646 13.5407 9.48613 13.5407 8.9383 13.1024L6.59387 11.2269L3.62599 8.85258L4.22036 8.43652L5.65682 9.58569L8.00126 11.4612C9.09692 12.3378 10.6538 12.3378 11.7494 11.4612L14.0939 9.58569ZM16.1247 6.04008L9.87535 1.66553L3.62599 6.04008L6.59387 8.41438L8.9383 10.2899C9.48613 10.7282 10.2646 10.7282 10.8124 10.2899L13.1568 8.41438L16.1247 6.04008Z",fill:"#737373"})),(0,e.createElement)("label",null,E),(0,e.createElement)("img",{src:a+"assets/images/wb-svg/controller-open.svg",style:{width:"15px"}})),(0,e.createElement)("div",{className:"wkit-custom-dropDown-content"},(0,e.createElement)("div",{className:"wkit-drop-down-outer"}),(0,e.createElement)("div",{className:"wkit-custom-dropDown-options",onClick:e=>{f("templates")}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.375 1.5H2.375L2.375 4.5H17.375V1.5ZM0.875 4.5V6V16.5C0.875 17.3284 1.54657 18 2.375 18H17.375C18.2034 18 18.875 17.3284 18.875 16.5V6V4.5V1.5C18.875 0.671573 18.2034 0 17.375 0H2.375C1.54657 0 0.875 0.671573 0.875 1.5V4.5ZM2.375 16.5H17.375V6H2.375L2.375 16.5ZM3.875 8.625C3.875 8.41789 4.04289 8.25 4.25 8.25H15.5C15.7071 8.25 15.875 8.41789 15.875 8.625V9.375C15.875 9.58211 15.7071 9.75 15.5 9.75H4.25C4.04289 9.75 3.875 9.58211 3.875 9.375V8.625ZM4.625 11.25C4.21079 11.25 3.875 11.5858 3.875 12V13.5C3.875 13.9142 4.21079 14.25 4.625 14.25H6.125C6.53921 14.25 6.875 13.9142 6.875 13.5V12C6.875 11.5858 6.53921 11.25 6.125 11.25H4.625ZM8.375 12C8.375 11.5858 8.71079 11.25 9.125 11.25H10.625C11.0392 11.25 11.375 11.5858 11.375 12V13.5C11.375 13.9142 11.0392 14.25 10.625 14.25H9.125C8.71079 14.25 8.375 13.9142 8.375 13.5V12ZM13.625 11.25C13.2108 11.25 12.875 11.5858 12.875 12V13.5C12.875 13.9142 13.2108 14.25 13.625 14.25H15.125C15.5392 14.25 15.875 13.9142 15.875 13.5V12C15.875 11.5858 15.5392 11.25 15.125 11.25H13.625ZM4.625 3.75C5.03921 3.75 5.375 3.41421 5.375 3C5.375 2.58579 5.03921 2.25 4.625 2.25C4.21079 2.25 3.875 2.58579 3.875 3C3.875 3.41421 4.21079 3.75 4.625 3.75ZM8.375 3C8.375 3.41421 8.03921 3.75 7.625 3.75C7.21079 3.75 6.875 3.41421 6.875 3C6.875 2.58579 7.21079 2.25 7.625 2.25C8.03921 2.25 8.375 2.58579 8.375 3ZM10.625 3.75C11.0392 3.75 11.375 3.41421 11.375 3C11.375 2.58579 11.0392 2.25 10.625 2.25C10.2108 2.25 9.875 2.58579 9.875 3C9.875 3.41421 10.2108 3.75 10.625 3.75Z",fill:"#737373"})),(0,e.createElement)("span",null,ia("Templates"))),(0,e.createElement)("div",{className:"wkit-custom-dropDown-options",onClick:e=>{f("widgets")}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.01515 0.436679C9.53163 0.0751434 10.2191 0.0751432 10.7355 0.436679L16.9849 4.81123C17.8049 5.38524 17.8434 6.58609 17.0617 7.21138L16.751 7.45999L16.9849 7.62373C17.8049 8.19774 17.8434 9.39859 17.0617 10.0239L16.751 10.2725L16.9849 10.4362C17.8049 11.0102 17.8434 12.2111 17.0617 12.8364L14.0939 15.2107L11.7494 17.0862C10.6538 17.9628 9.09692 17.9628 8.00126 17.0862L5.65682 15.2107L2.68894 12.8364C1.90733 12.2111 1.94577 11.0102 2.76579 10.4362L2.99971 10.2725L2.68894 10.0239C1.90733 9.39859 1.94577 8.19774 2.76579 7.62373L2.99971 7.45999L2.68894 7.21138C1.90732 6.58609 1.94578 5.38524 2.76579 4.81123L9.01515 0.436679ZM4.22036 11.249L3.62599 11.6651L6.59387 14.0394L8.9383 15.9149C9.48613 16.3532 10.2646 16.3532 10.8124 15.9149L13.1568 14.0394L16.1247 11.6651L15.5303 11.249L14.0939 12.3982L11.7494 14.2737C10.6538 15.1503 9.09692 15.1503 8.00126 14.2737L5.65682 12.3982L4.22036 11.249ZM14.0939 9.58569L15.5303 8.43652L16.1247 8.85258L13.1568 11.2269L10.8124 13.1024C10.2646 13.5407 9.48613 13.5407 8.9383 13.1024L6.59387 11.2269L3.62599 8.85258L4.22036 8.43652L5.65682 9.58569L8.00126 11.4612C9.09692 12.3378 10.6538 12.3378 11.7494 11.4612L14.0939 9.58569ZM16.1247 6.04008L9.87535 1.66553L3.62599 6.04008L6.59387 8.41438L8.9383 10.2899C9.48613 10.7282 10.2646 10.7282 10.8124 10.2899L13.1568 8.41438L16.1247 6.04008Z",fill:"#737373"})),(0,e.createElement)("span",null,ia("Widgets"))))))}),(0,e.createElement)("div",{className:"wdkit-loop"},p?.data?.content?.length>0&&t?.wdkit_meta&&!y&&(0,e.createElement)("div",{className:"wdesign-kit-main wkit-grid-columns"},Object.values(p.data.content).map(((a,l)=>(0,e.createElement)(na,{key:l},"templates"==E?(0,e.createElement)(na,null,oa(a.post_builder,_)&&(0,e.createElement)(ra,{handler:e=>u(p),handlerTempID:e=>{"wdkit"==wdkitData.use_editor?((e,t,a,l,n)=>{if(e&&t&&l){let i=[{id:e,type:t}];l=n&&l?ua(l,n):"",g("section"==a?{pages:[],sections:i,builder:l}:{pages:i,sections:[],builder:l})}else g(e)})(e,a.wp_post_type,a.type,Number(a.post_builder),d.builder):g(e)},userinfo:t?.wdkit_meta?.userinfo,data:a,currentPage:n,builder:t?.wdkit_meta?.builder,type:"websitekit"==a.type?a.type+"-view":a.type,width:"24%",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})):(0,e.createElement)(na,{key:l},(0,e.createElement)(st,{widgetData:a,existingwidget:$,setexistingwidget:e=>{L(e)},widgetbuilder:t.wdkit_meta.widgetbuilder,index:l,wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_meta:t?.wdkit_meta,userinfo:t?.wdkit_meta?.userinfo,type:"share_with_me",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}})))))),(0==p?.data?.total||"error"==p?.data?.data)&&0==y&&(0,e.createElement)(et,{page:E,link:"https://blog.wdesignkit.com/documents/add-templates-and-widgets-in-workspace/"}),y&&(0,e.createElement)("div",{style:{width:"100%"}},(0,e.createElement)(Qe,null))),w&&(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content wkit-import-template"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",g(""))})(e),v(!1),g("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),C?(0,e.createElement)(ma,{template_id:w,custom_meta_import:b,template_list:p?.data?.content,handlerAfterSuccessImported:()=>{v(!1),g("")},wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}}):(0,e.createElement)(da,{template_id:w,handlerSuccessImport:(e,t)=>{v(e),h(t)},type:wdkitData.use_editor,templateData:p?.data?.content,pluginData:t?.wdkit_meta?.plugin,wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}}))),(0,e.createElement)("div",{className:"wkit-wb-paginatelist"},o>1&&(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:o,marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&i(e.nextSelectedPage+1)},forcePage:n-1,onPageActive:()=>{}}))))},{Fragment:ga}=wp.element,{__:Ca}=wp.i18n,{get_userinfo:va,Add_workspace:ba,manage_WorkSpace_Api:ha,wkit_get_user_login:_a,Letter_image:ka}=wp.wkit_Helper,Ea=t=>{let a=_a();if(!a)return t.wdkit_Login_Route("/manage_workspace"),(0,e.createElement)(oe,{to:"/login"});const[n,i]=(0,l.useState)("loading"),[s,r]=(0,l.useState)(!1),[o,c]=(0,l.useState)(!1),[d,m]=(0,l.useState)(),[p,u]=(0,l.useState)(!0),[w,g]=(0,l.useState)(!1),[C,v]=(0,l.useState)(-1);(0,l.useEffect)((()=>{u(!0),i(t?.wdkit_meta),t?.wdkit_meta?.workspace&&u(!1)}),[t?.wdkit_meta]),(0,l.useEffect)((()=>{b()}),[n,a?.work_widgets?.length]);const b=async()=>{let e=n?.workspace,t=n?.userinfo?.id,a=0;await e&&e.map((e=>{e.u_id==t&&(a+=1)})),m(a)};var h,_=wdkitData.WDKIT_URL;return(0,e.createElement)("div",{className:"wkit-manage-main"},(0,e.createElement)(rt,{title:"Manage Workspace",svg:(0,e.createElement)("svg",{"data-v-20a7cc98":"",width:"30",height:"28",viewBox:"0 0 30 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"wkit-manage-icon-svg"},(0,e.createElement)("path",{"data-v-20a7cc98":"",d:"M6 18.5C7.65 18.5 9 19.85 9 21.5C9 23.15 7.65 24.5 6 24.5C4.35 24.5 3 23.15 3 21.5C3 19.85 4.35 18.5 6 18.5ZM6 15.5C2.7 15.5 0 18.2 0 21.5C0 24.8 2.7 27.5 6 27.5C9.3 27.5 12 24.8 12 21.5C12 18.2 9.3 15.5 6 15.5ZM15 3.5C16.65 3.5 18 4.85 18 6.5C18 8.15 16.65 9.5 15 9.5C13.35 9.5 12 8.15 12 6.5C12 4.85 13.35 3.5 15 3.5ZM15 0.5C11.7 0.5 9 3.2 9 6.5C9 9.8 11.7 12.5 15 12.5C18.3 12.5 21 9.8 21 6.5C21 3.2 18.3 0.5 15 0.5ZM24 18.5C25.65 18.5 27 19.85 27 21.5C27 23.15 25.65 24.5 24 24.5C22.35 24.5 21 23.15 21 21.5C21 19.85 22.35 18.5 24 18.5ZM24 15.5C20.7 15.5 18 18.2 18 21.5C18 24.8 20.7 27.5 24 27.5C27.3 27.5 30 24.8 30 21.5C30 18.2 27.3 15.5 24 15.5Z",fill:"#040483"}))}),(0,e.createElement)("div",{className:"wkit-workspace-wrapper"},n?.workspace&&0==p&&(0,e.createElement)("div",{className:"wkit-workspace-wrapper-content"},(0,e.createElement)(ga,null,Object.values(n.workspace).map(((a,l)=>{let i=a.w_id;return(0,e.createElement)("div",{className:"wkit-workspace-wraped",key:l},(0,e.createElement)("div",{className:"wkit-workspace-box"},"active"!=a?.is_activated&&(0,e.createElement)(ga,null,(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate"},(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-h1"},Ca("Credit Limit Reached!")),(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-p"},Ca("This Template got disabled until you have more credits to make it active.")),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",null,Ca("Buy Credits")))),(0,e.createElement)("span",{className:"wdkit-inner-boxed-remove"},(0,e.createElement)("svg",{onClick:()=>{v(i)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66634 1.83203C5.44533 1.83203 5.23337 1.91983 5.07709 2.07611C4.9208 2.23239 4.83301 2.44435 4.83301 2.66536V3.4987H9.16634V2.66536C9.16634 2.44435 9.07854 2.23239 8.92226 2.07611C8.76598 1.91983 8.55402 1.83203 8.33301 1.83203H5.66634ZM10.1663 3.4987V2.66536C10.1663 2.17913 9.97319 1.71282 9.62937 1.369C9.28555 1.02519 8.81924 0.832031 8.33301 0.832031H5.66634C5.18011 0.832031 4.7138 1.02519 4.36998 1.369C4.02616 1.71282 3.83301 2.17913 3.83301 2.66536V3.4987H2.33301C2.32078 3.4987 2.30865 3.49914 2.29664 3.5H1C0.723858 3.5 0.5 3.72386 0.5 4C0.5 4.27614 0.723858 4.5 1 4.5H1.83301V13.332C1.83301 13.8183 2.02616 14.2846 2.36998 14.6284C2.7138 14.9722 3.18011 15.1654 3.66634 15.1654H10.333C10.8192 15.1654 11.2856 14.9722 11.6294 14.6284C11.9732 14.2846 12.1663 13.8183 12.1663 13.332V4.5H13C13.2761 4.5 13.5 4.27614 13.5 4C13.5 3.72386 13.2761 3.5 13 3.5H11.7027C11.6907 3.49914 11.6786 3.4987 11.6663 3.4987H10.1663ZM2.83301 13.332V4.5H11.1663V13.332C11.1663 13.553 11.0785 13.765 10.9223 13.9213C10.766 14.0776 10.554 14.1654 10.333 14.1654H3.66634C3.44533 14.1654 3.23337 14.0776 3.07709 13.9213C2.9208 13.765 2.83301 13.553 2.83301 13.332ZM7.5 7.33203C7.5 7.05589 7.27614 6.83203 7 6.83203C6.72386 6.83203 6.5 7.05589 6.5 7.33203V11.332C6.5 11.6082 6.72386 11.832 7 11.832C7.27614 11.832 7.5 11.6082 7.5 11.332V7.33203Z",fill:"#1E1E1E"})))),(0,e.createElement)("div",{className:"wkit-workspace-card-container"},(0,e.createElement)("div",{className:"wkit-workspace-mixed"},a.work_icon?(0,e.createElement)("img",{src:a.work_icon,alt:"workspace-icon",className:"wkit-profile-back",draggable:"false"}):(0,e.createElement)("div",{className:"wkit-profile-back wkit-profile-letter",style:{textTransform:"uppercase"}},ka(a.work_title)),(a=>(0,e.createElement)("div",{className:"wkit-top-user"},(0,e.createElement)("div",{className:"wkit-live-user wkit-workspace-detail"},(0,e.createElement)("img",{src:_+"assets/images/svg/user.svg",alt:"user img",draggable:"false"}),(0,e.createElement)("span",null,Object.values(a.share_user).length),(0,e.createElement)("span",{className:"wkit-workspace-tool-tip"},Ca("Users"))),1==t?.wdkit_meta?.Setting?.template&&(0,e.createElement)("div",{className:"wkit-workspace-edit-temp wkit-workspace-detail"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none"},(0,e.createElement)("path",{d:"M12.1062 3.54375C12.35 3.3 12.35 2.90625 12.1062 2.6625L10.3375 0.89375C10.0938 0.65 9.7 0.65 9.45625 0.89375L6.65 3.7L4.21875 1.26875C3.73125 0.78125 2.9375 0.78125 2.45 1.26875L1.2625 2.45625C0.775 2.94375 0.775 3.7375 1.2625 4.225L3.69375 6.65625L0.875 9.475V12.125H3.525L6.35 9.3L8.78125 11.7313C9.375 12.325 10.175 12.1063 10.55 11.7313L11.7375 10.5437C12.225 10.0562 12.225 9.2625 11.7375 8.775L9.30625 6.34375L12.1062 3.54375ZM2.15 3.3375L3.33125 2.15L4.125 2.94375L3.3875 3.6875L4.26875 4.56875L5.0125 3.825L5.7625 4.575L4.575 5.7625L2.15 3.3375ZM9.16875 7.9875L8.425 8.73125L9.30625 9.6125L10.05 8.86875L10.8438 9.6625L9.65625 10.85L7.225 8.41875L8.4125 7.23125L9.16875 7.9875ZM3.00625 10.875H2.125V9.99375L8.13125 3.9875L8.94375 4.8L9.0125 4.86875L3.00625 10.875ZM9.0125 3.1L9.89375 2.21875L10.775 3.1L9.89375 3.98125L9.0125 3.1Z",fill:"#4D69FA"})),(0,e.createElement)("span",null,a.work_templates.length),(0,e.createElement)("span",{className:"wkit-workspace-tool-tip"},Ca("Templates"))),1==t?.wdkit_meta?.Setting?.builder&&(0,e.createElement)("div",{className:"wkit-workspace-edit-widget wkit-workspace-detail"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.12111 0.363656C6.55151 0.0623758 7.12436 0.0623748 7.55476 0.363655L12.7626 4.00912C13.4459 4.48746 13.478 5.48816 12.8266 6.00924L12.5676 6.21642L12.7626 6.35287C13.4459 6.83121 13.478 7.83191 12.8266 8.35299L12.5676 8.56017L12.7626 8.69662C13.4459 9.17496 13.478 10.1757 12.8266 10.6967L10.3534 12.6753L8.39967 14.2383C7.48663 14.9687 6.18924 14.9687 5.2762 14.2383L3.3225 12.6753L0.849267 10.6967C0.197919 10.1757 0.229957 9.17496 0.913307 8.69662L1.10823 8.56017L0.849267 8.35299C0.197919 7.83191 0.229957 6.83121 0.913307 6.35287L1.10824 6.21642L0.849267 6.00924C0.197919 5.48816 0.229957 4.48746 0.913307 4.00912L6.12111 0.363656ZM2.12545 9.37394L1.63014 9.72066L4.10337 11.6992L6.05707 13.2622C6.51359 13.6274 7.16228 13.6274 7.6188 13.2622L9.5725 11.6992L12.0457 9.72066L11.5504 9.37394L10.3534 10.3316L8.39967 11.8945C7.48663 12.625 6.18924 12.625 5.2762 11.8945L3.3225 10.3316L2.12545 9.37394ZM10.3534 7.98783L11.5504 7.03019L12.0457 7.37691L9.5725 9.35549L7.6188 10.9185C7.16228 11.2837 6.51359 11.2837 6.05707 10.9185L4.10337 9.35549L1.63014 7.37691L2.12545 7.03019L3.3225 7.98783L5.2762 9.55079C6.18924 10.2812 7.48663 10.2812 8.39967 9.55079L10.3534 7.98783ZM12.0457 5.03316L6.83794 1.3877L1.63013 5.03316L4.10337 7.01174L6.05707 8.5747C6.51359 8.93992 7.16228 8.93992 7.6188 8.5747L9.5725 7.01174L12.0457 5.03316Z",fill:"#C22076"})),(0,e.createElement)("span",null,a.work_widgets.length),(0,e.createElement)("span",{className:"wkit-workspace-tool-tip"},Ca("Widgets")))))(a)),(0,e.createElement)(he,{to:"/manage_workspace/workspace_template/"+i},(0,e.createElement)("div",{className:"wkit-user-name"},a.work_title)),(0,e.createElement)("div",{className:"wkit-author-select-wrapper"},(t=>{let a=t?.share_user[t.u_id]?t?.share_user[t.u_id]:"",l=n?.userinfo?.full_name?n.userinfo.full_name:"",i=n?.userinfo?.user_profile?n.userinfo.user_profile:"",s=n?.userinfo?.id?n.userinfo.id:"";return(0,e.createElement)("div",{className:"wkit-avatar-name"},(0,e.createElement)("span",null,Ca("by")),t.u_id==s&&i?(0,e.createElement)("img",{src:i,alt:"user-img",style:{borderRadius:"50px"},draggable:"false"}):(0,e.createElement)("img",{src:a.user_profile,alt:"user-img",style:{borderRadius:"50px"},draggable:"false"}),(0,e.createElement)("span",{className:"wkit-avatar-main-name"},t?.u_id==s?l:a.full_name))})(a),(t=>{let a=t.w_id;return(0,e.createElement)("div",{className:"wkit-custom-dropDown",onClick:e=>{(e=>{let t=e.target.closest(".wkit-custom-dropDown"),a=t.querySelector(".wkit-custom-dropDown-content")?t.querySelector(".wkit-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-show")?a.classList.remove("wkit-show"):a.classList.add("wkit-show"))})(e)},style:{width:"max-content"}},(0,e.createElement)("div",{className:"wkit-ws-card-menu wkit-custom-dropDown-header"},(0,e.createElement)("svg",{"data-v-20a7cc98":"",width:"16",height:"4",viewBox:"0 0 16 4",fill:"#19191B",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{"data-v-20a7cc98":"",d:"M12 2C12 3.1 12.9 4 14 4C15.1 4 16 3.1 16 2C16 0.9 15.1 -3.93402e-08 14 -8.74228e-08C12.9 -1.35505e-07 12 0.9 12 2ZM10 2C10 0.9 9.1 -3.01609e-07 8 -3.49691e-07C6.9 -3.97774e-07 6 0.9 6 2C6 3.1 6.9 4 8 4C9.1 4 10 3.1 10 2ZM4 2C4 0.899999 3.1 -5.63877e-07 2 -6.11959e-07C0.9 -6.60042e-07 -3.93403e-08 0.899999 -8.74228e-08 2C-1.35505e-07 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2Z"}))),(0,e.createElement)("div",{className:"wkit-custom-dropDown-content",style:{width:"130px"}},(0,e.createElement)("div",{className:"wkit-drop-down-outer"}),(0,e.createElement)(he,{to:"/manage_workspace/workspace_template/"+a},(0,e.createElement)("div",{className:"wkit-custom-dropDown-options"},(0,e.createElement)("span",{className:"wkit-custom-dropDown-icon"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.75 9C0.75 9 3.75 3 9 3C14.25 3 17.25 9 17.25 9C17.25 9 14.25 15 9 15C3.75 15 0.75 9 0.75 9Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9 11.25C10.2426 11.25 11.25 10.2426 11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",null,Ca("View")))),"admin"==t?.roles&&(0,e.createElement)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{v(a)}},(0,e.createElement)("span",{className:"wkit-custom-dropDown-icon"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3.75 5.50006H4.91667M4.91667 5.50006H14.25M4.91667 5.50006L4.91638 13.666C4.91638 13.9754 5.0393 14.2722 5.25809 14.491C5.47688 14.7098 5.77363 14.8327 6.08305 14.8327H11.9164C12.2258 14.8327 12.5225 14.7098 12.7413 14.491C12.9601 14.2722 13.083 13.9754 13.083 13.666V5.49935M6.66638 5.49935V4.33268C6.66638 4.02326 6.7893 3.72652 7.00809 3.50772C7.22688 3.28893 7.52363 3.16602 7.83305 3.16602H10.1664C10.4758 3.16602 10.7725 3.28893 10.9913 3.50772C11.2101 3.72652 11.333 4.02326 11.333 4.33268V5.49935",stroke:"#737373",strokeWidth:"1.3125",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",null,Ca("Delete")))))})(a)))))}))),(h=n?.credits?.workspace_limit?.meta_value?n?.credits?.workspace_limit?.meta_value:1,(0,e.createElement)(ga,null,(0,e.createElement)("div",{className:"wkit-add-new-workspace-wrapperd"},(0,e.createElement)("div",{className:"wkit-add-new-workspace"},(0,e.createElement)("div",{className:"wkit-add-new-content"},(0,e.createElement)("div",{className:"wkit-add-new-text"},(0,e.createElement)("span",{className:"wkit-add-new-Title"},Ca("unlimited"==h||d<h?"New Workspace ?":"You have used free Credit")),(0,e.createElement)("span",{className:"wkit-add-new-desc"},Ca("unlimited"==h||d<h?"Manage and collaborate with ease.":"You need to purchase now to add more workspace"))),"unlimited"==h||d<h?(0,e.createElement)("button",{className:"wkit-pink-btn-class",onClick:()=>r(!0)},Ca("Create Workspace")):(0,e.createElement)("div",null,(0,e.createElement)("a",{className:"wkit-btn-buy-now wkit-pink-btn-class",href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},Ca("Buy Now")))),(0,e.createElement)("div",{className:"wkit-add-new-workspace-img"},(0,e.createElement)("img",{src:"unlimited"==h||d<h?_+"assets/images/jpg/addWorkspace.png":_+"assets/images/jpg/free-credit-full.png",draggable:"false"}))))))),1==p&&(0,e.createElement)(lt,null),s&&(0,e.createElement)(ba,{type:"manage",closePopUp:()=>{r(!1)},Toast:(e,a,l)=>t.wdkit_set_toast([e,a,"",l]),UpdateUserData:e=>{t.wdkit_set_meta(e.data)},setLoading:e=>{u(e)}})),Number(C)>-1&&(0,e.createElement)(Ue,{setdeleteWsID:e=>v(e),removeFunction:()=>{(async e=>{if(u(!0),c(!0),g(!0),!e)return!1;let a={wid:e,wstype:"remove"};var l=await ha(a);if(l?.data?.success){if(0!=t?.wdkit_meta.length&&t?.wdkit_meta.workspace)for(var n=0;n<t?.wdkit_meta.workspace.length;n++)t?.wdkit_meta.workspace[n].w_id===e&&t?.wdkit_meta.workspace.splice(n,1);t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","success"])}let i=await va();await t.wdkit_set_meta(i.data),await c(!1),u(!1),g(!1),v(-1)})(C)},isLoading:w}))},fa=()=>(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-single-workspace-header wkit-workspace-boxed"},(0,e.createElement)("div",{className:"wkit-single-skeleton-left-side"},(0,e.createElement)("div",{className:"wkit-skeleton-profile-img wkit-main-profile-skeleton",style:{borderRadius:"5px"}}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}),(0,e.createElement)("div",{className:"wkit-workspace-skeleton-btn-wrapper"},(0,e.createElement)("div",{className:"wkit-btn"}),(0,e.createElement)("div",{className:"wkit-btn"}))),(0,e.createElement)("div",{className:"wkit-single-skeleton-right-side"},(0,e.createElement)("div",null,(0,e.createElement)("ul",{className:"wkit-small-img-wrapper"},(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-skeleton-profile-img"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-skeleton-profile-img"})),(0,e.createElement)("li",null,(0,e.createElement)("div",{className:"wkit-skeleton-profile-img"})))),(0,e.createElement)("div",{className:"template-page-kit-title"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})))),(0,e.createElement)(Qe,null)),{__:ya}=wp.i18n,{Fragment:Na}=wp.element,{get_userinfo:$a,Template_loop:La,form_data:xa,Plugin_missing:Ha,Success_import_template:Ma,wkit_get_user_login:Va,wkitGetBuilder:Da}=wp.wkit_Helper,Sa=t=>{let a=Va();if(!a)return(0,e.createElement)(oe,{to:"/login"});const n=Y(),[i,s]=(0,l.useState)("loading"),[r,o]=(0,l.useState)(""),[c,d]=(0,l.useState)("templates"),[m,p]=(0,l.useState)("all"),[u,w]=(0,l.useState)(),[g,C]=(0,l.useState)(""),[v,b]=(0,l.useState)(!1),[h,_]=(0,l.useState)(!1),[k,E]=(0,l.useState)(""),[f,y]=(0,l.useState)(!1),[N,$]=(0,l.useState)(""),[L,x]=(0,l.useState)(!1),[H,M]=(0,l.useState)(-1),[V,D]=(0,l.useState)(!1),[S,Z]=(0,l.useState)([]),[R,B]=(0,l.useState)([]),[T,O]=(0,l.useState)(!1),[j,A]=(0,l.useState)(-1),[P,W]=(0,l.useState)([]),[I,F]=(0,l.useState)(-1),[q,U]=(0,l.useState)([]),[K,J]=(0,l.useState)([]),[z,X]=(0,l.useState)(1),[Q,ee]=(0,l.useState)(12),[te,ae]=(0,l.useState)(),[le,ne]=(0,l.useState)(),ie=G();var se=wdkitData.WDKIT_URL;(0,l.useEffect)((()=>{if(t?.wdkit_meta?.workspace){let e=t?.wdkit_meta?.workspace.findIndex((e=>e.w_id==n.id));"active"==t?.wdkit_meta?.workspace?.[e]?.is_activated?(s(t.wdkit_meta),t?.wdkit_meta?.workspace&&Object.values(t?.wdkit_meta?.workspace).map((e=>{""!=n.id&&Number(n.id)===e.w_id&&(w(e),o(e.work_title))})),D(!1)):(ie("/manage_workspace"),t.wdkit_set_toast(["Workspace Deactivated","This Workspace is Deactivated","","danger"]))}}),[t.wdkit_meta]),(0,l.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("Gutenberg"),t?.wdkit_meta?.Setting?.bricks_builder&&e.push("Bricks"),U(e);let a=[];t?.wdkit_meta?.Setting?.elementor_template&&a.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_template&&a.push("Gutenberg"),J(a)}),[t?.wdkit_meta?.Setting]),(0,l.useEffect)((()=>{if(D(!0),u){let e=(z-1)*Q,t=e+Q;ae(e),ne(t)}setTimeout((()=>{D(!1)}),700)}),[m,c,z]),(0,l.useEffect)((()=>{re(c)}),[u,m,c]);const re=async e=>{let t=[];if("templates"==e){let e=i?.template,a=u?.work_templates;a?.length>0&&a.map((a=>{if("all"==m)var l=e.findIndex((e=>e.id==a));else l=e.findIndex((e=>e.id==a&&e.builder==m));l>-1&&t.push(e[l])}))}else if("widgets"==e){var a=[];if(i?.widgettemplate){const e=e=>{if(i?.widgetbuilder){let t=i?.widgetbuilder,a=t.findIndex((t=>t.w_id==e));if(a>-1)return t[a].builder_name.toLowerCase()}};let t=[...i?.widgettemplate];a=t.filter((t=>{if(i?.Setting[`${e(t.builder)}_builder`])return t}))}let e=u?.work_widgets;e&&e.map((async e=>{if("all"==m)var l=a.findIndex((t=>t.id==e));else l=a.findIndex((t=>t.id==e&&t.builder==m));l>-1&&t.push(a[l])})),be(t)}Z(t)},ce=async()=>{let e=await Ae().then((async e=>e));await t.wdkit_set_meta(e.data),D(!1)},de=async e=>{if(document.querySelector(".wkit-text-field.wkit-hide"))document.querySelector(".wkit-text-field.wkit-hide").classList.remove("wkit-hide");else{let i=u.work_title||r,s="";a&&a.user_email&&(s=a.user_email),document.querySelector(".wkit-text-field").classList.add("wkit-hide");let o={type:"manage_workspace",email:s,builder:window.wdkit_editor,title:e||r,wid:n.id,wstype:"edit"};var l=await xa(o);l&&l.data&&l.data.success?(u.work_title=e||r,w({...u}),Object.values(t.wdkit_meta.workspace).map(((a,l)=>{""!=n.id&&Number(n.id)===l.w_id&&(t.wdkit_meta.workspace[a].work_title=e||r)})),t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","success"]),ce()):(u.work_title=i,w({...u}),t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","danger"]),ce())}};let me=0;var pe="";u&&u.work_title&&(pe=(pe=(pe=u.work_title).match(/\b(\w)/g)).join("").toUpperCase().substr(0,2));let ue=0;u&&u.total_count&&Object.values(u.total_count).map((e=>{ue=Number(ue)+Number(e.count)}));const we=e=>{let a=t.wdkit_meta.widgetbuilder.findIndex((t=>t.w_id==e.builder));return a>-1&&t.wdkit_meta?.widgetbuilder[a]?.builder_icon?t.wdkit_meta.widgetbuilder[a].builder_icon:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`},ge=e=>{let a=t.wdkit_meta.widgetbuilder.findIndex((t=>t.w_id==e.builder));if(a>-1&&t.wdkit_meta?.widgetbuilder[a]?.builder_name)return t.wdkit_meta.widgetbuilder[a].builder_name},Ce=()=>{document.querySelector(".wkit-model-transp.wkit-popup-show").classList.remove("wkit-popup-show")},ve=()=>{document.querySelector(".wkit-model-transp").classList.add("wkit-popup-show")},be=async e=>{let a=[];(t?.wdkit_meta?.widget_list?t.wdkit_meta.widget_list:[]).map((async t=>{"plugin"!=t?.type&&"done"!=t?.type||e.findIndex((e=>e.w_unique==t.w_unique))>-1&&a.push(t.w_unique)})),B(a)},_e=e=>e?.user_id&&u?.share_user?.[e.user_id]?.user_profile?u.share_user[e.user_id].user_profile:void 0,ke=(a,l)=>{return(0,e.createElement)("div",{className:"wkit-widgetlist-grid-content",key:l},"active"!=a.is_activated&&(0,e.createElement)(Na,null,(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate"},(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-h1"},"Credit Limit Reached!"),(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-p"},"This Template got disabled until you have more credits to make it active."),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",null,"Buy Credits"))),(0,e.createElement)("span",{className:"wdkit-inner-boxed-remove"},(0,e.createElement)("svg",{onClick:()=>{ve(),setwsID(w_id)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66634 1.83203C5.44533 1.83203 5.23337 1.91983 5.07709 2.07611C4.9208 2.23239 4.83301 2.44435 4.83301 2.66536V3.4987H9.16634V2.66536C9.16634 2.44435 9.07854 2.23239 8.92226 2.07611C8.76598 1.91983 8.55402 1.83203 8.33301 1.83203H5.66634ZM10.1663 3.4987V2.66536C10.1663 2.17913 9.97319 1.71282 9.62937 1.369C9.28555 1.02519 8.81924 0.832031 8.33301 0.832031H5.66634C5.18011 0.832031 4.7138 1.02519 4.36998 1.369C4.02616 1.71282 3.83301 2.17913 3.83301 2.66536V3.4987H2.33301C2.32078 3.4987 2.30865 3.49914 2.29664 3.5H1C0.723858 3.5 0.5 3.72386 0.5 4C0.5 4.27614 0.723858 4.5 1 4.5H1.83301V13.332C1.83301 13.8183 2.02616 14.2846 2.36998 14.6284C2.7138 14.9722 3.18011 15.1654 3.66634 15.1654H10.333C10.8192 15.1654 11.2856 14.9722 11.6294 14.6284C11.9732 14.2846 12.1663 13.8183 12.1663 13.332V4.5H13C13.2761 4.5 13.5 4.27614 13.5 4C13.5 3.72386 13.2761 3.5 13 3.5H11.7027C11.6907 3.49914 11.6786 3.4987 11.6663 3.4987H10.1663ZM2.83301 13.332V4.5H11.1663V13.332C11.1663 13.553 11.0785 13.765 10.9223 13.9213C10.766 14.0776 10.554 14.1654 10.333 14.1654H3.66634C3.44533 14.1654 3.23337 14.0776 3.07709 13.9213C2.9208 13.765 2.83301 13.553 2.83301 13.332ZM7.5 7.33203C7.5 7.05589 7.27614 6.83203 7 6.83203C6.72386 6.83203 6.5 7.05589 6.5 7.33203V11.332C6.5 11.6082 6.72386 11.832 7 11.832C7.27614 11.832 7.5 11.6082 7.5 11.332V7.33203Z",fill:"#1E1E1E"})))),(0,e.createElement)("div",{className:"wkit-widget-card"},(0,e.createElement)("div",{className:"wkit-widget-card-top-part"},(0,e.createElement)("div",{className:"wkit-widget-upper-icons"},(0,e.createElement)("div",{className:"wkit-widget-public-icon"},"public"==a.status&&(0,e.createElement)(Na,null,(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:se+"/assets/images/svg/public.svg",alt:"public",draggable:!1}),(0,e.createElement)("span",{className:"wkit-widget-icon-tooltip"},"Public")),"private"==a.status&&(0,e.createElement)(Na,null,(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:se+"/assets/images/svg/private.svg",alt:"private",draggable:!1}),(0,e.createElement)("span",{className:"wkit-widget-icon-tooltip"},"Private")))),(0,e.createElement)("div",{className:"wkit-widget-image-content"},(0,e.createElement)("picture",null,a?.responsive_image?.length>0&&a?.responsive_image?.map(((t,a)=>{return(0,e.createElement)(Na,{key:a},(0,e.createElement)("source",{media:`(min-width: ${t.size}px)`,srcSet:(l=t.url,l?l.replace(/\s/g,"%20"):"")}));var l})),(0,e.createElement)("img",{className:"wkit-widget-image-content",src:a.image,alt:"featured-img"})))),"pro"==a?.free_pro&&(0,e.createElement)("div",{className:"wdkit-card-tag"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.75 16.5H5.25C4.9425 16.5 4.6875 16.245 4.6875 15.9375C4.6875 15.63 4.9425 15.375 5.25 15.375H12.75C13.0575 15.375 13.3125 15.63 13.3125 15.9375C13.3125 16.245 13.0575 16.5 12.75 16.5Z",fill:"white"}),(0,e.createElement)("path",{d:"M15.2622 4.14003L12.2622 6.28503C11.8647 6.57003 11.2947 6.39753 11.1222 5.94003L9.70468 2.16003C9.46468 1.50753 8.54218 1.50753 8.30218 2.16003L6.87718 5.93253C6.70468 6.39753 6.14218 6.57003 5.74468 6.27753L2.74468 4.13253C2.14468 3.71253 1.34968 4.30503 1.59718 5.00253L4.71718 13.74C4.82218 14.04 5.10718 14.235 5.42218 14.235H12.5697C12.8847 14.235 13.1697 14.0325 13.2747 13.74L16.3947 5.00253C16.6497 4.30503 15.8547 3.71253 15.2622 4.14003ZM10.8747 11.0625H7.12468C6.81718 11.0625 6.56218 10.8075 6.56218 10.5C6.56218 10.1925 6.81718 9.93753 7.12468 9.93753H10.8747C11.1822 9.93753 11.4372 10.1925 11.4372 10.5C11.4372 10.8075 11.1822 11.0625 10.8747 11.0625Z",fill:"white"})),(0,e.createElement)("span",null,"Pro")),(0,e.createElement)("div",{className:"wkit-widget-card-bottom-part"},(0,e.createElement)("div",{className:"wkit-widget-title-content"},"public"==a.status?(0,e.createElement)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widget/${n=a.title,i=n.replace(/\s+/g,"-"),i=(i=i.replace(/[^\w-]+/g,"")).toLowerCase()}/${a.id}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("span",null,a.title)):(0,e.createElement)("span",{className:"wkit-widget-title-heading"},(0,e.createElement)("span",null,a.title)),(0,e.createElement)("div",{className:"wkit-widget-activity-icons"},(0,e.createElement)("div",{className:"wkit-rounding-user"},(0,e.createElement)("img",{className:"wkit-rounding-user-profile",src:_e(a),alt:"ws-member"}),(0,e.createElement)("span",{className:"wkit-rounding-user-tooltip"},(e=>e?.user_id&&u?.share_user?.[e.user_id]?.full_name?u.share_user[e.user_id].full_name:void 0)(a))),(0,e.createElement)("div",{className:"wkit-widget-download-activity"},1==T&&j==l?(0,e.createElement)("div",{className:"plugin-download-icon"},(0,e.createElement)("div",{className:"wb-download-loader",style:{display:"flex"}},(0,e.createElement)("div",{className:"wb-download-loader-circle"}))):R.includes(a.w_unique)?(0,e.createElement)(he,{className:"plugin-download-icon",to:"/widget-listing"},(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99983 1.43408C4.62811 1.43408 2.49897 2.8328 1.06393 5.08847C0.707861 5.64658 0.554688 6.34486 0.554688 6.99839C0.554688 7.65173 0.707773 8.3498 1.06362 8.90783C2.49866 11.1638 4.62794 12.5627 6.99983 12.5627C9.37156 12.5627 11.5007 11.164 12.9357 8.90831C13.2918 8.3502 13.445 7.65192 13.445 6.99839C13.445 6.34505 13.2919 5.64698 12.936 5.08895C11.501 2.833 9.37173 1.43408 6.99983 1.43408ZM2.30771 5.88033C3.54433 3.93629 5.25339 2.90854 6.99983 2.90854C8.74627 2.90854 10.4553 3.93629 11.692 5.88033L11.6926 5.8813C11.8613 6.14561 11.9705 6.54961 11.9705 6.99839C11.9705 7.44717 11.8613 7.85117 11.6926 8.11549L11.692 8.11645C10.4553 10.0605 8.74627 11.0882 6.99983 11.0882C5.25339 11.0882 3.54433 10.0605 2.30771 8.11645L2.30709 8.11549C2.13838 7.85117 2.02914 7.44717 2.02914 6.99839C2.02914 6.54961 2.13838 6.14561 2.30709 5.8813L2.30771 5.88033ZM5.64926 6.9989C5.64926 6.25106 6.25252 5.64779 7.00036 5.64779C7.74821 5.64779 8.35147 6.25106 8.35147 6.9989C8.35147 7.74674 7.74821 8.35001 7.00036 8.35001C6.25252 8.35001 5.64926 7.74674 5.64926 6.9989ZM7.00036 4.17334C5.43821 4.17334 4.1748 5.43674 4.1748 6.9989C4.1748 8.56106 5.43821 9.82446 7.00036 9.82446C8.56252 9.82446 9.82592 8.56106 9.82592 6.9989C9.82592 5.43674 8.56252 4.17334 7.00036 4.17334Z",fill:"#19191B"}))):(0,e.createElement)("div",{className:"plugin-download-icon",onClick:e=>{O(!0),(async(e,a)=>{let l=e.id;A(a),Pe();var n={type:"widget/download",w_uniq:l,d_type:"workspace",u_id:t?.wdkit_meta?.userinfo?.id};let i={type:"wkit_public_download_widget",widget_info:JSON.stringify(n)};await xa(i).then((a=>{a.success?(async a=>{let l=JSON.parse(a.json),n=l?.widget_data?.widgetdata?.type,i=JSON.stringify(l?.Editor_data?.html),s=JSON.stringify(l?.Editor_data?.js),r=JSON.stringify(l?.Editor_data?.css),o=a.image;var c=Object.assign({},l.widget_data.widgetdata,{r_id:a.r_id,allow_push:!0});t?.wdkit_meta?.userinfo?.id!=e?.user_id&&(c=Object.assign({},l.widget_data.widgetdata,{allow_push:!1}));let d=Object.assign({},l.widget_data,{widgetdata:c});a={CardItems:{cardData:l.section_data},WcardData:d,Editor_data:l.Editor_Link,Editor_code:{Editor_codes:[l.Editor_data]}};var m="";if("elementor"==n?m=await Me("private_download",a,i,r,s,"",o).then((e=>e)):"gutenberg"==n?m=await Ve("private_download",a,i,r,s,"",o).then((e=>e)):"bricks"==n&&(m=await De("private_download",a,i,r,s,"",o).then((e=>e))),1==m?.api?.success){let a=[...R];a.push(e.w_unique),B(a),t.wdkit_set_toast(["Downloaded Successfully!","Start using or editing it further.","","success"])}let p=await Ae();p?.success&&t.wdkit_set_meta(p?.data),O(!1),A(-1)})(a):(t.wdkit_set_toast([a.message,a.description,"","danger"]),A(-1))}))})(a,l)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none"},(0,e.createElement)("path",{d:"M6.79116 0.0356951C6.73488 0.0567989 6.64344 0.117764 6.58951 0.171695C6.40192 0.359281 6.41364 0.117764 6.41364 3.55762V6.61995L5.93999 6.1463C5.43351 5.64216 5.34441 5.57885 5.14979 5.57651C4.97862 5.57651 4.86372 5.62575 4.73241 5.75237C4.53779 5.9423 4.49558 6.16271 4.60814 6.40892C4.63627 6.47223 4.92 6.77236 5.50151 7.35154C6.26592 8.11126 6.37144 8.20739 6.50744 8.2707C6.8193 8.41608 7.16164 8.41843 7.48054 8.28008C7.60481 8.22381 7.71736 8.12298 8.48646 7.36091C9.11956 6.7325 9.36342 6.47457 9.39625 6.39954C9.45487 6.27292 9.45722 6.06657 9.40329 5.93995C9.31887 5.73361 9.08205 5.57651 8.86398 5.57651C8.65295 5.57885 8.57322 5.63513 8.06205 6.1463L7.58605 6.61995V3.55762C7.58605 0.117764 7.59778 0.359281 7.41019 0.171695C7.2484 0.00755787 7.01392 -0.0416832 6.79116 0.0356951Z",fill:"#19191B"}),(0,e.createElement)("path",{d:"M1.37381 5.45235C1.22843 5.50394 1.08305 5.65635 1.03147 5.81111C0.996296 5.91897 0.991606 5.98463 1.00568 6.266C1.05726 7.38214 1.3996 8.42558 2.00926 9.33302C2.46181 10.0107 3.15118 10.6743 3.83353 11.0987C5.46083 12.1069 7.44924 12.2781 9.24302 11.5676C10.0074 11.2652 10.6827 10.8056 11.3018 10.1701C12.3405 9.10323 12.9267 7.75027 12.9947 6.26131C13.0111 5.86738 12.9807 5.74311 12.8259 5.58835C12.5961 5.35856 12.235 5.35856 12.0052 5.58835C11.8763 5.71732 11.8364 5.84628 11.82 6.20973C11.8012 6.5849 11.7543 6.90145 11.6629 7.24145C11.2103 8.93909 9.84564 10.2756 8.14096 10.6883C5.57104 11.312 2.98001 9.75275 2.32112 7.18517C2.23905 6.86159 2.16871 6.35745 2.16871 6.07842C2.16871 5.86035 2.11477 5.71028 1.99284 5.58835C1.83105 5.42421 1.59657 5.37497 1.37381 5.45235Z",fill:"#19191B"})))),("admin"==u.roles||"editor"==u.roles)&&(0,e.createElement)("div",{className:"wkit-widget-options"},(0,e.createElement)("div",{className:"wkit-widget-options-icon",onClick:()=>{M(l),y(!0)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"4",viewBox:"0 0 16 4",fill:"none"},(0,e.createElement)("path",{d:"M11.7139 2.0007C11.7139 3.02213 12.5497 3.85784 13.5711 3.85784C14.5925 3.85784 15.4282 3.02213 15.4282 2.0007C15.4282 0.979269 14.5925 0.143555 13.5711 0.143555C12.5497 0.143555 11.7139 0.979269 11.7139 2.0007ZM9.85679 2.0007C9.85679 0.979269 9.02108 0.143554 7.99965 0.143554C6.97822 0.143554 6.14251 0.979269 6.14251 2.0007C6.14251 3.02213 6.97822 3.85784 7.99965 3.85784C9.02108 3.85784 9.85679 3.02213 9.85679 2.0007ZM4.28537 2.0007C4.28537 0.979268 3.44965 0.143554 2.42822 0.143554C1.40679 0.143554 0.57108 0.979268 0.57108 2.0007C0.57108 3.02213 1.40679 3.85784 2.42822 3.85784C3.44965 3.85784 4.28537 3.02213 4.28537 2.0007Z",fill:"#19191B"}))),H==l&&(0,e.createElement)("div",{className:"wkit-widget-options-content"},t.wdkit_meta?.userinfo?.id==a?.user_id&&(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}admin/widgets/edit/${a.id}`,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"}},(0,e.createElement)("div",{className:"wkit-widget-option-item",onClick:()=>{y(!1),M(-1)}},(0,e.createElement)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.9531 2.66989C12.1378 2.48521 12.357 2.33873 12.5983 2.23878C12.8396 2.13884 13.0983 2.0874 13.3594 2.0874C13.6205 2.0874 13.8791 2.13884 14.1204 2.23878C14.3618 2.33873 14.5809 2.48521 14.7656 2.66989C14.9503 2.85456 15.0968 3.0738 15.1967 3.31508C15.2966 3.55637 15.3482 3.81497 15.3482 4.07614C15.3482 4.3373 15.2966 4.59592 15.1967 4.83719C15.0968 5.07848 14.9503 5.29771 14.7656 5.48239L5.27344 14.9745L1.40625 16.0292L2.46094 12.162L11.9531 2.66989Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",null,"Edit"))),(0,e.createElement)("div",{className:"wkit-widget-option-item",onClick:()=>{y(!1),M(-1),E("copy"),x(a),Ee(a)}},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_6220_28330)"},(0,e.createElement)("path",{d:"M15 6.75H8.25C7.42157 6.75 6.75 7.42157 6.75 8.25V15C6.75 15.8284 7.42157 16.5 8.25 16.5H15C15.8284 16.5 16.5 15.8284 16.5 15V8.25C16.5 7.42157 15.8284 6.75 15 6.75Z",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.75 11.25H3C2.60218 11.25 2.22064 11.092 1.93934 10.8107C1.65804 10.5294 1.5 10.1478 1.5 9.75V3C1.5 2.60218 1.65804 2.22064 1.93934 1.93934C2.22064 1.65804 2.60218 1.5 3 1.5H9.75C10.1478 1.5 10.5294 1.65804 10.8107 1.93934C11.092 2.22064 11.25 2.60218 11.25 3V3.75",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_6220_28330"},(0,e.createElement)("rect",{width:"18",height:"18",fill:"white"})))),(0,e.createElement)("span",null,"Copy to Workspace")),(0,e.createElement)("div",{className:"wkit-widget-option-item",onClick:()=>{y(!1),M(-1),E("move"),x(a),Ee(a)}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.625 6.75L2.375 9M2.375 9L4.625 11.25M2.375 9H17.3746M7.62482 3.75L9.87482 1.5M9.87482 1.5L12.1248 3.75M9.87482 1.5V16.5M12.1248 14.25L9.87482 16.5M9.87482 16.5L7.62482 14.25M15.1246 6.75L17.3746 9M17.3746 9L15.1246 11.25",stroke:"#737373",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",null,"Move from Workspace")),(0,e.createElement)("div",{className:"wkit-widget-option-item",onClick:()=>{y(!1),M(-1),ve(),F(a)}},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3.75 5.50006H4.91667M4.91667 5.50006H14.25M4.91667 5.50006L4.91638 13.666C4.91638 13.9754 5.0393 14.2722 5.25809 14.491C5.47688 14.7098 5.77363 14.8327 6.08305 14.8327H11.9164C12.2258 14.8327 12.5225 14.7098 12.7413 14.491C12.9601 14.2722 13.083 13.9754 13.083 13.666V5.49935M6.66638 5.49935V4.33268C6.66638 4.02326 6.7893 3.72652 7.00809 3.50772C7.22688 3.28893 7.52363 3.16602 7.83305 3.16602H10.1664C10.4758 3.16602 10.7725 3.28893 10.9913 3.50772C11.2101 3.72652 11.333 4.02326 11.333 4.33268V5.49935",stroke:"#737373",strokeWidth:"1.3125",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",null,"Remove"))),(0,e.createElement)("div",{className:"wkit-model-transp"},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{Ce()}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"popup-missing"},(0,e.createElement)("div",{className:"popup-header"},ya("Please Confirm")),(0,e.createElement)("div",{className:"popup-body"},(0,e.createElement)("div",{className:"wkit-popup-content-title"},"Are you sure want to permanently delete"),(0,e.createElement)("div",{className:"wkit-popup-buttons"},(0,e.createElement)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>Ce()},"No"),(0,e.createElement)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>(async e=>{if(e){D(!0);let a=Pe();if(a){let l={token:a.token,type:"wd_ws_remove",widget_id:e?.id,wid:u?.w_id},n={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(l)};await je(n).then((e=>{1==e?.success?(t.wdkit_set_toast([e?.message,e?.description,"","success"]),ce()):t.wdkit_set_toast([e?.message,e?.description,"","danger"])}))}}F(-1),D(!1)})(I)},1==V?(0,e.createElement)(Fe,null):(0,e.createElement)("span",null,"Yes")))))))))),(0,e.createElement)(it,{avg_rating:a?.avg_rating,total_rating:a?.total_rating}),(0,e.createElement)("div",{className:"wkit-widget-info-content"},(0,e.createElement)("div",{className:"wkit-widget-info-icons-content"},(0,e.createElement)("div",{className:"wkit-widget-info-icons"},(0,e.createElement)("img",{src:se+"/assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,e.createElement)("label",null,a?.views?a?.views:0)),(0,e.createElement)("hr",{className:"wkit-icon-divider-hr"}),(0,e.createElement)("div",{className:"wkit-widget-info-icons"},(0,e.createElement)("img",{src:se+"/assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,e.createElement)("label",null,a?.download?a?.download:0))),(0,e.createElement)("div",{className:"wkit-widget-builder-icon"},(0,e.createElement)("img",{src:we(a)}),(0,e.createElement)("span",{className:"wkit-widget-builder-tooltip"},ge(a)?ya(ge(a)):ya("")))))));var n,i},Ee=async e=>{let a=[...t.wdkit_meta?.workspace],l=[];await(a?.length)>0&&a.map((t=>{"admin"!==t.roles&&"editor"!==t.roles||t?.work_widgets.includes(e.id)||l.push(t)})),W(l)};return(0,e.createElement)("div",null,u?(0,e.createElement)("div",{className:"wkit-workspace-sigle-page"},(0,e.createElement)("div",{className:"wkit-kit-box-wrapper"},(0,e.createElement)("div",{className:"wkit-work-space"},(0,e.createElement)("div",{className:"wkit-work-left-column"},(0,e.createElement)("div",{className:"wkit-img-name-edit"},u.work_icon?(0,e.createElement)("img",{src:u.work_icon,alt:"workspace-profile",className:"wkit-workspace-profile-img"}):(0,e.createElement)("div",{className:"wkit-profile-back wkit-profile-letter"},pe),(0,e.createElement)("div",{className:"wkit-ws-name-edit"},(0,e.createElement)("div",{className:"wkit-workspace-title"},(0,e.createElement)("span",null,r),"admin"==u.roles&&(0,e.createElement)("div",{className:"wkit-workspace-edit-icon",onClick:()=>{de()}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none"},(0,e.createElement)("path",{d:"M9.71667 5.51667L10.4833 6.28333L2.93333 13.8333H2.16667V13.0667L9.71667 5.51667ZM12.7167 0.5C12.5083 0.5 12.2917 0.583333 12.1333 0.741667L10.6083 2.26667L13.7333 5.39167L15.2583 3.86667C15.5833 3.54167 15.5833 3.01667 15.2583 2.69167L13.3083 0.741667C13.1417 0.575 12.9333 0.5 12.7167 0.5ZM9.71667 3.15833L0.5 12.375V15.5H3.625L12.8417 6.28333L9.71667 3.15833Z",fill:"#19191B"})))),"subscriber"!=u.roles&&(0,e.createElement)("div",{className:"wkit-text-field wkit-hide"},(0,e.createElement)("input",{type:"text",className:"btn-input",value:r,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_toast(["Limit Reached","Limit Reached","","danger"]),0))&&o(e.target.value)}}),(0,e.createElement)("button",{className:"wkit-title-update-btn",onClick:()=>{de(r)}},"Update")))),(0,e.createElement)("div",{className:"img-group"},u.share_user&&(0,e.createElement)(Na,null,Object.values(u.share_user).map(((t,a)=>{if(a<4&&t.user_profile)return(0,e.createElement)(Na,{key:a},(0,e.createElement)("img",{src:t.user_profile,alt:"ws-member",className:"wkit-roundimg"}))}))),(0,e.createElement)("div",{className:"wkit-more-user-proflie"},Object.values(u?.share_user).length))),(0,e.createElement)("div",{className:"wkit-work-right-column"},(0,e.createElement)("div",{className:"wkit-tooltip-dropdown-content"},0!=t?.wdkit_meta?.Setting?.builder&&(0,e.createElement)("div",{className:"wkit-single-workspace-filter wkit-custom-dropDown",onClick:e=>{(e=>{let t=e.target.closest(".wkit-custom-dropDown"),a=t.querySelector(".wkit-custom-dropDown-content")?t.querySelector(".wkit-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-show")?a.classList.remove("wkit-show"):a.classList.add("wkit-show"))})(e)}},(0,e.createElement)("div",{className:"wkit-custom-dropDown-header"},(0,e.createElement)("label",null,c),(0,e.createElement)("img",{src:se+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-custom-dropDown-content"},(0,e.createElement)("div",{className:"wkit-drop-down-outer"}),(0,e.createElement)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{d("templates"),p("all")}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.375 1.5H2.375L2.375 4.5H17.375V1.5ZM0.875 4.5V6V16.5C0.875 17.3284 1.54657 18 2.375 18H17.375C18.2034 18 18.875 17.3284 18.875 16.5V6V4.5V1.5C18.875 0.671573 18.2034 0 17.375 0H2.375C1.54657 0 0.875 0.671573 0.875 1.5V4.5ZM2.375 16.5H17.375V6H2.375L2.375 16.5ZM3.875 8.625C3.875 8.41789 4.04289 8.25 4.25 8.25H15.5C15.7071 8.25 15.875 8.41789 15.875 8.625V9.375C15.875 9.58211 15.7071 9.75 15.5 9.75H4.25C4.04289 9.75 3.875 9.58211 3.875 9.375V8.625ZM4.625 11.25C4.21079 11.25 3.875 11.5858 3.875 12V13.5C3.875 13.9142 4.21079 14.25 4.625 14.25H6.125C6.53921 14.25 6.875 13.9142 6.875 13.5V12C6.875 11.5858 6.53921 11.25 6.125 11.25H4.625ZM8.375 12C8.375 11.5858 8.71079 11.25 9.125 11.25H10.625C11.0392 11.25 11.375 11.5858 11.375 12V13.5C11.375 13.9142 11.0392 14.25 10.625 14.25H9.125C8.71079 14.25 8.375 13.9142 8.375 13.5V12ZM13.625 11.25C13.2108 11.25 12.875 11.5858 12.875 12V13.5C12.875 13.9142 13.2108 14.25 13.625 14.25H15.125C15.5392 14.25 15.875 13.9142 15.875 13.5V12C15.875 11.5858 15.5392 11.25 15.125 11.25H13.625ZM4.625 3.75C5.03921 3.75 5.375 3.41421 5.375 3C5.375 2.58579 5.03921 2.25 4.625 2.25C4.21079 2.25 3.875 2.58579 3.875 3C3.875 3.41421 4.21079 3.75 4.625 3.75ZM8.375 3C8.375 3.41421 8.03921 3.75 7.625 3.75C7.21079 3.75 6.875 3.41421 6.875 3C6.875 2.58579 7.21079 2.25 7.625 2.25C8.03921 2.25 8.375 2.58579 8.375 3ZM10.625 3.75C11.0392 3.75 11.375 3.41421 11.375 3C11.375 2.58579 11.0392 2.25 10.625 2.25C10.2108 2.25 9.875 2.58579 9.875 3C9.875 3.41421 10.2108 3.75 10.625 3.75Z",fill:"#737373"})),(0,e.createElement)("span",null,ya("Templates"))),(0,e.createElement)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{d("widgets"),p("all")}},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.01515 0.436679C9.53163 0.0751434 10.2191 0.0751432 10.7355 0.436679L16.9849 4.81123C17.8049 5.38524 17.8434 6.58609 17.0617 7.21138L16.751 7.45999L16.9849 7.62373C17.8049 8.19774 17.8434 9.39859 17.0617 10.0239L16.751 10.2725L16.9849 10.4362C17.8049 11.0102 17.8434 12.2111 17.0617 12.8364L14.0939 15.2107L11.7494 17.0862C10.6538 17.9628 9.09692 17.9628 8.00126 17.0862L5.65682 15.2107L2.68894 12.8364C1.90733 12.2111 1.94577 11.0102 2.76579 10.4362L2.99971 10.2725L2.68894 10.0239C1.90733 9.39859 1.94577 8.19774 2.76579 7.62373L2.99971 7.45999L2.68894 7.21138C1.90732 6.58609 1.94578 5.38524 2.76579 4.81123L9.01515 0.436679ZM4.22036 11.249L3.62599 11.6651L6.59387 14.0394L8.9383 15.9149C9.48613 16.3532 10.2646 16.3532 10.8124 15.9149L13.1568 14.0394L16.1247 11.6651L15.5303 11.249L14.0939 12.3982L11.7494 14.2737C10.6538 15.1503 9.09692 15.1503 8.00126 14.2737L5.65682 12.3982L4.22036 11.249ZM14.0939 9.58569L15.5303 8.43652L16.1247 8.85258L13.1568 11.2269L10.8124 13.1024C10.2646 13.5407 9.48613 13.5407 8.9383 13.1024L6.59387 11.2269L3.62599 8.85258L4.22036 8.43652L5.65682 9.58569L8.00126 11.4612C9.09692 12.3378 10.6538 12.3378 11.7494 11.4612L14.0939 9.58569ZM16.1247 6.04008L9.87535 1.66553L3.62599 6.04008L6.59387 8.41438L8.9383 10.2899C9.48613 10.7282 10.2646 10.7282 10.8124 10.2899L13.1568 8.41438L16.1247 6.04008Z",fill:"#737373"})),(0,e.createElement)("span",null,ya("Widgets")))))),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}admin/workspace/workspacetemplate/${u?.w_id}`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("div",{className:"wkit-manage-member"},(0,e.createElement)("span",null,ya("Manage Members"))))))),(0,e.createElement)("div",{className:"wdesign-kit-main"},0==V&&i?.template&&u?.work_templates&&"templates"==c&&Object.values(i.template).filter((e=>"all"==m||e.post_builder==m?e:void 0)).map(((a,l)=>{if(me=""==me?0:me,u?.work_templates.length>0&&u?.work_templates?.includes(a.id))return me++,(0,e.createElement)(La,{key:l,userData:i,data:a,role:u?.roles,userinfo:t?.wdkit_meta?.userinfo,builder:i.builder,favorite:i.favoritetemplate,setloading:e=>{D(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),handlerTempID:e=>{"wdkit"==wdkitData.use_editor?((e,t,a,l,n)=>{if(e&&t&&l){let i=[{id:e,type:t}];l=n&&l?Da(l,n):"",C("section"==a?{pages:[],sections:i,builder:l}:{pages:i,sections:[],builder:l})}else C(e)})(e,a.wp_post_type,a.type,Number(a.post_builder),i.builder):C(e)},type:"websitekit"==a.type?a.type+"-view":a.type,wsRoles:u.roles,width:"25%",wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])},wsID:n.id,currentPage:z})})),0==V&&i?.widgettemplate&&u?.work_widgets&&"widgets"==c&&S.slice(te,le).map(((e,t)=>{if(me=""==me?0:me,u.work_widgets.includes(e.id))return me++,ke(e,t)})),L&&k&&(0,e.createElement)(Na,null,(0,e.createElement)("div",{className:"wkit-ws-popup-outerDiv",onClick:()=>{x("")}}),(0,e.createElement)("div",{className:"wkit-ws-popup"},(0,e.createElement)("div",{className:"wkit-plugin-popup-close",onClick:()=>{x(""),b(!1),C("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"#19191B"})))),(0,e.createElement)("div",{className:"wkit-copy-move-ws-wrap"},(0,e.createElement)("div",{className:"wkit-ws-label-heading"},(0,e.createElement)("span",null,ya("Copy to Workspace"))),(0,e.createElement)("div",{className:"wkit-ws-content dropdown-custom-width"},(0,e.createElement)("select",{className:"wkit-select-workspace",onChange:e=>{$(e.target.value)}},(0,e.createElement)("option",{value:""},ya("Select Workspace")),P.length>0&&P.map(((t,a)=>(0,e.createElement)(Na,{key:a},(0,e.createElement)("option",{value:t.w_id},t.work_title))))),(0,e.createElement)("div",{className:"wkit-copy-wrap"},"loading"==k?(0,e.createElement)("button",{className:"btn-workspace-add wkit-pink-btn-class"},Fe()):(0,e.createElement)("button",{type:"button",className:"btn-workspace-add wkit-pink-btn-class",onClick:()=>{N&&(async e=>{"move"==e&&D(!0);let a=L,l=Pe();if(l){if("copy"==e){E("loading");var n={token:l.token,type:"wd-copy",widget_id:a?.id,current_wid:u?.w_id,wid:N}}else"move"==e&&(E("loading"),n={token:l.token,type:"wd-move",widget_id:a?.id,current_wid:u?.w_id,wid:N});let i={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(n)};await je(i).then((async a=>{if(1==a?.success){if("copy"==e){t.wdkit_set_toast([a?.message,a?.description,"","success"]);let e=await Ae().then((async e=>e));t.wdkit_set_meta(e.data)}else if("move"==e){t.wdkit_set_toast([a?.message,a?.description,"","success"]);let e=await Ae().then((async e=>e));t.wdkit_set_meta(e.data)}}else t.wdkit_set_toast([a?.message,a?.description,"","danger"]),E(""),x("")}))}E(""),x(""),D(!1)})(k)}},k))))))),0==V&&me<=0&&(0,e.createElement)("div",{className:"wkit-no-template-data"},(0,e.createElement)(et,{page:c,link:"https://blog.wdesignkit.com/documents/add-templates-and-widgets-in-workspace/"})),1==V&&(0,e.createElement)(Qe,null),g&&(0,e.createElement)("div",{className:"wkit-myupload-main wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content wkit-import-template"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",C(""))})(e),b(!1),C("")}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),v?(0,e.createElement)(Ma,{template_id:g,custom_meta_import:h,handlerAfterSuccessImported:()=>{b(!1),C("")},wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}}):(0,e.createElement)(Ha,{template_id:g,handlerSuccessImport:(e,t)=>{b(e),_(t)},type:wdkitData.use_editor,templateData:i.template,pluginData:i.plugin}))),f&&(0,e.createElement)("div",{className:"wkit-widget-options-outer",onClick:()=>{y(!1),M(-1)}})):(0,e.createElement)(fa,null),(0,e.createElement)("div",{className:"wkit-wb-paginatelist"},Math.ceil(S.length/Q)>1&&(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:Math.ceil(S.length/Q),marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&X(e.nextSelectedPage+1)},forcePage:z-1,onPageActive:()=>{}}))))},{__:Za}=wp.i18n,{wkit_logout:Ra,wkit_get_user_login:Ba,form_data:Ta,get_userinfo:Oa}=wp.wkit_Helper,{Fragment:ja}=wp.element;window.wdkit_editor=wdkitData.use_editor;const Aa=t=>{const[a,n]=(0,l.useState)([]),[i,s]=(0,l.useState)([]);let r=J().pathname.split("/");var o=wdkitData.WDKIT_URL;(0,l.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("Gutenberg"),t?.wdkit_meta?.Setting?.bricks_builder&&e.push("Bricks"),n(e);let a=[];t?.wdkit_meta?.Setting?.elementor_template&&a.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_template&&a.push("Gutenberg"),s(a)}),[t?.wdkit_meta?.Setting]);let c=t?.wdkit_meta?.Setting?.template&&i.length>0,d=t?.wdkit_meta?.Setting?.builder&&a.length>0;return(0,e.createElement)(ja,null,r.includes("widget-listing")&&r.includes("builder")?"":(0,e.createElement)("div",{className:"wkit-left-side"},(0,e.createElement)((()=>(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"wkit-img-logo"},(0,e.createElement)("a",{href:wdkitData.wdkit_server_url,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("img",{src:o+"assets/images/jpg/Wdesignkit-logo.png",alt:"wdesignlogo",className:"wkit-logo",draggable:"false"}))))),null),1==c&&(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/browse"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("browse")?"active":"")},(0,e.createElement)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 5H5V8H19V5ZM3 8V9.5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V9.5V8V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V8ZM19 19V9.5H5L5 19H19ZM16.3819 12.5H7.61805H6.5C6.22386 12.5 6 12.2761 6 12V11.5C6 11.2239 6.22386 11 6.5 11H7.61805H16.3819H17.5C17.7761 11 18 11.2239 18 11.5V12C18 12.2761 17.7761 12.5 17.5 12.5H16.3819ZM7.86622 15.5C7.7784 15.3482 7.65181 15.2216 7.5 15.1338C7.34819 15.2216 7.2216 15.3482 7.13378 15.5C7.2216 15.6518 7.34819 15.7784 7.5 15.8662C7.65181 15.7784 7.7784 15.6518 7.86622 15.5ZM7 14C6.44772 14 6 14.4477 6 15V16C6 16.5523 6.44772 17 7 17H8C8.55228 17 9 16.5523 9 16V15C9 14.4477 8.55228 14 8 14H7ZM12 15.1338C12.1518 15.2216 12.2784 15.3482 12.3662 15.5C12.2784 15.6518 12.1518 15.7784 12 15.8662C11.8482 15.7784 11.7216 15.6518 11.6338 15.5C11.7216 15.3482 11.8482 15.2216 12 15.1338ZM10.5 15C10.5 14.4477 10.9477 14 11.5 14H12.5C13.0523 14 13.5 14.4477 13.5 15V16C13.5 16.5523 13.0523 17 12.5 17H11.5C10.9477 17 10.5 16.5523 10.5 16V15ZM16.8662 15.5C16.7784 15.3482 16.6518 15.2216 16.5 15.1338C16.3482 15.2216 16.2216 15.3482 16.1338 15.5C16.2216 15.6518 16.3482 15.7784 16.5 15.8662C16.6518 15.7784 16.7784 15.6518 16.8662 15.5ZM16 14C15.4477 14 15 14.4477 15 15V16C15 16.5523 15.4477 17 16 17H17C17.5523 17 18 16.5523 18 16V15C18 14.4477 17.5523 14 17 14H16ZM6.5 7C6.77614 7 7 6.77614 7 6.5C7 6.22386 6.77614 6 6.5 6C6.22386 6 6 6.22386 6 6.5C6 6.77614 6.22386 7 6.5 7ZM9 6.5C9 6.77614 8.77614 7 8.5 7C8.22386 7 8 6.77614 8 6.5C8 6.22386 8.22386 6 8.5 6C8.77614 6 9 6.22386 9 6.5ZM10.5 7C10.7761 7 11 6.77614 11 6.5C11 6.22386 10.7761 6 10.5 6C10.2239 6 10 6.22386 10 6.5C10 6.77614 10.2239 7 10.5 7Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Browse Design")))),"wdkit"!=wdkitData.use_editor&&(0,e.createElement)(he,{to:"/save_template"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("save_template")?"active":"")},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 2H2V6H22V2ZM2 22L2 8H12V13.6263C12 14.5847 13.0682 15.1564 13.8656 14.6248L16 13.2019L18.1344 14.6248C18.9318 15.1564 20 14.5847 20 13.6263V8H22V22H2ZM18 8H14V12.1315L15.3898 11.2049C15.7593 10.9586 16.2407 10.9586 16.6102 11.2049L18 12.1315V8ZM2 0C0.895431 0 0 0.89543 0 2V22C0 23.1046 0.89543 24 2 24H22C23.1046 24 24 23.1046 24 22V2C24 0.895431 23.1046 0 22 0H2ZM6 4C6 4.55228 5.55228 5 5 5C4.44772 5 4 4.55228 4 4C4 3.44772 4.44772 3 5 3C5.55228 3 6 3.44772 6 4ZM9 5C9.55228 5 10 4.55228 10 4C10 3.44772 9.55228 3 9 3C8.44771 3 8 3.44772 8 4C8 4.55228 8.44771 5 9 5ZM4 13C4 12.4477 4.44772 12 5 12H7C7.55228 12 8 12.4477 8 13C8 13.5523 7.55228 14 7 14H5C4.44772 14 4 13.5523 4 13ZM5 17C4.44772 17 4 17.4477 4 18C4 18.5523 4.44772 19 5 19H16C16.5523 19 17 18.5523 17 18C17 17.4477 16.5523 17 16 17H5Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Save Template")))))),"wdkit"==window.wdkit_editor&&1==d&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("Widget Browse")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/widget-browse"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("widget-browse")?"active":"")},(0,e.createElement)("svg",{width:"22",height:"24",viewBox:"0 0 22 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.85305 0.582239C10.5417 0.10019 11.4583 0.100192 12.1469 0.582239L11 2.2207L2.66749 8.05344L1.52057 6.41497L9.85305 0.582239ZM1.83245 13.6967L1.4181 13.3652C0.375944 12.5314 0.427213 10.9303 1.52057 10.165L1.83245 9.94666L1.4181 9.61518C0.375943 8.78145 0.427214 7.18032 1.52057 6.41497L2.66749 8.05344L6.62467 11.2192L9.75058 13.7199C10.481 14.3043 11.5189 14.3043 12.2494 13.7199L15.3753 11.2192L19.3325 8.05344L11 2.2207L12.1469 0.582239L20.4794 6.41497C21.5727 7.18033 21.624 8.78145 20.5818 9.61518L20.1675 9.94666L20.4794 10.165C21.5727 10.9303 21.624 12.5315 20.5818 13.3652L20.1675 13.6967L20.4794 13.915C21.5727 14.6803 21.624 16.2815 20.5818 17.1152L16.6247 20.2809L13.4988 22.7816C12.0379 23.9503 9.96207 23.9503 8.50119 22.7816L5.37528 20.2809L1.4181 17.1152C0.375944 16.2815 0.427213 14.6803 1.52057 13.915L1.83245 13.6967ZM3.45999 14.9987L2.66749 15.5534L6.62467 18.7192L9.75058 21.2199C10.481 21.8043 11.5189 21.8043 12.2494 21.2199L15.3753 18.7192L19.3325 15.5534L18.54 14.9987L16.6247 16.5309L13.4988 19.0316C12.0379 20.2003 9.96207 20.2003 8.50119 19.0316L5.37528 16.5309L3.45999 14.9987ZM16.6247 12.7809L18.54 11.2487L19.3325 11.8034L15.3753 14.9692L12.2494 17.4699C11.5189 18.0543 10.481 18.0543 9.75058 17.4699L6.62467 14.9692L2.66749 11.8034L3.45999 11.2487L5.37528 12.7809L8.50119 15.2816C9.96207 16.4503 12.0379 16.4503 13.4988 15.2816L16.6247 12.7809Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Browse Widget"))))))),(1==c||1==d)&&(0,e.createElement)("hr",null),1==c&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("My Templates")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/my_uploaded"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("my_uploaded")?"active":"")},(0,e.createElement)("svg",{width:"14",height:"17",viewBox:"0 0 14 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4 13H10V7H14L7 0L0 7H4V13ZM7 2.83L9.17 5H8V11H6V5H4.83L7 2.83ZM0 15H14V17H0V15Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("My Templates"))))))),(1==c||1==d)&&(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/share_with_me"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("share_with_me")?"active":"")},(0,e.createElement)("svg",{width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15 14.08C14.24 14.08 13.56 14.38 13.04 14.85L5.91 10.7C5.96 10.47 6 10.24 6 10C6 9.76 5.96 9.53 5.91 9.3L12.96 5.19C13.5 5.69 14.21 6 15 6C16.66 6 18 4.66 18 3C18 1.34 16.66 0 15 0C13.34 0 12 1.34 12 3C12 3.24 12.04 3.47 12.09 3.7L5.04 7.81C4.5 7.31 3.79 7 3 7C1.34 7 0 8.34 0 10C0 11.66 1.34 13 3 13C3.79 13 4.5 12.69 5.04 12.19L12.16 16.35C12.11 16.56 12.08 16.78 12.08 17C12.08 18.61 13.39 19.92 15 19.92C16.61 19.92 17.92 18.61 17.92 17C17.92 15.39 16.61 14.08 15 14.08ZM15 2C15.55 2 16 2.45 16 3C16 3.55 15.55 4 15 4C14.45 4 14 3.55 14 3C14 2.45 14.45 2 15 2ZM3 11C2.45 11 2 10.55 2 10C2 9.45 2.45 9 3 9C3.55 9 4 9.45 4 10C4 10.55 3.55 11 3 11ZM15 18.02C14.45 18.02 14 17.57 14 17.02C14 16.47 14.45 16.02 15 16.02C15.55 16.02 16 16.47 16 17.02C16 17.57 15.55 18.02 15 18.02Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Shared with Me")))))),(1==c||1==d)&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("Workspace")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/manage_workspace"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("manage_workspace")?"active":"")},(0,e.createElement)("svg",{width:"20",height:"18",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4 12C5.1 12 6 12.9 6 14C6 15.1 5.1 16 4 16C2.9 16 2 15.1 2 14C2 12.9 2.9 12 4 12ZM4 10C1.8 10 0 11.8 0 14C0 16.2 1.8 18 4 18C6.2 18 8 16.2 8 14C8 11.8 6.2 10 4 10ZM10 2C11.1 2 12 2.9 12 4C12 5.1 11.1 6 10 6C8.9 6 8 5.1 8 4C8 2.9 8.9 2 10 2ZM10 0C7.8 0 6 1.8 6 4C6 6.2 7.8 8 10 8C12.2 8 14 6.2 14 4C14 1.8 12.2 0 10 0ZM16 12C17.1 12 18 12.9 18 14C18 15.1 17.1 16 16 16C14.9 16 14 15.1 14 14C14 12.9 14.9 12 16 12ZM16 10C13.8 10 12 11.8 12 14C12 16.2 13.8 18 16 18C18.2 18 20 16.2 20 14C20 11.8 18.2 10 16 10Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Manage Workspace"))))))),(0,e.createElement)((()=>"wdkit"===window.wdkit_editor&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("Manage Licence")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/activate"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("activate")?"active":"")},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 6C11.1046 6 12 5.10457 12 4C12 2.89543 11.1046 2 10 2C8.89543 2 8 2.89543 8 4C8 5.10457 8.89543 6 10 6ZM10 8C10.3453 8 10.6804 7.95625 11 7.87398V9.21922L10.291 9.04198C10.1 8.99421 9.90005 8.99421 9.70896 9.04198L9 9.21922V7.87398C9.31962 7.95625 9.6547 8 10 8ZM14 4C14 4.3453 13.9562 4.68038 13.874 5H18C19.1046 5 20 5.89543 20 7V18C20 19.1046 19.1046 20 18 20H2C0.895432 20 0 19.1046 0 18V7C0 5.89543 0.895431 5 2 5H6.12602C6.04375 4.68038 6 4.3453 6 4C6 1.79086 7.79086 0 10 0C12.2091 0 14 1.79086 14 4ZM7 7H2V18H18V7H13V10.2438C13 11.0245 12.2663 11.5974 11.509 11.408L10 11.0308L8.49104 11.408C7.73366 11.5974 7 11.0245 7 10.2438V7ZM5 14C4.44772 14 4 14.4477 4 15C4 15.5523 4.44771 16 5 16H15C15.5523 16 16 15.5523 16 15C16 14.4477 15.5523 14 15 14H5Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Manage Licence")))))))),null),"wdkit"==window.wdkit_editor&&1==d&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("My Widgets")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/widget-listing"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("widget-listing")?"active":"")},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2V6H18V2H14ZM13 0C12.4477 0 12 0.447715 12 1V7C12 7.55228 12.4477 8 13 8H19C19.5523 8 20 7.55228 20 7V1C20 0.447715 19.5523 0 19 0H13ZM2 14V18H6V14H2ZM1 12C0.447715 12 0 12.4477 0 13V19C0 19.5523 0.447715 20 1 20H7C7.55228 20 8 19.5523 8 19V13C8 12.4477 7.55228 12 7 12H1ZM14 18V14H18V18H14ZM12 13C12 12.4477 12.4477 12 13 12H19C19.5523 12 20 12.4477 20 13V19C20 19.5523 19.5523 20 19 20H13C12.4477 20 12 19.5523 12 19V13ZM2 5C2 6.65685 3.34315 8 5 8C6.65685 8 8 6.65685 8 5C8 3.34315 6.65685 2 5 2C3.34315 2 2 3.34315 2 5ZM5 0C2.23858 0 0 2.23858 0 5C0 7.76142 2.23858 10 5 10C5.9441 10 6.82709 9.73834 7.5804 9.28357L9.25232 11.1645C9.61924 11.5772 10.2513 11.6144 10.6641 11.2475C11.0769 10.8806 11.1141 10.2485 10.7471 9.83573L9.05251 7.9293C9.6486 7.10608 10 6.09408 10 5C10 2.23858 7.76142 0 5 0Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("My Widgets"))))))),(0,e.createElement)((()=>"wdkit"==window.wdkit_editor&&(0,e.createElement)(ja,null,(0,e.createElement)("div",{className:"heading-title"},Za("Settings")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)(he,{to:"/settings"},(0,e.createElement)("li",{className:"wkit-menu "+(r.includes("settings")?"active":"")},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2C4.55228 2 5 2.44772 5 3V10C5 10.5523 4.55228 11 4 11C3.44772 11 3 10.5523 3 10V3C3 2.44772 3.44772 2 4 2ZM5 15H7C7.55228 15 8 14.5523 8 14C8 13.4477 7.55228 13 7 13H4H1C0.447715 13 0 13.4477 0 14C0 14.5523 0.447715 15 1 15H3V21C3 21.5523 3.44772 22 4 22C4.55228 22 5 21.5523 5 21V15ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V21C11 21.5523 11.4477 22 12 22C12.5523 22 13 21.5523 13 21V12ZM12 2C12.5523 2 13 2.44772 13 3V7H15C15.5523 7 16 7.44772 16 8C16 8.55228 15.5523 9 15 9H12H9C8.44771 9 8 8.55228 8 8C8 7.44772 8.44771 7 9 7H11V3C11 2.44772 11.4477 2 12 2ZM20 15H23C23.5523 15 24 15.4477 24 16C24 16.5523 23.5523 17 23 17H21V21C21 21.5523 20.5523 22 20 22C19.4477 22 19 21.5523 19 21V17H17C16.4477 17 16 16.5523 16 16C16 15.4477 16.4477 15 17 15H20ZM20 2C20.5523 2 21 2.44772 21 3V12C21 12.5523 20.5523 13 20 13C19.4477 13 19 12.5523 19 12V3C19 2.44772 19.4477 2 20 2Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Settings")))))))),null),(0,e.createElement)("div",{className:"heading-title"},Za("Support")),(0,e.createElement)("div",{className:"menu-wrapper"},(0,e.createElement)("ul",null,(0,e.createElement)("a",{href:"https://wordpress.org/support/plugin/wdesignkit/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("li",{className:"wkit-menu"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M23.3863 8.61417C23.0767 8.30314 22.6769 8.09771 22.2437 8.0271C21.8106 7.95649 21.3662 8.02431 20.9738 8.2209C19.6025 4.59199 16.1029 2 12 2C7.89711 2 4.39639 4.59308 3.02512 8.22253C2.70593 8.06205 2.35089 7.98618 1.99398 8.00217C1.63707 8.01817 1.29024 8.1255 0.986686 8.3139C0.68313 8.50229 0.433007 8.76545 0.260255 9.07817C0.0875037 9.39089 -0.00209398 9.74272 3.71478e-05 10.1V13.7C0.000105947 14.0759 0.101086 14.4448 0.292434 14.7683C0.483782 15.0919 0.758479 15.3581 1.08784 15.5392C1.41721 15.7203 1.78915 15.8097 2.16485 15.798C2.54055 15.7863 2.90621 15.674 3.22367 15.4727C3.79284 16.7558 4.63552 17.899 5.69274 18.8223C6.74996 19.7457 7.99618 20.4268 9.3442 20.8181C9.38754 20.9304 9.46381 21.0269 9.563 21.0951C9.6622 21.1632 9.77967 21.1998 9.90001 21.2H14.1C14.2591 21.2 14.4117 21.1367 14.5243 21.0242C14.6368 20.9117 14.7 20.7591 14.7 20.6V19.4C14.7 19.2408 14.6368 19.0882 14.5243 18.9757C14.4117 18.8632 14.2591 18.8 14.1 18.8H9.90001C9.74089 18.8 9.58827 18.8632 9.47575 18.9757C9.36323 19.0882 9.30002 19.2408 9.30002 19.4V19.5467C5.99021 18.4181 3.60003 15.2867 3.60003 11.6C3.60003 6.96853 7.36802 3.2 12 3.2C16.632 3.2 20.4 6.96853 20.4 11.6C20.4007 12.4739 20.2649 13.3425 19.9974 14.1745C19.9696 14.2532 19.9586 14.3368 19.9653 14.42C19.9727 14.5128 20.0016 14.6026 20.0498 14.6823C20.2685 15.0968 20.6197 15.4261 21.0474 15.6175C21.4751 15.809 21.9547 15.8516 22.4094 15.7385C22.8642 15.6255 23.268 15.3633 23.5563 14.9939C23.8446 14.6245 24.0008 14.1691 24 13.7005V10.1005C24.001 9.82451 23.9474 9.55102 23.842 9.29589C23.7367 9.04075 23.5818 8.80904 23.3863 8.61417ZM2.10003 14.6C1.86143 14.5997 1.63268 14.5048 1.46396 14.336C1.29524 14.1673 1.20032 13.9386 1.20003 13.7V10.1C1.19955 9.93007 1.24732 9.76352 1.33779 9.61969C1.42826 9.47587 1.5577 9.36069 1.71107 9.28755C1.86443 9.21441 2.03541 9.18632 2.20411 9.20655C2.37281 9.22677 2.5323 9.29448 2.66403 9.4018C2.27442 11.0078 2.31658 12.6883 2.78621 14.2727C2.70322 14.3747 2.59861 14.4569 2.47994 14.5135C2.36127 14.5701 2.23151 14.5997 2.10003 14.6ZM22.8 13.7C22.7997 13.9386 22.7048 14.1673 22.5361 14.336C22.3673 14.5048 22.1386 14.5997 21.9 14.6C21.7692 14.5992 21.6402 14.5695 21.5223 14.5129C21.4044 14.4563 21.3005 14.3743 21.2182 14.2727C21.6855 12.6894 21.7277 11.0109 21.3404 9.40617C21.684 9.13671 22.2229 9.1438 22.5403 9.46071C22.6238 9.54479 22.6897 9.64459 22.7342 9.75432C22.7788 9.86406 22.8012 9.98155 22.8 10.1V13.7Z",fill:"white"}),(0,e.createElement)("path",{d:"M17.694 14.785C17.8944 14.386 17.9992 13.9459 18 13.4994V9.70138C17.9991 8.93227 17.6932 8.19491 17.1495 7.65102C16.6057 7.10713 15.8684 6.80112 15.0993 6.80011H8.90073C8.13163 6.80112 7.39433 7.10713 6.85054 7.65102C6.30675 8.19491 6.00088 8.93227 6.00001 9.70138V13.4994C6.00088 14.2684 6.30677 15.0057 6.85057 15.5495C7.39437 16.0933 8.13168 16.3992 8.90073 16.4001H14.9454L17.6798 18.109C17.7846 18.1746 17.907 18.2062 18.0305 18.1996C18.1539 18.1929 18.2722 18.1483 18.3694 18.0719C18.4665 17.9954 18.5376 17.8908 18.573 17.7724C18.6084 17.654 18.6064 17.5275 18.5673 17.4103L17.694 14.785ZM15.4364 15.2895C15.341 15.23 15.2308 15.1984 15.1184 15.1985H8.90073C8.45013 15.1979 8.01813 15.0187 7.69936 14.7003C7.38058 14.3818 7.20102 13.95 7.20001 13.4994V9.70138C7.20059 9.25044 7.37994 8.81814 7.69875 8.49923C8.01755 8.18032 8.4498 8.00083 8.90073 8.00011H15.0993C15.5502 8.00083 15.9824 8.18032 16.3013 8.49923C16.6201 8.81814 16.7994 9.25044 16.8 9.70138V13.4994C16.7984 13.8197 16.7061 14.1331 16.5338 14.4032C16.4863 14.4783 16.4561 14.563 16.4454 14.6512C16.4346 14.7394 16.4436 14.8289 16.4716 14.9132L16.9031 16.207L15.4364 15.2895Z",fill:"white"}),(0,e.createElement)("path",{d:"M9.60001 12.2001C9.93138 12.2001 10.2 11.9315 10.2 11.6001C10.2 11.2687 9.93138 11.0001 9.60001 11.0001C9.26864 11.0001 9.00001 11.2687 9.00001 11.6001C9.00001 11.9315 9.26864 12.2001 9.60001 12.2001Z",fill:"white"}),(0,e.createElement)("path",{d:"M14.4 12.2001C14.7314 12.2001 15 11.9315 15 11.6001C15 11.2687 14.7314 11.0001 14.4 11.0001C14.0686 11.0001 13.8 11.2687 13.8 11.6001C13.8 11.9315 14.0686 12.2001 14.4 12.2001Z",fill:"white"}),(0,e.createElement)("path",{d:"M12 12.2001C12.3314 12.2001 12.6 11.9315 12.6 11.6001C12.6 11.2687 12.3314 11.0001 12 11.0001C11.6686 11.0001 11.4 11.2687 11.4 11.6001C11.4 11.9315 11.6686 12.2001 12 12.2001Z",fill:"white"})),(0,e.createElement)("span",{className:"wkit-menu-text"},Za("Support"))))))))},Pa=()=>(0,e.createElement)("div",{className:"wkit-select-main"},(0,e.createElement)("div",{className:"wkit-skeleton-heading"}),(0,e.createElement)("div",{className:"wkit-sekeleton-template"},(0,e.createElement)("div",{className:"wkit-skeleton-col"},(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-input-skeleton"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))),(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-input-skeleton"},(0,e.createElement)("div",{className:"wkit-skeleton-line"})))),(0,e.createElement)("div",{className:"wkit-skeleton-col"},(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-input-skeleton"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))),(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-input-skeleton"},(0,e.createElement)("div",{className:"wkit-skeleton-line"}))))),(0,e.createElement)("div",{className:"wkit-skeleton-addBtn"}),(0,e.createElement)("div",{className:"wkit-skeleton-label"}),(0,e.createElement)("div",{className:"wkit-save-plugin-wrapper"},[1,2,3,4].map(((t,a)=>(0,e.createElement)("div",{className:"wkit-plugin-list",key:a},(0,e.createElement)("div",{className:"kit-field-wrap1"},(0,e.createElement)("div",{className:"wkit-plugin-skeleton"},(0,e.createElement)("div",{className:"wkit-small-check-box"}),(0,e.createElement)("div",{className:"wkit-small-img-box"}),(0,e.createElement)("div",{className:"wkit-skeleton-line"}))))))),(0,e.createElement)("div",{className:"wkit-btn-right"},(0,e.createElement)("button",{className:"wkit-btn-skeleton"}))),{Fragment:Wa}=wp.element,{get_userinfo:Ia,form_data:Fa,Add_workspace:qa,loadingIcon:Ua,select_WorkSpace:Ka,wkit_getCategoryList:Ja,wkit_get_user_login:za}=wp.wkit_Helper,{__:Ga}=wp.i18n,Ya=t=>{const a=G();if(!za())return t.wdkit_Login_Route("/save_template"),(0,e.createElement)(oe,{to:"/login"});const n=J();var i=wdkitData.WDKIT_URL;const[s,r]=(0,l.useState)(!1),[o,c]=(0,l.useState)("my_upload"),[d,m]=(0,l.useState)(!1),[p,u]=(0,l.useState)(""),[w,g]=(0,l.useState)(""),[C,v]=(0,l.useState)([]),[b,h]=(0,l.useState)("pagetemplate"),[_,k]=(0,l.useState)(""),[E,f]=(0,l.useState)([]),[y,N]=(0,l.useState)(""),[$,L]=(0,l.useState)(""),[x,H]=(0,l.useState)("loading"),[M,V]=(0,l.useState)(""),[D,S]=(0,l.useState)([]),[Z,R]=(0,l.useState)(!1),[B,T]=(0,l.useState)(!1),[O,j]=(0,l.useState)(!1),[A,P]=(0,l.useState)(!1),[W,I]=(0,l.useState)(""),[F,q]=(0,l.useState)(""),[U,K]=(0,l.useState)(""),[z,Y]=(0,l.useState)(!1),[X,Q]=(0,l.useState)(!1),[ee,te]=(0,l.useState)(""),[ae,le]=(0,l.useState)(!1),[ne,ie]=(0,l.useState)(""),[se,re]=(0,l.useState)("");(0,l.useEffect)((()=>{n.pathname&&n.pathname.search("save_template")>-1||a("/save_template")}),[]),(0,l.useEffect)((()=>{s&&pe()}),[s]),(0,l.useEffect)((()=>{if("elementor"==window.wdkit_editor&&x?.plugin?.length>0){let e=x?.plugin.findIndex((e=>"elementor"==e.original_slug));e>-1&&f([x?.plugin[e].p_id])}}),[window.wdkit_editor,x?.plugin]),(0,l.useEffect)((()=>{n.pathname&&"/save_template/section"==n.pathname?(h("section"),m(!0)):h("pagetemplate")}),[n.pathname]),(0,l.useEffect)((()=>{P(!0),H(t.wdkit_meta),t?.wdkit_meta?.category&&t?.wdkit_meta?.userinfo&&(V(Ja(t.wdkit_meta.category)),P(!1)),S(Ka(t?.wdkit_meta,"","all"))}),[t.wdkit_meta]);const ce=async e=>{if(N(""),L(""),"new_temp"==e&&!p)return N("wkit-error-red"),void t.wdkit_set_toast(["Enter Template Name","Title can not be empty!","","danger"]);if(!o)return void L("wkit-error-red");let l="",n={},i={};if("gutenberg"==window.wdkit_editor)l=d?localStorage.getItem("wdkit_section"):await wp.data.select("core/editor").getEditedPostContent(),n={file_type:"wp_block",title:p,content:l};else if("elementor"==window.wdkit_editor){let e="";if(d)l=localStorage.getItem("wdkit_section"),l=[JSON.parse(l)];else{var s,r,c,m,u,w,g=null;if(window&&(s=window)&&s&&(r=s.elementor)&&r&&(c=r.previewView)&&c&&(m=c.el)&&m&&(u=m.firstElementChild)&&u&&(g=u),null!=g&&r&&(w=r.config)&&null!==w&&w.document)if(null!=g&&g.model)l=[g.model.toJSON({remove:["default"]})];else if(l=r.elements.toJSON({remove:["default"]}),window.elementor.documents){var C=window.elementor.documents;if(C.getCurrent()){var v=C.getCurrent();e=v&&v.config&&v.config.type?v.config.type:"",v.container&&v.container.settings&&(i=v.container.settings.toJSON({remove:["default"]}),i.post_status="publish",i.post_title=p)}}}n={file_type:"elementor",title:p,content:l,el_type:e,settings:i}}if(!l||!n)return void I("Page Content is empty");if(T(!0),"new_temp"==e)var h=await(async e=>{if(!e)return;let a="",l=za();l&&l.user_email&&(a=l.user_email);let n={type:"save_template",email:a,builder:window.wdkit_editor};return n=Object.assign({},n,e),await Fa(n).then((e=>(e?.data?.success,t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),e)))})({title:p,type_upload:o,template_type:b,wp_post_type:wdkitData.post_type||"page",category:_,data:JSON.stringify(n),plugins:JSON.stringify(E)});else if("replace_temp"==e)return void(h=await de(JSON.stringify(n)));let k=h.data&&h.data.id?h.data.id:"",f=h.data&&h.data.editpage?h.data.editpage:"";q(k),K(f),h&&h.success&&(await Ia().then((e=>t.wdkit_set_meta(e.data))),R(!0),setTimeout((()=>{R(!1),a("/my_uploaded")}),5e3)),T(!1)},de=async e=>{let l={type:"update_template",token:za().token,data:e,id:ee.id};return l=Object.assign({},l),await Fa(l).then((e=>e?.data?.success?(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),le(!1),re(!1),a("/my_uploaded"),e):(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),le(!1),re(!1),e)))},me=e=>{const{value:t,checked:a}=e.target;f(a?[...E,t]:E.filter((e=>e!==t)))},pe=async()=>{ie(w),te(""),Y(!0),Q(!0);let e=za(),a={type:"find_template",token:e?.token,u_id:t?.wdkit_meta?.userinfo?.id,search:w,builder:window.wdkit_editor,parpage:12};await Fa(a).then((e=>{if(e?.data?.success){let t=e?.data?.posts;return t&&v(e?.data?.posts),e}return e})),Y(!1)};return(0,e.createElement)(Wa,null,A&&(0,e.createElement)("div",{className:"wkit-save-skeleton"},(0,e.createElement)(Pa,null)),!A&&(0,e.createElement)(Wa,null,(0,e.createElement)("div",{className:"wkit-select-main"},(0,e.createElement)((()=>(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("div",{className:"wdkit-switch-text",style:{color:s?"#19191B":"#C22076"}},Ga("New Template")),(0,e.createElement)("label",{className:"wdkit-switch"},(0,e.createElement)("input",{type:"checkbox",checked:s,onChange:()=>r(!s)}),(0,e.createElement)("span",{className:"wdkit-slider round"})),(0,e.createElement)("div",{className:"wdkit-switch-text",style:{color:s?"#C22076":"#19191B"}},Ga("Existing Template")))),null),(0,e.createElement)("div",{style:{display:s?"":"none",height:"80%"}},(0,e.createElement)(Wa,null,(0,e.createElement)("div",{className:"wkit-existing-template"},(0,e.createElement)("div",{className:"wkit-search-template"},(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Search Template")),(0,e.createElement)("div",{className:"wkit-search-template-input"},(0,e.createElement)("input",{type:"text",placeholder:Ga("Search Template"),className:"wkit-existing-temp-search",value:w,onChange:e=>g(e.target.value)}),z?(0,e.createElement)("button",{className:"wkit-find-template-btn wkit-btn-class"},Fe()):(0,e.createElement)("button",{type:"submit",className:"wkit-find-template-btn wkit-btn-class",onClick:()=>{pe()}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M21.0004 20.9984L16.6504 16.6484",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})))),X&&(0,e.createElement)(Wa,null,(0,e.createElement)("div",{className:"wkit-find-temp-list-content"},(0,e.createElement)("ul",{className:"wkit-find-temp-list"},(0,e.createElement)("span",{className:"wkit-Flist-notice"},ne?`Search "${ne}"`:"Recently added"),0==z?(0,e.createElement)(Wa,null,C?.length>0?C.map((a=>(0,e.createElement)("li",{className:"kit-page-list",key:a.id,onClick:()=>{(e=>{if(e&&t?.wdkit_meta?.template?.length>0){let a=t?.wdkit_meta?.template,l=a.findIndex((t=>t.id==e));if(l>-1){let e=a[l];te(e)}else te(""),t.wdkit_set_toast(["Template Not Found","selected Template is Not Found","","danger"])}})(a.id)}},(0,e.createElement)("div",{className:"wkit-existing-temp-detail"},(0,e.createElement)("img",{src:a.image_url,alt:a.title}),(0,e.createElement)("div",{className:"section-page-post-type"},a.title)),(0,e.createElement)("div",{className:"wkit-existing-temp-meta"},(0,e.createElement)("div",{className:"wkit-temp-meta-content"},"section"===a.type?(0,e.createElement)("img",{className:"wkit-temp-meta-content-img",src:i+"assets/images/svg/sections.svg",alt:"section"}):"pagetemplate"===a.type?(0,e.createElement)("img",{className:"wkit-temp-meta-content-img",src:i+"assets/images/svg/pages.svg",alt:"page"}):(0,e.createElement)("img",{className:"wkit-temp-meta-content-img",src:i+"assets/images/svg/websitekit.svg",alt:"kit"})),(0,e.createElement)("div",{className:"wkit-temp-meta-content"},"publish"===a.post_status?(0,e.createElement)("img",{className:"wkit-temp-meta-content-img",src:i+"assets/images/svg/public.svg",alt:"public"}):(0,e.createElement)("img",{className:"wkit-temp-meta-content-img",src:i+"assets/images/svg/private.svg",alt:"private"})))))):(0,e.createElement)("div",{className:"wkit-no-data"},(0,e.createElement)("img",{src:i+"assets/images/jpg/empty-dog.png",alt:"no-data"}),(0,e.createElement)("span",null,Ga("Search Template can not found")))):Fe())))),(0,e.createElement)("div",{className:"wkit-select-template"},ee?(0,e.createElement)("div",{className:"wkit-selected-template-content"},(0,e.createElement)("span",{className:"wkit-selected-template-info"},Ga("Do you want to replace this?")),(0,e.createElement)("div",{className:"wkit-selected-template"},(()=>{let t=ee.post_builder,a=ee.type;return(0,e.createElement)(Ke,{data:ee,builder:t,currentPage:1,type:"websitekit"==a?a+"-view":a,width:"24%"})})()),(0,e.createElement)("div",{className:"wkit-quickedit-note"},(0,e.createElement)("span",null,(0,e.createElement)("b",null,Ga("Note :")),Ga("This new widget will have have unique class, So It will work independently from previous widget.")))):(0,e.createElement)("div",{className:"wkit-selected-img"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"39",height:"38",viewBox:"0 0 39 38",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M36.5 2H2.5L2.5 36H36.5V2ZM2.5 0C1.39543 0 0.5 0.89543 0.5 2V36C0.5 37.1046 1.39543 38 2.5 38H36.5C37.6046 38 38.5 37.1046 38.5 36V2C38.5 0.895431 37.6046 0 36.5 0H2.5ZM20.0833 12.6667H3.66667V10.6667H35.3333V12.6667H31.5833V21.793C31.5833 22.7514 30.5152 23.3231 29.7177 22.7914L25.8333 20.2019L21.949 22.7914C21.1515 23.3231 20.0833 22.7514 20.0833 21.793V12.6667ZM22.0833 12.6667V20.2981L25.2232 18.2049C25.5927 17.9586 26.074 17.9586 26.4435 18.2049L29.5833 20.2981V12.6667H22.0833ZM9 6.33333C9 6.6555 8.73883 6.91667 8.41667 6.91667C8.0945 6.91667 7.83333 6.6555 7.83333 6.33333C7.83333 6.01117 8.0945 5.75 8.41667 5.75C8.73883 5.75 9 6.01117 9 6.33333ZM10 6.33333C10 7.20778 9.29112 7.91667 8.41667 7.91667C7.54222 7.91667 6.83333 7.20778 6.83333 6.33333C6.83333 5.45888 7.54222 4.75 8.41667 4.75C9.29112 4.75 10 5.45888 10 6.33333ZM14.75 6.91667C15.0722 6.91667 15.3333 6.6555 15.3333 6.33333C15.3333 6.01117 15.0722 5.75 14.75 5.75C14.4278 5.75 14.1667 6.01117 14.1667 6.33333C14.1667 6.6555 14.4278 6.91667 14.75 6.91667ZM14.75 7.91667C15.6245 7.91667 16.3333 7.20778 16.3333 6.33333C16.3333 5.45888 15.6245 4.75 14.75 4.75C13.8755 4.75 13.1667 5.45888 13.1667 6.33333C13.1667 7.20778 13.8755 7.91667 14.75 7.91667ZM6.83333 21.1667C6.83333 20.6144 7.28105 20.1667 7.83333 20.1667H12.1667C12.719 20.1667 13.1667 20.6144 13.1667 21.1667C13.1667 21.719 12.719 22.1667 12.1667 22.1667H7.83333C7.28105 22.1667 6.83333 21.719 6.83333 21.1667ZM7.83333 28.0833C7.28105 28.0833 6.83333 28.531 6.83333 29.0833C6.83333 29.6356 7.28105 30.0833 7.83333 30.0833H26.4167C26.969 30.0833 27.4167 29.6356 27.4167 29.0833C27.4167 28.531 26.969 28.0833 26.4167 28.0833H7.83333Z",fill:"#D9D9EC"}))))),ee&&(0,e.createElement)("div",{className:"wkit-replace-button"},(0,e.createElement)("button",{className:"wkit-btn-class",onClick:()=>{re(!0)}},Ga("Replace"))))),(0,e.createElement)("div",{className:"wkit-save-temp-content",style:s?{display:"none"}:{}},(0,e.createElement)("div",{className:"wkit-save-heading"},Ga("Save Template")),(0,e.createElement)("div",{className:"wkit-select-template"},(0,e.createElement)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap"},(0,e.createElement)("div",{className:"kit-field-wrap"},(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Template Name")),(0,e.createElement)("input",{type:"text",placeholder:Ga("Enter Template Name"),className:"wkit-input-filed "+y,value:p,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_toast(["Limit Reached","Limit Reached","","danger"]),0))&&u(e.target.value)}})),(0,e.createElement)("div",{className:"kit-field-wrap"},(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Select Workspace")),(0,e.createElement)("div",{className:"wkit-saveTemplate-dowpDown"},(0,e.createElement)("select",{className:"wkit-select "+$,value:o,onChange:e=>c(e.target.value)},(0,e.createElement)("option",{value:"my_upload"},Ga("My Upload")),(0,e.createElement)("optgroup",{label:Ga("My Workspace")},D&&D.map(((t,a)=>(0,e.createElement)("option",{key:a,value:t.w_id},t.title))))),(0,e.createElement)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.87998 1.28957L5.99998 5.16957L2.11998 1.28957C1.72998 0.89957 1.09998 0.89957 0.70998 1.28957C0.31998 1.67957 0.31998 2.30957 0.70998 2.69957L5.29998 7.28957C5.68998 7.67957 6.31998 7.67957 6.70998 7.28957L11.3 2.69957C11.69 2.30957 11.69 1.67957 11.3 1.28957C10.91 0.90957 10.27 0.89957 9.87998 1.28957Z"}))))),(0,e.createElement)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap"},(0,e.createElement)("div",{className:"kit-field-wrap"},(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Template Type")),(0,e.createElement)("div",{className:"wkit-saveTemplate-dowpDown"},(0,e.createElement)("select",{className:"wkit-select "+$,value:b,onChange:e=>{h(e.target.value),k("")}},(0,e.createElement)("option",{value:"pagetemplate"},Ga("Page Template")),(0,e.createElement)("option",{value:"section"},Ga("Section"))),(0,e.createElement)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.87998 1.28957L5.99998 5.16957L2.11998 1.28957C1.72998 0.89957 1.09998 0.89957 0.70998 1.28957C0.31998 1.67957 0.31998 2.30957 0.70998 2.69957L5.29998 7.28957C5.68998 7.67957 6.31998 7.67957 6.70998 7.28957L11.3 2.69957C11.69 2.30957 11.69 1.67957 11.3 1.28957C10.91 0.90957 10.27 0.89957 9.87998 1.28957Z"})))),(0,e.createElement)("div",{className:"kit-field-wrap"},(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Category")),(0,e.createElement)("div",{className:"wkit-saveTemplate-dowpDown"},(0,e.createElement)("select",{className:"wkit-select",value:_,onChange:e=>k(e.target.value)},(0,e.createElement)("option",{value:""},Ga("Select Category")),"pagetemplate"==b&&M&&Object.entries(M["Page Templates"]).map((([t,a],l)=>(0,e.createElement)("option",{key:l,value:a.term_id},a.term_name))),"section"==b&&M&&Object.entries(M.Sections).map((([t,a],l)=>(0,e.createElement)("option",{key:l,value:a.term_id},a.term_name)))),(0,e.createElement)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.87998 1.28957L5.99998 5.16957L2.11998 1.28957C1.72998 0.89957 1.09998 0.89957 0.70998 1.28957C0.31998 1.67957 0.31998 2.30957 0.70998 2.69957L5.29998 7.28957C5.68998 7.67957 6.31998 7.67957 6.70998 7.28957L11.3 2.69957C11.69 2.30957 11.69 1.67957 11.3 1.28957C10.91 0.90957 10.27 0.89957 9.87998 1.28957Z"})))))),(0,e.createElement)("div",{style:{display:"flex"}},(0,e.createElement)("a",{className:"wkit-workspace",onClick:()=>j(!O)},(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0H6V6H0V8H6V14H8V8H14V6H8V0Z",fill:"#040483"})),Ga("Add New Workspace"))),O&&(0,e.createElement)(qa,{type:"saveTemp",closePopUp:()=>{j(!1)},UpdateUserData:e=>{t.wdkit_set_meta(e.data)},setLoading:e=>{P(e)},Toast:(e,a,l)=>t.wdkit_set_toast([e,a,"",l])}),x?.plugin?.length>0?(0,e.createElement)(Wa,null,(0,e.createElement)("label",{className:"wkit-label-heading"},Ga("Plugins Used")),(0,e.createElement)("div",{className:"wkit-save-plugin-wrapper"},Object.values(x?.plugin).map(((t,a)=>{if("wdkit"==window.wdkit_editor)return(0,e.createElement)("div",{className:"wkit-plugin-list",key:a},(0,e.createElement)("input",{type:"checkbox",id:"plugin_"+t.p_id,name:"selectPlugin",className:"save-wkit-check",value:t.p_id,onChange:me}),(0,e.createElement)("label",{htmlFor:"plugin_"+t.p_id},(0,e.createElement)("div",{className:"wkit-plugin-image"},(0,e.createElement)("img",{src:t.plugin_icon?t.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})),(0,e.createElement)("div",{className:"wkit-plugin-text"},t.plugin_name)));if("elementor"==window.wdkit_editor)var l="1001";else"gutenberg"==window.wdkit_editor&&(l="1002");return l==t.plugin_builder||0==t.plugin_builder?(0,e.createElement)("div",{className:"wkit-plugin-list",key:a},(0,e.createElement)("input",{type:"checkbox",id:"plugin_"+t.p_id,name:"selectPlugin",className:"save-wkit-check",value:t.p_id,onChange:me,checked:!!E.includes(t.p_id)||null}),(0,e.createElement)("label",{htmlFor:"plugin_"+t.p_id},(0,e.createElement)("div",{className:"wkit-plugin-image"},(0,e.createElement)("img",{src:t.plugin_icon?t.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})),(0,e.createElement)("div",{className:"wkit-plugin-text"},t.plugin_name))):void 0})))):0==x?.plugin?.length?(0,e.createElement)("div",{className:"wkit-no-template-data"},Ga("No Plugin List")):(0,e.createElement)("div",{className:"wkit-save-skeleton"},(0,e.createElement)(Pa,null)),""!=W&&(0,e.createElement)("div",{className:"wkit-error-msg wkit-mb-10 wkit-mt-15 text-center"},W),(0,e.createElement)("div",{className:"wkit-btn-right"},B?(0,e.createElement)("button",{type:"button",className:"wkit-save-btn wkit-btn-class"},Fe()):(0,e.createElement)("button",{type:"button",className:"wkit-save-btn wkit-btn-class",onClick:()=>ce("new_temp")},Ga("Save Template"))),Z&&(0,e.createElement)("div",{className:"wkit-model-transp wkit-sucessfully-save-to-cloud wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:()=>{document.querySelector(".wkit-sucessfully-save-to-cloud.wkit-popup-show").classList.remove("wkit-popup-show"),a("my_upload"==o?`/my_uploaded?${b}`:"/manage_workspace/workspace_template/"+Number(o))}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("div",{className:"wkit-successfully-imported"},(0,e.createElement)("div",null,(0,e.createElement)("img",{src:wdkitData.WDKIT_URL+"assets/images/jpg/successfully.png",alt:"gutenberg"})),(0,e.createElement)("div",{className:"wkit-text-center"},(0,e.createElement)("div",{className:"wkit-success-heading"},Ga("Successfully Uploaded")),(0,e.createElement)("div",{className:"wkit-desc"},Ga("To Edit fully visit WdesignKit admin and make it live."))),F&&(0,e.createElement)("button",{type:"submit",className:"wkit-save-btn wkit-btn-class"},(0,e.createElement)("a",{href:U,target:"_blank",rel:"noopener noreferrer"},Ga("Edit Fully")))))))),se&&(0,e.createElement)((()=>(0,e.createElement)("div",{className:"wkit-model-transp wkit-popup-show"},(0,e.createElement)("div",{className:"wkit-plugin-model-content"},(0,e.createElement)("a",{className:"wkit-plugin-popup-close",onClick:e=>{re(!1)}},(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"popup-missing"},(0,e.createElement)("div",{className:"popup-header"},Ga("Please Confirm")),(0,e.createElement)("div",{className:"popup-body"},(0,e.createElement)("div",{className:"wkit-popup-content-title"},Ga("Are you sure want to Replace this Template ?")),(0,e.createElement)("div",{className:"wkit-popup-buttons"},(0,e.createElement)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>{re(!1)}},(0,e.createElement)("span",null,Ga("No"))),ae?(0,e.createElement)("button",{className:"wkit-popup-cancel wkit-btn-class"},Fe()):(0,e.createElement)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>{le(!0),ce("replace_temp")}},(0,e.createElement)("span",null,Ga("Yes"))))))))),null)))};var Xa=a(688),Qa=a(798);const el=window.ReactDOM;let tl=function(e){e()};const al=()=>tl,ll=Symbol.for(`react-redux-context-${l.version}`),nl=globalThis,il=new Proxy({},new Proxy({},{get(e,t){const a=function(){let e=nl[ll];return e||(e=(0,l.createContext)(null),nl[ll]=e),e}();return(e,...l)=>Reflect[t](a,...l)}}));let sl=null;function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},rl.apply(this,arguments)}function ol(e,t){if(null==e)return{};var a,l,n={},i=Object.keys(e);for(l=0;l<i.length;l++)a=i[l],t.indexOf(a)>=0||(n[a]=e[a]);return n}var cl=a(679),dl=a.n(cl),ml=a(973);const pl=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function ul(e,t,a,l,{areStatesEqual:n,areOwnPropsEqual:i,areStatePropsEqual:s}){let r,o,c,d,m,p=!1;return function(u,w){return p?function(p,u){const w=!i(u,o),g=!n(p,r,u,o);return r=p,o=u,w&&g?(c=e(r,o),t.dependsOnOwnProps&&(d=t(l,o)),m=a(c,d,o),m):w?(e.dependsOnOwnProps&&(c=e(r,o)),t.dependsOnOwnProps&&(d=t(l,o)),m=a(c,d,o),m):g?function(){const t=e(r,o),l=!s(t,c);return c=t,l&&(m=a(c,d,o)),m}():m}(u,w):(r=u,o=w,c=e(r,o),d=t(l,o),m=a(c,d,o),p=!0,m)}}function wl(e){return function(t){const a=e(t);function l(){return a}return l.dependsOnOwnProps=!1,l}}function gl(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Cl(e,t){return function(t,{displayName:a}){const l=function(e,t){return l.dependsOnOwnProps?l.mapToProps(e,t):l.mapToProps(e,void 0)};return l.dependsOnOwnProps=!0,l.mapToProps=function(t,a){l.mapToProps=e,l.dependsOnOwnProps=gl(e);let n=l(t,a);return"function"==typeof n&&(l.mapToProps=n,l.dependsOnOwnProps=gl(n),n=l(t,a)),n},l}}function vl(e,t){return(a,l)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${l.wrappedComponentName}.`)}}function bl(e,t,a){return rl({},a,e,t)}const hl={notify(){},get:()=>[]};function _l(e,t){let a,l=hl;function n(){s.onStateChange&&s.onStateChange()}function i(){a||(a=t?t.addNestedSub(n):e.subscribe(n),l=function(){const e=al();let t=null,a=null;return{clear(){t=null,a=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],a=t;for(;a;)e.push(a),a=a.next;return e},subscribe(e){let l=!0,n=a={callback:e,next:null,prev:a};return n.prev?n.prev.next=n:t=n,function(){l&&null!==t&&(l=!1,n.next?n.next.prev=n.prev:a=n.prev,n.prev?n.prev.next=n.next:t=n.next)}}}}())}const s={addNestedSub:function(e){return i(),l.subscribe(e)},notifyNestedSubs:function(){l.notify()},handleChangeWrapper:n,isSubscribed:function(){return Boolean(a)},trySubscribe:i,tryUnsubscribe:function(){a&&(a(),a=void 0,l.clear(),l=hl)},getListeners:()=>l};return s}const kl="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect;function El(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function fl(e,t){if(El(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(let l=0;l<a.length;l++)if(!Object.prototype.hasOwnProperty.call(t,a[l])||!El(e[a[l]],t[a[l]]))return!1;return!0}const yl=["reactReduxForwardedRef"];let Nl=()=>{throw new Error("uSES not initialized!")};const $l=[null,null];function Ll(e,t,a,l,n,i){e.current=l,a.current=!1,n.current&&(n.current=null,i())}function xl(e,t){return e===t}const Hl=function(e,t,a,{pure:i,areStatesEqual:s=xl,areOwnPropsEqual:r=fl,areStatePropsEqual:o=fl,areMergedPropsEqual:c=fl,forwardRef:d=!1,context:m=il}={}){const p=m,u=function(e){return e?"function"==typeof e?Cl(e):vl(e,"mapStateToProps"):wl((()=>({})))}(e),w=function(e){return e&&"object"==typeof e?wl((t=>function(e,t){const a={};for(const l in e){const n=e[l];"function"==typeof n&&(a[l]=(...e)=>t(n(...e)))}return a}(e,t))):e?"function"==typeof e?Cl(e):vl(e,"mapDispatchToProps"):wl((e=>({dispatch:e})))}(t),g=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:a,areMergedPropsEqual:l}){let n,i=!1;return function(t,a,s){const r=e(t,a,s);return i?l(r,n)||(n=r):(i=!0,n=r),n}}}(e):vl(e,"mergeProps"):()=>bl}(a),C=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",a=`Connect(${t})`,i={shouldHandleStateChanges:C,displayName:a,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:u,initMapDispatchToProps:w,initMergeProps:g,areStatesEqual:s,areStatePropsEqual:o,areOwnPropsEqual:r,areMergedPropsEqual:c};function m(t){const[a,s,r]=(0,l.useMemo)((()=>{const{reactReduxForwardedRef:e}=t,a=ol(t,yl);return[t.context,e,a]}),[t]),o=(0,l.useMemo)((()=>a&&a.Consumer&&(0,ml.isContextConsumer)(n().createElement(a.Consumer,null))?a:p),[a,p]),c=(0,l.useContext)(o),d=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),m=Boolean(c)&&Boolean(c.store),u=d?t.store:c.store,w=m?c.getServerState:u.getState,g=(0,l.useMemo)((()=>function(e,t){let{initMapStateToProps:a,initMapDispatchToProps:l,initMergeProps:n}=t,i=ol(t,pl);return ul(a(e,i),l(e,i),n(e,i),e,i)}(u.dispatch,i)),[u]),[v,b]=(0,l.useMemo)((()=>{if(!C)return $l;const e=_l(u,d?void 0:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[u,d,c]),h=(0,l.useMemo)((()=>d?c:rl({},c,{subscription:v})),[d,c,v]),_=(0,l.useRef)(),k=(0,l.useRef)(r),E=(0,l.useRef)(),f=(0,l.useRef)(!1),y=((0,l.useRef)(!1),(0,l.useRef)(!1)),N=(0,l.useRef)();kl((()=>(y.current=!0,()=>{y.current=!1})),[]);const $=(0,l.useMemo)((()=>()=>E.current&&r===k.current?E.current:g(u.getState(),r)),[u,r]),L=(0,l.useMemo)((()=>e=>v?function(e,t,a,l,n,i,s,r,o,c,d){if(!e)return()=>{};let m=!1,p=null;const u=()=>{if(m||!r.current)return;const e=t.getState();let a,u;try{a=l(e,n.current)}catch(e){u=e,p=e}u||(p=null),a===i.current?s.current||c():(i.current=a,o.current=a,s.current=!0,d())};return a.onStateChange=u,a.trySubscribe(),u(),()=>{if(m=!0,a.tryUnsubscribe(),a.onStateChange=null,p)throw p}}(C,u,v,g,k,_,f,y,E,b,e):()=>{}),[v]);var x,H;let M;x=Ll,H=[k,_,f,r,E,b],kl((()=>x(...H)),undefined);try{M=Nl(L,$,w?()=>g(w(),r):$)}catch(e){throw N.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${N.current.stack}\n\n`),e}kl((()=>{N.current=void 0,E.current=void 0,_.current=M}));const V=(0,l.useMemo)((()=>n().createElement(e,rl({},M,{ref:s}))),[s,e,M]);return(0,l.useMemo)((()=>C?n().createElement(o.Provider,{value:h},V):V),[o,V,h])}const v=n().memo(m);if(v.WrappedComponent=e,v.displayName=m.displayName=a,d){const t=n().forwardRef((function(e,t){return n().createElement(v,rl({},e,{reactReduxForwardedRef:t}))}));return t.displayName=a,t.WrappedComponent=e,dl()(t,e)}return dl()(v,e)}},Ml=function({store:e,context:t,children:a,serverState:i,stabilityCheck:s="once",noopCheck:r="once"}){const o=(0,l.useMemo)((()=>{const t=_l(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:s,noopCheck:r}}),[e,i,s,r]),c=(0,l.useMemo)((()=>e.getState()),[e]);kl((()=>{const{subscription:t}=o;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),c!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[o,c]);const d=t||il;return n().createElement(d.Provider,{value:o},a)};var Vl;sl=Qa.useSyncExternalStoreWithSelector,(e=>{Nl=e})(Xa.useSyncExternalStore),Vl=el.unstable_batchedUpdates,tl=Vl;const Dl={text:{type:"text",lable:"Text",name:"text",description:"",placeHolder:"",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",input_type:"text",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},number:{type:"number",lable:"Number",name:"number",description:"",placeHolder:"",defaultValue:"0",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",responsive:!1,selectors:"",selector_value:"",dynamic:!1,number_setting:{min:"0",max:"100",step:"1"},condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},wysiwyg:{type:"wysiwyg",lable:"Wysiwyg",name:"wysiwyg",description:"",defaultValue:"",showLable:!0,lableBlock:!0,controlClass:"",separator:"default",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},code:{type:"code",lable:"Code",name:"code",description:"",defaultValue:"",showLable:!0,lableBlock:!0,separator:"default",controlClass:"",conditions:!1,rows:"5",dynamic:!1,language:"html",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},hidden:{type:"hidden",lable:"Hidden",name:"hidden",defaultValue:""},choose:{type:"choose",lable:"Choose",name:"choose",description:"",align_defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",align_option:[{align_lable:"label",align_value:"value",align_icon:"eicon-text-align-left",align_title:"",align_svg:""}],toggle:!1,controlClass:"",responsive:!1,conditions:!1,selectors:"",selector_value:"",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},alignmentType:"content"},datetime:{type:"datetime",lable:"Date Time",name:"datetime",description:"",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},gallery:{type:"gallery",lable:"Gallery",name:"gallery",description:"",defaultValue:"",showLable:!0,lableBlock:!0,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},media:{type:"media",lable:"Media",name:"media",description:"",defaultValue:"",media_types:[],showLable:!0,lableBlock:!0,separator:"default",controlClass:"",conditions:!1,dynamic:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},iconscontrol:{type:"iconscontrol",lable:"Icons Control",name:"iconscontrol",description:"",defaultValue:"",showLable:!0,lableBlock:!0,parent_class:!0,separator:"default",skin:"media",exclude_inline_options:["none"],controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},background:{type:"background",lable:"Background",name:"background",selector:"",separator:"default",types:['"classic"','"gradient"'],fields_options:[],controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},border:{type:"border",lable:"Border",name:"border",selector:"",controlClass:"",separator:"default",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},boxshadow:{type:"boxshadow",lable:"Box Shadow",name:"boxshadow",selector:"",separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},textshadow:{type:"textshadow",lable:"Text Shadow",name:"textshadow",separator:"default",selector:"",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},color:{type:"color",lable:"Color",name:"color",description:"",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",alpha:!0,global:!0,selectors:"",selector_value:"",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},cssfilter:{type:"cssfilter",lable:"CSS Filter",name:"cssfilter",selector:"",separator:"default",conditions:!1,controlClass:"",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},dimension:{type:"dimension",lable:"Dimension",name:"dimension",description:"",showLable:!0,lableBlock:!0,separator:"default",dimension_units:["px"],dimension_defaultValue:{top:0,right:0,bottom:0,left:0,unit:"px",isLinked:!0},selectors:"",responsive:!1,selector_value:"",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},typography:{type:"typography",lable:"Typography",name:"typography",separator:"default",conditions:!1,selector:"",controlClass:"",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},repeater:{type:"repeater",lable:"Repeater",name:"repeater",description:"",showLable:!0,lableBlock:!0,separator:"default",fields:[],title_field:"Repeater Title",prevent_empty:!0,defaultCount:1,repeater_type:"Old",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},heading:{type:"heading",lable:"Heading",name:"heading",separator:"default",conditions:!1,controlClass:"",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},divider:{type:"divider",lable:"Divider",name:"divider",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},rawhtml:{type:"rawhtml",lable:"RawHtml",name:"rawhtml",description:"",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},slider:{type:"slider",lable:"Slider",name:"slider",description:"",placeHolder:"",slider_defaultValue:["px",10],separator:"default",controlClass:"",size_units:[{type:"px",checked:!0,min:0,max:10,step:1},{type:"%",checked:!1,min:0,max:10,step:1},{type:"em",checked:!1,min:0,max:10,step:1},{type:"rem",checked:!1,min:0,max:10,step:1},{type:"deg",checked:!1,min:0,max:10,step:1},{type:"vh",checked:!1,min:0,max:10,step:1}],show_unit:!0,showLable:!0,lableBlock:!0,conditions:!1,dynamic:!1,selectors:"",selector_value:"",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},responsive:!0},select:{type:"select",lable:"Select",name:"select",description:"",select_defaultValue:["value-0","label-0"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"value-0",lable:"label-0",svg:"svg-0"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},selecttemplate:{type:"selecttemplate",lable:"Select Template",name:"selecttemplate",description:"",s_template_defaultValue:"select template",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},select2:{type:"select2",lable:"Select2",name:"select2",description:"",select2_defaultValue:[],showLable:!0,lableBlock:!1,controlClass:"",separator:"default",multiple:!0,options:[{value:"value-0",lable:"label-0"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},textarea:{type:"textarea",lable:"Textarea",name:"textarea",description:"",placeHolder:"",defaultValue:"",controlClass:"",showLable:!0,lableBlock:!1,dynamic:!1,separator:"default",rows:"2",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},url:{type:"url",lable:"Url",name:"url",description:"",placeHolder:"",defaultValue:"",controlClass:"",url_options:!0,url_options_array:["url","is_external","nofollow"],is_external:!1,nofollow:!1,custom_attributes:"",showLable:!0,lableBlock:!0,dynamic:!1,separator:"default",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},switcher:{type:"switcher",lable:"Switcher",name:"switcher",description:"",defaultValue:"",controlClass:"",showLable:!0,lableBlock:!1,separator:"default",label_on:"yes",label_off:"no",return_value:"yes",responsive:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},popover:{type:"popover",lable:"Popover",name:"popover",description:"",fields:[],showLable:!0,lableBlock:!1,return_value:"",separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},normalhover:{type:"normalhover",lable:"Normal Hover",name:"normalhover",defaultValue:"normal",nha_type:"normal",tabTitle:"normal",description:"",nha_array:["normal","hover"],nha_array_lable:["Normal","Hover"],fields:[],showLable:!0,controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},icon:{type:"icon",lable:"Icon",name:"icon",description:"",defaultValue:"",showLable:!0,separator:"default",controlClass:"",responsive:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},headingtags:{type:"headingtags",lable:"Heading Tags",name:"headingtags",description:"",select_defaultValue:["h1","H1"],options:[{value:"h1",lable:"H1"},{value:"h2",lable:"H2"},{value:"h3",lable:"H3"},{value:"h4",lable:"H4"},{value:"h5",lable:"H5"},{value:"h6",lable:"H6"}],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},gradientcolor:{type:"gradientcolor",lable:"Gradient Color",name:"gradientcolor",description:"",defaultValue:"linear-gradient(90deg, rgb(6, 147, 227) 0%, rgb(155, 81, 224) 100%)",separator:"default",lableBlock:!1,selectors:"",selector_value:"",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},sortable:{type:"sortable",lable:"Sortable",name:"sortable",description:"",placeHolder:"",defaultValue:"",controlClass:"",showLable:!0,lableBlock:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},tab:{type:"tab",lable:"Tab",name:"tab",description:"",placeHolder:"",defaultValue:"",controlClass:"",showLable:!0,lableBlock:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},toggle:{type:"toggle",lable:"Toggle",name:"toggle",description:"",defaultValue:"",controlClass:"",showLable:!0,lableBlock:!1,separator:"default",label_on:"yes",label_off:"no",return_value:"yes",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},alert:{type:"alert",lable:"Alert",name:"alert",description:"",alert_type:"warning",separator:"default",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},notice:{type:"notice",lable:"Notice",name:"notice",dismissible:!0,description:"",notice_type:"warning",separator:"default",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},deprecatednotice:{type:"deprecatednotice",lable:"Deprecated Notice",name:"deprecatednotice",showLable:!0,lableBlock:!1,separator:"default",conditions:!1,deprecatedValue:[{Widget:"your-old-widget"},{Since:"1.0.0"},{Last:"1.0.1"},{Plugin:"Your Great Plugin"},{Replacement:"your-new-widget"}],condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},svg:{type:"svg",lable:"Svg",name:"svg",description:"",defaultValue:"",separator:"default",lableBlock:!1,selectors:"",selector_value:"",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},align:{type:"align",lable:"Align",name:"align",description:"",defaultValue:"",alignType:"text-align",showLable:!0,lableBlock:!1,align_type:"default",selectors:"",separator:"default",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},query:{type:"query",lable:"Query",name:"query",description:"",defaultValue:"",showLable:!0,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}}},{__:Sl}=wp.i18n,Zl=e=>({type:"ADD_LAYOUT_ARRAY",data:e}),Rl=e=>({type:"ADD_WIDGET_ARRAY",data:e}),Bl=e=>({type:"ADD_EDITOR_ARRAY",data:e}),Tl=e=>({type:"Editor_code",data:e}),Ol=e=>({type:"ADD_CONTROLLER",data:e}),jl=e=>({type:"ADD_SECTION",data:e}),Al=e=>({type:"ADD_SETTING_ARRAY",data:e}),Pl=e=>({type:"ADD_LOGIN_ROUTE",data:e}),Wl=e=>({type:"UPDATE_WDKIT_META",data:e}),Il=e=>({type:"ADD_SETTING_ARRAY",data:e}),Fl=e=>({type:"Show_Toast",data:{title:e[0]?e[0]:"",subTitle:e[1]?e[1]:"",icon:e[2]?e[2]:"",type:e[3]?e[3]:""}}),ql=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,widgetdata:e})),(e=>({addTowidgethandler:t=>e(Rl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const a=G(),n=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},i={elementor:{defaultValue:"eicon-code",links:[{label:"E-icons",href:"https://elementor.github.io/elementor-icons/"},{label:"Font-Awesome 5",href:"https://fontawesome.com/v5/search"}]},bricks:{defaultValue:"ti-shield",links:[{label:"Ionicons 4",href:"https://ionic.io/ionicons"},{label:"Font-Awesome 6",href:"https://fontawesome.com/v6/icons/"},{label:"Themify",href:"https://themify.me/themify-icons"}]},gutenberg:{defaultValue:"fas fa-yin-yang",links:[{label:"Font-Awesome 5",href:"https://fontawesome.com/v5/search"}]}};let r={elementor:{array:["gradientcolor","align"],info:{gradientcolor:"color",align:"choose"},selector:{"{{PLUS_WRAP}}":"{{WRAPPER}}"}},gutenberg:{array:["wysiwyg","code","divider","align"],info:{wysiwyg:"textarea",align:"choose",code:"",divider:""},selector:{"{{WRAPPER}}":"{{PLUS_WRAP}}"}},bricks:{array:["wysiwyg","popover","choose","normalhover","divider","dimension"],info:{wysiwyg:"textarea",choose:"align",popover:"",normalhover:"",divider:"",dimension:""},selector:{"{{WRAPPER}}":"","{{PLUS_WRAP}}":""}}};const o={"text-align":[{align_lable:"left",align_value:"left",align_icon:"eicon-text-align-left"},{align_lable:"center",align_value:"center",align_icon:"eicon-text-align-center"},{align_lable:"right",align_value:"right",align_icon:"eicon-text-align-right"},{align_lable:"justify",align_value:"justify",align_icon:"eicon-text-align-justify"}],"justify-content":[{align_lable:"start",align_value:"flex-start",align_icon:"eicon-text-align-left"},{align_lable:"center",align_value:"center",align_icon:"eicon-text-align-center"},{align_lable:"end",align_value:"flex-end",align_icon:"eicon-text-align-right"},{align_lable:"space-between",align_value:"space-between",align_icon:""},{align_lable:"space-around",align_value:"space-around",align_icon:""},{align_lable:"space-evenly",align_value:"space-evenly",align_icon:""}],"align-items":[{align_lable:"start",align_value:"flex-start",align_icon:"eicon-text-align-left"},{align_lable:"center",align_value:"center",align_icon:"eicon-text-align-center"},{align_lable:"end",align_value:"flex-end",align_icon:"eicon-text-align-right"},{align_lable:"stretch",align_value:"stretch",align_icon:""}],"flex-direction":[{align_lable:"column",align_value:"column",align_icon:""},{align_lable:"row",align_value:"row",align_icon:""},{align_lable:"reverse",align_value:"reverse",align_icon:""}]},c=()=>{const e=new Date,t=`${e.getFullYear()}${e.getMonth()}${e.getDate()}${e.getHours()}${e.getMinutes()}${e.getSeconds()}`,a=parseInt(t,10)%1e4;return String(a).padStart(4,"0")},[d,m]=(0,l.useState)(wdkitData.WDKIT_URL),[p,u]=(0,l.useState)(wdkitData.WDKIT_URL),[w,g]=(0,l.useState)(""),[C,v]=(0,l.useState)(""),[b,h]=(0,l.useState)(""),[_,k]=(0,l.useState)(""),[E,f]=(0,l.useState)("eicon-code"),[y,N]=(0,l.useState)(""),[$,L]=(0,l.useState)(t?.BuilderArray[0]?t?.BuilderArray[0]:""),[x,H]=(0,l.useState)(!0),[M,V]=(0,l.useState)(""),[D,S]=(0,l.useState)(""),[Z,R]=(0,l.useState)(t?.widgetdata?.WcardData?.widgetdata?.widget_version),[B,T]=(0,l.useState)(t.quickeditName),[O,j]=(0,l.useState)([""]),[A,P]=(0,l.useState)(!1),[W,I]=(0,l.useState)("duplicate"),[F,q]=(0,l.useState)(""),[U,K]=(0,l.useState)(""),[J,z]=(0,l.useState)(!1);let Y=n();const X=(0,l.useRef)("");(0,l.useEffect)((()=>{"server"==t.quickediteditMeta?V("plugin_server"):V("plugin")}),[t.quickediteditMeta]);const Q=async e=>{if(!b)return document.querySelector(".dropFileErrorMessage").style.display="block",void(document.querySelector(".dropFileErrorMessage").style.color="red");P(!0),t.StartLoading();var a=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";if((document.querySelector(".dropFileErrorMessage").style.display="block")&&(document.querySelector(".dropFileErrorMessage").style.display="none"),a){var l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("type","wkit_import_widget"),l.append("zipName",b),await s().post(ajaxurl,l,{headers:{"content-type":"application/json"}}).then((e=>{e?.data?.success?((async e=>{if(e){let n=JSON.stringify(e.Editor_data.html),i=JSON.stringify(e.Editor_data.js),s=JSON.stringify(e.Editor_data.css),r=e.widget_data.widgetdata.widget_id,o=e.widget_data.widgetdata.name+"_"+r,c=Object.assign({},e.widget_data.widgetdata,{allow_push:!1}),d=Object.assign({},e.widget_data,{widgetdata:c});var a={CardItems:{cardData:e.section_data},WcardData:d,Editor_data:e.Editor_Link,Editor_code:{Editor_codes:[e.Editor_data]}},l="";"elementor"==e.widget_data.widgetdata.type?l=await Me("import",a,n,s,i,o,"").then((async e=>e)):"gutenberg"==e.widget_data.widgetdata.type?l=Ve("import",a,n,s,i,"","").then((async e=>e)):"bricks"==e.widget_data.widgetdata.type&&(l=De("import",a,n,s,i,"","").then((async e=>e))),l&&l?.api?.success?(t.wdkit_set_toast(["Successfully Imported.","Yay! Your Widget has been successfully imported.","","success"]),await setTimeout((()=>{t.UpdateData()}),1e3)):t.UpdateData()}else t.endLoading(),t.wdkit_set_toast(["Widget import fail","Widget import fail! data not get ","","danger"])})(e?.data?.json),t.ClosePopup(),document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),t.wdkit_set_toast(["Widget imported","Widget imported Succesfully","","success"])):(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","danger"]),t.ClosePopup(),t.endLoading())})).catch((e=>console.log(e)))}P(!1)},ee=(e,a)=>{if(a)if(a?.size&&Number(a?.size)/1e6>1)e.preventDefault(),t.wdkit_set_toast(["Insert valid Image","Image size must be less tahn 2 mb.","","danger"]);else{e.preventDefault();let l=e.target.closest(".wb-drop-file"),n=a.type.split("/");n.includes("png")||n.includes("jpg")||n.includes("jpeg")?a&&l&&(l.style.backgroundImage="url("+window.URL.createObjectURL(a)+")",k(a)):t.wdkit_set_toast(["Insert valid Image",'only ".png", ".jpg", ".jpeg" images are allowed.',"","danger"])}},te=e=>""==e.target.value?(e.target.style.border="1px solid red",H(!0),!0):/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(e.target.value)&&e.target.value.length<=25&&isNaN(e.target.value.charAt(0))?(e.target.style.border="",H(!0),!0):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display=""}),2e3),H(!1),!1),ae=e=>{e.target.value?/^[a-zA-Z0-9-_ ]+$/.test(e.target.value)?(e.target.style.border="",f(e.target.value)):(document.querySelector(".wb-wkit-widgetIcon-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetIcon-toolTip").style.display=""}),2e3)):f("")},le=e=>e.charAt(0).toUpperCase()+e.slice(1);return(0,e.createElement)(e.Fragment,null,"remove"==t.popup&&(0,e.createElement)("div",{className:"wkit-remove-popup",id:"open-popup3"},(0,e.createElement)("div",{className:"wkit-remove-popup-content"},(0,e.createElement)("div",{className:"wkit-delete-popup-close"},(0,e.createElement)("div",{className:"wkit-close-btn",onClick:()=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"#19191B"})))),(0,e.createElement)("div",{className:"wkit-popup-header"},"Are you sure you want to delete?"),(0,e.createElement)("div",{className:"wkit-member-popup"},(0,e.createElement)("h3",{className:"wkit-heading-delete"},"Please select an option from below:"),Pe()&&"plugin"!=t.quickediteditMeta&&(0,e.createElement)("div",{className:"wkit-custom-radio-wrap"},(0,e.createElement)("label",{className:"wkit-server-heading",id:"wkit-radio1"},(0,e.createElement)("input",{type:"radio",name:"server-1",id:"wkit-radio1",checked:"plugin_server"==M,onChange:e=>{V("plugin_server")}}),"Permanently Delete "),(0,e.createElement)("span",{className:"wkit-radio-desc"},"This will remove your widget from cloud and local system both. Make sure you download it as a ZIP as then you will not be able to get access of it.")),"server"!=t.quickediteditMeta&&(0,e.createElement)("div",{className:"wkit-custom-radio-wrap"},(0,e.createElement)("label",{className:"wkit-server-heading",id:"wkit-radio2"},(0,e.createElement)("input",{type:"radio",name:"server-1",id:"wkit-radio2",checked:"plugin"==M,onChange:e=>{V("plugin")}}),"Local Delete"),(0,e.createElement)("span",{className:"wkit-radio-desc"},"This will remove your widget from your current website. If you need to use it in the future, you can simply download it again from the server.")),(0,e.createElement)("div",{className:"wkit-widget-delete-btn-position"},1==A&&(0,e.createElement)("button",{className:"wkit-template-delete wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))),0==A&&(0,e.createElement)("button",{className:"wkit-template-delete wkit-btn-class",onClick:e=>{(async e=>{P(!0);let a=t.quickeditName,l=t.widget_id,n=t.widget_server_id,i=a.replaceAll(" ","-")+"_"+l,s=t.quickediteditType,r=Pe(),o={token:r?.token,type:"remove",w_unique:l,id:n,delete_type:M,name:i,builder:s},c={type:"wkit_delete_widget",info:JSON.stringify(o)};await je(c).then((e=>{1==e?.success?t.wdkit_set_toast([e?.message,e?.description,"","success"]):t.wdkit_set_toast([e?.message,e?.description,"","danger"])})).catch((e=>console.log(e))),t.ClosePopup(),t.StartLoading(),t.UpdateData(),P(!1)})()}},(0,e.createElement)("span",null,"Yes, Delete it!")))))),"sync"==t.popup&&(0,e.createElement)("div",{className:"wkit-version-popup-outside"},(0,e.createElement)("div",{className:"wkit-wb-version-popup"},(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("div",{className:"wb-version-detail"},(0,e.createElement)("div",{className:"wkit-add-widget-header-container"},(0,e.createElement)("div",{className:"popup-header"},"Add Sync Details")),(0,e.createElement)("div",{className:"wb-version-body wb-add-widget"},(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("div",{className:"wb-version-number"},(0,e.createElement)("span",{className:"wb-version-label"},"Current Version"),(0,e.createElement)("input",{className:"wb-version-input",type:"text",defaultValue:t?.w_version?t?.w_version:"1.0.0",disabled:!0,style:{cursor:"not-allowed"}})),(0,e.createElement)("div",{className:"wb-version-details"},(0,e.createElement)("span",{className:"wb-version-label"},"Latest Version"),(0,e.createElement)("input",{className:"wb-version-input",defaultValue:t?.w_version?"":"1.0.0",type:"text",onChange:e=>{R(t?.w_version?e.target.value:"1.0.0"),t?.w_version>=e.target.value?S(`version ${e.target.value} is already available`):S("")},disabled:!t?.w_version}),(0,e.createElement)("div",{className:"wb-error-message"},D))),(0,e.createElement)("span",{className:"wb-version-label"},"Changelog"),(0,e.createElement)("div",{className:"wb-version-changes"},O.map(((t,a)=>(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("textarea",{className:"wb-version-detail-input",value:t,placeholder:"Please enter description",rows:"2",onChange:e=>{((e,t)=>{let a=[...O];a[t]=e.target.value,j(a)})(e,a)}}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",viewBox:"0 0 22 23",onClick:()=>{(e=>{let t=[...O];t.length>1?(t.splice(e,1),j(t)):1==t.length&&(t[e]="",j(t))})(a)},fill:"black"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.89978 1.92188C8.57488 1.92188 8.2633 2.05094 8.03359 2.28066L8.03358 2.28067C7.80384 2.51041 7.67478 2.82199 7.67478 3.14687V4.37187H14.3248V3.14687C14.3248 2.82204 14.1957 2.51043 13.966 2.28064C13.7363 2.05095 13.4247 1.92188 13.0998 1.92188H8.89978ZM16.0748 4.37187V3.14687C16.0748 2.3578 15.7613 1.60113 15.2034 1.04326C14.6455 0.485289 13.8887 0.17188 13.0998 0.17188H8.89978C8.11078 0.17188 7.35406 0.485298 6.79613 1.04324C6.23822 1.60115 5.92478 2.35785 5.92478 3.14687V4.37187H3.64978C3.63803 4.37187 3.62634 4.3721 3.61471 4.37256H1.55005C1.0668 4.37256 0.675049 4.76431 0.675049 5.24756C0.675049 5.73081 1.0668 6.12256 1.55005 6.12256H2.77478V19.9469C2.77478 20.7358 3.08821 21.4926 3.64617 22.0505C4.20403 22.6084 4.96072 22.9219 5.74978 22.9219H16.2498C17.0388 22.9219 17.7955 22.6084 18.3534 22.0505C18.9113 21.4926 19.2248 20.7359 19.2248 19.9469V6.12256H20.4501C20.9333 6.12256 21.3251 5.73081 21.3251 5.24756C21.3251 4.76431 20.9333 4.37256 20.4501 4.37256H18.3849C18.3732 4.3721 18.3615 4.37187 18.3498 4.37187H16.0748ZM4.52478 19.9469V6.12256H17.4748V19.9469C17.4748 20.2717 17.3457 20.5834 17.116 20.8131C16.8863 21.0428 16.5746 21.1719 16.2498 21.1719H5.74978C5.42494 21.1719 5.11333 21.0428 4.88356 20.8131L4.26572 21.4309L4.88355 20.8131C4.65385 20.5834 4.52478 20.2718 4.52478 19.9469ZM11.8751 10.4971C11.8751 10.0139 11.4833 9.6221 11.0001 9.6221C10.5169 9.6221 10.1251 10.0139 10.1251 10.4971V16.7971C10.1251 17.2803 10.5169 17.6721 11.0001 17.6721C11.4833 17.6721 11.8751 17.2803 11.8751 16.7971V10.4971Z"})))))),(0,e.createElement)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[...O];e.push(""),j(e)})()}},(0,e.createElement)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 0.546875H5.5V6.04688H0V7.04688H5.5V12.5469H6.5V7.04688H12V6.04688H6.5V0.546875Z",fill:"#040483"})),(0,e.createElement)("label",null,"Add more")),(0,e.createElement)("div",{className:"wb-add-widget-footer"},(0,e.createElement)("div",{className:"wb-add-widget-cancelBtn"},(0,e.createElement)("button",{onClick:e=>{t.ClosePopup()}}," Cancel ")),1==A&&(0,e.createElement)("button",{className:"wb-version-popup-btn wb-addss-widget-updateBtn wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))),0==A&&(0,e.createElement)("button",{className:t?.w_version<Z||!t?.w_version?"wb-add-widget-link wkit-btn-class":"wb-addss-widget-updateBtn wkit-btn-class",style:{cursor:t?.w_version<Z||!t?.w_version?"":"no-drop"},disabled:!(t?.w_version<Z||!t?.w_version),onClick:e=>{(async()=>{P(!0);let e=t.quickeditName+"_"+t.widget_id,a=t.quickediteditType,l=e.replaceAll(" ","-"),n=e.replaceAll(" ","_"),i=Z||"1.0.0",s=`${wdkitData.WDKIT_SERVER_PATH}/${a}/${l}/${n}.json`,r=await fetch(s).then((e=>e.json())).then((e=>e));if(i&&r){var o=Object.assign({},r.widget_data.widgetdata,{widget_version:i,version_detail:O});let e=JSON.stringify(r.Editor_data.html),l=JSON.stringify(r.Editor_data.js),n=JSON.stringify(r.Editor_data.css),s={CardItems:{cardData:r.section_data},WcardData:{widgetdata:o},Editor_data:{links:r.Editor_Link.links},Editor_code:{Editor_codes:r.Editor_data}};if("elementor"==a)var c=await Me("sync",s,e,n,l,void 0,"").then((e=>e));else"gutenberg"==a?c=await Ve("sync",s,e,n,l,void 0,"").then((e=>e)):"bricks"==a&&(c=await De("sync",s,e,n,l,void 0,"").then((e=>e)));1==c?.ajax?.data?.success?(t.wdkit_set_toast(["Widget synced","Widget synced","","success"]),t.ClosePopup()):(t.wdkit_set_toast(["Operation fail","Something went wrong","","danger"]),S(c?.ajax?.data?.message))}t.StartLoading(),t.UpdateData(),P(!1)})()}},(0,e.createElement)("span",null,"Update"))))))),"duplicate-widget"==t.popup&&(0,e.createElement)("div",{className:"wkit-version-popup-outside"},(0,e.createElement)("div",{className:"wkit-wb-version-popup"},(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("div",{className:"wb-version-detail"},(0,e.createElement)("div",{className:"wkit-add-widget-header-container"},(0,e.createElement)("div",{className:"wb-version-header"},(0,e.createElement)("label",null,"Duplicate Widget"))),"duplicate"==W&&(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("div",{className:"wb-version-number"},(0,e.createElement)("div",{className:"wb-add-widget-name-title"},(0,e.createElement)("span",{className:"wb-version-label"},"Enter New Widget Name"),(0,e.createElement)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:p+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-8px"}}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip"},"Only numbers and alphabet are allowed for this field, Widget name must be smaller then 25 charaters and first letter can't be digit."))),(0,e.createElement)("input",{className:"wb-version-input",type:"text",placeholder:"Enter Widget Name",value:B,onChange:e=>{te(e)&&T(e.target.value)}}))),(0,e.createElement)("div",{className:"wb-quickedit-footer"},1==A&&(0,e.createElement)("button",{className:"wb-version-popup-btn wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))),0==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-quickedit-note"},(0,e.createElement)("span",null,(0,e.createElement)("b",null,"Note :")," This new widget will have unique class, So It will work independently from previous widget.")),(0,e.createElement)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!B,onClick:()=>{(async()=>{t.StartLoading(!0),P(!0);let e=t.quickeditName,a=t.quickediteditType,l=t.widget_id,i=e.replaceAll(" ","-")+"_"+l,s=e.replaceAll(" ","_")+"_"+l,r=n();K(r);let o=`${wdkitData.WDKIT_SERVER_PATH}/${a}/${i}/${s}.json?v=${c()}`,d=await fetch(o).then((e=>e.json())).then((e=>e));if(d){let e=d?.Editor_data?.html?JSON.stringify(d.Editor_data.html):JSON.stringify(""),a=d?.Editor_data?.js?JSON.stringify(d.Editor_data.js):JSON.stringify(""),l=d?.Editor_data?.css?JSON.stringify(d.Editor_data.css):JSON.stringify(""),n=Object.assign({},d.widget_data.widgetdata,{name:B,r_id:0,widget_id:r,widget_version:"",version_detail:[""],allow_push:!0}),i=Object.assign({},d.widget_data,{widgetdata:n});var m={CardItems:{cardData:d.section_data},WcardData:i,Editor_data:d.Editor_Link,Editor_code:{Editor_codes:[d.Editor_data]}};"elementor"==d.widget_data.widgetdata.type?await Me("import",m,e,l,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast(["Widget Duplicated","Widget Duplicated successfully.","","success"]),await t.UpdateData(),P(!1)):P(!1)})):"gutenberg"==d.widget_data.widgetdata.type?await Ve("import",m,e,l,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast(["Widget Duplicated","Widget Duplicated successfully.","","success"]),await t.UpdateData(),P(!1)):P(!1)})):"bricks"==d.widget_data.widgetdata.type&&await De("import",m,e,l,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast(["Widget Duplicated","Widget Duplicated successfully.","","success"]),await t.UpdateData(),P(!1)):P(!1)}))}})(),I("success_duplicate")}},(0,e.createElement)("span",null,"Duplicate"))))),"success_duplicate"==W&&(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("div",{className:"wkit-success-duplicate-content"},(0,e.createElement)("div",{className:"wkit-duplicate-widget-image"},(0,e.createElement)("img",{src:t.widget_image})),(0,e.createElement)("div",{className:"wkit-duplicate-success-content"},1==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-duplicate-progress"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{animation:"spin 1.5s linear infinite"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M4.73318 20.7144C6.14668 20.7144 7.29254 19.5686 7.29254 18.1551C7.29254 16.7416 6.14668 15.5957 4.73318 15.5957C3.31969 15.5957 2.17383 16.7416 2.17383 18.1551C2.17383 19.5686 3.31969 20.7144 4.73318 20.7144Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M21.1998 18.4446C22.4266 18.4446 23.4212 17.4501 23.4212 16.2233C23.4212 14.9965 22.4266 14.002 21.1998 14.002C19.973 14.002 18.9785 14.9965 18.9785 16.2233C18.9785 17.4501 19.973 18.4446 21.1998 18.4446Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M19.1709 7.24619C20.1844 7.24619 21.006 6.42463 21.006 5.41118C21.006 4.39773 20.1844 3.57617 19.1709 3.57617C18.1575 3.57617 17.3359 4.39773 17.3359 5.41118C17.3359 6.42463 18.1575 7.24619 19.1709 7.24619Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M2.71606 14.4677C4.21609 14.4677 5.43211 13.2813 5.43211 11.8178C5.43211 10.3543 4.21609 9.16797 2.71606 9.16797C1.21602 9.16797 0 10.3543 0 11.8178C0 13.2813 1.21602 14.4677 2.71606 14.4677Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M10.518 23.9976C11.8817 23.9976 12.9871 22.9204 12.9871 21.5916C12.9871 20.2628 11.8817 19.1855 10.518 19.1855C9.1543 19.1855 8.04883 20.2628 8.04883 21.5916C8.04883 22.9204 9.1543 23.9976 10.518 23.9976Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M16.8652 22.9429C18.1607 22.9429 19.2109 21.9204 19.2109 20.659C19.2109 19.3976 18.1607 18.375 16.8652 18.375C15.5697 18.375 14.5195 19.3976 14.5195 20.659C14.5195 21.9204 15.5697 22.9429 16.8652 22.9429Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M5.65394 8.31486C7.22214 8.31486 8.49342 7.07393 8.49342 5.54317C8.49342 4.01241 7.22214 2.77148 5.65394 2.77148C4.08573 2.77148 2.81445 4.01241 2.81445 5.54317C2.81445 7.07393 4.08573 8.31486 5.65394 8.31486Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M21.9015 12.5103C23.0606 12.5103 24.0003 11.5881 24.0003 10.4505C24.0003 9.31285 23.0606 8.39062 21.9015 8.39062C20.7424 8.39062 19.8027 9.31285 19.8027 10.4505C19.8027 11.5881 20.7424 12.5103 21.9015 12.5103Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M12.701 5.98793C14.3545 5.98793 15.695 4.64748 15.695 2.99396C15.695 1.34044 14.3545 0 12.701 0C11.0475 0 9.70703 1.34044 9.70703 2.99396C9.70703 4.64748 11.0475 5.98793 12.701 5.98793Z",fill:"#040483"})),(0,e.createElement)("span",null,"In Progress")),(0,e.createElement)("div",{className:"wkit-duplicate-widget-name"},(0,e.createElement)("div",{className:"wkit-duplicate-widget-oldName"},t.quickeditName),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"6",viewBox:"0 0 40 6",fill:"none"},(0,e.createElement)("path",{d:"M40 3L35 0.113249V5.88675L40 3ZM0 3.5H35.5V2.5H0V3.5Z",fill:"#040483"})),(0,e.createElement)("div",{className:"wkit-duplicate-widget-NewName"},B)),(0,e.createElement)("div",{className:"wkit-duplicate-widget-details"},"Transferring all your HTML,CSS and JS to New one")),0==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",{className:"wkit-duplicate-congratularions"},"Congratulations! ",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M12.0437 18.8299C11.2209 19.1329 10.1762 19.5169 8.85467 20.0067C6.59792 19.6917 4.22642 18.9574 3.20117 17.2722C3.57467 16.2664 3.90017 15.3852 4.18817 14.6074C6.12017 16.8394 9.49592 18.2569 12.0437 18.8299Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M12.6979 11.3027C10.5019 9.10744 7.67437 7.48594 6.52162 8.64094C6.27562 8.88694 6.34987 8.73994 4.64062 13.3787C6.46312 16.0089 11.0681 17.8457 14.2759 18.0069C15.2351 17.6462 15.2126 17.6282 15.3604 17.4797C16.7741 16.0659 14.1109 12.7149 12.6979 11.3027ZM14.5639 16.6832C14.4566 16.7919 13.9579 16.7972 13.0721 16.3599C12.1091 15.8837 11.0104 15.0534 9.97837 14.0214C7.58738 11.6304 7.02862 9.72394 7.31662 9.43594C7.36162 9.39094 7.44562 9.36694 7.56487 9.36694C8.21062 9.36694 9.88388 10.0802 11.9029 12.0984C12.9349 13.1304 13.7659 14.2292 14.2421 15.1922C14.6794 16.0764 14.6719 16.5759 14.5639 16.6832Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M6.79345 20.7708C5.49445 21.2538 3.9967 21.8133 2.25745 22.465C1.8052 22.6315 1.3672 22.192 1.53445 21.742C1.97245 20.569 2.3677 19.5085 2.7277 18.541C3.7162 19.6765 5.2027 20.365 6.79345 20.7708Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M14.7526 2.92042C14.4024 2.98192 14.0641 3.03742 13.8346 3.15292C14.1796 3.68242 14.9004 4.35667 14.4601 5.23717C14.0664 6.02467 13.2481 5.97817 12.5379 6.00292C12.9736 6.59842 13.4776 7.20217 13.0891 7.97992C12.6864 8.78617 11.6304 8.95342 11.0071 9.05467C10.8054 9.08767 10.6179 8.95267 10.5804 8.75242L10.4439 8.01592C10.4056 7.81117 10.5436 7.61392 10.7484 7.57792C11.1031 7.51567 11.4354 7.46167 11.6664 7.34542C11.3199 6.81967 10.6021 6.13867 11.0401 5.26192C11.4331 4.47667 12.2506 4.52092 12.9624 4.49617C12.5259 3.90067 12.0226 3.29692 12.4111 2.51917C12.8139 1.71367 13.8706 1.54567 14.4924 1.44442C14.6941 1.41142 14.8816 1.54642 14.9184 1.74667L15.0549 2.48317C15.0946 2.68792 14.9581 2.88442 14.7526 2.92042Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M21.5159 8.9437L22.2524 9.0802C22.4534 9.1177 22.5877 9.3052 22.5547 9.5062C22.4534 10.128 22.2854 11.1847 21.4799 11.5875C20.7022 11.976 20.0984 11.4727 19.5029 11.0362C19.4782 11.748 19.5224 12.5662 18.7372 12.9585C17.8604 13.3965 17.1794 12.6787 16.6537 12.3322C16.5374 12.5632 16.4834 12.8955 16.4212 13.2502C16.3852 13.4557 16.1879 13.593 15.9832 13.5547L15.2467 13.4182C15.0457 13.3807 14.9114 13.1932 14.9444 12.9915C15.0457 12.369 15.2137 11.313 16.0192 10.9095C16.7962 10.521 17.4007 11.025 17.9962 11.4607C18.0209 10.7505 17.9744 9.93145 18.7619 9.53845C19.6424 9.0982 20.3167 9.81895 20.8462 10.164C20.9617 9.93445 21.0172 9.5962 21.0787 9.24595C21.1139 9.0427 21.3104 8.9062 21.5159 8.9437Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M19.275 15.75H17.85C17.7255 15.75 17.625 15.6495 17.625 15.525V14.85C17.625 14.7255 17.7255 14.625 17.85 14.625H19.275C19.3995 14.625 19.5 14.7255 19.5 14.85V15.525C19.5 15.6495 19.3995 15.75 19.275 15.75Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M20.8415 2.45531L19.8335 3.46331C19.7457 3.55106 19.6032 3.55106 19.5155 3.46331L19.0385 2.98556C18.9507 2.89781 18.9507 2.75531 19.0385 2.66756L20.0465 1.65956C20.1342 1.57181 20.2767 1.57181 20.3645 1.65956L20.8415 2.13656C20.9292 2.22431 20.9292 2.36681 20.8415 2.45531Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M9.15 4.875H8.475C8.3505 4.875 8.25 4.7745 8.25 4.65V3.225C8.25 3.1005 8.3505 3 8.475 3H9.15C9.2745 3 9.375 3.1005 9.375 3.225V4.65C9.375 4.7745 9.2745 4.875 9.15 4.875Z",fill:"#00A31B"}),(0,e.createElement)("path",{d:"M14.537 9.9415L13.9745 9.5665C13.8688 9.496 13.838 9.3535 13.9108 9.24925C15.4415 7.07125 18.3928 4.801 21.515 4.6915C21.6433 4.68775 21.7498 4.79425 21.7498 4.92175V5.5975C21.7498 5.7175 21.6553 5.81125 21.5353 5.8165C18.923 5.92 16.247 7.88725 14.8393 9.8845C14.7695 9.98425 14.6375 10.009 14.537 9.9415Z",fill:"#00A31B"}))),(0,e.createElement)("span",{className:"wkit-duplicate-success-msg"},"Congratulations! New Widget ",(0,e.createElement)("b",null,B)," created from Widget ",(0,e.createElement)("b",null,t.quickeditName)," Successfully!"),(0,e.createElement)(he,{to:"/widget-listing/builder/"+B+"_"+U,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",{className:"wb-convert-popup-btn wkit-btn-class"},(0,e.createElement)("span",null,"Edit ",B)))))))))),"convert-widget"==t.popup&&(0,e.createElement)("div",{className:"wkit-version-popup-outside"},(0,e.createElement)("div",{className:"wkit-wb-version-popup"},(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("div",{className:"wb-version-detail"},(0,e.createElement)("div",{className:"wkit-add-widget-header-container"},(0,e.createElement)("div",{className:"wb-version-header"},(0,e.createElement)("label",null,"Convert Widget"))),"duplicate"==W&&(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("span",{className:"wb-convert-title"},B),(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("div",{className:"wb-convert-main"},(0,e.createElement)("div",{className:"wb-convert-widget-group"},(0,e.createElement)("span",{className:"wb-convert-label"},"Current Widget"),(0,e.createElement)("span",{className:"wkit-select-builder-wrap"},(0,e.createElement)("img",{style:{width:"24px"},src:d+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,e.createElement)("label",null,le(t?.quickediteditType)))),(0,e.createElement)("div",{className:"wb-convert-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},(0,e.createElement)("path",{d:"M2.56465 10.5233C2.43348 10.2066 2.50598 9.84216 2.74828 9.59981L6.60371 5.74438C6.93477 5.41333 7.47121 5.41333 7.80223 5.74438C8.13316 6.07524 8.13316 6.61188 7.80223 6.94274L5.39344 9.35153H21.6525C22.1205 9.35153 22.5 9.73091 22.5 10.199C22.5 10.6671 22.1205 11.0465 21.6525 11.0465H3.34754C3.00477 11.0465 2.69582 10.8399 2.56465 10.5233ZM21.6525 12.9533H3.34746C2.87945 12.9533 2.5 13.3326 2.5 13.8007C2.5 14.2688 2.87945 14.6482 3.34746 14.6482H19.6066L17.1977 17.057C16.8668 17.3878 16.8668 17.9245 17.1977 18.2553C17.3632 18.4208 17.58 18.5036 17.797 18.5036C18.0138 18.5036 18.2307 18.4208 18.3962 18.2553L22.2517 14.3999C22.494 14.1576 22.5665 13.7931 22.4354 13.4765C22.3042 13.1598 21.9952 12.9533 21.6525 12.9533Z",fill:"black"}))),(0,e.createElement)("div",{className:"wb-convert-widget-group"},(0,e.createElement)("span",{className:"wb-convert-label"},"Convert to"),(0,e.createElement)("div",{className:"wkit-select-builder-inner-wrap wkit-custom-dropDown",onClick:e=>{(e=>{let t=e.target.closest(".wkit-custom-dropDown"),a=t.querySelector(".wkit-custom-dropDown-content")?t.querySelector(".wkit-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-show")?a.classList.remove("wkit-show"):a.classList.add("wkit-show"))})(e)}},(0,e.createElement)("div",{className:"wkit-custom-dropDown-header"},(0,e.createElement)("div",{className:"wkit-selected-builder"},F&&(0,e.createElement)("img",{style:{width:"24px"},src:d+`/assets/images/wb-svg/${F}.svg`}),(0,e.createElement)("label",null,F||Sl("Select Builder"))),(0,e.createElement)("img",{src:d+"assets/images/wb-svg/controller-open.svg",alt:"Controller Open"})),(0,e.createElement)("div",{className:"wkit-custom-dropDown-content"},["elementor","gutenberg","bricks"].map(((a,l)=>(0,e.createElement)(e.Fragment,{key:l},a!=t?.quickediteditType&&a!=F&&(0,e.createElement)("div",{key:a,className:"wkit-custom-dropDown-options",onClick:()=>{q(a),f(i[a].defaultValue)}},(0,e.createElement)("img",{style:{width:"24px"},src:d+`/assets/images/wb-svg/${a}.svg`}),(0,e.createElement)("label",null,le(a))))))))))),(0,e.createElement)("div",{className:"wb-quickedit-footer"},1==A&&(0,e.createElement)("button",{className:"wb-version-popup-btn wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))),0==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-quickedit-note"},(0,e.createElement)("span",null,(0,e.createElement)("b",null,"Note :")," This new widget will have have unique class, So It will work independently from previous widget.")),(0,e.createElement)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:""==F,onClick:()=>{I("widget_infomation")}},(0,e.createElement)("span",null,"Next"))))),"widget_infomation"==W&&(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("div",{className:"wkit-success-duplicate-content"},(0,e.createElement)("div",{className:"wb-convert-widget-group"},(0,e.createElement)("div",{className:"wb-add-widget-name-title"},(0,e.createElement)("span",{className:"wb-version-label"},"Widget Name"),(0,e.createElement)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:p+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-9px"}}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip"},"Only numbers and alphabet are allowed for this field, Widget name must be smaller then 25 charaters and first letter can't be digit."))),(0,e.createElement)("input",{className:"wb-convert-input-text",type:"text",placeholder:`${t.quickeditName} - Copy`,value:B,onChange:e=>{te(e)&&T(e.target.value)}})),(0,e.createElement)("div",{className:"wb-convert-widget-main"},(0,e.createElement)("div",{className:"wb-add-widget-image-content"},(0,e.createElement)("label",{className:"wb-version-label"},"Featured Image"),(0,e.createElement)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{ee(e,e.dataTransfer.files[0])},onClick:()=>{document.querySelector("#wb-addwidget-img").click()},style:{backgroundImage:`url('${t.widget_image}')`}},(0,e.createElement)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{ee(e,e.target.files[0])},accept:"image/*"}))),(0,e.createElement)("div",{className:"wb-icon-convert-select"},(0,e.createElement)("label",{className:"wb-version-label"},"Widget Icon"),(0,e.createElement)("div",{className:"wb-eicons-content"},(0,e.createElement)("div",{className:"wb-eicons-val"},(0,e.createElement)("input",{className:"wb-eicons-inp",value:E,type:"text",placeholder:"Enter Icon code from below links (e.g. eicon-code)",onChange:e=>{ae(e)}})),(0,e.createElement)("div",{className:"wb-eicons-links"},(0,e.createElement)("div",{className:"wb-eicons-links-heading"},(0,e.createElement)("span",null,"Copy Icon Name From Below Libraries and Paste Above.")),(0,e.createElement)("div",{className:"wb-eicons-links-content"},i[F].links.map(((t,a)=>(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("a",{className:"wb-eicons-lable",target:"blank",rel:"noopener noreferrer",href:t.href,style:{color:"#040483"}},t.label),a<i[F].links.length-1&&(0,e.createElement)("hr",{className:"wb-eicons-hr",style:{borderColor:"#040483"}})))))))))),"elementor"!==F&&(0,e.createElement)("div",{className:"wkit-switch-convert-wrap"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-convert-input",checked:J,onChange:e=>{z(e.target.checked)}}),(0,e.createElement)("span",null,"Do you want to load jQuery ?")),(0,e.createElement)("div",{className:"wb-quickedit-footer"},0==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-quickedit-note"},(0,e.createElement)("span",null,(0,e.createElement)("b",null,"Note :")," This new widget will have have unique class, So It will work independently from previous widget.")),(0,e.createElement)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!B,onClick:()=>{(async e=>{t.StartLoading(!0),P(!0);let a=t.quickeditName,l=t.quickediteditType,i=t.widget_id,s=a.replaceAll(" ","-")+"_"+i,d=a.replaceAll(" ","_")+"_"+i,m=`${wdkitData.WDKIT_SERVER_PATH}/${l}/${s}/${d}.json?v=${c()}`,p=t?.quickediteditType,u=await fetch(m).then((e=>e.json())).then((e=>e));const w=(t,a)=>{let l=[];return t?.length>0&&t.map(((t,i)=>{if("bricks"===e&&(void 0!==t?.selectors&&t?.selectors?.search("{{WRAPPER}}")>-1?t.selectors=t.selectors.replaceAll("{{WRAPPER}}",""):void 0!==t?.selector&&t?.selector?.search("{{WRAPPER}}")>-1&&(t.selector=t.selector.replaceAll("{{WRAPPER}}",""))),"repeater"!=t.type&&"popover"!=t.type&&"normalhover"!=t.type||"bricks"==e)if("bricks"==e&&"popover"==t.type){l.push(g());let e=Dl?.heading?Dl.heading:"";e=Object.assign({},e,{lable:t.lable,name:e.name+n()}),l.push(e),t?.fields?.length>0&&t?.fields.map((e=>{l.push(e)})),l.push(g())}else if("bricks"==e&&"normalhover"==t.type){var s={};t?.nha_array?.length>0&&t?.nha_array.map((e=>{s=Object.assign({},s,{[e]:[]})})),t?.fields?.length>0&&t?.fields.map((e=>{s?.[e.key]&&s[e.key].push(e)})),l.push(g()),Object.values(s).map(((e,a)=>{let i=Dl?.heading?Dl.heading:"";if(t?.nha_array_lable?.[a])var s=t.nha_array_lable[a];else{let e=t.nha_array[a];s=e?.charAt(0).toUpperCase()+e?.slice(1)}i=Object.assign({},i,{lable:s,name:i.name+n()}),l.push(i),e?.length>0&&e.map((e=>{l.push(e)})),l.push(g())}))}else if("bricks"==e&&"choose"==t.type){let a=r?.[e]?.info?.[t.type]?r[e].info[t.type]:"";if(c=Dl?.[a]?Dl[a]:""){let e=Object.keys(c);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e?c=Object.assign({},c,{[e]:t[e]}):"alignType"==e&&(c=Object.assign({},c,{alignType:t.selector_value.toLowerCase()}))})),l.push(c)}}else if("bricks"==e&&"dimension"==t.type)if("border-radius"===t.selector_value){let e="heading";(c=Dl?.[e]?Dl[e]:"")&&(c=Object.assign({},c,{lable:"Border-radius is now available in the border controller, so we removed it from the dimension controller."})),l.push(c)}else l.push(t);else if("elementor"!==e&&"gutenberg"!==e||"border"!==t.type||"bricks"!==p)if("elementor"!==e&&"gutenberg"!==e||"align"!==t.type)if(r?.[e]?.array?.length>0&&r?.[e]?.array.includes(t.type)){let a=r?.[e]?.info?.[t.type]?r[e].info[t.type]:"";if(c=Dl?.[a]?Dl[a]:""){let e=Object.keys(c);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e&&(c=Object.assign({},c,{[e]:t[e]}))})),l.push(c)}}else if("bricks"==e&&"repeater"==t.type){c=Object.assign({},t);let e=[];c?.fields?.length>0&&c?.fields.map((t=>{t?.selector&&t?.selector.includes("{{CURRENT_ITEM}}")&&(t.selector=t.selector.replace("{{CURRENT_ITEM}}","").trim()),t?.selectors&&t?.selectors.includes("{{CURRENT_ITEM}}")&&(t.selectors=t.selectors.replace("{{CURRENT_ITEM}}","").trim()),t?.selector&&t?.selector.includes("{{TP_REPEAT_ID}}")&&(t.selector=t.selector.replace("{{TP_REPEAT_ID}}","").trim()),t?.selectors&&t?.selectors.includes("{{TP_REPEAT_ID}}")&&(t.selectors=t.selectors.replace("{{TP_REPEAT_ID}}","").trim()),e.push(t)})),c=Object.assign({},c,{fields:e}),l.push(c)}else l.push(t);else{let a=r?.[e]?.info?.[t.type]?r[e].info[t.type]:"";if(c=Dl?.[a]?Dl[a]:""){let e=Object.keys(c);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e?c=Object.assign({},c,{[e]:t[e]}):("selector_value"===e&&(c=Object.assign({},c,{selector_value:t.alignType.toLowerCase()})),"align_option"===e&&(c=Object.assign({},c,{align_option:o[t.alignType]})))})),l.push(c)}}else(c=Dl?.dimension?Dl.dimension:"")&&(l.push(t),c=Object.assign({},c,{lable:t.lable+" (Radius)",selector_value:"border-radius",selectors:t.selector}),l.push(c));else if(t.fields.length>0){let e=w(t.fields,a),n=Object.assign({},t,{fields:e});l.push(n)}if("bricks"==e){var c=Object.assign({},t);t?.condition_value?.values.length>0&&t?.condition_value?.values.map((e=>{a.includes(e.name)&&null!=e.value&&(e.value=!0)})),"repeater"==t.type&&t?.fields.length>0&&t?.fields.map((e=>{e?.condition_value?.values.length>0&&e?.condition_value?.values.map((e=>{a.includes(e.name)&&null!=e.value&&(e.value=!0)}))}))}})),l},g=()=>{let e=Dl?.divider?Dl.divider:"";return e=Object.assign({},e,{lable:"",name:e.name+n()}),e};if(u){let a=(e=>{var t=e?.section_data[0].layout;let a=e?.section_data[0].style,l=[],n=[],i=[];return t.length>0&&t.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&i.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&i.push(e.name)}))}))})),a.length>0&&a.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&i.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&i.push(e.name)}))}))})),t?.length>0&&t.map(((e,t)=>{var a=e;let n=w(e.inner_sec,i)?w(e.inner_sec,i):[];a=Object.assign({},a,{inner_sec:n}),l.push(a)})),a?.length>0&&a.map(((e,t)=>{var a=e;let l=w(e.inner_sec,i)?w(e.inner_sec,i):[];a=Object.assign({},a,{inner_sec:l}),n.push(a)})),[{layout:l,style:n}]})(u),l=u?.Editor_data?.html?JSON.stringify(u.Editor_data.html):JSON.stringify(""),i=u?.Editor_data?.js?JSON.stringify(u.Editor_data.js):JSON.stringify(""),s=u?.Editor_data?.css?JSON.stringify(u.Editor_data.css):JSON.stringify(""),r=n();K(r);let o=Object.assign({},u.widget_data.widgetdata,{name:B,r_id:0,widget_id:r,w_icon:E,type:e,widget_version:"",version_detail:[""],allow_push:!0}),c=Object.assign({},u.widget_data,{widgetdata:o});var C=u.Editor_Link?.links?.[0]?.external_cdn?[...u.Editor_Link.links[0].external_cdn]:[];J&&(C.includes("jQuery")||C.push("jQuery"));let d=Object.assign({},u.Editor_Link.links[0],{external_cdn:C});var v={CardItems:{cardData:a},WcardData:c,Editor_data:Object.assign({},u.Editor_data,{links:[d]}),Editor_code:{Editor_codes:[u.Editor_data]}};if("elementor"==e)if(_)var b=await Me("import",v,l,s,i,"","",_).then((async e=>e));else b=await Me("import",v,l,s,i,"","",u?.widget_data?.widgetdata?.w_image).then((async e=>e));else"gutenberg"==e?b=_?await Ve("import",v,l,s,i,"",_,"",J).then((async e=>e)):await Ve("import",v,l,s,i,"","",u?.widget_data?.widgetdata?.w_image,J).then((async e=>e)):"bricks"==e&&(b=_?await De("import",v,l,s,i,"",_,"").then((async e=>e)):await De("import",v,l,s,i,"","",u?.widget_data?.widgetdata?.w_image).then((async e=>e)));b?.api?.success?(P(!1),t.wdkit_set_toast(["Widget Converted","Widget Converted successfully.","","success"]),await t.UpdateData()):(P(!1),t.wdkit_set_toast(["Widget Conversion Fail!","Widget not Converted successfully.","","danger"]))}})(F),I("success_duplicate")}},(0,e.createElement)("span",null,"Convert"))))),"success_duplicate"==W&&(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("div",{className:"wkit-success-duplicate-content"},(0,e.createElement)("span",{className:"wb-convert-title"},B),(0,e.createElement)("div",{className:"wkit-duplicate-success-content"},1==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-duplicate-widget-image"},(0,e.createElement)("img",{src:_?window.URL.createObjectURL(_):t.widget_image})),(0,e.createElement)("div",{className:"wkit-duplicate-progress"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{animation:"spin 1.5s linear infinite"},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M4.73318 20.7144C6.14668 20.7144 7.29254 19.5686 7.29254 18.1551C7.29254 16.7416 6.14668 15.5957 4.73318 15.5957C3.31969 15.5957 2.17383 16.7416 2.17383 18.1551C2.17383 19.5686 3.31969 20.7144 4.73318 20.7144Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M21.1998 18.4446C22.4266 18.4446 23.4212 17.4501 23.4212 16.2233C23.4212 14.9965 22.4266 14.002 21.1998 14.002C19.973 14.002 18.9785 14.9965 18.9785 16.2233C18.9785 17.4501 19.973 18.4446 21.1998 18.4446Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M19.1709 7.24619C20.1844 7.24619 21.006 6.42463 21.006 5.41118C21.006 4.39773 20.1844 3.57617 19.1709 3.57617C18.1575 3.57617 17.3359 4.39773 17.3359 5.41118C17.3359 6.42463 18.1575 7.24619 19.1709 7.24619Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M2.71606 14.4677C4.21609 14.4677 5.43211 13.2813 5.43211 11.8178C5.43211 10.3543 4.21609 9.16797 2.71606 9.16797C1.21602 9.16797 0 10.3543 0 11.8178C0 13.2813 1.21602 14.4677 2.71606 14.4677Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M10.518 23.9976C11.8817 23.9976 12.9871 22.9204 12.9871 21.5916C12.9871 20.2628 11.8817 19.1855 10.518 19.1855C9.1543 19.1855 8.04883 20.2628 8.04883 21.5916C8.04883 22.9204 9.1543 23.9976 10.518 23.9976Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M16.8652 22.9429C18.1607 22.9429 19.2109 21.9204 19.2109 20.659C19.2109 19.3976 18.1607 18.375 16.8652 18.375C15.5697 18.375 14.5195 19.3976 14.5195 20.659C14.5195 21.9204 15.5697 22.9429 16.8652 22.9429Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M5.65394 8.31486C7.22214 8.31486 8.49342 7.07393 8.49342 5.54317C8.49342 4.01241 7.22214 2.77148 5.65394 2.77148C4.08573 2.77148 2.81445 4.01241 2.81445 5.54317C2.81445 7.07393 4.08573 8.31486 5.65394 8.31486Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M21.9015 12.5103C23.0606 12.5103 24.0003 11.5881 24.0003 10.4505C24.0003 9.31285 23.0606 8.39062 21.9015 8.39062C20.7424 8.39062 19.8027 9.31285 19.8027 10.4505C19.8027 11.5881 20.7424 12.5103 21.9015 12.5103Z",fill:"#B1B1D9"}),(0,e.createElement)("path",{d:"M12.701 5.98793C14.3545 5.98793 15.695 4.64748 15.695 2.99396C15.695 1.34044 14.3545 0 12.701 0C11.0475 0 9.70703 1.34044 9.70703 2.99396C9.70703 4.64748 11.0475 5.98793 12.701 5.98793Z",fill:"#040483"})),(0,e.createElement)("span",null," Converting ")),(0,e.createElement)("div",{className:"wb-convert-main"},(0,e.createElement)("div",{className:"wb-convert-widget-group"},(0,e.createElement)("span",{className:"wkit-select-builder-wrap"},(0,e.createElement)("img",{style:{width:"24px"},src:d+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,e.createElement)("span",{className:"wkit-convert-from-label"},le(t?.quickediteditType)))),(0,e.createElement)("div",{className:"wb-convert-icon"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none"},(0,e.createElement)("path",{d:"M2.56465 10.5233C2.43348 10.2066 2.50598 9.84216 2.74828 9.59981L6.60371 5.74438C6.93477 5.41333 7.47121 5.41333 7.80223 5.74438C8.13316 6.07524 8.13316 6.61188 7.80223 6.94274L5.39344 9.35153H21.6525C22.1205 9.35153 22.5 9.73091 22.5 10.199C22.5 10.6671 22.1205 11.0465 21.6525 11.0465H3.34754C3.00477 11.0465 2.69582 10.8399 2.56465 10.5233ZM21.6525 12.9533H3.34746C2.87945 12.9533 2.5 13.3326 2.5 13.8007C2.5 14.2688 2.87945 14.6482 3.34746 14.6482H19.6066L17.1977 17.057C16.8668 17.3878 16.8668 17.9245 17.1977 18.2553C17.3632 18.4208 17.58 18.5036 17.797 18.5036C18.0138 18.5036 18.2307 18.4208 18.3962 18.2553L22.2517 14.3999C22.494 14.1576 22.5665 13.7931 22.4354 13.4765C22.3042 13.1598 21.9952 12.9533 21.6525 12.9533Z",fill:"black"}))),(0,e.createElement)("div",{className:"wb-convert-widget-group"},(0,e.createElement)("div",{className:"wkit-select-builder-wrap"},(0,e.createElement)("img",{style:{width:"24px"},src:d+`/assets/images/wb-svg/${F}.svg`}),(0,e.createElement)("span",{className:"wkit-convert-to-label"},le(F))))),(0,e.createElement)("div",{className:"wkit-duplicate-widget-details"},"Converting your widget ",le(t?.quickediteditType)," to ",le(F)," ")),0==A&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wb-convert-widget-img-border"},(0,e.createElement)("img",{src:_?window.URL.createObjectURL(_):t.widget_image})),(0,e.createElement)("span",{className:"wkit-duplicate-congratularions"},"Successfully converted",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none"},(0,e.createElement)("rect",{y:"0.640625",width:"24",height:"24",rx:"12",fill:"#00A31B"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.25533 18.4895L3.86655 13.7922C3.2657 13.1491 3.30018 12.1316 3.94327 11.5308C4.58636 10.9299 5.60381 10.9645 6.20466 11.6075L9.58998 15.2308L14.9485 10.2241C14.9967 10.179 15.047 10.1378 15.0991 10.0998L17.619 7.74541C18.2621 7.14456 19.2796 7.17914 19.8804 7.82223C20.4813 8.46522 20.4467 9.48276 19.8037 10.0836L12.1072 17.2746L12.099 17.2658L9.43672 19.7533L8.25533 18.4895Z",fill:"white"}))),(0,e.createElement)("span",{className:"wkit-duplicate-success-msg"},"Your ",B," widget has been successfully converted to ",le(F)," Builder"),(0,e.createElement)(he,{to:"/widget-listing/builder/"+B+"_"+U,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",{className:"wb-convert-popup-btn wkit-btn-class"},(0,e.createElement)("span",null,"Edit ",B)))))))))),"add-widget"==t.popup&&(0,e.createElement)("div",{id:"popup",className:"wb-add-widget addWidget"},(0,e.createElement)("div",{className:"wkit-add-widget-header-container"},(0,e.createElement)("div",{className:"popup-header"},"Create Widget"),(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wb-popup-content wkit-wb-popoupScroll"},(0,e.createElement)("div",{className:"wb-add-widget-body"},(0,e.createElement)("div",{className:"wb-add-widget-name-warpper"},(0,e.createElement)("div",{className:"wb-add-widget-name"},(0,e.createElement)("div",{className:"wb-add-widget-name-title"},(0,e.createElement)("span",{className:"wb-add-widget-headings"},"Widget Name"),(0,e.createElement)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:p+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-5px"}}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip"},"Only numbers and alphabet are allowed for this field, Widget name must be smaller than 25 characters and first letter can't be digit."))),(0,e.createElement)("input",{type:"text",className:"wb-add-widget-nameinput",name:"wbaddwidgetname",id:"wb-add-widget-name",ref:X,value:w,placeholder:"Enter Widget Name",onChange:e=>{te(e)&&g(e.target.value)}}),(0,e.createElement)("div",{className:"wkit-name-Validation",style:{display:0==x?"flex":"none",color:"red"}},"First character of name must be an alphabet"))),(0,e.createElement)("div",{className:"wb-add-widget-image"},(0,e.createElement)("div",{className:"wb-add-widget-image-content"},(0,e.createElement)("span",{className:"wb-add-widget-imageinput wb-add-widget-headings"},"Featured Image"),(0,e.createElement)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{ee(e,e.dataTransfer.files[0])},onClick:()=>{document.querySelector("#wb-addwidget-img").click()}},(0,e.createElement)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{ee(e,e.target.files[0])},accept:"image/*"}),!_&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("img",{src:p+"/assets/images/wb-svg/file-upload.svg"}),(0,e.createElement)("span",null," Drag & Drop or Upload Image File Here ",(0,e.createElement)("br",null),"(Only .JPG and .PNG Allowed)")))),(0,e.createElement)("div",{className:"wb-add-widget-image-content"},(0,e.createElement)("div",{className:"wb-add-widget-name-title"},(0,e.createElement)("span",{className:"wb-add-widget-headings"},"Widget Icon")),(0,e.createElement)("div",{className:"wb-eicons-content"},(0,e.createElement)("div",{className:"wb-eicons-val"},(0,e.createElement)("input",{className:"wb-eicons-inp",value:E,type:"text",defaultValue:i[$].defaultValue,placeholder:"Enter Icon code from below links (e.g. eicon-code)",onChange:e=>{ae(e)}})),(0,e.createElement)("div",{className:"wb-eicons-links"},(0,e.createElement)("div",{className:"wb-eicons-links-heading"},(0,e.createElement)("span",null,"Copy Icon Name From Below Libraries and Paste Above.")),(0,e.createElement)("div",{className:"wb-eicons-links-content"},i?.[$]?.links?.length>0&&i[$].links.map(((t,a)=>(0,e.createElement)(e.Fragment,{key:a},(0,e.createElement)("a",{className:"wb-eicons-lable",target:"blank",rel:"noopener noreferrer",href:t.href},t.label),a<i[$].links.length-1&&(0,e.createElement)("hr",{className:"wb-eicons-hr"}))))))))),t.BuilderArray.length>0&&(0,e.createElement)("div",{className:"wb-select-radio-label"},(0,e.createElement)("span",{className:"wb-add-widget-headings"},"Choose Page Builder")),(0,e.createElement)("div",{className:"wb-add-widget-radio-main"},t.BuilderArray.includes("elementor")&&(0,e.createElement)("label",{htmlFor:"wb-add-elementor-radio",className:"wb-add-widget-radio "+("elementor"==$?"radio-border":"")},(0,e.createElement)("input",{type:"radio",name:"wbaddradio",id:"wb-add-elementor-radio",className:"wb-add-widget-radioinput",value:"elementor",onChange:e=>{L(e.target.value),f(i[e.target.value].defaultValue)},checked:"elementor"==$}),(0,e.createElement)("img",{src:p+"/assets/images/wb-svg/elementor.svg"}),(0,e.createElement)("label",{htmlFor:"wb-add-elementor-radio",className:"elementor"==$?"radio-color":""},"Elementor")),t.BuilderArray.includes("gutenberg")&&(0,e.createElement)("label",{htmlFor:"wb-add-gutenberg-radio",className:"wb-add-widget-radio "+("gutenberg"==$?"radio-border":"")},(0,e.createElement)("input",{type:"radio",name:"wbaddradio",id:"wb-add-gutenberg-radio",className:"wb-add-widget-radioinput",value:"gutenberg",onChange:e=>{L(e.target.value),f(i[e.target.value].defaultValue)},checked:"gutenberg"==$}),(0,e.createElement)("img",{src:p+"/assets/images/wb-svg/gutenberg.svg"}),(0,e.createElement)("label",{htmlFor:"wb-add-gutenberg-radio",className:"gutenberg"==$?"radio-color":""},"Gutenberg")),t.BuilderArray.includes("bricks")&&(0,e.createElement)("label",{htmlFor:"wb-add-bricks-radio",className:"wb-add-widget-radio "+("bricks"==$?"radio-border":"")},(0,e.createElement)("input",{type:"radio",name:"wbaddradio",id:"wb-add-bricks-radio",className:"wb-add-widget-radioinput",value:"bricks",onChange:e=>{L(e.target.value),f(i[e.target.value].defaultValue)},checked:"bricks"==$}),(0,e.createElement)("img",{src:p+"/assets/images/wb-svg/bricks.svg"}),(0,e.createElement)("label",{htmlFor:"wb-add-bricks-radio",className:"bricks"==$?"radio-color":""},"Bricks")))),(0,e.createElement)("div",{className:"wb-add-widget-footer"},(0,e.createElement)("div",{className:"wb-add-widget-cancelBtn"},(0,e.createElement)("button",{onClick:e=>{t.ClosePopup()}}," Cancel ")),w&&w.trim()?(0,e.createElement)(e.Fragment,null,1==A?(0,e.createElement)("div",{className:"wb-add-widget-link wkit-btn-class"},(0,e.createElement)("button",{className:"wb-add-widget-updateBtn wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"})))):(0,e.createElement)("div",{className:"wb-add-widget-link wkit-btn-class",onClick:e=>{(async e=>{if(P(!0),w){let e=JSON.stringify(""),n=JSON.stringify(""),i=JSON.stringify("");JSON.stringify("");var l={CardItems:{cardData:[{layout:[],style:[]}]},WcardData:{widgetdata:{name:w.trim(),description:C,category:"WDesignKit",helper_link:"",type:$,w_icon:E,w_image:"",publish_type:"Publish",key_words:"",css_parent_node:!0,widget_id:Y,widget_version:"",version_detail:[]}},Editor_data:{links:[{js:[""],css:[""]}]},Editor_code:{Editor_codes:[{html:"",css:"",js:"",php:""}]}};"elementor"==$?await Me("add",l,e,i,n,"",_).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast(["Widget Added Successfully","Widget Added Successfully","","success"]),a(`/widget-listing/builder/${w.trim()}_${Y}`)):t.wdkit_set_toast(["Widget Creation Fail !","Widget is not created.","","success"])})):"gutenberg"==$?await Ve("add",l,e,i,n,"",_).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast(["Widget Added Successfully","Widget Added Successfully","","success"]),a(`/widget-listing/builder/${w.trim()}_${Y}`)):t.wdkit_set_toast(["Widget Creation Fail !","Widget is not created.","","success"])})):"bricks"==$&&await De("add",l,e,i,n,"",_).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast(["Widget Added Successfully","Widget Added Successfully","","success"]),a(`/widget-listing/builder/${w.trim()}_${Y}`)):t.wdkit_set_toast(["Widget Creation Fail !","Widget is not created.","","success"])})),X.current=""}else X.current.style.border="1px solid red";P(!1)})()}},(0,e.createElement)("button",{className:"wb-add-widget-updateBtn"},(0,e.createElement)("span",null,"Create Widget")))):(0,e.createElement)("button",{className:"wb-addss-widget-updateBtn wkit-disable-btn",onClick:()=>{X.current.focus(),X.current.style.border="1px solid red"}},"Create Widget")))),"import-widget"==t.popup&&(0,e.createElement)("div",null,(0,e.createElement)("div",{id:"popup",className:"wb-add-widget ImportWidget"},(0,e.createElement)("div",{className:"wkit-add-widget-header-container"},(0,e.createElement)("div",{className:"popup-header"},"Import Widget"),(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wb-popup-content",style:{height:"max-content"}},(0,e.createElement)("div",{className:"wb-import-widget-inputs"},(0,e.createElement)("label",null,"Select or Drop Your File Here (.ZIP Only)"),(0,e.createElement)("div",{className:"wb-drop-file-inp",onDragOver:e=>{e.preventDefault()},onDrop:e=>{(e=>{e.preventDefault(),h(e.dataTransfer.files[0]),e.stopImmediatePropagation()})(e)},onClick:e=>{document.querySelector("#wb-import-file").click()}},b?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 4L8 32H28V11H25C23.3431 11 22 9.65685 22 8V4H19V6H20C20.5523 6 21 6.44772 21 7C21 7.55228 20.5523 8 20 8H19V11V14H20C20.5523 14 21 14.4477 21 15C21 15.5523 20.5523 16 20 16H19V18H20H22V20V22C22 24.2091 20.2091 26 18 26C15.7909 26 14 24.2091 14 22V20V18H16H17V15V12H16C15.4477 12 15 11.5523 15 11C15 10.4477 15.4477 10 16 10H17V7V4H8ZM24 4.82843V8C24 8.55228 24.4477 9 25 9H28V8.82843L25.0858 5.91421L24 4.82843ZM23.1716 2H19H17H8C6.89543 2 6 2.89543 6 4V32C6 33.1046 6.89543 34 8 34H28C29.1046 34 30 33.1046 30 32V8.82843C30 8.29799 29.7893 7.78929 29.4142 7.41421L26.5 4.5L24.5858 2.58579C24.2107 2.21071 23.702 2 23.1716 2ZM20 20V22C20 23.1046 19.1046 24 18 24C16.8954 24 16 23.1046 16 22V20H20Z",fill:"black"})):(0,e.createElement)("img",{src:p+"/assets/images/wb-svg/file-upload.svg"}),(0,e.createElement)("input",{id:"wb-import-file",name:"myFile",type:"file",accept:".zip",onChange:e=>{(e=>{if("application/x-zip-compressed"==e.target.files[0].type){var t=e.target.files[0];h(t),document.querySelector(".dropFileErrorMessage").style.display="none"}})(e)}}),b?(0,e.createElement)("span",null,b?.name):(0,e.createElement)("span",null,"Drag & Drop or Upload Widget ZIP File Here")),(0,e.createElement)("div",{className:"dropFileErrorMessage"},"Zip file invalid or Missing. Upload Again!")),(0,e.createElement)("div",{className:"wb-add-widget-footer"},(0,e.createElement)("div",{className:"wb-add-widget-cancelBtn"},(0,e.createElement)("button",{onClick:e=>{t.ClosePopup()}},"Close")),b&&(0,e.createElement)(e.Fragment,null,1==A?(0,e.createElement)("button",{className:"wb-import-widget-updateBtn wkit-btn-class"},(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"}))):(0,e.createElement)("button",{className:"wb-import-widget-updateBtn wkit-btn-class",onClick:e=>{Q()}},(0,e.createElement)("label",null,"Import"))),!b&&(0,e.createElement)("button",{className:"wkit-imports-widget-updateBtn wkit-disable-btn",onClick:e=>{Q()}},"Import"))))))})),{__:Ul}=wp.i18n,{Fragment:Kl}=wp.element,Jl=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(Fl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_meta:t=>e(Wl(t))})))((t=>{const[a,n]=(0,l.useState)(wdkitData.WDKIT_URL),[i,s]=(0,l.useState)(""),[r,o]=(0,l.useState)("loading"),[c,d]=(0,l.useState)([]),[m,p]=(0,l.useState)(""),[u,w]=(0,l.useState)(""),[g,C]=(0,l.useState)(""),[v,b]=(0,l.useState)(""),[h,_]=(0,l.useState)(""),[k,E]=(0,l.useState)("add-widget"),[f,y]=(0,l.useState)(!1),[N,$]=(0,l.useState)(!0),[L,x]=(0,l.useState)(!0),[H,M]=(0,l.useState)(12),[V,D]=(0,l.useState)(1),[S,Z]=(0,l.useState)(1),[R,B]=(0,l.useState)(),[T,O]=(0,l.useState)(),[j,A]=(0,l.useState)([]),[P,W]=(0,l.useState)(""),[I,F]=(0,l.useState)("1.0.0"),[q,U]=(0,l.useState)(!1),[K,J]=(0,l.useState)(-1),[z,G]=(0,l.useState)(""),[Y,X]=(0,l.useState)(!1),Q=(0,l.useRef)(null),[ee,te]=(0,l.useState)([]);(0,l.useEffect)((()=>{t.wdkit_meta&&o(t.wdkit_meta)}),[t.wdkit_meta]),(0,l.useEffect)((()=>{ie()}),[r]),(0,l.useEffect)((()=>{var e=r.widget_list;q&&c.length>0&&(e=e.filter((e=>{if(c.length>0&&c.includes(e.id))return e}))),z&&(e=e.filter((e=>e.title.toLowerCase().includes(z.toLocaleLowerCase())))),A(e),Z(1),D(q?Math.ceil(c?.length/H):Math.ceil(j?.length/H))}),[q,Y]),(0,l.useEffect)((()=>{document.addEventListener("click",(e=>{Object.values(e.target.classList).includes("wkit-wb-3dot-icon")||Object.values(e.target.classList).includes("wkit-wb-3dot-click-img")||document.querySelector(".wkit-wb-dropdown.wbdropdown-active")&&document.querySelector(".wkit-wb-dropdown.wbdropdown-active").classList.remove("wbdropdown-active")}))}),[]),(0,l.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push("elementor"),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("gutenberg"),t?.wdkit_meta?.Setting?.bricks_builder&&e.push("bricks"),te(e)}),[t?.wdkit_meta?.Setting]);const ae=async()=>{if(Pe())await Ae().then((async e=>{e.success?(t.wdkit_set_meta(e.data),await o(e.data)):await o(t.wdkit_meta)}));else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await je(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}$(!1),x(!1)},le=e=>{let t=e.target.parentElement.querySelectorAll(".wkit-wb-dropdown");t.length>0&&t.forEach((e=>{e.classList.add("wbdropdown-active")}))},ne=e=>{let t=j?.findIndex((t=>t.w_unique==e));E("remove"),s(j?.[t]?.title),w(j?.[t]?.builder),C(j?.[t]?.type),b(j?.[t]?.w_unique),j?.[t]?.id&&_(j?.[t]?.id);var a=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";a&&a.classList.add("show")},ie=async()=>{Pe()?(d(r.favoritewidgets),A(r.widget_list)):A(r.widget_list)};return(0,l.useEffect)((()=>{let e=(S-1)*H,a=e+H;B(e),O(a),D(q?Math.ceil(c?.length/H):Math.ceil(j?.length/H)),setTimeout((()=>{(Pe()&&t?.wdkit_meta?.success||t?.wdkit_meta?.success)&&($(!1),x(!1))}),800)}),[j,S,H]),(0,e.createElement)(Kl,null,(0,e.createElement)("div",{className:"wb-widget-main-container"},(0,e.createElement)("div",{className:"wb-creative-widget-main"},(0,e.createElement)("div",{className:"wb-creative-row"},(0,e.createElement)(Kl,null,1==L?(0,e.createElement)("div",{className:"wkit-widget-search-skeleton"}):(0,e.createElement)("div",{className:"wkit-widget-search-filter"},(0,e.createElement)("div",{className:"wkit-widget-search-inner"},(0,e.createElement)("input",{className:"wkit-widget-search-inp",placeholder:"Search Widgets",type:"text",onChange:e=>{G(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(X(!Y),Q.current.blur())},ref:Q}),(0,e.createElement)("span",{className:"wkit_search_button wkit-btn-class",onClick:()=>{X(!Y)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})))))),(0,e.createElement)("div",{className:"wb-creative-button "+(Pe()?"":"wkit-login-disable")},(0,e.createElement)(Kl,null,0==L&&(0,e.createElement)("div",{className:Pe()?"":"wkit-fav-plugin-link"},(0,e.createElement)("span",{className:"wkit-creative-button-toolTip wkit-fav-tooltip"},Ul("You need to log-in first to use these features")),(0,e.createElement)("a",{className:"wkit-plugin-link",style:{cursor:"pointer"},onClick:()=>{Pe()&&U(!q)}},1==q?(0,e.createElement)("svg",{className:"wkit-activate-favourites-icon",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none"},(0,e.createElement)("path",{d:"M8.99888 2.24221C10.4655 0.525545 13.1822 -0.174455 15.3822 1.32555C16.5489 2.12555 17.2822 3.47555 17.3322 4.89221C17.4405 8.12555 14.5822 10.7172 10.2072 14.6839L10.1155 14.7672C9.48221 15.3505 8.50721 15.3505 7.87388 14.7755L7.79054 14.7005L7.74021 14.6548C3.39357 10.7056 0.549324 8.12146 0.665542 4.90055C0.715542 3.47555 1.44888 2.12555 2.61554 1.32555C4.81554 -0.182788 7.53221 0.525545 8.99888 2.24221Z",fill:"#040483"})):(0,e.createElement)("svg",{className:"wkit-favourites-icon",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.3822 1.32457C13.1822 -0.175432 10.4655 0.524569 8.99888 2.24124C7.53221 0.524569 4.81554 -0.183765 2.61554 1.32457C1.44888 2.12457 0.715542 3.47457 0.665542 4.89957C0.548876 8.1329 3.41554 10.7246 7.79054 14.6996L7.87388 14.7746C8.50721 15.3496 9.48221 15.3496 10.1155 14.7662L10.2072 14.6829C14.5822 10.7162 17.4405 8.12457 17.3322 4.89124C17.2822 3.47457 16.5489 2.12457 15.3822 1.32457ZM9.08221 13.4579L8.99888 13.5412L8.91554 13.4579C4.94888 9.86624 2.33221 7.49124 2.33221 5.0829C2.33221 3.41624 3.58221 2.16624 5.24888 2.16624C6.53221 2.16624 7.78221 2.99124 8.22388 4.1329H9.78221C10.2155 2.99124 11.4655 2.16624 12.7489 2.16624C14.4155 2.16624 15.6655 3.41624 15.6655 5.0829C15.6655 7.49124 13.0489 9.86624 9.08221 13.4579Z"})),Ul("Favourites")))),(0,e.createElement)(Kl,null,1==L&&(0,e.createElement)(Kl,null,(0,e.createElement)("button",{className:"wkit-primary-btn-skeleton"}),(0,e.createElement)("button",{className:"wkit-primary-btn-skeleton"})),0==L&&(0,e.createElement)(Kl,null,(0,e.createElement)("div",{className:Pe()?"":"wkit-primary-button-container"},(0,e.createElement)("span",{className:"wkit-creative-button-toolTip wkit-primary-button-tooltip"},Ul("You need to log-in first to use these features")),(0,e.createElement)("button",{className:"wkit-button-primary wkit-outer-btn-class",onClick:e=>{(e=>{E("import-widget");let t=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";t&&t.classList.add("show")})(),y(!0)},disabled:!Pe()},Ul("Import Widget"))),(0,e.createElement)("div",{className:Pe()?"":"wkit-secondary-button-container"},(0,e.createElement)("span",{className:"wkit-creative-button-toolTip wkit-secondary-button-tooltip"},Ul("You need to log-in first to use these features")),(0,e.createElement)("button",{className:"wkit-button-secondary wkit-btn-class",onClick:e=>{(()=>{E("add-widget");let e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";e&&e.classList.add("show")})(),y(!0)},disabled:!Pe()},Ul("Create Widget"))))))),1==N&&(0,e.createElement)("div",null,(0,e.createElement)(Qe,null)),j?.length<=0&&0==N&&(0,e.createElement)(et,{page:"widget",link:"https://blog.wdesignkit.com/documents/create-custom-elementor-widget-using-free-wdesignkit-widget-builder/"}),0==N&&(0,e.createElement)("div",{className:"wkit-skeleton-row"},j?.length>0&&j.map(((l,n)=>!!(l&&R<=n&&T>n)&&(0,e.createElement)(Kl,{key:n},(0,e.createElement)("div",{className:"wkit-wb-widget-grid-content"},"active"!==l.is_activated&&(0,e.createElement)(Kl,null,(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate",style:{zIndex:"19"}},(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-h1"},Ul("Credit Limit Reached!")),(0,e.createElement)("div",{className:"wdkit-inner-boxed-deActivate-p"},Ul("This Widget got disabled until you have more credits to make it active.")),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("button",null,Ul("Buy Credits")))),(0,e.createElement)("span",{className:"wdkit-inner-boxed-remove",style:{zIndex:"29"}},(0,e.createElement)("svg",{onClick:e=>{ne(l.w_unique),y(!0)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.66634 1.83203C5.44533 1.83203 5.23337 1.91983 5.07709 2.07611C4.9208 2.23239 4.83301 2.44435 4.83301 2.66536V3.4987H9.16634V2.66536C9.16634 2.44435 9.07854 2.23239 8.92226 2.07611C8.76598 1.91983 8.55402 1.83203 8.33301 1.83203H5.66634ZM10.1663 3.4987V2.66536C10.1663 2.17913 9.97319 1.71282 9.62937 1.369C9.28555 1.02519 8.81924 0.832031 8.33301 0.832031H5.66634C5.18011 0.832031 4.7138 1.02519 4.36998 1.369C4.02616 1.71282 3.83301 2.17913 3.83301 2.66536V3.4987H2.33301C2.32078 3.4987 2.30865 3.49914 2.29664 3.5H1C0.723858 3.5 0.5 3.72386 0.5 4C0.5 4.27614 0.723858 4.5 1 4.5H1.83301V13.332C1.83301 13.8183 2.02616 14.2846 2.36998 14.6284C2.7138 14.9722 3.18011 15.1654 3.66634 15.1654H10.333C10.8192 15.1654 11.2856 14.9722 11.6294 14.6284C11.9732 14.2846 12.1663 13.8183 12.1663 13.332V4.5H13C13.2761 4.5 13.5 4.27614 13.5 4C13.5 3.72386 13.2761 3.5 13 3.5H11.7027C11.6907 3.49914 11.6786 3.4987 11.6663 3.4987H10.1663ZM2.83301 13.332V4.5H11.1663V13.332C11.1663 13.553 11.0785 13.765 10.9223 13.9213C10.766 14.0776 10.554 14.1654 10.333 14.1654H3.66634C3.44533 14.1654 3.23337 14.0776 3.07709 13.9213C2.9208 13.765 2.83301 13.553 2.83301 13.332ZM7.5 7.33203C7.5 7.05589 7.27614 6.83203 7 6.83203C6.72386 6.83203 6.5 7.05589 6.5 7.33203V11.332C6.5 11.6082 6.72386 11.832 7 11.832C7.27614 11.832 7.5 11.6082 7.5 11.332V7.33203Z",fill:"#1E1E1E"})))),(0,e.createElement)("div",{className:"wkit-wb-widget-card-main"},"server"==l?.type&&(0,e.createElement)("div",{className:"wkit-wb-widget-download"},(0,e.createElement)("div",{className:"wkit-wb-download-btn",onClick:e=>{(async(e,a)=>{if(J(a),e){const a=async e=>{let a=JSON.parse(e.json),l=a?.widget_data?.widgetdata?.type,n=JSON.stringify(a?.Editor_data?.html),i=JSON.stringify(a?.Editor_data?.js),s=JSON.stringify(a?.Editor_data?.css),r=e.image;e={CardItems:{cardData:a.section_data},WcardData:a.widget_data,Editor_data:a.Editor_Link,Editor_code:{Editor_codes:[a.Editor_data]}};var o="";return"elementor"==l?o=await Me("private_download",e,n,s,i,"",r).then((async e=>e)):"gutenberg"==l?o=await Ve("private_download",e,n,s,i,"",r).then((async e=>e)):"bricks"==l&&(o=await De("private_download",e,n,s,i,"",r).then((async e=>e))),!(!o||1!=o.api.success||(await ae(),await J(-1),t.wdkit_set_toast(["Widget Successfully Retrived","Widget Successfully Retrived .","","success"]),0))};let l=Pe();if(l){let n={type:"private_download",w_uniq:e,token:l.token},i={type:"wkit_download_widget",widget_info:JSON.stringify(n)};await je(i).then((async e=>{null!=e?.json?(await a(e),e&&t.wdkit_set_toast([e.message,"Widget Successfully Retrived .","","success"])):(t.wdkit_set_toast([e.message,e.description,"","danger"]),J(-1),ae())}))}}})(l.w_unique,n)}},(0,e.createElement)("div",{className:"wkit-wb-download-icon"},(0,e.createElement)("svg",{width:"18",height:"17",viewBox:"0 0 21 20",fill:"white",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.6527 0.0594931C10.559 0.0946655 10.4065 0.196274 10.3167 0.286159C10.004 0.598802 10.0236 0.196274 10.0236 5.92936V11.0333L9.23413 10.2438C8.39 9.4036 8.24149 9.29808 7.91713 9.29418C7.63184 9.29418 7.44035 9.37625 7.2215 9.58728C6.89713 9.90383 6.82679 10.2712 7.01437 10.6815C7.06127 10.787 7.53414 11.2873 8.50333 12.2526C9.77735 13.5188 9.95321 13.679 10.1799 13.7845C10.6996 14.0268 11.2702 14.0307 11.8017 13.8001C12.0088 13.7063 12.1964 13.5383 13.4783 12.2682C14.5334 11.2208 14.9399 10.791 14.9946 10.6659C15.0923 10.4549 15.0962 10.111 15.0063 9.89992C14.8656 9.55602 14.4709 9.29418 14.1074 9.29418C13.7557 9.29808 13.6228 9.39188 12.7709 10.2438L11.9776 11.0333V5.92936C11.9776 0.196274 11.9971 0.598802 11.6845 0.286159C11.4148 0.0125961 11.024 -0.0694723 10.6527 0.0594931Z"}),(0,e.createElement)("path",{d:"M1.62294 9.08725C1.38064 9.17323 1.13834 9.42725 1.05237 9.68518C0.993745 9.86495 0.985929 9.97437 1.00938 10.4433C1.09535 12.3036 1.66593 14.0426 2.68201 15.555C3.43626 16.6845 4.58522 17.7904 5.72246 18.4978C8.43464 20.1782 11.7486 20.4635 14.7383 19.2794C16.0123 18.7753 17.1378 18.0093 18.1695 16.9502C19.9008 15.1721 20.8778 12.9171 20.9911 10.4355C21.0185 9.77897 20.9677 9.57185 20.7098 9.31392C20.3268 8.93093 19.7249 8.93093 19.3419 9.31392C19.127 9.52886 19.0606 9.7438 19.0332 10.3495C19.0019 10.9748 18.9238 11.5024 18.7714 12.0691C18.0171 14.8985 15.7427 17.1261 12.9015 17.8139C8.61831 18.8534 4.29994 16.2546 3.20178 11.9753C3.065 11.436 2.94776 10.5958 2.94776 10.1307C2.94776 9.76725 2.85788 9.51714 2.65466 9.31392C2.385 9.04036 1.9942 8.95829 1.62294 9.08725Z"}))),K==n&&(0,e.createElement)("div",{className:"wkit-wb-download-loader"}))),(0,e.createElement)("div",{className:"wkit-wb-upper-icons",style:"server"==l.type||"active"!=l.is_activated?{zIndex:"1"}:{zIndex:"39"}},"plugin"==l.type&&(0,e.createElement)("div",{className:"wdkit-widget-type"},(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.5 2.25H3.5C2.67157 2.25 2 2.92157 2 3.75V11.25C2 12.0784 2.67157 12.75 3.5 12.75H15.5C16.3284 12.75 17 12.0784 17 11.25V3.75C17 2.92157 16.3284 2.25 15.5 2.25Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M6.5 15.75H12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.5 12.75V15.75",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Ul("Local")),"server"==l.type&&(0,e.createElement)("div",{className:"wdkit-widget-type"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_10782_27626)"},(0,e.createElement)("path",{d:"M13.5006 7.5H12.5556C12.275 6.41325 11.6952 5.42699 10.8821 4.6533C10.0689 3.8796 9.05511 3.34949 7.95576 3.12321C6.85642 2.89692 5.71564 2.98353 4.66306 3.37319C3.61048 3.76286 2.6883 4.43995 2.00131 5.32754C1.31432 6.21512 0.890064 7.27761 0.776752 8.39427C0.663439 9.51092 0.865614 10.637 1.3603 11.6445C1.85499 12.652 2.62236 13.5005 3.57521 14.0937C4.52806 14.6868 5.62818 15.0008 6.75057 15H13.5006C14.4951 15 15.449 14.6049 16.1522 13.9017C16.8555 13.1984 17.2506 12.2446 17.2506 11.25C17.2506 10.2554 16.8555 9.30161 16.1522 8.59835C15.449 7.89509 14.4951 7.5 13.5006 7.5Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_10782_27626"},(0,e.createElement)("rect",{width:"18",height:"18",fill:"white"})))),Ul("Remote")),("update"==l.type||"done"==l.type)&&(0,e.createElement)("div",{className:"wdkit-widget-type"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_10782_27626)"},(0,e.createElement)("path",{d:"M13.5006 7.5H12.5556C12.275 6.41325 11.6952 5.42699 10.8821 4.6533C10.0689 3.8796 9.05511 3.34949 7.95576 3.12321C6.85642 2.89692 5.71564 2.98353 4.66306 3.37319C3.61048 3.76286 2.6883 4.43995 2.00131 5.32754C1.31432 6.21512 0.890064 7.27761 0.776752 8.39427C0.663439 9.51092 0.865614 10.637 1.3603 11.6445C1.85499 12.652 2.62236 13.5005 3.57521 14.0937C4.52806 14.6868 5.62818 15.0008 6.75057 15H13.5006C14.4951 15 15.449 14.6049 16.1522 13.9017C16.8555 13.1984 17.2506 12.2446 17.2506 11.25C17.2506 10.2554 16.8555 9.30161 16.1522 8.59835C15.449 7.89509 14.4951 7.5 13.5006 7.5Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_10782_27626"},(0,e.createElement)("rect",{width:"18",height:"18",fill:"white"})))),(0,e.createElement)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M15.5 2.25H3.5C2.67157 2.25 2 2.92157 2 3.75V11.25C2 12.0784 2.67157 12.75 3.5 12.75H15.5C16.3284 12.75 17 12.0784 17 11.25V3.75C17 2.92157 16.3284 2.25 15.5 2.25Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M6.5 15.75H12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M9.5 12.75V15.75",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),Ul("Local + Remote")),"plugin"!=l.type&&(0,e.createElement)(Kl,null,(0,e.createElement)("div",{className:"wkit-wb-fav-icon",onClick:e=>{(async(e,a)=>{if(e){let l=Pe();if(l){let n={type:"favourite",w_uniq:e,token:l.token},i=r.favoritewidgets;if(i.findIndex((e=>e==a))>-1){let e=i.findIndex((e=>e==a));i.splice(e,1),d(i)}else{i.push(a);let e=Object.assign({},r,{favoritewidgets:i});d(i),o(e)}let s={type:"wkit_favourite_widget",widget_info:JSON.stringify(n)};await je(s).then((e=>{e.data.success?t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]):t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","danger"])}))}}})(l.w_unique,l.id)}},c?.length>0&&c?.includes(l.id)?(0,e.createElement)(Kl,null,(0,e.createElement)("img",{src:a+"/assets/images/wb-svg/fav-icon-selected.svg"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiplist"},Ul("UnFavourite"))):(0,e.createElement)(Kl,null,(0,e.createElement)("img",{src:a+"/assets/images/wb-svg/fav-icon.svg"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiplist"},Ul("Favourite")))),(0,e.createElement)("div",{className:"wkit-wb-fav-icon"},"private"==l.status?(0,e.createElement)(Kl,null,(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:a+"/assets/images/svg/private.svg",alt:"private"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiplist"},Ul("Private"))):(0,e.createElement)(Kl,null,(0,e.createElement)("img",{src:a+"/assets/images/svg/public.svg"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiplist"},Ul("Public")))))),"pro"==l?.free_pro&&(0,e.createElement)("div",{className:"wdkit-card-tag"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.75 16.5H5.25C4.9425 16.5 4.6875 16.245 4.6875 15.9375C4.6875 15.63 4.9425 15.375 5.25 15.375H12.75C13.0575 15.375 13.3125 15.63 13.3125 15.9375C13.3125 16.245 13.0575 16.5 12.75 16.5Z",fill:"white"}),(0,e.createElement)("path",{d:"M15.2622 4.14003L12.2622 6.28503C11.8647 6.57003 11.2947 6.39753 11.1222 5.94003L9.70468 2.16003C9.46468 1.50753 8.54218 1.50753 8.30218 2.16003L6.87718 5.93253C6.70468 6.39753 6.14218 6.57003 5.74468 6.27753L2.74468 4.13253C2.14468 3.71253 1.34968 4.30503 1.59718 5.00253L4.71718 13.74C4.82218 14.04 5.10718 14.235 5.42218 14.235H12.5697C12.8847 14.235 13.1697 14.0325 13.2747 13.74L16.3947 5.00253C16.6497 4.30503 15.8547 3.71253 15.2622 4.14003ZM10.8747 11.0625H7.12468C6.81718 11.0625 6.56218 10.8075 6.56218 10.5C6.56218 10.1925 6.81718 9.93753 7.12468 9.93753H10.8747C11.1822 9.93753 11.4372 10.1925 11.4372 10.5C11.4372 10.8075 11.1822 11.0625 10.8747 11.0625Z",fill:"white"})),(0,e.createElement)("span",null,Ul("Pro"))),(0,e.createElement)("div",{className:"wkit-wb-widget-image-content"},Pe()?(0,e.createElement)(he,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+l.title+"_"+l.w_unique},(0,e.createElement)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${l.image}")`}})):(0,e.createElement)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${l.image}")`}})),(0,e.createElement)("div",{className:"wkit-wb-card-detail-content"},(0,e.createElement)("div",{className:"wkit-wb-title-content"},Pe()?(0,e.createElement)(he,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+l.title+"_"+l.w_unique},(0,e.createElement)("span",{className:"wdkit-widget-title"},l.title)):(0,e.createElement)("span",{className:"wdkit-widget-title"},l.title),"server"!=l?.type&&(0,e.createElement)("div",{className:"wkit-wb-widget-dropDown"},(0,e.createElement)("span",{className:"wkit-wb-3dot-icon","data-widgetid":n,onClick:le},(0,e.createElement)("img",{className:"wkit-wb-3dot-click-img",src:a+"assets/images/wb-svg/3-dot.svg",alt:"wb-view-icon","data-widgetid":n}),(0,e.createElement)("ul",{className:"wkit-wb-dropdown"},Pe()&&(0,e.createElement)(he,{className:"wkit-wb-edit-widget-btn",target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+l.title+"_"+l.w_unique},(0,e.createElement)("li",null,(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.625 2.37324C10.7892 2.20908 10.984 2.07887 11.1985 1.99003C11.413 1.90119 11.6429 1.85547 11.875 1.85547C12.1071 1.85547 12.337 1.90119 12.5515 1.99003C12.766 2.07887 12.9608 2.20908 13.125 2.37324C13.2892 2.53739 13.4194 2.73227 13.5082 2.94674C13.597 3.16122 13.6428 3.39109 13.6428 3.62324C13.6428 3.85538 13.597 4.08526 13.5082 4.29973C13.4194 4.51421 13.2892 4.70908 13.125 4.87324L4.6875 13.3107L1.25 14.2482L2.1875 10.8107L10.625 2.37324Z",stroke:"#737373",strokeWidth:"0.9375",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Edit in New Tab")))),(0,e.createElement)("div",{className:"wkit-wb-mainmenu"},(0,e.createElement)("li",{onClick:e=>{ne(l.w_unique),y(!0)},"data-deleteid":n},(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M3.75 5.50006H4.91667M4.91667 5.50006H14.25M4.91667 5.50006L4.91638 13.666C4.91638 13.9754 5.0393 14.2722 5.25809 14.491C5.47688 14.7098 5.77363 14.8327 6.08305 14.8327H11.9164C12.2258 14.8327 12.5225 14.7098 12.7413 14.491C12.9601 14.2722 13.083 13.9754 13.083 13.666V5.49935M6.66638 5.49935V4.33268C6.66638 4.02326 6.7893 3.72652 7.00809 3.50772C7.22688 3.28893 7.52363 3.16602 7.83305 3.16602H10.1664C10.4758 3.16602 10.7725 3.28893 10.9913 3.50772C11.2101 3.72652 11.333 4.02326 11.333 4.33268V5.49935",stroke:"#737373",strokeWidth:"1.3125",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Delete")))),(0,e.createElement)("div",{className:"wkit-wb-mainmenu"},(0,e.createElement)("li",{onClick:()=>{var e;e=l,E("duplicate-widget"),y(!0),s(e.title),w(e.builder),b(e.w_unique),W(e?.image?e.image:"")}},(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M4.64328 5.14612H3.2147C2.83582 5.14612 2.47246 5.29663 2.20455 5.56454C1.93664 5.83244 1.78613 6.19581 1.78613 6.57469V12.2868C1.78613 12.6657 1.93664 13.0291 2.20455 13.297C2.47246 13.5649 2.83582 13.7154 3.2147 13.7154H3.21685L8.93113 13.7054C9.30964 13.7048 9.67246 13.5541 9.9399 13.2862C10.2073 13.0184 10.3576 12.6553 10.3576 12.2768V10.8604M8.92899 4.42969V8.7154M11.0718 6.57255H6.78613M13.215 9.42801V3.71373C13.215 3.33485 13.0645 2.97148 12.7966 2.70358C12.5287 2.43567 12.1653 2.28516 11.7864 2.28516H6.07213C5.69325 2.28516 5.32988 2.43567 5.06197 2.70358C4.79406 2.97148 4.64355 3.33485 4.64355 3.71373V9.42801C4.64355 9.8069 4.79406 10.1703 5.06197 10.4382C5.32988 10.7061 5.69325 10.8566 6.07213 10.8566H11.7864C12.1653 10.8566 12.5287 10.7061 12.7966 10.4382C13.0645 10.1703 13.215 9.8069 13.215 9.42801Z",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Duplicate")))),ee.length>1&&"1"==r?.credits?.convert_widget?.meta_value&&(0,e.createElement)("div",{className:"wkit-wb-mainmenu"},(0,e.createElement)("li",{onClick:()=>{var e;e=l,E("convert-widget"),y(!0),s(e.title),w(e.builder),b(e.w_unique),W(e?.image?e.image:"")}},(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",viewBox:"0 0 25 24",fill:"none"},(0,e.createElement)("path",{d:"M2.56465 10.5233C2.43348 10.2066 2.50598 9.84216 2.74828 9.59981L6.60371 5.74438C6.93477 5.41333 7.47121 5.41333 7.80223 5.74438C8.13316 6.07524 8.13316 6.61188 7.80223 6.94274L5.39344 9.35153H21.6525C22.1205 9.35153 22.5 9.73091 22.5 10.199C22.5 10.6671 22.1205 11.0465 21.6525 11.0465H3.34754C3.00477 11.0465 2.69582 10.8399 2.56465 10.5233ZM21.6525 12.9533H3.34746C2.87945 12.9533 2.5 13.3326 2.5 13.8007C2.5 14.2688 2.87945 14.6482 3.34746 14.6482H19.6066L17.1977 17.057C16.8668 17.3878 16.8668 17.9245 17.1977 18.2553C17.3632 18.4208 17.58 18.5036 17.797 18.5036C18.0138 18.5036 18.2307 18.4208 18.3962 18.2553L22.2517 14.3999C22.494 14.1576 22.5665 13.7931 22.4354 13.4765C22.3042 13.1598 21.9952 12.9533 21.6525 12.9533Z",fill:"#737373"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Convert")))),(0,e.createElement)("div",{className:"wkit-wb-mainmenu"},(0,e.createElement)("li",{className:"wkit-wb-export-widget-btn",onClick:e=>{((e,a,l,n)=>{let i=a.replaceAll(" ","_")+"_"+n+".zip",s={widget_name:a+"_"+n,widget_type:l},r={type:"wkit_export_widget",info:JSON.stringify(s)};je(r).then((async e=>{e.success&&(await t.wdkit_set_toast([e?.message,e?.description,"","success"]),e.url&&(location.href=e.url)),await setTimeout((()=>{let e={name:i,builder:l},t={type:"wkit_delete_widget",info:JSON.stringify(e)};je(t).then((e=>{})).catch((e=>console.log(e)))}),3e3)}))})(0,l.title,l.builder,l.w_unique)}},(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.1875 4.25V2.375H2.8125V4.25H1.875V2.375L1.87875 2.37734C1.87832 2.25431 1.90213 2.1324 1.94883 2.01858C1.99553 1.90475 2.06419 1.80124 2.15091 1.71397C2.23762 1.62669 2.34068 1.55735 2.4542 1.50991C2.56772 1.46247 2.68947 1.43787 2.8125 1.4375H12.1875C12.4361 1.4375 12.6746 1.53627 12.8504 1.71209C13.0262 1.8879 13.125 2.12636 13.125 2.375V4.25H12.1875ZM2.8125 9.875L3.47391 9.21641L7.03125 12.7695V4.25H7.96875V12.7695L11.527 9.21641L12.1875 9.875L7.5 14.5625L2.8125 9.875Z",fill:"#737373"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Download ZIP")," "))),Pe()&&null!=l?.allow_push&&0!=l?.allow_push&&(0,e.createElement)("div",{className:"wkit-wb-mainmenu"},(0,e.createElement)("li",{onClick:e=>{E("sync"),y(!0),s(l.title),w(l.builder),b(l.w_unique),F(l.w_version),C(l.type)}},(0,e.createElement)("span",{className:"wkit-wb-listmenu-svg"},(0,e.createElement)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M12.1875 11.75V13.625H2.8125V11.75H1.875V13.625L1.87875 13.6227C1.87832 13.7457 1.90213 13.8676 1.94883 13.9814C1.99553 14.0952 2.06419 14.1988 2.15091 14.286C2.23762 14.3733 2.34068 14.4427 2.4542 14.4901C2.56772 14.5375 2.68947 14.5621 2.8125 14.5625H12.1875C12.4361 14.5625 12.6746 14.4637 12.8504 14.2879C13.0262 14.1121 13.125 13.8736 13.125 13.625V11.75H12.1875ZM2.8125 6.125L3.47391 6.78359L7.03125 3.23047V11.75H7.96875V3.23047L11.527 6.78359L12.1875 6.125L7.5 1.4375L2.8125 6.125Z",fill:"#737373"}))),(0,e.createElement)("span",{className:"wkit-wb-listmenu-text"},Ul("Push Widget")))))))),null!=l?.avg_rating&&null!=l?.total_rating&&(0,e.createElement)("div",{style:{padding:"0px 10px"}},(0,e.createElement)(it,{avg_rating:l?.avg_rating,total_rating:l?.total_rating})),(0,e.createElement)("div",{className:"wkit-wb-widget-info"},(0,e.createElement)("div",{className:"wkit-wb-info-icons-content"},(0,e.createElement)("div",{className:"wkit-wb-info-icons"},(0,e.createElement)("img",{src:a+"/assets/images/svg/eye.svg",alt:"wb-view-icon",draggable:!1}),(0,e.createElement)("span",null,null!=l?.views?l.views:0)),(0,e.createElement)("hr",{className:"wkit-wb-divider-hr"}),(0,e.createElement)("div",{className:"wkit-wb-info-icons"},(0,e.createElement)("img",{src:a+"/assets/images/svg/download-template.svg",alt:"wb-view-icon",draggable:!1}),(0,e.createElement)("span",null,null!=l?.download?l.download:0))),(0,e.createElement)("div",{className:"wkit-wb-widget-category-icon"},"elementor"==l?.builder&&(0,e.createElement)("img",{src:a+"/assets/images/wb-svg/elementor.svg",draggable:!1}),"gutenberg"==l?.builder&&(0,e.createElement)("img",{src:a+"/assets/images/wb-svg/gutenberg.svg",draggable:!1}),"bricks"==l?.builder&&(0,e.createElement)("img",{src:a+"/assets/images/wb-svg/bricks.svg",draggable:!1}),(0,e.createElement)("span",{className:"wkit-wb-tooltiplist"},l?.builder)))))))))),(0,e.createElement)("div",{className:"wkit-wb-paginatelist"},j?.length>H&&V>1&&(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:V,marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo(0,0),null!=e.nextSelectedPage&&($(!0),x(!0),Z(e.nextSelectedPage+1))},forcePage:S-1,onPageActive:()=>{}}))))),1==f?(0,e.createElement)("div",{className:"wb-editWidget-popup",onClick:e=>(e=>{e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("wb-editWidget-popup")?y(!1):e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("wkit-wb-show")&&(e.target.classList.remove("wkit-wb-show"),document.querySelector(".wb-dropdown.wbdropdown-active")&&document.querySelector(".wb-dropdown.wbdropdown-active").classList.remove("wbdropdown-active"))})(e)},(0,e.createElement)("div",{className:`wb-edit-popup wdkit-${k}-popup`},(0,e.createElement)(ql,{quickeditName:i,quickediteditDesc:m,quickediteditType:u,quickediteditMeta:g,w_version:I,widget_id:v,widget_image:P,BuilderArray:ee,widget_server_id:h,UpdateData:()=>ae(),ClosePopup:()=>{y(!1)},StartLoading:()=>{$(!0)},endLoading:()=>{$(!1)},popup:k&&k}))):"")})),{__:zl}=wp.i18n,{Fragment:Gl}=wp.element,Yl=Hl((e=>({cardData:e.CardItems.cardData,controller:e.Active_controller,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData})),(e=>({addToCarthandler:t=>e(Zl(t)),addToEditor_code:t=>e(Tl(t))})))((t=>{let a=t?.widgetdata?.widgetdata?.type;const n=(e,t="Tab")=>e?e[0].toUpperCase()+e.slice(1):t,i=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e},s=(0,l.useRef)();var r=wdkitData.WDKIT_URL;t?.controller?.controller&&(s.current=t.controller.controller);const o=(e,a,l,n)=>{let i=[...t.cardData];if(s.current.repeater)var r=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else r=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if("showLable"==a||"lableBlock"==a||"is_external"==a||"nofollow"==a||"url_options"==a||"prevent_empty"==a||"global"==a||"responsive"==a||"alpha"==a||"multiple"==a||"conditions"==a||"dynamic"==a||"dismissible"==a||"parent_class"==a)r[a]=e.target.checked;else if("types"==a){if(1==e.target.checked){let e=[...r[a]];"classic"==l?e.splice(0,0,'"classic"'):"gradient"==l&&e.splice(1,0,'"gradient"'),r[a]=e}else if(0==e.target.checked){let e=[...r[a]],t=r[a].indexOf(`"${l}"`);e.splice(t,1),r[a]=e}}else if("nha_array"==a){let t=[...r[a]],n=r?.nha_array_lable?[...r.nha_array_lable]:[];1==e.target.checked?(0==l?(t[0]="normal",null==n[0]&&(n[0]="Normal")):1==l?(t[1]="hover",null==n[1]&&(n[1]="Hover")):2==l&&(t[2]="active",null==n?.[2]&&(n[2]="Active")),r[a]=t,r.nha_array_lable=n):0==e.target.checked&&t.length>2&&(t[l]=null,r[a]=t)}else if("nha_array_name"==a){let t=r?.nha_array_lable?[...r.nha_array_lable]:[];0==l?t[0]=e.target.value:1==l?t[1]=e.target.value:2==l&&(t[2]=e.target.value),r.nha_array_lable=t}else if("nha_null_name"==a){let e=r?.nha_array_lable?[...r.nha_array_lable]:[];0==l?e[0]="Normal":1==l?e[1]="Hover":2==l&&(e[2]="Active"),r.nha_array_lable=e}else if("media_types"==a){if(1==e.target.checked){let e=[...r[a]];"image"==l?e.splice(0,0,'"image"'):"video"==l?e.splice(1,0,'"video"'):"svg"==l&&e.splice(2,0,'"svg"'),r[a]=e}else if(0==e.target.checked){let e=[...r[a]],t=r[a].indexOf(`"${l}"`);e.splice(t,1),r[a]=e}}else if("options_value"==a){let t=[...r.options];if("select2"==r.type&&r.select2_defaultValue?.map(((e,a)=>{JSON.stringify(e)==JSON.stringify(t[l])&&r.select2_defaultValue.splice(a,1)}))," "==e.target.value[e.target.value.length-1]){var o=e.target.value.replace(" ","_");let a=Object.assign({},t[l],{value:o});t[l]=a}else{let a=Object.assign({},t[l],{value:e.target.value});t[l]=a}r.options=t}else if("options_lable"==a){let t=[...r.options];"select2"==r.type&&r.select2_defaultValue?.map(((e,a)=>{JSON.stringify(e)==JSON.stringify(t[l])&&r.select2_defaultValue.splice(a,1)}));let a=Object.assign({},t[l],{lable:e.target.value});t[l]=a,r.options=t}else if("options_svg"==a){let t=[...r.options],a=Object.assign({},t[l],{svg:e.target.value});t[l]=a,r.options=t}else if("align_lable"==a||"align_value"==a||"align_icon"==a||"align_title"==a||"align_svg"==a){let t=[...r.align_option],n=Object.assign({},t[l],{[a]:e.target.value});t[l]=n,r.align_option=t}else if("conditions_operator"==a){let t=[...r.condition_value.values],a=Object.assign({},t[l],{operator:e.target.value});t[l]=a;let n=Object.assign({},r.condition_value,{values:t});r.condition_value=n}else if("conditions_name"==a){let t=[...r.condition_value.values],a=Object.assign({},t[l],{name:e.target.value});t[l]=a;let n=Object.assign({},r.condition_value,{values:t});r.condition_value=n}else if("conditions_value"==a){let t=[...r.condition_value.values],a=Object.assign({},t[l],{value:e.target.value});t[l]=a;let n=Object.assign({},r.condition_value,{values:t});r.condition_value=n}else if("condition_relation"==a){let t={...r.condition_value};t.relation=e.target.value,r.condition_value=t}else if("num-min"==a){let t=Object.assign({},r.number_setting,{min:e.target.value});r.number_setting=t}else if("num-max"==a){let t=Object.assign({},r.number_setting,{max:e.target.value});r.number_setting=t}else if("num-step"==a){let t=Object.assign({},r.number_setting,{step:e.target.value});r.number_setting=t}else if("slider_value"==a){let t=[...r.slider_defaultValue];"unit"==l?t[0]=e.target.value:"number"==l&&(t[1]=e.target.value),r.slider_defaultValue=t}else if("size_units"==a){let t=[...r.size_units];if("checked"==n){let a=Object.assign({},t[l],{checked:e.target.checked});t[l]=a}else{let a=Object.assign({},t[l],{[n]:e.target.value});t[l]=a}r.size_units=t}else if("switcher_defaultValue"==a)r.defaultValue=e.target.checked;else if("dimension_defaultValue"==a){let t={...r.dimension_defaultValue};"isLinked"!=l?t[l]=e.target.value:"isLinked"==l&&(t[l]=!r.dimension_defaultValue[l]),r.dimension_defaultValue=t}else if("dimension_units"==a){let t=[...r.dimension_units];if(1==e.target.checked)t.push(e.target.value);else if(0==e.target.checked){let a=t.indexOf(e.target.value);t.splice(a,1)}r.dimension_units=t}else if("align_defaultValue"==a)r[a]=l;else if("name"==a){let l=(e=>{let a=[];return t?.cardData.length>0&&t?.cardData.map((e=>{e?.layout.length>0&&e?.layout.map(((e,t)=>{e?.inner_sec.length>0&&e?.inner_sec.map(((e,t)=>{a.includes(e.name)||a.push(e.name),"repeater"==e.type||"normalhover"==e.type||"popover"==e.type?e?.fields?.length>0&&e.fields.map(((e,t)=>{a.includes(e.name)||a.push(e.name)})):a.includes(e.name)||a.push(e.name)}))})),e?.style.length>0&&e?.style.map(((e,t)=>{e?.inner_sec.length>0&&e?.inner_sec.map(((e,t)=>{a.includes(e.name)||a.push(e.name),"repeater"==e.type||"normalhover"==e.type||"popover"==e.type?e?.fields?.length>0&&e.fields.map(((e,t)=>{a.includes(e.name)||a.push(e.name)})):a.includes(e.name)||a.push(e.name)}))}))})),!(!/^[a-zA-Z0-9_]+$/.test(e)||a.includes(e))})(e.target.value),n=c?.name;if(!l)return!1;t?.cardData.length>0&&t?.cardData.map((a=>{a?.layout.length>0&&a?.layout.map(((a,l)=>{a?.inner_sec.length>0&&a?.inner_sec.map(((a,s)=>{"repeater"==a.type||"normalhover"==a.type||"popover"==a.type?a?.fields?.length>0&&a.fields.map(((a,r)=>{a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,o)=>{if(a.name==n){var c=i[0]?.layout?.[l]?.inner_sec?.[s]?.fields?.[r]?.condition_value.values[o];c.name=e.target.value,t.addToCarthandler(i)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,r)=>{if(a.name==n){var o=i[0]?.layout?.[l].inner_sec[s]?.condition_value.values[r];o.name=e.target.value,t.addToCarthandler(i)}}))}))})),a?.style.length>0&&a?.style.map(((a,l)=>{a?.inner_sec.length>0&&a?.inner_sec.map(((a,s)=>{"repeater"==a.type||"normalhover"==a.type||"popover"==a.type?a?.fields?.length>0&&a.fields.map(((a,r)=>{a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,o)=>{if(a.name==n){var c=i[0]?.style?.[l]?.inner_sec?.[s]?.fields?.[r]?.condition_value.values[o];c.name=e.target.value,t.addToCarthandler(i)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,r)=>{if(a.name==n){var o=i[0]?.style?.[l].inner_sec[s]?.condition_value.values[r];o.name=e.target.value,t.addToCarthandler(i)}}))}))}))}));let o=s.current;if(o?.sec_id&&o?.compo_id&&o?.array_type&&t?.cardData?.[0]?.[o.array_type]?.[o.sec_id]?.inner_sec?.[o.compo_id]){var d=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});const a=(t,l)=>{var n=d.find(t,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=n&&("loop"==l?d.session.replace(n,`data-${e.target.value}={${e.target.value}}`):"name"==l&&d.session.replace(n,`{{${e.target.value}}}`),a(t,l))};if(null!=o.repeater){let e=t.cardData[0][o.array_type][o.sec_id].inner_sec[o.compo_id].fields[o.repeater];"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||a(`data-${e.name}={${e.name}}`,"loop"),a(`{{${e.name}}}`,"name"),"repeater"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||a(`data-${e.name}={${e.name}}`,"loop"),a(`{{${e.name}}}`,"name")}))}else{var m=t.cardData[0][o.array_type][o.sec_id].inner_sec[o.compo_id];"gallery"!=m.type&&"select2"!=m.type&&"repeater"!=m.type||a(`data-${m.name}={${m.name}}`,"loop"),a(`{{${m.name}}}`,"name"),"repeater"!=m.type&&"popover"!=m.type||m.fields.map((e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||a(`data-${e.name}={${e.name}}`,"loop"),a(`{{${e.name}}}`,"name")}))}}r[a]=e.target.value}else if("select2_defaultValue"==a){if("add"==n){let e=[...r[a]];e.push(l),r[a]=e}else if("remove"==n){let e=[...r[a]];e.splice(l,1),r[a]=e}}else"select_defaultValue"==a?r[a]=l:"show_unit"==a?1==e.target.checked?(r[a]=e.target.checked,r.responsive=!0):r[a]=e.target.checked:r[a]=e.target.value;t.addToCarthandler(i)};if(t.cardData.length>0){let e=[...t.cardData];if(void 0!==s.current&&e?.[0]?.[s?.current?.array_type]?.[s?.current?.sec_id]?.inner_sec?.[s?.current?.compo_id])if(e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id]?.fields?.[s?.current?.repeater])var c=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else c=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id]}const d=(e,a)=>{let l=[...t.cardData],n=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if("options"==e)if(null!=s.current.repeater){let e=[...(i=n.fields[s.current.repeater]).options];"styleimage"==c.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),i.options=e}else{let e=[...(i=n).options];"styleimage"==c.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),i.options=e}else if("conditions"==e)if(null!=s.current.repeater){let e=[...(i=n.fields[s.current.repeater]).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},i.condition_value,{values:e});i.condition_value=t}else{let e=[...(i=n).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},i.condition_value,{values:e});i.condition_value=t}else if("align_option"==e)if(null!=s.current.repeater){let e=[...(i=n.fields[s.current.repeater]).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),i.align_option=e}else{var i;let e=[...(i=n).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),i.align_option=e}t.addToCarthandler(l)},m=(e,a)=>{let l=[...t.cardData],n=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if("options"==a)if(null!=s.current.repeater)var i=n.fields[s.current.repeater].options;else i=n.options;else"conditions"==a?i=null!=s.current.repeater?n.fields[s.current.repeater].condition_value.values:n.condition_value.values:"repeater"==a?i=n.defaultValue:"align_option"==a&&(i=null!=s.current.repeater?n.fields[s.current.repeater].align_option:n.align_option);i.splice(e,1),t.addToCarthandler(l),0==i.length&&d(a,e)},p=e=>{let t=e.target.closest(".wkit-wb-custom-dropDown"),a=t.querySelector(".wkit-wb-custom-dropDown-content")?t.querySelector(".wkit-wb-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-wb-show")?a.classList.remove("wkit-wb-show"):a.classList.add("wkit-wb-show"))};return(0,e.createElement)("div",{className:"wkit-wb-third-part-content show"},(0,e.createElement)("div",{className:"wkit-widget-detail"},(0,e.createElement)("div",{className:"wb-block-detail-content"},null!=c?.lable&&("elementor"===a||"bricks"===a&&"heading"!==c.type||"gutenberg"===a&&"gradient"!==c.type)&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Label"),(0,e.createElement)("div",{className:"wkit-wb-tooltip wkit-bottom-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The label that appears above of the field."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.lable,type:"text",onChange:e=>{o(e,"lable")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.lable&&"bricks"===a&&"heading"===c?.type&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Label"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The label that appears above of the field."))),(0,e.createElement)("textarea",{className:"wb-block-text-inp",value:c.lable,rows:3,onChange:e=>{o(e,"lable")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.input_type&&"elementor"==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Input Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The input field type. Available values are all HTML5 supported types."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.input_type),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"text",onClick:e=>{o(e,"input_type")}},"Text"),(0,e.createElement)("option",{value:"number",onClick:e=>{o(e,"input_type")}},"Number"),(0,e.createElement)("option",{value:"color",onClick:e=>{o(e,"input_type")}},"Color"),(0,e.createElement)("option",{value:"date",onClick:e=>{o(e,"input_type")}},"Date"),(0,e.createElement)("option",{value:"datetime-local",onClick:e=>{o(e,"input_type")}},"Datetime-Local"),(0,e.createElement)("option",{value:"month",onClick:e=>{o(e,"input_type")}},"Month"),(0,e.createElement)("option",{value:"time",onClick:e=>{o(e,"input_type")}},"Time"),(0,e.createElement)("option",{value:"week",onClick:e=>{o(e,"input_type")}},"Week"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.name&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Name"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The name must be unique and should only contain letters, numbers and underscore (_)."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.name,type:"text",onChange:e=>{o(e,"name")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.repeater_type&&"elementor"==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Repeater type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The name must be unique and should only contain letters, numbers and underscore (_)."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.repeater_type),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"Old",onClick:e=>{o(e,"repeater_type")}},"Old"),(0,e.createElement)("option",{value:"New",onClick:e=>{o(e,"repeater_type")}},"New"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.description&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-block-texarea"},(0,e.createElement)("span",{className:"wb-block-title"},(0,e.createElement)("span",null,"Description"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The description that appears below the field."))),(0,e.createElement)("textarea",{className:"wb-block-text-inp",value:c.description,type:"textarea",onChange:e=>{o(e,"description")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.title_field&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Title field"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Field that will be used as the repeater title in the fields list when the item is minimized."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.title_field,type:"text",onChange:e=>{o(e,"title_field")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.placeHolder&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Placeholder"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field placeholder that appears when the field has no values."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.placeHolder,type:"text",onChange:e=>{o(e,"placeHolder")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),!c||null==c.type||"textarea"!=c.type&&"wysiwyg"!=c.type&&"rawhtml"!=c.type&&"code"!=c.type?c&&c.type&&"number"==c.type&&c.number_setting&&c.number_setting.min&&c.number_setting.max&&c.number_setting.step?(0,e.createElement)("input",{className:"wb-block-text-inp",min:c.number_setting.min,max:c.number_setting.max,step:c.number_setting.step,value:c.defaultValue,type:"number",onChange:e=>{o(e,"defaultValue")}}):c&&c.type&&"color"==c.type?(0,e.createElement)("div",{className:"wkit-wb-default-color"},(0,e.createElement)("input",{className:"wkit-wb-default-color-inp",value:c.defaultValue,type:"color",onChange:e=>{o(e,"defaultValue")}})):c&&c.type&&"date-time"==c.type?(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.defaultValue,type:"datetime-local",onChange:e=>{o(e,"defaultValue")}}):c&&c.type&&"url"==c.type?(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.defaultValue,type:"url",onChange:e=>{o(e,"defaultValue")}}):c&&c.type&&"datetime"==c.type?(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.defaultValue,type:"datetime-local",onChange:e=>{o(e,"defaultValue")}}):c&&c.type&&"switcher"==c.type?(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.defaultValue,onChange:e=>{o(e,"switcher_defaultValue")}}),(0,e.createElement)("span",{className:"wb-slider"})):(c&&c.type&&c.input_type&&c.type,(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.defaultValue,type:"text",onChange:e=>{o(e,"defaultValue")}})):(0,e.createElement)("textarea",{className:"wb-block-text-inp",value:c.defaultValue,onChange:e=>{o(e,"defaultValue")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.alert_type&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Alert Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Select the type of Alert message."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.alert_type),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"warning",onClick:e=>{o(e,"alert_type")}},"Warning"),(0,e.createElement)("option",{value:"info",onClick:e=>{o(e,"alert_type")}},"info"),(0,e.createElement)("option",{value:"success",onClick:e=>{o(e,"alert_type")}},"Success"),(0,e.createElement)("option",{value:"danger",onClick:e=>{o(e,"alert_type")}},"Danger"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.parent_class&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,zl("Parent Class")),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},zl("Whether to select the parent class.")))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.parent_class,onChange:e=>{o(e,"parent_class")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.notice_type&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Notice Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Select the type of Noitce message."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.notice_type),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"warning",onClick:e=>{o(e,"notice_type")}},"Warning"),(0,e.createElement)("option",{value:"info",onClick:e=>{o(e,"notice_type")}},"info"),(0,e.createElement)("option",{value:"success",onClick:e=>{o(e,"notice_type")}},"Success"),(0,e.createElement)("option",{value:"danger",onClick:e=>{o(e,"notice_type")}},"Danger"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.dismissible&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Dismissible"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to prevent deleting the first notice."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.dismissible,onChange:e=>{o(e,"dismissible")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),c?.deprecatedValue&&"elementor"===a&&(0,e.createElement)(Gl,null,c?.deprecatedValue.map(((a,l)=>(0,e.createElement)(Gl,null,Object.entries(a).map((([a,n])=>(0,e.createElement)(Gl,null,(0,e.createElement)("div",{key:l,className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,a),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15",alt:"info icon"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Enter value for ",a,"."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:n,type:"text",onChange:e=>{((e,a,l,n)=>{let i=[...t.cardData];if(s.current.repeater)var r=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else r=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];[...r.deprecatedValue][l][n]=e.target.value,t.addToCarthandler(i)})(e,0,l,a)}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})))))))),c?.slider_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wb-slider-default"},c.size_units&&c.slider_defaultValue[0]&&c.size_units.map(((t,a)=>{if(1==t.checked&&t.type==c.slider_defaultValue[0])return(0,e.createElement)(Gl,{key:a},(0,e.createElement)("input",{type:"number",min:t.min,max:t.max,step:t.step,value:c.slider_defaultValue[1],className:"wb-slider-default-value",onChange:e=>{o(e,"slider_value","number")}}))})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"},onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.slider_defaultValue[0]),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},c.size_units&&c.size_units.map(((t,a)=>{if(1==t.checked)return(0,e.createElement)(Gl,{key:a},(0,e.createElement)("option",{key:a,onClick:e=>{o(e,"slider_value","unit")}},t.type))}))))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.s_template_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{p(e)}},(0,e.createElement)("label",null,"Select Template"),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{selected:!0},"Select Template"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.select_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{p(e)}},(0,e.createElement)("label",null,c.select_defaultValue[1]),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},c.options?.map(((t,a)=>{let l=[t.value,t.lable];return(0,e.createElement)(Gl,{key:a},(0,e.createElement)("option",{onClick:e=>{o(e,"select_defaultValue",l)}},t.lable))})))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.hTags_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{p(e)}},(0,e.createElement)("label",null,c.hTags_defaultValue),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"h1",onClick:e=>{o(e,"hTags_defaultValue")}},"H1"),(0,e.createElement)("option",{value:"h2",onClick:e=>{o(e,"hTags_defaultValue")}},"H2"),(0,e.createElement)("option",{value:"h3",onClick:e=>{o(e,"hTags_defaultValue")}},"H3"),(0,e.createElement)("option",{value:"h4",onClick:e=>{o(e,"hTags_defaultValue")}},"H4"),(0,e.createElement)("option",{value:"h5",onClick:e=>{o(e,"hTags_defaultValue")}},"H5"),(0,e.createElement)("option",{value:"h6",onClick:e=>{o(e,"hTags_defaultValue")}},"H6"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.align_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wb-icons"},c.align_option&&c.align_option.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},t.align_lable&&(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},t.align_lable,(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),["eicon-text-align-left","eicon-text-align-right","eicon-text-align-center","eicon-text-align-justify","eicon-arrow-up","eicon-arrow-down","eicon-arrow-right","eicon-arrow-left"].includes(t.align_icon)?t.align_value==c.align_defaultValue?(0,e.createElement)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${r}assets/images/wb-svg/${t.align_icon}.svg`,onClick:e=>{o(e,"align_defaultValue",t.align_value)}}):(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${r}assets/images/wb-svg/${t.align_icon}.svg`,onClick:e=>{o(e,"align_defaultValue",t.align_value)}}):t.align_value==c.align_defaultValue?(0,e.createElement)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${r}assets/images/wb-svg/info-white.svg`,onClick:e=>{o(e,"align_defaultValue",t.align_value)}}):(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${r}assets/images/wb-svg/info.svg`,onClick:e=>{o(e,"align_defaultValue",t.align_value)}})))))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),c?.options&&null!=c.select2_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{p(e)}},c.select2_defaultValue&&c.select2_defaultValue.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wkit-wb-multi-selected"},(0,e.createElement)("div",{className:"wkit-wb-remove-value",onClick:e=>{o(e,"select2_defaultValue",a,"remove")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("label",null,t.lable))))),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/plus-icon.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-35*(c.options.length-c.select2_defaultValue.length)+"px"}},c.options.map(((t,a)=>{let l={value:t.value,lable:t.lable};return(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wkit-wb-multiSelect-value"},c.select2_defaultValue.find((e=>e.value==l.value))&&c.select2_defaultValue.find((e=>e.lable==l.lable))?"":(0,e.createElement)(Gl,null,(0,e.createElement)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{o(e,"select2_defaultValue",l,"add")}}),(0,e.createElement)("label",{onClick:e=>{e.target.previousSibling.click()}},t.lable))))})))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.dimension_defaultValue&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-dimension_defaultValue"},(0,e.createElement)("div",{className:"wb-dimension_defaultValue-part"},(0,e.createElement)("div",{className:"wb-dimension_defaultValue-lable"},(0,e.createElement)("span",null,"Default Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wb-dimension_defaultValue-content"},(0,e.createElement)("input",{className:"wb-dimension-values wkit-top",type:"number",value:c.dimension_defaultValue.top,onChange:e=>{o(e,"dimension_defaultValue","top")}}),(0,e.createElement)("input",{className:"wb-dimension-values",type:"number",value:1==c.dimension_defaultValue.isLinked?c.dimension_defaultValue.top:c.dimension_defaultValue.right,onChange:e=>{o(e,"dimension_defaultValue",1==c.dimension_defaultValue.isLinked?"top":"right")}}),(0,e.createElement)("input",{className:"wb-dimension-values",type:"number",value:1==c.dimension_defaultValue.isLinked?c.dimension_defaultValue.top:c.dimension_defaultValue.bottom,onChange:e=>{o(e,"dimension_defaultValue",1==c.dimension_defaultValue.isLinked?"top":"bottom")}}),(0,e.createElement)("input",{className:"wb-dimension-values",type:"number",value:1==c.dimension_defaultValue.isLinked?c.dimension_defaultValue.top:c.dimension_defaultValue.left,onChange:e=>{o(e,"dimension_defaultValue",1==c.dimension_defaultValue.isLinked?"top":"left")}}),(0,e.createElement)("div",{className:1==c.dimension_defaultValue.isLinked?"wb-dimension-isLink wkit-wb-dark":"wb-dimension-isLink",onClick:e=>{o(e,"dimension_defaultValue","isLinked")}},(0,e.createElement)("img",{src:r+"assets/images/wb-svg/link.svg"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"}),(0,e.createElement)("div",{className:"wb-dimension-default_unit"},(0,e.createElement)("div",{className:"wb-dimension_defaultValue-lable"},(0,e.createElement)("span",null,"Select Default Unit"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The field default value."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",style:{width:"20%"},onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.dimension_defaultValue.unit),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},c.dimension_units&&c.dimension_units.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("option",{onClick:e=>{o(e,"dimension_defaultValue","unit")}},t)))))))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.rows&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Rows"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Number of rows."))),(0,e.createElement)("input",{className:"wb-block-number-inp",min:0,value:c.rows,type:"number",onChange:e=>{o(e,"rows")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.defaultCount&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Default Count"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"default Count of Repeater item."))),(0,e.createElement)("input",{className:"wb-block-number-inp",min:1==c.prevent_empty?1:0,value:c.defaultCount,type:"number",onChange:e=>{o(e,"defaultCount")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.show_unit&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("label",{className:"wb-block-title"},(0,e.createElement)("span",null,"Show Unit"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"An array of available CSS units like px, em, rem, %, deg, vh or custom."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.show_unit,onChange:e=>{o(e,"show_unit")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.size_units&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-number-setting"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Size Unit & Range"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"An array of ranges for each register size."))),(0,e.createElement)("div",{className:"wb-select-unit-label"},(0,e.createElement)("label",{style:{width:"20%"}}),(0,e.createElement)("div",{className:"wb-select-unit-content"},(0,e.createElement)("label",null,"Min"),(0,e.createElement)("label",null,"Max"),(0,e.createElement)("label",null,"Step"))),c.size_units.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wb-select-unit"},(0,e.createElement)("div",{className:"wb-select-unit-checkbox"},(0,e.createElement)("input",{className:"wb-select-unit-inp",id:`wb-${t.type}-select`,type:"checkbox",checked:1==t.checked,onChange:e=>{o(e,"size_units",a,"checked")}}),(0,e.createElement)("label",{style:{opacity:1==t.checked?"1":"0.5"},htmlFor:`wb-${t.type}-select`},t.type)),(0,e.createElement)("div",{className:"wb-unit-range-content"},(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("input",{className:"wb-num-inp min",disabled:!t.checked,value:t.min,type:"number",onChange:e=>{o(e,"size_units",a,"min")}})),(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("input",{className:"wb-num-inp max",disabled:!t.checked,value:t.max,type:"number",onChange:e=>{o(e,"size_units",a,"max")}})),(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("input",{className:"wb-num-inp step",disabled:!t.checked,value:t.step,type:"number",onChange:e=>{o(e,"size_units",a,"step")}})))))))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.dimension_units&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-dimension-unit"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Size Unit"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"An array of available CSS units like px, em, rem, %, deg, vh or custom."))),(0,e.createElement)("div",{className:"wb-dimension-unit"},(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"px",type:"checkbox",checked:!!c.dimension_units.includes("px"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"px")),(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"%",type:"checkbox",checked:!!c.dimension_units.includes("%"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"%")),(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"deg",type:"checkbox",checked:!!c.dimension_units.includes("deg"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"deg")),(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"rem",type:"checkbox",checked:!!c.dimension_units.includes("rem"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"rem")),(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"em",type:"checkbox",checked:!!c.dimension_units.includes("em"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"em")),(0,e.createElement)("div",{className:"wb-units"},(0,e.createElement)("input",{value:"vh",type:"checkbox",checked:!!c.dimension_units.includes("vh"),onChange:e=>{o(e,"dimension_units")}}),(0,e.createElement)("label",null,"vh")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.label_on&&null!=c.label_off&&"elementor"==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Switcher Label"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The label for the “unchecked” state and “checked” state."))),(0,e.createElement)("div",{className:"wkit-wb-switcher"},(0,e.createElement)("div",{className:"wb-switcher-lable"},(0,e.createElement)("div",{className:"wb-block-swither-title"},"Switch is on"),(0,e.createElement)("input",{className:"wb-switcher-lable-inp",value:c.label_on,type:"text",placeholder:"Yes",onChange:e=>{o(e,"label_on")}})),(0,e.createElement)("div",{className:"wb-switcher-lable"},(0,e.createElement)("div",{className:"wb-block-swither-title"},"Switch is off"),(0,e.createElement)("input",{className:"wb-switcher-lable-inp",value:c.label_off,type:"text",placeholder:"No",onChange:e=>{o(e,"label_off")}})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.url_options&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Options"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Turn on for url_options value."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.url_options,onChange:e=>{o(e,"url_options")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.is_external&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Is External"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to open the url in the same tab or in a new one."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.is_external,onChange:e=>{o(e,"is_external")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.nofollow&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"No Follow"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to add nofollow attribute."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.nofollow,onChange:e=>{o(e,"nofollow")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.custom_attributes&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Attributes"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Custom attributes string that come as a string of comma-delimited key|value pairs."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.custom_attributes,type:"text",onChange:e=>{o(e,"custom_attributes")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),c&&null!=c.return_value&&"bricks"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Return Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The value returned when checked."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.return_value,type:"text",onChange:e=>{o(e,"return_value")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.showLable&&"bricks"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Show Label"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to display the label."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.showLable,onChange:e=>{o(e,"showLable")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.lableBlock&&1==c?.showLable&&"switcher"!=c?.type&&(u=c?.type,"gutenberg"!=a||!!["text","number","textarea","select","select2","headingtags"].includes(u))&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Label Block"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to display the label in a separate line."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.lableBlock,onChange:e=>{o(e,"lableBlock")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.media_types&&"bricks"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-block-title wkit-bottom-space"},(0,e.createElement)("span",null,"Media Types"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Supported media types. Available values are image, video, and svg."))),(0,e.createElement)("div",{className:"wb-option-select"},(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==c.media_types.indexOf('"image"'),onChange:e=>{o(e,"media_types","image")}}),(0,e.createElement)("label",{htmlFor:"select-1"},"gutenberg"==a?"Image & Svg":"Image")),(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==c.media_types.indexOf('"video"'),onChange:e=>{o(e,"media_types","video")}}),(0,e.createElement)("label",{htmlFor:"select-2"},"Video")),"gutenberg"!==a&&(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:-1!==c.media_types.indexOf('"svg"'),onChange:e=>{o(e,"media_types","svg")}}),(0,e.createElement)("label",{htmlFor:"select-3"},"Svg")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.skin&&"gutenberg"!==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-skin-content"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Types"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Used to change the appearance of the control. There are two options: media or inline. The inline skin’s design is based on the Choose Control."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.skin),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"media",onClick:e=>{o(e,"skin")}},"Media"),(0,e.createElement)("option",{value:"inline",onClick:e=>{o(e,"skin")}},"Inline"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.nha_array&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-block-type"},(0,e.createElement)("div",{className:"wkit-wb-option"},(0,e.createElement)("span",null,"Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to display the NHA type."))),(0,e.createElement)("div",{className:"wb-NHA-option-select"},(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("div",{className:"wb-select-component-content"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:!(!c.nha_array[0]||null===c?.nha_array?.[0]),onChange:e=>{o(e,"nha_array",0)}}),(0,e.createElement)("input",{className:"wb-select-component-name",type:"text",value:null!=c?.nha_array_lable?.[0]?c?.nha_array_lable?.[0]:n(c?.nha_array?.[0],"Normal"),onChange:e=>{o(e,"nha_array_name",0)},onBlur:e=>{c?.nha_array_lable?.[0]||o(e,"nha_null_name",0)}}))),(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("div",{className:"wb-select-component-content"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:!(!c.nha_array[1]||null===c?.nha_array?.[1]),onChange:e=>{o(e,"nha_array",1)}}),(0,e.createElement)("input",{className:"wb-select-component-name",type:"text",value:null!=c?.nha_array_lable?.[1]?c?.nha_array_lable?.[1]:n(c?.nha_array?.[1],"Hover"),onChange:e=>{o(e,"nha_array_name",1)},onBlur:e=>{c?.nha_array_lable?.[1]||o(e,"nha_null_name",1)}}))),(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("div",{className:"wb-select-component-content"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:!(!c?.nha_array?.[2]||null===c.nha_array[2]),onChange:e=>{o(e,"nha_array",2)}}),(0,e.createElement)("input",{className:"wb-select-component-name",type:"text",value:null!=c?.nha_array_lable?.[2]?c.nha_array_lable[2]:n(c?.nha_array?.[2],"Active"),onChange:e=>{o(e,"nha_array_name",2)},onBlur:e=>{c?.nha_array_lable?.[2]||o(e,"nha_null_name",2)}})))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.types&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wb-block-type"},(0,e.createElement)("div",{className:"wkit-wb-option wkit-bottom-space"},(0,e.createElement)("span",null,"Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The specific background types to use. Available types are classic, gradient and video. Default is an empty array, including all the types."))),(0,e.createElement)("div",{className:"wb-option-select"},"elementor"==a&&(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==c.types.indexOf('"classic"'),onChange:e=>{o(e,"types","classic")}}),(0,e.createElement)("label",{htmlFor:"select-1"},"Classic")),"gutenberg"==a&&(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==c.types.indexOf('"classic"'),onChange:e=>{o(e,"types","classic")}}),(0,e.createElement)("label",{htmlFor:"select-1"},"Color & Image")),(0,e.createElement)("div",{className:"wb-select-component"},(0,e.createElement)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==c.types.indexOf('"gradient"'),onChange:e=>{o(e,"types","gradient")}}),(0,e.createElement)("label",{htmlFor:"select-2"},"Gradient"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.options&&"headingtags"!=c.type&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-options-main"},(0,e.createElement)("div",{className:"wkit-wb-option"},(0,e.createElement)("span",null,"Drop Down Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"An array of key => value pairs: [ 'key' => 'value', ... ]"))),(0,e.createElement)("div",{className:"wb-options-content"},(0,e.createElement)("label",{className:"wb-options-lable"},"Value"),(0,e.createElement)("label",{className:"wb-options-lable"},"Options"),"styleimage"==c.type&&(0,e.createElement)("label",{className:"wb-options-lable"},"Svg")),(0,e.createElement)("div",{className:"wb-option-feild"},c.options.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wb-option"},(0,e.createElement)("input",{className:`wb-options-inp val ${i()}`,type:"text",value:t.value,placeholder:`value-${a}`,onChange:e=>{o(e,"options_value",a)}}),(0,e.createElement)("input",{className:`wb-options-inp opt ${i()}`,opt:!0,type:"text",value:t.lable,placeholder:`label-${a}`,onChange:e=>{o(e,"options_lable",a)}}),"styleimage"==c.type&&(0,e.createElement)("input",{className:`wb-options-inp opt ${i()}`,opt:!0,type:"text",value:t.svg,placeholder:`svg-${a}`,onChange:e=>{o(e,"options_svg",a)}}),(0,e.createElement)("div",{className:"wb-option-close",onClick:()=>{m(a,"options")}},(0,e.createElement)("img",{className:"popup-inp-remove-icon",src:r+"assets/images/wb-svg/popup-remove.svg"})))))),(0,e.createElement)("div",{className:"wb-add-option",onClick:()=>{d("options",c.options.length)}},(0,e.createElement)("svg",{className:"wb-addOption-icon",width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})),(0,e.createElement)("label",{className:"wb-addOption-lable"},"Add")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.align_option&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-options-main"},(0,e.createElement)("div",{className:"wkit-wb-option"},(0,e.createElement)("span",null,"Options"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"An array of key => value pairs: [ 'key' => 'value', ... ]"))),(0,e.createElement)("div",{className:"wb-options-content"},(0,e.createElement)("label",{className:"wb-options-lable",style:{width:"25%"}},"Label"),(0,e.createElement)("label",{className:"wb-options-lable",style:{width:"25%"}},"Value"),(0,e.createElement)("label",{className:"wb-options-lable",style:{width:"45%"}},"Icon")),(0,e.createElement)("div",{className:"wb-option-feild"},c.align_option.map(((t,l)=>(0,e.createElement)(Gl,{key:l},(0,e.createElement)("div",{className:"wb-option wkit-wb-align-options"},(0,e.createElement)("input",{className:`wb-options-inp val-${i()}`,style:{width:"25%"},type:"text",value:t.align_lable,placeholder:`label-${l}`,onChange:e=>{o(e,"align_lable",l)}}),(0,e.createElement)("input",{className:`wb-options-inp opt-${i()}`,style:{width:"25%"},type:"text",value:t.align_value,placeholder:`value-${l}`,onChange:e=>{o(e,"align_value",l)}}),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)},style:{minWidth:"40%"}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},["eicon-text-align-left","eicon-text-align-right","eicon-text-align-center","eicon-text-align-justify","eicon-arrow-up","eicon-arrow-down","eicon-arrow-right","eicon-arrow-left","align_title","align_svg"].includes(t.align_icon)?"align_title"==t.align_icon||"align_svg"==t.align_icon?(0,e.createElement)("input",{type:"text",className:"wkit-wb-choose-inp",placeholder:t.align_icon,value:t[t.align_icon],onChange:e=>{o(e,t.align_icon,l)},style:{width:"100%"}}):(0,e.createElement)("label",{className:"wkit-wb-choose-inp"},t.align_icon):(0,e.createElement)("input",{type:"text",className:"wkit-wb-choose-inp",value:t.align_icon,placeholder:"custome-icon",onChange:e=>{o(e,"align_icon",l)},style:{width:"100%"}}),(0,e.createElement)("img",{className:"wkit-wb-choose-img",src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"eicon-text-align-left",onClick:e=>{o(e,"align_icon",l)}},"Align-Left"),(0,e.createElement)("option",{value:"eicon-text-align-right",onClick:e=>{o(e,"align_icon",l)}},"Align-Right"),(0,e.createElement)("option",{value:"eicon-text-align-center",onClick:e=>{o(e,"align_icon",l)}},"Align-Center"),(0,e.createElement)("option",{value:"eicon-text-align-justify",onClick:e=>{o(e,"align_icon",l)}},"Align-Justify"),(0,e.createElement)("option",{value:"eicon-arrow-up",onClick:e=>{o(e,"align_icon",l)}},"Up-Arrow"),(0,e.createElement)("option",{value:"eicon-arrow-down",onClick:e=>{o(e,"align_icon",l)}},"Down-Arrow"),(0,e.createElement)("option",{value:"eicon-arrow-right",onClick:e=>{o(e,"align_icon",l)}},"Right-Arrow"),(0,e.createElement)("option",{value:"eicon-arrow-left",onClick:e=>{o(e,"align_icon",l)}},"Left-Arrow"),(0,e.createElement)("option",{value:"",onClick:e=>{o(e,"align_icon",l)}},"Custom Icon"),"gutenberg"==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("option",{value:"align_title",onClick:e=>{o(e,"align_icon",l)}},"Custom Title"),(0,e.createElement)("option",{value:"align_svg",onClick:e=>{o(e,"align_icon",l)}},"Custom Svg")))),(0,e.createElement)("div",{className:"wb-option-close",onClick:()=>{m(l,"align_option")}},(0,e.createElement)("img",{src:r+"assets/images/wb-svg/popup-remove.svg"})))))),(0,e.createElement)("div",{className:"wb-add-option",onClick:()=>{d("align_option",c.align_option.length)}},(0,e.createElement)("svg",{className:"wb-addOption-icon",width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})),(0,e.createElement)("label",{className:"wb-addOption-lable"},"Add")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.alignType&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Align Type"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Select the Align CSS property you want to use."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.alignType),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"text-align",onClick:e=>{o(e,"alignType")}},"text-align"),(0,e.createElement)("option",{value:"justify-content",onClick:e=>{o(e,"alignType")}},"justify-content"),(0,e.createElement)("option",{value:"align-items",onClick:e=>{o(e,"alignType")}},"align-items"),(0,e.createElement)("option",{value:"flex-direction",onClick:e=>{o(e,"alignType")}},"flex-direction"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.number_setting&&"gutenberg"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:`wb-block-name ${c.name}`},(0,e.createElement)("div",{className:"wb-block-title"},"Number Setting"),(0,e.createElement)("div",{className:"wb-number-setting-content"},(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("div",{className:"wb-number-setting-title"},(0,e.createElement)("span",null,"Min"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The minimum number (only affects the spinners, the user can still type a lower value)."))),(0,e.createElement)("input",{className:`wb-num-inp ${c.name}`,id:c.name,name:c.name,min:!0,value:c.number_setting.min,type:"number",onChange:e=>{o(e,"num-min")}})),(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("div",{className:"wb-number-setting-title"},(0,e.createElement)("span",null,"Max"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext wkit-center-side-tooltip"},"The minimum and maximum number (only affects the spinners, the user can still type a lower value)."))),(0,e.createElement)("input",{className:"wb-num-inp max",value:c.number_setting.max,type:"number",onChange:e=>{o(e,"num-max")}})),(0,e.createElement)("div",{className:"wb-num-feild"},(0,e.createElement)("div",{className:"wb-number-setting-title"},(0,e.createElement)("span",null,"Step"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext wkit-right-side-tooltip"},"The intervals value that will be incremented or decremented when using the controls’ spinners. Default is empty, the value will be incremented by 1."))),(0,e.createElement)("input",{className:"wb-num-inp step",value:c.number_setting.step,type:"number",onChange:e=>{o(e,"num-step")}})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.language&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-language-setting"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("div",{className:"wkit-wb-black-division"},(0,e.createElement)("span",null,"Code"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to display the label.")))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",{style:{textTransform:"uppercase"}},c.language),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"html",onClick:e=>{o(e,"language")}},"HTML"),(0,e.createElement)("option",{value:"css",onClick:e=>{o(e,"language")}},"CSS"),(0,e.createElement)("option",{value:"javascript",onClick:e=>{o(e,"language")}},"JAVASCRIPT")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.exclude_inline_options&&"inline"==c.skin&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Exclude Inline Options"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Used with the inline skin only, to hide an option (Icon Library/SVG) from the inline icon control’s buttons."))),(0,e.createElement)("select",{className:`wb-category-option ${c.name}`,onChange:e=>{o(e,"exclude_inline_options")}},(0,e.createElement)("option",{value:"none",selected:"none"===c.exclude_inline_options},"None"),(0,e.createElement)("option",{value:"icon",selected:"icon"===c.exclude_inline_options},"Icon"),(0,e.createElement)("option",{value:"svg",selected:"svg"===c.exclude_inline_options},"Svg")))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.separator&&"bricks"!==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Separator"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Set the position of the control separator. Available values are default, before and after. default will position the separator depending on the control type. before / after will position the separator before/after the control."))),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,c.separator),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"default",onClick:e=>{o(e,"separator")}},"Default"),(0,e.createElement)("option",{value:"before",onClick:e=>{o(e,"separator")}},"Before"),(0,e.createElement)("option",{value:"after",onClick:e=>{o(e,"separator")}},"After"))))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.controlClass&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Classes"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Add custom classes to control wrapper in the panel."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.controlClass,type:"text",onChange:e=>{o(e,"controlClass")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.selectors&&null!=c.selector_value&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-selector-content wb-selector-value"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Selectors Value"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Add Custom Classes to control Class in the panel"))),(0,e.createElement)("input",{type:"text",value:c.selector_value,className:"wb-block-text-inp",onChange:e=>{o(e,"selector_value")}})))),(0,e.createElement)("hr",{className:"wb-controller-hr"}),(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-selector-content wb-selector-class"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Selectors"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Add Custom Classes to control Class in the panel"))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.selectors,type:"text",onChange:e=>{o(e,"selectors")}})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.selectors&&"align"==c.type&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-selector-content wb-selector-class"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Selectors"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Add Custom Classes to control Class in the panel"))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.selectors,type:"text",onChange:e=>{o(e,"selectors")}})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.selector&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Selectors"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"The name must be unique and should only contain letters, numbers and underscore (_)."))),(0,e.createElement)("input",{className:"wb-block-text-inp",value:c.selector,type:"text",onChange:e=>{o(e,"selector")}}))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.multiple&&"bricks"!==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Multiple"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to allow multiple value selection."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.multiple,onChange:e=>{o(e,"multiple")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.alpha&&"bricks"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Alpha"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to allow alpha channel."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.alpha,onChange:e=>{o(e,"alpha")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.global&&"bricks"!=a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Global Color"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Default color in RGB, RGBA, or HEX format."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.global,onChange:e=>{o(e,"global")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.prevent_empty&&"bricks"!==a&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Prevent Empty"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to prevent deleting the first repeater field. To keep at least one repeater field."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.prevent_empty,onChange:e=>{o(e,"prevent_empty")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.responsive&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("label",{className:"wb-block-title"},(0,e.createElement)("span",null,"Responsive"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Switch to Mobile, Laptop, Tablet mode"))),(0,e.createElement)("label",{className:"wb-switch",style:"slider"==c?.type&&"gutenberg"==a&&1==c?.show_unit?{opacity:"0.5"}:{}},(0,e.createElement)("input",{type:"checkbox",checked:c.responsive,onChange:e=>{o(e,"responsive")},disabled:"slider"==c?.type&&"gutenberg"==a&&1==c?.show_unit}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.dynamic&&("elementor"===a||"gutenberg"===a&&"slider"!==c.type)&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name"},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("label",{className:"wb-block-title"},(0,e.createElement)("span",null,"Dynamic"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Turn on for dynamic value"))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.dynamic,onChange:e=>{o(e,"dynamic")}}),(0,e.createElement)("span",{className:"wb-slider"})))),(0,e.createElement)("hr",{className:"wb-controller-hr"})),null!=c?.condition_value?.values&&(0,e.createElement)(Gl,null,(0,e.createElement)("div",{className:"wb-block-name",style:{marginBottom:"2px"}},(0,e.createElement)("div",{className:"wp-block-wrapper"},(0,e.createElement)("div",{className:"wb-block-title"},(0,e.createElement)("span",null,"Conditions"),(0,e.createElement)("div",{className:"wkit-wb-tooltip"}," ",(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:r+"assets/images/wb-svg/info.svg",width:"15"}),(0,e.createElement)("span",{className:"wkit-wb-tooltiptext"},"Whether to apply the conditions."))),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:c.conditions,onChange:e=>{o(e,"conditions")}}),(0,e.createElement)("span",{className:"wb-slider"})))),c&&c.conditions&&1==c.conditions&&(0,e.createElement)(Gl,null,"bricks"!=a&&(0,e.createElement)("div",{className:"wb-condition-relation"},(0,e.createElement)("label",{className:"wb-relation-lable"},"Relation of Condition"),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",{style:{textTransform:"uppercase"}},c.condition_value.relation),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"or",onClick:e=>{o(e,"condition_relation")}},"OR"),(0,e.createElement)("option",{value:"and",onClick:e=>{o(e,"condition_relation")}},"AND")))),(0,e.createElement)("div",{className:"wb-options-main"},(0,e.createElement)("div",{className:"wb-options-content"},(0,e.createElement)("label",{className:"wb-options-lable"},"Name"),(0,e.createElement)("label",{className:"wb-options-lable"},"Operator"),(0,e.createElement)("label",{className:"wb-options-lable"},"Value")),(0,e.createElement)("div",{className:"wb-option-feild"},c.condition_value.values.map(((t,a)=>(0,e.createElement)(Gl,{key:a},(0,e.createElement)("div",{className:"wb-option"},(0,e.createElement)("div",{className:"wkit-wb-dd-toption"},(0,e.createElement)("input",{className:"wkit-wb-options-inp",type:"text",value:t.name,placeholder:`name-${a}`,onChange:e=>{o(e,"conditions_name",a)}})),(0,e.createElement)("div",{className:"wkit-wb-dd-toption"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{p(e)},style:{width:"100%"}},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header"},(0,e.createElement)("label",null,t.operator),(0,e.createElement)("img",{src:r+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{value:"==",onClick:e=>{o(e,"conditions_operator",a)}},"=="),(0,e.createElement)("option",{value:"!=",onClick:e=>{o(e,"conditions_operator",a)}},"!=")))),(0,e.createElement)("div",{className:"wkit-wb-dd-toption"},(0,e.createElement)("input",{className:"wkit-wb-options-inp",type:"text",value:t.value,placeholder:`value-${a}`,onChange:e=>{o(e,"conditions_value",a)}})),(0,e.createElement)("div",{className:"wb-option-close",onClick:()=>{m(a,"conditions")}},(0,e.createElement)("img",{className:"popup-inp-remove-icon",src:r+"assets/images/wb-svg/popup-remove.svg"})))))),(0,e.createElement)("div",{className:"wb-add-option",onClick:()=>{d("conditions")}},(0,e.createElement)("svg",{className:"wb-addOption-icon",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})),(0,e.createElement)("label",{className:"wb-addOption-lable"},"Add")))))))));var u})),Xl=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C4.34315 3 3 4.34315 3 6V15C3 15.5523 3.44772 16 4 16C4.55228 16 5 15.5523 5 15V6C5 5.44772 5.44772 5 6 5H15C15.5523 5 16 4.55228 16 4C16 3.44772 15.5523 3 15 3H6ZM6 33C4.34315 33 3 31.6569 3 30V21C3 20.4477 3.44772 20 4 20C4.55228 20 5 20.4477 5 21V30C5 30.5523 5.44772 31 6 31H15C15.5523 31 16 31.4477 16 32C16 32.5523 15.5523 33 15 33H6ZM33 6C33 4.34315 31.6569 3 30 3H21C20.4477 3 20 3.44772 20 4C20 4.55228 20.4477 5 21 5H30C30.5523 5 31 5.44772 31 6V15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15V6ZM30 33C31.6569 33 33 31.6569 33 30V21C33 20.4477 32.5523 20 32 20C31.4477 20 31 20.4477 31 21V30C31 30.5523 30.5523 31 30 31H21C20.4477 31 20 31.4477 20 32C20 32.5523 20.4477 33 21 33H30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9C8 8.44772 8.44772 8 9 8H18H27C27.5523 8 28 8.44772 28 9V11C28 11.5523 27.5523 12 27 12C26.4477 12 26 11.5523 26 11V10H19L19 26H22C22.5523 26 23 26.4477 23 27C23 27.5523 22.5523 28 22 28H18H14C13.4477 28 13 27.5523 13 27C13 26.4477 13.4477 26 14 26H17L17 10H10V11C10 11.5523 9.55228 12 9 12C8.44772 12 8 11.5523 8 11V9Z"})),keyword:["text"]},{name:"number",label:"Number",icon:(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 11C19 12.6569 17.6569 14 16 14C14.3431 14 13 12.6569 13 11C13 9.34315 14.3431 8 16 8C17.6569 8 19 9.34315 19 11ZM19.1435 14.8884C20.276 13.9718 21 12.5704 21 11C21 8.23858 18.7614 6 16 6C13.2386 6 11 8.23858 11 11C11 12.5704 11.724 13.9718 12.8565 14.8884C11.1425 15.9447 10 17.8389 10 20C10 23.3137 12.6863 26 16 26C19.3137 26 22 23.3137 22 20C22 17.8389 20.8575 15.9447 19.1435 14.8884ZM16 16C13.7909 16 12 17.7909 12 20C12 22.2091 13.7909 24 16 24C18.2091 24 20 22.2091 20 20C20 17.7909 18.2091 16 16 16Z"})),keyword:["number"]},{name:"textarea",label:"Textarea",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4ZM26.7074 26.9262C26.3168 27.3167 26.3168 27.9499 26.7074 28.3404C27.0979 28.7309 27.731 28.7309 28.1216 28.3404L30.3403 26.1217C30.7308 25.7312 30.7308 25.098 30.3403 24.7075C29.9497 24.317 29.3166 24.317 28.9261 24.7075L26.7074 26.9262ZM22.7066 28.3409C22.3161 27.9504 22.3161 27.3172 22.7066 26.9267L28.9266 20.7067C29.3171 20.3162 29.9503 20.3162 30.3408 20.7067C30.7314 21.0972 30.7314 21.7304 30.3408 22.1209L24.1208 28.3409C23.7303 28.7314 23.0971 28.7314 22.7066 28.3409Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 26.9257C18.3166 27.3162 18.3166 27.9494 18.7071 28.3399C19.0976 28.7304 19.7308 28.7304 20.1213 28.3399L30.3399 18.1213C30.7304 17.7308 30.7304 17.0977 30.3399 16.7071C29.9494 16.3166 29.3162 16.3166 28.9257 16.7071L18.7071 26.9257Z"})),keyword:["textarea"]},{name:"switcher",label:"Toggle",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 11H11C7.13401 11 4 14.134 4 18C4 21.866 7.13401 25 11 25H25C28.866 25 32 21.866 32 18C32 14.134 28.866 11 25 11ZM11 9C6.02944 9 2 13.0294 2 18C2 22.9706 6.02944 27 11 27H25C29.9706 27 34 22.9706 34 18C34 13.0294 29.9706 9 25 9H11Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 21C26.6569 21 28 19.6569 28 18C28 16.3431 26.6569 15 25 15C23.3431 15 22 16.3431 22 18C22 19.6569 23.3431 21 25 21ZM25 23C27.7614 23 30 20.7614 30 18C30 15.2386 27.7614 13 25 13C22.2386 13 20 15.2386 20 18C20 20.7614 22.2386 23 25 23Z"})),keyword:["toggle","switcher","checkbox"]},{name:"popover",label:"GroupPopover",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 25H8L8 31H28V25ZM8 23C6.89543 23 6 23.8954 6 25V31C6 32.1046 6.89543 33 8 33H28C29.1046 33 30 32.1046 30 31V25C30 23.8954 29.1046 23 28 23H8Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1165 16L18 19.0758L20.8835 16H31V5H5V16H15.1165ZM21.75 18H31C32.1046 18 33 17.1046 33 16V5C33 3.89543 32.1046 3 31 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H14.25L17.2705 21.2218C17.6655 21.6432 18.3345 21.6432 18.7295 21.2218L21.75 18Z"})),keyword:["grouppopover","popover","popup"]},{name:"select",label:"Select",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 5H5L5 31H31V5ZM5 3C3.89543 3 3 3.89543 3 5V31C3 32.1046 3.89543 33 5 33H31C32.1046 33 33 32.1046 33 31V5C33 3.89543 32.1046 3 31 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.67132 21.1958C7.04208 20.8246 7.6432 20.8246 8.01396 21.1958L13.5299 26.7175C13.891 27.0789 14.4843 27.0711 14.8551 26.7L28.0386 13.5027C28.3997 13.1413 28.9851 13.1413 29.3462 13.5027V13.5027C29.7073 13.8642 29.7073 14.4503 29.3462 14.8117L16.1627 28.0089C15.0504 29.1224 13.2706 29.1459 12.1873 28.0615L6.67132 22.5398C6.30056 22.1687 6.30056 21.5669 6.67132 21.1958V21.1958Z"})),keyword:["select","dropdown"]},{name:"select2",label:"Select2",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6C6 4.34315 7.34315 3 9 3H30C31.6569 3 33 4.34315 33 6V27C33 28.6569 31.6569 30 30 30H27V28H30C30.5523 28 31 27.5523 31 27V6C31 5.44771 30.5523 5 30 5H9C8.44772 5 8 5.44772 8 6V9H6V6Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 9H27V31H5L5 9ZM3 9C3 7.89543 3.89543 7 5 7H27C28.1046 7 29 7.89543 29 9V31C29 32.1046 28.1046 33 27 33H5C3.89543 33 3 32.1046 3 31V9ZM24.7475 14.6643C25.1144 14.2515 25.0771 13.6194 24.6643 13.2525C24.2515 12.8857 23.6194 12.9229 23.2525 13.3357L13.3349 24.4951L8.74711 19.3387C8.38 18.9261 7.74791 18.8892 7.3353 19.2563C6.92269 19.6234 6.8858 20.2555 7.25291 20.6681L12.5882 26.6647C12.7781 26.8781 13.05 27.0001 13.3356 27C13.6212 26.9999 13.8931 26.8778 14.0828 26.6643L24.7475 14.6643Z"})),keyword:["select2","multiselect","multidropdown"]},{name:"choose",label:"RadioAdvanced",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H4ZM4 21C3.44772 21 3 21.4477 3 22C3 22.5523 3.44772 23 4 23H32C32.5523 23 33 22.5523 33 22C33 21.4477 32.5523 21 32 21H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C3.44772 12 3 12.4477 3 13C3 13.5523 3.44772 14 4 14H25C25.5523 14 26 13.5523 26 13C26 12.4477 25.5523 12 25 12H4ZM4 30C3.44772 30 3 30.4477 3 31C3 31.5523 3.44772 32 4 32H20C20.5523 32 21 31.5523 21 31C21 30.4477 20.5523 30 20 30H4Z"})),keyword:["choose","radioadvanced","align","justify"]},{name:"color",label:"Color",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.9336 13.4452C24.9645 13.1381 23.9535 12.9831 22.9369 12.9859C21.1834 12.986 19.4608 13.4474 17.9423 14.324C16.4237 13.4474 14.7012 12.986 12.9477 12.9859C11.2291 12.9864 9.5398 13.43 8.04297 14.274C8.12311 14.9736 8.28746 15.6609 8.53244 16.3211C9.33741 18.5936 10.9376 20.4982 13.0376 21.6835C12.9771 22.1102 12.9471 22.5406 12.9477 22.9716C12.9444 24.3474 13.2278 25.7087 13.7799 26.9689C14.332 28.2291 15.1406 29.3606 16.1542 30.2912C16.6951 30.8036 17.2954 31.2495 17.9423 31.6193C18.5892 31.2495 19.1894 30.8036 19.7303 30.2912C20.744 29.3606 21.5526 28.2291 22.1047 26.9689C22.6567 25.7087 22.9401 24.3474 22.9369 22.9716C22.9375 22.5406 22.9074 22.1102 22.847 21.6835C24.9469 20.4982 26.5471 18.5936 27.3521 16.3211C27.5971 15.6609 27.7614 14.9736 27.8416 14.274C27.2364 13.9317 26.5969 13.6539 25.9336 13.4452ZM17.9423 16.7405C19.1687 17.7209 20.0789 19.0407 20.5594 20.5351C18.8641 21.1225 17.0204 21.1225 15.3251 20.5351C15.8056 19.0407 16.7159 17.7209 17.9423 16.7405ZM10.3305 15.4224C11.1727 15.1328 12.057 14.9843 12.9477 14.983C14.0513 14.9823 15.143 15.2101 16.1542 15.6521C14.962 16.7462 14.0594 18.1185 13.527 19.6464C12.012 18.6427 10.8845 17.1528 10.3305 15.4224ZM17.9423 29.2027C17.0078 28.4548 16.2533 27.5065 15.7346 26.428C15.2159 25.3495 14.9463 24.1683 14.9455 22.9716C14.9455 22.8218 14.9455 22.6621 14.9455 22.5123C16.8958 23.1288 18.9888 23.1288 20.939 22.5123C20.939 22.6621 20.939 22.8218 20.939 22.9716C20.9383 24.1683 20.6686 25.3495 20.1499 26.428C19.6312 27.5065 18.8768 28.4548 17.9423 29.2027ZM22.3575 19.6364C21.8252 18.1085 20.9226 16.7362 19.7303 15.6421C20.7422 15.2036 21.834 14.9792 22.9369 14.983C23.8275 14.9843 24.7118 15.1328 25.554 15.4224C24.998 17.1491 23.8707 18.6352 22.3575 19.6364Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9423 3C15.293 3 12.7522 4.05207 10.8789 5.92475C9.00556 7.79744 7.95313 10.3374 7.95313 12.9857C7.95254 13.4135 7.98214 13.8408 8.0417 14.2644C6.90226 14.9141 5.90194 15.7817 5.0978 16.8177C4.29336 17.8541 3.701 19.0388 3.35455 20.304C3.0081 21.5692 2.91433 22.8903 3.07861 24.1918C3.24289 25.4933 3.66199 26.7496 4.31199 27.8892C4.96198 29.0288 5.83015 30.0292 6.86691 30.8333C7.90367 31.6375 9.08873 32.2297 10.3544 32.576C11.6201 32.9223 12.9416 33.0161 14.2436 32.8518C15.5455 32.6876 16.8023 32.2687 17.9423 31.6189C17.2954 31.2491 16.6951 30.8032 16.1542 30.2908C14.3207 31.0993 12.2502 31.1897 10.3531 30.544C8.45611 29.8983 6.871 28.5636 5.912 26.8046C4.95301 25.0456 4.69013 22.9906 5.17548 21.0469C5.66083 19.1033 6.85897 17.4129 8.53243 16.3107C8.28857 15.6536 8.12461 14.9696 8.04407 14.2733C8.64896 13.9313 9.2881 13.6537 9.95097 13.4451V12.9857C9.95097 10.867 10.7929 8.8351 12.2916 7.33695C13.7903 5.8388 15.8229 4.99715 17.9423 4.99715C20.0618 4.99715 22.0944 5.8388 23.5931 7.33695C25.0918 8.8351 25.9337 10.867 25.9337 12.9857V13.4451C26.6004 13.6532 27.2433 13.931 27.8516 14.2739C27.9087 13.8469 27.9354 13.4165 27.9315 12.9857C27.9315 10.3374 26.8791 7.79744 25.0058 5.92475C23.1324 4.05207 20.5916 3 17.9423 3ZM27.3522 16.321C27.5972 15.6608 27.7615 14.9735 27.8417 14.2739C29 14.9137 30.0195 15.7771 30.8412 16.814C31.6628 17.851 32.2702 19.0408 32.628 20.3144C32.9858 21.588 33.0869 22.92 32.9254 24.2329C32.7639 25.5459 32.343 26.8137 31.6873 27.9627C31.0315 29.1117 30.1539 30.119 29.1054 30.9261C28.057 31.7332 26.8585 32.324 25.5797 32.6642C24.3009 33.0044 22.9672 33.0872 21.6561 32.9078C20.3451 32.7284 19.0827 32.2904 17.9424 31.6191C18.5887 31.2525 19.189 30.81 19.7305 30.301C21.564 31.1095 23.6345 31.1999 25.5315 30.5542C27.4285 29.9085 29.0136 28.5739 29.9726 26.8149C30.9316 25.0558 31.1945 23.0008 30.7092 21.0572C30.2238 19.1135 29.0257 17.4231 27.3522 16.321Z"})),keyword:["color"]},{name:"gradientcolor",label:"GradientColor",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6H11V10.5607L9.5 11.5811L8 10.5607V6ZM12.1249 12.2143L9.5 14L6.87507 12.2143C6.32765 11.8419 6 11.2228 6 10.5607V6C6 4.89543 6.89543 4 8 4H11C12.1046 4 13 4.89543 13 6V10.5607C13 11.2228 12.6723 11.8419 12.1249 12.2143ZM25 25.4393V30H28V25.4393L26.5 24.4189L25 25.4393ZM29.1249 23.7857L26.5 22L23.8751 23.7857C23.3277 24.1581 23 24.7772 23 25.4393V30C23 31.1046 23.8954 32 25 32H28C29.1046 32 30 31.1046 30 30V25.4393C30 24.7772 29.6723 24.1581 29.1249 23.7857Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 16H17V20H10.5V16ZM19 20V16H25.5V20H19ZM27.5 20V16H32V20H27.5ZM26.5 14H18H9.5H4C2.89543 14 2 14.8954 2 16V20C2 21.1046 2.89543 22 4 22H9.5H18H26.5H32C33.1046 22 34 21.1046 34 20V16C34 14.8954 33.1046 14 32 14H26.5ZM8.5 16V20H4V16H8.5Z"})),keyword:["gradientcolor"]},{name:"datetime",label:"DateTime",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4V5H14V4C14 3.44772 14.4477 3 15 3C15.5523 3 16 3.44772 16 4V5H22V4C22 3.44772 22.4477 3 23 3C23.5523 3 24 3.44772 24 4V5C25.6569 5 27 6.34315 27 8V16H25V8C25 7.44771 24.5523 7 24 7H23H15H7H6C5.44771 7 5 7.44772 5 8V26C5 26.5523 5.44772 27 6 27H17V29H6C4.34315 29 3 27.6569 3 26V8C3 6.34314 4.34315 5 6 5V4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 24C31 27.866 27.866 31 24 31C20.134 31 17 27.866 17 24C17 20.134 20.134 17 24 17C27.866 17 31 20.134 31 24ZM33 24C33 28.9706 28.9706 33 24 33C19.0294 33 15 28.9706 15 24C15 19.0294 19.0294 15 24 15C28.9706 15 33 19.0294 33 24ZM23 20C23 19.4477 23.4477 19 24 19C24.5523 19 25 19.4477 25 20V23H28C28.5523 23 29 23.4477 29 24C29 24.5523 28.5523 25 28 25H24C23.4477 25 23 24.5523 23 24V20Z"})),keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6328 12.1223C10.6328 11.8782 10.8379 11.6285 11.1538 11.6285C11.4698 11.6285 11.6749 11.8782 11.6749 12.1223C11.6749 12.3664 11.4698 12.6161 11.1538 12.6161C10.8379 12.6161 10.6328 12.3664 10.6328 12.1223ZM11.1538 9.38477C9.69504 9.38477 8.46154 10.5817 8.46154 12.1223C8.46154 13.6629 9.69504 14.8598 11.1538 14.8598C12.6126 14.8598 13.8462 13.6629 13.8462 12.1223C13.8462 10.5817 12.6126 9.38477 11.1538 9.38477ZM20.8451 10.8117C20.4285 10.3735 19.7562 10.3691 19.3346 10.8018L4.48025 26.0471C4.05369 26.4849 4.04389 27.205 4.45837 27.6556C4.87285 28.1061 5.55465 28.1165 5.98121 27.6787L20.0758 13.2133L28.1631 21.7213C28.5845 22.1646 29.2663 22.1631 29.6861 21.718C30.1058 21.2729 30.1044 20.5527 29.683 20.1094L20.8451 10.8117Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H28V9V11V26H9H7H4V6ZM7 28H4C2.89543 28 2 27.1046 2 26V6C2 4.89543 2.89543 4 4 4H28C29.1046 4 30 4.89543 30 6V9H31C32.6569 9 34 10.3431 34 12V29C34 30.6569 32.6569 32 31 32H10C8.34315 32 7 30.6569 7 29V28ZM9 28V29C9 29.5523 9.44771 30 10 30H31C31.5523 30 32 29.5523 32 29V12C32 11.4477 31.5523 11 31 11H30V26C30 27.1046 29.1046 28 28 28H9Z"})),keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.1353C32 15.583 31.5523 15.1353 31 15.1353C30.4477 15.1353 30 15.583 30 16.1353V21.9998C30 22.8304 29.676 23.6234 29.105 24.2052C28.5764 24.7438 27.8637 25 27 25H5C4.44772 25 4 25.4477 4 26C4 26.5523 4.44772 27 5 27H27C28.2757 27 29.5483 26.6088 30.5324 25.6061C31.4742 24.6465 32 23.3489 32 21.9998V16.1353ZM4 19.8647C4 20.417 4.44772 20.8647 5 20.8647C5.55228 20.8647 6 20.417 6 19.8647V14.0002C6 13.1696 6.32403 12.3766 6.89499 11.7948C7.42365 11.2562 8.13633 11 9 11H31C31.5523 11 32 10.5523 32 10C32 9.44772 31.5523 9 31 9H9C7.72434 9 6.45166 9.39123 5.46759 10.3939C4.52581 11.3535 4 12.6511 4 14.0002V19.8647Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 25.2929L9.29289 20.2929C9.68342 19.9024 10.3166 19.9024 10.7071 20.2929C11.0976 20.6834 11.0976 21.3166 10.7071 21.7071L6.41422 26L10.7071 30.2929C11.0976 30.6834 11.0976 31.3166 10.7071 31.7071C10.3166 32.0976 9.68342 32.0976 9.29289 31.7071L4.29289 26.7071C3.90237 26.3166 3.90237 25.6834 4.29289 25.2929ZM29.5858 10L25.2929 14.2929C24.9024 14.6834 24.9024 15.3166 25.2929 15.7071C25.6834 16.0976 26.3166 16.0976 26.7071 15.7071L31.7071 10.7071C32.0976 10.3166 32.0976 9.68342 31.7071 9.29289L26.7071 4.29289C26.3166 3.90237 25.6834 3.90237 25.2929 4.29289C24.9024 4.68342 24.9024 5.31658 25.2929 5.70711L29.5858 10Z"})),keyword:["repeater"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 14H4V22H32V14ZM4 12C2.89543 12 2 12.8954 2 14V22C2 23.1046 2.89543 24 4 24H32C33.1046 24 34 23.1046 34 22V14C34 12.8954 33.1046 12 32 12H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 7C21.4477 7 21 7.44772 21 8C21 8.55228 21.4477 9 22 9H23V27H22C21.4477 27 21 27.4477 21 28C21 28.5523 21.4477 29 22 29H24H26C26.5523 29 27 28.5523 27 28C27 27.4477 26.5523 27 26 27H25V9H26C26.5523 9 27 8.55228 27 8C27 7.44772 26.5523 7 26 7H24H22ZM10 18C10 19.1046 9.10457 20 8 20C6.89543 20 6 19.1046 6 18C6 16.8954 6.89543 16 8 16C9.10457 16 10 16.8954 10 18ZM16 18C16 19.1046 15.1046 20 14 20C12.8954 20 12 19.1046 12 18C12 16.8954 12.8954 16 14 16C15.1046 16 16 16.8954 16 18Z"})),keyword:["url","link"]},{name:"media",label:"Media",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9764 12.9816C19.2482 12.9767 20.4886 13.3722 21.5187 14.1111C22.5488 14.8501 23.3152 15.8942 23.7075 17.0928C24.0997 18.2914 24.0974 19.5824 23.701 20.7796C23.4097 21.6592 22.9166 22.4548 22.266 23.1066C21.8758 23.4975 21.766 24.1182 22.0903 24.5653C22.4106 25.0068 23.0321 25.112 23.4341 24.7433C24.4277 23.8322 25.1758 22.6821 25.6013 21.3974C26.1299 19.8011 26.133 18.0797 25.61 16.4816C25.087 14.8835 24.065 13.4913 22.6916 12.5061C21.3181 11.5208 19.6642 10.9935 17.9686 11.0001C16.273 11.0067 14.6233 11.5469 13.2577 12.5428C11.8921 13.5387 10.8812 14.9387 10.3709 16.5409C9.86057 18.143 9.87727 19.8644 10.4185 21.4565C10.8542 22.7378 11.6114 23.8821 12.6122 24.7855C13.0171 25.151 13.6377 25.0409 13.9545 24.5969C14.2753 24.1473 14.1606 23.5275 13.7674 23.1398C13.1115 22.493 12.6122 21.7013 12.3139 20.8239C11.908 19.6298 11.8954 18.3388 12.2782 17.1372C12.6609 15.9356 13.4191 14.8856 14.4433 14.1387C15.4675 13.3917 16.7047 12.9866 17.9764 12.9816ZM17.9921 16.9447C18.4161 16.9431 18.8295 17.0749 19.1729 17.3212C19.5163 17.5675 19.7717 17.9156 19.9025 18.3151C20.0332 18.7146 20.0325 19.145 19.9003 19.5441C19.8739 19.6238 19.8425 19.7015 19.8064 19.7768C19.5676 20.2748 19.4316 20.8999 19.7559 21.347C20.0762 21.7886 20.7052 21.8958 21.0586 21.4803C21.387 21.0942 21.6399 20.6473 21.8006 20.1619C22.065 19.3637 22.0665 18.503 21.805 17.7039C21.5435 16.9049 21.0325 16.2088 20.3458 15.7162C19.6591 15.2236 18.8321 14.9599 17.9843 14.9632C17.1365 14.9665 16.3116 15.2366 15.6288 15.7345C14.946 16.2325 14.4406 16.9325 14.1854 17.7336C13.9303 18.5346 13.9386 19.3953 14.2093 20.1914C14.3739 20.6755 14.6303 21.1206 14.9618 21.5041C15.3185 21.9168 15.9465 21.8046 16.2633 21.3606C16.5841 20.911 16.4432 20.287 16.2004 19.7909C16.1637 19.716 16.1317 19.6385 16.1046 19.5588C15.9693 19.1608 15.9651 18.7305 16.0927 18.3299C16.2203 17.9294 16.473 17.5794 16.8144 17.3304C17.1558 17.0814 17.5682 16.9464 17.9921 16.9447Z"})),keyword:["media","image"]},{name:"iconscontrol",label:"IconsControl",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17C19 17.5523 18.5523 18 18 18C17.4477 18 17 17.5523 17 17V15ZM25.0643 20.7471C24.8481 21.0316 24.6165 21.3031 24.3709 21.5603L22.9244 20.1791C23.1183 19.976 23.3011 19.7618 23.4718 19.5371L25.0643 20.7471ZM10.9058 21.8382C10.6498 21.5913 10.4072 21.3297 10.1794 21.0543L11.7206 19.7796C11.9004 19.997 12.0919 20.2036 12.294 20.3985L10.9058 21.8382ZM22.7332 22.9284C22.4364 23.1243 22.1281 23.3039 21.8096 23.466C21.4911 23.6281 21.1645 23.7717 20.8314 23.8964L20.1301 22.0234C20.3931 21.925 20.6509 21.8116 20.9023 21.6836C21.1538 21.5556 21.3971 21.4138 21.6315 21.2592L22.7332 22.9284ZM13.5435 23.6366C13.2186 23.4877 12.9032 23.3211 12.5985 23.1375L13.6304 21.4243C13.871 21.5692 14.12 21.7008 14.3765 21.8183C14.633 21.9358 14.8953 22.0384 15.1621 22.1259L14.5386 24.0263C14.2007 23.9154 13.8684 23.7854 13.5435 23.6366ZM18.7616 24.4155C18.4091 24.4628 18.0534 24.4903 17.6961 24.4977C17.3388 24.505 16.9823 24.4922 16.6281 24.4596L16.8117 22.468C17.0913 22.4938 17.3728 22.5039 17.6548 22.4981C17.9369 22.4923 18.2177 22.4705 18.496 22.4333L18.7616 24.4155ZM10.5 17H11.4375V15H10.5V17ZM13.3125 17H15.1875V15H13.3125V17ZM20.8125 17H22.6875V15H20.8125V17ZM24.5625 17H25.5V15H24.5625V17Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 2C16.9477 2 16.5 2.44772 16.5 3V4.12602C14.7748 4.57006 13.5 6.13616 13.5 8C13.5 9.46135 14.2837 10.7397 15.4536 11.4376L11.2647 18.3556C11.0813 18.1381 10.8068 18 10.5 18C9.94772 18 9.5 18.4477 9.5 19V24C9.5 24.5523 9.94772 25 10.5 25C11.0523 25 11.5 24.5523 11.5 24V21.8975L17.4931 12L17.5 12C17.6906 12 17.878 11.9867 18.0615 11.9609L24.5 22.3756V24C24.5 24.5523 24.9477 25 25.5 25C26.0523 25 26.5 24.5523 26.5 24V19C26.5 18.4477 26.0523 18 25.5 18C25.081 18 24.7222 18.2577 24.5734 18.6232L19.9573 11.1564C20.8962 10.4244 21.5 9.28272 21.5 8C21.5 6.13616 20.2252 4.57006 18.5 4.12602V3C18.5 2.44772 18.0523 2 17.5 2ZM17.5 10C18.6046 10 19.5 9.10457 19.5 8C19.5 6.89543 18.6046 6 17.5 6C16.3954 6 15.5 6.89543 15.5 8C15.5 9.10457 16.3954 10 17.5 10ZM18 32C19.1046 32 20 31.1046 20 30C20 28.8954 19.1046 28 18 28C16.8954 28 16 28.8954 16 30C16 31.1046 16.8954 32 18 32ZM18 34C19.8666 34 21.4346 32.7215 21.8759 30.9924C21.9166 30.9974 21.958 31 22 31H31C31.5523 31 32 30.5523 32 30C32 29.4477 31.5523 29 31 29H22C21.958 29 21.9166 29.0026 21.8759 29.0076C21.4346 27.2785 19.8666 26 18 26C16.1334 26 14.5654 27.2785 14.1241 29.0076C14.0834 29.0026 14.042 29 14 29H5C4.44772 29 4 29.4477 4 30C4 30.5523 4.44771 31 5 31H14C14.042 31 14.0834 30.9974 14.1241 30.9924C14.5654 32.7215 16.1334 34 18 34Z"})),keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H32V30H4V6ZM2 6C2 4.89543 2.89543 4 4 4H32C33.1046 4 34 4.89543 34 6V30C34 31.1046 33.1046 32 32 32H4C2.89543 32 2 31.1046 2 30V6ZM23.7724 8L21.379 17H19.8667L22.2602 8H23.7724ZM12.6954 8.35237V15.8695H14.4905V12.8487H17.417V15.8695H19.2085V8.35237H17.417V11.3695H14.4905V8.35237H12.6954ZM6 11.3695V12.8964L11.2511 15.1281V13.4617L7.83862 12.1683V12.0977L11.2511 10.8079V9.13785L6 11.3695ZM24.7489 15.8328L30 13.6011V12.0742L24.7489 9.84258V11.5126L28.165 12.8038V12.8716L24.7489 14.1664V15.8328Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 22C6.44772 22 6 22.4477 6 23C6 23.5523 6.44772 24 7 24H29C29.5523 24 30 23.5523 30 23C30 22.4477 29.5523 22 29 22H7ZM7 26C6.44772 26 6 26.4477 6 27C6 27.5523 6.44772 28 7 28H29C29.5523 28 30 27.5523 30 27C30 26.4477 29.5523 26 29 26H7Z"})),keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:(0,e.createElement)("svg",{className:"wkit-wb-widget-img",width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 21C2 20.4477 2.44772 20 3 20H33C33.5523 20 34 20.4477 34 21C34 21.5523 33.5523 22 33 22H3C2.44772 22 2 21.5523 2 21Z"}),(0,e.createElement)("path",{fillRule:"eenodd",clipRule:"evenodd",d:"M7.74916 10.2579C8.15901 9.88772 8.79136 9.91987 9.16154 10.3297L11.7422 13.1869C11.9151 13.3783 12.0002 13.6182 12.0001 13.8573C12.0002 14.0964 11.9151 14.3363 11.7422 14.5277L9.16154 17.3849C8.79136 17.7947 8.15901 17.8269 7.74916 17.4567C7.3393 17.0865 7.30715 16.4541 7.67734 16.0443L8.62057 15L3 15C2.44772 15 2 14.5523 2 14C2 13.4477 2.44772 13 3 13L8.87836 13L7.67734 11.6703C7.30715 11.2604 7.3393 10.6281 7.74916 10.2579ZM13 16C12.4477 16 12 16.4477 12 17V25C12 25.5523 12.4477 26 13 26C13.5523 26 14 25.5523 14 25V17C14 16.4477 13.5523 16 13 16Z"})),keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3808 6.36366C19.8144 6.70568 20.4432 6.63142 20.7852 6.19778C21.1272 5.76415 21.053 5.13535 20.6193 4.79333L18.696 3.27632C18.5173 3.10584 18.2755 3.00089 18.0091 3.00005L17.9996 3C17.9249 2.99989 17.85 3.00811 17.7764 3.02483C17.6856 3.04544 17.5995 3.07841 17.5199 3.12187C17.4655 3.1515 17.4135 3.18643 17.3646 3.22659L15.3802 4.7937C14.9468 5.13598 14.8729 5.76482 15.2152 6.19825C15.5575 6.63168 16.1863 6.70557 16.6197 6.36328L17.0008 6.06235L17.0023 7.49943L17.0008 8.93623L16.6202 8.6353C16.187 8.29276 15.5581 8.36627 15.2156 8.79949C14.873 9.23271 14.9465 9.8616 15.3797 10.2041L17.3668 11.7753C17.4147 11.8144 17.4655 11.8485 17.5186 11.8775C17.6858 11.9692 17.8715 12.0087 18.0539 11.9986C18.1258 11.9947 18.1975 11.983 18.2677 11.9635C18.4251 11.9209 18.567 11.8409 18.6834 11.7336L20.6198 10.2044C21.0532 9.86215 21.1271 9.23331 20.7848 8.79989C20.4426 8.36646 19.8137 8.29257 19.3803 8.63485L19.0038 8.93219L19.0023 7.49906L19.0038 6.06631L19.3808 6.36366ZM6.36366 16.6193C6.70568 16.1857 6.63142 15.5569 6.19778 15.2149C5.76415 14.8729 5.13535 14.9471 4.79333 15.3808L3.27632 17.3041C3.10584 17.4828 3.00089 17.7246 3.00005 17.991L3 18.0005C2.99989 18.0752 3.00811 18.1501 3.02483 18.2237C3.04544 18.3145 3.07841 18.4006 3.12187 18.4802C3.15149 18.5345 3.18643 18.5866 3.22658 18.6354L4.7937 20.6199C5.13598 21.0533 5.76482 21.1272 6.19825 20.7849C6.63168 20.4426 6.70557 19.8138 6.36328 19.3804L6.06235 18.9993L7.49897 18.9978L8.93623 18.9993L8.6353 19.3799C8.29276 19.8131 8.36627 20.442 8.79949 20.7845C9.23271 21.1271 9.8616 21.0536 10.2041 20.6203L11.7753 18.6332C11.8144 18.5854 11.8485 18.5346 11.8775 18.4815C11.9692 18.3143 12.0087 18.1286 11.9986 17.9462C11.9947 17.8743 11.983 17.8026 11.9635 17.7323C11.9209 17.575 11.8409 17.4331 11.7336 17.3167L10.2044 15.3803C9.86215 14.9469 9.23331 14.873 8.79989 15.2153C8.36646 15.5575 8.29257 16.1864 8.63485 16.6198L8.93219 16.9963L7.4992 16.9978L6.06631 16.9963L6.36366 16.6193ZM27.3637 16.6193C27.7057 16.1857 27.6314 15.5569 27.1978 15.2149C26.7641 14.8729 26.1354 14.9471 25.7933 15.3808L24.2763 17.3041C24.1058 17.4828 24.0009 17.7247 24 17.9911L24 18.0017C24 18.0725 24.0074 18.1434 24.0225 18.2132C24.043 18.3083 24.0771 18.3984 24.1225 18.4813C24.152 18.5353 24.1867 18.5869 24.2266 18.6355L25.7937 20.6199C26.136 21.0533 26.7648 21.1272 27.1983 20.7849C27.6317 20.4426 27.7056 19.8138 27.3633 19.3804L27.0623 18.9993L28.499 18.9978L29.9362 18.9993L29.6353 19.3799C29.2928 19.8131 29.3663 20.442 29.7995 20.7845C30.2327 21.1271 30.8616 21.0536 31.2041 20.6203L32.7753 18.6332C32.8144 18.5854 32.8485 18.5346 32.8775 18.4815C32.9692 18.3143 33.0087 18.1286 32.9986 17.9462C32.9947 17.8743 32.983 17.8026 32.9635 17.7323C32.9209 17.575 32.8409 17.4331 32.7336 17.3167L31.2044 15.3803C30.8622 14.9469 30.2333 14.873 29.7999 15.2153C29.3665 15.5575 29.2926 16.1864 29.6349 16.6198L29.9322 16.9963L28.4992 16.9978L27.0663 16.9963L27.3637 16.6193ZM17.3669 32.7753L15.3797 31.2041C14.9465 30.8616 14.873 30.2327 15.2156 29.7995C15.5581 29.3663 16.187 29.2928 16.6202 29.6353L17.0008 29.9362L17.0023 28.4994L17.0008 27.0624L16.6197 27.3633C16.1863 27.7056 15.5575 27.6317 15.2152 27.1983C14.8729 26.7648 14.9468 26.136 15.3802 25.7937L17.3646 24.2266C17.4131 24.1867 17.4648 24.152 17.5188 24.1225C17.584 24.0868 17.6536 24.0581 17.7266 24.0375C17.7463 24.0319 17.7662 24.027 17.7864 24.0226C17.8562 24.0075 17.927 24 17.9978 24L18.0088 24C18.2753 24.0008 18.5172 24.1058 18.696 24.2763L20.6193 25.7933C21.053 26.1354 21.1272 26.7641 20.7852 27.1978C20.4432 27.6314 19.8144 27.7057 19.3808 27.3637L19.0038 27.0663L19.0023 28.4991L19.0038 29.9322L19.3803 29.6349C19.8137 29.2926 20.4426 29.3665 20.7848 29.7999C21.1271 30.2333 21.0532 30.8622 20.6198 31.2044L18.6834 32.7337C18.567 32.8409 18.4251 32.9209 18.2678 32.9634C18.1976 32.983 18.1258 32.9947 18.0539 32.9986C17.8715 33.0088 17.6858 32.9692 17.5186 32.8775C17.4655 32.8485 17.4147 32.8144 17.3669 32.7753Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 15H15L15 21H21V15ZM15 13C13.8954 13 13 13.8954 13 15V21C13 22.1046 13.8954 23 15 23H21C22.1046 23 23 22.1046 23 21V15C23 13.8954 22.1046 13 21 13H15Z"})),keyword:["padding","margin","dimension"]},{name:"normalhover",label:"NormalHover",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M33 11.4978C33 15.0862 30.0901 17.9956 26.5 17.9956C22.9099 17.9956 20 15.0862 20 11.4978C20 7.90944 22.9099 5 26.5 5C30.0901 5 33 7.90944 33 11.4978Z",strokeWidth:"2"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.05335 16.8035L8.0803 14.9012C8.10337 13.2722 9.99281 12.3477 11.2938 13.3288L13.6501 15.1058C14.4909 14.1401 15 12.8783 15 11.4978C15 8.462 12.5381 6 9.5 6C6.46188 6 4 8.462 4 11.4978C4 14.0333 5.71731 16.1685 8.05335 16.8035ZM8.02435 18.8505C4.58887 18.1653 2 15.1338 2 11.4978C2 7.35688 5.35786 4 9.5 4C13.6421 4 17 7.35688 17 11.4978C17 13.3305 16.3422 15.0097 15.2498 16.3122L23.3619 22.4299C24.7903 23.5071 24.1363 25.7755 22.3406 25.9727L16.5671 26.6068C16.0987 26.6582 15.662 26.8719 15.3341 27.2101L11.2914 31.3795C10.034 32.6763 7.8409 31.801 7.86623 30.0124L8.02435 18.8505ZM10.017 18.9781L9.86064 30.0181L13.9033 25.8487C14.5592 25.1723 15.4327 24.7449 16.3693 24.642L22.1429 24.008L13.7485 17.6774C12.6739 18.4173 11.3967 18.8842 10.017 18.9781ZM12.0294 16.381L10.0747 14.9068L10.0455 16.9689C10.7551 16.8991 11.4251 16.6944 12.0294 16.381Z"})),keyword:["hover","normalhover"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Heading",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 3C23.4477 3 23 3.44772 23 4C23 4.55228 23.4477 5 24 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H24ZM7 18C7 17.4477 7.44772 17 8 17H28C28.5523 17 29 17.4477 29 18C29 18.5523 28.5523 19 28 19H8C7.44772 19 7 18.5523 7 18ZM3 32C3 31.4477 3.44772 31 4 31H12C12.5523 31 13 31.4477 13 32C13 32.5523 12.5523 33 12 33H4C3.44772 33 3 32.5523 3 32ZM3 4C3 3.44772 3.44772 3 4 3H12C12.5523 3 13 3.44772 13 4C13 4.55228 12.5523 5 12 5H4C3.44772 5 3 4.55228 3 4ZM24 31C23.4477 31 23 31.4477 23 32C23 32.5523 23.4477 33 24 33H32C32.5523 33 33 32.5523 33 32C33 31.4477 32.5523 31 32 31H24Z"})),keyword:["heading","info","note","labelheading"]},{name:"rawhtml",label:"RawHTML",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4H5V8L7 8V4H9V8V10V14H7V10H5V14H3V10V8V4ZM14 4H16V6H14V14H12V6H10V4H12H14ZM22 10.6667L20 4H18V14H20V10.6667L21 14H23L24 10.6667V14H26V4H24L22 10.6667ZM28 4H30V12H33V14H30H28V12V4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7709 15C19.3192 15 18.9268 15.3108 18.8234 15.7505L15.2814 30.8036C15.1377 31.4147 15.6013 32 16.229 32C16.6807 32 17.0731 31.6892 17.1765 31.2495L20.7184 16.1964C20.8622 15.5853 20.3986 15 19.7709 15ZM9.70348 17.2927C10.0941 17.6831 10.0943 18.3163 9.70388 18.7069L4.41401 23.9998L9.70711 29.2929C10.0976 29.6834 10.0976 30.3166 9.70711 30.7071C9.31658 31.0976 8.68342 31.0976 8.29289 30.7071L2.2934 24.7076L2.2931 24.7073L2.29289 24.7071C2.07941 24.4936 1.98262 24.2076 2.00255 23.9284C2.00383 23.9105 2.00558 23.8927 2.00781 23.8749C2.03448 23.6622 2.12944 23.4564 2.29269 23.2931L2.29289 23.2929L8.28927 17.2931C8.67968 16.9025 9.31284 16.9023 9.70348 17.2927ZM26.2961 18.7069L31.586 23.9998L26.2929 29.2929C25.9023 29.6834 25.9023 30.3166 26.2929 30.7071C26.6834 31.0976 27.3166 31.0976 27.7071 30.7071L33.7063 24.708L33.7069 24.7073L33.7071 24.7071C34.0976 24.3167 34.0976 23.6837 33.7073 23.2931L33.7073 23.2931L33.7071 23.2929L27.7107 17.2931C27.3203 16.9025 26.6871 16.9023 26.2965 17.2927C25.9059 17.6831 25.9057 18.3163 26.2961 18.7069Z"})),keyword:["rawhtml","info","note"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H17L17 32C17 32.5523 17.4477 33 18 33C18.5523 33 19 32.5523 19 32L19 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H18H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 8C5 8.55228 4.55228 9 4 9C3.44772 9 3 8.55228 3 8V4C3 3.44772 3.44772 3 4 3ZM32 3C32.5523 3 33 3.44772 33 4V8C33 8.55228 32.5523 9 32 9C31.4477 9 31 8.55228 31 8V4C31 3.44772 31.4477 3 32 3ZM22 33C22.5523 33 23 32.5523 23 32C23 31.4477 22.5523 31 22 31H14C13.4477 31 13 31.4477 13 32C13 32.5523 13.4477 33 14 33H22Z"})),keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 11.5C19.9477 11.5 19.5 11.9477 19.5 12.5C19.5 13.0523 19.9477 13.5 20.5 13.5C21.0523 13.5 21.5 13.0523 21.5 12.5C21.5 11.9477 21.0523 11.5 20.5 11.5ZM19.5 15.5C19.5 16.0523 19.9477 16.5 20.5 16.5C21.0523 16.5 21.5 16.0523 21.5 15.5C21.5 14.9477 21.0523 14.5 20.5 14.5C19.9477 14.5 19.5 14.9477 19.5 15.5ZM19.5 18.5C19.5 19.0523 19.9477 19.5 20.5 19.5C21.0523 19.5 21.5 19.0523 21.5 18.5C21.5 17.9477 21.0523 17.5 20.5 17.5C19.9477 17.5 19.5 17.9477 19.5 18.5ZM19.5 21.5C19.5 22.0523 19.9477 22.5 20.5 22.5C21.0523 22.5 21.5 22.0523 21.5 21.5C21.5 20.9477 21.0523 20.5 20.5 20.5C19.9477 20.5 19.5 20.9477 19.5 21.5ZM22.5 12.5C22.5 11.9477 22.9477 11.5 23.5 11.5C24.0523 11.5 24.5 11.9477 24.5 12.5C24.5 13.0523 24.0523 13.5 23.5 13.5C22.9477 13.5 22.5 13.0523 22.5 12.5ZM26 11.5C25.7239 11.5 25.5 11.7239 25.5 12V13C25.5 13.2761 25.7239 13.5 26 13.5C26.2761 13.5 26.5 13.2761 26.5 13V12C26.5 11.7239 26.2761 11.5 26 11.5ZM21.5 24.5C21.5 25.0523 21.0523 25.5 20.5 25.5C19.9477 25.5 19.5 25.0523 19.5 24.5C19.5 23.9477 19.9477 23.5 20.5 23.5C21.0523 23.5 21.5 23.9477 21.5 24.5ZM20 26.5C19.7239 26.5 19.5 26.7239 19.5 27C19.5 27.2761 19.7239 27.5 20 27.5H21C21.2761 27.5 21.5 27.2761 21.5 27C21.5 26.7239 21.2761 26.5 21 26.5H20Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H31V31H5L5 5ZM3 5C3 3.89543 3.89543 3 5 3H31C32.1046 3 33 3.89543 33 5V31C33 32.1046 32.1046 33 31 33H5C3.89543 33 3 32.1046 3 31V5ZM9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5H17.5H24.5C25.0523 8.5 25.5 8.94772 25.5 9.5C25.5 10.0523 25.0523 10.5 24.5 10.5H18.5L18.5 25.5C18.5 26.0523 18.0523 26.5 17.5 26.5C16.9477 26.5 16.5 26.0523 16.5 25.5L16.5 10.5H10.5C9.94772 10.5 9.5 10.0523 9.5 9.5Z"})),keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 5H5L5 27H27V5ZM5 3C3.89543 3 3 3.89543 3 5V27C3 28.1046 3.89543 29 5 29H27C28.1046 29 29 28.1046 29 27V5C29 3.89543 28.1046 3 27 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 7C31 6.44772 31.4477 6 32 6C32.5523 6 33 6.44772 33 7C33 7.55228 32.5523 8 32 8C31.4477 8 31 7.55228 31 7ZM31 11C31 10.4477 31.4477 10 32 10C32.5523 10 33 10.4477 33 11C33 11.5523 32.5523 12 32 12C31.4477 12 31 11.5523 31 11ZM32 14C31.4477 14 31 14.4477 31 15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15C33 14.4477 32.5523 14 32 14ZM31 19C31 18.4477 31.4477 18 32 18C32.5523 18 33 18.4477 33 19C33 19.5523 32.5523 20 32 20C31.4477 20 31 19.5523 31 19ZM32 22C31.4477 22 31 22.4477 31 23C31 23.5523 31.4477 24 32 24C32.5523 24 33 23.5523 33 23C33 22.4477 32.5523 22 32 22ZM31 27C31 26.4477 31.4477 26 32 26C32.5523 26 33 26.4477 33 27C33 27.5523 32.5523 28 32 28C31.4477 28 31 27.5523 31 27ZM32 30C31.4477 30 31 30.4477 31 31C31 31.5523 31.4477 32 32 32C32.5523 32 33 31.5523 33 31C33 30.4477 32.5523 30 32 30ZM27 31C27 30.4477 27.4477 30 28 30C28.5523 30 29 30.4477 29 31C29 31.5523 28.5523 32 28 32C27.4477 32 27 31.5523 27 31ZM24 30C23.4477 30 23 30.4477 23 31C23 31.5523 23.4477 32 24 32C24.5523 32 25 31.5523 25 31C25 30.4477 24.5523 30 24 30ZM19 31C19 30.4477 19.4477 30 20 30C20.5523 30 21 30.4477 21 31C21 31.5523 20.5523 32 20 32C19.4477 32 19 31.5523 19 31ZM16 30C15.4477 30 15 30.4477 15 31C15 31.5523 15.4477 32 16 32C16.5523 32 17 31.5523 17 31C17 30.4477 16.5523 30 16 30ZM11 31C11 30.4477 11.4477 30 12 30C12.5523 30 13 30.4477 13 31C13 31.5523 12.5523 32 12 32C11.4477 32 11 31.5523 11 31ZM8 30C7.44772 30 7 30.4477 7 31C7 31.5523 7.44772 32 8 32C8.55228 32 9 31.5523 9 31C9 30.4477 8.55228 30 8 30Z"})),keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:(0,e.createElement)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0C14.4477 0 14 0.447716 14 1V14H1C0.447716 14 0 14.4477 0 15C0 15.5523 0.447716 16 1 16H14V29C14 29.5523 14.4477 30 15 30C15.5523 30 16 29.5523 16 29V16H29C29.5523 16 30 15.5523 30 15C30 14.4477 29.5523 14 29 14H16V1C16 0.447715 15.5523 0 15 0Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 2H2L2 28H28V2ZM2 0C0.895431 0 0 0.89543 0 2V28C0 29.1046 0.89543 30 2 30H28C29.1046 30 30 29.1046 30 28V2C30 0.895431 29.1046 0 28 0H2Z"})),keyword:["border"]},{name:"background",label:"Background",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.38341 13.5461C2.99785 13.935 2.99785 14.5655 3.38341 14.9544C3.76898 15.3432 4.39411 15.3432 4.77968 14.9544L14.8805 4.7666C15.266 4.37771 15.266 3.7472 14.8805 3.35832C14.4949 2.96943 13.8698 2.96943 13.4842 3.35832L3.38341 13.5461ZM3.57206 25.3059C3.18649 25.6947 3.18649 26.3253 3.57206 26.7141C3.95762 27.103 4.58275 27.103 4.96832 26.7141L26.686 4.80949C27.0716 4.42061 27.0716 3.7901 26.686 3.40121C26.3004 3.01232 25.6753 3.01232 25.2897 3.40121L3.57206 25.3059ZM9.5617 32.6228C9.17613 32.2339 9.17613 31.6034 9.5617 31.2145L31.2733 9.31598C31.6588 8.9271 32.284 8.92709 32.6695 9.31598C33.0551 9.70487 33.0551 10.3354 32.6695 10.7243L10.958 32.6228C10.5724 33.0116 9.94726 33.0116 9.5617 32.6228ZM21.3526 31.2715C20.967 31.6604 20.967 32.2909 21.3526 32.6798C21.7382 33.0687 22.3633 33.0687 22.7488 32.6798L32.7119 22.631C33.0975 22.2421 33.0975 21.6116 32.7119 21.2227C32.3264 20.8338 31.7013 20.8338 31.3157 21.2227L21.3526 31.2715Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.28918 7.66612C2.90361 8.05501 2.90361 8.68552 3.28918 9.07441C3.67474 9.46329 4.29987 9.46329 4.68544 9.07441L9.02256 4.69995C9.40813 4.31106 9.40813 3.68055 9.02256 3.29167C8.63699 2.90278 8.01187 2.90278 7.6263 3.29167L3.28918 7.66612ZM3.47757 20.8342C3.092 20.4453 3.092 19.8148 3.47757 19.4259L19.3122 3.45496C19.6978 3.06608 20.3229 3.06608 20.7085 3.45496C21.094 3.84385 21.094 4.47436 20.7085 4.86325L4.87383 20.8342C4.48826 21.2231 3.86313 21.2231 3.47757 20.8342ZM3.66621 32.5941C3.28064 32.2052 3.28064 31.5747 3.66621 31.1858L31.1195 3.49623C31.505 3.10734 32.1302 3.10734 32.5157 3.49623C32.9013 3.88511 32.9013 4.51562 32.5157 4.90451L5.06247 32.5941C4.67691 32.983 4.05178 32.983 3.66621 32.5941ZM15.4571 32.6512C15.0715 32.2623 15.0715 31.6318 15.4571 31.2429L31.0407 15.5251C31.4263 15.1362 32.0514 15.1362 32.437 15.5251C32.8225 15.914 32.8225 16.5445 32.437 16.9334L16.8534 32.6512C16.4678 33.0401 15.8427 33.0401 15.4571 32.6512ZM27.2477 31.3001C26.8622 31.689 26.8622 32.3195 27.2477 32.7084C27.6333 33.0972 28.2584 33.0972 28.644 32.7084L32.7179 28.5994C33.1035 28.2105 33.1035 27.58 32.7179 27.1911C32.3323 26.8022 31.7072 26.8022 31.3216 27.1911L27.2477 31.3001Z"})),keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0625 5C32.5803 5 33 5.44772 33 6C33 6.55228 32.5803 7 32.0625 7H3.9375C3.41973 7 3 6.55228 3 6C3 5.44772 3.41973 5 3.9375 5H32.0625ZM3 18C3 17.4477 3.41973 17 3.9375 17H32.0625C32.5803 17 33 17.4477 33 18C33 18.5523 32.5803 19 32.0625 19H3.9375C3.41973 19 3 18.5523 3 18ZM33 30C33 29.4477 32.5803 29 32.0625 29H3.9375C3.41973 29 3 29.4477 3 30C3 30.5523 3.41973 31 3.9375 31H32.0625C32.5803 31 33 30.5523 33 30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 6.55228 9.44772 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6ZM7 6C7 7.65685 8.34315 9 10 9C11.6569 9 13 7.65685 13 6C13 4.34315 11.6569 3 10 3C8.34315 3 7 4.34315 7 6ZM26 19C26.5523 19 27 18.5523 27 18C27 17.4477 26.5523 17 26 17C25.4477 17 25 17.4477 25 18C25 18.5523 25.4477 19 26 19ZM26 21C27.6569 21 29 19.6569 29 18C29 16.3431 27.6569 15 26 15C24.3431 15 23 16.3431 23 18C23 19.6569 24.3431 21 26 21ZM10 31C9.44772 31 9 30.5523 9 30C9 29.4477 9.44772 29 10 29C10.5523 29 11 29.4477 11 30C11 30.5523 10.5523 31 10 31ZM10 33C8.34315 33 7 31.6569 7 30C7 28.3431 8.34315 27 10 27C11.6569 27 13 28.3431 13 30C13 31.6569 11.6569 33 10 33Z"})),keyword:["cssfilter","filtercss"]}]}}],Ql=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C4.34315 3 3 4.34315 3 6V15C3 15.5523 3.44772 16 4 16C4.55228 16 5 15.5523 5 15V6C5 5.44772 5.44772 5 6 5H15C15.5523 5 16 4.55228 16 4C16 3.44772 15.5523 3 15 3H6ZM6 33C4.34315 33 3 31.6569 3 30V21C3 20.4477 3.44772 20 4 20C4.55228 20 5 20.4477 5 21V30C5 30.5523 5.44772 31 6 31H15C15.5523 31 16 31.4477 16 32C16 32.5523 15.5523 33 15 33H6ZM33 6C33 4.34315 31.6569 3 30 3H21C20.4477 3 20 3.44772 20 4C20 4.55228 20.4477 5 21 5H30C30.5523 5 31 5.44772 31 6V15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15V6ZM30 33C31.6569 33 33 31.6569 33 30V21C33 20.4477 32.5523 20 32 20C31.4477 20 31 20.4477 31 21V30C31 30.5523 30.5523 31 30 31H21C20.4477 31 20 31.4477 20 32C20 32.5523 20.4477 33 21 33H30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9C8 8.44772 8.44772 8 9 8H18H27C27.5523 8 28 8.44772 28 9V11C28 11.5523 27.5523 12 27 12C26.4477 12 26 11.5523 26 11V10H19L19 26H22C22.5523 26 23 26.4477 23 27C23 27.5523 22.5523 28 22 28H18H14C13.4477 28 13 27.5523 13 27C13 26.4477 13.4477 26 14 26H17L17 10H10V11C10 11.5523 9.55228 12 9 12C8.44772 12 8 11.5523 8 11V9Z"})),keyword:["text"]},{name:"number",label:"Number",icon:(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 11C19 12.6569 17.6569 14 16 14C14.3431 14 13 12.6569 13 11C13 9.34315 14.3431 8 16 8C17.6569 8 19 9.34315 19 11ZM19.1435 14.8884C20.276 13.9718 21 12.5704 21 11C21 8.23858 18.7614 6 16 6C13.2386 6 11 8.23858 11 11C11 12.5704 11.724 13.9718 12.8565 14.8884C11.1425 15.9447 10 17.8389 10 20C10 23.3137 12.6863 26 16 26C19.3137 26 22 23.3137 22 20C22 17.8389 20.8575 15.9447 19.1435 14.8884ZM16 16C13.7909 16 12 17.7909 12 20C12 22.2091 13.7909 24 16 24C18.2091 24 20 22.2091 20 20C20 17.7909 18.2091 16 16 16Z"})),keyword:["number"]},{name:"textarea",label:"Textarea",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4ZM26.7074 26.9262C26.3168 27.3167 26.3168 27.9499 26.7074 28.3404C27.0979 28.7309 27.731 28.7309 28.1216 28.3404L30.3403 26.1217C30.7308 25.7312 30.7308 25.098 30.3403 24.7075C29.9497 24.317 29.3166 24.317 28.9261 24.7075L26.7074 26.9262ZM22.7066 28.3409C22.3161 27.9504 22.3161 27.3172 22.7066 26.9267L28.9266 20.7067C29.3171 20.3162 29.9503 20.3162 30.3408 20.7067C30.7314 21.0972 30.7314 21.7304 30.3408 22.1209L24.1208 28.3409C23.7303 28.7314 23.0971 28.7314 22.7066 28.3409Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 26.9257C18.3166 27.3162 18.3166 27.9494 18.7071 28.3399C19.0976 28.7304 19.7308 28.7304 20.1213 28.3399L30.3399 18.1213C30.7304 17.7308 30.7304 17.0977 30.3399 16.7071C29.9494 16.3166 29.3162 16.3166 28.9257 16.7071L18.7071 26.9257Z"})),keyword:["textarea"]},{name:"wysiwyg",label:"WYSIWYG",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5V8V10V13V15H5H7.5H8V14.9641C8.74339 14.8568 9.43751 14.5122 9.97487 13.9749C10.6313 13.3185 11 12.4283 11 11.5C11 10.5717 10.6313 9.6815 9.97487 9.02513L9.94949 9L9.97487 8.97487C10.6313 8.3185 11 7.42826 11 6.5C11 5.57174 10.6313 4.6815 9.97487 4.02513C9.43751 3.48776 8.74339 3.14317 8 3.03588V3H7.5H5H3V5ZM7.5 8C7.89782 8 8.27936 7.84196 8.56066 7.56066C8.84196 7.27936 9 6.89783 9 6.5C9 6.10218 8.84196 5.72064 8.56066 5.43934C8.27954 5.15822 7.89832 5.00021 7.50077 5L7.5 5H5V8H7.5ZM7.5 10H5V13H7.5C7.89782 13 8.27936 12.842 8.56066 12.5607C8.84196 12.2794 9 11.8978 9 11.5C9 11.1022 8.84196 10.7206 8.56066 10.4393C8.27936 10.158 7.89783 10 7.5 10ZM15.5 3H18H20H21.5V5H19.6667L18.3333 13H20.5V15H18H16H14.5V13H16.3333L17.6667 5H15.5V3ZM33 3H31V8H33V3ZM27 8C27 8.53043 27.2107 9.03914 27.5858 9.41421C27.9609 9.78929 28.4696 10 29 10C29.5304 10 30.0391 9.78929 30.4142 9.41421C30.7893 9.03914 31 8.53043 31 8H33C33 9.06087 32.5786 10.0783 31.8284 10.8284C31.0783 11.5786 30.0609 12 29 12C27.9391 12 26.9217 11.5786 26.1716 10.8284C25.4214 10.0783 25 9.06087 25 8V3H27V8ZM25 15V13H33V15H25Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 19H31V31H5L5 19ZM3 19C3 17.8954 3.89543 17 5 17H31C32.1046 17 33 17.8954 33 19V31C33 32.1046 32.1046 33 31 33H5C3.89543 33 3 32.1046 3 31V19ZM8 20C7.44772 20 7 20.4477 7 21V23C7 23.5523 7.44772 24 8 24C8.55228 24 9 23.5523 9 23V22H11V28H10C9.44772 28 9 28.4477 9 29C9 29.5523 9.44772 30 10 30H12H14C14.5523 30 15 29.5523 15 29C15 28.4477 14.5523 28 14 28H13V22H15V23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23V21C17 20.4477 16.5523 20 16 20H12H8Z"})),keyword:["textarea","wysiwyg"]},{name:"switcher",label:"Switcher",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 11H11C7.13401 11 4 14.134 4 18C4 21.866 7.13401 25 11 25H25C28.866 25 32 21.866 32 18C32 14.134 28.866 11 25 11ZM11 9C6.02944 9 2 13.0294 2 18C2 22.9706 6.02944 27 11 27H25C29.9706 27 34 22.9706 34 18C34 13.0294 29.9706 9 25 9H11Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 21C26.6569 21 28 19.6569 28 18C28 16.3431 26.6569 15 25 15C23.3431 15 22 16.3431 22 18C22 19.6569 23.3431 21 25 21ZM25 23C27.7614 23 30 20.7614 30 18C30 15.2386 27.7614 13 25 13C22.2386 13 20 15.2386 20 18C20 20.7614 22.2386 23 25 23Z"})),keyword:["toggle","switcher","checkbox"]},{name:"popover",label:"Popover",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 25H8L8 31H28V25ZM8 23C6.89543 23 6 23.8954 6 25V31C6 32.1046 6.89543 33 8 33H28C29.1046 33 30 32.1046 30 31V25C30 23.8954 29.1046 23 28 23H8Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1165 16L18 19.0758L20.8835 16H31V5H5V16H15.1165ZM21.75 18H31C32.1046 18 33 17.1046 33 16V5C33 3.89543 32.1046 3 31 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H14.25L17.2705 21.2218C17.6655 21.6432 18.3345 21.6432 18.7295 21.2218L21.75 18Z"})),keyword:["grouppopover","popover","popup"]},{name:"select",label:"Select",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 5H5L5 31H31V5ZM5 3C3.89543 3 3 3.89543 3 5V31C3 32.1046 3.89543 33 5 33H31C32.1046 33 33 32.1046 33 31V5C33 3.89543 32.1046 3 31 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.67132 21.1958C7.04208 20.8246 7.6432 20.8246 8.01396 21.1958L13.5299 26.7175C13.891 27.0789 14.4843 27.0711 14.8551 26.7L28.0386 13.5027C28.3997 13.1413 28.9851 13.1413 29.3462 13.5027V13.5027C29.7073 13.8642 29.7073 14.4503 29.3462 14.8117L16.1627 28.0089C15.0504 29.1224 13.2706 29.1459 12.1873 28.0615L6.67132 22.5398C6.30056 22.1687 6.30056 21.5669 6.67132 21.1958V21.1958Z"})),keyword:["select","dropdown"]},{name:"select2",label:"Select2",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6C6 4.34315 7.34315 3 9 3H30C31.6569 3 33 4.34315 33 6V27C33 28.6569 31.6569 30 30 30H27V28H30C30.5523 28 31 27.5523 31 27V6C31 5.44771 30.5523 5 30 5H9C8.44772 5 8 5.44772 8 6V9H6V6Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 9H27V31H5L5 9ZM3 9C3 7.89543 3.89543 7 5 7H27C28.1046 7 29 7.89543 29 9V31C29 32.1046 28.1046 33 27 33H5C3.89543 33 3 32.1046 3 31V9ZM24.7475 14.6643C25.1144 14.2515 25.0771 13.6194 24.6643 13.2525C24.2515 12.8857 23.6194 12.9229 23.2525 13.3357L13.3349 24.4951L8.74711 19.3387C8.38 18.9261 7.74791 18.8892 7.3353 19.2563C6.92269 19.6234 6.8858 20.2555 7.25291 20.6681L12.5882 26.6647C12.7781 26.8781 13.05 27.0001 13.3356 27C13.6212 26.9999 13.8931 26.8778 14.0828 26.6643L24.7475 14.6643Z"})),keyword:["select2","multiselect","multidropdown"]},{name:"choose",label:"Choose",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H4ZM4 21C3.44772 21 3 21.4477 3 22C3 22.5523 3.44772 23 4 23H32C32.5523 23 33 22.5523 33 22C33 21.4477 32.5523 21 32 21H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C3.44772 12 3 12.4477 3 13C3 13.5523 3.44772 14 4 14H25C25.5523 14 26 13.5523 26 13C26 12.4477 25.5523 12 25 12H4ZM4 30C3.44772 30 3 30.4477 3 31C3 31.5523 3.44772 32 4 32H20C20.5523 32 21 31.5523 21 31C21 30.4477 20.5523 30 20 30H4Z"})),keyword:["choose","radioadvanced","align","justify"]},{name:"color",label:"Color",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.9336 13.4452C24.9645 13.1381 23.9535 12.9831 22.9369 12.9859C21.1834 12.986 19.4608 13.4474 17.9423 14.324C16.4237 13.4474 14.7012 12.986 12.9477 12.9859C11.2291 12.9864 9.5398 13.43 8.04297 14.274C8.12311 14.9736 8.28746 15.6609 8.53244 16.3211C9.33741 18.5936 10.9376 20.4982 13.0376 21.6835C12.9771 22.1102 12.9471 22.5406 12.9477 22.9716C12.9444 24.3474 13.2278 25.7087 13.7799 26.9689C14.332 28.2291 15.1406 29.3606 16.1542 30.2912C16.6951 30.8036 17.2954 31.2495 17.9423 31.6193C18.5892 31.2495 19.1894 30.8036 19.7303 30.2912C20.744 29.3606 21.5526 28.2291 22.1047 26.9689C22.6567 25.7087 22.9401 24.3474 22.9369 22.9716C22.9375 22.5406 22.9074 22.1102 22.847 21.6835C24.9469 20.4982 26.5471 18.5936 27.3521 16.3211C27.5971 15.6609 27.7614 14.9736 27.8416 14.274C27.2364 13.9317 26.5969 13.6539 25.9336 13.4452ZM17.9423 16.7405C19.1687 17.7209 20.0789 19.0407 20.5594 20.5351C18.8641 21.1225 17.0204 21.1225 15.3251 20.5351C15.8056 19.0407 16.7159 17.7209 17.9423 16.7405ZM10.3305 15.4224C11.1727 15.1328 12.057 14.9843 12.9477 14.983C14.0513 14.9823 15.143 15.2101 16.1542 15.6521C14.962 16.7462 14.0594 18.1185 13.527 19.6464C12.012 18.6427 10.8845 17.1528 10.3305 15.4224ZM17.9423 29.2027C17.0078 28.4548 16.2533 27.5065 15.7346 26.428C15.2159 25.3495 14.9463 24.1683 14.9455 22.9716C14.9455 22.8218 14.9455 22.6621 14.9455 22.5123C16.8958 23.1288 18.9888 23.1288 20.939 22.5123C20.939 22.6621 20.939 22.8218 20.939 22.9716C20.9383 24.1683 20.6686 25.3495 20.1499 26.428C19.6312 27.5065 18.8768 28.4548 17.9423 29.2027ZM22.3575 19.6364C21.8252 18.1085 20.9226 16.7362 19.7303 15.6421C20.7422 15.2036 21.834 14.9792 22.9369 14.983C23.8275 14.9843 24.7118 15.1328 25.554 15.4224C24.998 17.1491 23.8707 18.6352 22.3575 19.6364Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9423 3C15.293 3 12.7522 4.05207 10.8789 5.92475C9.00556 7.79744 7.95313 10.3374 7.95313 12.9857C7.95254 13.4135 7.98214 13.8408 8.0417 14.2644C6.90226 14.9141 5.90194 15.7817 5.0978 16.8177C4.29336 17.8541 3.701 19.0388 3.35455 20.304C3.0081 21.5692 2.91433 22.8903 3.07861 24.1918C3.24289 25.4933 3.66199 26.7496 4.31199 27.8892C4.96198 29.0288 5.83015 30.0292 6.86691 30.8333C7.90367 31.6375 9.08873 32.2297 10.3544 32.576C11.6201 32.9223 12.9416 33.0161 14.2436 32.8518C15.5455 32.6876 16.8023 32.2687 17.9423 31.6189C17.2954 31.2491 16.6951 30.8032 16.1542 30.2908C14.3207 31.0993 12.2502 31.1897 10.3531 30.544C8.45611 29.8983 6.871 28.5636 5.912 26.8046C4.95301 25.0456 4.69013 22.9906 5.17548 21.0469C5.66083 19.1033 6.85897 17.4129 8.53243 16.3107C8.28857 15.6536 8.12461 14.9696 8.04407 14.2733C8.64896 13.9313 9.2881 13.6537 9.95097 13.4451V12.9857C9.95097 10.867 10.7929 8.8351 12.2916 7.33695C13.7903 5.8388 15.8229 4.99715 17.9423 4.99715C20.0618 4.99715 22.0944 5.8388 23.5931 7.33695C25.0918 8.8351 25.9337 10.867 25.9337 12.9857V13.4451C26.6004 13.6532 27.2433 13.931 27.8516 14.2739C27.9087 13.8469 27.9354 13.4165 27.9315 12.9857C27.9315 10.3374 26.8791 7.79744 25.0058 5.92475C23.1324 4.05207 20.5916 3 17.9423 3ZM27.3522 16.321C27.5972 15.6608 27.7615 14.9735 27.8417 14.2739C29 14.9137 30.0195 15.7771 30.8412 16.814C31.6628 17.851 32.2702 19.0408 32.628 20.3144C32.9858 21.588 33.0869 22.92 32.9254 24.2329C32.7639 25.5459 32.343 26.8137 31.6873 27.9627C31.0315 29.1117 30.1539 30.119 29.1054 30.9261C28.057 31.7332 26.8585 32.324 25.5797 32.6642C24.3009 33.0044 22.9672 33.0872 21.6561 32.9078C20.3451 32.7284 19.0827 32.2904 17.9424 31.6191C18.5887 31.2525 19.189 30.81 19.7305 30.301C21.564 31.1095 23.6345 31.1999 25.5315 30.5542C27.4285 29.9085 29.0136 28.5739 29.9726 26.8149C30.9316 25.0558 31.1945 23.0008 30.7092 21.0572C30.2238 19.1135 29.0257 17.4231 27.3522 16.321Z"})),keyword:["color"]},{name:"datetime",label:"DateTime",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4V5H14V4C14 3.44772 14.4477 3 15 3C15.5523 3 16 3.44772 16 4V5H22V4C22 3.44772 22.4477 3 23 3C23.5523 3 24 3.44772 24 4V5C25.6569 5 27 6.34315 27 8V16H25V8C25 7.44771 24.5523 7 24 7H23H15H7H6C5.44771 7 5 7.44772 5 8V26C5 26.5523 5.44772 27 6 27H17V29H6C4.34315 29 3 27.6569 3 26V8C3 6.34314 4.34315 5 6 5V4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 24C31 27.866 27.866 31 24 31C20.134 31 17 27.866 17 24C17 20.134 20.134 17 24 17C27.866 17 31 20.134 31 24ZM33 24C33 28.9706 28.9706 33 24 33C19.0294 33 15 28.9706 15 24C15 19.0294 19.0294 15 24 15C28.9706 15 33 19.0294 33 24ZM23 20C23 19.4477 23.4477 19 24 19C24.5523 19 25 19.4477 25 20V23H28C28.5523 23 29 23.4477 29 24C29 24.5523 28.5523 25 28 25H24C23.4477 25 23 24.5523 23 24V20Z"})),keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6328 12.1223C10.6328 11.8782 10.8379 11.6285 11.1538 11.6285C11.4698 11.6285 11.6749 11.8782 11.6749 12.1223C11.6749 12.3664 11.4698 12.6161 11.1538 12.6161C10.8379 12.6161 10.6328 12.3664 10.6328 12.1223ZM11.1538 9.38477C9.69504 9.38477 8.46154 10.5817 8.46154 12.1223C8.46154 13.6629 9.69504 14.8598 11.1538 14.8598C12.6126 14.8598 13.8462 13.6629 13.8462 12.1223C13.8462 10.5817 12.6126 9.38477 11.1538 9.38477ZM20.8451 10.8117C20.4285 10.3735 19.7562 10.3691 19.3346 10.8018L4.48025 26.0471C4.05369 26.4849 4.04389 27.205 4.45837 27.6556C4.87285 28.1061 5.55465 28.1165 5.98121 27.6787L20.0758 13.2133L28.1631 21.7213C28.5845 22.1646 29.2663 22.1631 29.6861 21.718C30.1058 21.2729 30.1044 20.5527 29.683 20.1094L20.8451 10.8117Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H28V9V11V26H9H7H4V6ZM7 28H4C2.89543 28 2 27.1046 2 26V6C2 4.89543 2.89543 4 4 4H28C29.1046 4 30 4.89543 30 6V9H31C32.6569 9 34 10.3431 34 12V29C34 30.6569 32.6569 32 31 32H10C8.34315 32 7 30.6569 7 29V28ZM9 28V29C9 29.5523 9.44771 30 10 30H31C31.5523 30 32 29.5523 32 29V12C32 11.4477 31.5523 11 31 11H30V26C30 27.1046 29.1046 28 28 28H9Z"})),keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.1353C32 15.583 31.5523 15.1353 31 15.1353C30.4477 15.1353 30 15.583 30 16.1353V21.9998C30 22.8304 29.676 23.6234 29.105 24.2052C28.5764 24.7438 27.8637 25 27 25H5C4.44772 25 4 25.4477 4 26C4 26.5523 4.44772 27 5 27H27C28.2757 27 29.5483 26.6088 30.5324 25.6061C31.4742 24.6465 32 23.3489 32 21.9998V16.1353ZM4 19.8647C4 20.417 4.44772 20.8647 5 20.8647C5.55228 20.8647 6 20.417 6 19.8647V14.0002C6 13.1696 6.32403 12.3766 6.89499 11.7948C7.42365 11.2562 8.13633 11 9 11H31C31.5523 11 32 10.5523 32 10C32 9.44772 31.5523 9 31 9H9C7.72434 9 6.45166 9.39123 5.46759 10.3939C4.52581 11.3535 4 12.6511 4 14.0002V19.8647Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 25.2929L9.29289 20.2929C9.68342 19.9024 10.3166 19.9024 10.7071 20.2929C11.0976 20.6834 11.0976 21.3166 10.7071 21.7071L6.41422 26L10.7071 30.2929C11.0976 30.6834 11.0976 31.3166 10.7071 31.7071C10.3166 32.0976 9.68342 32.0976 9.29289 31.7071L4.29289 26.7071C3.90237 26.3166 3.90237 25.6834 4.29289 25.2929ZM29.5858 10L25.2929 14.2929C24.9024 14.6834 24.9024 15.3166 25.2929 15.7071C25.6834 16.0976 26.3166 16.0976 26.7071 15.7071L31.7071 10.7071C32.0976 10.3166 32.0976 9.68342 31.7071 9.29289L26.7071 4.29289C26.3166 3.90237 25.6834 3.90237 25.2929 4.29289C24.9024 4.68342 24.9024 5.31658 25.2929 5.70711L29.5858 10Z"})),keyword:["repeater"]}]},WDesignKitControls:{Name:"WDsignKit Controls",data:[{name:"selecttemplate",label:"Select Template",icon:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14 2C12.3431 2 11 3.34315 11 5V6H10C8.34315 6 7 7.34315 7 9V11C7 11.5523 7.44772 12 8 12C8.55228 12 9 11.5523 9 11V9C9 8.44772 9.44772 8 10 8H12H25H27C27.5523 8 28 8.44772 28 9V11C28 11.5523 28.4477 12 29 12C29.5523 12 30 11.5523 30 11V9C30 7.34315 28.6569 6 27 6H26V5C26 3.34315 24.6569 2 23 2H14ZM24 6V5C24 4.44772 23.5523 4 23 4H14C13.4477 4 13 4.44772 13 5V6H24Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12H30V32H6V12ZM4 12C4 10.8954 4.89543 10 6 10H30C31.1046 10 32 10.8954 32 12V32C32 33.1046 31.1046 34 30 34H6C4.89543 34 4 33.1046 4 32V12ZM15 16H10V28H15V16ZM10 14C8.89543 14 8 14.8954 8 16V28C8 29.1046 8.89543 30 10 30H15C16.1046 30 17 29.1046 17 28V16C17 14.8954 16.1046 14 15 14H10ZM20 17C19.4477 17 19 17.4477 19 18C19 18.5523 19.4477 19 20 19H27C27.5523 19 28 18.5523 28 18C28 17.4477 27.5523 17 27 17H20ZM19 22C19 21.4477 19.4477 21 20 21H27C27.5523 21 28 21.4477 28 22C28 22.5523 27.5523 23 27 23H20C19.4477 23 19 22.5523 19 22ZM20 25C19.4477 25 19 25.4477 19 26C19 26.5523 19.4477 27 20 27H27C27.5523 27 28 26.5523 28 26C28 25.4477 27.5523 25 27 25H20Z"})),keyword:["selecttemplate","query"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 14H4V22H32V14ZM4 12C2.89543 12 2 12.8954 2 14V22C2 23.1046 2.89543 24 4 24H32C33.1046 24 34 23.1046 34 22V14C34 12.8954 33.1046 12 32 12H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 7C21.4477 7 21 7.44772 21 8C21 8.55228 21.4477 9 22 9H23V27H22C21.4477 27 21 27.4477 21 28C21 28.5523 21.4477 29 22 29H24H26C26.5523 29 27 28.5523 27 28C27 27.4477 26.5523 27 26 27H25V9H26C26.5523 9 27 8.55228 27 8C27 7.44772 26.5523 7 26 7H24H22ZM10 18C10 19.1046 9.10457 20 8 20C6.89543 20 6 19.1046 6 18C6 16.8954 6.89543 16 8 16C9.10457 16 10 16.8954 10 18ZM16 18C16 19.1046 15.1046 20 14 20C12.8954 20 12 19.1046 12 18C12 16.8954 12.8954 16 14 16C15.1046 16 16 16.8954 16 18Z"})),keyword:["url","link"]},{name:"media",label:"Media",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9764 12.9816C19.2482 12.9767 20.4886 13.3722 21.5187 14.1111C22.5488 14.8501 23.3152 15.8942 23.7075 17.0928C24.0997 18.2914 24.0974 19.5824 23.701 20.7796C23.4097 21.6592 22.9166 22.4548 22.266 23.1066C21.8758 23.4975 21.766 24.1182 22.0903 24.5653C22.4106 25.0068 23.0321 25.112 23.4341 24.7433C24.4277 23.8322 25.1758 22.6821 25.6013 21.3974C26.1299 19.8011 26.133 18.0797 25.61 16.4816C25.087 14.8835 24.065 13.4913 22.6916 12.5061C21.3181 11.5208 19.6642 10.9935 17.9686 11.0001C16.273 11.0067 14.6233 11.5469 13.2577 12.5428C11.8921 13.5387 10.8812 14.9387 10.3709 16.5409C9.86057 18.143 9.87727 19.8644 10.4185 21.4565C10.8542 22.7378 11.6114 23.8821 12.6122 24.7855C13.0171 25.151 13.6377 25.0409 13.9545 24.5969C14.2753 24.1473 14.1606 23.5275 13.7674 23.1398C13.1115 22.493 12.6122 21.7013 12.3139 20.8239C11.908 19.6298 11.8954 18.3388 12.2782 17.1372C12.6609 15.9356 13.4191 14.8856 14.4433 14.1387C15.4675 13.3917 16.7047 12.9866 17.9764 12.9816ZM17.9921 16.9447C18.4161 16.9431 18.8295 17.0749 19.1729 17.3212C19.5163 17.5675 19.7717 17.9156 19.9025 18.3151C20.0332 18.7146 20.0325 19.145 19.9003 19.5441C19.8739 19.6238 19.8425 19.7015 19.8064 19.7768C19.5676 20.2748 19.4316 20.8999 19.7559 21.347C20.0762 21.7886 20.7052 21.8958 21.0586 21.4803C21.387 21.0942 21.6399 20.6473 21.8006 20.1619C22.065 19.3637 22.0665 18.503 21.805 17.7039C21.5435 16.9049 21.0325 16.2088 20.3458 15.7162C19.6591 15.2236 18.8321 14.9599 17.9843 14.9632C17.1365 14.9665 16.3116 15.2366 15.6288 15.7345C14.946 16.2325 14.4406 16.9325 14.1854 17.7336C13.9303 18.5346 13.9386 19.3953 14.2093 20.1914C14.3739 20.6755 14.6303 21.1206 14.9618 21.5041C15.3185 21.9168 15.9465 21.8046 16.2633 21.3606C16.5841 20.911 16.4432 20.287 16.2004 19.7909C16.1637 19.716 16.1317 19.6385 16.1046 19.5588C15.9693 19.1608 15.9651 18.7305 16.0927 18.3299C16.2203 17.9294 16.473 17.5794 16.8144 17.3304C17.1558 17.0814 17.5682 16.9464 17.9921 16.9447Z"})),keyword:["media","image"]},{name:"iconscontrol",label:"IconsControl",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17C19 17.5523 18.5523 18 18 18C17.4477 18 17 17.5523 17 17V15ZM25.0643 20.7471C24.8481 21.0316 24.6165 21.3031 24.3709 21.5603L22.9244 20.1791C23.1183 19.976 23.3011 19.7618 23.4718 19.5371L25.0643 20.7471ZM10.9058 21.8382C10.6498 21.5913 10.4072 21.3297 10.1794 21.0543L11.7206 19.7796C11.9004 19.997 12.0919 20.2036 12.294 20.3985L10.9058 21.8382ZM22.7332 22.9284C22.4364 23.1243 22.1281 23.3039 21.8096 23.466C21.4911 23.6281 21.1645 23.7717 20.8314 23.8964L20.1301 22.0234C20.3931 21.925 20.6509 21.8116 20.9023 21.6836C21.1538 21.5556 21.3971 21.4138 21.6315 21.2592L22.7332 22.9284ZM13.5435 23.6366C13.2186 23.4877 12.9032 23.3211 12.5985 23.1375L13.6304 21.4243C13.871 21.5692 14.12 21.7008 14.3765 21.8183C14.633 21.9358 14.8953 22.0384 15.1621 22.1259L14.5386 24.0263C14.2007 23.9154 13.8684 23.7854 13.5435 23.6366ZM18.7616 24.4155C18.4091 24.4628 18.0534 24.4903 17.6961 24.4977C17.3388 24.505 16.9823 24.4922 16.6281 24.4596L16.8117 22.468C17.0913 22.4938 17.3728 22.5039 17.6548 22.4981C17.9369 22.4923 18.2177 22.4705 18.496 22.4333L18.7616 24.4155ZM10.5 17H11.4375V15H10.5V17ZM13.3125 17H15.1875V15H13.3125V17ZM20.8125 17H22.6875V15H20.8125V17ZM24.5625 17H25.5V15H24.5625V17Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 2C16.9477 2 16.5 2.44772 16.5 3V4.12602C14.7748 4.57006 13.5 6.13616 13.5 8C13.5 9.46135 14.2837 10.7397 15.4536 11.4376L11.2647 18.3556C11.0813 18.1381 10.8068 18 10.5 18C9.94772 18 9.5 18.4477 9.5 19V24C9.5 24.5523 9.94772 25 10.5 25C11.0523 25 11.5 24.5523 11.5 24V21.8975L17.4931 12L17.5 12C17.6906 12 17.878 11.9867 18.0615 11.9609L24.5 22.3756V24C24.5 24.5523 24.9477 25 25.5 25C26.0523 25 26.5 24.5523 26.5 24V19C26.5 18.4477 26.0523 18 25.5 18C25.081 18 24.7222 18.2577 24.5734 18.6232L19.9573 11.1564C20.8962 10.4244 21.5 9.28272 21.5 8C21.5 6.13616 20.2252 4.57006 18.5 4.12602V3C18.5 2.44772 18.0523 2 17.5 2ZM17.5 10C18.6046 10 19.5 9.10457 19.5 8C19.5 6.89543 18.6046 6 17.5 6C16.3954 6 15.5 6.89543 15.5 8C15.5 9.10457 16.3954 10 17.5 10ZM18 32C19.1046 32 20 31.1046 20 30C20 28.8954 19.1046 28 18 28C16.8954 28 16 28.8954 16 30C16 31.1046 16.8954 32 18 32ZM18 34C19.8666 34 21.4346 32.7215 21.8759 30.9924C21.9166 30.9974 21.958 31 22 31H31C31.5523 31 32 30.5523 32 30C32 29.4477 31.5523 29 31 29H22C21.958 29 21.9166 29.0026 21.8759 29.0076C21.4346 27.2785 19.8666 26 18 26C16.1334 26 14.5654 27.2785 14.1241 29.0076C14.0834 29.0026 14.042 29 14 29H5C4.44772 29 4 29.4477 4 30C4 30.5523 4.44771 31 5 31H14C14.042 31 14.0834 30.9974 14.1241 30.9924C14.5654 32.7215 16.1334 34 18 34Z"})),keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H32V30H4V6ZM2 6C2 4.89543 2.89543 4 4 4H32C33.1046 4 34 4.89543 34 6V30C34 31.1046 33.1046 32 32 32H4C2.89543 32 2 31.1046 2 30V6ZM23.7724 8L21.379 17H19.8667L22.2602 8H23.7724ZM12.6954 8.35237V15.8695H14.4905V12.8487H17.417V15.8695H19.2085V8.35237H17.417V11.3695H14.4905V8.35237H12.6954ZM6 11.3695V12.8964L11.2511 15.1281V13.4617L7.83862 12.1683V12.0977L11.2511 10.8079V9.13785L6 11.3695ZM24.7489 15.8328L30 13.6011V12.0742L24.7489 9.84258V11.5126L28.165 12.8038V12.8716L24.7489 14.1664V15.8328Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 22C6.44772 22 6 22.4477 6 23C6 23.5523 6.44772 24 7 24H29C29.5523 24 30 23.5523 30 23C30 22.4477 29.5523 22 29 22H7ZM7 26C6.44772 26 6 26.4477 6 27C6 27.5523 6.44772 28 7 28H29C29.5523 28 30 27.5523 30 27C30 26.4477 29.5523 26 29 26H7Z"})),keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 21C2 20.4477 2.44772 20 3 20H33C33.5523 20 34 20.4477 34 21C34 21.5523 33.5523 22 33 22H3C2.44772 22 2 21.5523 2 21Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.74916 10.2579C8.15901 9.88772 8.79136 9.91987 9.16154 10.3297L11.7422 13.1869C11.9151 13.3783 12.0002 13.6182 12.0001 13.8573C12.0002 14.0964 11.9151 14.3363 11.7422 14.5277L9.16154 17.3849C8.79136 17.7947 8.15901 17.8269 7.74916 17.4567C7.3393 17.0865 7.30715 16.4541 7.67734 16.0443L8.62057 15L3 15C2.44772 15 2 14.5523 2 14C2 13.4477 2.44772 13 3 13L8.87836 13L7.67734 11.6703C7.30715 11.2604 7.3393 10.6281 7.74916 10.2579ZM13 16C12.4477 16 12 16.4477 12 17V25C12 25.5523 12.4477 26 13 26C13.5523 26 14 25.5523 14 25V17C14 16.4477 13.5523 16 13 16Z"})),keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3808 6.36366C19.8144 6.70568 20.4432 6.63142 20.7852 6.19778C21.1272 5.76415 21.053 5.13535 20.6193 4.79333L18.696 3.27632C18.5173 3.10584 18.2755 3.00089 18.0091 3.00005L17.9996 3C17.9249 2.99989 17.85 3.00811 17.7764 3.02483C17.6856 3.04544 17.5995 3.07841 17.5199 3.12187C17.4655 3.1515 17.4135 3.18643 17.3646 3.22659L15.3802 4.7937C14.9468 5.13598 14.8729 5.76482 15.2152 6.19825C15.5575 6.63168 16.1863 6.70557 16.6197 6.36328L17.0008 6.06235L17.0023 7.49943L17.0008 8.93623L16.6202 8.6353C16.187 8.29276 15.5581 8.36627 15.2156 8.79949C14.873 9.23271 14.9465 9.8616 15.3797 10.2041L17.3668 11.7753C17.4147 11.8144 17.4655 11.8485 17.5186 11.8775C17.6858 11.9692 17.8715 12.0087 18.0539 11.9986C18.1258 11.9947 18.1975 11.983 18.2677 11.9635C18.4251 11.9209 18.567 11.8409 18.6834 11.7336L20.6198 10.2044C21.0532 9.86215 21.1271 9.23331 20.7848 8.79989C20.4426 8.36646 19.8137 8.29257 19.3803 8.63485L19.0038 8.93219L19.0023 7.49906L19.0038 6.06631L19.3808 6.36366ZM6.36366 16.6193C6.70568 16.1857 6.63142 15.5569 6.19778 15.2149C5.76415 14.8729 5.13535 14.9471 4.79333 15.3808L3.27632 17.3041C3.10584 17.4828 3.00089 17.7246 3.00005 17.991L3 18.0005C2.99989 18.0752 3.00811 18.1501 3.02483 18.2237C3.04544 18.3145 3.07841 18.4006 3.12187 18.4802C3.15149 18.5345 3.18643 18.5866 3.22658 18.6354L4.7937 20.6199C5.13598 21.0533 5.76482 21.1272 6.19825 20.7849C6.63168 20.4426 6.70557 19.8138 6.36328 19.3804L6.06235 18.9993L7.49897 18.9978L8.93623 18.9993L8.6353 19.3799C8.29276 19.8131 8.36627 20.442 8.79949 20.7845C9.23271 21.1271 9.8616 21.0536 10.2041 20.6203L11.7753 18.6332C11.8144 18.5854 11.8485 18.5346 11.8775 18.4815C11.9692 18.3143 12.0087 18.1286 11.9986 17.9462C11.9947 17.8743 11.983 17.8026 11.9635 17.7323C11.9209 17.575 11.8409 17.4331 11.7336 17.3167L10.2044 15.3803C9.86215 14.9469 9.23331 14.873 8.79989 15.2153C8.36646 15.5575 8.29257 16.1864 8.63485 16.6198L8.93219 16.9963L7.4992 16.9978L6.06631 16.9963L6.36366 16.6193ZM27.3637 16.6193C27.7057 16.1857 27.6314 15.5569 27.1978 15.2149C26.7641 14.8729 26.1354 14.9471 25.7933 15.3808L24.2763 17.3041C24.1058 17.4828 24.0009 17.7247 24 17.9911L24 18.0017C24 18.0725 24.0074 18.1434 24.0225 18.2132C24.043 18.3083 24.0771 18.3984 24.1225 18.4813C24.152 18.5353 24.1867 18.5869 24.2266 18.6355L25.7937 20.6199C26.136 21.0533 26.7648 21.1272 27.1983 20.7849C27.6317 20.4426 27.7056 19.8138 27.3633 19.3804L27.0623 18.9993L28.499 18.9978L29.9362 18.9993L29.6353 19.3799C29.2928 19.8131 29.3663 20.442 29.7995 20.7845C30.2327 21.1271 30.8616 21.0536 31.2041 20.6203L32.7753 18.6332C32.8144 18.5854 32.8485 18.5346 32.8775 18.4815C32.9692 18.3143 33.0087 18.1286 32.9986 17.9462C32.9947 17.8743 32.983 17.8026 32.9635 17.7323C32.9209 17.575 32.8409 17.4331 32.7336 17.3167L31.2044 15.3803C30.8622 14.9469 30.2333 14.873 29.7999 15.2153C29.3665 15.5575 29.2926 16.1864 29.6349 16.6198L29.9322 16.9963L28.4992 16.9978L27.0663 16.9963L27.3637 16.6193ZM17.3669 32.7753L15.3797 31.2041C14.9465 30.8616 14.873 30.2327 15.2156 29.7995C15.5581 29.3663 16.187 29.2928 16.6202 29.6353L17.0008 29.9362L17.0023 28.4994L17.0008 27.0624L16.6197 27.3633C16.1863 27.7056 15.5575 27.6317 15.2152 27.1983C14.8729 26.7648 14.9468 26.136 15.3802 25.7937L17.3646 24.2266C17.4131 24.1867 17.4648 24.152 17.5188 24.1225C17.584 24.0868 17.6536 24.0581 17.7266 24.0375C17.7463 24.0319 17.7662 24.027 17.7864 24.0226C17.8562 24.0075 17.927 24 17.9978 24L18.0088 24C18.2753 24.0008 18.5172 24.1058 18.696 24.2763L20.6193 25.7933C21.053 26.1354 21.1272 26.7641 20.7852 27.1978C20.4432 27.6314 19.8144 27.7057 19.3808 27.3637L19.0038 27.0663L19.0023 28.4991L19.0038 29.9322L19.3803 29.6349C19.8137 29.2926 20.4426 29.3665 20.7848 29.7999C21.1271 30.2333 21.0532 30.8622 20.6198 31.2044L18.6834 32.7337C18.567 32.8409 18.4251 32.9209 18.2678 32.9634C18.1976 32.983 18.1258 32.9947 18.0539 32.9986C17.8715 33.0088 17.6858 32.9692 17.5186 32.8775C17.4655 32.8485 17.4147 32.8144 17.3669 32.7753Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 15H15L15 21H21V15ZM15 13C13.8954 13 13 13.8954 13 15V21C13 22.1046 13.8954 23 15 23H21C22.1046 23 23 22.1046 23 21V15C23 13.8954 22.1046 13 21 13H15Z"})),keyword:["padding","margin","dimension"]},{name:"normalhover",label:"NormalHover",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M33 11.4978C33 15.0862 30.0901 17.9956 26.5 17.9956C22.9099 17.9956 20 15.0862 20 11.4978C20 7.90944 22.9099 5 26.5 5C30.0901 5 33 7.90944 33 11.4978Z",strokeWidth:"2"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.05335 16.8035L8.0803 14.9012C8.10337 13.2722 9.99281 12.3477 11.2938 13.3288L13.6501 15.1058C14.4909 14.1401 15 12.8783 15 11.4978C15 8.462 12.5381 6 9.5 6C6.46188 6 4 8.462 4 11.4978C4 14.0333 5.71731 16.1685 8.05335 16.8035ZM8.02435 18.8505C4.58887 18.1653 2 15.1338 2 11.4978C2 7.35688 5.35786 4 9.5 4C13.6421 4 17 7.35688 17 11.4978C17 13.3305 16.3422 15.0097 15.2498 16.3122L23.3619 22.4299C24.7903 23.5071 24.1363 25.7755 22.3406 25.9727L16.5671 26.6068C16.0987 26.6582 15.662 26.8719 15.3341 27.2101L11.2914 31.3795C10.034 32.6763 7.8409 31.801 7.86623 30.0124L8.02435 18.8505ZM10.017 18.9781L9.86064 30.0181L13.9033 25.8487C14.5592 25.1723 15.4327 24.7449 16.3693 24.642L22.1429 24.008L13.7485 17.6774C12.6739 18.4173 11.3967 18.8842 10.017 18.9781ZM12.0294 16.381L10.0747 14.9068L10.0455 16.9689C10.7551 16.8991 11.4251 16.6944 12.0294 16.381Z"})),keyword:["hover","normalhover"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Heading",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 3C23.4477 3 23 3.44772 23 4C23 4.55228 23.4477 5 24 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H24ZM7 18C7 17.4477 7.44772 17 8 17H28C28.5523 17 29 17.4477 29 18C29 18.5523 28.5523 19 28 19H8C7.44772 19 7 18.5523 7 18ZM3 32C3 31.4477 3.44772 31 4 31H12C12.5523 31 13 31.4477 13 32C13 32.5523 12.5523 33 12 33H4C3.44772 33 3 32.5523 3 32ZM3 4C3 3.44772 3.44772 3 4 3H12C12.5523 3 13 3.44772 13 4C13 4.55228 12.5523 5 12 5H4C3.44772 5 3 4.55228 3 4ZM24 31C23.4477 31 23 31.4477 23 32C23 32.5523 23.4477 33 24 33H32C32.5523 33 33 32.5523 33 32C33 31.4477 32.5523 31 32 31H24Z"})),keyword:["heading","info","note","labelheading"]},{name:"rawhtml",label:"RawHTML",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4H5V8L7 8V4H9V8V10V14H7V10H5V14H3V10V8V4ZM14 4H16V6H14V14H12V6H10V4H12H14ZM22 10.6667L20 4H18V14H20V10.6667L21 14H23L24 10.6667V14H26V4H24L22 10.6667ZM28 4H30V12H33V14H30H28V12V4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7709 15C19.3192 15 18.9268 15.3108 18.8234 15.7505L15.2814 30.8036C15.1377 31.4147 15.6013 32 16.229 32C16.6807 32 17.0731 31.6892 17.1765 31.2495L20.7184 16.1964C20.8622 15.5853 20.3986 15 19.7709 15ZM9.70348 17.2927C10.0941 17.6831 10.0943 18.3163 9.70388 18.7069L4.41401 23.9998L9.70711 29.2929C10.0976 29.6834 10.0976 30.3166 9.70711 30.7071C9.31658 31.0976 8.68342 31.0976 8.29289 30.7071L2.2934 24.7076L2.2931 24.7073L2.29289 24.7071C2.07941 24.4936 1.98262 24.2076 2.00255 23.9284C2.00383 23.9105 2.00558 23.8927 2.00781 23.8749C2.03448 23.6622 2.12944 23.4564 2.29269 23.2931L2.29289 23.2929L8.28927 17.2931C8.67968 16.9025 9.31284 16.9023 9.70348 17.2927ZM26.2961 18.7069L31.586 23.9998L26.2929 29.2929C25.9023 29.6834 25.9023 30.3166 26.2929 30.7071C26.6834 31.0976 27.3166 31.0976 27.7071 30.7071L33.7063 24.708L33.7069 24.7073L33.7071 24.7071C34.0976 24.3167 34.0976 23.6837 33.7073 23.2931L33.7073 23.2931L33.7071 23.2929L27.7107 17.2931C27.3203 16.9025 26.6871 16.9023 26.2965 17.2927C25.9059 17.6831 25.9057 18.3163 26.2961 18.7069Z"})),keyword:["rawhtml","info","note"]},{name:"divider",label:"Divider",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 9V6H32V9H4ZM4 4C3.47275 4 2.95567 4.18011 2.56789 4.56789C2.18011 4.95567 2 5.47275 2 6V9C2 9.52725 2.18011 10.0443 2.56789 10.4321C2.95567 10.8199 3.47275 11 4 11H32C32.5272 11 33.0443 10.8199 33.4321 10.4321C33.8199 10.0443 34 9.52725 34 9V6C34 5.47275 33.8199 4.95567 33.4321 4.56789C33.0443 4.18011 32.5272 4 32 4H4ZM4 30V27H32V30H4ZM4 25C3.47275 25 2.95567 25.1801 2.56789 25.5679C2.18011 25.9557 2 26.4728 2 27V30C2 30.5272 2.18011 31.0443 2.56789 31.4321C2.95567 31.8199 3.47275 32 4 32H32C32.5272 32 33.0443 31.8199 33.4321 31.4321C33.8199 31.0443 34 30.5272 34 30V27C34 26.4728 33.8199 25.9557 33.4321 25.5679C33.0443 25.1801 32.5272 25 32 25H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 15.7C21.3 16.1 20.7 16.1 20.3 15.7L20 15.4V17H21V19H20V20.6L20.3 20.3C20.7 19.9 21.3 19.9 21.7 20.3C22.1 20.7 22.1 21.3 21.7 21.7L19.7 23.7C19.65 23.7 19.625 23.725 19.6 23.75C19.575 23.775 19.55 23.8 19.5 23.8H19.4C19.4 23.9 19.3 23.9 19.3 23.9H19.1H19C18.95 23.9 18.9 23.875 18.85 23.85C18.8 23.825 18.75 23.8 18.7 23.8H18.6C18.5 23.8 18.4 23.7 18.3 23.6L16.3 21.6C15.9 21.2 15.9 20.6 16.3 20.2C16.7 19.8 17.3 19.8 17.7 20.2L18 20.5V15.3L17.7 15.6C17.3 16 16.7 16 16.3 15.6C15.9 15.2 15.9 14.6 16.3 14.2L18.3 12.2C18.35 12.15 18.4 12.125 18.45 12.1C18.5 12.075 18.55 12.05 18.6 12H18.8H19H19.1C19.2 12.1 19.2 12.1 19.3 12.1H19.4C19.5 12.1 19.6 12.2 19.7 12.3L21.7 14.3C22.1 14.7 22.1 15.3 21.7 15.7ZM7 17H9V19H7V17ZM13 17H11V19H13V17ZM3 17H5V19H3V17ZM25 17H23V19H25V17ZM27 17H29V19H27V17ZM17 17H15V19H17V17ZM31 17H33V19H31V17Z"})),keyword:["divider","separator"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H17L17 32C17 32.5523 17.4477 33 18 33C18.5523 33 19 32.5523 19 32L19 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H18H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 8C5 8.55228 4.55228 9 4 9C3.44772 9 3 8.55228 3 8V4C3 3.44772 3.44772 3 4 3ZM32 3C32.5523 3 33 3.44772 33 4V8C33 8.55228 32.5523 9 32 9C31.4477 9 31 8.55228 31 8V4C31 3.44772 31.4477 3 32 3ZM22 33C22.5523 33 23 32.5523 23 32C23 31.4477 22.5523 31 22 31H14C13.4477 31 13 31.4477 13 32C13 32.5523 13.4477 33 14 33H22Z"})),keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 11.5C19.9477 11.5 19.5 11.9477 19.5 12.5C19.5 13.0523 19.9477 13.5 20.5 13.5C21.0523 13.5 21.5 13.0523 21.5 12.5C21.5 11.9477 21.0523 11.5 20.5 11.5ZM19.5 15.5C19.5 16.0523 19.9477 16.5 20.5 16.5C21.0523 16.5 21.5 16.0523 21.5 15.5C21.5 14.9477 21.0523 14.5 20.5 14.5C19.9477 14.5 19.5 14.9477 19.5 15.5ZM19.5 18.5C19.5 19.0523 19.9477 19.5 20.5 19.5C21.0523 19.5 21.5 19.0523 21.5 18.5C21.5 17.9477 21.0523 17.5 20.5 17.5C19.9477 17.5 19.5 17.9477 19.5 18.5ZM19.5 21.5C19.5 22.0523 19.9477 22.5 20.5 22.5C21.0523 22.5 21.5 22.0523 21.5 21.5C21.5 20.9477 21.0523 20.5 20.5 20.5C19.9477 20.5 19.5 20.9477 19.5 21.5ZM22.5 12.5C22.5 11.9477 22.9477 11.5 23.5 11.5C24.0523 11.5 24.5 11.9477 24.5 12.5C24.5 13.0523 24.0523 13.5 23.5 13.5C22.9477 13.5 22.5 13.0523 22.5 12.5ZM26 11.5C25.7239 11.5 25.5 11.7239 25.5 12V13C25.5 13.2761 25.7239 13.5 26 13.5C26.2761 13.5 26.5 13.2761 26.5 13V12C26.5 11.7239 26.2761 11.5 26 11.5ZM21.5 24.5C21.5 25.0523 21.0523 25.5 20.5 25.5C19.9477 25.5 19.5 25.0523 19.5 24.5C19.5 23.9477 19.9477 23.5 20.5 23.5C21.0523 23.5 21.5 23.9477 21.5 24.5ZM20 26.5C19.7239 26.5 19.5 26.7239 19.5 27C19.5 27.2761 19.7239 27.5 20 27.5H21C21.2761 27.5 21.5 27.2761 21.5 27C21.5 26.7239 21.2761 26.5 21 26.5H20Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H31V31H5L5 5ZM3 5C3 3.89543 3.89543 3 5 3H31C32.1046 3 33 3.89543 33 5V31C33 32.1046 32.1046 33 31 33H5C3.89543 33 3 32.1046 3 31V5ZM9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5H17.5H24.5C25.0523 8.5 25.5 8.94772 25.5 9.5C25.5 10.0523 25.0523 10.5 24.5 10.5H18.5L18.5 25.5C18.5 26.0523 18.0523 26.5 17.5 26.5C16.9477 26.5 16.5 26.0523 16.5 25.5L16.5 10.5H10.5C9.94772 10.5 9.5 10.0523 9.5 9.5Z"})),keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 5H5L5 27H27V5ZM5 3C3.89543 3 3 3.89543 3 5V27C3 28.1046 3.89543 29 5 29H27C28.1046 29 29 28.1046 29 27V5C29 3.89543 28.1046 3 27 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 7C31 6.44772 31.4477 6 32 6C32.5523 6 33 6.44772 33 7C33 7.55228 32.5523 8 32 8C31.4477 8 31 7.55228 31 7ZM31 11C31 10.4477 31.4477 10 32 10C32.5523 10 33 10.4477 33 11C33 11.5523 32.5523 12 32 12C31.4477 12 31 11.5523 31 11ZM32 14C31.4477 14 31 14.4477 31 15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15C33 14.4477 32.5523 14 32 14ZM31 19C31 18.4477 31.4477 18 32 18C32.5523 18 33 18.4477 33 19C33 19.5523 32.5523 20 32 20C31.4477 20 31 19.5523 31 19ZM32 22C31.4477 22 31 22.4477 31 23C31 23.5523 31.4477 24 32 24C32.5523 24 33 23.5523 33 23C33 22.4477 32.5523 22 32 22ZM31 27C31 26.4477 31.4477 26 32 26C32.5523 26 33 26.4477 33 27C33 27.5523 32.5523 28 32 28C31.4477 28 31 27.5523 31 27ZM32 30C31.4477 30 31 30.4477 31 31C31 31.5523 31.4477 32 32 32C32.5523 32 33 31.5523 33 31C33 30.4477 32.5523 30 32 30ZM27 31C27 30.4477 27.4477 30 28 30C28.5523 30 29 30.4477 29 31C29 31.5523 28.5523 32 28 32C27.4477 32 27 31.5523 27 31ZM24 30C23.4477 30 23 30.4477 23 31C23 31.5523 23.4477 32 24 32C24.5523 32 25 31.5523 25 31C25 30.4477 24.5523 30 24 30ZM19 31C19 30.4477 19.4477 30 20 30C20.5523 30 21 30.4477 21 31C21 31.5523 20.5523 32 20 32C19.4477 32 19 31.5523 19 31ZM16 30C15.4477 30 15 30.4477 15 31C15 31.5523 15.4477 32 16 32C16.5523 32 17 31.5523 17 31C17 30.4477 16.5523 30 16 30ZM11 31C11 30.4477 11.4477 30 12 30C12.5523 30 13 30.4477 13 31C13 31.5523 12.5523 32 12 32C11.4477 32 11 31.5523 11 31ZM8 30C7.44772 30 7 30.4477 7 31C7 31.5523 7.44772 32 8 32C8.55228 32 9 31.5523 9 31C9 30.4477 8.55228 30 8 30Z"})),keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:(0,e.createElement)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0C14.4477 0 14 0.447716 14 1V14H1C0.447716 14 0 14.4477 0 15C0 15.5523 0.447716 16 1 16H14V29C14 29.5523 14.4477 30 15 30C15.5523 30 16 29.5523 16 29V16H29C29.5523 16 30 15.5523 30 15C30 14.4477 29.5523 14 29 14H16V1C16 0.447715 15.5523 0 15 0Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 2H2L2 28H28V2ZM2 0C0.895431 0 0 0.89543 0 2V28C0 29.1046 0.89543 30 2 30H28C29.1046 30 30 29.1046 30 28V2C30 0.895431 29.1046 0 28 0H2Z"})),keyword:["border"]},{name:"background",label:"Background",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.38341 13.5461C2.99785 13.935 2.99785 14.5655 3.38341 14.9544C3.76898 15.3432 4.39411 15.3432 4.77968 14.9544L14.8805 4.7666C15.266 4.37771 15.266 3.7472 14.8805 3.35832C14.4949 2.96943 13.8698 2.96943 13.4842 3.35832L3.38341 13.5461ZM3.57206 25.3059C3.18649 25.6947 3.18649 26.3253 3.57206 26.7141C3.95762 27.103 4.58275 27.103 4.96832 26.7141L26.686 4.80949C27.0716 4.42061 27.0716 3.7901 26.686 3.40121C26.3004 3.01232 25.6753 3.01232 25.2897 3.40121L3.57206 25.3059ZM9.5617 32.6228C9.17613 32.2339 9.17613 31.6034 9.5617 31.2145L31.2733 9.31598C31.6588 8.9271 32.284 8.92709 32.6695 9.31598C33.0551 9.70487 33.0551 10.3354 32.6695 10.7243L10.958 32.6228C10.5724 33.0116 9.94726 33.0116 9.5617 32.6228ZM21.3526 31.2715C20.967 31.6604 20.967 32.2909 21.3526 32.6798C21.7382 33.0687 22.3633 33.0687 22.7488 32.6798L32.7119 22.631C33.0975 22.2421 33.0975 21.6116 32.7119 21.2227C32.3264 20.8338 31.7013 20.8338 31.3157 21.2227L21.3526 31.2715Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.28918 7.66612C2.90361 8.05501 2.90361 8.68552 3.28918 9.07441C3.67474 9.46329 4.29987 9.46329 4.68544 9.07441L9.02256 4.69995C9.40813 4.31106 9.40813 3.68055 9.02256 3.29167C8.63699 2.90278 8.01187 2.90278 7.6263 3.29167L3.28918 7.66612ZM3.47757 20.8342C3.092 20.4453 3.092 19.8148 3.47757 19.4259L19.3122 3.45496C19.6978 3.06608 20.3229 3.06608 20.7085 3.45496C21.094 3.84385 21.094 4.47436 20.7085 4.86325L4.87383 20.8342C4.48826 21.2231 3.86313 21.2231 3.47757 20.8342ZM3.66621 32.5941C3.28064 32.2052 3.28064 31.5747 3.66621 31.1858L31.1195 3.49623C31.505 3.10734 32.1302 3.10734 32.5157 3.49623C32.9013 3.88511 32.9013 4.51562 32.5157 4.90451L5.06247 32.5941C4.67691 32.983 4.05178 32.983 3.66621 32.5941ZM15.4571 32.6512C15.0715 32.2623 15.0715 31.6318 15.4571 31.2429L31.0407 15.5251C31.4263 15.1362 32.0514 15.1362 32.437 15.5251C32.8225 15.914 32.8225 16.5445 32.437 16.9334L16.8534 32.6512C16.4678 33.0401 15.8427 33.0401 15.4571 32.6512ZM27.2477 31.3001C26.8622 31.689 26.8622 32.3195 27.2477 32.7084C27.6333 33.0972 28.2584 33.0972 28.644 32.7084L32.7179 28.5994C33.1035 28.2105 33.1035 27.58 32.7179 27.1911C32.3323 26.8022 31.7072 26.8022 31.3216 27.1911L27.2477 31.3001Z"})),keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0625 5C32.5803 5 33 5.44772 33 6C33 6.55228 32.5803 7 32.0625 7H3.9375C3.41973 7 3 6.55228 3 6C3 5.44772 3.41973 5 3.9375 5H32.0625ZM3 18C3 17.4477 3.41973 17 3.9375 17H32.0625C32.5803 17 33 17.4477 33 18C33 18.5523 32.5803 19 32.0625 19H3.9375C3.41973 19 3 18.5523 3 18ZM33 30C33 29.4477 32.5803 29 32.0625 29H3.9375C3.41973 29 3 29.4477 3 30C3 30.5523 3.41973 31 3.9375 31H32.0625C32.5803 31 33 30.5523 33 30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 6.55228 9.44772 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6ZM7 6C7 7.65685 8.34315 9 10 9C11.6569 9 13 7.65685 13 6C13 4.34315 11.6569 3 10 3C8.34315 3 7 4.34315 7 6ZM26 19C26.5523 19 27 18.5523 27 18C27 17.4477 26.5523 17 26 17C25.4477 17 25 17.4477 25 18C25 18.5523 25.4477 19 26 19ZM26 21C27.6569 21 29 19.6569 29 18C29 16.3431 27.6569 15 26 15C24.3431 15 23 16.3431 23 18C23 19.6569 24.3431 21 26 21ZM10 31C9.44772 31 9 30.5523 9 30C9 29.4477 9.44772 29 10 29C10.5523 29 11 29.4477 11 30C11 30.5523 10.5523 31 10 31ZM10 33C8.34315 33 7 31.6569 7 30C7 28.3431 8.34315 27 10 27C11.6569 27 13 28.3431 13 30C13 31.6569 11.6569 33 10 33Z"})),keyword:["cssfilter","filtercss"]}]}}],en=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 3C4.34315 3 3 4.34315 3 6V15C3 15.5523 3.44772 16 4 16C4.55228 16 5 15.5523 5 15V6C5 5.44772 5.44772 5 6 5H15C15.5523 5 16 4.55228 16 4C16 3.44772 15.5523 3 15 3H6ZM6 33C4.34315 33 3 31.6569 3 30V21C3 20.4477 3.44772 20 4 20C4.55228 20 5 20.4477 5 21V30C5 30.5523 5.44772 31 6 31H15C15.5523 31 16 31.4477 16 32C16 32.5523 15.5523 33 15 33H6ZM33 6C33 4.34315 31.6569 3 30 3H21C20.4477 3 20 3.44772 20 4C20 4.55228 20.4477 5 21 5H30C30.5523 5 31 5.44772 31 6V15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15V6ZM30 33C31.6569 33 33 31.6569 33 30V21C33 20.4477 32.5523 20 32 20C31.4477 20 31 20.4477 31 21V30C31 30.5523 30.5523 31 30 31H21C20.4477 31 20 31.4477 20 32C20 32.5523 20.4477 33 21 33H30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 9C8 8.44772 8.44772 8 9 8H18H27C27.5523 8 28 8.44772 28 9V11C28 11.5523 27.5523 12 27 12C26.4477 12 26 11.5523 26 11V10H19L19 26H22C22.5523 26 23 26.4477 23 27C23 27.5523 22.5523 28 22 28H18H14C13.4477 28 13 27.5523 13 27C13 26.4477 13.4477 26 14 26H17L17 10H10V11C10 11.5523 9.55228 12 9 12C8.44772 12 8 11.5523 8 11V9Z"})),keyword:["text"]},{name:"number",label:"Number",icon:(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30ZM16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19 11C19 12.6569 17.6569 14 16 14C14.3431 14 13 12.6569 13 11C13 9.34315 14.3431 8 16 8C17.6569 8 19 9.34315 19 11ZM19.1435 14.8884C20.276 13.9718 21 12.5704 21 11C21 8.23858 18.7614 6 16 6C13.2386 6 11 8.23858 11 11C11 12.5704 11.724 13.9718 12.8565 14.8884C11.1425 15.9447 10 17.8389 10 20C10 23.3137 12.6863 26 16 26C19.3137 26 22 23.3137 22 20C22 17.8389 20.8575 15.9447 19.1435 14.8884ZM16 16C13.7909 16 12 17.7909 12 20C12 22.2091 13.7909 24 16 24C18.2091 24 20 22.2091 20 20C20 17.7909 18.2091 16 16 16Z"})),keyword:["number"]},{name:"textarea",label:"Textarea",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4ZM26.7074 26.9262C26.3168 27.3167 26.3168 27.9499 26.7074 28.3404C27.0979 28.7309 27.731 28.7309 28.1216 28.3404L30.3403 26.1217C30.7308 25.7312 30.7308 25.098 30.3403 24.7075C29.9497 24.317 29.3166 24.317 28.9261 24.7075L26.7074 26.9262ZM22.7066 28.3409C22.3161 27.9504 22.3161 27.3172 22.7066 26.9267L28.9266 20.7067C29.3171 20.3162 29.9503 20.3162 30.3408 20.7067C30.7314 21.0972 30.7314 21.7304 30.3408 22.1209L24.1208 28.3409C23.7303 28.7314 23.0971 28.7314 22.7066 28.3409Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 26.9257C18.3166 27.3162 18.3166 27.9494 18.7071 28.3399C19.0976 28.7304 19.7308 28.7304 20.1213 28.3399L30.3399 18.1213C30.7304 17.7308 30.7304 17.0977 30.3399 16.7071C29.9494 16.3166 29.3162 16.3166 28.9257 16.7071L18.7071 26.9257Z"})),keyword:["textarea","wysiwyg"]},{name:"wysiwyg",label:"WYSIWYG",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5V8V10V13V15H5H7.5H8V14.9641C8.74339 14.8568 9.43751 14.5122 9.97487 13.9749C10.6313 13.3185 11 12.4283 11 11.5C11 10.5717 10.6313 9.6815 9.97487 9.02513L9.94949 9L9.97487 8.97487C10.6313 8.3185 11 7.42826 11 6.5C11 5.57174 10.6313 4.6815 9.97487 4.02513C9.43751 3.48776 8.74339 3.14317 8 3.03588V3H7.5H5H3V5ZM7.5 8C7.89782 8 8.27936 7.84196 8.56066 7.56066C8.84196 7.27936 9 6.89783 9 6.5C9 6.10218 8.84196 5.72064 8.56066 5.43934C8.27954 5.15822 7.89832 5.00021 7.50077 5L7.5 5H5V8H7.5ZM7.5 10H5V13H7.5C7.89782 13 8.27936 12.842 8.56066 12.5607C8.84196 12.2794 9 11.8978 9 11.5C9 11.1022 8.84196 10.7206 8.56066 10.4393C8.27936 10.158 7.89783 10 7.5 10ZM15.5 3H18H20H21.5V5H19.6667L18.3333 13H20.5V15H18H16H14.5V13H16.3333L17.6667 5H15.5V3ZM33 3H31V8H33V3ZM27 8C27 8.53043 27.2107 9.03914 27.5858 9.41421C27.9609 9.78929 28.4696 10 29 10C29.5304 10 30.0391 9.78929 30.4142 9.41421C30.7893 9.03914 31 8.53043 31 8H33C33 9.06087 32.5786 10.0783 31.8284 10.8284C31.0783 11.5786 30.0609 12 29 12C27.9391 12 26.9217 11.5786 26.1716 10.8284C25.4214 10.0783 25 9.06087 25 8V3H27V8ZM25 15V13H33V15H25Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 19H31V31H5L5 19ZM3 19C3 17.8954 3.89543 17 5 17H31C32.1046 17 33 17.8954 33 19V31C33 32.1046 32.1046 33 31 33H5C3.89543 33 3 32.1046 3 31V19ZM8 20C7.44772 20 7 20.4477 7 21V23C7 23.5523 7.44772 24 8 24C8.55228 24 9 23.5523 9 23V22H11V28H10C9.44772 28 9 28.4477 9 29C9 29.5523 9.44772 30 10 30H12H14C14.5523 30 15 29.5523 15 29C15 28.4477 14.5523 28 14 28H13V22H15V23C15 23.5523 15.4477 24 16 24C16.5523 24 17 23.5523 17 23V21C17 20.4477 16.5523 20 16 20H12H8Z"})),keyword:["wysiwyg","editor"]},{name:"switcher",label:"Checkbox",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 11H11C7.13401 11 4 14.134 4 18C4 21.866 7.13401 25 11 25H25C28.866 25 32 21.866 32 18C32 14.134 28.866 11 25 11ZM11 9C6.02944 9 2 13.0294 2 18C2 22.9706 6.02944 27 11 27H25C29.9706 27 34 22.9706 34 18C34 13.0294 29.9706 9 25 9H11Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25 21C26.6569 21 28 19.6569 28 18C28 16.3431 26.6569 15 25 15C23.3431 15 22 16.3431 22 18C22 19.6569 23.3431 21 25 21ZM25 23C27.7614 23 30 20.7614 30 18C30 15.2386 27.7614 13 25 13C22.2386 13 20 15.2386 20 18C20 20.7614 22.2386 23 25 23Z"})),keyword:["toggle","switcher","checkbox"]},{name:"select",label:"DropDown",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 5H5L5 31H31V5ZM5 3C3.89543 3 3 3.89543 3 5V31C3 32.1046 3.89543 33 5 33H31C32.1046 33 33 32.1046 33 31V5C33 3.89543 32.1046 3 31 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.67132 21.1958C7.04208 20.8246 7.6432 20.8246 8.01396 21.1958L13.5299 26.7175C13.891 27.0789 14.4843 27.0711 14.8551 26.7L28.0386 13.5027C28.3997 13.1413 28.9851 13.1413 29.3462 13.5027V13.5027C29.7073 13.8642 29.7073 14.4503 29.3462 14.8117L16.1627 28.0089C15.0504 29.1224 13.2706 29.1459 12.1873 28.0615L6.67132 22.5398C6.30056 22.1687 6.30056 21.5669 6.67132 21.1958V21.1958Z"})),keyword:["select","dropdown"]},{name:"select2",label:"MultiSelect",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6C6 4.34315 7.34315 3 9 3H30C31.6569 3 33 4.34315 33 6V27C33 28.6569 31.6569 30 30 30H27V28H30C30.5523 28 31 27.5523 31 27V6C31 5.44771 30.5523 5 30 5H9C8.44772 5 8 5.44772 8 6V9H6V6Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 9H27V31H5L5 9ZM3 9C3 7.89543 3.89543 7 5 7H27C28.1046 7 29 7.89543 29 9V31C29 32.1046 28.1046 33 27 33H5C3.89543 33 3 32.1046 3 31V9ZM24.7475 14.6643C25.1144 14.2515 25.0771 13.6194 24.6643 13.2525C24.2515 12.8857 23.6194 12.9229 23.2525 13.3357L13.3349 24.4951L8.74711 19.3387C8.38 18.9261 7.74791 18.8892 7.3353 19.2563C6.92269 19.6234 6.8858 20.2555 7.25291 20.6681L12.5882 26.6647C12.7781 26.8781 13.05 27.0001 13.3356 27C13.6212 26.9999 13.8931 26.8778 14.0828 26.6643L24.7475 14.6643Z"})),keyword:["select2","multiselect","multidropdown"]},{name:"align",label:"Align",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H4ZM4 21C3.44772 21 3 21.4477 3 22C3 22.5523 3.44772 23 4 23H32C32.5523 23 33 22.5523 33 22C33 21.4477 32.5523 21 32 21H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12C3.44772 12 3 12.4477 3 13C3 13.5523 3.44772 14 4 14H25C25.5523 14 26 13.5523 26 13C26 12.4477 25.5523 12 25 12H4ZM4 30C3.44772 30 3 30.4477 3 31C3 31.5523 3.44772 32 4 32H20C20.5523 32 21 31.5523 21 31C21 30.4477 20.5523 30 20 30H4Z"})),keyword:["align","choose"]},{name:"color",label:"Color",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M25.9336 13.4452C24.9645 13.1381 23.9535 12.9831 22.9369 12.9859C21.1834 12.986 19.4608 13.4474 17.9423 14.324C16.4237 13.4474 14.7012 12.986 12.9477 12.9859C11.2291 12.9864 9.5398 13.43 8.04297 14.274C8.12311 14.9736 8.28746 15.6609 8.53244 16.3211C9.33741 18.5936 10.9376 20.4982 13.0376 21.6835C12.9771 22.1102 12.9471 22.5406 12.9477 22.9716C12.9444 24.3474 13.2278 25.7087 13.7799 26.9689C14.332 28.2291 15.1406 29.3606 16.1542 30.2912C16.6951 30.8036 17.2954 31.2495 17.9423 31.6193C18.5892 31.2495 19.1894 30.8036 19.7303 30.2912C20.744 29.3606 21.5526 28.2291 22.1047 26.9689C22.6567 25.7087 22.9401 24.3474 22.9369 22.9716C22.9375 22.5406 22.9074 22.1102 22.847 21.6835C24.9469 20.4982 26.5471 18.5936 27.3521 16.3211C27.5971 15.6609 27.7614 14.9736 27.8416 14.274C27.2364 13.9317 26.5969 13.6539 25.9336 13.4452ZM17.9423 16.7405C19.1687 17.7209 20.0789 19.0407 20.5594 20.5351C18.8641 21.1225 17.0204 21.1225 15.3251 20.5351C15.8056 19.0407 16.7159 17.7209 17.9423 16.7405ZM10.3305 15.4224C11.1727 15.1328 12.057 14.9843 12.9477 14.983C14.0513 14.9823 15.143 15.2101 16.1542 15.6521C14.962 16.7462 14.0594 18.1185 13.527 19.6464C12.012 18.6427 10.8845 17.1528 10.3305 15.4224ZM17.9423 29.2027C17.0078 28.4548 16.2533 27.5065 15.7346 26.428C15.2159 25.3495 14.9463 24.1683 14.9455 22.9716C14.9455 22.8218 14.9455 22.6621 14.9455 22.5123C16.8958 23.1288 18.9888 23.1288 20.939 22.5123C20.939 22.6621 20.939 22.8218 20.939 22.9716C20.9383 24.1683 20.6686 25.3495 20.1499 26.428C19.6312 27.5065 18.8768 28.4548 17.9423 29.2027ZM22.3575 19.6364C21.8252 18.1085 20.9226 16.7362 19.7303 15.6421C20.7422 15.2036 21.834 14.9792 22.9369 14.983C23.8275 14.9843 24.7118 15.1328 25.554 15.4224C24.998 17.1491 23.8707 18.6352 22.3575 19.6364Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9423 3C15.293 3 12.7522 4.05207 10.8789 5.92475C9.00556 7.79744 7.95313 10.3374 7.95313 12.9857C7.95254 13.4135 7.98214 13.8408 8.0417 14.2644C6.90226 14.9141 5.90194 15.7817 5.0978 16.8177C4.29336 17.8541 3.701 19.0388 3.35455 20.304C3.0081 21.5692 2.91433 22.8903 3.07861 24.1918C3.24289 25.4933 3.66199 26.7496 4.31199 27.8892C4.96198 29.0288 5.83015 30.0292 6.86691 30.8333C7.90367 31.6375 9.08873 32.2297 10.3544 32.576C11.6201 32.9223 12.9416 33.0161 14.2436 32.8518C15.5455 32.6876 16.8023 32.2687 17.9423 31.6189C17.2954 31.2491 16.6951 30.8032 16.1542 30.2908C14.3207 31.0993 12.2502 31.1897 10.3531 30.544C8.45611 29.8983 6.871 28.5636 5.912 26.8046C4.95301 25.0456 4.69013 22.9906 5.17548 21.0469C5.66083 19.1033 6.85897 17.4129 8.53243 16.3107C8.28857 15.6536 8.12461 14.9696 8.04407 14.2733C8.64896 13.9313 9.2881 13.6537 9.95097 13.4451V12.9857C9.95097 10.867 10.7929 8.8351 12.2916 7.33695C13.7903 5.8388 15.8229 4.99715 17.9423 4.99715C20.0618 4.99715 22.0944 5.8388 23.5931 7.33695C25.0918 8.8351 25.9337 10.867 25.9337 12.9857V13.4451C26.6004 13.6532 27.2433 13.931 27.8516 14.2739C27.9087 13.8469 27.9354 13.4165 27.9315 12.9857C27.9315 10.3374 26.8791 7.79744 25.0058 5.92475C23.1324 4.05207 20.5916 3 17.9423 3ZM27.3522 16.321C27.5972 15.6608 27.7615 14.9735 27.8417 14.2739C29 14.9137 30.0195 15.7771 30.8412 16.814C31.6628 17.851 32.2702 19.0408 32.628 20.3144C32.9858 21.588 33.0869 22.92 32.9254 24.2329C32.7639 25.5459 32.343 26.8137 31.6873 27.9627C31.0315 29.1117 30.1539 30.119 29.1054 30.9261C28.057 31.7332 26.8585 32.324 25.5797 32.6642C24.3009 33.0044 22.9672 33.0872 21.6561 32.9078C20.3451 32.7284 19.0827 32.2904 17.9424 31.6191C18.5887 31.2525 19.189 30.81 19.7305 30.301C21.564 31.1095 23.6345 31.1999 25.5315 30.5542C27.4285 29.9085 29.0136 28.5739 29.9726 26.8149C30.9316 25.0558 31.1945 23.0008 30.7092 21.0572C30.2238 19.1135 29.0257 17.4231 27.3522 16.321Z"})),keyword:["color"]},{name:"gradientcolor",label:"GradientColor",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 6H11V10.5607L9.5 11.5811L8 10.5607V6ZM12.1249 12.2143L9.5 14L6.87507 12.2143C6.32765 11.8419 6 11.2228 6 10.5607V6C6 4.89543 6.89543 4 8 4H11C12.1046 4 13 4.89543 13 6V10.5607C13 11.2228 12.6723 11.8419 12.1249 12.2143ZM25 25.4393V30H28V25.4393L26.5 24.4189L25 25.4393ZM29.1249 23.7857L26.5 22L23.8751 23.7857C23.3277 24.1581 23 24.7772 23 25.4393V30C23 31.1046 23.8954 32 25 32H28C29.1046 32 30 31.1046 30 30V25.4393C30 24.7772 29.6723 24.1581 29.1249 23.7857Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.5 16H17V20H10.5V16ZM19 20V16H25.5V20H19ZM27.5 20V16H32V20H27.5ZM26.5 14H18H9.5H4C2.89543 14 2 14.8954 2 16V20C2 21.1046 2.89543 22 4 22H9.5H18H26.5H32C33.1046 22 34 21.1046 34 20V16C34 14.8954 33.1046 14 32 14H26.5ZM8.5 16V20H4V16H8.5Z"})),keyword:["gradientcolor"]},{name:"datetime",label:"DateTime",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4V5H14V4C14 3.44772 14.4477 3 15 3C15.5523 3 16 3.44772 16 4V5H22V4C22 3.44772 22.4477 3 23 3C23.5523 3 24 3.44772 24 4V5C25.6569 5 27 6.34315 27 8V16H25V8C25 7.44771 24.5523 7 24 7H23H15H7H6C5.44771 7 5 7.44772 5 8V26C5 26.5523 5.44772 27 6 27H17V29H6C4.34315 29 3 27.6569 3 26V8C3 6.34314 4.34315 5 6 5V4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 24C31 27.866 27.866 31 24 31C20.134 31 17 27.866 17 24C17 20.134 20.134 17 24 17C27.866 17 31 20.134 31 24ZM33 24C33 28.9706 28.9706 33 24 33C19.0294 33 15 28.9706 15 24C15 19.0294 19.0294 15 24 15C28.9706 15 33 19.0294 33 24ZM23 20C23 19.4477 23.4477 19 24 19C24.5523 19 25 19.4477 25 20V23H28C28.5523 23 29 23.4477 29 24C29 24.5523 28.5523 25 28 25H24C23.4477 25 23 24.5523 23 24V20Z"})),keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6328 12.1223C10.6328 11.8782 10.8379 11.6285 11.1538 11.6285C11.4698 11.6285 11.6749 11.8782 11.6749 12.1223C11.6749 12.3664 11.4698 12.6161 11.1538 12.6161C10.8379 12.6161 10.6328 12.3664 10.6328 12.1223ZM11.1538 9.38477C9.69504 9.38477 8.46154 10.5817 8.46154 12.1223C8.46154 13.6629 9.69504 14.8598 11.1538 14.8598C12.6126 14.8598 13.8462 13.6629 13.8462 12.1223C13.8462 10.5817 12.6126 9.38477 11.1538 9.38477ZM20.8451 10.8117C20.4285 10.3735 19.7562 10.3691 19.3346 10.8018L4.48025 26.0471C4.05369 26.4849 4.04389 27.205 4.45837 27.6556C4.87285 28.1061 5.55465 28.1165 5.98121 27.6787L20.0758 13.2133L28.1631 21.7213C28.5845 22.1646 29.2663 22.1631 29.6861 21.718C30.1058 21.2729 30.1044 20.5527 29.683 20.1094L20.8451 10.8117Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H28V9V11V26H9H7H4V6ZM7 28H4C2.89543 28 2 27.1046 2 26V6C2 4.89543 2.89543 4 4 4H28C29.1046 4 30 4.89543 30 6V9H31C32.6569 9 34 10.3431 34 12V29C34 30.6569 32.6569 32 31 32H10C8.34315 32 7 30.6569 7 29V28ZM9 28V29C9 29.5523 9.44771 30 10 30H31C31.5523 30 32 29.5523 32 29V12C32 11.4477 31.5523 11 31 11H30V26C30 27.1046 29.1046 28 28 28H9Z"})),keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 16.1353C32 15.583 31.5523 15.1353 31 15.1353C30.4477 15.1353 30 15.583 30 16.1353V21.9998C30 22.8304 29.676 23.6234 29.105 24.2052C28.5764 24.7438 27.8637 25 27 25H5C4.44772 25 4 25.4477 4 26C4 26.5523 4.44772 27 5 27H27C28.2757 27 29.5483 26.6088 30.5324 25.6061C31.4742 24.6465 32 23.3489 32 21.9998V16.1353ZM4 19.8647C4 20.417 4.44772 20.8647 5 20.8647C5.55228 20.8647 6 20.417 6 19.8647V14.0002C6 13.1696 6.32403 12.3766 6.89499 11.7948C7.42365 11.2562 8.13633 11 9 11H31C31.5523 11 32 10.5523 32 10C32 9.44772 31.5523 9 31 9H9C7.72434 9 6.45166 9.39123 5.46759 10.3939C4.52581 11.3535 4 12.6511 4 14.0002V19.8647Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.29289 25.2929L9.29289 20.2929C9.68342 19.9024 10.3166 19.9024 10.7071 20.2929C11.0976 20.6834 11.0976 21.3166 10.7071 21.7071L6.41422 26L10.7071 30.2929C11.0976 30.6834 11.0976 31.3166 10.7071 31.7071C10.3166 32.0976 9.68342 32.0976 9.29289 31.7071L4.29289 26.7071C3.90237 26.3166 3.90237 25.6834 4.29289 25.2929ZM29.5858 10L25.2929 14.2929C24.9024 14.6834 24.9024 15.3166 25.2929 15.7071C25.6834 16.0976 26.3166 16.0976 26.7071 15.7071L31.7071 10.7071C32.0976 10.3166 32.0976 9.68342 31.7071 9.29289L26.7071 4.29289C26.3166 3.90237 25.6834 3.90237 25.2929 4.29289C24.9024 4.68342 24.9024 5.31658 25.2929 5.70711L29.5858 10Z"})),keyword:["repeater"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 14H4V22H32V14ZM4 12C2.89543 12 2 12.8954 2 14V22C2 23.1046 2.89543 24 4 24H32C33.1046 24 34 23.1046 34 22V14C34 12.8954 33.1046 12 32 12H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 7C21.4477 7 21 7.44772 21 8C21 8.55228 21.4477 9 22 9H23V27H22C21.4477 27 21 27.4477 21 28C21 28.5523 21.4477 29 22 29H24H26C26.5523 29 27 28.5523 27 28C27 27.4477 26.5523 27 26 27H25V9H26C26.5523 9 27 8.55228 27 8C27 7.44772 26.5523 7 26 7H24H22ZM10 18C10 19.1046 9.10457 20 8 20C6.89543 20 6 19.1046 6 18C6 16.8954 6.89543 16 8 16C9.10457 16 10 16.8954 10 18ZM16 18C16 19.1046 15.1046 20 14 20C12.8954 20 12 19.1046 12 18C12 16.8954 12.8954 16 14 16C15.1046 16 16 16.8954 16 18Z"})),keyword:["url","link"]},{name:"media",label:"Media",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32 6H4V30H32V6ZM4 4C2.89543 4 2 4.89543 2 6V30C2 31.1046 2.89543 32 4 32H32C33.1046 32 34 31.1046 34 30V6C34 4.89543 33.1046 4 32 4H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.9764 12.9816C19.2482 12.9767 20.4886 13.3722 21.5187 14.1111C22.5488 14.8501 23.3152 15.8942 23.7075 17.0928C24.0997 18.2914 24.0974 19.5824 23.701 20.7796C23.4097 21.6592 22.9166 22.4548 22.266 23.1066C21.8758 23.4975 21.766 24.1182 22.0903 24.5653C22.4106 25.0068 23.0321 25.112 23.4341 24.7433C24.4277 23.8322 25.1758 22.6821 25.6013 21.3974C26.1299 19.8011 26.133 18.0797 25.61 16.4816C25.087 14.8835 24.065 13.4913 22.6916 12.5061C21.3181 11.5208 19.6642 10.9935 17.9686 11.0001C16.273 11.0067 14.6233 11.5469 13.2577 12.5428C11.8921 13.5387 10.8812 14.9387 10.3709 16.5409C9.86057 18.143 9.87727 19.8644 10.4185 21.4565C10.8542 22.7378 11.6114 23.8821 12.6122 24.7855C13.0171 25.151 13.6377 25.0409 13.9545 24.5969C14.2753 24.1473 14.1606 23.5275 13.7674 23.1398C13.1115 22.493 12.6122 21.7013 12.3139 20.8239C11.908 19.6298 11.8954 18.3388 12.2782 17.1372C12.6609 15.9356 13.4191 14.8856 14.4433 14.1387C15.4675 13.3917 16.7047 12.9866 17.9764 12.9816ZM17.9921 16.9447C18.4161 16.9431 18.8295 17.0749 19.1729 17.3212C19.5163 17.5675 19.7717 17.9156 19.9025 18.3151C20.0332 18.7146 20.0325 19.145 19.9003 19.5441C19.8739 19.6238 19.8425 19.7015 19.8064 19.7768C19.5676 20.2748 19.4316 20.8999 19.7559 21.347C20.0762 21.7886 20.7052 21.8958 21.0586 21.4803C21.387 21.0942 21.6399 20.6473 21.8006 20.1619C22.065 19.3637 22.0665 18.503 21.805 17.7039C21.5435 16.9049 21.0325 16.2088 20.3458 15.7162C19.6591 15.2236 18.8321 14.9599 17.9843 14.9632C17.1365 14.9665 16.3116 15.2366 15.6288 15.7345C14.946 16.2325 14.4406 16.9325 14.1854 17.7336C13.9303 18.5346 13.9386 19.3953 14.2093 20.1914C14.3739 20.6755 14.6303 21.1206 14.9618 21.5041C15.3185 21.9168 15.9465 21.8046 16.2633 21.3606C16.5841 20.911 16.4432 20.287 16.2004 19.7909C16.1637 19.716 16.1317 19.6385 16.1046 19.5588C15.9693 19.1608 15.9651 18.7305 16.0927 18.3299C16.2203 17.9294 16.473 17.5794 16.8144 17.3304C17.1558 17.0814 17.5682 16.9464 17.9921 16.9447Z"})),keyword:["media","image"]},{name:"iconscontrol",label:"Icon",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 15C17 14.4477 17.4477 14 18 14C18.5523 14 19 14.4477 19 15V17C19 17.5523 18.5523 18 18 18C17.4477 18 17 17.5523 17 17V15ZM25.0643 20.7471C24.8481 21.0316 24.6165 21.3031 24.3709 21.5603L22.9244 20.1791C23.1183 19.976 23.3011 19.7618 23.4718 19.5371L25.0643 20.7471ZM10.9058 21.8382C10.6498 21.5913 10.4072 21.3297 10.1794 21.0543L11.7206 19.7796C11.9004 19.997 12.0919 20.2036 12.294 20.3985L10.9058 21.8382ZM22.7332 22.9284C22.4364 23.1243 22.1281 23.3039 21.8096 23.466C21.4911 23.6281 21.1645 23.7717 20.8314 23.8964L20.1301 22.0234C20.3931 21.925 20.6509 21.8116 20.9023 21.6836C21.1538 21.5556 21.3971 21.4138 21.6315 21.2592L22.7332 22.9284ZM13.5435 23.6366C13.2186 23.4877 12.9032 23.3211 12.5985 23.1375L13.6304 21.4243C13.871 21.5692 14.12 21.7008 14.3765 21.8183C14.633 21.9358 14.8953 22.0384 15.1621 22.1259L14.5386 24.0263C14.2007 23.9154 13.8684 23.7854 13.5435 23.6366ZM18.7616 24.4155C18.4091 24.4628 18.0534 24.4903 17.6961 24.4977C17.3388 24.505 16.9823 24.4922 16.6281 24.4596L16.8117 22.468C17.0913 22.4938 17.3728 22.5039 17.6548 22.4981C17.9369 22.4923 18.2177 22.4705 18.496 22.4333L18.7616 24.4155ZM10.5 17H11.4375V15H10.5V17ZM13.3125 17H15.1875V15H13.3125V17ZM20.8125 17H22.6875V15H20.8125V17ZM24.5625 17H25.5V15H24.5625V17Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.5 2C16.9477 2 16.5 2.44772 16.5 3V4.12602C14.7748 4.57006 13.5 6.13616 13.5 8C13.5 9.46135 14.2837 10.7397 15.4536 11.4376L11.2647 18.3556C11.0813 18.1381 10.8068 18 10.5 18C9.94772 18 9.5 18.4477 9.5 19V24C9.5 24.5523 9.94772 25 10.5 25C11.0523 25 11.5 24.5523 11.5 24V21.8975L17.4931 12L17.5 12C17.6906 12 17.878 11.9867 18.0615 11.9609L24.5 22.3756V24C24.5 24.5523 24.9477 25 25.5 25C26.0523 25 26.5 24.5523 26.5 24V19C26.5 18.4477 26.0523 18 25.5 18C25.081 18 24.7222 18.2577 24.5734 18.6232L19.9573 11.1564C20.8962 10.4244 21.5 9.28272 21.5 8C21.5 6.13616 20.2252 4.57006 18.5 4.12602V3C18.5 2.44772 18.0523 2 17.5 2ZM17.5 10C18.6046 10 19.5 9.10457 19.5 8C19.5 6.89543 18.6046 6 17.5 6C16.3954 6 15.5 6.89543 15.5 8C15.5 9.10457 16.3954 10 17.5 10ZM18 32C19.1046 32 20 31.1046 20 30C20 28.8954 19.1046 28 18 28C16.8954 28 16 28.8954 16 30C16 31.1046 16.8954 32 18 32ZM18 34C19.8666 34 21.4346 32.7215 21.8759 30.9924C21.9166 30.9974 21.958 31 22 31H31C31.5523 31 32 30.5523 32 30C32 29.4477 31.5523 29 31 29H22C21.958 29 21.9166 29.0026 21.8759 29.0076C21.4346 27.2785 19.8666 26 18 26C16.1334 26 14.5654 27.2785 14.1241 29.0076C14.0834 29.0026 14.042 29 14 29H5C4.44772 29 4 29.4477 4 30C4 30.5523 4.44771 31 5 31H14C14.042 31 14.0834 30.9974 14.1241 30.9924C14.5654 32.7215 16.1334 34 18 34Z"})),keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 6H32V30H4V6ZM2 6C2 4.89543 2.89543 4 4 4H32C33.1046 4 34 4.89543 34 6V30C34 31.1046 33.1046 32 32 32H4C2.89543 32 2 31.1046 2 30V6ZM23.7724 8L21.379 17H19.8667L22.2602 8H23.7724ZM12.6954 8.35237V15.8695H14.4905V12.8487H17.417V15.8695H19.2085V8.35237H17.417V11.3695H14.4905V8.35237H12.6954ZM6 11.3695V12.8964L11.2511 15.1281V13.4617L7.83862 12.1683V12.0977L11.2511 10.8079V9.13785L6 11.3695ZM24.7489 15.8328L30 13.6011V12.0742L24.7489 9.84258V11.5126L28.165 12.8038V12.8716L24.7489 14.1664V15.8328Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 22C6.44772 22 6 22.4477 6 23C6 23.5523 6.44772 24 7 24H29C29.5523 24 30 23.5523 30 23C30 22.4477 29.5523 22 29 22H7ZM7 26C6.44772 26 6 26.4477 6 27C6 27.5523 6.44772 28 7 28H29C29.5523 28 30 27.5523 30 27C30 26.4477 29.5523 26 29 26H7Z"})),keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 21C2 20.4477 2.44772 20 3 20H33C33.5523 20 34 20.4477 34 21C34 21.5523 33.5523 22 33 22H3C2.44772 22 2 21.5523 2 21Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.74916 10.2579C8.15901 9.88772 8.79136 9.91987 9.16154 10.3297L11.7422 13.1869C11.9151 13.3783 12.0002 13.6182 12.0001 13.8573C12.0002 14.0964 11.9151 14.3363 11.7422 14.5277L9.16154 17.3849C8.79136 17.7947 8.15901 17.8269 7.74916 17.4567C7.3393 17.0865 7.30715 16.4541 7.67734 16.0443L8.62057 15L3 15C2.44772 15 2 14.5523 2 14C2 13.4477 2.44772 13 3 13L8.87836 13L7.67734 11.6703C7.30715 11.2604 7.3393 10.6281 7.74916 10.2579ZM13 16C12.4477 16 12 16.4477 12 17V25C12 25.5523 12.4477 26 13 26C13.5523 26 14 25.5523 14 25V17C14 16.4477 13.5523 16 13 16Z"})),keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3808 6.36366C19.8144 6.70568 20.4432 6.63142 20.7852 6.19778C21.1272 5.76415 21.053 5.13535 20.6193 4.79333L18.696 3.27632C18.5173 3.10584 18.2755 3.00089 18.0091 3.00005L17.9996 3C17.9249 2.99989 17.85 3.00811 17.7764 3.02483C17.6856 3.04544 17.5995 3.07841 17.5199 3.12187C17.4655 3.1515 17.4135 3.18643 17.3646 3.22659L15.3802 4.7937C14.9468 5.13598 14.8729 5.76482 15.2152 6.19825C15.5575 6.63168 16.1863 6.70557 16.6197 6.36328L17.0008 6.06235L17.0023 7.49943L17.0008 8.93623L16.6202 8.6353C16.187 8.29276 15.5581 8.36627 15.2156 8.79949C14.873 9.23271 14.9465 9.8616 15.3797 10.2041L17.3668 11.7753C17.4147 11.8144 17.4655 11.8485 17.5186 11.8775C17.6858 11.9692 17.8715 12.0087 18.0539 11.9986C18.1258 11.9947 18.1975 11.983 18.2677 11.9635C18.4251 11.9209 18.567 11.8409 18.6834 11.7336L20.6198 10.2044C21.0532 9.86215 21.1271 9.23331 20.7848 8.79989C20.4426 8.36646 19.8137 8.29257 19.3803 8.63485L19.0038 8.93219L19.0023 7.49906L19.0038 6.06631L19.3808 6.36366ZM6.36366 16.6193C6.70568 16.1857 6.63142 15.5569 6.19778 15.2149C5.76415 14.8729 5.13535 14.9471 4.79333 15.3808L3.27632 17.3041C3.10584 17.4828 3.00089 17.7246 3.00005 17.991L3 18.0005C2.99989 18.0752 3.00811 18.1501 3.02483 18.2237C3.04544 18.3145 3.07841 18.4006 3.12187 18.4802C3.15149 18.5345 3.18643 18.5866 3.22658 18.6354L4.7937 20.6199C5.13598 21.0533 5.76482 21.1272 6.19825 20.7849C6.63168 20.4426 6.70557 19.8138 6.36328 19.3804L6.06235 18.9993L7.49897 18.9978L8.93623 18.9993L8.6353 19.3799C8.29276 19.8131 8.36627 20.442 8.79949 20.7845C9.23271 21.1271 9.8616 21.0536 10.2041 20.6203L11.7753 18.6332C11.8144 18.5854 11.8485 18.5346 11.8775 18.4815C11.9692 18.3143 12.0087 18.1286 11.9986 17.9462C11.9947 17.8743 11.983 17.8026 11.9635 17.7323C11.9209 17.575 11.8409 17.4331 11.7336 17.3167L10.2044 15.3803C9.86215 14.9469 9.23331 14.873 8.79989 15.2153C8.36646 15.5575 8.29257 16.1864 8.63485 16.6198L8.93219 16.9963L7.4992 16.9978L6.06631 16.9963L6.36366 16.6193ZM27.3637 16.6193C27.7057 16.1857 27.6314 15.5569 27.1978 15.2149C26.7641 14.8729 26.1354 14.9471 25.7933 15.3808L24.2763 17.3041C24.1058 17.4828 24.0009 17.7247 24 17.9911L24 18.0017C24 18.0725 24.0074 18.1434 24.0225 18.2132C24.043 18.3083 24.0771 18.3984 24.1225 18.4813C24.152 18.5353 24.1867 18.5869 24.2266 18.6355L25.7937 20.6199C26.136 21.0533 26.7648 21.1272 27.1983 20.7849C27.6317 20.4426 27.7056 19.8138 27.3633 19.3804L27.0623 18.9993L28.499 18.9978L29.9362 18.9993L29.6353 19.3799C29.2928 19.8131 29.3663 20.442 29.7995 20.7845C30.2327 21.1271 30.8616 21.0536 31.2041 20.6203L32.7753 18.6332C32.8144 18.5854 32.8485 18.5346 32.8775 18.4815C32.9692 18.3143 33.0087 18.1286 32.9986 17.9462C32.9947 17.8743 32.983 17.8026 32.9635 17.7323C32.9209 17.575 32.8409 17.4331 32.7336 17.3167L31.2044 15.3803C30.8622 14.9469 30.2333 14.873 29.7999 15.2153C29.3665 15.5575 29.2926 16.1864 29.6349 16.6198L29.9322 16.9963L28.4992 16.9978L27.0663 16.9963L27.3637 16.6193ZM17.3669 32.7753L15.3797 31.2041C14.9465 30.8616 14.873 30.2327 15.2156 29.7995C15.5581 29.3663 16.187 29.2928 16.6202 29.6353L17.0008 29.9362L17.0023 28.4994L17.0008 27.0624L16.6197 27.3633C16.1863 27.7056 15.5575 27.6317 15.2152 27.1983C14.8729 26.7648 14.9468 26.136 15.3802 25.7937L17.3646 24.2266C17.4131 24.1867 17.4648 24.152 17.5188 24.1225C17.584 24.0868 17.6536 24.0581 17.7266 24.0375C17.7463 24.0319 17.7662 24.027 17.7864 24.0226C17.8562 24.0075 17.927 24 17.9978 24L18.0088 24C18.2753 24.0008 18.5172 24.1058 18.696 24.2763L20.6193 25.7933C21.053 26.1354 21.1272 26.7641 20.7852 27.1978C20.4432 27.6314 19.8144 27.7057 19.3808 27.3637L19.0038 27.0663L19.0023 28.4991L19.0038 29.9322L19.3803 29.6349C19.8137 29.2926 20.4426 29.3665 20.7848 29.7999C21.1271 30.2333 21.0532 30.8622 20.6198 31.2044L18.6834 32.7337C18.567 32.8409 18.4251 32.9209 18.2678 32.9634C18.1976 32.983 18.1258 32.9947 18.0539 32.9986C17.8715 33.0088 17.6858 32.9692 17.5186 32.8775C17.4655 32.8485 17.4147 32.8144 17.3669 32.7753Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21 15H15L15 21H21V15ZM15 13C13.8954 13 13 13.8954 13 15V21C13 22.1046 13.8954 23 15 23H21C22.1046 23 23 22.1046 23 21V15C23 13.8954 22.1046 13 21 13H15Z"})),keyword:["padding","margin","dimension"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Info",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M24 3C23.4477 3 23 3.44772 23 4C23 4.55228 23.4477 5 24 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H24ZM7 18C7 17.4477 7.44772 17 8 17H28C28.5523 17 29 17.4477 29 18C29 18.5523 28.5523 19 28 19H8C7.44772 19 7 18.5523 7 18ZM3 32C3 31.4477 3.44772 31 4 31H12C12.5523 31 13 31.4477 13 32C13 32.5523 12.5523 33 12 33H4C3.44772 33 3 32.5523 3 32ZM3 4C3 3.44772 3.44772 3 4 3H12C12.5523 3 13 3.44772 13 4C13 4.55228 12.5523 5 12 5H4C3.44772 5 3 4.55228 3 4ZM24 31C23.4477 31 23 31.4477 23 32C23 32.5523 23.4477 33 24 33H32C32.5523 33 33 32.5523 33 32C33 31.4477 32.5523 31 32 31H24Z"})),keyword:["heading","info","note","labelheading"]},{name:"divider",label:"Divider",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 9V6H32V9H4ZM4 4C3.47275 4 2.95567 4.18011 2.56789 4.56789C2.18011 4.95567 2 5.47275 2 6V9C2 9.52725 2.18011 10.0443 2.56789 10.4321C2.95567 10.8199 3.47275 11 4 11H32C32.5272 11 33.0443 10.8199 33.4321 10.4321C33.8199 10.0443 34 9.52725 34 9V6C34 5.47275 33.8199 4.95567 33.4321 4.56789C33.0443 4.18011 32.5272 4 32 4H4ZM4 30V27H32V30H4ZM4 25C3.47275 25 2.95567 25.1801 2.56789 25.5679C2.18011 25.9557 2 26.4728 2 27V30C2 30.5272 2.18011 31.0443 2.56789 31.4321C2.95567 31.8199 3.47275 32 4 32H32C32.5272 32 33.0443 31.8199 33.4321 31.4321C33.8199 31.0443 34 30.5272 34 30V27C34 26.4728 33.8199 25.9557 33.4321 25.5679C33.0443 25.1801 32.5272 25 32 25H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M21.7 15.7C21.3 16.1 20.7 16.1 20.3 15.7L20 15.4V17H21V19H20V20.6L20.3 20.3C20.7 19.9 21.3 19.9 21.7 20.3C22.1 20.7 22.1 21.3 21.7 21.7L19.7 23.7C19.65 23.7 19.625 23.725 19.6 23.75C19.575 23.775 19.55 23.8 19.5 23.8H19.4C19.4 23.9 19.3 23.9 19.3 23.9H19.1H19C18.95 23.9 18.9 23.875 18.85 23.85C18.8 23.825 18.75 23.8 18.7 23.8H18.6C18.5 23.8 18.4 23.7 18.3 23.6L16.3 21.6C15.9 21.2 15.9 20.6 16.3 20.2C16.7 19.8 17.3 19.8 17.7 20.2L18 20.5V15.3L17.7 15.6C17.3 16 16.7 16 16.3 15.6C15.9 15.2 15.9 14.6 16.3 14.2L18.3 12.2C18.35 12.15 18.4 12.125 18.45 12.1C18.5 12.075 18.55 12.05 18.6 12H18.8H19H19.1C19.2 12.1 19.2 12.1 19.3 12.1H19.4C19.5 12.1 19.6 12.2 19.7 12.3L21.7 14.3C22.1 14.7 22.1 15.3 21.7 15.7ZM7 17H9V19H7V17ZM13 17H11V19H13V17ZM3 17H5V19H3V17ZM25 17H23V19H25V17ZM27 17H29V19H27V17ZM17 17H15V19H17V17ZM31 17H33V19H31V17Z"})),keyword:["divider","separator"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C3.44772 3 3 3.44772 3 4C3 4.55228 3.44772 5 4 5H17L17 32C17 32.5523 17.4477 33 18 33C18.5523 33 19 32.5523 19 32L19 5H32C32.5523 5 33 4.55228 33 4C33 3.44772 32.5523 3 32 3H18H4Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 3C4.55228 3 5 3.44772 5 4L5 8C5 8.55228 4.55228 9 4 9C3.44772 9 3 8.55228 3 8V4C3 3.44772 3.44772 3 4 3ZM32 3C32.5523 3 33 3.44772 33 4V8C33 8.55228 32.5523 9 32 9C31.4477 9 31 8.55228 31 8V4C31 3.44772 31.4477 3 32 3ZM22 33C22.5523 33 23 32.5523 23 32C23 31.4477 22.5523 31 22 31H14C13.4477 31 13 31.4477 13 32C13 32.5523 13.4477 33 14 33H22Z"})),keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.5 11.5C19.9477 11.5 19.5 11.9477 19.5 12.5C19.5 13.0523 19.9477 13.5 20.5 13.5C21.0523 13.5 21.5 13.0523 21.5 12.5C21.5 11.9477 21.0523 11.5 20.5 11.5ZM19.5 15.5C19.5 16.0523 19.9477 16.5 20.5 16.5C21.0523 16.5 21.5 16.0523 21.5 15.5C21.5 14.9477 21.0523 14.5 20.5 14.5C19.9477 14.5 19.5 14.9477 19.5 15.5ZM19.5 18.5C19.5 19.0523 19.9477 19.5 20.5 19.5C21.0523 19.5 21.5 19.0523 21.5 18.5C21.5 17.9477 21.0523 17.5 20.5 17.5C19.9477 17.5 19.5 17.9477 19.5 18.5ZM19.5 21.5C19.5 22.0523 19.9477 22.5 20.5 22.5C21.0523 22.5 21.5 22.0523 21.5 21.5C21.5 20.9477 21.0523 20.5 20.5 20.5C19.9477 20.5 19.5 20.9477 19.5 21.5ZM22.5 12.5C22.5 11.9477 22.9477 11.5 23.5 11.5C24.0523 11.5 24.5 11.9477 24.5 12.5C24.5 13.0523 24.0523 13.5 23.5 13.5C22.9477 13.5 22.5 13.0523 22.5 12.5ZM26 11.5C25.7239 11.5 25.5 11.7239 25.5 12V13C25.5 13.2761 25.7239 13.5 26 13.5C26.2761 13.5 26.5 13.2761 26.5 13V12C26.5 11.7239 26.2761 11.5 26 11.5ZM21.5 24.5C21.5 25.0523 21.0523 25.5 20.5 25.5C19.9477 25.5 19.5 25.0523 19.5 24.5C19.5 23.9477 19.9477 23.5 20.5 23.5C21.0523 23.5 21.5 23.9477 21.5 24.5ZM20 26.5C19.7239 26.5 19.5 26.7239 19.5 27C19.5 27.2761 19.7239 27.5 20 27.5H21C21.2761 27.5 21.5 27.2761 21.5 27C21.5 26.7239 21.2761 26.5 21 26.5H20Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 5H31V31H5L5 5ZM3 5C3 3.89543 3.89543 3 5 3H31C32.1046 3 33 3.89543 33 5V31C33 32.1046 32.1046 33 31 33H5C3.89543 33 3 32.1046 3 31V5ZM9.5 9.5C9.5 8.94772 9.94772 8.5 10.5 8.5H17.5H24.5C25.0523 8.5 25.5 8.94772 25.5 9.5C25.5 10.0523 25.0523 10.5 24.5 10.5H18.5L18.5 25.5C18.5 26.0523 18.0523 26.5 17.5 26.5C16.9477 26.5 16.5 26.0523 16.5 25.5L16.5 10.5H10.5C9.94772 10.5 9.5 10.0523 9.5 9.5Z"})),keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M27 5H5L5 27H27V5ZM5 3C3.89543 3 3 3.89543 3 5V27C3 28.1046 3.89543 29 5 29H27C28.1046 29 29 28.1046 29 27V5C29 3.89543 28.1046 3 27 3H5Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M31 7C31 6.44772 31.4477 6 32 6C32.5523 6 33 6.44772 33 7C33 7.55228 32.5523 8 32 8C31.4477 8 31 7.55228 31 7ZM31 11C31 10.4477 31.4477 10 32 10C32.5523 10 33 10.4477 33 11C33 11.5523 32.5523 12 32 12C31.4477 12 31 11.5523 31 11ZM32 14C31.4477 14 31 14.4477 31 15C31 15.5523 31.4477 16 32 16C32.5523 16 33 15.5523 33 15C33 14.4477 32.5523 14 32 14ZM31 19C31 18.4477 31.4477 18 32 18C32.5523 18 33 18.4477 33 19C33 19.5523 32.5523 20 32 20C31.4477 20 31 19.5523 31 19ZM32 22C31.4477 22 31 22.4477 31 23C31 23.5523 31.4477 24 32 24C32.5523 24 33 23.5523 33 23C33 22.4477 32.5523 22 32 22ZM31 27C31 26.4477 31.4477 26 32 26C32.5523 26 33 26.4477 33 27C33 27.5523 32.5523 28 32 28C31.4477 28 31 27.5523 31 27ZM32 30C31.4477 30 31 30.4477 31 31C31 31.5523 31.4477 32 32 32C32.5523 32 33 31.5523 33 31C33 30.4477 32.5523 30 32 30ZM27 31C27 30.4477 27.4477 30 28 30C28.5523 30 29 30.4477 29 31C29 31.5523 28.5523 32 28 32C27.4477 32 27 31.5523 27 31ZM24 30C23.4477 30 23 30.4477 23 31C23 31.5523 23.4477 32 24 32C24.5523 32 25 31.5523 25 31C25 30.4477 24.5523 30 24 30ZM19 31C19 30.4477 19.4477 30 20 30C20.5523 30 21 30.4477 21 31C21 31.5523 20.5523 32 20 32C19.4477 32 19 31.5523 19 31ZM16 30C15.4477 30 15 30.4477 15 31C15 31.5523 15.4477 32 16 32C16.5523 32 17 31.5523 17 31C17 30.4477 16.5523 30 16 30ZM11 31C11 30.4477 11.4477 30 12 30C12.5523 30 13 30.4477 13 31C13 31.5523 12.5523 32 12 32C11.4477 32 11 31.5523 11 31ZM8 30C7.44772 30 7 30.4477 7 31C7 31.5523 7.44772 32 8 32C8.55228 32 9 31.5523 9 31C9 30.4477 8.55228 30 8 30Z"})),keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:(0,e.createElement)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 0C14.4477 0 14 0.447716 14 1V14H1C0.447716 14 0 14.4477 0 15C0 15.5523 0.447716 16 1 16H14V29C14 29.5523 14.4477 30 15 30C15.5523 30 16 29.5523 16 29V16H29C29.5523 16 30 15.5523 30 15C30 14.4477 29.5523 14 29 14H16V1C16 0.447715 15.5523 0 15 0Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 2H2L2 28H28V2ZM2 0C0.895431 0 0 0.89543 0 2V28C0 29.1046 0.89543 30 2 30H28C29.1046 30 30 29.1046 30 28V2C30 0.895431 29.1046 0 28 0H2Z"})),keyword:["border"]},{name:"background",label:"background",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.38341 13.5461C2.99785 13.935 2.99785 14.5655 3.38341 14.9544C3.76898 15.3432 4.39411 15.3432 4.77968 14.9544L14.8805 4.7666C15.266 4.37771 15.266 3.7472 14.8805 3.35832C14.4949 2.96943 13.8698 2.96943 13.4842 3.35832L3.38341 13.5461ZM3.57206 25.3059C3.18649 25.6947 3.18649 26.3253 3.57206 26.7141C3.95762 27.103 4.58275 27.103 4.96832 26.7141L26.686 4.80949C27.0716 4.42061 27.0716 3.7901 26.686 3.40121C26.3004 3.01232 25.6753 3.01232 25.2897 3.40121L3.57206 25.3059ZM9.5617 32.6228C9.17613 32.2339 9.17613 31.6034 9.5617 31.2145L31.2733 9.31598C31.6588 8.9271 32.284 8.92709 32.6695 9.31598C33.0551 9.70487 33.0551 10.3354 32.6695 10.7243L10.958 32.6228C10.5724 33.0116 9.94726 33.0116 9.5617 32.6228ZM21.3526 31.2715C20.967 31.6604 20.967 32.2909 21.3526 32.6798C21.7382 33.0687 22.3633 33.0687 22.7488 32.6798L32.7119 22.631C33.0975 22.2421 33.0975 21.6116 32.7119 21.2227C32.3264 20.8338 31.7013 20.8338 31.3157 21.2227L21.3526 31.2715Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.28918 7.66612C2.90361 8.05501 2.90361 8.68552 3.28918 9.07441C3.67474 9.46329 4.29987 9.46329 4.68544 9.07441L9.02256 4.69995C9.40813 4.31106 9.40813 3.68055 9.02256 3.29167C8.63699 2.90278 8.01187 2.90278 7.6263 3.29167L3.28918 7.66612ZM3.47757 20.8342C3.092 20.4453 3.092 19.8148 3.47757 19.4259L19.3122 3.45496C19.6978 3.06608 20.3229 3.06608 20.7085 3.45496C21.094 3.84385 21.094 4.47436 20.7085 4.86325L4.87383 20.8342C4.48826 21.2231 3.86313 21.2231 3.47757 20.8342ZM3.66621 32.5941C3.28064 32.2052 3.28064 31.5747 3.66621 31.1858L31.1195 3.49623C31.505 3.10734 32.1302 3.10734 32.5157 3.49623C32.9013 3.88511 32.9013 4.51562 32.5157 4.90451L5.06247 32.5941C4.67691 32.983 4.05178 32.983 3.66621 32.5941ZM15.4571 32.6512C15.0715 32.2623 15.0715 31.6318 15.4571 31.2429L31.0407 15.5251C31.4263 15.1362 32.0514 15.1362 32.437 15.5251C32.8225 15.914 32.8225 16.5445 32.437 16.9334L16.8534 32.6512C16.4678 33.0401 15.8427 33.0401 15.4571 32.6512ZM27.2477 31.3001C26.8622 31.689 26.8622 32.3195 27.2477 32.7084C27.6333 33.0972 28.2584 33.0972 28.644 32.7084L32.7179 28.5994C33.1035 28.2105 33.1035 27.58 32.7179 27.1911C32.3323 26.8022 31.7072 26.8022 31.3216 27.1911L27.2477 31.3001Z"})),keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0625 5C32.5803 5 33 5.44772 33 6C33 6.55228 32.5803 7 32.0625 7H3.9375C3.41973 7 3 6.55228 3 6C3 5.44772 3.41973 5 3.9375 5H32.0625ZM3 18C3 17.4477 3.41973 17 3.9375 17H32.0625C32.5803 17 33 17.4477 33 18C33 18.5523 32.5803 19 32.0625 19H3.9375C3.41973 19 3 18.5523 3 18ZM33 30C33 29.4477 32.5803 29 32.0625 29H3.9375C3.41973 29 3 29.4477 3 30C3 30.5523 3.41973 31 3.9375 31H32.0625C32.5803 31 33 30.5523 33 30Z"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 6C9 6.55228 9.44772 7 10 7C10.5523 7 11 6.55228 11 6C11 5.44772 10.5523 5 10 5C9.44772 5 9 5.44772 9 6ZM7 6C7 7.65685 8.34315 9 10 9C11.6569 9 13 7.65685 13 6C13 4.34315 11.6569 3 10 3C8.34315 3 7 4.34315 7 6ZM26 19C26.5523 19 27 18.5523 27 18C27 17.4477 26.5523 17 26 17C25.4477 17 25 17.4477 25 18C25 18.5523 25.4477 19 26 19ZM26 21C27.6569 21 29 19.6569 29 18C29 16.3431 27.6569 15 26 15C24.3431 15 23 16.3431 23 18C23 19.6569 24.3431 21 26 21ZM10 31C9.44772 31 9 30.5523 9 30C9 29.4477 9.44772 29 10 29C10.5523 29 11 29.4477 11 30C11 30.5523 10.5523 31 10 31ZM10 33C8.34315 33 7 31.6569 7 30C7 28.3431 8.34315 27 10 27C11.6569 27 13 28.3431 13 30C13 31.6569 11.6569 33 10 33Z"})),keyword:["cssfilter","filtercss"]}]}}],{Fragment:tn}=wp.element,an=Hl((e=>({widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(Zl(t)),addToActiveController:t=>e(Ol(t)),addToActiveSection:t=>e(jl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const[a,n]=(0,l.useState)(""),[i,s]=(0,l.useState)("Data Controls");var r=wdkitData.WDKIT_URL,o="";"elementor"==t.widgetdata.type?o=Ql:"gutenberg"==t.widgetdata.type?o=Xl:"bricks"==t.widgetdata.type&&(o=en);const c=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e};var d={name:`builder-${t.cardData[0][t.array_type].length}`,section:`Section-${t.cardData[0][t.array_type].length}`,compo_index:t.cardData[0][t.array_type].length,inner_sec:[]};const m=(e,a)=>{var l=t.controller.controller;if(l?.controller_type)if("repeater"==e||"popover"==e||"normalhover"==e)t.wdkit_set_toast(["Not Valid","You Can Not put this controller here","","danger"]);else{var n=Dl[e.toLowerCase()],i=Object.assign({},n,{name:e.toLowerCase()+"_"+c()}),s=[...t.cardData],r=s[0][t.array_type][a].inner_sec[l.compo_id]?.fields;if(l?.nha_type){let e=Object.assign({},i,{key:l?.nha_type});r.push(e),t.addToCarthandler(s)}else r.push(i),t.addToCarthandler(s)}else{const l=Dl[e.toLowerCase()],n=Object.assign({},l,{name:e.toLowerCase()+"_"+c()});let i=[...t.cardData];i?.[0]?.[t.array_type]?.[a]?.inner_sec&&i?.[0]?.[t.array_type]?.[a]?.inner_sec.push(n),t.addToCarthandler(i)}},p=e=>{let a=[...t.cardData];var l=a[0][t.array_type];l.length>0?t.section_id.sec_id>-1?m(e,t.section_id.sec_id):(m(e,l.length-1),t.addToActiveSection({sec_id:Number(l.length-1),array_type:t.array_type})):(l.push(d),m(e,0),t.addToCarthandler(a),t.addToActiveSection({sec_id:0,array_type:t.array_type}))};return(0,e.createElement)("div",{className:"wkit-wb-components"},(0,e.createElement)("div",{className:"wkit-wb-search-bar"},(0,e.createElement)("input",{className:"wkit-wb-search-input",type:"text",placeholder:"Search",style:{backgroundImage:`url(${r}assets/images/wb-svg/editor-search.svg)`},onChange:e=>{n(e.target.value),(e=>{""==e.target.value?(document.querySelectorAll(".wkit-wb-all-widgets.wkit-wb-blockshow").forEach(((e,t)=>{e.classList.remove("wkit-wb-blockshow")})),document.querySelector(".wkit-wb-all-widgets").classList.add("wkit-wb-blockshow")):document.querySelectorAll(".wkit-wb-all-widgets").forEach(((e,t)=>{e.classList.add("wkit-wb-blockshow")}))})(e)}})),(0,e.createElement)("div",{className:"wkit-wb-controllers"},o.length>0&&Object.values(o[0]).map(((t,l)=>(t.Name&&t.Name,(0,e.createElement)(tn,{key:l},0!=l&&(0,e.createElement)("hr",{className:"wkit-wb-horizontal-line"}),(0,e.createElement)("div",{className:"wkit-wb-widget-heading",onClick:e=>{var a;a=t.Name,s(i==a?"":a)}},(0,e.createElement)("img",{className:"wb-component-btn "+(i==t.Name?"wkit-wb-rotate-icon":""),src:r+"assets/images/wb-svg/controller-icon.svg",onClick:e=>{e.target.parentElement.click()}}),(0,e.createElement)("span",{onClick:e=>{e.target.parentElement.click()}},t.Name)),(0,e.createElement)("div",{className:i==t.Name?"wkit-wb-all-widgets wkit-wb-blockshow":"wkit-wb-all-widgets"},t.data.filter((e=>""==a||e.keyword.toString().includes(a.toLowerCase())?e:void 0)).map(((t,a)=>{let l=t.label,n=t.name,i=t.icon;return(0,e.createElement)(tn,{key:a},(0,e.createElement)("div",{className:"wkit-wb-widget",draggable:!0,onDragStart:e=>{e.dataTransfer.setData("controller_id",n.toLowerCase().split(" ").join(""))},onDragEnd:e=>{setTimeout((()=>{e.target.classList.remove("drag")}),500)},onDoubleClick:e=>{p(n)},onTouchEndCapture:e=>{p(n)},"data-component":n.toLowerCase().split(" ").join("")},i,(0,e.createElement)("span",{className:"wkit-wb-widget-text"},l)))})))))))))})),{Fragment:ln}=wp.element,nn=Hl((e=>({Editor_data:e.Editor_data.links,Editor_code:e.Editor_code.Editor_codes,cardData:e.CardItems.cardData,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata})),(e=>({addTolinkhandler:t=>e(Bl(t)),addTowidgethandler:t=>e(Rl(t)),addToActiveController:t=>e(Ol(t)),addToEditor_code:t=>e(Tl(t))})))((t=>{const[a,n]=(0,l.useState)("html"),[i,s]=(0,l.useState)(!1),[r,o]=(0,l.useState)(!1),[c,d]=(0,l.useState)(!1),[m,p]=(0,l.useState)(0),[u,w]=(0,l.useState)(0),[g,C]=(0,l.useState)(!1),[v,b]=(0,l.useState)(""),h=(0,l.useRef)(),_=(0,l.useRef)(null),k=(0,l.useRef)(),E=((0,l.useRef)(),(0,l.useRef)());var f=wdkitData.WDKIT_URL;let y=["align","hidden","switcher","slider","dimension","heading","rawhtml","divider","choose","color","background","border","boxshadow","textshadow","cssfilter","typography"];const N=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e};(0,l.useEffect)((()=>{var e=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html",value:`${""==t.Editor_code[0].html||null==t.Editor_code[0].html?"":t.Editor_code[0].html}`});ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css",value:`${""==t.Editor_code[0].css||null==t.Editor_code[0].css?"":t.Editor_code[0].css}`}),ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript",value:`${""==t.Editor_code[0].js||null==t.Editor_code[0].js?"":t.Editor_code[0].js}`}),setTimeout((()=>{var a=e.getValue(),l=[];t.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{var t={};t[e.name]=e.defaultValue,l.push(t)}))})),l.map((e=>{let t=Object.keys(e);a=a.replaceAll("{{"+t+"}}",e[t])}))}),3e3)}),[]);const $=e=>{let a=[...t.Editor_data];const l=a[0].css.filter((e=>""!==e));l.length>0?a[0].css=l:a[0].css=[""];const n=a[0].js.filter((e=>""!==e));n.length>0?a[0].js=n:a[0].js=[""],t.addTolinkhandler(a)};(0,l.useEffect)((()=>{var e=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),l=ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),n=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});e.session.on("change",(e=>{i(e)})),l.session.on("change",(e=>{i(e)})),n.session.on("change",(e=>{i(e)})),m!=e.getValue().length&&p(e.getValue().length),u!=e.session.getLength()&&w(e.session.getLength());const i=a=>{let i=[...t.Editor_code];(i&&i[0].html!=e.getValue()||i[0].css!=l.getValue()||i[0].js!=n.getValue())&&(i[0].html=e.getValue(),i[0].css=l.getValue(),i[0].js=n.getValue(),t.addToEditor_code(i),setTimeout((()=>{var a=e.getValue(),l=[];t.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{var t={};t[e.name]=e.defaultValue,l.push(t)}))})),l.map((e=>{let t=Object.keys(e);a=a.replaceAll("{{"+t+"}}",e[t])}))}),3e3))};i(),addEventListener("fullscreenchange",(e=>{e.preventDefault(),e.stopImmediatePropagation(),document.fullscreenElement?"wkit-editor-id"==document.fullscreenElement.id?s(!0):"wkit-livePreview-id"==document.fullscreenElement.id&&d(!0):(s(!1),d(!1))})),ace&&ace.edit&&(ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"})),document.querySelectorAll(".wkit-wb-editor-class").forEach((e=>{e.style.display="none",e.id=="editor-"+a&&(e.style.display="block")}))}));const L=e=>{var a=[...t.Editor_data];"css"==e?(a[0].css.push(""),t.addTolinkhandler(a)):"js"==e&&(a[0].js.push(""),t.addTolinkhandler(a))},x=(e,a,l)=>{let n=[...t.Editor_data];"css"==a?(n[0].css[l]=e.target.value,t.addTolinkhandler(n)):"js"==a&&(n[0].js[l]=e.target.value,t.addTolinkhandler(n))},H=(e,a)=>{let l=[...t.Editor_data];"css"==a?l[0].css.length>1?(l[0].css.splice(e,1),t.addTolinkhandler(l)):1==l[0].css.length&&(l[0].css[0]="",t.addTolinkhandler(l)):"js"==a&&(l[0].js.length>1?(l[0].js.splice(e,1),t.addTolinkhandler(l)):1==l[0].js.length&&(l[0].js[0]="",t.addTolinkhandler(l)))},M=(e,t)=>{e&&e.target&&Object.values(e.target.classList)&&(Object.values(e.target.classList).includes("overlay")||Object.values(e.target.classList).includes("wkit-wb-close-popup-btn")||Object.values(e.target.classList).includes("wkit-wb-links-popup"))?(C(""),b(""),$()):"click"==t&&(C(""),b(""))},V=(e,a)=>{let l=[...t.Editor_data];"js"==a?h.current<e?(l[0].js.splice(e+1,0,l[0].js[h.current]),l[0].js.splice(h.current,1),t.addTolinkhandler(l)):h.current>e&&(l[0].js.splice(e,0,l[0].js[h.current]),l[0].js.splice(h.current+1,1),t.addTolinkhandler(l)):"css"==a&&(h.current<e?(l[0].css.splice(e+1,0,l[0].css[h.current]),l[0].css.splice(h.current,1),t.addTolinkhandler(l)):h.current>e&&(l[0].css.splice(e,0,l[0].css[h.current]),l[0].css.splice(h.current+1,1),t.addTolinkhandler(l)))},D=e=>{let t=e.target.closest(".wkit-wb-editor-value");Object.values(t.nextSibling.classList).includes("wb-show")?(t.nextSibling.classList.remove("wb-show"),t.querySelector(".wb-editor-value-dropDown-icon")&&t.querySelector(".wb-editor-value-dropDown-icon").classList.add("wb-rotate-icon")):(t.nextSibling.classList.add("wb-show"),t.querySelector(".wb-editor-value-dropDown-icon.wb-rotate-icon")&&t.querySelector(".wb-editor-value-dropDown-icon.wb-rotate-icon").classList.remove("wb-rotate-icon"))},S=(e,t,l)=>{var n=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),i=ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),s=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});const r=(e,t,a,l)=>{var n;if(null!=a)var i=a;else i=t;let s=(n=e,(new DOMParser).parseFromString(n,"text/html").body).querySelectorAll([`[data-${i}]`]),r=Object.values(s);var o=0;return r.length>0&&(r.map((e=>{if(e?.innerHTML){let t=e?.innerHTML;t.search([l])>-1&&(o+=1)}})),o>0)};if("html"===a){var o=n.getCursorPosition();if("repeater"==t||"gallery"==t||"select2"==t)if(null!=l){let a=N();n.session.insert(o,a),n.getValue().search([a])>-1&&null!=(c=n.find(a,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(r(n.getValue(),e,l,a)?n.session.replace(c,`\n\n <div class="{loop-class-${t}}" data-${e}={${e}} >\n \x3c!-- Enter Repeater code here --\x3e\n </div>\n`):(n.session.replace(c,""),B()))}else n.session.insert(o,`\n\n <div class="{loop-class-${t}}" data-${e}={${e}} >\n \x3c!-- Enter Repeater code here --\x3e\n </div>\n`);else if(null!=l){let a=N()+N();var c;n.session.insert(o,a),n.getValue().search([a])>-1&&null!=(c=n.find(a,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(r(n.getValue(),l,void 0,a)?t&&"repeater_index"==t?n.session.replace(c,`{{${e}_index}}`):t&&"repeater_UID"==t?n.session.replace(c,`{{${e}_UID}}`):t&&"headingtags"==t?n.session.replace(c,`\n\n <${e} data-${e}>\n \x3c!--Enter Heading text here--\x3e\n </${e}>\n`):n.session.replace(c,`{{${e}}}`):(n.session.replace(c,""),B()))}else"headingtags"==t?n.session.insert(o,`\n\n <${e} data-${e}>\n \x3c!--Enter Heading text here--\x3e\n </${e}>\n`):n.session.insert(o,`{{${e}}}`)}else"js"===a?(o=s.getCursorPosition(),s.session.insert(o,"$scope[0]")):"css"===a&&(o=i.getCursorPosition(),i.session.insert(o,"{{parent-class}}"))},Z=()=>{if(t&&t.controller&&t.controller.controller&&t.controller.controller!={}){let e=t.controller.controller;if(t?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.fields?.[e?.repeater]?.name)return t.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].fields[e.repeater].name;if(t?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.name)return t.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].name}},R=e=>{if("css"==e){let e=0;return t.Editor_data&&t.Editor_data[0]&&t.Editor_data[0].css&&t.Editor_data[0].css.map((t=>{""!=t.trim()&&(e+=1)})),e}if("js"==e){let e=0;return t.Editor_data&&t.Editor_data[0]&&t.Editor_data[0].js&&t.Editor_data[0].js.map((t=>{""!=t.trim()&&(e+=1)})),e}},B=()=>{let e=document.querySelector(".wkit-wb-loopError-popup");e&&(e.style.display="flex",setTimeout((()=>{e.style.display="none"}),2e3))},T=(t,a)=>{if(!y.includes(t.type))return"repeater"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,"Select repeater"),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:()=>{S(t.name,"repeater",a)}},"Loop"),(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:()=>{S(t.name,"repeater_index",t.name)}},"Index"),(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:()=>{S(t.name,"repeater_UID",t.name)}},"ID"),t.fields.map(((a,l)=>(0,e.createElement)(ln,{key:l},T(a,t.name)))))):"url"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:Z()==t.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,t.name),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(`${t.name}-url`,"",a)}},"URL"),(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(`${t.name}-is_external`,"",a)}},"Is_external"),(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(`${t.name}-nofollow`,"",a)}},"Nofollow"),(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(`${t.name}-Custom_atr`,"",a)}},"Custom_atr"))):"gallery"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:Z()==t.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,t.name),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(t.name,"gallery",a)}},"Loop"),(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(t.name,"loop_value",t.name)}},"URL"))):"popover"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,"Select popover"),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},t.fields.map(((t,a)=>(0,e.createElement)(ln,{key:a},T(t)))))):"normalhover"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,"Normal Hover"),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},t.fields.map(((t,a)=>(0,e.createElement)(ln,{key:a},T(t)))))):"headingtags"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:Z()==t.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{S(t.name,"headingtags",a)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,"< Htag >")))):"select2"==t.type?(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:Z()==t.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:e=>{D(e)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},(0,e.createElement)("label",null,t.name),(0,e.createElement)("img",{className:"wb-editor-value-dropDown-icon wb-rotate-icon",src:f+"assets/images/wb-svg/uparrow_white.svg"}))),(0,e.createElement)("div",{className:"wb-controller-values"},(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(t.name,"select2",a)}},"Loop"),(0,e.createElement)("div",{className:"wb-editor-dropDown-value",onClick:()=>{S(t.name,"loop_value",t.name)}},"Value"))):(0,e.createElement)("div",{className:Z()==t.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{S(t.name,"",a)}},(0,e.createElement)("span",{className:"wkit-wb-hover-marquee"},"{{"+t.name+"}}"))};return(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:"wkit-wb-editor",ref:E,id:"wkit-editor-id"},(0,e.createElement)("div",{className:"wkit-editor-button"},(0,e.createElement)("div",{className:"wkit-wb-editor-btns"},(0,e.createElement)("button",{className:"html"==a?"wkit-wb-editor-html-btn active-editor":"wkit-wb-editor-html-btn",onClick:e=>{((e,a)=>{if(n("html"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-js-popup.wkit-wb-show"))){t.Editor_data;let e=document.querySelector(".wb-editor-js-popup"),a=document.querySelector(".wb-editor-img-js-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",$()}if(document.querySelector(".wb-editor-popup-content.wkit-wb-css")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="none",document.querySelector(".wb-editor-popup.wkit-wb-show"))){t.Editor_data;let e=document.querySelector(".wb-editor-popup"),a=document.querySelector(".wb-editor-img-css-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",$()}})()}},(0,e.createElement)("span",{className:"wkit-wb-editor-btns-label"},"HTML")),(0,e.createElement)("div",{className:"css"==a?"wkit-wb-editor-css-btn active-editor":"wkit-wb-editor-css-btn",onClick:e=>{((e,a)=>{if(n("css"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="flex"),document.querySelector(".wb-editor-js-popup.wkit-wb-show")){let e=[...t.Editor_data],a=document.querySelector(".wb-editor-js-popup"),n=document.querySelector(".wb-editor-img-js-icon");a.classList.remove("wkit-wb-show"),n.style.transform="";var l=[];e[0].js.map(((t,a)=>{""==t&&e[0].js.length>1&&l.push(a)})),$()}})(),b("css")}},(0,e.createElement)("span",{className:"wkit-wb-editor-btns-label"},"CSS"),(0,e.createElement)("svg",{onClick:()=>{C("css")},className:"wb-editor-img-css-icon "+("css"==a?"wkit-wb-show":""),xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 18 18",fill:"#fff"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 16.7C13.2526 16.7 16.7 13.2526 16.7 9C16.7 4.74741 13.2526 1.3 9 1.3C4.74741 1.3 1.3 4.74741 1.3 9C1.3 13.2526 4.74741 16.7 9 16.7ZM9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18ZM9 4.5C9.27614 4.5 9.5 4.72386 9.5 5V8.5H13C13.2761 8.5 13.5 8.72386 13.5 9C13.5 9.27614 13.2761 9.5 13 9.5H9.5V13C9.5 13.2761 9.27614 13.5 9 13.5C8.72386 13.5 8.5 13.2761 8.5 13V9.5H5C4.72386 9.5 4.5 9.27614 4.5 9C4.5 8.72386 4.72386 8.5 5 8.5H8.5V5C8.5 4.72386 8.72386 4.5 9 4.5Z"})),t.Editor_data[0].css.length>0&&""==t.Editor_data[0].css[0]?"":(0,e.createElement)("label",{className:"wkit-wb-cssInputCount "+("css"==a?"wkit-wb-focus":"")},(0,e.createElement)("span",null,0==R("css")?"":R("css")))),(0,e.createElement)("div",{className:"js"==a?"wkit-wb-editor-js-btn active-editor":"wkit-wb-editor-js-btn",onClick:e=>{((e,a)=>{if(n("js"),document.querySelector(".wb-editor-popup-content.wkit-wb-css")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="flex"),document.querySelector(".wb-editor-popup.wkit-wb-show")){t.Editor_data;let e=document.querySelector(".wb-editor-popup"),a=document.querySelector(".wb-editor-img-css-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",$()}})(),b("js")}},(0,e.createElement)("span",{className:"wkit-wb-editor-btns-label"},"JAVASCRIPT"),(0,e.createElement)("svg",{onClick:()=>{C("js")},className:"wb-editor-img-js-icon "+("js"==a?"wkit-wb-show":""),xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 18 18",fill:"#fff"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 16.7C13.2526 16.7 16.7 13.2526 16.7 9C16.7 4.74741 13.2526 1.3 9 1.3C4.74741 1.3 1.3 4.74741 1.3 9C1.3 13.2526 4.74741 16.7 9 16.7ZM9 18C13.9706 18 18 13.9706 18 9C18 4.02944 13.9706 0 9 0C4.02944 0 0 4.02944 0 9C0 13.9706 4.02944 18 9 18ZM9 4.5C9.27614 4.5 9.5 4.72386 9.5 5V8.5H13C13.2761 8.5 13.5 8.72386 13.5 9C13.5 9.27614 13.2761 9.5 13 9.5H9.5V13C9.5 13.2761 9.27614 13.5 9 13.5C8.72386 13.5 8.5 13.2761 8.5 13V9.5H5C4.72386 9.5 4.5 9.27614 4.5 9C4.5 8.72386 4.72386 8.5 5 8.5H8.5V5C8.5 4.72386 8.72386 4.5 9 4.5Z"})),t.Editor_data[0].js.length>0&&""==t.Editor_data[0].js[0]?"":(0,e.createElement)("label",{className:"wkit-wb-JsInputCount "+("js"==a?"wkit-wb-focus":"")},(0,e.createElement)("span",null,0==R("js")?"":R("js"))))),(0,e.createElement)("div",{className:"wkit-wb-icons"},(0,e.createElement)("div",{className:"wkit-wb-editor-top-ions"},0==i&&(0,e.createElement)("div",{className:"wkit-wb-external-link-popup"},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:e=>{b("css"),C("css")}},(0,e.createElement)("path",{d:"M7.69543 2.83398L6.54293 3.30273L7.2648 5.10023C6.35626 5.61003 5.60585 6.36044 5.09605 7.26898L3.2998 6.54586L2.83105 7.69711L4.60918 8.42023C4.45623 8.93391 4.37731 9.46678 4.3748 10.0027C4.37726 10.5383 4.45618 11.0707 4.60918 11.584L2.83105 12.3077L3.2998 13.4602L5.0973 12.7384C5.60888 13.6456 6.35886 14.3955 7.26605 14.9071L6.54293 16.7034L7.69418 17.1721L8.4173 15.394C8.9173 15.5415 9.45043 15.6284 9.99856 15.6284C10.5341 15.6259 11.0666 15.547 11.5798 15.394L12.3029 17.1715L13.4554 16.7027L12.7336 14.9052C13.6421 14.3954 14.3925 13.645 14.9023 12.7365L16.6986 13.4596L17.1673 12.3077L15.3892 11.5852C15.5422 11.072 15.6211 10.5395 15.6236 10.004C15.6211 9.46843 15.5422 8.93597 15.3892 8.42273L17.1667 7.69898L16.6979 6.54711L14.9004 7.26898C14.3906 6.36044 13.6402 5.61003 12.7317 5.10023L13.4548 3.30398L12.3029 2.83523L11.5804 4.61336C11.0676 4.45925 10.5353 4.37989 9.9998 4.37773C9.46425 4.38019 8.93179 4.45911 8.41856 4.61211L7.69355 2.83398H7.69543ZM9.9998 5.62773C12.4236 5.62773 14.3748 7.57898 14.3748 10.0027C14.3748 12.4265 12.4236 14.3777 9.9998 14.3777C7.57605 14.3777 5.6248 12.4265 5.6248 10.0027C5.6248 7.57898 7.57605 5.62773 9.9998 5.62773ZM9.9998 7.50273C8.62668 7.50273 7.4998 8.62961 7.4998 10.0027C7.4998 11.3759 8.62668 12.5027 9.9998 12.5027C11.3729 12.5027 12.4998 11.3759 12.4998 10.0027C12.4998 8.62961 11.3729 7.50273 9.9998 7.50273ZM9.9998 8.75273C10.6973 8.75273 11.2498 9.30523 11.2498 10.0027C11.2498 10.7002 10.6973 11.2527 9.9998 11.2527C9.3023 11.2527 8.7498 10.7002 8.7498 10.0027C8.7498 9.30523 9.3023 8.75273 9.9998 8.75273Z"}))),(0,e.createElement)("div",{className:1==i?"wkit-zoom-icon-box-border wkit-wb-selected-icon":"wkit-zoom-icon-box-border",onClick:()=>{E.current.requestFullscreen?E.current.requestFullscreen():E.current.webkitRequestFullscreen?E.current.webkitRequestFullscreen():E.current.msRequestFullscreen&&E.current.msRequestFullscreen(),document.exitFullscreen&&!0===i?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}},1==i?(0,e.createElement)("svg",{className:"wkit-wb-editor-zoom-icon",width:"36",height:"36",viewBox:"0 0 36 36",fill:"#B2C8DF",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.29289 3.29289C3.68342 2.90237 4.31658 2.90237 4.70711 3.29289L13 11.5858L13 4C13 3.44772 13.4477 3 14 3C14.5523 3 15 3.44772 15 4L15 14C15 14.1367 14.9726 14.2669 14.923 14.3856C14.8753 14.4998 14.8055 14.607 14.7136 14.7005L14.7005 14.7136C14.6062 14.8063 14.498 14.8764 14.3828 14.9241C14.2649 14.973 14.1356 15 14 15H4C3.44772 15 3 14.5523 3 14C3 13.4477 3.44772 13 4 13L11.5858 13L3.29289 4.70711C2.90237 4.31658 2.90237 3.68342 3.29289 3.29289ZM4 23C3.44772 23 3 22.5523 3 22C3 21.4477 3.44772 21 4 21L14 21C14.0345 21 14.0686 21.0017 14.1022 21.0052C14.2016 21.0153 14.2967 21.0399 14.3852 21.0769C14.4992 21.1244 14.6061 21.1939 14.6996 21.2854L14.7147 21.3006C14.8062 21.394 14.8757 21.501 14.9232 21.6149C14.9668 21.7194 14.9932 21.8328 14.9989 21.9517C14.9996 21.9677 15 21.9838 15 22V32C15 32.5523 14.5523 33 14 33C13.4477 33 13 32.5523 13 32L13 24.4142L4.70711 32.7071C4.31658 33.0976 3.68342 33.0976 3.29289 32.7071C2.90237 32.3166 2.90237 31.6834 3.29289 31.2929L11.5858 23L4 23ZM32 13L24.4142 13L32.7071 4.70711C33.0976 4.31658 33.0976 3.68342 32.7071 3.29289C32.3166 2.90237 31.6834 2.90237 31.2929 3.29289L23 11.5858V4C23 3.44772 22.5523 3 22 3C21.4477 3 21 3.44772 21 4V14C21 14.1367 21.0274 14.2669 21.077 14.3856C21.1255 14.5016 21.1967 14.6104 21.2908 14.705L21.2972 14.7114C21.4778 14.8898 21.7261 15 22 15L32 15C32.5523 15 33 14.5523 33 14C33 13.4477 32.5523 13 32 13ZM32 21L22 21C21.7239 21 21.4739 21.1119 21.2929 21.2929C21.1978 21.388 21.1258 21.4975 21.077 21.6144C21.0274 21.7331 21 21.8633 21 22V32C21 32.5523 21.4477 33 22 33C22.5523 33 23 32.5523 23 32V24.4142L31.2929 32.7071C31.6834 33.0976 32.3166 33.0976 32.7071 32.7071C33.0976 32.3166 33.0976 31.6834 32.7071 31.2929L24.4142 23L32 23C32.5523 23 33 22.5523 33 22C33 21.4477 32.5523 21 32 21Z"})):(0,e.createElement)("svg",{className:"wkit-wb-editor-zoom-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.3335 10.667V14.667H5.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M1.3335 5.3335L1.3335 1.3335L5.3335 1.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M14.667 10.667V14.667H10.667",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M10.667 1.3335L14.667 1.3335L14.667 5.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M1.3335 1.3335L5.3335 5.3335",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M14.667 14.667L10.667 10.667",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M14.667 1.3335L10.667 5.3335",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M1.3335 14.667L5.3335 10.667",strokeWidth:"1.06667",strokeLinecap:"round"}))),(0,e.createElement)("div",{className:"wkit-expand-icon-box-border",ref:k,style:{display:0==i?"flex":"none"},onClick:e=>{(e=>{let t=k.current.closest(".wkit-expand-icon-box-border");o(!r);let a=document.querySelector(".wkit-wb-first-part"),l=document.querySelector(".wkit-wb-second"),n=document.querySelector(".wkit-wb-editor-expand-icon"),i=document.querySelector(".wkit-wb-third");document.querySelector(".wkit-wb-first-part.wb-expand-editor")?(n.classList.remove("wb-rotate-icon"),i.classList.remove("wkit-wb-hide"),a.classList.remove("wb-expand-editor"),l.classList.remove("wb-expand-second"),t.classList.remove("wkit-wb-selected-icon"),l.style.width="20%",a.style.width="60%"):(n.classList.add("wb-rotate-icon"),i.classList.add("wkit-wb-hide"),a.classList.add("wb-expand-editor"),l.classList.add("wb-expand-second"),t.classList.add("wkit-wb-selected-icon"),l.style.width="20%",a.style.width="80%")})()}},(0,e.createElement)("svg",{className:"wkit-wb-editor-expand-icon",width:"13",height:"14",viewBox:"0 0 13 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.28951 12.7848C5.08123 12.9931 5.08123 13.3308 5.28951 13.539C5.49779 13.7473 5.83547 13.7473 6.04375 13.539L12.2052 7.37758C12.4135 7.1693 12.4135 6.83161 12.2052 6.62333L6.04375 0.461874C5.83547 0.253594 5.49779 0.253594 5.28951 0.461874C5.08123 0.670153 5.08123 1.00784 5.28951 1.21612L11.0738 7.00046L5.28951 12.7848ZM0.622528 12.7848C0.414228 12.9931 0.414228 13.3308 0.622528 13.539C0.830828 13.7473 1.16853 13.7473 1.37673 13.539L7.53822 7.37758C7.7465 7.1693 7.7465 6.83161 7.53822 6.62333L1.37673 0.461874C1.16853 0.253594 0.830828 0.253594 0.622528 0.461874C0.414228 0.670153 0.414228 1.00784 0.622528 1.21612L6.40685 7.00046L0.622528 12.7848Z"})))))),(0,e.createElement)("div",{className:"wkit-editor"},(0,e.createElement)("div",{className:"wkit-wb-editor-content"},(0,e.createElement)("div",{id:"editor-html",className:"wkit-wb-editor-class"}),(0,e.createElement)("div",{className:"wkit-wb-loopError-popup",style:{display:"none"}},(0,e.createElement)("div",{className:"wkit-wb-loopError-close"},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("div",{className:"wkit-wb-loopError-content"},(0,e.createElement)("div",{className:"wkit-wb-loopError-header"},(0,e.createElement)("div",{className:"wkit-wb-loopError-icon"},(0,e.createElement)("img",{src:f+"assets/images/wb-svg/error_info.svg"})),(0,e.createElement)("div",{className:"wkit-wb-loopError-headerText"},"Perform activity inside the loop")),(0,e.createElement)("div",{className:"wkit-wb-loopError-description"},"You need to write or perform any of your activity inside the loop"))),(0,e.createElement)("div",{id:"editor-css",className:"wkit-wb-editor-class"}),(0,e.createElement)("div",{id:"editor-js",className:"wkit-wb-editor-class"})),(0,e.createElement)("div",{className:"wkit-right-portion"},(0,e.createElement)("div",{className:"wkit-wb-editor-value-tab",style:"html"==a?{overflow:"hidden"}:{}},"css"==a&&(0,e.createElement)("div",{className:"wkit-wb-parentClass-swicher-content"},(0,e.createElement)("div",{className:"wkit-wb-parentClass-swicher"},(0,e.createElement)("div",{className:"wkit-css-editor-toolTip"},(0,e.createElement)("svg",{className:"wkit-wb-toolTip-icon",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 12 12",fill:"white"},(0,e.createElement)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})),(0,e.createElement)("span",{className:"wkit-css-toolTip-text"},"Enable this if you want us to append unique class at all possible places in your CSS file. If Disabled, You will need to manage it manually from your end.")),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:t.widgetdata.css_parent_node,onChange:e=>{(e=>{if(t&&t.widgetdata){let a=Object.assign({},t.widgetdata,{css_parent_node:e.target.checked});t.addTowidgethandler(a)}})(e)}}),(0,e.createElement)("span",{className:"wb-slider"}))),0==t.widgetdata.css_parent_node&&(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:()=>{S()}},"css")),"js"==a&&(0,e.createElement)(ln,null,(0,e.createElement)("div",{className:"wkit-wb-editor-value",onClick:()=>{S()}},"$Scope")),t&&t.cardData[0]&&t.cardData[0].layout&&"html"==a&&t.cardData[0].layout.map(((t,a)=>(0,e.createElement)(ln,{key:a},(0,e.createElement)("div",{className:"wkit-wb-editor-box"},t?.inner_sec&&t?.inner_sec?.length>0&&t.inner_sec.map(((t,a)=>(0,e.createElement)(ln,{key:a},T(t)))))))),(0,e.createElement)("div",{className:"wkit-wb-editor-value-extra"})))),(0,e.createElement)("div",{className:"wkit-wb-editor-bottom-content"},(0,e.createElement)("div",{className:"wkit-wb-bottom-characters"},(0,e.createElement)("div",{className:"wkit-wb-characters-title"},m," Characters"),(0,e.createElement)("div",{className:"wkit-wb-characters-title"},u," Line")))),"css"==g||"js"==g?(0,e.createElement)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{M(e)}},(0,e.createElement)("div",{className:"wkit-wb-popup-links"},(0,e.createElement)("div",{className:"wkit-wb-links-popup"},(0,e.createElement)("div",{className:"wkit-links-main-popup"},(0,e.createElement)("div",{className:"wb-external-links"},(0,e.createElement)("div",{className:"wkit-wb-links-content"},(0,e.createElement)("span",{onClick:()=>{b("css")},className:"css"==v?"wkit-popup-link wkit-active-link":"wkit-popup-link"},"CSS"),(0,e.createElement)("span",{onClick:()=>{b("js")},className:"js"==v?"wkit-popup-link wkit-active-link":"wkit-popup-link"},"JS")),"css"==v&&(0,e.createElement)("div",{className:"wkit-wb-editor-links"},(0,e.createElement)("span",{className:"wkit-Add-link"},"Insert CSS Library"),(0,e.createElement)("span",{className:"wkit-link-desc"},"Enter URL of your External CSS Library, which you want to load in this widget."),(0,e.createElement)("div",{className:"wkit-wb-links-loop"},t&&t.Editor_data[0]&&t.Editor_data[0].css&&t.Editor_data[0].css.map(((a,l)=>(0,e.createElement)(ln,{key:l},(0,e.createElement)("div",{draggable:!0,onDragStart:e=>{h.current=l},onDragOver:e=>{e.preventDefault()},onDrop:()=>{V(l,"css")},className:"wb-editor-popup-inp-content"},(0,e.createElement)("svg",{className:"popup-drag-icon",width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.66667 1.66732C2.66667 2.4037 2.06971 3.00065 1.33333 3.00065C0.596954 3.00065 0 2.4037 0 1.66732C0 0.930938 0.596954 0.333984 1.33333 0.333984C2.06971 0.333984 2.66667 0.930938 2.66667 1.66732Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M2.66667 7.00065C2.66667 7.73703 2.06971 8.33398 1.33333 8.33398C0.596954 8.33398 0 7.73703 0 7.00065C0 6.26427 0.596954 5.66732 1.33333 5.66732C2.06971 5.66732 2.66667 6.26427 2.66667 7.00065Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M2.66667 12.334C2.66667 13.0704 2.06971 13.6673 1.33333 13.6673C0.596954 13.6673 0 13.0704 0 12.334C0 11.5976 0.596954 11.0007 1.33333 11.0007C2.06971 11.0007 2.66667 11.5976 2.66667 12.334Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 1.66732C8 2.4037 7.40305 3.00065 6.66667 3.00065C5.93029 3.00065 5.33333 2.4037 5.33333 1.66732C5.33333 0.930938 5.93029 0.333984 6.66667 0.333984C7.40305 0.333984 8 0.930938 8 1.66732Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 7.00065C8 7.73703 7.40305 8.33398 6.66667 8.33398C5.93029 8.33398 5.33333 7.73703 5.33333 7.00065C5.33333 6.26427 5.93029 5.66732 6.66667 5.66732C7.40305 5.66732 8 6.26427 8 7.00065Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 12.334C8 13.0704 7.40305 13.6673 6.66667 13.6673C5.93029 13.6673 5.33333 13.0704 5.33333 12.334C5.33333 11.5976 5.93029 11.0007 6.66667 11.0007C7.40305 11.0007 8 11.5976 8 12.334Z",fill:"#878787"})),(0,e.createElement)("input",{type:"url",ref:_,value:a,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{x(e,"css",l)}}),""==a?(0,e.createElement)("svg",{className:"eye-link-disabled",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.5 7C1.5 7 3.5 3 7 3C10.5 3 12.5 7 12.5 7C12.5 7 10.5 11 7 11C3.5 11 1.5 7 1.5 7Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 8.5C7.82843 8.5 8.5 7.82843 8.5 7C8.5 6.17157 7.82843 5.5 7 5.5C6.17157 5.5 5.5 6.17157 5.5 7C5.5 7.82843 6.17157 8.5 7 8.5Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("a",{className:"popup-eye-link-content",target:"_blank",href:a},(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.5 7C1.5 7 3.5 3 7 3C10.5 3 12.5 7 12.5 7C12.5 7 10.5 11 7 11C3.5 11 1.5 7 1.5 7Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 8.5C7.82843 8.5 8.5 7.82843 8.5 7C8.5 6.17157 7.82843 5.5 7 5.5C6.17157 5.5 5.5 6.17157 5.5 7C5.5 7.82843 6.17157 8.5 7 8.5Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}))),1==t.Editor_data[0].css.length&&""==a&&0==l?(0,e.createElement)("svg",{className:"popup-inp-remove-icon-disable",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.5359 3.46484L7.00038 7.00038M7.00038 7.00038L3.46484 10.5359M7.00038 7.00038L10.5359 10.5359M7.00038 7.00038L3.46484 3.46484",stroke:"black",strokeLinecap:"round"})):(0,e.createElement)("svg",{className:"popup-inp-remove-icon",onClick:e=>{H(l,"css")},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.5359 3.46484L7.00038 7.00038M7.00038 7.00038L3.46484 10.5359M7.00038 7.00038L10.5359 10.5359M7.00038 7.00038L3.46484 3.46484",stroke:"black",strokeLinecap:"round"}))))))),(0,e.createElement)("div",{className:"wb-popuo-btn-class"},(0,e.createElement)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{L("css")}},(0,e.createElement)("span",null,"Add more")))),"js"==v&&(0,e.createElement)("div",{className:"wkit-wb-editor-js-links"},(0,e.createElement)("span",{className:"wkit-Add-link"},"Insert JS Library"),(0,e.createElement)("span",{className:"wkit-link-desc"},"Enter URL of your External JS Library, which you want to load in this widget."),(0,e.createElement)("div",{className:"wkit-wb-links-loop"},t&&t.Editor_data[0]&&t.Editor_data[0].js&&t.Editor_data[0].js.map(((a,l)=>(0,e.createElement)(ln,{key:l},(0,e.createElement)("div",{draggable:!0,onDragStart:e=>{h.current=l},onDragOver:e=>{e.preventDefault()},onDrop:()=>{V(l,"js")},className:"wb-editor-popup-inp-content"},(0,e.createElement)("svg",{className:"popup-drag-icon",width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.66667 1.66732C2.66667 2.4037 2.06971 3.00065 1.33333 3.00065C0.596954 3.00065 0 2.4037 0 1.66732C0 0.930938 0.596954 0.333984 1.33333 0.333984C2.06971 0.333984 2.66667 0.930938 2.66667 1.66732Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M2.66667 7.00065C2.66667 7.73703 2.06971 8.33398 1.33333 8.33398C0.596954 8.33398 0 7.73703 0 7.00065C0 6.26427 0.596954 5.66732 1.33333 5.66732C2.06971 5.66732 2.66667 6.26427 2.66667 7.00065Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M2.66667 12.334C2.66667 13.0704 2.06971 13.6673 1.33333 13.6673C0.596954 13.6673 0 13.0704 0 12.334C0 11.5976 0.596954 11.0007 1.33333 11.0007C2.06971 11.0007 2.66667 11.5976 2.66667 12.334Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 1.66732C8 2.4037 7.40305 3.00065 6.66667 3.00065C5.93029 3.00065 5.33333 2.4037 5.33333 1.66732C5.33333 0.930938 5.93029 0.333984 6.66667 0.333984C7.40305 0.333984 8 0.930938 8 1.66732Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 7.00065C8 7.73703 7.40305 8.33398 6.66667 8.33398C5.93029 8.33398 5.33333 7.73703 5.33333 7.00065C5.33333 6.26427 5.93029 5.66732 6.66667 5.66732C7.40305 5.66732 8 6.26427 8 7.00065Z",fill:"#878787"}),(0,e.createElement)("path",{d:"M8 12.334C8 13.0704 7.40305 13.6673 6.66667 13.6673C5.93029 13.6673 5.33333 13.0704 5.33333 12.334C5.33333 11.5976 5.93029 11.0007 6.66667 11.0007C7.40305 11.0007 8 11.5976 8 12.334Z",fill:"#878787"})),(0,e.createElement)("input",{type:"url",value:a,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{x(e,"js",l)}}),""==a?(0,e.createElement)("svg",{className:"eye-link-disabled",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.5 7C1.5 7 3.5 3 7 3C10.5 3 12.5 7 12.5 7C12.5 7 10.5 11 7 11C3.5 11 1.5 7 1.5 7Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 8.5C7.82843 8.5 8.5 7.82843 8.5 7C8.5 6.17157 7.82843 5.5 7 5.5C6.17157 5.5 5.5 6.17157 5.5 7C5.5 7.82843 6.17157 8.5 7 8.5Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("a",{className:"popup-eye-link-content",target:"_blank",href:a},(0,e.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.5 7C1.5 7 3.5 3 7 3C10.5 3 12.5 7 12.5 7C12.5 7 10.5 11 7 11C3.5 11 1.5 7 1.5 7Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M7 8.5C7.82843 8.5 8.5 7.82843 8.5 7C8.5 6.17157 7.82843 5.5 7 5.5C6.17157 5.5 5.5 6.17157 5.5 7C5.5 7.82843 6.17157 8.5 7 8.5Z",stroke:"black",strokeLinecap:"round",strokeLinejoin:"round"}))),1==t.Editor_data[0].js.length&&""==a&&0==l?(0,e.createElement)("svg",{className:"popup-inp-remove-icon-disable",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.5359 3.46484L7.00038 7.00038M7.00038 7.00038L3.46484 10.5359M7.00038 7.00038L10.5359 10.5359M7.00038 7.00038L3.46484 3.46484",stroke:"black",strokeLinecap:"round"})):(0,e.createElement)("svg",{className:"popup-inp-remove-icon",onClick:e=>{H(l,"js")},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10.5359 3.46484L7.00038 7.00038M7.00038 7.00038L3.46484 10.5359M7.00038 7.00038L10.5359 10.5359M7.00038 7.00038L3.46484 3.46484",stroke:"black",strokeLinecap:"round"}))))))),(0,e.createElement)("div",{className:"wb-popuo-btn-class"},(0,e.createElement)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{L("js")}},(0,e.createElement)("span",null,"Add more"))))),(0,e.createElement)("div",{className:"close-popup-btn"},(0,e.createElement)("button",{className:"wkit-wb-close-popup-btn",onClick:e=>{M(e)}},"Close")))))):"")})),{Fragment:sn}=wp.element,rn=Hl((e=>({widgetdata:e})),(e=>({addTowidgethandler:t=>e(Rl(t))})))((t=>{const a={elementor:{links:[{label:"E-icons",href:"https://elementor.github.io/elementor-icons/"},{label:"Font-Awesome 5",href:"https://fontawesome.com/v5/search"}]},bricks:{links:[{label:"Ionicons 4",href:"https://ionic.io/ionicons"},{label:"Font-Awesome 6",href:"https://fontawesome.com/v6/icons/"},{label:"Themify",href:"https://themify.me/themify-icons"}]},gutenberg:{links:[{label:"Font-Awesome 5",href:"https://fontawesome.com/v5/search"}]}},[n,i]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.name),[s,r]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.category),[o,c]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.w_icon),[d,m]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.description),[p,u]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.helper_link),[w,g]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.key_words),[C,v]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.w_image),[b,h]=(0,l.useState)(),[_,k]=(0,l.useState)("none"),[E,f]=(0,l.useState)([]),[y,N]=(0,l.useState)(!1),[$,L]=(0,l.useState)(!1),x=(0,l.useRef)(n),H=(0,l.useRef)(""),M=((0,l.useRef)(""),(0,l.useRef)(""),(0,l.useRef)("")),V=(0,l.useRef)(""),D=async e=>{N(!0);let t={manage_type:"update",category_list:[...e].filter((e=>""!==e))},a={type:"wkit_manage_widget_category",info:JSON.stringify(t)};await je(a).then((e=>{f(e)})).catch((e=>console.log(e))),N(!1),L(-1)};(0,l.useEffect)((()=>{(async()=>{let e={type:"wkit_manage_widget_category",info:JSON.stringify({manage_type:"get"})};await je(e).then((e=>{f(e)}))})()}),[]),(0,l.useEffect)((()=>{if("string"==typeof C&&H&&H.current&&"wkit-wb-widget-icon-drop_zone"==H.current.id&&(H.current.style.backgroundImage=`url('${C}')`),"object"==typeof C){const e=new FileReader;e.readAsDataURL(C),e.onload=()=>{H.current.style.backgroundImage=`url('${e.result}')`}}})),wdkitData.WDKIT_SITE_URL;var S=wdkitData.WDKIT_URL;const Z=(e,t)=>{if(t?.size&&Number(t?.size)/1e6>2)e.preventDefault();else{e.preventDefault();let a=t?.type.split("/");(a.includes("png")||a.includes("jpg")||a.includes("jpeg"))&&(h((()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e})()),v(t))}},R=()=>{M&&M.current&&"wkit-wb-select-category-options"==M.current.className&&(M.current.style.display="block"),M&&M.current&&"wkit-wb-select-category-options"!=M.current.className&&(M.current.style.display="none")};return(0,e.createElement)(sn,null,(0,e.createElement)("div",{className:"wkit-wb-info-popup",ref:V,onClick:e=>{(e=>{let t=e.target.closest(".wkit-wb-info-popup");if(e.target.closest(".wkit-wb-selected-category")||(t.querySelector(".wkit-wb-select-category-options").style.display="none"),!e.target.closest(".wkit-wb-custom-category")&&!e.target.closest(".wkit-wb-edit-category")){let e=[...E];do{let t=e.indexOf("");e.splice(t,1)}while(e.indexOf("")>-1);k("none")}})(e)}},(0,e.createElement)("div",{className:"wkit-wb-header-popup"},(0,e.createElement)("h2",{className:"wkit-wb-popup-hreader"},"Edit Widget Information"),(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.Close_popup()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wkit-wb-content wkit-wb-popoupScroll"},(0,e.createElement)("div",{className:"wkit-wb-third-part-content show"},(0,e.createElement)("div",{className:"wkit-wb-block-detail"},(0,e.createElement)("div",{className:"wkit-wb-block-wrapper"},(0,e.createElement)("div",{className:"wkit-wb-block-name"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-block-label"},"Name"),(0,e.createElement)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:S+"assets/images/wb-svg/info.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip"},"Only numbers and alphabet are allowed for this field, Widget name must be smaller then 25 charaters and first letter can't be digit."))),(0,e.createElement)("input",{className:"wkit-wb-block-text-inp",value:n,type:"text",ref:x,placeholder:"Enter your Widget Name",onChange:e=>{""==x?.current?.value?(x.current.style.border="1px solid red",document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3),i("")):""!=x?.current?.value&&(x.current.style.border="",/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(x.current.value)?i(x.current.value):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3)))}})),(0,e.createElement)("div",{className:"wkit-wb-block-category"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-block-label"},"Category")),(0,e.createElement)("div",{className:"wkit-wb-category"},(0,e.createElement)("div",{className:"wkit-wb-selected-category-header"},(0,e.createElement)("span",{className:"wkit-wb-selected-category",onClick:e=>{R()}},s),(0,e.createElement)("img",{className:"wkit-wb-edit-category",src:S+"assets/images/wb-svg/pencil.svg",onClick:e=>{k("none"==_?"flex":"none")}})),(0,e.createElement)("div",{style:{display:"none"},ref:M,className:"wkit-wb-select-category-options"},E&&E.map(((t,a)=>(0,e.createElement)(sn,{key:a},(0,e.createElement)("option",{value:t,onClick:e=>{r(e.target.value),R()}},t)))))),(0,e.createElement)("div",{className:"wkit-wb-custom-category",style:{display:_}},(0,e.createElement)("div",{className:"wkit-wb-custom-category-header"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("span",{className:"wkit-wb-custom-category-name"},"Create New Category"),(0,e.createElement)("div",{className:"wkit-wb-toolTip",style:{top:"1px"}},(0,e.createElement)("svg",{className:"wkit-wb-toolTip-icon",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"white"},(0,e.createElement)("path",{d:"M6 0C2.68594 0 0 2.68594 0 6C0 9.31406 2.68594 12 6 12C9.31406 12 12 9.31406 12 6C12 2.68594 9.31406 0 6 0ZM6 11.25C3.10547 11.25 0.75 8.89453 0.75 6C0.75 3.10547 3.10547 0.75 6 0.75C8.89453 0.75 11.25 3.10547 11.25 6C11.25 8.89453 8.89453 11.25 6 11.25ZM6 4.3125C6.31055 4.3125 6.5625 4.06078 6.5625 3.75C6.5625 3.43945 6.31055 3.1875 6 3.1875C5.68945 3.1875 5.4375 3.43828 5.4375 3.75C5.4375 4.06172 5.68828 4.3125 6 4.3125ZM7.125 8.25H6.375V5.625C6.375 5.41875 6.20625 5.25 6 5.25H5.25C5.04375 5.25 4.875 5.41875 4.875 5.625C4.875 5.83125 5.04375 6 5.25 6H5.625V8.25H4.875C4.66875 8.25 4.5 8.41875 4.5 8.625C4.5 8.83125 4.66875 9 4.875 9H7.125C7.33209 9 7.5 8.83209 7.5 8.625C7.5 8.41875 7.33125 8.25 7.125 8.25Z"})),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetCategory-toolTip"},"Add more categories of Elementor Editor area."))),(0,e.createElement)("a",{className:"wkit-wb-custom-category-close",onClick:()=>{k("none")}},"×")),(0,e.createElement)("div",{className:"wkit-wb-custom-category-inp_content"},(0,e.createElement)("div",{className:"wkit-custom-category-content"},(0,e.createElement)("input",{className:"wkit-wb-custom-category-inp",value:E[0],disabled:!0})),E&&E.map(((t,a)=>{if(a>0)return(0,e.createElement)("div",{className:"wkit-wb-caregory-map",key:a},(0,e.createElement)("div",{className:"wkit-custom-category-content"},(0,e.createElement)("input",{className:"wkit-wb-custom-category-inp",value:t,onBlur:()=>{D(E),L(a)},onChange:e=>{((e,t)=>{let a=[...E];""==e.target.value||/^[a-zA-Z0-9-_ ]+$/.test(e.target.value)?a[t]=e.target.value:(document.querySelector(".wb-wkit-widgetCategory-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetCategory-toolTip").style.display="none"}),2e3)),f(a)})(e,a)},disabled:y}),y&&$==a&&(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle wkit-category-loader"}))),(0,e.createElement)("img",{className:"wkit-wb-plus-icon",src:S+"assets/images/wb-svg/trash-2.svg",onClick:e=>{(async(e,t)=>{let a=[...E];await a.splice(t,1),await D(a),await f(a),await L(-1)})(0,a)}}))}))),(0,e.createElement)("div",{className:"wkit-wb-custom-category-btns",onClick:e=>{(e=>{let t=[...E];t.push(""),f(t)})()}},(0,e.createElement)("img",{src:S+"assets/images/wb-svg/add-section-icon.svg"}),(0,e.createElement)("label",null,"Add More"))))),(0,e.createElement)("div",{className:"wkit-wb-block-feature-img"},(0,e.createElement)("div",{className:"wkit-wb-upload-block-icon"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-block-label"},"Featured Image"),(0,e.createElement)("div",{className:"wkit-wb-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:S+"assets/images/wb-svg/info.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text"},"Only .jpg and .png are allowed"))),(0,e.createElement)("div",{className:"drop-zone",ref:H,id:"wkit-wb-widget-icon-drop_zone",onDragOver:e=>{e.preventDefault()},onDrop:e=>{Z(e,e.dataTransfer.files[0])},onClick:()=>{document.querySelector("#drop-zone__input").click()}},!C&&(0,e.createElement)("div",{className:"drop-zone__prompt"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon",src:S+"assets/images/wb-svg/Union.svg"}),(0,e.createElement)("div",{className:"wkit-wb-drag-drop-label"},"Upload Widget's featured image to show in widget listing. Only .jpg and .png images allowed.")),(0,e.createElement)("input",{type:"file",name:"myFile",className:"wkit-file-text",id:"drop-zone__input",accept:"image/*",onChange:e=>{Z(e,e.target.files[0])}}))),(0,e.createElement)("div",{className:"wkit-wb-upload-block-icon"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-block-label"},"Icon"),(0,e.createElement)("div",{className:"wkit-wb-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:S+"assets/images/wb-svg/info.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetIcon-toolTip"},"Choose and paste your icon code here to show that with widget."))),(0,e.createElement)("div",{className:"wb-eicons-content"},(0,e.createElement)("div",{className:"wb-eicons-val"},(0,e.createElement)("input",{className:"wb-eicons-inp",type:"text",value:o,placeholder:"Copy and Paste Icon code here",onChange:e=>{c(e.target.value)}})),(0,e.createElement)("div",{className:"wb-eicons-links"},(0,e.createElement)("div",{className:"wb-eicons-links-heading"},(0,e.createElement)("span",null,"Copy and Paste Icons from below libraries")),(0,e.createElement)("div",{className:"wb-eicons-links-content"},a[t.widgetdata.WcardData.widgetdata.type].links.map(((l,n)=>(0,e.createElement)(sn,{key:n},(0,e.createElement)("a",{className:"wb-eicons-lable",target:"blank",rel:"noopener noreferrer",href:l.href},l.label),n<a[t.widgetdata.WcardData.widgetdata.type].links.length-1&&(0,e.createElement)("hr",{className:"wb-eicons-hr"}))))))))),(0,e.createElement)("div",{className:"wkit-wb-widget-info"},(0,e.createElement)("div",{className:"wkit-wb-key-words"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-input-lable"},"Keywords"),(0,e.createElement)("div",{className:"wkit-wb-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:S+"assets/images/wb-svg/info.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetkeyW-toolTip"},"Enter keywords to allow searching in elementor editor. ",(0,e.createElement)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer"},"Read More")))),(0,e.createElement)("input",{className:"wkit-wb-input-content",placeholder:"e.g. icon box, info box, icon",value:w,type:"text",onChange:e=>{g(e.target.value)}})),(0,e.createElement)("div",{className:"wkit-wb-helper-link"},(0,e.createElement)("div",{className:"wkit-wb-keyWord-title"},(0,e.createElement)("label",{className:"wkit-wb-input-lable"},"Help Link"),(0,e.createElement)("div",{className:"wkit-wb-toolTip"},(0,e.createElement)("img",{className:"wkit-wb-toolTip-icon",src:S+"assets/images/wb-svg/info.svg",width:"13"}),(0,e.createElement)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetHelper-toolTip"},"Enter URL for users to get more information about this widget. ",(0,e.createElement)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer"},"Read More")))),(0,e.createElement)("input",{className:"wkit-wb-input-content",placeholder:"e.g. https://xyz.com/help/",value:p,type:"url",onChange:e=>{u(e.target.value)}}))),(0,e.createElement)("div",{className:"wkit-wp-btn-center wb-add-widget-footer"},(0,e.createElement)("div",{className:"wb-add-widget-cancelBtn"},(0,e.createElement)("button",{onClick:e=>{t.Close_popup()}}," Cancel ")),(0,e.createElement)("div",{className:"wkit-wb-block-btn-save",onClick:e=>{k("none"),""!==n&&isNaN(n.charAt(0))&&(()=>{const e=""!==n&&isNaN(n.charAt(0)),a=/^[a-zA-Z0-9, ]*$/.test(w)||""===w,l=/^(ftp|http|https):\/\/[^ "]+$/.test(p)||""===p;if(!e)return document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3),!1;if(!a)return document.querySelector(".wb-wkit-widgetkeyW-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetkeyW-toolTip").style.display="none"}),2e3),!1;if(!l)return document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="none"}),2e3),!1;let i=[];"string"==typeof w?w.split(",").forEach((e=>{i.push(e.trim())})):i=w;let r=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:n.trim(),category:s,w_image:C,w_icon:o,description:d,helper_link:p,image_id:b,key_words:i});e&&a&&l&&t.Close_popup(),t.addTowidgethandler(r)})()}},(0,e.createElement)("a",{className:"wkit-wb-save-btn"},"SAVE"))))))))})),on=Hl((e=>({widgetdata:e,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addTowidgethandler:t=>e(Rl(t)),wdkit_set_meta:t=>e(Change_wdkit_meta(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const[a,n]=(0,l.useState)(!1),[i,s]=(0,l.useState)("default"),[r,o]=(0,l.useState)(""),[c,d]=(0,l.useState)(!1),[m,p]=(0,l.useState)(!1),[u,w]=(0,l.useState)(t?.widgetdata?.WcardData?.widgetdata?.widget_version),[g,C]=(0,l.useState)([""]),[v,b]=(0,l.useState)(!1),[h,_]=(0,l.useState)(""),k=(0,l.useRef)(),E=(0,l.useRef)(null),[f,y]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.name),[N,$]=(0,l.useState)(t.widgetdata.WcardData.widgetdata.name.length),[L,x]=(0,l.useState)(!1);var H=Y().id,M=wdkitData.WDKIT_URL;const V=(0,l.useRef)("");(0,l.useEffect)((()=>{let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};V.current=JSON.stringify(e),document.querySelector(".wkit-wb-live-preview")&&document.querySelector(".wkit-wb-live-preview").getBoundingClientRect()&&document.querySelector(".wkit-wb-live-preview").getBoundingClientRect().top&&o(document.querySelector(".wkit-wb-live-preview").getBoundingClientRect().top)}),[]),(0,l.useEffect)((()=>{let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};V?.current&&t?.widgetdata&&V.current!==JSON.stringify(e)?s("change"):"default"!=i&&s("update")}),[t.widgetdata]),(0,l.useEffect)((()=>{document.addEventListener("keydown",(e=>{(e.ctrlKey||e.metaKey)&&e.shiftKey&&"s"===e.key.toLowerCase()&&(e.preventDefault(),D(t.widgetdata,"update"))})),window.location.hash.search("#/widget-listing/builder")>-1&&(window.onbeforeunload=function(e){if("change"==i)return"Are you sure you want to leave page"})}));const D=async(e,a)=>{s("loading");var l=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),n=ace.edit("editor-css",{theme:"ace/theme/cobalt",mode:"ace/mode/css"}),i=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});let r=JSON.stringify(l.getValue()),o=JSON.stringify(n.getValue()),c=JSON.stringify(i.getValue());var d="",m="";if(t?.widgetdata?.WcardData?.widgetdata?.w_image){let e=t.widgetdata.WcardData.widgetdata.w_image;"object"==typeof e&&(m=e)}if(t?.widgetdata?.WcardData?.widgetdata?.w_icon){t.widgetdata.WcardData.widgetdata.w_icon}return"elementor"==t.widgetdata.WcardData.widgetdata.type?m?await Me(a,e,r,o,c,H,m).then((e=>{d=e})):await Me(a,e,r,o,c,H,"").then((e=>{d=e})):"gutenberg"==t.widgetdata.WcardData.widgetdata.type?m?await Ve(a,e,r,o,c,H,m).then((e=>{d=e})):await Ve(a,e,r,o,c,H,"").then((e=>{d=e})):"bricks"==t.widgetdata.WcardData.widgetdata.type&&(m?await De(a,e,r,o,c,H,m).then((e=>{d=e})):await De(a,e,r,o,c,H,"").then((e=>{d=e}))),setTimeout((()=>{s("update");let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};V.current=JSON.stringify(e)}),1e3),d},S=e=>{const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{publish_type:e});t.addTowidgethandler(a)},Z=(e,t)=>{(e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("overlay")||"click"==t)&&(b(""),_(""))},R=()=>(0,e.createElement)("svg",{width:"22",height:"21",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M10 15.5C13.5749 15.5 16.5 12.5749 16.5 9C16.5 5.42505 13.5749 2.5 10 2.5C6.42505 2.5 3.5 5.42505 3.5 9C3.5 12.5749 6.42505 15.5 10 15.5ZM10 15.5C10.3744 14.3767 11.1035 13.4108 11.9461 12.579C12.2432 12.2855 12.4274 11.878 12.4274 11.4274V10.6183H11.7138C11.1593 10.6183 10.6525 10.305 10.4046 9.80913C10.1566 9.31324 9.64978 9 9.09536 9L8.38174 8.99999M10 15.5L9.70819 14.9164C9.36798 14.236 9.19086 13.4588 9.19086 12.6981C9.19086 12.4025 9.07346 12.1191 8.86446 11.9101L8.38174 11.4274L8.62288 11.1862C8.96207 10.847 9.04617 10.3289 8.83164 9.8998L8.38174 8.99999M10.8091 2.55008L11.2541 3.88452C11.4328 4.40938 11.0426 4.95435 10.4881 4.95435H10C9.55312 4.95435 9.19087 5.3166 9.19087 5.76348V6.03621C9.19087 6.34055 9.04329 6.64368 8.7742 6.78169C8.12209 7.11613 7.81916 7.87482 8.14691 8.53032L8.38174 8.99999M8.38174 8.99999L6.54429 7.77503C6.20484 7.54871 6.07753 7.09868 6.27394 6.74107C6.544 6.24928 6.27423 5.64117 5.73592 5.50658L4.69419 5.25292M14.3076 4.16833L14.106 4.77315C14.0663 4.89231 13.9994 5.0006 13.9106 5.08941L13.4735 5.5265C13.3218 5.67824 13.2365 5.88403 13.2365 6.09864V6.57263C13.2365 7.01948 13.5988 7.38175 14.0457 7.38175C14.4925 7.38175 14.8548 7.744 14.8548 8.19088V8.809C14.8548 8.93461 14.8255 9.05848 14.7694 9.17085L14.6311 9.44727C14.3622 9.98526 14.7533 10.6183 15.3549 10.6183H16.2961",stroke:"#737373",strokeWidth:"1.04",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})),B=()=>(0,e.createElement)("svg",{width:"22",height:"21",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6.07617 1.99365C5.10968 1.99365 4.32617 2.77646 4.32617 3.7421V14.2452C4.32617 15.2108 5.10968 15.9937 6.07617 15.9937H13.8509C14.8174 15.9937 15.6009 15.2108 15.6009 14.2452V12.9321C15.6009 12.6469 15.3018 12.4605 15.0456 12.5859C14.9609 12.6273 14.9009 12.7098 14.9009 12.804V14.2452C14.9009 14.8246 14.4308 15.2943 13.8509 15.2943H6.07617C5.49627 15.2943 5.02617 14.8246 5.02617 14.2452V3.7421C5.02617 3.16272 5.49627 2.69303 6.07617 2.69303H13.8509C14.4308 2.69303 14.9009 3.16272 14.9009 3.7421V5.70935C14.9009 6.0407 15.2484 6.25736 15.5463 6.11169C15.5791 6.09565 15.6009 6.06285 15.6009 6.02635V3.7421C15.6009 2.77646 14.8174 1.99365 13.8509 1.99365H6.07617Z",fill:"#737373"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6095 14.3274C12.3766 14.481 12.0662 14.314 12.0666 14.0352L12.0685 12.4696L14.9529 7.11972C15.2279 6.60964 15.8648 6.4189 16.3753 6.69369C16.8858 6.96847 17.0768 7.6047 16.8017 8.11479L13.9172 13.4644L12.6095 14.3274ZM13.3845 12.9778L12.7673 13.385L12.7683 12.6461L15.5692 7.45142C15.6609 7.28139 15.8731 7.21781 16.0433 7.3094C16.2134 7.401 16.2771 7.6131 16.1854 7.78313L13.3845 12.9778Z",fill:"#737373"}),(0,e.createElement)("path",{d:"M7.12619 6.19614C6.93289 6.19614 6.77619 6.35269 6.77619 6.54582C6.77619 6.73896 6.93289 6.89552 7.12619 6.89552H12.7262C12.9195 6.89552 13.0762 6.73896 13.0762 6.54582C13.0762 6.35269 12.9195 6.19614 12.7262 6.19614H7.12619Z",fill:"#737373"}),(0,e.createElement)("path",{d:"M6.77619 4.44768C6.77619 4.25455 6.93289 4.098 7.12619 4.098H12.7262C12.9195 4.098 13.0762 4.25455 13.0762 4.44768C13.0762 4.64081 12.9195 4.79737 12.7262 4.79737H7.12619C6.93289 4.79737 6.77619 4.64081 6.77619 4.44768Z",fill:"#737373"}),(0,e.createElement)("path",{d:"M7.12619 8.29427C6.93289 8.29427 6.77619 8.45086 6.77619 8.64399C6.77619 8.83712 6.93289 8.99364 7.12619 8.99364H12.7262C12.9195 8.99364 13.0762 8.83712 13.0762 8.64399C13.0762 8.45086 12.9195 8.29427 12.7262 8.29427H7.12619Z",fill:"#737373"}),(0,e.createElement)("path",{d:"M6.77619 10.7421C6.77619 10.549 6.93289 10.3924 7.12619 10.3924H11.3262C11.5195 10.3924 11.6762 10.549 11.6762 10.7421C11.6762 10.9352 11.5195 11.0918 11.3262 11.0918H7.12619C6.93289 11.0918 6.77619 10.9352 6.77619 10.7421Z",fill:"#737373"}),(0,e.createElement)("path",{d:"M7.12619 12.4906C6.93289 12.4906 6.77619 12.6471 6.77619 12.8402C6.77619 13.0334 6.93289 13.1899 7.12619 13.1899H11.3262C11.5195 13.1899 11.6762 13.0334 11.6762 12.8402C11.6762 12.6471 11.5195 12.4906 11.3262 12.4906H7.12619Z",fill:"#737373"}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"wkit-wb-head-wrapper"},(0,e.createElement)("div",{className:"wkit-wb-left-hand-side"},(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-elementor-icon",src:M+"assets/images/wb-svg/elementor.svg",draggable:"false"}),(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-icon",src:M+"assets/images/wb-svg/gutenberg.svg",draggable:"false"}),(0,e.createElement)("img",{className:"wkit-wb-plus-icon wkit-bricks-icon",src:M+"assets/images/wb-svg/bricks.svg",draggable:"false"}),(0,e.createElement)("div",{className:"wkit-wb-widget-title"},(0,e.createElement)("span",{className:"wkit-wb-widgetTitle",style:{display:m&&"none"}},t.widgetdata.WcardData.widgetdata.name),(0,e.createElement)("input",{className:"wkit-wb-widget-title-inp",type:"text",value:f,onChange:e=>{(e=>{if(/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(e.target.value)||""==e.target.value){y(e.target.value);const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:e.target.value});t.addTowidgethandler(a)}})(e),$(e.target.value.length)},ref:k,style:{pointerEvents:!m&&"none",display:m&&"flex"},onBlur:e=>{(e=>{let a=e.target.value.trim();if(""==a){E.current;const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:E.current});t.addTowidgethandler(e),y(E.current)}else{const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:a});t.addTowidgethandler(e),y(a)}})(e),p(!m)},onFocus:e=>{(e=>{E.current=e.target.value})(e)}}),!m&&(0,e.createElement)("a",null,(0,e.createElement)("img",{className:"wkit-wb-edit-nameIcon",onClick:e=>{p(!m),setTimeout((()=>{k.current.focus()}),0)},src:M+"assets/images/wb-svg/pencil.svg"})))),(0,e.createElement)("div",{className:"wkit-wb-right-hand-side"},(0,e.createElement)("div",{className:"wkit-wb-setting-panel-link wkit-wb-dropdown",onClick:()=>{d(!c)}},"Publish"==t.widgetdata.WcardData.widgetdata.publish_type?(0,e.createElement)(R,null):(0,e.createElement)(B,null),(0,e.createElement)("span",{className:"output"},t.widgetdata.WcardData.widgetdata.publish_type),(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 12 8",fill:"black",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.87998 1.28957L5.99998 5.16957L2.11998 1.28957C1.72998 0.89957 1.09998 0.89957 0.70998 1.28957C0.31998 1.67957 0.31998 2.30957 0.70998 2.69957L5.29998 7.28957C5.68998 7.67957 6.31998 7.67957 6.70998 7.28957L11.3 2.69957C11.69 2.30957 11.69 1.67957 11.3 1.28957C10.91 0.90957 10.27 0.89957 9.87998 1.28957Z",className:"wkit-wb-down-arrow"})),(0,e.createElement)("div",{className:1==c?"wkit-wb-dropdown-content wkit-wb-show":"wkit-wb-dropdown-content",id:"mySelect"},(0,e.createElement)("div",{className:"wkit-dropdown-outerContent"}),(0,e.createElement)("div",{className:"wkit-dropdown-item",value:"draft",name:"Draft",onClick:()=>{S("Draft")}},(0,e.createElement)(B,null),(0,e.createElement)("span",null,"Draft")),(0,e.createElement)("div",{className:"wkit-dropdown-item",value:"publish",name:"Publish",onClick:()=>S("Publish")},(0,e.createElement)(R,null),(0,e.createElement)("span",null,"Publish")))),(0,e.createElement)("svg",{className:"wkit-wb-setting-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",onClick:()=>{b("widget_info")}},(0,e.createElement)("path",{d:"M12 15C13.6569 15 15 13.6569 15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M19.4 15C19.2669 15.3016 19.2272 15.6362 19.286 15.9606C19.3448 16.285 19.4995 16.5843 19.73 16.82L19.79 16.88C19.976 17.0657 20.1235 17.2863 20.2241 17.5291C20.3248 17.7719 20.3766 18.0322 20.3766 18.295C20.3766 18.5578 20.3248 18.8181 20.2241 19.0609C20.1235 19.3037 19.976 19.5243 19.79 19.71C19.6043 19.896 19.3837 20.0435 19.1409 20.1441C18.8981 20.2448 18.6378 20.2966 18.375 20.2966C18.1122 20.2966 17.8519 20.2448 17.6091 20.1441C17.3663 20.0435 17.1457 19.896 16.96 19.71L16.9 19.65C16.6643 19.4195 16.365 19.2648 16.0406 19.206C15.7162 19.1472 15.3816 19.1869 15.08 19.32C14.7842 19.4468 14.532 19.6572 14.3543 19.9255C14.1766 20.1938 14.0813 20.5082 14.08 20.83V21C14.08 21.5304 13.8693 22.0391 13.4942 22.4142C13.1191 22.7893 12.6104 23 12.08 23C11.5496 23 11.0409 22.7893 10.6658 22.4142C10.2907 22.0391 10.08 21.5304 10.08 21V20.91C10.0723 20.579 9.96512 20.258 9.77251 19.9887C9.5799 19.7194 9.31074 19.5143 9 19.4C8.69838 19.2669 8.36381 19.2272 8.03941 19.286C7.71502 19.3448 7.41568 19.4995 7.18 19.73L7.12 19.79C6.93425 19.976 6.71368 20.1235 6.47088 20.2241C6.22808 20.3248 5.96783 20.3766 5.705 20.3766C5.44217 20.3766 5.18192 20.3248 4.93912 20.2241C4.69632 20.1235 4.47575 19.976 4.29 19.79C4.10405 19.6043 3.95653 19.3837 3.85588 19.1409C3.75523 18.8981 3.70343 18.6378 3.70343 18.375C3.70343 18.1122 3.75523 17.8519 3.85588 17.6091C3.95653 17.3663 4.10405 17.1457 4.29 16.96L4.35 16.9C4.58054 16.6643 4.73519 16.365 4.794 16.0406C4.85282 15.7162 4.81312 15.3816 4.68 15.08C4.55324 14.7842 4.34276 14.532 4.07447 14.3543C3.80618 14.1766 3.49179 14.0813 3.17 14.08H3C2.46957 14.08 1.96086 13.8693 1.58579 13.4942C1.21071 13.1191 1 12.6104 1 12.08C1 11.5496 1.21071 11.0409 1.58579 10.6658C1.96086 10.2907 2.46957 10.08 3 10.08H3.09C3.42099 10.0723 3.742 9.96512 4.0113 9.77251C4.28059 9.5799 4.48572 9.31074 4.6 9C4.73312 8.69838 4.77282 8.36381 4.714 8.03941C4.65519 7.71502 4.50054 7.41568 4.27 7.18L4.21 7.12C4.02405 6.93425 3.87653 6.71368 3.77588 6.47088C3.67523 6.22808 3.62343 5.96783 3.62343 5.705C3.62343 5.44217 3.67523 5.18192 3.77588 4.93912C3.87653 4.69632 4.02405 4.47575 4.21 4.29C4.39575 4.10405 4.61632 3.95653 4.85912 3.85588C5.10192 3.75523 5.36217 3.70343 5.625 3.70343C5.88783 3.70343 6.14808 3.75523 6.39088 3.85588C6.63368 3.95653 6.85425 4.10405 7.04 4.29L7.1 4.35C7.33568 4.58054 7.63502 4.73519 7.95941 4.794C8.28381 4.85282 8.61838 4.81312 8.92 4.68H9C9.29577 4.55324 9.54802 4.34276 9.72569 4.07447C9.90337 3.80618 9.99872 3.49179 10 3.17V3C10 2.46957 10.2107 1.96086 10.5858 1.58579C10.9609 1.21071 11.4696 1 12 1C12.5304 1 13.0391 1.21071 13.4142 1.58579C13.7893 1.96086 14 2.46957 14 3V3.09C14.0013 3.41179 14.0966 3.72618 14.2743 3.99447C14.452 4.26276 14.7042 4.47324 15 4.6C15.3016 4.73312 15.6362 4.77282 15.9606 4.714C16.285 4.65519 16.5843 4.50054 16.82 4.27L16.88 4.21C17.0657 4.02405 17.2863 3.87653 17.5291 3.77588C17.7719 3.67523 18.0322 3.62343 18.295 3.62343C18.5578 3.62343 18.8181 3.67523 19.0609 3.77588C19.3037 3.87653 19.5243 4.02405 19.71 4.21C19.896 4.39575 20.0435 4.61632 20.1441 4.85912C20.2448 5.10192 20.2966 5.36217 20.2966 5.625C20.2966 5.88783 20.2448 6.14808 20.1441 6.39088C20.0435 6.63368 19.896 6.85425 19.71 7.04L19.65 7.1C19.4195 7.33568 19.2648 7.63502 19.206 7.95941C19.1472 8.28381 19.1869 8.61838 19.32 8.92V9C19.4468 9.29577 19.6572 9.54802 19.9255 9.72569C20.1938 9.90337 20.5082 9.99872 20.83 10H21C21.5304 10 22.0391 10.2107 22.4142 10.5858C22.7893 10.9609 23 11.4696 23 12C23 12.5304 22.7893 13.0391 22.4142 13.4142C22.0391 13.7893 21.5304 14 21 14H20.91C20.5882 14.0013 20.2738 14.0966 20.0055 14.2743C19.7372 14.452 19.5268 14.7042 19.4 15V15Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})),0!=t.widgetdata?.WcardData?.widgetdata?.allow_push&&(0,e.createElement)("button",{className:"wkit-wb-sync-btn "+(Pe()?"":"wkit-block-btn"),onClick:()=>{b("version_info")}},(0,e.createElement)("div",{className:"wkit-wb-sync-btn-tooltip"},(0,e.createElement)("span",null,"Push widget on Cloud and Sync it"),(0,e.createElement)("div",{className:"wkit-wb-sync-tooltip-icon"})),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M14.6875 13.75H10.625V7.75898L12.6832 9.8168C12.8014 9.92906 12.9587 9.99072 13.1217 9.98863C13.2847 9.98655 13.4404 9.92088 13.5556 9.80563C13.6709 9.69038 13.7365 9.53466 13.7386 9.37169C13.7407 9.20871 13.6791 9.05137 13.5668 8.9332L10.4418 5.8082C10.3246 5.69108 10.1657 5.62529 10 5.62529C9.83431 5.62529 9.6754 5.69108 9.5582 5.8082L6.4332 8.9332C6.32094 9.05137 6.25928 9.20871 6.26137 9.37169C6.26345 9.53466 6.32912 9.69038 6.44437 9.80563C6.55962 9.92088 6.71534 9.98655 6.87831 9.98863C7.04129 9.99072 7.19863 9.92906 7.3168 9.8168L9.375 7.75898V13.75H5.3125C4.73253 13.7494 4.17649 13.5187 3.76639 13.1086C3.35629 12.6985 3.12562 12.1425 3.125 11.5625V3.4375C3.12562 2.85753 3.35629 2.30149 3.76639 1.89139C4.17649 1.48129 4.73253 1.25062 5.3125 1.25H14.6875C15.2675 1.25062 15.8235 1.48129 16.2336 1.89139C16.6437 2.30149 16.8744 2.85753 16.875 3.4375V11.5625C16.8744 12.1425 16.6437 12.6985 16.2336 13.1086C15.8235 13.5187 15.2675 13.7494 14.6875 13.75ZM10.625 18.125C10.625 18.2908 10.5592 18.4497 10.4419 18.5669C10.3247 18.6842 10.1658 18.75 10 18.75C9.83424 18.75 9.67527 18.6842 9.55806 18.5669C9.44085 18.4497 9.375 18.2908 9.375 18.125V13.75H10.625V18.125Z",fill:"white"})),(0,e.createElement)("span",null,"Push")),(T="Save",O="",j="","default"==i?(T="Save",O="",j="wdkit-disable"):"change"==i?(T="Save",O=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"wkit-wb-save-icon"},(0,e.createElement)("path",{d:"M15.8333 17.8125H4.16667C3.72464 17.8125 3.30072 17.6413 2.98816 17.3365C2.67559 17.0318 2.5 16.6185 2.5 16.1875V4.8125C2.5 4.38152 2.67559 3.9682 2.98816 3.66345C3.30072 3.3587 3.72464 3.1875 4.16667 3.1875H13.3333L17.5 7.25V16.1875C17.5 16.6185 17.3244 17.0318 17.0118 17.3365C16.6993 17.6413 16.2754 17.8125 15.8333 17.8125Z",stroke:"white",strokeWidth:"0.78125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M14.1673 17.8125V11.3125H5.83398V17.8125",stroke:"white",strokeWidth:"0.78125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M5.83398 3.1875V7.25H12.5007",stroke:"white",strokeWidth:"0.78125",strokeLinecap:"round",strokeLinejoin:"round"})),j=""):"update"==i?(T="Saved",O="",j="wdkit-saved"):"loading"==i&&(T="",O=(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"})),j=""),(0,e.createElement)("button",{className:`wkit-wb-publish-btn ${j}`,onClick:()=>{D(t.widgetdata,"update").then((e=>{e.api.success?t.wdkit_set_toast(["Update Saved Successfully","Success! Update Saved","","success"]):t.wdkit_set_toast(["Fail to Save","Fail! Can not Saved","","danger"])}))},disabled:"change"!=i},O,T)))),"widget_info"==v?(0,e.createElement)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{Z(e)}},(0,e.createElement)("div",{className:"wkit-wb-popup"},(0,e.createElement)(rn,{Close_popup:e=>Z(e,"click")}))):"","version_info"==v?(0,e.createElement)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{Z(e)}},(0,e.createElement)("div",{className:"wkit-version-popup-inside"},(0,e.createElement)("div",{className:"wkit-wb-version-popup",style:{width:"50%"}},(0,e.createElement)("div",{className:"wb-version-detail"},(0,e.createElement)("div",{className:"wb-version-header"},(0,e.createElement)("label",null,"Add Sync Details"),(0,e.createElement)("div",{className:"wkit-popup-close-icon",onClick:e=>{e.target.closest(".overlay").click()}},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wb-version-body"},(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("div",{className:"wb-version-number"},(0,e.createElement)("span",{className:"wb-version-label"},"Current Version"),(0,e.createElement)("input",{style:{cursor:"not-allowed"},className:"wb-version-input",type:"text",defaultValue:t?.widgetdata?.WcardData?.widgetdata?.widget_version?t?.widgetdata?.WcardData?.widgetdata?.widget_version:"1.0.0",disabled:!0})),(0,e.createElement)("div",{className:"wb-version-detais"},(0,e.createElement)("span",{className:"wb-version-label"},"Latest Version"),(0,e.createElement)("input",{className:"wb-version-input",type:"text",defaultValue:t?.widgetdata?.WcardData?.widgetdata?.widget_version?"":"1.0.0",onChange:e=>{w(e.target.value),t?.widgetdata?.WcardData?.widgetdata?.widget_version>=e.target.value?_(`version ${e.target.value} is already available`):_("")},disabled:!t?.widgetdata?.WcardData?.widgetdata?.widget_version}),(0,e.createElement)("div",{className:"wb-error-message"},h))),(0,e.createElement)("span",{className:"wb-version-label"},"Changelog"),(0,e.createElement)("div",{className:"wb-version-changes"},g.map(((t,a)=>(0,e.createElement)("div",{className:"wb-version-wrap"},(0,e.createElement)("textarea",{className:"wb-version-detail-input",value:t,placeholder:"Please enter description",rows:"2",onChange:e=>{((e,t)=>{let a=[...g];a[t]=e.target.value,C(a)})(e,a)}}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",viewBox:"0 0 22 23",onClick:()=>{(e=>{let t=[...g];t.length>1?(t.splice(e,1),C(t)):1==t.length&&(t[e]="",C(t))})(a)},fill:"black"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.89978 1.92188C8.57488 1.92188 8.2633 2.05094 8.03359 2.28066L8.03358 2.28067C7.80384 2.51041 7.67478 2.82199 7.67478 3.14687V4.37187H14.3248V3.14687C14.3248 2.82204 14.1957 2.51043 13.966 2.28064C13.7363 2.05095 13.4247 1.92188 13.0998 1.92188H8.89978ZM16.0748 4.37187V3.14687C16.0748 2.3578 15.7613 1.60113 15.2034 1.04326C14.6455 0.485289 13.8887 0.17188 13.0998 0.17188H8.89978C8.11078 0.17188 7.35406 0.485298 6.79613 1.04324C6.23822 1.60115 5.92478 2.35785 5.92478 3.14687V4.37187H3.64978C3.63803 4.37187 3.62634 4.3721 3.61471 4.37256H1.55005C1.0668 4.37256 0.675049 4.76431 0.675049 5.24756C0.675049 5.73081 1.0668 6.12256 1.55005 6.12256H2.77478V19.9469C2.77478 20.7358 3.08821 21.4926 3.64617 22.0505C4.20403 22.6084 4.96072 22.9219 5.74978 22.9219H16.2498C17.0388 22.9219 17.7955 22.6084 18.3534 22.0505C18.9113 21.4926 19.2248 20.7359 19.2248 19.9469V6.12256H20.4501C20.9333 6.12256 21.3251 5.73081 21.3251 5.24756C21.3251 4.76431 20.9333 4.37256 20.4501 4.37256H18.3849C18.3732 4.3721 18.3615 4.37187 18.3498 4.37187H16.0748ZM4.52478 19.9469V6.12256H17.4748V19.9469C17.4748 20.2717 17.3457 20.5834 17.116 20.8131C16.8863 21.0428 16.5746 21.1719 16.2498 21.1719H5.74978C5.42494 21.1719 5.11333 21.0428 4.88356 20.8131L4.26572 21.4309L4.88355 20.8131C4.65385 20.5834 4.52478 20.2718 4.52478 19.9469ZM11.8751 10.4971C11.8751 10.0139 11.4833 9.6221 11.0001 9.6221C10.5169 9.6221 10.1251 10.0139 10.1251 10.4971V16.7971C10.1251 17.2803 10.5169 17.6721 11.0001 17.6721C11.4833 17.6721 11.8751 17.2803 11.8751 16.7971V10.4971Z"})))))),(0,e.createElement)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[...g];e.push(""),C(e)})()}},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 0.546875H5.5V6.04688H0V7.04688H5.5V12.5469H6.5V7.04688H12V6.04688H6.5V0.546875Z"})),(0,e.createElement)("label",null,"Add more"))),(0,e.createElement)("div",{className:"wb-quickedit-footer wb-add-widget-footer"},(0,e.createElement)("div",{className:"wb-add-widget-cancelBtn"},(0,e.createElement)("button",{onClick:e=>{e.target.closest(".overlay").click()}}," Cancel ")),(0,e.createElement)("button",{className:"wb-version-popup-btn",style:{cursor:t?.widgetdata?.WcardData?.widgetdata?.widget_version<u||!t?.widgetdata?.WcardData?.widgetdata?.widget_version?"":"no-drop"},disabled:!(t?.widgetdata?.WcardData?.widgetdata?.widget_version<u||!t?.widgetdata?.WcardData?.widgetdata?.widget_version),onClick:e=>{(async()=>{let e=t.wdkit_meta.widgettemplate;if(x(!0),e.length>0){let n=e.findIndex((e=>e.w_unique==t.widgetdata.WcardData.widgetdata.widget_id));if(g.length>1)var a=g;else a=1==g.length&&g[0]?g:[];if(n>-1)var l=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:u||"1.0.0",version_detail:a});else l=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:u||"1.0.0",version_detail:a})}else l=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:u||"1.0.0",version_detail:a});let n=Object.assign({},t.widgetdata.WcardData,{widgetdata:l}),i=Object.assign({},t.widgetdata,{WcardData:n});var s="";await D(i,"sync").then((e=>{s=e})),s&&s.ajax&&(1==s?.ajax?.data?.success?(b(""),_(""),t.wdkit_set_toast(["Widget synced","Widget synced","","success"])):(t.wdkit_set_toast(["Operation fail","Something went wrong","","danger"]),_(s?.ajax?.data?.message)));const r=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:u});t.addTowidgethandler(r),C([""]),x(!1)})()}},1==L&&(0,e.createElement)("div",{className:"wkit-publish-loader"},(0,e.createElement)("div",{className:"wb-loader-circle"})),0==L&&(0,e.createElement)("span",null,"Update"))))))):"");var T,O,j})),{Fragment:cn}=wp.element;wdkitData.WDKIT_SITE_URL;var dn=wdkitData.WDKIT_URL;const mn=Hl((e=>({cardData:e,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata})),(e=>({addToCarthandler:t=>e(Zl(t)),addToActiveController:t=>e(Ol(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const a=()=>{if(t&&t.widgetdata&&"elementor"==t.widgetdata.type)var e="#91003b";else t&&t.widgetdata&&"gutenberg"==t.widgetdata.type?e="#287CB2":t&&t.widgetdata&&"bricks"==t.widgetdata.type&&(e="#FFD64F");return e},[n,i]=(0,l.useState)("Inset"),[s,r]=(0,l.useState)("normal"),[o,c]=(0,l.useState)("normal"),[d,m]=(0,l.useState)(!0),[p,u]=(0,l.useState)(!1),w=(e,a)=>{let l=t?.nha_array.filter((e=>null!==e));if("width"===e){if(l?.length>0){let e=l.length;return 100/Number(e)+"%"}return"100%"}if("border"===e)return Number(l?.length)-1==a?"none":"";if("label"===e){let e=t?.nha_array.findIndex((e=>e==a));return e>-1&&t?.nha_array_lable?.[e]?t?.nha_array_lable[e]:a.charAt(0).toUpperCase()+a.slice(1)}},g=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},C=(e,a,l,n)=>{let i=[...t.cardData.CardItems.cardData],s=e.target.closest(".wb-main-component").dataset;if(s.rnp)var r=i[0][s.array_type][s.sec_id].inner_sec[s.compo_id].fields[s.rnp];else r=i[0][s.array_type][s.sec_id].inner_sec[s.compo_id];if("nofollow"==a||"is_external"==a)var o=Object.assign({},r,{[a]:e.target.checked});else if("defaultValue_slider"==a){let t=[...r.slider_defaultValue];t[1]=e.target.value,o=Object.assign({},r,{slider_defaultValue:t})}else if("switcher_defaultValue"==a)o=Object.assign({},r,{defaultValue:e.target.checked});else if("dimension_defaultValue"==a){if("isLinked"!=l){var c=Object.assign({},r.dimension_defaultValue,{[l]:e.target.value});o=Object.assign({},r,{dimension_defaultValue:c})}else if("isLinked"==l){let e=r.dimension_defaultValue[l];c=Object.assign({},r.dimension_defaultValue,{[l]:!e}),o=Object.assign({},r,{dimension_defaultValue:c})}}else if("align_defaultValue"==a)o=Object.assign({},r,{align_defaultValue:l});else if("select2_defaultValue"==a){if("add"==n){let e=[...r[a]];e.push(l),o=Object.assign({},r,{[a]:e})}else if("remove"==n){let e=[...r[a]];e.splice(l,1),o=Object.assign({},r,{[a]:e})}}else o="select_defaultValue"==a?Object.assign({},r,{[a]:l}):"nha_type"==a?Object.assign({},r,{[a]:l}):Object.assign({},r,{[a]:e.target.value});s.rnp?i[0][s.array_type][s.sec_id].inner_sec[s.compo_id].fields.splice(s.rnp,1,o):i[0][s.array_type][s.sec_id].inner_sec.splice(s.compo_id,1,o),t.addToCarthandler(i)},v=(e,a,l,n,i)=>{let s=e.dataTransfer.getData("controller_id");if(s)if("repeater"==s||"popover"==s)t.wdkit_set_toast(["Not Valid","You Can Not put this controller here","","danger"]);else{const e=Dl[s].name,r=Object.assign({},Dl[s],{name:e+"_"+g()});let o=[...t.cardData.CardItems.cardData];if(null!=i){let e=o[0][n][a].inner_sec[l].fields[i],t=[...e.fields];t.push(r);let s=Object.assign({},e,{fields:t});o[0][n][a].inner_sec[l].fields[i]=s}else{let e=o[0][n][a].inner_sec[l],t=[...e.fields];t.push(r);let i=Object.assign({},e,{fields:t});o[0][n][a].inner_sec[l]=i}m(!0),t.addToCarthandler(o)}},b=e=>{let a=e.target.closest(".wb-main-component").dataset,l=[...t.cardData.CardItems.cardData];var n=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});let i=n.getValue();const s=(e,t)=>{if(i.search([e])>-1){var a=n.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(n.session.replace(a,t),s(e,t)):(n.session.replace(a,""),s(e)))}},r=e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||s(`data-${e.name}={${e.name}}`),"url"==e.type&&(s(`{{${e.name}-url}}`),s(`{{${e.name}-is_external}}`),s(`{{${e.name}-nofollow}}`)),"headingtags"==e.type&&s(e.name,"div"),s(`{{${e.name}}}`)};if(a.rnp){var o=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp];r(o),"repeater"!=o.type&&"popover"!=o.type||o.fields.map((e=>{r(e)}))}else o=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id],r(o),"repeater"!=o.type&&"popover"!=o.type||o.fields.map((e=>{r(e)}));a.rnp?(l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(a.rnp,1),t.addToCarthandler(l)):(l[0][a.array_type][a.sec_id].inner_sec.splice(a.compo_id,1),t.addToCarthandler(l)),t.addToActiveController("")},h=async e=>{let a=e.target.closest(".wb-main-component").dataset,l=[...t.cardData.CardItems.cardData],n=g();if(a.rnp)if("false"!=a.rnp2){let e=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],t=Object.assign({},l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],{name:e+"_"+n}),i=Number(a.rnp2);l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields.splice(i+1,0,t)}else{let e=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].type,t=Object.assign({},l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp],{name:e+"_"+n}),i=Number(a.rnp);l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(i+1,0,t)}else{let e=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type;if("repeater"==e||"popover"==e||"normalhover"==e){let t=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id],i=Object.assign({},t,{name:e+"_"+n}),s=[];t.fields.map((e=>{let t=e.type,a=Object.assign({},e,{name:t+"_"+g()});s.push(a)}));let r=Object.assign({},i,{fields:s}),o=Number(a.compo_id);l[0][a.array_type][a.sec_id].inner_sec.splice(o+1,0,r)}else{let e=l[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type,t=Object.assign({},l[0][a.array_type][a.sec_id].inner_sec[a.compo_id],{name:e+"_"+n}),i=Number(a.compo_id);l[0][a.array_type][a.sec_id].inner_sec.splice(i+1,0,t)}}t.addToCarthandler(l)},_=e=>{document.querySelector(".wkit-expand-icon-box-border.wkit-wb-selected")&&document.querySelector(".wkit-expand-icon-box-border").click();let a=e.target.closest(".wb-main-component");if(!e.target.closest(".duplicate-btn")&&!e.target.closest(".remove-btn"))if(a&&a.dataset.compo_id&&a.dataset.sec_id&&a.dataset.array_type&&a.dataset.rnp){let e={compo_id:a.dataset.compo_id,sec_id:a.dataset.sec_id,array_type:a.dataset.array_type,repeater:a.dataset.rnp};t.addToActiveController(e)}else if(a&&a.dataset.compo_id&&a.dataset.sec_id&&a.dataset.array_type){let e={compo_id:a.dataset.compo_id,sec_id:a.dataset.sec_id,array_type:a.dataset.array_type};t.addToActiveController(e)}},k=()=>{if(t.controller&&t.controller.controller){let e=t.controller.controller;if(t?.cardData?.CardItems?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.fields?.[e?.repeater]?.name)return t.cardData.CardItems.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].fields[e.repeater].name;if(t?.cardData?.CardItems?.cardData?.[0]?.[e?.array_type]?.[e?.sec_id]?.inner_sec?.[e?.compo_id]?.name)return t.cardData.CardItems.cardData[0][e.array_type][e.sec_id].inner_sec[e.compo_id].name}},E=e=>{let t=e.target.closest(".wkit-wb-custom-dropDown"),a=t.querySelector(".wkit-wb-custom-dropDown-content")?t.querySelector(".wkit-wb-custom-dropDown-content"):"";a&&(Object.values(a.classList).includes("wkit-wb-show")?a.classList.remove("wkit-wb-show"):a.classList.add("wkit-wb-show"))},f=()=>(0,e.createElement)("div",{className:"wb-hover-component"},(0,e.createElement)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{_(e)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99072 0.195068L7.77844 0.975586C8.07385 1.26831 8.07385 1.7561 7.77844 2.04883L6.99072 2.82922L5.12 0.975586L6.0061 0.195068C6.10461 0.0975342 6.30151 0 6.49841 0C6.69543 0 6.89233 0.0975342 6.99072 0.195068ZM4.3324 1.75623L6.20312 3.60986L6.59705 3.2196L4.7262 1.36597L4.3324 1.75623ZM1.37842 4.7804L1.08313 5.07312C1.08313 5.11548 1.06458 5.1394 1.03552 5.17688C0.997681 5.22583 0.941895 5.29773 0.886108 5.46326L0 7.99988L2.65845 7.02429C2.73352 6.98706 2.79431 6.96411 2.84619 6.94434L2.85242 6.94214C2.93347 6.91138 2.99292 6.88806 3.05225 6.8291C3.07422 6.8291 3.09619 6.82422 3.11804 6.81458C3.1405 6.80469 3.16296 6.78979 3.18542 6.76978C3.2395 6.72144 3.29358 6.64368 3.34766 6.5365L5.8092 3.99988L3.93848 2.14624L1.37842 4.7804ZM2.65845 5.85352C2.62085 5.89075 2.59766 5.9281 2.57776 5.95996C2.54565 6.01147 2.52246 6.04871 2.46155 6.04871C2.46155 6.04871 2.42773 6.04871 2.37988 6.06836C2.34619 6.08215 2.30542 6.10583 2.26465 6.14624L1.67383 6.34131L1.87073 5.75598C1.87073 5.65845 1.96924 5.56091 1.96924 5.56091C1.96924 5.56091 1.96924 5.52722 1.98926 5.49939C2.0033 5.47986 2.0271 5.46326 2.06775 5.46326L3.93848 3.60962L4.43079 4.09741L2.65845 5.85352Z",fill:"white"}))),(0,e.createElement)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{h(e)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.14286 4.46754H1.55844C1.76623 4.46754 1.97403 4.67533 1.97403 4.98702C1.97403 5.29871 1.76623 5.5065 1.45455 5.5065H1.14286C0.831168 5.5065 0.519481 5.29871 0.311689 5.09091C0.103896 4.88312 0 4.57143 0 4.25975V1.14286C0 0.831168 0.103896 0.519481 0.311689 0.311689C0.519481 0.103896 0.831168 0 1.14286 0H4.25975C4.57143 0 4.88312 0.103896 5.09091 0.311689C5.29871 0.519481 5.4026 0.831168 5.4026 1.14286V1.55844C5.4026 1.87013 5.19481 2.07792 4.88312 2.07792C4.57143 2.07792 4.36364 1.87013 4.36364 1.55844V1.24675V1.14286H4.25975H1.14286H1.03896V1.24675V4.36364V4.46754H1.14286ZM3.63636 2.3896H6.75324C7.37662 2.3896 7.8961 2.90908 8 3.63636V6.75324C8 7.48052 7.37662 8 6.75324 8H3.63636C2.90908 8 2.3896 7.37662 2.3896 6.75324V3.63636C2.3896 2.90908 2.90908 2.3896 3.63636 2.3896ZM6.64935 6.96104C6.75324 6.96104 6.85714 6.85714 6.85714 6.75324V3.63636C6.85714 3.53246 6.75324 3.42856 6.64935 3.42856H3.53246C3.42856 3.42856 3.32467 3.53246 3.32467 3.63636V6.75324C3.32467 6.85714 3.42856 6.96104 3.53246 6.96104H6.64935Z",fill:"white"}))),(0,e.createElement)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{b(e)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.8 1.49995H7C7.3 1.49995 7.5 1.69995 7.5 1.99995C7.5 2.29995 7.3 2.49995 7 2.49995H6.8V6.69995C6.8 6.99995 6.7 7.29995 6.4 7.49995C6.2 7.69995 5.9 7.79995 5.6 7.79995H2.3C2 7.79995 1.7 7.69995 1.5 7.49995C1.3 7.29995 1.2 6.99995 1.2 6.69995V2.49995H1C0.7 2.49995 0.5 2.29995 0.5 1.99995C0.5 1.69995 0.7 1.49995 1 1.49995H2.2V1.29995C2.2 0.999949 2.3 0.699951 2.5 0.499951C2.7 0.299951 3 0.199951 3.3 0.199951H4.7C5 0.199951 5.3 0.299951 5.5 0.499951C5.7 0.699951 5.8 0.999949 5.8 1.29995V1.49995ZM5.8 6.79995V6.69995H5.9V2.49995H2.2V6.69995V6.79995H2.3H5.7H5.8ZM3.2 1.19995V1.29995V1.49995H4.7V1.29995V1.19995H4.6H3.3H3.2ZM4.5 5.69995C4.5 5.99995 4.3 6.19995 4 6.19995C3.7 6.19995 3.5 5.89995 3.5 5.69995V3.69995C3.5 3.39995 3.7 3.19995 4 3.19995C4.3 3.19995 4.5 3.39995 4.5 3.69995V5.69995Z",fill:"white"}))));if("text"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-append-content wb-main-component "+(k()===t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:!1,className:"tp-sec-edit",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append"},(0,e.createElement)("input",{className:"wb-append-inp",value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}}))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("number"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")},onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-append-content wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",className:"wkit-wb-sec-edit",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append"},(0,e.createElement)("input",{className:"wb-append-inp",value:t.defaultValue,type:"number",placeholder:t.placeHolder,min:t.number_setting.min,max:t.number_setting.max,step:t.number_setting.step,onChange:e=>{C(e,"defaultValue")}}))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("wysiwyg"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-textarea wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"}},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("textarea",{className:"wb-textarea-inp",value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}})),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("code"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-textarea wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"}},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}})),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("choose"==t.type){let a=["eicon-text-align-left","eicon-text-align-right","eicon-text-align-center","eicon-text-align-justify","eicon-arrow-up","eicon-arrow-down","eicon-arrow-right","eicon-arrow-left"];return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-alignment wb-main-component wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-alignment-header"},(0,e.createElement)("div",{className:"wb-append-inner",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}}),(0,e.createElement)("div",{className:"wb-icons",style:{justifyContent:1==t.lableBlock?"flex-start":"flex-end"}},t.align_option&&t.align_option.map(((l,n)=>(0,e.createElement)(cn,{key:n},(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},l.align_lable&&(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},l.align_lable,(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),a.includes(l.align_icon)?l.align_value==t.align_defaultValue?(0,e.createElement)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${dn}assets/images/wb-svg/${l.align_icon}.svg`,onClick:e=>{C(e,"align_defaultValue",l.align_value)}}):(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/${l.align_icon}.svg`,onClick:e=>{C(e,"align_defaultValue",l.align_value)}}):l.align_value==t.align_defaultValue?(0,e.createElement)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${dn}assets/images/wb-svg/info-white.svg`,onClick:e=>{C(e,"align_defaultValue",l.align_value)}}):(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/info.svg`,onClick:e=>{C(e,"align_defaultValue",l.align_value)}})))))))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)))}if("font"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-select wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("select",{className:"select-dropdown"},(0,e.createElement)("option",null,"font-1"),(0,e.createElement)("option",null,"font-2"),(0,e.createElement)("option",null,"font-3"))),(0,e.createElement)(f,null)));if("datetime"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-date-time wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",className:"tp-sec-edit",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append",style:{width:1==t.lableBlock?"100%":"50%"}},(0,e.createElement)("input",{className:"wb-append-inp wb-date-time-w",value:t.defaultValue,type:"datetime-local",placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}}))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("gallery"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-gallery wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-gallery-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner",style:{width:"60%"}},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"block":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-gallery-image"},(0,e.createElement)("div",{className:"wb-gallery-image-header"},(0,e.createElement)("label",null,"No Images Selected")),(0,e.createElement)("div",{className:"wb-gallery-image-content"},(0,e.createElement)("div",{className:"wb-gallery-image-backgorund"},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/add-section-icon.svg"}))))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("background"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-background wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-background-header"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-icons"},(0,e.createElement)("img",{style:{display:-1==t.types.indexOf('"classic"')?"none":"block"},className:"wb-background-icon left",src:dn+"assets/images/wb-svg/bg-pencil.svg"}),(0,e.createElement)("img",{style:{display:-1==t.types.indexOf('"gradient"')?"none":"block"},className:"wb-background-icon",src:dn+"assets/images/wb-svg/grediant.svg"}))),(0,e.createElement)(f,null)));if("border"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-border wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-border-header"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-icons"},(0,e.createElement)("img",{className:"wb-border-icon left",src:dn+"assets/images/wb-svg/border 1.svg"}),(0,e.createElement)("img",{className:"wb-border-icon",src:dn+"assets/images/wb-svg/border 2.svg"}),(0,e.createElement)("img",{className:"wb-border-icon",src:dn+"assets/images/wb-svg/border 3.svg"}),(0,e.createElement)("img",{className:"wb-border-icon right",src:dn+"assets/images/wb-svg/border 4.svg"}))),(0,e.createElement)(f,null)));if("boxshadow"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-box-shadow wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:"column"}},(0,e.createElement)("div",{className:"wb-box-shadow-header"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-box-shadow-content"},(0,e.createElement)("div",{className:"content-1"},(0,e.createElement)("span",{className:"content-text"},"Color"),(0,e.createElement)("img",{className:"wb-color-icon",src:dn+"assets/images/wb-svg/box.svg"})),(0,e.createElement)("div",{className:"content-2"},(0,e.createElement)("span",{className:"content-text"},"X"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-3"},(0,e.createElement)("span",{className:"content-text"},"Y"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-4"},(0,e.createElement)("span",{className:"content-text"},"Blur"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-5"},(0,e.createElement)("span",{className:"content-text"},"Spread"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})))),(0,e.createElement)(f,null)));if("textshadow"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-box-shadow wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:"column"}},(0,e.createElement)("div",{className:"wb-box-shadow-header"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-box-shadow-content"},(0,e.createElement)("div",{className:"content-1"},(0,e.createElement)("span",{className:"content-text"},"Color"),(0,e.createElement)("img",{className:"wb-color-icon",src:dn+"assets/images/wb-svg/box.svg"})),(0,e.createElement)("div",{className:"content-2"},(0,e.createElement)("span",{className:"content-text"},"X"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-3"},(0,e.createElement)("span",{className:"content-text"},"Y"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-4"},(0,e.createElement)("span",{className:"content-text"},"Blur"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})),(0,e.createElement)("div",{className:"content-5"},(0,e.createElement)("span",{className:"content-text"},"Spread"),(0,e.createElement)("input",{className:"shadow-inp",type:"number"})))),(0,e.createElement)(f,null)));if("color"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-color wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-border-color"},(0,e.createElement)("div",{className:"wb-append-inner-color",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}}),(0,e.createElement)("div",{className:"wb-color-icon"},(0,e.createElement)("input",{className:"wb-color-picker",type:"color",value:t.defaultValue,onChange:e=>{C(e,"defaultValue")}})))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("cssfilter"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-css-filter wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-css-filter-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-css-filter-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null)));if("dimension"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-dimension wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append"},t.dimension_defaultValue&&(0,e.createElement)("div",{className:"wb-dimension-content"},(0,e.createElement)("div",{className:"wb-dimension-inp"},(0,e.createElement)("input",{className:"dimension-inp top-inp",value:t.dimension_defaultValue.top,onChange:e=>{C(e,"dimension_defaultValue","top")},type:"number"}),(0,e.createElement)("span",{className:"wb-dimension-lable"},"TOP")),(0,e.createElement)("div",{className:"wb-dimension-inp"},(0,e.createElement)("input",{className:"dimension-inp right-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.right,onChange:e=>{C(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"right")},type:"number"}),(0,e.createElement)("span",{className:"wb-dimension-lable"},"RIGHT")),(0,e.createElement)("div",{className:"wb-dimension-inp"},(0,e.createElement)("input",{className:"dimension-inp bottom-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.bottom,onChange:e=>{C(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"bottom")},type:"number"}),(0,e.createElement)("span",{className:"wb-dimension-lable"},"BOTTOM")),(0,e.createElement)("div",{className:"wb-dimension-inp"},(0,e.createElement)("input",{className:"dimension-inp left-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.left,onChange:e=>{C(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"left")},type:"number"}),(0,e.createElement)("span",{className:"wb-dimension-lable"},"LEFT")),(0,e.createElement)("div",{className:"wb-dimension-icon",onClick:e=>{C(e,"dimension_defaultValue","isLinked")}},(0,e.createElement)("img",{className:1==t.dimension_defaultValue.isLinked?"dimension-icon wkit-wb-dark":"dimension-icon",src:dn+"assets/images/wb-svg/link.svg"}))))),(0,e.createElement)(f,null)));if("typography"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-typography wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-typography-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-typography-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null)));if("gradientcolor"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-grediant-color wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-grediant-color-content wb-append-input-field"},(0,e.createElement)("div",{className:"wb-grediant-color-bar",style:{background:`${t.defaultValue}`}}),(0,e.createElement)("div",{className:"wb-grediant-color-selector"},"gutenberg"!=t.widgetdata.type&&(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("select",{className:"gradiant-color-dropDown"},(0,e.createElement)("option",null,"Linear"),(0,e.createElement)("option",null,"radial"),(0,e.createElement)("option",null,"conic")),(0,e.createElement)("input",{className:"grediant-color-inp",value:"135",type:"text"}))),(0,e.createElement)(f,null)));if("heading"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-heading wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-header-content"},(0,e.createElement)("div",{className:"wb-append-inner"},"bricks"==t.widgetdata.type?(0,e.createElement)("textarea",{className:"wb-textarea-inp wkit-wb-heading-textarea",value:t.lable,rows:3,onChange:e=>{C(e,"lable")}}):(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}}))),(0,e.createElement)(f,null)));if("repeater"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component wb-repeater "+(k()==t.name?"wkit-wb-main-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&_(e)}},(0,e.createElement)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-repeater-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-repeater-field",onClick:()=>{m(!d)}},(0,e.createElement)("input",{className:"wb-repeater-field-title",value:t.title_field,onChange:e=>{C(e,"title_field")}})),(0,e.createElement)("div",{className:"wb-repeater-options",style:{display:1==d?"block":"none"}},t.fields&&t.fields.map(((a,l)=>(0,e.createElement)("div",{key:l},(0,e.createElement)(mn,{name:a.name,showLable:a.showLable,separator:a.separator,lableBlock:a.lableBlock,placeHolder:a.placeHolder,type:a.type,description:a.description,defaultValue:a.defaultValue,lable:a.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:l,rnp2_id:null!=t.rnp_id&&l,types:a.types,number_setting:a.number_setting,title_field:a.title_field,fields:a.fields,return_value:a.return_value,is_external:a.is_external,nofollow:a.nofollow,size_units:a.size_units,options:a.options,rows:a.rows,dimension_defaultValue:a.dimension_defaultValue,align_option:a.align_option,align_defaultValue:a.align_defaultValue,select_defaultValue:a.select_defaultValue,select2_defaultValue:a.select2_defaultValue,hTags_defaultValue:a.hTags_defaultValue,slider_defaultValue:a.slider_defaultValue,nha_array:a.nha_array,nha_type:a.nha_type,nha_array_lable:a.nha_array_lable,alignType:a.alignType,alert_type:a.alert_type,notice_type:a.notice_type,deprecatedValue:a.deprecatedValue,dismissible:a.dismissible,parent_class:a.parent_class})))),(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type}),(0,e.createElement)("div",{className:`wb-repeater-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),v(e,t.sec_index,t.compo_index,t.array_type,t.rnp_id)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type})}},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})),(0,e.createElement)("span",null,"Add Controller")))),(0,e.createElement)("div",{className:"wb-hover-main-component"},(0,e.createElement)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{_(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-pen.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{h(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-copy2.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{b(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-delete.svg"})))));if("popover"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-popover wb-main-component "+(k()==t.name?"wkit-wb-main-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{!e.target.closest(".wb-popover-droped")&&_(e)}},(0,e.createElement)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner wkit-wb-popoverLable"},(0,e.createElement)("input",{className:"wb-append-label wkit-wb-popoverInput",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-popover-options"},t.fields&&t.fields.map(((a,l)=>(0,e.createElement)("div",{key:l},(0,e.createElement)(mn,{name:a.name,showLable:a.showLable,separator:a.separator,lableBlock:a.lableBlock,placeHolder:a.placeHolder,type:a.type,description:a.description,defaultValue:a.defaultValue,lable:a.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:l,rnp2_id:null!=t.rnp_id&&l,types:a.types,number_setting:a.number_setting,title_field:a.title_field,fields:a.fields,return_value:a.return_value,is_external:a.is_external,nofollow:a.nofollow,size_units:a.size_units,options:a.options,rows:a.rows,dimension_defaultValue:a.dimension_defaultValue,align_option:a.align_option,align_defaultValue:a.align_defaultValue,select_defaultValue:a.select_defaultValue,hTags_defaultValue:a.hTags_defaultValue,select2_defaultValue:a.select2_defaultValue,slider_defaultValue:a.slider_defaultValue,nha_array:a.nha_array,nha_type:a.nha_type,nha_array_lable:a.nha_array_lable,alignType:a.alignType,alert_type:a.alert_type,notice_type:a.notice_type,deprecatedValue:a.deprecatedValue,dismissible:a.dismissible,parent_class:a.parent_class})))),(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type}),(0,e.createElement)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),v(e,t.sec_index,t.compo_index,t.array_type,t.rnp_id)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type})}},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})),(0,e.createElement)("span",null,"Add Controller")))),(0,e.createElement)("div",{className:"wb-hover-main-component"},(0,e.createElement)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{_(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-pen.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{h(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-copy2.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{b(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-delete.svg"})))));if("normalhover"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-popover wb-main-component "+(k()==t.name?"wkit-wb-main-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{!e.target.closest(".wb-popover-droped")&&_(e)}},(0,e.createElement)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-popover-options wb-normalHover-options"},(0,e.createElement)("div",{className:"wkit-wb-normalHover"},t.nha_array.length>0&&t?.nha_array.filter((e=>null!==e)).map(((l,n)=>(0,e.createElement)("div",{className:"wkit-wb-normalHoverList",style:{backgroundColor:t.nha_type==l?a():"white",color:t.nha_type==l?"#fff":"black",width:w("width"),border:w("border",n)},onClick:e=>{C(e,"nha_type",l||n)}},w("label",l))))),t.fields&&t.fields.map(((a,l)=>{if(a.key==t.nha_type)return(0,e.createElement)("div",{key:l},(0,e.createElement)(mn,{name:a.name,showLable:a.showLable,separator:a.separator,lableBlock:a.lableBlock,placeHolder:a.placeHolder,type:a.type,description:a.description,defaultValue:a.defaultValue,lable:a.lable,sec_index:t.sec_index,array_type:t.array_type,compo_index:t.compo_index,rnp_id:null!=t.rnp_id?t.rnp_id:l,rnp2_id:null!=t.rnp_id&&l,nha_id:l,types:a.types,number_setting:a.number_setting,title_field:a.title_field,fields:a.fields,return_value:a.return_value,is_external:a.is_external,nofollow:a.nofollow,size_units:a.size_units,options:a.options,rows:a.rows,dimension_defaultValue:a.dimension_defaultValue,align_option:a.align_option,align_defaultValue:a.align_defaultValue,select_defaultValue:a.select_defaultValue,hTags_defaultValue:a.hTags_defaultValue,select2_defaultValue:a.select2_defaultValue,slider_defaultValue:a.slider_defaultValue,nha_array:t.nha_array,nha_type:t.nha_type,nha_array_lable:t.nha_array_lable,alignType:t.alignType,alert_type:a.alert_type,notice_type:a.notice_type,deprecatedValue:a.deprecatedValue,dismissible:a.dismissible,parent_class:a.parent_class}))})),(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component",draggable:"false","data-compo_id":t.compo_index,"data-rnp":t.fields.length,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-nha":t.nha_type}),(0,e.createElement)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),((e,a,l,n,i)=>{let s=e.dataTransfer.getData("controller_id");if(s)if("normalhover"==s)t.wdkit_set_toast(["Not Valid","You Can Not put this controller here","","danger"]);else{const e=Dl[s].name,r=Object.assign({},Dl[s],{name:e+"_"+g(),key:i});let o=[...t.cardData.CardItems.cardData],c=o[0][n][a].inner_sec[l],d=[...c.fields];d.push(r);let p=Object.assign({},c,{fields:d});o[0][n][a].inner_sec[l]=p,m(!0),t.addToCarthandler(o)}})(e,t.sec_index,t.compo_index,t.array_type,t.nha_type)},onClick:e=>{t.addToActiveController({compo_id:t.compo_index,sec_id:t.sec_index,array_type:t.array_type,controller_type:t.type,nha_type:t.nha_type})}},(0,e.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})),(0,e.createElement)("span",null,"Add Controller")))),(0,e.createElement)("div",{className:"wb-hover-main-component"},(0,e.createElement)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{_(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-pen.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{h(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-copy2.svg"})),(0,e.createElement)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{b(e)}},(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/white-delete.svg"})))));if("divider"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-heading wkit-divider-controller wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-header-content"},(0,e.createElement)("hr",null)),(0,e.createElement)(f,null)));if("rawhtml"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-heading wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-header-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append"},(0,e.createElement)("textarea",{className:"wb-append-inp",style:{width:"100%"},value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}}))),(0,e.createElement)(f,null)));if("icon"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-icon-list wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-icon-list-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-icon-list-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null)));if("hidden"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-icon-list wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-icon-list-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-icon-list-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null)));if("media"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-media wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-media-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner",style:{display:1==t.showLable?"block":"none"}},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-media-icon",style:{width:1==t.lableBlock?"100%":"65%"},src:dn+"assets/images/jpg/placeholder.png",draggable:"false"})),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("iconscontrol"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-icon-list wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-icon-list-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-icon-list-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null)));if("linksearch"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-link-search wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-link-search-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-link-search-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"}))));if("multirange"==t.type)return(0,l.useEffect)((()=>{const e=document.getElementById("input-left"),t=document.getElementById("input-right"),a=document.querySelector(".slider > .thumb.left"),l=document.querySelector(".slider > .thumb.right"),n=document.querySelector(".slider > .range");e.addEventListener("input",(()=>{const l=e,[i,s]=[parseInt(l.min),parseInt(l.max)];l.value=Math.min(parseInt(l.value),parseInt(t.value)-1);const r=(l.value-i)/(s-i)*100;a.style.left=r+"%",n.style.left=r+"%"})),t.addEventListener("input",(()=>{const a=t,[i,s]=[parseInt(a.min),parseInt(a.max)];a.value=Math.max(parseInt(a.value),parseInt(e.value)+1);const r=(a.value-i)/(s-i)*100;l.style.right=100-r+"%",n.style.right=100-r+"%"}))})),(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-multi-range wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-multi-range-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"middle"},(0,e.createElement)("div",{className:"multi-range-slider"},(0,e.createElement)("input",{type:"range",id:"input-left",min:"0",max:"100",value:"25"}),(0,e.createElement)("input",{type:"range",id:"input-right",min:"0",max:"100",value:"75"}),(0,e.createElement)("div",{className:"slider"},(0,e.createElement)("div",{className:"track"}),(0,e.createElement)("div",{className:"range"}),(0,e.createElement)("div",{className:"thumb left"}),(0,e.createElement)("div",{className:"thumb right"}))))),(0,e.createElement)(f,null)));if("notice"==t.type){let a="",l="";return"warning"==t.notice_type&&(a="1px solid #f59e0b",l="#f59e0b"),"info"==t.notice_type&&(a="1px solid #2563eb",l="#2563eb"),"success"==t.notice_type&&(a="1px solid #0a875a",l="#0a875a"),"danger"==t.notice_type&&(a="1px solid #dc2626",l="#dc2626"),(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-note wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-note-content",style:{border:a,padding:"5px"}},(0,e.createElement)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"}},(0,e.createElement)("div",{className:"wb-notice-svg"},(0,e.createElement)("svg",{width:"22",height:"22",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.25 9H3M9 2.25V3M15 9H15.75M4.2 4.2L4.725 4.725M13.8 4.2L13.275 4.725M7.27496 12.75H10.725M6.75 12C6.12035 11.5278 5.65525 10.8694 5.42057 10.1181C5.1859 9.36687 5.19355 8.56082 5.44244 7.81415C5.69133 7.06748 6.16884 6.41804 6.80734 5.95784C7.44583 5.49764 8.21294 5.25 9 5.25C9.78706 5.25 10.5542 5.49764 11.1927 5.95784C11.8312 6.41804 12.3087 7.06748 12.5576 7.81415C12.8065 8.56082 12.8141 9.36687 12.5794 10.1181C12.3448 10.8694 11.8796 11.5278 11.25 12C10.9572 12.2899 10.7367 12.6446 10.6064 13.0355C10.4761 13.4264 10.4397 13.8424 10.5 14.25C10.5 14.6478 10.342 15.0294 10.0607 15.3107C9.77936 15.592 9.39782 15.75 9 15.75C8.60218 15.75 8.22064 15.592 7.93934 15.3107C7.65804 15.0294 7.5 14.6478 7.5 14.25C7.56034 13.8424 7.52389 13.4264 7.3936 13.0355C7.2633 12.6446 7.04282 12.2899 6.75 12Z",stroke:l,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"}))),(0,e.createElement)("div",{className:"wb-notice-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")},style:{fontWeight:"600"}})),""!==t.description&&(0,e.createElement)("div",null,(0,e.createElement)("textarea",{className:"wb-note-inp",value:t.description,placeholder:"Write Your Note here....",onChange:e=>{C(e,"description")}})))),1==t.dismissible&&(0,e.createElement)("div",{className:"wb-notice-close"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"13",height:"13"},(0,e.createElement)("path",{d:"M 39.486328 6.9785156 A 1.50015 1.50015 0 0 0 38.439453 7.4394531 L 24 21.878906 L 9.5605469 7.4394531 A 1.50015 1.50015 0 0 0 8.484375 6.984375 A 1.50015 1.50015 0 0 0 7.4394531 9.5605469 L 21.878906 24 L 7.4394531 38.439453 A 1.50015 1.50015 0 1 0 9.5605469 40.560547 L 24 26.121094 L 38.439453 40.560547 A 1.50015 1.50015 0 1 0 40.560547 38.439453 L 26.121094 24 L 40.560547 9.5605469 A 1.50015 1.50015 0 0 0 39.486328 6.9785156 z"})))),(0,e.createElement)(f,null)))}if("radioadvanced"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-radio-advanced wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-radio-advanced-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-radio-color"},(0,e.createElement)("div",{className:"normal"==s?"radio-btn active-ra":"radio-btn",onClick:()=>{r("normal")}},"Normal"),(0,e.createElement)("div",{className:"grediant"==s?"radio-btn active-ra":"radio-btn",onClick:()=>{r("grediant")}},"grediant"))),(0,e.createElement)(f,null)));if("slider"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-range wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-range-content"},(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-range-bar wb-right-append"},t&&t.size_units&&t.slider_defaultValue&&t.slider_defaultValue[0]&&t.size_units.map(((l,n)=>{if(t.slider_defaultValue[0]==l.type)return(0,e.createElement)(cn,{key:n},(0,e.createElement)("input",{className:"wb-range-inp",min:l.min,max:l.max,step:l.step,type:"range",value:t.slider_defaultValue[1],onChange:e=>{C(e,"defaultValue_slider")},style:{background:`linear-gradient(to right, ${a()} 0%, ${a()} ${100*(t.slider_defaultValue[1]-l.min)/(l.max-l.min)}%, #e1e1e1 0%, #e1e1e1 0%)`}}),(0,e.createElement)("input",{className:"range-inp-val",min:l.min,max:l.max,step:l.step,type:"number",value:t.slider_defaultValue[1],onChange:e=>{C(e,"defaultValue_slider")}}))}))))),(0,e.createElement)(f,null)));if("select"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-select wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{E(e)}},(0,e.createElement)("label",null,t.select_defaultValue[1]),(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},t.options.map(((t,a)=>{let l=[t.value,t.lable];return(0,e.createElement)(cn,{key:a},(0,e.createElement)("option",{value:t.lable,onClick:e=>{C(e,"select_defaultValue",l)}},t.lable))}))))),(0,e.createElement)(f,null)));if("selecttemplate"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-select wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{E(e)}},(0,e.createElement)("label",null,"Select Template"),(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},(0,e.createElement)("option",{selected:"Select Template"},"Select Template")))),(0,e.createElement)(f,null)));if("align"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-alignment wb-main-component wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-alignment-header"},(0,e.createElement)("div",{className:"wb-append-inner",style:{flexDirection:"row"}},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}}),(0,e.createElement)("div",{className:"wb-icons"},"text-align"==t.alignType&&(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Left",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/eicon-text-align-left.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Center",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/eicon-text-align-center.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Right",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/eicon-text-align-right.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Justify",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/eicon-text-align-justify.svg`}))),"justify-content"==t.alignType&&(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Start",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-start.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Center",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-center.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"End",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-end.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Space Between",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-space-between.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Space Around",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-space-around.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Space Evenly",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/justify-content-space-evenly.svg`}))),"align-items"==t.alignType&&(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Start",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-items-start.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Center",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-items-center.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"End",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-items-end.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Stretch",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-items-stretch.svg`}))),"flex-direction"==t.alignType&&(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Vertical(Collumn)",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-vertical-direction.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Horizontal(row)",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-horizontal-direction.svg`})),(0,e.createElement)("div",{className:"wkit-wb-alignIcon-content"},(0,e.createElement)("div",{className:"wkit-wb-align-icon-lable"},"Row",(0,e.createElement)("div",{className:"wkit-wb-align-icon-tooltip"})),(0,e.createElement)("img",{className:"wkit-wb-align-icon",src:`${dn}assets/images/wb-svg/align-reverse-direction.svg`})))))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("headingtags"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-select wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{E(e)}},(0,e.createElement)("label",null,t.select_defaultValue?.[1]),(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},t?.options?.length>0&&t?.options.map(((t,a)=>{let l=[t.value,t.lable];return(0,e.createElement)(cn,{key:a},(0,e.createElement)("option",{value:t.lable,onClick:e=>{C(e,"select_defaultValue",l)}},t.lable))}))))),(0,e.createElement)(f,null)));if("select2"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component wb-select2 "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select2-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{E(e)}},t.select2_defaultValue&&t.select2_defaultValue.map(((t,a)=>(0,e.createElement)("div",{className:"wkit-wb-multi-selected",key:a},(0,e.createElement)("div",{className:"wkit-wb-remove-value",onClick:e=>{C(e,"select2_defaultValue",a,"remove")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))),(0,e.createElement)("label",null,t.lable)))),(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/plus-icon.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-37*(t.options.length-t.select2_defaultValue.length)+"px"}},t.options.map(((a,l)=>{let n={value:a.value,lable:a.lable};return(0,e.createElement)("div",{className:"wkit-wb-multiSelect-value",key:l},t.select2_defaultValue.find((e=>e.value==n.value))&&t.select2_defaultValue.find((e=>e.lable==n.lable))?"":(0,e.createElement)(cn,null,(0,e.createElement)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{C(e,"select2_defaultValue",n,"add")}}),(0,e.createElement)("label",{onClick:e=>{e.target.previousSibling.click()}},a.lable)))}))))),(0,e.createElement)(f,null)));if("textarea"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-textarea wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{C(e,"defaultValue")}})),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("switcher"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-toggle wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-toggle-content",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("input",{className:"wb-append-inner wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}}),(0,e.createElement)("label",{className:"wb-switch"},(0,e.createElement)("input",{type:"checkbox",checked:t.defaultValue,onChange:e=>{C(e,"switcher_defaultValue")}}),(0,e.createElement)("span",{className:"wb-slider"}))),(0,e.createElement)(f,null)));if("url"==t.type)return(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-url wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wb-right-append"},(0,e.createElement)("div",{className:"wb-url-content"},(0,e.createElement)("input",{className:"wb-url-inp",type:"url",placeholder:t.placeHolder,value:t.defaultValue,onChange:e=>{C(e,"defaultValue")}}),(0,e.createElement)("img",{className:"inp-url-icon",src:dn+"assets/images/wb-svg/setting.svg",onClick:e=>{Object.values(e.target.parentElement.nextSibling.classList).includes("wb-show")?e.target.parentElement.nextSibling.classList.remove("wb-show"):e.target.parentElement.nextSibling.classList.add("wb-show")}})),(0,e.createElement)("div",{className:"wb-url-options"},(0,e.createElement)("div",{className:"url-opt"},(0,e.createElement)("input",{type:"checkbox",checked:t.is_external,onChange:e=>{C(e,"is_external")}}),(0,e.createElement)("label",null,"Open in new window")),(0,e.createElement)("div",{className:"url-opt"},(0,e.createElement)("input",{type:"checkbox",checked:t.nofollow,onChange:e=>{C(e,"nofollow")}}),(0,e.createElement)("label",null,"Add Nofollow"))))),t&&t.description.length>=1&&(0,e.createElement)("p",{className:"wb-append-dec"},t.description),(0,e.createElement)(f,null)));if("alert"==t.type){let a="",l="";return"warning"==t.alert_type&&(a="2px solid #f59e0b",l="#fffbeb"),"info"==t.alert_type&&(a="2px solid #2563eb",l="#f0f7ff"),"success"==t.alert_type&&(a="2px solid #0a875a",l="#f2fdf5"),"danger"==t.alert_type&&(a="2px solid #dc2626",l="#fef1f4"),(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-note wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-note-content",style:{borderLeft:a,background:l,padding:"10px"}},(0,e.createElement)("div",{className:"wb-append-inner",style:{flexDirection:"column"}},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")},style:{background:l}}),(0,e.createElement)("input",{className:"wb-append-label",value:t.description,onChange:e=>{C(e,"description")},style:{background:l}})),(0,e.createElement)("div",null)),(0,e.createElement)(f,null)))}return"deprecatednotice"==t.type?(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-note wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-note-content",style:{borderLeft:"2px solid #f59e0b",background:"#fffbeb",padding:"10px"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("p",{className:"wb-append-label",style:{background:"#fffbeb",height:"180px"}},"The ",(0,e.createElement)("b",null,t.deprecatedValue[0].Widget)," widget has been deprecated since $",t.deprecatedValue[3].Plugin," $",t.deprecatedValue[1].Since,". It has been replaced by ",(0,e.createElement)("b",null,t.deprecatedValue[4].Replacement),". Note that $",t.deprecatedValue[0].Widget," will be completely removed once $",t.deprecatedValue[3].Plugin," $",t.deprecatedValue[2].Last," is released.")),(0,e.createElement)("div",null)),(0,e.createElement)(f,null))):"styleimage"==t.type?(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-select wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-select-content",style:{flexDirection:"row"}},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown"},(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{E(e)}},(0,e.createElement)("label",null,t.select_defaultValue[1]),(0,e.createElement)("img",{src:dn+"assets/images/wb-svg/controller-open.svg"})),(0,e.createElement)("div",{className:"wkit-wb-custom-dropDown-content"},t.options.map(((t,a)=>{let l=[t.value,t.lable];return(0,e.createElement)(cn,{key:a},(0,e.createElement)("option",{value:t.lable,onClick:e=>{C(e,"select_defaultValue",l)}},t.lable))}))))),(0,e.createElement)(f,null))):"svg"==t.type||"query"==t.type?(0,e.createElement)(cn,null,(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-icon-list wb-main-component "+(k()==t.name?"wkit-wb-selected":""),draggable:p,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,onClick:e=>{_(e)}},(0,e.createElement)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)}},(0,e.createElement)("img",{draggable:"false",src:dn+"assets/images/wb-svg/white-drag.svg"})),(0,e.createElement)("div",{className:"wb-icon-list-content"},(0,e.createElement)("div",{className:"wb-append-inner"},(0,e.createElement)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{C(e,"lable")}})),(0,e.createElement)("img",{className:"wb-icon-list-icon",src:dn+"assets/images/wb-svg/pana-icon.svg"})),(0,e.createElement)(f,null))):void 0})),{__:pn}=wp.i18n,{Fragment:un}=wp.element,wn=Hl((e=>({cardData:e.CardItems.cardData,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(Zl(t)),addToActiveController:t=>e(Ol(t)),addToActiveSection:t=>e(jl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{var a=wdkitData.WDKIT_URL;const n=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},[i,s]=(0,l.useState)(!1),[r,o]=(0,l.useState)(0),c=(0,l.useRef)(),d=(0,l.useRef)(),m=(0,l.useRef)(),p=(0,l.useRef)();(0,l.useEffect)((()=>{var e=document.querySelectorAll(".wb-main-component");e.length>0&&e.forEach((e=>{e.addEventListener("dragstart",(e=>{e.target.closest(".wb-main-component").dataset.array_type==t.array_type&&(e.stopImmediatePropagation(),m.current=e.target.closest(".wb-main-component").dataset)}))}));var a=document.querySelectorAll(".wb-drop");a.length>0&&a.forEach((e=>{e.addEventListener("drop",(e=>{if(e.dataTransfer.getData("controller_id")&&e.target.nextElementSibling.dataset.sec_id){e.stopImmediatePropagation();let l=e.dataTransfer.getData("controller_id"),i=e.target.nextElementSibling.dataset.sec_id,s=e.target.nextElementSibling.dataset.compo_id;const r=Dl[l].name;if(e.target.nextSibling.dataset.nha)var a=Object.assign({},Dl[l],{name:r+"_"+n(),key:e.target.nextSibling.dataset.nha});else a=Object.assign({},Dl[l],{name:r+"_"+n()});let o=[...t.cardData];if(e.target.nextSibling.dataset.rnp)if("repeater"==r||"popover"==r||"normalhover"==r)t.wdkit_set_toast(["Not Valid","You Can Not put this controller here","","danger"]);else{let l=e.target.nextSibling.dataset.rnp,n=o[0][t.array_type][i].inner_sec[s],r=[...n.fields];r.splice(l,0,a);let c=Object.assign({},n,{fields:r});o[0][t.array_type][i].inner_sec[s]=c}else o[0][t.array_type][i].inner_sec.splice(s,0,a);e.target.classList.remove("wb_drag-over"),t.addToCarthandler(o)}else if(e.target.nextElementSibling.dataset.array_type==t.array_type){e.stopImmediatePropagation();let t=e.target.nextElementSibling.dataset;e.target.classList.remove("wb_drag-over"),u(t)}}))}))}));const u=e=>{let a=m.current?.sec_id,l=m.current?.compo_id,n=null!=m.current?.rnp?m.current?.rnp:"",i=e?.sec_id,s=e?.compo_id,r=null!=e?.rnp?e?.rnp:"",o=[...t.cardData];if(o?.[0]?.[t?.array_type]?.[a]?.inner_sec[l]){if(n&&r){let e=o[0][t.array_type][a].inner_sec[l].fields[n];o[0][t.array_type][a].inner_sec[l].fields.splice(n,1),n<r?o[0][t.array_type][i].inner_sec[s].fields.splice(r-1,0,e):o[0][t.array_type][i].inner_sec[s].fields.splice(r,0,e)}else if(n&&!r){let e=o[0][t.array_type][a].inner_sec[l].fields[n];o[0][t.array_type][a].inner_sec[l].fields.splice(n,1),"normalhover"==o[0][t.array_type][a].inner_sec[l].type&&null!=e?.key&&delete e.key,o[0][t.array_type][i].inner_sec.splice(s,0,e)}else{let e=o[0][t.array_type][a].inner_sec[l];o[0][t.array_type][a].inner_sec.splice(l,1),l<s?o[0][t.array_type][i].inner_sec.splice(s-1,0,e):o[0][t.array_type][i].inner_sec.splice(s,0,e)}t.addToCarthandler(o),t.addToActiveController("")}},w=(e,a)=>{let l=e.dataTransfer.getData("controller_id");if(l){const e=Dl[l].name,i=Object.assign({},Dl[l],{name:e+"_"+n()});let s=[...t.cardData];s[0][t.array_type][a].inner_sec.push(i),t.addToCarthandler(s)}},g=(e,a)=>{let l=[...t.cardData];const n=r+1,i=`Section-${n}`;if(l[0][t.array_type].every((e=>e.section!==i))){const s={name:`builder-${n}`,section:i,compo_index:n,inner_sec:[]};if(l[0][t.array_type].push(s),t.addToCarthandler(l),o(n),void 0!==a){let a=l[0][t.array_type].length-1;w(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}else{const i={name:`builder-${n+1}`,section:`Section-${n+1}`,compo_index:n+1,inner_sec:[]};if(l[0][t.array_type].push(i),t.addToCarthandler(l),o(n+1),void 0!==a){let a=l[0][t.array_type].length-1;w(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}},C=e=>{t.section_id.sec_id==e?t.addToActiveSection({sec_id:-1,array_type:t.array_type}):t.addToActiveSection({sec_id:e,array_type:t.array_type})},v=(e,t)=>{let a=e.target.closest(".wb-droped");"add"==t?a.classList.add("wkit-drag-over"):"remove"==t&&a.classList.remove("wkit-drag-over")};return(0,e.createElement)("div",{className:"wb-second-layout-container"},(0,e.createElement)("div",{className:"wb-second-layout-content"},(0,e.createElement)("div",{className:"append"},Object.values(t.cardData[0][t.array_type])?.map(((l,o)=>(0,e.createElement)(un,{key:o},(0,e.createElement)("div",{draggable:i,className:"wb-section",id:`builder-${o}`,"data-index":o,key:("builder-"+o).toString(),onDragEnd:e=>{((e,a)=>{if(!Object.values(e.target.classList).includes("wb-main-component")){let e=[...t.cardData],a=e[0][t.array_type][d.current];e[0][t.array_type].splice(d.current,1),e[0][t.array_type].splice(c.current,0,a),t.addToCarthandler(e),d.current=null,c.current=null}})(e),s(!1)},onDragEnter:e=>{((e,a)=>{c.current=a,t.addToActiveSection({sec_id:a,array_type:t.array_type})})(0,o)},onDragStart:e=>{((e,t)=>{d.current=t})(0,o)}},(0,e.createElement)("div",{className:"wb-section-header","data-sec_index":o,onClick:e=>{!e.target.closest(".wb-section-btns")&&t.section_id.sec_id!=o&&C(o)}},(0,e.createElement)("div",{className:"wb-section-title"},(0,e.createElement)("div",{onMouseDown:()=>{s(!0)},onMouseUp:()=>{s(!1)}},(0,e.createElement)("svg",{draggable:!1,className:"wb-section-title-icon",xmlns:"http://www.w3.org/2000/svg",width:"8",height:"14",viewBox:"0 0 8 14",fill:"#B9B9B9"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.540132 0.5C0.241825 0.5 0 0.741825 0 1.04013V2.95987C0 3.25817 0.241825 3.5 0.540132 3.5H2.45987C2.75817 3.5 3 3.25817 3 2.95987V1.04013C3 0.741825 2.75817 0.5 2.45987 0.5H0.540132ZM0.54 5.5C0.241766 5.5 0 5.74177 0 6.04V7.96C0 8.25823 0.241766 8.5 0.54 8.5H2.46C2.75823 8.5 3 8.25823 3 7.96V6.04C3 5.74177 2.75823 5.5 2.46 5.5H0.54ZM0 11.04C0 10.7418 0.241766 10.5 0.54 10.5H2.46C2.75823 10.5 3 10.7418 3 11.04V12.96C3 13.2582 2.75823 13.5 2.46 13.5H0.54C0.241766 13.5 0 13.2582 0 12.96V11.04ZM5.59535 0.5C5.26655 0.5 5 0.766548 5 1.09535V2.90465C5 3.23345 5.26655 3.5 5.59535 3.5H7.40465C7.73345 3.5 8 3.23345 8 2.90465V1.09535C8 0.766548 7.73345 0.5 7.40465 0.5H5.59535ZM5 6.04C5 5.74177 5.24177 5.5 5.54 5.5H7.46C7.75823 5.5 8 5.74177 8 6.04V7.96C8 8.25823 7.75823 8.5 7.46 8.5H5.54C5.24177 8.5 5 8.25823 5 7.96V6.04ZM5.54 10.5C5.24177 10.5 5 10.7418 5 11.04V12.96C5 13.2582 5.24177 13.5 5.54 13.5H7.46C7.75823 13.5 8 13.2582 8 12.96V11.04C8 10.7418 7.75823 10.5 7.46 10.5H5.54Z"}))),(0,e.createElement)("input",{className:"wb-section-title-text",onFocus:e=>{var t;t=e.target.value,p.current=t},onBlur:()=>{(e=>{if(""==t?.cardData?.[0]?.[t.array_type]?.[e]?.section){let a=[...t.cardData];a[0][t.array_type][e].section=p.current,t.addToCarthandler(a)}})(o)},value:l?.section,onChange:e=>{((e,a)=>{let l=[...t.cardData];l[0][t.array_type][a].section=e,t.addToCarthandler(l)})(e.target.value,o)}})),(0,e.createElement)("div",{className:"wb-section-btns"},(0,e.createElement)("img",{className:"wb-sec-btn",src:a+"assets/images/wb-svg/uparrow.svg",style:{transform:t.section_id.sec_id==o?"":"rotate(180deg)"},onClick:e=>{C(o)}}),(0,e.createElement)("img",{className:"wb-sec-btn",src:a+"assets/images/wb-svg/copy-icon.svg",onClick:e=>{((e,a)=>{let l=[...t.cardData],i=l[0][t.array_type][a].section,s=e.target.closest(".wb-section-header").dataset.sec_index,o=[...l[0][t.array_type]],c=[];o[s].inner_sec.map((e=>{if("repeater"==e.type||"popover"==e.type||"normalhover"==e.type){let t=[];e.fields.map((e=>{let a=Object.assign({},e,{name:e.type+"_"+n()});t.push(a)}));let a=Object.assign({},e,{fields:t}),l=Object.assign({},a,{name:a.type+"_"+n()});c.push(l)}else{let t=Object.assign({},e,{name:e.type+"_"+n()});c.push(t)}}));let d=function(e,t){let a=e,l=2;for(;t.some((e=>e.section===a));)a=e+l,l++;return a}(i+"-copy",l[0][t.array_type]),m=Object.assign({},o[s],{compo_index:r,name:n(),inner_sec:c,section:d}),p=Number(s);l[0][t.array_type].splice(p+1,0,m),t.addToCarthandler(l)})(e,o)}}),(0,e.createElement)("img",{className:"wb-sec-btn",src:a+"assets/images/wb-svg/trash-2.svg",onClick:e=>{((e,a)=>{var l=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});const n=(e,t)=>{var a=l.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(l?.session?.replace(a,t),n(e,t)):(l?.session?.replace(a,""),n(e)))};let i=[...t.cardData];i[0][t.array_type][a]?.inner_sec?.map((e=>{"repeater"==e?.type||"popover"==e?.type?(n(`data-${e.name}={${e.name}}`),e?.fields?.map((e=>{"gallery"!=e?.type&&"select2"!=e?.type&&"repeater"!=e?.type||n(`data-${e?.name}={${e?.name}}`),"url"==e?.type&&(n(`{{${e.name}-url}}`),n(`{{${e.name}-is_external}}`),n(`{{${e.name}-nofollow}}`)),"headingtags"==e?.type&&n(e.name,"div"),n(`{{${e?.name}}}`)}))):("gallery"!=e?.type&&"select2"!=e?.type&&"repeater"!=e?.type||n(`data-${e?.name}={${e?.name}}`),"url"==e?.type&&(n(`{{${e.name}-url}}`),n(`{{${e.name}-is_external}}`),n(`{{${e.name}-nofollow}}`)),"headingtags"==e?.type&&n(e.name,"div"),n(`{{${e?.name}}}`))})),i[0][t.array_type].splice(a,1),t.addToCarthandler(i),t.addToActiveController("")})(0,o)}}))),(0,e.createElement)("div",{className:t.section_id.sec_id==o?"wb-components-settings wb-show":"wb-components-settings"},l?.inner_sec.length>0?Object.values(l?.inner_sec)?.map(((a,l)=>(0,e.createElement)(un,{key:l},(0,e.createElement)(mn,{name:a.name,showLable:a.showLable,separator:a.separator,lableBlock:a.lableBlock,placeHolder:a.placeHolder,type:a.type,description:a.description,defaultValue:a.defaultValue,lable:a.lable,sec_index:o,array_type:t.array_type,compo_index:l,types:a.types,number_setting:a.number_setting,title_field:a.title_field,fields:a.fields,return_value:a.return_value,is_external:a.is_external,nofollow:a.nofollow,size_units:a.size_units,options:a.options,rows:a.rows,dimension_defaultValue:a.dimension_defaultValue,align_option:a.align_option,align_defaultValue:a.align_defaultValue,select_defaultValue:a.select_defaultValue,hTags_defaultValue:a.hTags_defaultValue,select2_defaultValue:a.select2_defaultValue,slider_defaultValue:a.slider_defaultValue,nha_array:a.nha_array,nha_type:a.nha_type,nha_array_lable:a.nha_array_lable,alignType:a.alignType,alert_type:a.alert_type,notice_type:a.notice_type,deprecatedValue:a.deprecatedValue,dismissible:a.dismissible,parent_class:a.parent_class})))):"",(0,e.createElement)("div",{className:"wb-drop",onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{e.target.classList.add("wb_drag-over")},onDrop:e=>{e.target.classList.remove("wb_drag-over")},onDragLeave:e=>{e.target.classList.remove("wb_drag-over")}}),(0,e.createElement)("div",{className:"wb-main-component",draggable:"false","data-compo_id":l?.inner_sec.length,"data-sec_id":o,"data-array_type":t.array_type}),(0,e.createElement)("div",{className:"wb-droped",draggable:!0,onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{v(e,"add")},onDragLeave:e=>{v(e,"remove")},onDrop:e=>{e.preventDefault(),w(e,o),v(e,"remove")},onClick:e=>{t.addToActiveController("")}},"Add More"))))))),(0,e.createElement)("div",{className:"wb-add-section",onClick:()=>{g()},onDragOver:e=>{e.preventDefault()},onDrop:e=>{g(e,t.array_type)}},(0,e.createElement)("a",{className:"add-section-btn"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75 0H5.25V5.25H0V6.75H5.25V12H6.75V6.75H12V5.25H6.75V0Z",fill:"black"})),(0,e.createElement)("span",null,pn("Add Section"))))))})),{__:gn}=wp.i18n,Cn=Hl((e=>({Editor_code:e.Editor_code,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller})),(e=>({addToEditor_code:t=>e(Tl(t)),addToCarthandler:t=>e(Zl(t)),addTowidgethandler:t=>e(Rl(t)),addTolinkhandler:t=>e(Bl(t)),addToActiveController:t=>e(Ol(t))})))((t=>{(0,l.useEffect)((()=>{document.body.classList.contains("folded")||document.body.classList.add("folded")})),wdkitData.WDKIT_URL;const[a,n]=(0,l.useState)("layout");var i="",s=0,r=0;t&&t.widgetdata&&t.widgetdata.type&&"elementor"==t.widgetdata.type?i="wkit-elementor-builder":t&&t.widgetdata&&t.widgetdata.type&&"gutenberg"==t.widgetdata.type?i="wkit-gutenberg-builder":t&&t.widgetdata&&t.widgetdata.type&&"bricks"==t.widgetdata.type&&(i="wkit-bricks-builder");const o=e=>{const t=e.clientX-s;let a=`${r+t}px`;e.target.parentElement.style.width=a,document.querySelector(".wkit-wb-third.content.wkit-wb-hide")?document.querySelector(".wkit-wb-second.content").style.width=`calc((100% - ${a})) `:(document.querySelector(".wkit-wb-second.content").style.width=`calc((100% - ${a})/2) `,document.querySelector(".wkit-wb-third.content").style.width=`calc((100% - ${a})/2) `)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:`wkit-wb-main-builder-page ${i}`,onClick:e=>{(e=>{let t=document.querySelectorAll(".wkit-wb-custom-dropDown-content.wkit-wb-show"),a=document.querySelectorAll(".wkit-wb-choose-popup.wkit-wb-flex-show");!e.target.closest(".wkit-wb-custom-dropDown-header")&&t&&t.forEach((e=>{e.classList.remove("wkit-wb-show")})),e.target.closest(".wkit-wb-choose-popup.wkit-wb-flex-show")||e.target.closest(".wb-options-inp.wkit-wb-icon-select")||!a||a.forEach((e=>{e.classList.remove("wkit-wb-flex-show")}))})(e)}},(0,e.createElement)(on,null),(0,e.createElement)("div",{className:"wkit-wb-widget-builder"},(0,e.createElement)("div",{className:"wkit-wb-first-part content"},(0,e.createElement)("div",{className:"wkit-wb-first-part-content"},(0,e.createElement)(nn,null)),(0,e.createElement)("div",{className:"wkit-wb-first-second-drag",draggable:!0,onDragStart:e=>{(e=>{s=e.clientX;const t=window.getComputedStyle(e.target.parentElement);r=parseInt(t.width,10)})(e)},onDrag:e=>{o(e)},onDragEnd:e=>{o(e)}})),(0,e.createElement)("div",{className:"wkit-wb-second content"},(0,e.createElement)("div",{className:"wb-second-header"},(0,e.createElement)("div",{className:"layout"==a?"wb-second-header-layout active":"wb-second-header-layout",onClick:()=>n("layout")},(0,e.createElement)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.5 6H14.5M6.5 14V6M3.83333 2H13.1667C13.903 2 14.5 2.59695 14.5 3.33333V12.6667C14.5 13.403 13.903 14 13.1667 14H3.83333C3.09695 14 2.5 13.403 2.5 12.6667V3.33333C2.5 2.59695 3.09695 2 3.83333 2Z",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",{className:"wb-layout-text"},gn("Layout"))),(0,e.createElement)("div",{className:"style"==a?"wb-second-header-style active":"wb-second-header-style",onClick:()=>n("style")},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M13.3337 6.66732V2.40065C13.3337 2.02728 13.3337 1.8406 13.261 1.69799C13.1971 1.57255 13.0951 1.47056 12.9697 1.40664C12.8271 1.33398 12.6404 1.33398 12.267 1.33398H3.73366C3.36029 1.33398 3.17361 1.33398 3.031 1.40664C2.90556 1.47056 2.80357 1.57255 2.73965 1.69799C2.66699 1.8406 2.66699 2.02728 2.66699 2.40065V6.66732M13.3337 6.66732H2.66699M13.3337 6.66732V6.80065C13.3337 7.92078 13.3337 8.48078 13.1157 8.90865C12.9239 9.28498 12.618 9.59092 12.2417 9.78265C11.8138 10.0007 11.2538 10.0007 10.1337 10.0007H5.86699C4.74689 10.0007 4.18683 10.0007 3.75901 9.78265C3.38269 9.59092 3.07673 9.28498 2.88498 8.90865C2.66699 8.48078 2.66699 7.92078 2.66699 6.80065V6.66732M9.66699 10.0007V13.0007C9.66699 13.9211 8.92079 14.6673 8.00033 14.6673C7.07986 14.6673 6.33366 13.9211 6.33366 13.0007V10.0007",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",{className:"wb-style-text"},gn("Style")))),"layout"==a&&(0,e.createElement)(wn,{array_type:"layout"}),"style"==a&&(0,e.createElement)(wn,{array_type:"style"})),(0,e.createElement)("div",{className:"wkit-wb-third content"},(0,e.createElement)("div",{className:"wkit-wb-third-header"},(0,e.createElement)("div",{className:t&&!t.controller||!t.controller.controller||t&&t.controller.controller?.controller_type?"wkit-wb-third-header-text activate":"wkit-wb-third-header-text",onClick:e=>{t.addToActiveController("")}},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.6106 9.44683V11.6135M11.6106 11.6135V13.7802M11.6106 11.6135H13.7772M11.6106 11.6135H9.4439M6.55501 9.92831V13.2987C6.55501 13.5646 6.33945 13.7802 6.07353 13.7802H2.70316C2.43725 13.7802 2.22168 13.5646 2.22168 13.2987V9.92831C2.22168 9.6624 2.43725 9.44683 2.70316 9.44683H6.07353C6.33945 9.44683 6.55501 9.6624 6.55501 9.92831ZM6.55501 2.70609V6.07646C6.55501 6.34238 6.33945 6.55794 6.07353 6.55794H2.70316C2.43725 6.55794 2.22168 6.34238 2.22168 6.07646V2.70609C2.22168 2.44018 2.43725 2.22461 2.70316 2.22461H6.07353C6.33945 2.22461 6.55501 2.44018 6.55501 2.70609ZM13.7772 2.70609V6.07646C13.7772 6.34238 13.5617 6.55794 13.2958 6.55794H9.92538C9.65947 6.55794 9.4439 6.34238 9.4439 6.07646V2.70609C9.4439 2.44018 9.65947 2.22461 9.92538 2.22461H13.2958C13.5617 2.22461 13.7772 2.44018 13.7772 2.70609Z",strokeLinecap:"round"})),(0,e.createElement)("span",null,gn("Controls"))),(0,e.createElement)("div",{className:t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type?"wkit-wb-third-header-text activate":"wkit-wb-third-header-text-edit"},(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.38444 2.20095H3.05527C2.72722 2.20095 2.41261 2.33127 2.18064 2.56323C1.94868 2.7952 1.81836 3.10981 1.81836 3.43786V12.0962C1.81836 12.4243 1.94868 12.7389 2.18064 12.9708C2.41261 13.2028 2.72722 13.3331 3.05527 13.3331H11.7136C12.0417 13.3331 12.3563 13.2028 12.5882 12.9708C12.8202 12.7389 12.9505 12.4243 12.9505 12.0962V7.76703M12.0228 1.27293C12.2689 1.02689 12.6026 0.888672 12.9505 0.888672C13.2985 0.888672 13.6322 1.02689 13.8782 1.27293C14.1242 1.51897 14.2625 1.85266 14.2625 2.20061C14.2625 2.54856 14.1242 2.88225 13.8782 3.12829L8.00289 9.0036L5.52908 9.62205L6.14753 7.14824L12.0228 1.27293Z",strokeOpacity:"0.8",strokeLinecap:"round",strokeLinejoin:"round"})),(0,e.createElement)("span",null,gn("Edit")))),t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type&&(0,e.createElement)(Yl,null),(0,e.createElement)("div",{style:{display:t&&!t.controller||!t.controller.controller||t.controller.controller?.controller_type?"block":"none",height:"100%"}},(0,e.createElement)(an,{array_type:a}))))))})),vn=Hl((e=>({Editor_data:e.Editor_data.links,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addToEditor_code:t=>e(Tl(t)),addToCarthandler:t=>e(Zl(t)),addTowidgethandler:t=>e(Rl(t)),addTolinkhandler:t=>e(Bl(t)),wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const[a,n]=(0,l.useState)(!0),[i,s]=(0,l.useState)("");var r=wdkitData.WDKIT_URL;const o=Y(),c=G();(0,l.useEffect)((()=>{Pe()||c("/login")}),[]),(0,l.useEffect)((()=>{t.wdkit_meta.success&&d()}),[t.wdkit_meta]),(0,l.useEffect)((()=>{t?.Editor_code&&t?.Editor_data&&t?.cardData&&t?.widgetdata&&i?.Editor_code&&i?.carddata&&i?.widgetdata&&i?.e_links&&JSON.stringify(t.Editor_code)==JSON.stringify(i.Editor_code)&&JSON.stringify(t.Editor_data)==JSON.stringify(i.e_links)&&JSON.stringify(t.cardData)==JSON.stringify(i.carddata)&&JSON.stringify(t.widgetdata)==JSON.stringify(i.widgetdata)&&n(!1)}),[i]);const d=async()=>{let e=t?.wdkit_meta?.widget_list?.length>0?t?.wdkit_meta?.widget_list:[],a=await e.filter((e=>{if("plugin"==e?.type||"done"==e?.type)return e})),l=o?.id,n=l?l.replaceAll(" ","_"):"",i=a.findIndex((e=>e.title.replaceAll(" ","_")+"_"+e.w_unique==n));if(i>-1){let e=a[i];if("deactive"!=e?.is_activated){let a=e?.title?e.title.replaceAll(" ","_")+"_"+e.w_unique:"",l=e?.title?e.title.replaceAll(" ","-")+"_"+e.w_unique:"",n=`${wdkitData.WDKIT_SERVER_PATH}/${e.builder}/${l}/${a}.json?v=${(()=>{const e=new Date,t=`${e.getFullYear()}${e.getMonth()}${e.getDate()}${e.getHours()}${e.getMinutes()}${e.getSeconds()}`,a=parseInt(t,10)%1e4;return String(a).padStart(4,"0")})()}`;var r=await fetch(n).then((e=>e.json())).then((e=>e));let i=[...t.Editor_code];i[0]=r.Editor_data;let o=r.Editor_data,c=r.section_data,d=r.widget_data.widgetdata,m=r.Editor_Link.links,p={Editor_code:[o],carddata:c,widgetdata:d,e_links:m};t.addToEditor_code(i),t.addToCarthandler(c),t.addTowidgethandler(d),t.addTolinkhandler(m),s(p)}else t.wdkit_set_toast(["Widget Deactivated","This Widget is Deactivated ","","danger"]),c("/widget-listing")}else t.wdkit_set_toast(["Widget Not Found","Widget not found try again later","","danger"]),c("/widget-listing")};return a?(0,e.createElement)("div",{className:"wb-loader",style:{display:"flex"},draggable:!1},(0,e.createElement)("img",{style:{width:"150px",height:"150px",marginLeft:"-160px"},src:r+"assets/images/jpg/wdkit_loader.gif",draggable:!1})):(0,e.createElement)(Cn,null)})),{Fragment:bn}=wp.element,{__:hn}=wp.i18n,kn=t=>{const[a,n]=(0,l.useState)(t.filterArgs),[i,s]=(0,l.useState)([]),[r,o]=(0,l.useState)([]),[c,d]=(0,l.useState)("");(0,l.useEffect)((()=>{o(t?.filter_data?.buildertype?t?.filter_data?.buildertype:""),s(t?.filter_data?.category?JSON.parse(t?.filter_data?.category.replaceAll('"',"")):[]),n(t.filter_data)}),[t.filter_data]);const m=()=>{document.querySelector(".wkit-mobile-filter-main").classList.remove("wkit-filter-menu-show")},p=(e,t)=>{if("category"===t){let t=[...i];if(t.includes(Number(e.target.value))){let l=t.indexOf(Number(e.target.value));t.splice(l,1),s(t),n(Object.assign({},a,{category:JSON.stringify(t)}))}else t.push(Number(e.target.value)),s(t),n(Object.assign({},a,{category:JSON.stringify(t)}))}else if("builder"===t){var l="";e.target.checked&&(l=e.target.value),o(l);let t=Object.assign({},a,{buildertype:l});n(t)}else if("search"===t){let e=Object.assign({},a,{search:c,page:1});n(e)}else if("free_pro"===t){let t=Object.assign({},a,{free_pro:e.target.value,page:1});n(t)}};return(0,e.createElement)("div",{className:"wkit-mobile-filter-main"},(0,e.createElement)("div",{className:"wkit-filter-main-heading"},hn("Filter by")),(0,e.createElement)("div",{className:"close-icon"},(0,e.createElement)("a",{className:"close",onClick:()=>m()},(0,e.createElement)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},hn("Search :")),(0,e.createElement)(bn,null,(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)("input",{className:"wkit-browse-search",placeholder:hn("Search Templates..."),type:"text",value:c,onChange:e=>{d(e.target.value)}})))),(0,e.createElement)("div",{className:"wkit-filter-by-page-builder"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},hn("Page Builder :")),(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},t.builder_list&&t.builder_list.length>0&&t.builder_list.map(((t,a)=>(0,e.createElement)(bn,{key:a},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",name:"check1",checked:t.builder_name.toLowerCase()==r,value:t.builder_name.toLowerCase(),className:"wkit-custom-cateogry",id:t.builder_name,onChange:e=>{p(e,"builder")}}),(0,e.createElement)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:t.builder_name},(0,e.createElement)("img",{className:"wkit-pin-img-temp",src:t.builder_icon,alt:"section",draggable:!1}),t.builder_name))))))),(0,e.createElement)("div",{className:"wkit-filter-by-categorties"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},hn("Free/Pro :")),(0,e.createElement)(bn,null,(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-free-btn-label",value:"free",onChange:e=>{p(e,"free_pro")},checked:"free"==a?.free_pro}),(0,e.createElement)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-free-btn-label"},hn("Free"))),(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{p(e,"free_pro")},checked:"pro"==a?.free_pro}),(0,e.createElement)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-pro-btn-label"},hn("Pro")))))),(0,e.createElement)("div",{className:"wkit-filter-by-categorties"},(0,e.createElement)("div",{className:"wkit-browse-filter-heading"},hn("Categories :")),(0,e.createElement)("div",{className:"wkit-category-mobile-filter"},Object.values(t.category_list).map(((t,a)=>(0,e.createElement)(bn,{key:a},(0,e.createElement)("div",{className:"wkit-custom-category-wrap"},(0,e.createElement)("input",{type:"checkbox",name:"check1",className:"wkit-custom-cateogry",checked:i.includes(t.term_id),value:t.term_id,id:t.term_id,onChange:e=>{p(e,"category")}}),(0,e.createElement)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:t.term_id},t.term_name))))))),(0,e.createElement)("div",{className:"wkit-common-btn wkit-pink-btn-class",onClick:e=>{t.setfilter_data(a),t.setselect_builder(r),t.setcategory_check(i),p(e,"search"),m()}},(0,e.createElement)("span",null,"Visit Site")))},{__:En}=wp.i18n,{Fragment:fn}=wp.element,{form_data:yn}=wp.wkit_Helper,Nn=t=>{wdkitData.WDKIT_URL;const[a,n]=(0,l.useState)(1),[i,s]=(0,l.useState)(12),[r,o]=(0,l.useState)("loading"),[c,d]=(0,l.useState)(!0),[m,p]=(0,l.useState)(""),[u,w]=(0,l.useState)(),[g,C]=(0,l.useState)([]),[v,b]=(0,l.useState)(["category","free_pro"]),[h,_]=(0,l.useState)(0),[k,E]=(0,l.useState)(!0),[f,y]=(0,l.useState)(!0),[N,$]=(0,l.useState)([]),[L,x]=(0,l.useState)(""),[H,M]=(0,l.useState)(""),[V,D]=(0,l.useState)({free_pro:"",type:"widget_browse_page",buildertype:"",perpage:i,page:a}),S=(0,l.useRef)(null),[Z,R]=(0,l.useState)([]),B=t?.wdkit_meta?.widgetbuilder?[...t?.wdkit_meta?.widgetbuilder]:[],T=t?.wdkit_meta?.widgetscategory?[...t?.wdkit_meta?.widgetscategory]:[],[O,j]=(0,l.useState)("");(0,l.useEffect)((()=>{w(t.wdkit_meta)}),[t.wdkit_meta]),(0,l.useEffect)((()=>{E(!0)}),[]),(0,l.useEffect)((()=>{W(),y(!0)}),[V,i,a,u]),(0,l.useEffect)((()=>{document.querySelector(".wkit-filter-humber-menu")&&document.querySelector(".wkit-filter-humber-menu").addEventListener("click",(e=>{e.preventDefault(),document.querySelector(".wkit-mobile-filter-main")&&document.querySelector(".wkit-mobile-filter-main").classList.add("wkit-filter-menu-show")}))})),(0,l.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("Gutenberg"),t?.wdkit_meta?.Setting?.bricks_builder&&e.push("Bricks"),R(e)}),[t?.wdkit_meta?.Setting]);const A=(e,t)=>{if("category"===t){let t=[...g];if(t.includes(Number(e.target.value))){let l=t.indexOf(Number(e.target.value));t.splice(l,1),C(t);var a=Object.assign({},V,{category:JSON.stringify(t),page:1});n(1)}else t.push(Number(e.target.value)),C(t),a=Object.assign({},V,{category:JSON.stringify(t),page:1}),n(1)}else if("builder"===t){var l="";e.target.checked&&(l=e.target.value),p(l),a=Object.assign({},V,{buildertype:l,page:1}),n(1)}else if("search"===t)a=Object.assign({},V,{page:1}),n(1);else if("free_pro"===t){var i="";e.target.checked&&(i=e.target.value),j(i),a=Object.assign({},V,{free_pro:i,page:1}),n(1)}a=Object.assign({},a,{search:L}),D(a),M(L)},P=e=>{if(g.includes(e))return!0},W=async()=>{if(m)var e=Object.assign({},V,{buildertype:JSON.stringify([m])});else e=Object.assign({},V,{buildertype:JSON.stringify(Z)});u?.widgetbuilder?.length>0&&await yn(e).then((async e=>{e?.data?.widgets&&(await o(e),await _(Math.ceil(e?.data?.widgetscount/i)),await(async e=>{let a=[];(t?.wdkit_meta?.widget_list?t.wdkit_meta.widget_list:[]).map((async t=>{"plugin"!=t?.type&&"done"!=t?.type||(e?.data?.widgets&&e?.data?.widgets.findIndex((e=>e.w_unique==t.w_unique)))>-1&&a.push(t.w_unique)})),$(a)})(e)),E(!1),y(!1)}))},I=e=>{let t=[...v];if(t.includes(e)){let a=t.indexOf(e);t.splice(a,1)}else t.push(e);b(t)};return(0,e.createElement)("div",{className:"wkit-browse-widget-wrap"},(0,e.createElement)(kn,{filter_type:"widget",filter_data:V,setfilter_data:e=>{D(e)},setcategory_check:e=>{C(e)},setselect_builder:e=>{p(e)},category_list:T,builder_list:B}),(0,e.createElement)("div",{className:"wkit-browse-widget-main"},0==k&&r?.data?.widgets&&(0,e.createElement)(fn,null,(0,e.createElement)("div",{className:"wkit-browse-widget-column wkit-browse-widget-mobile-hide "+(c?"":"wkit-browse-column-collapse")},c?(0,e.createElement)("div",{className:"wkit-browse-widget-inner-column"},(0,e.createElement)("div",{className:"wkit-expand-filter"},(0,e.createElement)("div",{className:"wkit-left-main-title"},En("Filters")),(0,e.createElement)("div",{style:{cursor:"pointer"},onClick:()=>{d(!c)}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M9.64182 7.47781L6.76141 4.58998L9.64924 1.70215C9.93877 1.41262 9.93877 0.944928 9.64924 0.655403C9.35972 0.365878 8.89202 0.365878 8.6025 0.655403L5.195 4.06289C4.90548 4.35242 4.90548 4.82011 5.195 5.10964L8.6025 8.51713C8.89202 8.80666 9.35972 8.80666 9.64924 8.51713C9.93134 8.23503 9.93134 7.75991 9.64182 7.47781ZM1.69843 0.135742C2.10673 0.135742 2.4408 0.46981 2.4408 0.878115V8.30184C2.4408 8.71015 2.10673 9.04422 1.69843 9.04422C1.29012 9.04422 0.956055 8.71015 0.956055 8.30184V0.878115C0.956055 0.46981 1.29012 0.135742 1.69843 0.135742Z",fill:"#19191B"})))),(0,e.createElement)("div",{className:"wkit-wb-filterTitle"},En("Search")),(0,e.createElement)("div",{className:"wkit-search-filter"},(0,e.createElement)(fn,null,(0,e.createElement)("div",{className:"wkit-browse-search-inner"},(0,e.createElement)("input",{className:"wkit-browse-search",placeholder:En("Search Widgets"),type:"text",value:L,onChange:e=>{x(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(A(e,"search"),S.current.blur())},ref:S}),(0,e.createElement)("span",{className:"wkit_search_button wkit-btn-class",onClick:e=>{A(e,"search")}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none"},(0,e.createElement)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})))))),Z.length>1&&(0,e.createElement)("div",{className:"wkit-wb-filterTitle"},En("Page Builder")),"wdkit"==wdkitData.use_editor&&(0,e.createElement)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left"},(0,e.createElement)("div",{className:"wkit-filter-builder"},B.length>0&&Z.length>1&&Object.values(B)?.map(((t,a)=>{if((e=>{if(B?.length>0){let t=B.findIndex((t=>t.w_id==e)),a=B[t]?.builder_name;return!!Z.includes(a)}return!1})(t.w_id))return(0,e.createElement)(fn,{key:a},(0,e.createElement)("div",{className:"wkit-wb-widgetType"},(0,e.createElement)("div",{className:"wkit-select-builder-list"},(0,e.createElement)("input",{type:"checkbox",id:"select_builder_"+t.builder_name,className:"wkit-builder-radio",value:t.builder_name.toLowerCase(),name:"selectBuilder",onChange:e=>{A(e,"builder")},checked:m.includes(t.builder_name.toLowerCase())}),(0,e.createElement)("label",{className:"wkit-builder-label",htmlFor:"select_builder_"+t.builder_name},""!=t.builder_icon&&(0,e.createElement)("img",{className:"wkit-browse-filter-builder "+(m==t.builder_name.toLowerCase()?"wkit-select-builder":""),src:t.builder_icon,draggable:!1}),(0,e.createElement)("span",{className:"wkit-builder-toolTip"},t.builder_name)))))}))),(0,e.createElement)("hr",{style:{width:"100%"}}),(0,e.createElement)(fn,null,(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>I("free_pro")},(0,e.createElement)("div",{className:"wkit-filter-heading"},En("Free / Pro")),(0,e.createElement)("svg",{width:"10",height:"5",style:{transform:v.includes("free_pro")?"rotate(180deg)":""},viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.21338 0.637695L4.93579 4.34956L8.6582 0.637695",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"}))),v?.includes("free_pro")&&(0,e.createElement)("div",{className:"wkit-freePro-wrap wkit-accordion-content"},(0,e.createElement)("div",{className:"wkit-select-freePro-type"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",onChange:e=>{A(e,"free_pro")},checked:"free"==V.free_pro}),(0,e.createElement)("label",{className:"wkit-freePro-label",htmlFor:"wkit-free-btn-label"},En("Free"))),(0,e.createElement)("div",{className:"wkit-select-freePro-type"},(0,e.createElement)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{A(e,"free_pro")},checked:"pro"==V.free_pro}),(0,e.createElement)("label",{className:"wkit-freePro-label",htmlFor:"wkit-pro-btn-label"},En("Pro"))))),(0,e.createElement)("hr",{style:{width:"100%"}}),(0,e.createElement)("div",{className:"wkit-filter-category"},(0,e.createElement)("div",{className:"wkit-filter-accordion",onClick:()=>{I("category")}},(0,e.createElement)("div",{className:"wkit-filter-heading"},En("Categories")),(0,e.createElement)("svg",{width:"10",height:"5",style:{transform:v.includes("category")?"rotate(180deg)":""},viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.21338 0.637695L4.93579 4.34956L8.6582 0.637695",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"}))),T&&v.includes("category")&&T.map(((t,a)=>(0,e.createElement)(fn,{key:a},(0,e.createElement)("div",{className:"wkit-accordion-content",key:a},(0,e.createElement)("div",{className:"wkit-plugin-wrap"},(0,e.createElement)("div",{className:"wkit-plugin-name"},(0,e.createElement)("input",{type:"checkbox",value:Number(t.term_id),className:"wkit-check-box wkit-styled-checkbox",id:"category_"+t.term_id,name:"selectPlugin",onChange:e=>A(e,"category"),checked:P(t.term_id)}),(0,e.createElement)("label",{htmlFor:"category_"+t.term_id},t.term_name)))))))))):(0,e.createElement)("div",{className:"filter-abosulte",onClick:()=>{d(!c)}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M0.724998 7.9175L3.635 5L0.7175 2.0825C0.425 1.79 0.425 1.3175 0.7175 1.025C1.01 0.7325 1.4825 0.7325 1.775 1.025L5.2175 4.4675C5.51 4.76 5.51 5.2325 5.2175 5.525L1.775 8.9675C1.4825 9.26 1.01 9.26 0.7175 8.9675C0.4325 8.6825 0.432499 8.2025 0.724998 7.9175ZM8.75 0.5C8.3375 0.5 8 0.8375 8 1.25V8.75C8 9.1625 8.3375 9.5 8.75 9.5C9.1625 9.5 9.5 9.1625 9.5 8.75V1.25C9.5 0.8375 9.1625 0.5 8.75 0.5Z",fill:"white"})),En("Filters"))),(0,e.createElement)("div",{className:"wkit-browse-widget-right-column"},(()=>{const t=(e,t)=>{if("builder"==t)p(""),D(Object.assign({},V,{buildertype:""}));else if("category"==t){let t=[...g];t=t.filter((t=>t!==Number(e))),C(t),D(Object.assign({},V,{category:JSON.stringify(t)}))}else"free_pro"==t?(j(""),D(Object.assign({},V,{free_pro:""}))):"search"==t&&(M(""),x(""),D(Object.assign({},V,{search:""})))};return(0,e.createElement)("div",{className:"wkit-free-dropdown-mixed"},(""!=O||g.length>0||""!=m||""!=H)&&(0,e.createElement)("div",{className:"wkit-browse-applied-filter"},(0,e.createElement)(fn,null,(0,e.createElement)("label",{className:"applied-filter-text"},En("Applied Filter :")),""!=m&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,m)),(0,e.createElement)("button",{onClick:e=>t(e,"builder")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))," ")),""!=H&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,H)),(0,e.createElement)("button",{onClick:e=>t(e,"search")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),""!=O&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,O)),(0,e.createElement)("button",{onClick:e=>t(e,"free_pro")},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))," ")),g.length>0&&Object.values(T)?.map(((a,l)=>(0,e.createElement)(fn,{key:l},g.includes(a.term_id)&&(0,e.createElement)("div",{className:"wkit-applied-list"},(0,e.createElement)("label",null,(0,e.createElement)("span",null,a.term_name)),(0,e.createElement)("button",{onClick:()=>{t(a.term_id,"category")}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"}))))))),(0,e.createElement)("button",{className:"wdkit-reset-all-filters wkit-btn-class",onClick:()=>{C([]),j(""),p(""),M(""),x(""),D(Object.assign({},V,{free_pro:"free",category:JSON.stringify([]),buildertype:"",search:"",perpage:i,page:1}))}},"Clear All"))))})(),0==f&&r?.data?.widgets.length>0&&(0,e.createElement)(fn,null,(0,e.createElement)("div",{className:c?"wkit-skeleton-row":"wkit-widget-browse-filter-close wkit-skeleton-row"},r?.data?.widgets.map(((a,l)=>{if("active"==a.is_activated)return(0,e.createElement)(fn,{key:l},(0,e.createElement)(st,{widgetData:a,existingwidget:N,setexistingwidget:e=>{$(e)},widgetbuilder:t.wdkit_meta.widgetbuilder,index:l,userinfo:t?.wdkit_meta?.userinfo,credits:t?.wdkit_meta?.credits,type:"widget-browse",wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_meta:t?.wdkit_meta,wdkit_set_toast:(e,a,l,n)=>{t.wdkit_set_toast([e,a,l,n])}}))}))),(0,e.createElement)("div",{className:"wkit-wb-paginatelist"},h>1&&(0,e.createElement)("div",{className:"wkit-pagination-main"},(0,e.createElement)(ft(),{breakLabel:"...",nextLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none"},(0,e.createElement)("path",{d:"M0.412598 9.52417L4.48371 5.44417L0.412598 1.36417L1.66593 0.11084L6.99926 5.44417L1.66593 10.7775L0.412598 9.52417Z",fill:"#8991A4"})),pageRangeDisplayed:2,pageCount:h,marginPagesDisplayed:1,previousLabel:(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none"},(0,e.createElement)("path",{d:"M7.47754 1.36352L3.40643 5.44352L7.47754 9.52352L6.22421 10.7769L0.890873 5.44352L6.22421 0.110189L7.47754 1.36352Z",fill:"#8991A4"})),pageClassName:"wkit-page-item",pageLinkClassName:"wkit-pagination-item",previousClassName:"wkit-next-prev wkit-prev-pagination",previousLinkClassName:"wkit-pagination-item",nextClassName:"wkit-next-prev wkit-next-pagination",nextLinkClassName:"wkit-pagination-item",breakClassName:"wkit-page-item",breakLinkClassName:"page-link",containerClassName:"wkit-pagination",activeClassName:"active",onClick:e=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage&&(n(e.nextSelectedPage+1),V.page=e.nextSelectedPage+1)},forcePage:a-1,onPageActive:()=>{}})))),0==f&&r?.data?.widgets.length<=0&&(0,e.createElement)("div",{className:"wkit-post-not-found"},(0,e.createElement)(et,{page:"widget",link:"https://blog.wdesignkit.com/documents/manage-versions-of-a-widget/"})),1==f&&(0,e.createElement)(Qe,null)))),1==k&&(0,e.createElement)(at,null))},{__:$n}=wp.i18n,Ln=t=>{const[a,n]=(0,l.useState)(!1),[i,s]=(0,l.useState)(!1),[r,o]=(0,l.useState)(""),[c,d]=(0,l.useState)("");t.wdkit_Login_Route("settings");var m=wdkitData.WDKIT_URL,p=!0,u=!0,w=!0,g=!0,C=!0,v=!0,b=!0;t?.wdkit_meta?.Setting,t?.wdkit_meta?.Setting&&(0==t?.wdkit_meta?.Setting.elementor_builder&&(p=!1),0==t?.wdkit_meta?.Setting.gutenberg_builder&&(u=!1),0==t?.wdkit_meta?.Setting.bricks_builder&&(w=!1),0==t?.wdkit_meta?.Setting.template&&(g=!1),0==t?.wdkit_meta?.Setting.builder&&(C=!1),0==t?.wdkit_meta?.Setting.gutenberg_template&&(v=!1),0==t?.wdkit_meta?.Setting.elementor_template&&(b=!1));const h=t=>{var a="",l="";return"error_handling"==t?(l="Error Handling",a='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M9 3.5H31C33.4853 3.5 35.5 5.51472 35.5 8V21C35.5 23.4853 33.4853 25.5 31 25.5H9C6.51472 25.5 4.5 23.4853 4.5 21V8C4.5 5.51472 6.51472 3.5 9 3.5ZM3 8C3 4.68629 5.68629 2 9 2H31C34.3137 2 37 4.68629 37 8V21C37 24.3137 34.3137 27 31 27H23.25V30.25H25.4064C26.0468 30.25 26.636 30.5998 26.9427 31.162L28.8518 34.662C29.4879 35.8282 28.6438 37.25 27.3155 37.25H12.6845C11.3562 37.25 10.5121 35.8282 11.1482 34.662L13.0573 31.162C13.364 30.5998 13.9532 30.25 14.5936 30.25H16.75V27H9C5.68629 27 3 24.3137 3 21V8ZM18.25 27V31V33C18.25 33.4142 17.9142 33.75 17.5 33.75C17.0858 33.75 16.75 33.4142 16.75 33V31.75H14.5936C14.5021 31.75 14.418 31.8 14.3742 31.8803L12.4651 35.3803C12.3742 35.5469 12.4948 35.75 12.6845 35.75H27.3155C27.5052 35.75 27.6258 35.5469 27.5349 35.3803L25.6258 31.8803C25.582 31.8 25.4979 31.75 25.4064 31.75H23.25V33C23.25 33.4142 22.9142 33.75 22.5 33.75C22.0858 33.75 21.75 33.4142 21.75 33V31V27H18.25ZM20.9501 7.99875L20.525 16.5006C20.511 16.7804 20.2801 17 20 17C19.7199 17 19.489 16.7804 19.475 16.5006L19.0499 7.99875C19.0228 7.45542 19.456 7 20 7C20.544 7 20.9772 7.45541 20.9501 7.99875ZM21 20C21 20.5523 20.5523 21 20 21C19.4477 21 19 20.5523 19 20C19 19.4477 19.4477 19 20 19C20.5523 19 21 19.4477 21 20ZM14.5303 9.46967C14.8232 9.76256 14.8232 10.2374 14.5303 10.5303L11.0607 14L14.5303 17.4697C14.8232 17.7626 14.8232 18.2374 14.5303 18.5303C14.2374 18.8232 13.7626 18.8232 13.4697 18.5303L9.46967 14.5303C9.17678 14.2374 9.17678 13.7626 9.46967 13.4697L13.4697 9.46967C13.7626 9.17678 14.2374 9.17678 14.5303 9.46967ZM25.4697 10.5303C25.1768 10.2374 25.1768 9.76256 25.4697 9.46967C25.7626 9.17678 26.2374 9.17678 26.5303 9.46967L30.5303 13.4697C30.8232 13.7626 30.8232 14.2374 30.5303 14.5303L26.5303 18.5303C26.2374 18.8232 25.7626 18.8232 25.4697 18.5303C25.1768 18.2374 25.1768 17.7626 25.4697 17.4697L28.9393 14L25.4697 10.5303Z" fill="#040483"/></svg>'):"performance"==t?(l="Performance",a='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M28.3842 14.9499C28.937 15.4436 28.4887 16.012 28.0005 16.5001L21.3842 23.7176C21.1194 23.9824 20.591 23.7266 20.5005 23.7176C20.41 23.7087 19.941 23.2206 20.0005 23.2833L17.6394 20.7958L13.3842 25.0509C12.8961 25.5391 12.4885 25.4882 12.0004 25C11.5122 24.5118 11.5122 24.4882 12.0004 24L17.0005 19C17.2653 18.7352 17.6277 18.463 18.0004 18.5C18.0004 18.5 18.2928 18.6883 18.5005 19L21.0005 21.5L26.5005 15.5001C26.9887 15.012 27.4549 14.1199 28.3842 14.9499Z" fill="#040483" /><path fill-rule="evenodd" clip-rule="evenodd" d="M23.0005 15.5C23.0005 14.8096 23.5005 14.584 24.1671 14.584H27.5004C28.1908 14.584 28.7504 15.1436 28.7504 15.834V19.1673C28.7504 19.5669 28.6908 20 28.0005 20C27.3102 20 27.0005 19.8577 27.0005 19.1673V16.5H24.1671C23.5005 16.5 23.0005 16.1904 23.0005 15.5Z" fill="#040483" /><path fill-rule="evenodd" clip-rule="evenodd" d="M5.15795 5.15843C7.38206 2.93432 10.7102 2.08398 15.0002 2.08398H25.0002C29.2902 2.08398 32.6183 2.93432 34.8423 5.15843C37.0665 7.38255 37.9168 10.7107 37.9168 15.0007V25.0007C37.9168 29.2907 37.0665 32.6188 34.8423 34.8428C32.6183 37.067 29.2902 37.9173 25.0002 37.9173H15.0002C10.7102 37.9173 7.38206 37.067 5.15795 34.8428C2.93383 32.6188 2.0835 29.2907 2.0835 25.0007V15.0007C2.0835 10.7107 2.93383 7.38255 5.15795 5.15843ZM6.50024 6.5C4.50024 8.5 4.00024 10.9566 4.00024 15V25C4.00024 29.0433 4.97436 31.974 6.50024 33.5C8.02613 35.0258 10.9568 36 15.0002 36H25.0002C29.0435 36 31.9742 35.0258 33.5002 33.5C35.0261 31.974 36.0002 29.044 36.0002 25.0007V15C36.0002 10.9566 35.0261 8.02588 33.5002 6.5C31.9742 4.97412 29.0435 4 25.0002 4H15.0002C10.9568 4 8.72819 4.27206 6.50024 6.5Z" fill="#040483" /></svg>'):"white_label"==t?(l="White Label",a='<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.3748 27.8504L20 27.6341L19.6252 27.8504L8.12493 34.4851C7.95826 34.5813 7.75 34.461 7.75 34.2686V10C7.75 7.10051 10.1005 4.75 13 4.75H27C29.8995 4.75 32.25 7.10051 32.25 10V34.2686C32.25 34.461 32.0417 34.5813 31.8751 34.4851L20.3748 27.8504Z" stroke="#040483" strokeWidth="1.5" strokeLinejoin="round" /><path d="M19.7917 11.6705C19.8906 11.5215 20.1094 11.5215 20.2083 11.6705L21.5966 13.7629C21.8291 14.1134 22.1801 14.3684 22.5853 14.4812L25.0042 15.155C25.1766 15.203 25.2442 15.4111 25.133 15.5512L23.572 17.5181C23.3106 17.8476 23.1765 18.2602 23.1944 18.6804L23.3011 21.1892C23.3087 21.3679 23.1317 21.4965 22.964 21.4341L20.611 20.5573C20.2169 20.4104 19.7831 20.4104 19.389 20.5573L17.036 21.4341C16.8683 21.4965 16.6913 21.3679 16.6989 21.1892L16.8056 18.6804C16.8235 18.2602 16.6894 17.8476 16.428 17.5181L14.867 15.5512C14.7558 15.4111 14.8234 15.203 14.9958 15.155L17.4147 14.4812C17.8199 14.3684 18.1709 14.1134 18.4034 13.7629L19.7917 11.6705Z" stroke="#040483" strokeWidth="1.5" /></svg>'):"role_manager"==t&&(l="Role Manager",a='<svg xmlns="http://www.w3.org/2000/svg" width="40" height="34" viewBox="0 0 40 34" fill="none"><path d="M39.5688 18.8016L37.5859 18.1578C37.3414 17.225 36.9719 16.3336 36.4836 15.4992L37.4305 13.6414C37.5531 13.4 37.507 13.107 37.3156 12.9148L35.1984 10.7977C35.007 10.6062 34.7133 10.5594 34.4727 10.6828L32.6148 11.6297C31.7797 11.1422 30.8883 10.7727 29.9562 10.5273L29.3125 8.54688C29.2289 8.28906 28.9883 8.11484 28.7172 8.11484H25.7234C25.4523 8.11484 25.2125 8.28906 25.1281 8.54688L24.4836 10.5273C23.5516 10.7727 22.6602 11.1422 21.8258 11.6297L19.9688 10.6828C19.7273 10.5594 19.4336 10.6062 19.2422 10.7977L17.125 12.9148C16.9336 13.1062 16.8867 13.4 17.0102 13.6414L17.7016 15.0008C17.4211 14.975 17.1367 14.9617 16.85 14.9617H9.35781C4.19766 14.9617 0 19.1594 0 24.3195V31.7203C0 32.7977 0.876563 33.675 1.95469 33.675H24.25C24.6016 33.675 24.932 33.5812 25.2172 33.418C25.3328 33.5766 25.5187 33.675 25.7227 33.675H28.7164C28.9875 33.675 29.2273 33.5008 29.3117 33.243L29.9555 31.2625C30.8883 31.018 31.7797 30.6484 32.6148 30.1602L34.4727 31.107C34.7141 31.2297 35.007 31.1836 35.1992 30.9922L37.3164 28.875C37.5078 28.6836 37.5547 28.3898 37.4313 28.1484L36.4844 26.2906C36.9719 25.4563 37.3414 24.5648 37.5867 23.632L39.5695 22.9883C39.8273 22.9047 40.0016 22.6641 40.0016 22.393V19.3969C40.0008 19.1258 39.8266 18.8852 39.5688 18.8016ZM14.4828 23.7375L13.1016 26.1844L11.7211 23.7375L12.4227 16.2133H13.7828L14.4828 23.7375ZM24.25 32.4234H20.1055V27.8227C20.1055 27.4773 19.8258 27.1969 19.4797 27.1969C19.1336 27.1969 18.8539 27.4766 18.8539 27.8227V32.4234H7.34922V27.8227C7.34922 27.4773 7.06953 27.1969 6.72344 27.1969C6.37734 27.1969 6.09766 27.4766 6.09766 27.8227V32.4234H1.95312C1.56562 32.4234 1.25 32.1078 1.25 31.7203V24.3195C1.25 19.8492 4.88672 16.2133 9.35625 16.2133H11.1656L10.4562 23.8164C10.4445 23.9438 10.4719 24.0711 10.5344 24.182L12.5562 27.7656C12.6672 27.9625 12.875 28.0836 13.1008 28.0836C13.3266 28.0836 13.5344 27.9617 13.6453 27.7656L15.6672 24.182C15.7297 24.0711 15.757 23.9438 15.7453 23.8164L15.0383 16.2133H16.8477C18.6984 16.2133 20.4055 16.8375 21.7719 17.8859C21.7984 17.9133 21.8281 17.9383 21.8609 17.9609C21.8719 17.9688 21.8828 17.975 21.8937 17.9813C23.7562 19.468 24.9523 21.757 24.9523 24.3203V31.7211C24.9531 32.1086 24.6375 32.4234 24.25 32.4234ZM23.082 17.3477C24.1125 16.1461 25.6211 15.4422 27.2195 15.4422C30.225 15.4422 32.6711 17.8875 32.6711 20.893C32.6711 23.9 30.2258 26.3461 27.2195 26.3461C26.8797 26.3461 26.5398 26.3133 26.2039 26.2492V24.3188C26.2039 21.5523 24.9969 19.0625 23.082 17.3477ZM38.75 21.9383L36.8688 22.5484C36.6586 22.6164 36.5 22.7898 36.4508 23.0055C36.2156 24.043 35.8078 25.0273 35.2383 25.9305C35.1203 26.1172 35.1102 26.3523 35.2102 26.5484L36.1086 28.3109L34.6344 29.7852L32.8719 28.8867C32.675 28.7859 32.4406 28.7969 32.2539 28.9148C31.3508 29.4844 30.3664 29.8922 29.3289 30.1273C29.1141 30.1766 28.9398 30.3344 28.8719 30.5445L28.2617 32.4234H26.1766L26.1258 32.2664C26.1766 32.093 26.2039 31.9102 26.2039 31.7203V27.5195C26.5398 27.5711 26.8797 27.5984 27.2195 27.5984C30.9156 27.5984 33.9219 24.5906 33.9219 20.8937C33.9219 17.1984 30.9148 14.1914 27.2195 14.1914C25.2344 14.1914 23.3633 15.0727 22.0953 16.5758C21.2352 15.9906 20.2719 15.5453 19.2406 15.2719C19.2359 15.2617 19.232 15.2516 19.2273 15.2414L18.3305 13.4773L19.8047 12.0031L21.568 12.9016C21.7648 13.0016 21.9992 12.9906 22.1852 12.8734C23.0883 12.3047 24.0719 11.8961 25.1086 11.6609C25.3234 11.6125 25.4961 11.4547 25.5648 11.2453L26.1773 9.36484H28.2625L28.8727 11.2437C28.9406 11.4539 29.1141 11.6125 29.3297 11.6609C30.3672 11.8961 31.3516 12.3039 32.2547 12.8734C32.4414 12.9914 32.6766 13.0016 32.8727 12.9016L34.6352 12.0031L36.1094 13.4773L35.2109 15.2398C35.1109 15.4367 35.1211 15.6711 35.2391 15.8578C35.8086 16.7609 36.2164 17.7453 36.4516 18.7828C36.5008 18.9984 36.6594 19.1719 36.8695 19.2398L38.7508 19.85V21.9383H38.75ZM13.1016 13.9078C16.8453 13.9078 19.8906 10.8617 19.8906 7.11719C19.8906 3.37344 16.8453 0.328125 13.1016 0.328125C9.35859 0.328125 6.3125 3.37344 6.3125 7.11719C6.3125 10.8617 9.35859 13.9078 13.1016 13.9078ZM13.1016 1.57969C16.1547 1.57969 18.6391 4.06406 18.6391 7.11719C18.6391 10.1719 16.1547 12.657 13.1016 12.657C10.0484 12.657 7.56406 10.1719 7.56406 7.11719C7.56406 4.06328 10.0484 1.57969 13.1016 1.57969Z" fill="#040483"/></svg>'),(0,e.createElement)("div",{className:"wkit-mange-boxed-inner"},(0,e.createElement)("div",{className:"wkit-settings-boxed"},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-icon-bg",dangerouslySetInnerHTML:{__html:a}}),(0,e.createElement)("div",{className:"wkit-setting-card-header"},(0,e.createElement)("h3",{className:"settings-boxed-heading"},l),(0,e.createElement)("span",{className:"wkit-comming-soon-pin"},"Coming Soon"))),(0,e.createElement)("div",{className:"wkit-setting-panel-ed"},(0,e.createElement)("button",{type:"submit",className:"wkit-setting-btn-enable-disble btn-opacity"},"Enable"))))},_=a=>{var l="",i="";return"builder"==a?(i="Widget Builder",l=(0,e.createElement)("svg",{width:"36",height:"40",viewBox:"0 0 36 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M34.4703 28.8022H34.2359C34.1236 28.4635 33.9866 28.1333 33.8255 27.8135L33.9927 27.6456C34.2256 27.4125 34.354 27.1024 34.354 26.7716C34.354 26.4414 34.2255 26.1314 33.993 25.8988L33.3207 25.2265V18.1495C33.3207 17.2834 32.6152 16.579 31.7482 16.579H30.5494L31.4887 6.10386C31.5122 5.83929 31.5476 5.43979 31.1625 5.04004L28.9182 2.71248C28.6893 2.47079 28.5352 2.41798 28.2172 2.39023L27.3417 2.31167C27.3412 2.31161 27.3407 2.31123 27.3402 2.31123C27.3396 2.31117 27.3392 2.31148 27.3386 2.31142L8.61791 0.631168C8.15222 0.58598 7.69447 0.730668 7.33278 1.03279C6.97084 1.33492 6.74866 1.75911 6.70747 2.22636L5.45322 16.1927H1.76759C1.76484 16.1927 1.76209 16.1927 1.75934 16.1927C1.33822 16.1927 0.959781 16.3386 0.692781 16.6041C0.439781 16.8562 0.306094 17.19 0.306094 17.5703L0.292969 33.8169C0.292969 35.048 0.892656 36.5035 3.66609 36.5922C3.73672 36.6199 3.81241 36.638 3.89278 36.638H21.2118L22.2329 37.6591C22.6977 38.1242 23.5134 38.1236 23.9788 37.6591L24.1458 37.4919C24.4641 37.6524 24.7943 37.7897 25.1342 37.902V38.1389C25.1342 38.8194 25.689 39.3736 26.3711 39.3736H28.4112C29.0923 39.3736 29.6463 38.8194 29.6463 38.1389V37.902C29.9868 37.7897 30.3173 37.653 30.6347 37.4925L30.8035 37.6615C31.2875 38.14 32.0703 38.1394 32.5494 37.6591L33.9926 36.2162C34.2255 35.9831 34.3539 35.673 34.3539 35.3428C34.3539 35.0125 34.2254 34.7025 33.9941 34.4712L33.8253 34.3015C33.9865 33.9811 34.1238 33.6509 34.2358 33.3122H34.4702C35.1522 33.3122 35.7073 32.758 35.7073 32.0774V30.037C35.7074 29.3565 35.1523 28.8022 34.4703 28.8022ZM32.0707 18.1495V24.1644C31.6407 24.0205 31.1465 24.1143 30.8011 24.4554L30.6348 24.622C30.3174 24.4615 29.9869 24.3247 29.6463 24.2124V23.9762C29.6463 23.2951 29.0925 22.7409 28.4113 22.7409H26.3712C25.6891 22.7409 25.1343 23.295 25.1343 23.9762V24.2124C24.7943 24.3247 24.4641 24.462 24.1458 24.6226L23.9789 24.4554C23.4977 23.975 22.7148 23.9744 22.233 24.4554L20.7895 25.8989C20.3079 26.3804 20.3079 27.1635 20.7895 27.645L20.9565 27.8123C20.796 28.1309 20.6589 28.4617 20.5466 28.8023H20.3101C19.6292 28.8023 19.0753 29.3565 19.0753 30.037V32.0774C19.0753 32.758 19.6292 33.3122 20.3101 33.3122H20.5466C20.6589 33.6527 20.7959 33.9835 20.9568 34.3022L20.7895 34.47C20.5374 34.722 20.4208 35.0569 20.4329 35.388H4.51784V22.3374C4.51784 22.2922 4.55597 22.2538 4.60116 22.2538H18.1867C18.4125 22.2538 18.6209 22.1317 18.7317 21.9352L20.6867 18.4549L20.8011 18.2425C20.8758 18.1006 21.0013 17.8629 21.0867 17.829H31.748C31.923 17.829 32.0707 17.9759 32.0707 18.1495ZM30.2518 5.89761C30.2505 5.92661 30.2466 5.95773 30.2435 5.99279L30.2426 6.00342L27.655 5.76942L27.8502 3.61242L28.0677 3.63198L30.2518 5.89761ZM7.95259 2.33711C7.96447 2.20254 8.02891 2.08017 8.13384 1.99223C8.23884 1.90467 8.37159 1.86192 8.50497 1.87598L26.605 3.50067L26.4023 5.74348C26.3748 6.05323 26.4703 6.35567 26.6712 6.59461C26.8713 6.83323 27.1521 6.97942 27.46 7.00692L30.1309 7.2486L29.2942 16.579H21.0867C20.2652 16.579 19.9222 17.229 19.6954 17.6594L17.8207 21.0038H6.27634L7.95259 2.33711ZM1.54303 33.8169L1.55616 17.5703C1.55616 17.5474 1.55859 17.5062 1.57478 17.49C1.59247 17.472 1.65416 17.4525 1.76491 17.4427H5.34103L5.02122 21.0039H4.60116C3.86597 21.0039 3.26784 21.602 3.26784 22.3375V35.3169C1.54872 35.1395 1.54303 34.2634 1.54303 33.8169ZM33.7683 32.0622C33.483 32.0622 33.234 32.255 33.1632 32.5315C33.0225 33.0778 32.8046 33.6033 32.515 34.094C32.3703 34.3388 32.4097 34.6507 32.6102 34.8521L33.1091 35.3319L31.6855 36.7754L31.1877 36.2773C30.9854 36.0753 30.6717 36.0356 30.4257 36.1821C29.9442 36.469 29.419 36.6869 28.8653 36.8291C28.5892 36.9005 28.3963 37.1495 28.3963 37.4346L28.4113 38.1235L26.3843 38.1388V37.4344C26.3843 37.1494 26.1914 36.9004 25.9155 36.8295C25.3638 36.6867 24.8383 36.4689 24.354 36.1814C24.2548 36.1227 24.1446 36.0941 24.0353 36.0941C23.8736 36.0941 23.7137 36.157 23.5932 36.2772L23.1168 36.7753L21.9458 35.6202C21.9197 35.5885 21.8917 35.5614 21.8598 35.5354L21.6746 35.3526L22.1727 34.8521C22.3738 34.6501 22.4125 34.337 22.2667 34.0922C21.9792 33.6089 21.7616 33.0839 21.62 32.5315C21.5488 32.2557 21.2998 32.0622 21.0145 32.0622L20.3254 32.0774L20.3102 30.0523H21.0145C21.2998 30.0523 21.5489 29.8594 21.62 29.5829C21.7617 29.0312 21.9795 28.5057 22.2673 28.0198C22.4128 27.7744 22.3735 27.4613 22.1715 27.2593L21.6734 26.7826L23.0952 25.3391L23.5933 25.8372C23.795 26.0386 24.1084 26.0789 24.3541 25.933C24.8384 25.6455 25.3639 25.4276 25.9157 25.2848C26.1915 25.214 26.3844 24.965 26.3844 24.6799L26.3713 23.9909L28.3964 23.9762V24.68C28.3964 24.965 28.5893 25.214 28.8655 25.2855C29.419 25.4277 29.9443 25.6456 30.4258 25.9325C30.6718 26.079 30.9855 26.0387 31.1878 25.8373L31.6657 25.3392L32.2377 25.9034C32.2511 25.918 32.2646 25.931 32.2793 25.9444L33.1083 26.762L32.6105 27.2619C32.4097 27.4639 32.3703 27.7758 32.515 28.0205C32.8043 28.5107 33.0222 29.0368 33.1632 29.583C33.2343 29.8595 33.4833 30.0524 33.7684 30.0524L34.4575 30.0372L34.4703 32.0623L33.7683 32.0622Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M27.3916 26.9941C25.1516 26.9941 23.3291 28.8166 23.3291 31.0566C23.3291 33.2966 25.1516 35.1191 27.3916 35.1191C29.6316 35.1191 31.4541 33.2966 31.4541 31.0566C31.4541 28.8166 29.6316 26.9941 27.3916 26.9941ZM27.3916 33.8691C25.8407 33.8691 24.5791 32.6075 24.5791 31.0566C24.5791 29.5058 25.8407 28.2441 27.3916 28.2441C28.9425 28.2441 30.2041 29.5058 30.2041 31.0566C30.2041 32.6075 28.9425 33.8691 27.3916 33.8691Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M11.5956 9.24347L24.9903 10.4458C25.0093 10.4473 25.0282 10.4483 25.0468 10.4483C25.3669 10.4483 25.6394 10.2038 25.6687 9.87916C25.6995 9.53553 25.446 9.2316 25.102 9.20078L11.7073 7.99841C11.3624 7.9691 11.0597 8.22147 11.0289 8.5651C10.9981 8.90872 11.2517 9.21266 11.5956 9.24347Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M11.2758 12.7987L24.6724 14.0007C24.6913 14.0022 24.7102 14.0032 24.7288 14.0032C25.049 14.0032 25.3215 13.7587 25.3508 13.434C25.3816 13.0901 25.128 12.7865 24.7841 12.7557L11.3875 11.5536C11.0408 11.5277 10.7402 11.7767 10.7091 12.1203C10.6783 12.4642 10.9318 12.7679 11.2758 12.7987Z",fill:"#040483"}))):"features_enable"==a?(i="Features Manager",l=(0,e.createElement)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M11.6667 7.49942C11.6687 6.87552 11.4956 6.26358 11.167 5.7332C10.8385 5.20282 10.3676 4.77529 9.80812 4.49926C9.2486 4.22323 8.62284 4.10977 8.00202 4.17178C7.38121 4.2338 6.79026 4.4688 6.2964 4.85006C5.80254 5.23132 5.4256 5.74353 5.20844 6.32843C4.99129 6.91332 4.94265 7.54742 5.06805 8.15859C5.19345 8.76976 5.48786 9.33347 5.9178 9.7856C6.34773 10.2377 6.89592 10.5601 7.50001 10.7161V16.7828C6.79387 16.9747 6.17049 17.3936 5.72606 17.9749C5.28163 18.5562 5.04084 19.2677 5.04084 19.9994C5.04084 20.7312 5.28163 21.4426 5.72606 22.0239C6.17049 22.6053 6.79387 23.0242 7.50001 23.2161V29.2828C6.71446 29.4856 6.02985 29.9679 5.57451 30.6394C5.11916 31.3109 4.92435 32.1254 5.02658 32.9303C5.1288 33.7351 5.52106 34.475 6.12981 35.0114C6.73857 35.5477 7.52203 35.8436 8.33334 35.8436C9.14465 35.8436 9.92811 35.5477 10.5369 35.0114C11.1456 34.475 11.5379 33.7351 11.6401 32.9303C11.7423 32.1254 11.5475 31.3109 11.0922 30.6394C10.6368 29.9679 9.95222 29.4856 9.16667 29.2828V23.2161C9.87282 23.0242 10.4962 22.6053 10.9406 22.0239C11.3851 21.4426 11.6258 20.7312 11.6258 19.9994C11.6258 19.2677 11.3851 18.5562 10.9406 17.9749C10.4962 17.3936 9.87282 16.9747 9.16667 16.7828V10.7161C9.8804 10.5318 10.5129 10.1161 10.9653 9.53412C11.4176 8.9521 11.6643 8.23655 11.6667 7.49942ZM6.66667 7.49942C6.66667 7.16979 6.76442 6.84755 6.94756 6.57347C7.13069 6.29939 7.39099 6.08577 7.69554 5.95962C8.00008 5.83348 8.33519 5.80047 8.65849 5.86478C8.98179 5.92909 9.27876 6.08782 9.51185 6.32091C9.74494 6.554 9.90368 6.85097 9.96798 7.17427C10.0323 7.49757 9.99929 7.83269 9.87314 8.13723C9.74699 8.44177 9.53337 8.70207 9.25929 8.88521C8.98521 9.06834 8.66298 9.16609 8.33334 9.16609C7.89131 9.16609 7.46739 8.99049 7.15483 8.67793C6.84227 8.36537 6.66667 7.94145 6.66667 7.49942ZM10 32.4994C10 32.8291 9.90226 33.1513 9.71912 33.4254C9.53599 33.6995 9.27569 33.9131 8.97115 34.0392C8.6666 34.1654 8.33149 34.1984 8.00819 34.1341C7.68489 34.0698 7.38792 33.911 7.15483 33.6779C6.92174 33.4448 6.76301 33.1479 6.6987 32.8246C6.63439 32.5013 6.6674 32.1662 6.79354 31.8616C6.91969 31.5571 7.13331 31.2968 7.40739 31.1136C7.68147 30.9305 8.00371 30.8328 8.33334 30.8328C8.77537 30.8328 9.19929 31.0084 9.51185 31.3209C9.82441 31.6335 10 32.0574 10 32.4994ZM10 19.9994C10 20.3291 9.90226 20.6513 9.71912 20.9254C9.53599 21.1995 9.27569 21.4131 8.97115 21.5392C8.6666 21.6654 8.33149 21.6984 8.00819 21.6341C7.68489 21.5698 7.38792 21.411 7.15483 21.1779C6.92174 20.9448 6.76301 20.6479 6.6987 20.3246C6.63439 20.0013 6.6674 19.6662 6.79354 19.3616C6.91969 19.0571 7.13331 18.7968 7.40739 18.6136C7.68147 18.4305 8.00371 18.3328 8.33334 18.3328C8.77537 18.3328 9.19929 18.5084 9.51185 18.8209C9.82441 19.1335 10 19.5574 10 19.9994Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M34.167 4.99902H15.0003C14.7793 4.99902 14.5673 5.08682 14.4111 5.2431C14.2548 5.39938 14.167 5.61134 14.167 5.83236C14.167 6.05337 14.2548 6.26533 14.4111 6.42161C14.5673 6.57789 14.7793 6.66569 15.0003 6.66569H34.167C34.388 6.66569 34.6 6.57789 34.7563 6.42161C34.9125 6.26533 35.0003 6.05337 35.0003 5.83236C35.0003 5.61134 34.9125 5.39938 34.7563 5.2431C34.6 5.08682 34.388 4.99902 34.167 4.99902Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M15.0003 9.99967H25.8337C26.0547 9.99967 26.2666 9.91188 26.4229 9.7556C26.5792 9.59932 26.667 9.38735 26.667 9.16634C26.667 8.94533 26.5792 8.73337 26.4229 8.57709C26.2666 8.42081 26.0547 8.33301 25.8337 8.33301H15.0003C14.7793 8.33301 14.5673 8.42081 14.4111 8.57709C14.2548 8.73337 14.167 8.94533 14.167 9.16634C14.167 9.38735 14.2548 9.59932 14.4111 9.7556C14.5673 9.91188 14.7793 9.99967 15.0003 9.99967Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M35.0003 30.8324C35.0003 30.6113 34.9125 30.3994 34.7563 30.2431C34.6 30.0868 34.388 29.999 34.167 29.999H15.0003C14.7793 29.999 14.5673 30.0868 14.4111 30.2431C14.2548 30.3994 14.167 30.6113 14.167 30.8324C14.167 31.0534 14.2548 31.2653 14.4111 31.4216C14.5673 31.5779 14.7793 31.6657 15.0003 31.6657H34.167C34.388 31.6657 34.6 31.5779 34.7563 31.4216C34.9125 31.2653 35.0003 31.0534 35.0003 30.8324Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M15.0003 33.333C14.7793 33.333 14.5673 33.4208 14.4111 33.5771C14.2548 33.7334 14.167 33.9453 14.167 34.1663C14.167 34.3874 14.2548 34.5993 14.4111 34.7556C14.5673 34.9119 14.7793 34.9997 15.0003 34.9997H25.8337C26.0547 34.9997 26.2666 34.9119 26.4229 34.7556C26.5792 34.5993 26.667 34.3874 26.667 34.1663C26.667 33.9453 26.5792 33.7334 26.4229 33.5771C26.2666 33.4208 26.0547 33.333 25.8337 33.333H15.0003Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M34.167 17.499H15.0003C14.7793 17.499 14.5673 17.5868 14.4111 17.7431C14.2548 17.8994 14.167 18.1113 14.167 18.3324C14.167 18.5534 14.2548 18.7653 14.4111 18.9216C14.5673 19.0779 14.7793 19.1657 15.0003 19.1657H34.167C34.388 19.1657 34.6 19.0779 34.7563 18.9216C34.9125 18.7653 35.0003 18.5534 35.0003 18.3324C35.0003 18.1113 34.9125 17.8994 34.7563 17.7431C34.6 17.5868 34.388 17.499 34.167 17.499Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M15.0003 22.4997H25.8337C26.0547 22.4997 26.2666 22.4119 26.4229 22.2556C26.5792 22.0993 26.667 21.8874 26.667 21.6663C26.667 21.4453 26.5792 21.2334 26.4229 21.0771C26.2666 20.9208 26.0547 20.833 25.8337 20.833H15.0003C14.7793 20.833 14.5673 20.9208 14.4111 21.0771C14.2548 21.2334 14.167 21.4453 14.167 21.6663C14.167 21.8874 14.2548 22.0993 14.4111 22.2556C14.5673 22.4119 14.7793 22.4997 15.0003 22.4997Z",fill:"#040483"}))):"template"==a&&(i="Design Template",l=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.870193 5.03571C0.870193 2.60302 2.84228 0.630935 5.27497 0.630935H27.2036C29.6363 0.630935 31.6084 2.60302 31.6084 5.03571V9.60418V26.9643C31.6084 29.397 29.6363 31.3691 27.2036 31.3691H5.27497C2.84228 31.3691 0.870193 29.397 0.870193 26.9643V9.60418V5.03571ZM5.27497 2.13094C3.6707 2.13094 2.37019 3.43145 2.37019 5.03571V8.85418H30.1084V5.03571C30.1084 3.43145 28.8079 2.13094 27.2036 2.13094H5.27497ZM30.1084 10.3542H2.37019V26.9643C2.37019 28.5686 3.6707 29.8691 5.27497 29.8691H27.2036C28.8079 29.8691 30.1084 28.5686 30.1084 26.9643V10.3542ZM4.52497 16C4.52497 15.5858 4.86075 15.25 5.27497 15.25L27.2036 15.25C27.6178 15.25 27.9536 15.5858 27.9536 16C27.9536 16.4142 27.6178 16.75 27.2036 16.75L5.27497 16.75C4.86075 16.75 4.52497 16.4142 4.52497 16ZM5.28649 5.94418C5.28649 5.43956 5.69556 5.03049 6.20018 5.03049C6.7048 5.03049 7.11387 5.43956 7.11387 5.94418C7.11387 6.4488 6.7048 6.85788 6.20018 6.85788C5.69556 6.85788 5.28649 6.4488 5.28649 5.94418ZM9.85532 5.03049C9.3507 5.03049 8.94162 5.43956 8.94162 5.94418C8.94162 6.4488 9.3507 6.85788 9.85532 6.85788C10.3599 6.85788 10.769 6.4488 10.769 5.94418C10.769 5.43956 10.3599 5.03049 9.85532 5.03049ZM6.4286 20.1086C5.79783 20.1086 5.28649 20.62 5.28649 21.2507V23.535C5.28649 24.1657 5.79783 24.6771 6.4286 24.6771H8.71284C9.34361 24.6771 9.85495 24.1657 9.85495 23.535V21.2507C9.85495 20.62 9.34361 20.1086 8.71284 20.1086H6.4286ZM15.0706 20.1086C14.4398 20.1086 13.9285 20.62 13.9285 21.2507V23.535C13.9285 24.1657 14.4398 24.6771 15.0706 24.6771H17.3549C17.9856 24.6771 18.497 24.1657 18.497 23.535V21.2507C18.497 20.62 17.9856 20.1086 17.3549 20.1086H15.0706ZM22.6467 21.2507C22.6467 20.62 23.158 20.1086 23.7888 20.1086H26.073C26.7038 20.1086 27.2151 20.62 27.2151 21.2507V23.535C27.2151 24.1657 26.7038 24.6771 26.073 24.6771H23.7888C23.158 24.6771 22.6467 24.1657 22.6467 23.535V21.2507ZM13.5104 5.03049C13.0058 5.03049 12.5968 5.43956 12.5968 5.94418C12.5968 6.4488 13.0058 6.85788 13.5104 6.85788C14.0151 6.85788 14.4241 6.4488 14.4241 5.94418C14.4241 5.43956 14.0151 5.03049 13.5104 5.03049Z",fill:"#040483"}))),(0,e.createElement)("div",{className:"wkit-mange-boxed-inner"},(0,e.createElement)("div",{className:"wkit-settings-boxed "+("builder"!==a&&"template"!==a||0!=t?.wdkit_meta?.Setting?.[a]?"":"wkit-disable-card")},(0,e.createElement)("div",null,(0,e.createElement)("div",{className:"wkit-icon-bg"},l),(0,e.createElement)("h3",{className:"settings-boxed-heading"},i)),(0,e.createElement)("div",{className:"wkit-setting-panel-ed"},(0,e.createElement)("button",{type:"submit",className:"wkit-setting-icon-bg wkit-btn-class",onClick:()=>{o(a),d(i),n(!0)}},(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6.5624 9.96484C6.5624 8.10156 8.10147 6.52734 9.9999 6.52734C11.8983 6.52734 13.4374 8.10156 13.4374 9.96484C13.4374 11.8984 11.8983 13.4375 9.9999 13.4375C8.10147 13.4375 6.5624 11.8984 6.5624 9.96484ZM9.9999 7.77734C8.79287 7.77734 7.8124 8.79297 7.8124 9.96484C7.8124 11.207 8.79287 12.1523 9.9999 12.1523C11.2069 12.1523 12.1874 11.207 12.1874 9.96484C12.1874 8.79297 11.2069 7.77734 9.9999 7.77734ZM2.56514 9.00781L0.989748 7.57031C0.555373 7.17578 0.455373 6.53125 0.749123 6.02344L1.93037 3.97656C2.22412 3.46797 2.83233 3.23242 3.39209 3.41094L5.42178 4.05859C5.94522 3.65469 6.52334 3.31875 7.14053 3.06367L7.59756 0.982812C7.72256 0.408984 8.23037 0 8.82022 0H11.1796C11.7694 0 12.2772 0.408984 12.4022 0.982812L12.8593 3.06367C13.4413 3.31875 14.0546 3.65469 14.578 4.05859L16.6093 3.41094C17.1679 3.23242 17.7772 3.46797 18.0702 3.97656L19.2499 6.02344C19.5429 6.53125 19.4452 7.17578 19.0116 7.57031L17.4335 9.00781C17.4765 9.33203 17.4999 9.66406 17.4999 9.96484C17.4999 10.3359 17.4765 10.668 17.4335 10.9922L19.0116 12.4297C19.4452 12.8242 19.5429 13.4687 19.2499 13.9766L18.0702 16.0234C17.7772 16.5313 17.1679 16.7656 16.6093 16.5898L14.578 15.9414C14.0546 16.3438 13.4413 16.6797 12.8593 16.9375L12.4022 19.0156C12.2772 19.5898 11.7694 20 11.1796 20H8.82022C8.23037 20 7.72256 19.5898 7.59756 19.0156L7.14053 16.9375C6.52334 16.6797 5.94522 16.3438 5.42178 15.9414L3.39209 16.5898C2.83233 16.7656 2.22412 16.5313 1.93037 16.0234L0.749123 13.9766C0.455373 13.4687 0.555373 12.8242 0.989748 12.4297L2.56514 10.9922C2.52217 10.668 2.4999 10.3359 2.4999 9.96484C2.4999 9.66406 2.52217 9.33203 2.56514 9.00781ZM6.1874 5.04687L5.66787 5.44922L3.01279 4.60156L1.83154 6.64844L3.88975 8.52344L3.8042 9.17188C3.76826 9.44141 3.7499 9.71875 3.7499 9.96484C3.7499 10.2813 3.76826 10.5586 3.8042 10.8281L3.88975 11.4766L1.83154 13.3516L3.01279 15.3984L5.66787 14.5508L6.1874 14.9531C6.621 15.2891 7.10537 15.5703 7.61709 15.7461L8.22256 16.0312L8.82022 18.75H11.1796L11.7772 16.0312L12.3476 15.7461C12.8944 15.5703 13.3788 15.2891 13.8124 14.9531L14.3319 14.5508L16.9882 15.3984L18.1679 13.3516L16.1093 11.4766L16.1952 10.8281C16.2304 10.5586 16.2499 10.2812 16.2499 10C16.2499 9.71875 16.2304 9.44141 16.1952 9.17188L16.1093 8.52344L18.1679 6.64844L16.9882 4.60156L14.3319 5.44922L13.8124 5.04687C13.3788 4.71094 12.8944 4.42969 12.3476 4.21875L11.7772 3.96875L11.1796 1.25H8.82022L8.22256 3.96875L7.61709 4.21875C7.10537 4.42969 6.621 4.71094 6.1874 5.04687Z",fill:"white"})),(0,e.createElement)("span",null,"Customize")))))},k=(e,a)=>{s(!0);let l=Object.assign({},t?.wdkit_meta?.Setting,{[e]:a}),n=Object.assign({},t?.wdkit_meta,{Setting:l});t.wdkit_set_meta(n);let i={type:"wkit_setting_panel",event:"set",data:JSON.stringify(l)};je(i).then((async e=>{if(1==e?.success&&e?.data){let e=Object.assign({},t?.wdkit_meta,{Setting:l});s(!1),t.wdkit_set_meta(e)}}))};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(rt,{title:"Settings",svg:(0,e.createElement)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M6 31.5V21",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M6 15V4.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M18 31.5V18",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M18 12V4.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M30 31.5V24",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M30 18V4.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M1.5 21H10.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M25.5 24H34.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M13.5 12H22.5",stroke:"#040483",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}))}),(0,e.createElement)("div",{className:"wkit-settings-boxed-wrapper"},_("features_enable"),_("template"),_("builder"),h("role_manager"),h("error_handling"),h("performance"),h("white_label"),(0,e.createElement)(ot,{OpenPopup:a,heading:c,closePopup:()=>n(!1),body:()=>{return"builder"==(t=[r])?(0,e.createElement)("div",{className:"popup-body wdkit-tooltip"},(0,e.createElement)("div",{className:"wkit-builder-wrapper"},(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("img",{src:m+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},"Elementor Widget Builder"),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},"Enable/Disable Elementor widget builder and all Elementor widgets."))),(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("elementor_builder",e.target.checked),checked:p,disabled:i}),(0,e.createElement)("span",{className:"slider round"})))),(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("img",{src:m+"assets/images/wb-svg/gutenberg.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},"Gutenberg Widget Builder"),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},"Enable/Disable Gutenberg Widget builder and all Gutenberg Widgets."))),(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("gutenberg_builder",e.target.checked),checked:u,disabled:i}),(0,e.createElement)("span",{className:"slider round"}))))),(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("img",{src:m+"assets/images/wb-svg/bricks.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},"Bricks Widget Builder"),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},"Enable/Disable Bricks Widget builder and all Bricks Widgets."))),(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("bricks_builder",e.target.checked),checked:w,disabled:i}),(0,e.createElement)("span",{className:"slider round"}))))))):"features_enable"==t?(0,e.createElement)("div",{className:"popup-body wdkit-tooltip"},(0,e.createElement)("div",{className:"wkit-builder-wrapper"},(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-features-icon-bg"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("g",{clipPath:"url(#clip0_8689_45666)"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 2H2L2 6H22V2ZM0 6V8V22C0 23.1046 0.89543 24 2 24H22C23.1046 24 24 23.1046 24 22V8V6V2C24 0.895431 23.1046 0 22 0H2C0.895431 0 0 0.89543 0 2V6ZM2 22H22V8H2L2 22ZM4 11.5C4 11.2239 4.22386 11 4.5 11H19.5C19.7761 11 20 11.2239 20 11.5V12.5C20 12.7761 19.7761 13 19.5 13H4.5C4.22386 13 4 12.7761 4 12.5V11.5ZM5 15C4.44772 15 4 15.4477 4 16V18C4 18.5523 4.44772 19 5 19H7C7.55228 19 8 18.5523 8 18V16C8 15.4477 7.55228 15 7 15H5ZM10 16C10 15.4477 10.4477 15 11 15H13C13.5523 15 14 15.4477 14 16V18C14 18.5523 13.5523 19 13 19H11C10.4477 19 10 18.5523 10 18V16ZM17 15C16.4477 15 16 15.4477 16 16V18C16 18.5523 16.4477 19 17 19H19C19.5523 19 20 18.5523 20 18V16C20 15.4477 19.5523 15 19 15H17ZM5 5C5.55228 5 6 4.55228 6 4C6 3.44772 5.55228 3 5 3C4.44772 3 4 3.44772 4 4C4 4.55228 4.44772 5 5 5ZM10 4C10 4.55228 9.55229 5 9 5C8.44771 5 8 4.55228 8 4C8 3.44772 8.44771 3 9 3C9.55229 3 10 3.44772 10 4ZM13 5C13.5523 5 14 4.55228 14 4C14 3.44772 13.5523 3 13 3C12.4477 3 12 3.44772 12 4C12 4.55228 12.4477 5 13 5Z",fill:"#040483"})),(0,e.createElement)("defs",null,(0,e.createElement)("clipPath",{id:"clip0_8689_45666"},(0,e.createElement)("rect",{width:"24",height:"24",fill:"white"}))))),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},"Design Templates"),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},"Enable/Disable Our Templates Feature, which includes, Templates Download, Templates Upload, Workspace and everything related to Templates features."))),(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("template",e.target.checked),checked:g,disabled:i}),(0,e.createElement)("span",{className:"slider round"})))),(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-features-icon-bg"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8535 0.582239C11.5422 0.10019 12.4587 0.100192 13.1474 0.582239L12.0005 2.2207L3.66798 8.05344L2.52106 6.41497L10.8535 0.582239ZM2.83294 13.6967L2.41859 13.3652C1.37643 12.5314 1.4277 10.9303 2.52106 10.165L2.83294 9.94666L2.41859 9.61518C1.37643 8.78145 1.4277 7.18032 2.52106 6.41497L3.66798 8.05344L7.62516 11.2192L10.7511 13.7199C11.4815 14.3043 12.5194 14.3043 13.2499 13.7199L16.3758 11.2192L20.3329 8.05344L12.0005 2.2207L13.1474 0.582239L21.4799 6.41497C22.5732 7.18033 22.6245 8.78145 21.5823 9.61518L21.168 9.94666L21.4799 10.165C22.5732 10.9303 22.6245 12.5315 21.5823 13.3652L21.168 13.6967L21.4799 13.915C22.5732 14.6803 22.6245 16.2815 21.5823 17.1152L17.6252 20.2809L14.4992 22.7816C13.0384 23.9503 10.9626 23.9503 9.50168 22.7816L6.37577 20.2809L2.41859 17.1152C1.37643 16.2815 1.4277 14.6803 2.52106 13.915L2.83294 13.6967ZM4.46048 14.9987L3.66798 15.5534L7.62516 18.7192L10.7511 21.2199C11.4815 21.8043 12.5194 21.8043 13.2499 21.2199L16.3758 18.7192L20.3329 15.5534L19.5404 14.9987L17.6252 16.5309L14.4992 19.0316C13.0384 20.2003 10.9626 20.2003 9.50168 19.0316L6.37577 16.5309L4.46048 14.9987ZM17.6252 12.7809L19.5404 11.2487L20.3329 11.8034L16.3758 14.9692L13.2499 17.4699C12.5194 18.0543 11.4815 18.0543 10.7511 17.4699L7.62516 14.9692L3.66798 11.8034L4.46048 11.2487L6.37577 12.7809L9.50168 15.2816C10.9626 16.4503 13.0384 16.4503 14.4992 15.2816L17.6252 12.7809Z",fill:"#040483"}))),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},"Widget Builder"),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},"Enable/Disable Widget builder Feature, Which include your No Code Widgets builder, Download/Upload of Widgets for Elementor and Gutenberg."))),(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("builder",e.target.checked),checked:C,disabled:i}),(0,e.createElement)("span",{className:"slider round"}))))))):"template"==t?(0,e.createElement)("div",{className:"popup-body wdkit-tooltip"},(0,e.createElement)("div",{className:"wkit-builder-wrapper"},(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("img",{src:m+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},$n("Elementor Page Builder")),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},$n("Enable/Disable Elementor Page builder and all Elementor widgets.")))),(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("elementor_template",e.target.checked),checked:b,disabled:i}),(0,e.createElement)("span",{className:"slider round"})))),(0,e.createElement)("div",{className:"wkit-builder-items"},(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("img",{src:m+"assets/images/wb-svg/gutenberg.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,e.createElement)("span",{className:"wkit-popup-plugin-name"},$n("Gutenberg Page Builder")),(0,e.createElement)("div",{className:"tooltip-text-hover"},(0,e.createElement)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7 0C3.13359 0 0 3.16841 0 7.07778C0 10.9871 3.13359 14.1556 7 14.1556C10.8664 14.1556 14 10.9871 14 7.07778C14 3.16841 10.8664 0 7 0ZM7 13.2708C3.62305 13.2708 0.875 10.4923 0.875 7.07778C0.875 3.6633 3.62305 0.884722 7 0.884722C10.377 0.884722 13.125 3.6633 13.125 7.07778C13.125 10.4923 10.377 13.2708 7 13.2708ZM7 5.08715C7.3623 5.08715 7.65625 4.79022 7.65625 4.42361C7.65625 4.05728 7.3623 3.76007 7 3.76007C6.6377 3.76007 6.34375 4.0559 6.34375 4.42361C6.34375 4.79132 6.63633 5.08715 7 5.08715ZM8.3125 9.73195H7.4375V6.63542C7.4375 6.39212 7.24062 6.19306 7 6.19306H6.125C5.88438 6.19306 5.6875 6.39212 5.6875 6.63542C5.6875 6.87872 5.88438 7.07778 6.125 7.07778H6.5625V9.73195H5.6875C5.44688 9.73195 5.25 9.93101 5.25 10.1743C5.25 10.4176 5.44688 10.6167 5.6875 10.6167H8.3125C8.55411 10.6167 8.75 10.4186 8.75 10.1743C8.75 9.93101 8.55313 9.73195 8.3125 9.73195Z",fill:"black"})),(0,e.createElement)("span",{className:"toolTip"},$n("Enable/Disable Gutenberg Page builder and all Gutenberg Widgets.")))),(0,e.createElement)("div",{className:"manage-builder-popup-item"},(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>k("gutenberg_template",e.target.checked),checked:v,disabled:i}),(0,e.createElement)("span",{className:"slider round"}))))))):void 0;var t}})))},{__:xn}=wp.i18n,Hn=()=>{const[t,a]=(0,l.useState)(wdkitData.WDKIT_URL),n=G();return(0,l.useEffect)((()=>{n("*")})),(0,e.createElement)("div",{className:"wkit-post-notFound"},(0,e.createElement)("div",{className:"wkit-post-notFound-content"},(0,e.createElement)("img",{src:t+"assets/images/jpg/empty-dog.png"}),(0,e.createElement)("span",null,xn("Page not Found"))))},Mn=window.wp.editPost,{Component:Vn,Fragment:Dn}=wp.element,{__:Sn}=wp.i18n,Zn=class extends Vn{constructor(e){super(e),this.state={copiedCss:{},checkCopyOrNot:!1}}render(){return(0,e.createElement)(Dn,null,(0,e.createElement)(Mn.PluginBlockSettingsMenuItem,{icon:"wdkit-save-section",label:Sn("Save in WDesignKit"),onClick:()=>{document.querySelector(".wkit-gutenber-btn").click();let e=wp.blocks.serialize(wp.data.select("core/block-editor").getSelectedBlock());localStorage.setItem("wdkit_section",e),setTimeout((function(){window.location&&"#/save_template"!=window.location.hash&&(window.location.hash="#/save_template/section")}),20)}}))}};function Rn(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bn="function"==typeof Symbol&&Symbol.observable||"@@observable",Tn=function(){return Math.random().toString(36).substring(7).split("").join(".")},On={INIT:"@@redux/INIT"+Tn(),REPLACE:"@@redux/REPLACE"+Tn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Tn()}};var jn=function e(t,a,l){var n;if("function"==typeof a&&"function"==typeof l||"function"==typeof l&&"function"==typeof arguments[3])throw new Error(Rn(0));if("function"==typeof a&&void 0===l&&(l=a,a=void 0),void 0!==l){if("function"!=typeof l)throw new Error(Rn(1));return l(e)(t,a)}if("function"!=typeof t)throw new Error(Rn(2));var i=t,s=a,r=[],o=r,c=!1;function d(){o===r&&(o=r.slice())}function m(){if(c)throw new Error(Rn(3));return s}function p(e){if("function"!=typeof e)throw new Error(Rn(4));if(c)throw new Error(Rn(5));var t=!0;return d(),o.push(e),function(){if(t){if(c)throw new Error(Rn(6));t=!1,d();var a=o.indexOf(e);o.splice(a,1),r=null}}}function u(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(Rn(7));if(void 0===e.type)throw new Error(Rn(8));if(c)throw new Error(Rn(9));try{c=!0,s=i(s,e)}finally{c=!1}for(var t=r=o,a=0;a<t.length;a++)(0,t[a])();return e}return u({type:On.INIT}),(n={dispatch:u,subscribe:p,getState:m,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Rn(10));i=e,u({type:On.REPLACE})}})[Bn]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(Rn(11));function a(){e.next&&e.next(m())}return a(),{unsubscribe:t(a)}}})[Bn]=function(){return this},e},n};const An={cardData:[{layout:[],style:[]}]},Pn={widgetdata:{name:"",category:"",w_icon:"",w_image:"",description:"",helper_link:"",type:"elementor",publish_type:"Publish",key_words:"",css_parent_node:!0,widget_id:"",widget_version:"1.0.0",version_detail:[]}},Wn={links:[{js:[""],css:[""],external_cdn:[]}]},In={Editor_codes:[{html:"",css:"",js:""}]},Fn={},qn={section:{sec_id:"0"}},Un={settingdata:{builder:!0,template:!0,gutenberg_builder:!0,elementor_builder:!0,debugger_mode:!1}},Kn={route_history:"/my_uploaded"},Jn={wdkitmeta:{plugin:[],builder:[],category:[],tags:[],widgetbuilder:[],widgetscategory:[],Setting:{builder:!0,debugger_mode:!1,elementor_builder:!0,gutenberg_builder:!0,template:!0}}},zn={message_content:{title:"",subTitle:"",icon:"",type:""}},Gn=function(e){for(var t=Object.keys(e),a={},l=0;l<t.length;l++){var n=t[l];"function"==typeof e[n]&&(a[n]=e[n])}var i,s=Object.keys(a);try{!function(e){Object.keys(e).forEach((function(t){var a=e[t];if(void 0===a(void 0,{type:On.INIT}))throw new Error(Rn(12));if(void 0===a(void 0,{type:On.PROBE_UNKNOWN_ACTION()}))throw new Error(Rn(13))}))}(a)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var l=!1,n={},r=0;r<s.length;r++){var o=s[r],c=a[o],d=e[o],m=c(d,t);if(void 0===m)throw t&&t.type,new Error(Rn(14));n[o]=m,l=l||m!==d}return(l=l||s.length!==Object.keys(e).length)?n:e}}({CardItems:function(e=An,t){return"ADD_LAYOUT_ARRAY"===t.type?{...StaticRange,cardData:t.data}:e},WcardData:function(e=Pn,t){return"ADD_WIDGET_ARRAY"===t.type?{...StaticRange,widgetdata:t.data}:e},Editor_data:function(e=Wn,t){return"ADD_EDITOR_ARRAY"===t.type?{...StaticRange,links:t.data}:e},Editor_code:function(e=In,t){return"Editor_code"===t.type?{...StaticRange,Editor_codes:t.data}:e},Active_controller:function(e=Fn,t){return"ADD_CONTROLLER"===t.type?{...StaticRange,controller:t.data}:e},Active_section:function(e=qn,t){return"ADD_SECTION"===t.type?{...StaticRange,section:t.data}:e},wkit_SettingPanel:function(e=Un,t){return"ADD_SETTING_ARRAY"===t.type?{...StaticRange,settingdata:t.data}:e},wdkit_meta_data:function(e=Jn,t){return"UPDATE_WDKIT_META"===t.type?{...StaticRange,wdkitmeta:t.data}:e},wkit_Login_route:function(e=Kn,t){return"ADD_LOGIN_ROUTE"===t.type?{...StaticRange,route_history:t.data}:e},wkit_Toast_message:function(e=zn,t){return"Show_Toast"===t.type?{...StaticRange,message_content:t.data}:e}}),Yn=jn(Gn),{__:Xn}=wp.i18n;if(window.userData=[],window.wdkit_editor=wdkitData.use_editor,"gutenberg"===wdkitData.use_editor&&"1"===wdkitData.gutenberg_template){var Qn=wdkitData.WDKIT_URL;const{registerPlugin:t}=wp.plugins,a=wp.blocks,l=(a.serialize,a.parse,a.getBlockAttributes,wp.compose.compose),{withSelect:n}=wp.data;t("wdkit-save-template-section",{render:l([n((function(e){const{getSelectedBlockCount:t,getSelectedBlock:a,getMultiSelectedBlocks:l}=e("core/block-editor");return{count:t(),block:a(),blocks:l()}}))])(Zn)}),wp.data.subscribe((function(){setTimeout((function(){!function(){if(document.querySelectorAll(".wkit-gutenber-btn").length>0||null===document.querySelector(".wkit-gutenber-btn")){let n=wp.data.select("core/editor").getCurrentPostType();if(null!==n){n=n.toLowerCase().replace("/(?<= )[^s]|^./g",(function(e){return e.toUpperCase()}));var t=document.querySelector("#editor"),a=document.querySelector(".edit-post-header-toolbar"),l=document.createElement("div");l.id="wdkit-block-editor-icon",l.innerHTML='<button class="components-button is-primary wkit-gutenber-btn"><img class="wkit-main-logo" src="'+Qn+'assets/images/jpg/Wdesignkit-logo.png" alt="wdesignkiy" draggable="false" /></button>',document.querySelector("#wkit-builder-modal")||(document.body.insertAdjacentHTML("beforeend",'<div id="wkit-builder-modal" class="wkit-builder-modal"><div id="wkit-background-modal" class="wkit-background-modal"></div><div id="wkit-contentbox-modal" class="wkit-contentbox-modal wkit-gutenberg"></div></div>'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),document.querySelector(".wkit-builder-modal wkit-open")||"wdkit"==window.wdkit_editor||(window.location.hash="")}))),null===t.querySelector(".wkit-gutenber-btn")&&(a.appendChild(l),document.querySelector(".wkit-gutenber-btn").addEventListener("click",(function(){const t=document.getElementById("wkit-contentbox-modal"),a=(0,el.createRoot)(t);t&&setTimeout((()=>{a.render((0,e.createElement)(Ml,{store:Yn},(0,e.createElement)(zi,null)))}),500),document.querySelector(".wkit-builder-modal").classList.toggle("wkit-open")})))}}}()}),1)}))}const ei=jn(Gn),{__:ti}=wp.i18n;window.userData=[],window.wdkit_editor=wdkitData.use_editor;let ai=null;window.WdkitPopupToggle={open(t,a){"elementor"===window.wdkit_editor&&a&&setTimeout((()=>{ai||(ai=(0,el.createRoot)(a)),ai.render((0,e.createElement)(Ml,{store:ei},(0,e.createElement)(zi,null)))}),500)},close(e){ai&&(ai.unmount(),ai=null)}},wp.wkit_Pages={Side_menu:Aa,Wdkit_Login:wt,Wdkit_Login_Api:_t,Browse:Tt,MyUploaded:Ut,Kit_Page:aa,Share_with_me:wa,Manage_Workspace:Ea,Workspace_single:Sa,Save_template:Ya,Main_js_container:Jl,Loader_container:vn,Widget_brows:Nn,Wkit_settings:Ln,Page_not_found:Hn};const li=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Al(t)),wdkit_set_meta:t=>e(Wl(t))})))(Aa),ni=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_GetSettings_redux:t=>e(Il(t)),wdkit_set_toast:t=>e(Fl(t)),wdkit_Login_Route:t=>e(Pl(t))})))(Ln),ii=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Il(t)),wdkit_set_meta:t=>e(Wl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_toast:t=>e(Fl(t))})))(Ea),si=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Il(t)),wdkit_set_meta:t=>e(Wl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_toast:t=>e(Fl(t))})))(wa),ri=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Il(t)),wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t))})))(Sa),oi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(Fl(t)),wdkit_set_meta:t=>e(Wl(t))})))(Nn),ci=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(Fl(t))})))(Tt),di=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t))})))(aa),mi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,setting_data:e.wkit_SettingPanel.settingdata})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t)),wdkit_Login_Route:t=>e(Pl(t))})))(Ye),pi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t))})))(wt),ui=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t))})))(_t),wi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_toast:t=>e(Fl(t))})))(Ut),gi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_toast:t=>e(Fl(t))})))(Ya),Ci=Hl((e=>({ToastData:e.wkit_Toast_message.message_content})),(e=>({wdkit_set_toast:t=>e(Fl(t))})))((t=>{(0,l.useEffect)((()=>{t?.ToastData?.title&&(setTimeout((async()=>{document.querySelector(".wkit-toast-content.wkit-show-toast")&&await document.querySelector(".wkit-toast-content").classList.remove("wkit-show-toast"),await setTimeout((()=>{t.wdkit_set_toast("")}),500)}),5e3),document.querySelector(".wkit-toast-content").classList.add("wkit-show-toast"))}));let a=t.ToastData.title?t.ToastData.title:"",n=t.ToastData.subTitle?t.ToastData.subTitle:"",i=t.ToastData.type?t.ToastData.type:"";if(a)return(0,e.createElement)("div",{className:"wkit-toast-content wkit-show-toast"},(0,e.createElement)("div",{className:"wkit-toast-msg-img"},"success"===i?(0,e.createElement)("svg",{width:"39",height:"38",viewBox:"0 0 39 38",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M37.3731 22.4881L37.3614 22.4939C35.9903 23.5454 35.4094 25.3347 35.8974 26.9905L35.9032 27.0021C36.6816 29.6338 34.753 32.2887 32.0108 32.3585H31.9992C30.268 32.4049 28.7459 33.5087 28.1707 35.1412V35.147C27.2527 37.738 24.1273 38.7546 21.8674 37.1918C20.4641 36.2336 18.6091 36.1836 17.1327 37.1918H17.1269C14.867 38.7488 11.7415 37.7379 10.8294 35.1411C10.2491 33.5046 8.72922 32.4048 7.00094 32.3584H6.9893C4.24727 32.2886 2.31844 29.6338 3.09695 27.0021L3.10273 26.9904C3.59063 25.3346 3.00969 23.5453 1.63875 22.4938L1.62711 22.4881C-0.551484 20.8149 -0.551484 17.5384 1.62711 15.8653L1.63875 15.8595C3.00969 14.808 3.59063 13.0186 3.09695 11.3629V11.3513C2.31258 8.71963 4.24719 6.06463 6.9893 5.99494H7.00094C8.72633 5.94846 10.2542 4.84463 10.8294 3.21221V3.20642C11.7414 0.615409 14.867 -0.401232 17.1269 1.16158H17.1327C18.5559 2.14338 20.4382 2.14338 21.8674 1.16158C24.1501 -0.414747 27.2581 0.630956 28.1707 3.20642V3.21221C28.7459 4.83885 30.2679 5.94853 31.9992 5.99494H32.0108C34.7529 6.06463 36.6816 8.71963 35.9032 11.3513L35.8974 11.3629C35.4094 13.0186 35.9903 14.808 37.3614 15.8595L37.3731 15.8653C39.5516 17.5384 39.5516 20.8149 37.3731 22.4881Z",fill:"#3EB655"}),(0,e.createElement)("path",{d:"M19.5004 29.9987C25.477 29.9987 30.322 25.1537 30.322 19.1771C30.322 13.2005 25.477 8.35547 19.5004 8.35547C13.5237 8.35547 8.67871 13.2005 8.67871 19.1771C8.67871 25.1537 13.5237 29.9987 19.5004 29.9987Z",fill:"#8BD399"}),(0,e.createElement)("path",{opacity:"0.1",d:"M27.8093 12.2486C25.9375 10.7087 23.5428 9.7832 20.9321 9.7832C14.9556 9.7832 10.1079 14.6309 10.1079 20.6074C10.1079 23.218 11.0335 25.6128 12.5732 27.4846C10.195 25.5008 8.68018 22.5166 8.68018 19.1755C8.68018 13.1989 13.5237 8.35547 19.5003 8.35547C22.8413 8.35547 25.8255 9.87031 27.8093 12.2486Z",fill:"black"}),(0,e.createElement)("path",{d:"M16.9257 23.4117L14.5327 20.8658C13.906 20.1989 13.9383 19.1504 14.6049 18.5237C15.2716 17.8962 16.3206 17.9298 16.9467 18.5962L18.0891 19.8111L22.9448 14.2612C23.5467 13.5725 24.5935 13.5026 25.2828 14.1054C25.9716 14.7081 26.0411 15.7547 25.4387 16.4434L19.3797 23.368C18.7342 24.105 17.5951 24.1243 16.9257 23.4117Z",fill:"white"})):(0,e.createElement)("svg",{width:"39",height:"38",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M8.96273 4.14568L3.14055 14.2293C3.03538 14.4114 2.98 14.6179 2.97998 14.8282C2.97996 15.0385 3.0353 15.2451 3.14044 15.4272C3.24557 15.6093 3.3968 15.7605 3.57891 15.8657C3.76102 15.9708 3.96761 16.0262 4.17789 16.0261H15.8213C16.0316 16.0262 16.2382 15.9708 16.4203 15.8657C16.6024 15.7605 16.7536 15.6093 16.8588 15.4272C16.9639 15.2451 17.0193 15.0385 17.0192 14.8282C17.0192 14.6179 16.9638 14.4114 16.8587 14.2293L11.0371 4.14568C10.932 3.96362 10.7808 3.81244 10.5987 3.70732C10.4167 3.60221 10.2102 3.54688 9.99992 3.54688C9.78969 3.54688 9.58317 3.60221 9.40111 3.70732C9.21904 3.81244 9.06785 3.96362 8.96273 4.14568Z",fill:"#EE404C"}),(0,e.createElement)("path",{d:"M10.076 7.25391H9.9241C9.55019 7.25391 9.24707 7.55702 9.24707 7.93094V11.167C9.24707 11.5409 9.55019 11.8441 9.9241 11.8441H10.076C10.4499 11.8441 10.753 11.5409 10.753 11.167V7.93094C10.753 7.55702 10.4499 7.25391 10.076 7.25391Z",fill:"#FFF7ED"}),(0,e.createElement)("path",{d:"M10 14.4122C10.4159 14.4122 10.753 14.0751 10.753 13.6592C10.753 13.2434 10.4159 12.9062 10 12.9062C9.58419 12.9062 9.24707 13.2434 9.24707 13.6592C9.24707 14.0751 9.58419 14.4122 10 14.4122Z",fill:"#FFF7ED"}))),(0,e.createElement)("div",{className:"wkit-toast-msg-content"},(0,e.createElement)("span",{className:`wkit-toast-text wkit-${i}-msg`},a),(0,e.createElement)("p",null,n)),(0,e.createElement)("div",{className:"wkit-toast-close"},(0,e.createElement)("label",{onClick:()=>{(async()=>{let e=document.querySelector(".wkit-toast-content");e&&e.classList.remove("wkit-show-toast"),await setTimeout((()=>{t.wdkit_set_toast("")}),500)})()}},(0,e.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.40091 15.2558C1.66182 15.5169 2.01481 15.6637 2.38274 15.6637C2.75067 15.6637 3.10366 15.5169 3.36456 15.2558L8.29499 10.2193L13.2254 15.2558C13.5884 15.6217 14.118 15.7645 14.6141 15.6306C15.1103 15.4967 15.4981 15.1062 15.6309 14.6064C15.7639 14.1067 15.6221 13.5733 15.2588 13.2076L10.2587 8.24141L15.2588 3.27521C15.5659 2.91424 15.6703 2.42082 15.5365 1.96497C15.4027 1.50913 15.0485 1.15236 14.5959 1.01757C14.1431 0.882762 13.6535 0.987976 13.2949 1.29727L8.29499 6.26348L3.36455 1.29727C3.00619 0.987976 2.51632 0.882762 2.06375 1.01757C1.61119 1.15237 1.257 1.50911 1.12317 1.96497C0.989339 2.42082 1.0938 2.91424 1.40087 3.27521L6.3313 8.24141L1.40087 13.2076C1.11968 13.4728 0.959961 13.8436 0.959961 14.2316C0.959961 14.6198 1.11968 14.9904 1.40087 15.2557L1.40091 15.2558Z",fill:"black"})))),(0,e.createElement)("div",{className:`wkit-toast-progress wkit-${i}-msg-progress`}))})),vi=()=>(0,e.createElement)("div",{className:"wkit-active-content"},(0,e.createElement)("div",{className:"wkit-credit-detail"},(0,e.createElement)("div",{className:"wkit-credit-chart-skeleton"},(0,e.createElement)("div",{className:"wkit-center-chart-skeleton"})),(0,e.createElement)("div",{className:"wkit-credit-meta"},(0,e.createElement)("div",{className:"wkit-credit-meta-header-skeleton"}),(0,e.createElement)("div",{className:"wkit-credit-meta-body"},(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot-skeleton"}),(0,e.createElement)("div",{className:"wkit-active-line-skeleton"})),(0,e.createElement)("div",{className:"wkit-credit-meta-skeleton-bottom"})),(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot-skeleton"}),(0,e.createElement)("div",{className:"wkit-active-line-skeleton"})),(0,e.createElement)("div",{className:"wkit-credit-meta-skeleton-bottom"})),(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot-skeleton"}),(0,e.createElement)("div",{className:"wkit-active-line-skeleton"})),(0,e.createElement)("div",{className:"wkit-credit-meta-skeleton-bottom"}))),(0,e.createElement)("button",{className:"wkit-credit-meta-btn wkit-btn-skeleton"}))),(0,e.createElement)("div",{className:"wkit-apiKey-content"},(0,e.createElement)("div",{className:"wkit-apiKey-add-content"},(0,e.createElement)("div",{className:"wkit-addKey-header-skeleton"}),(0,e.createElement)("div",{className:"wkit-addKey-content-skeleton"},(0,e.createElement)("span",null),(0,e.createElement)("div",{className:"wkit-addKey-body"},(0,e.createElement)("div",{className:"wkit-addkey-input-skeleton"}),(0,e.createElement)("button",null),(0,e.createElement)("a",null)))),(0,e.createElement)("div",{className:"wkit-apiKey-table-content"},(0,e.createElement)("div",{className:"wkit-apiKey-table-header-skeleton"},(0,e.createElement)("span",null),(0,e.createElement)("p",null)),(0,e.createElement)("div",{className:"wkit-apiKey-table-body"},(0,e.createElement)("table",null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",{className:"wkit-table-hraders-skeleton"},(0,e.createElement)("th",null),(0,e.createElement)("th",null),(0,e.createElement)("th",null),(0,e.createElement)("th",null)))))))),{Fragment:bi}=wp.element;var hi=wdkitData.WDKIT_URL;const{__:_i}=wp.i18n,{wkit_get_user_login:ki,form_data:Ei}=wp.wkit_Helper,fi=Hl((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_Login_Route:t=>e(Pl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{const[a,n]=(0,l.useState)(!1),[i,s]=(0,l.useState)([]),[r,o]=(0,l.useState)(),[c,d]=(0,l.useState)(""),[m,p]=(0,l.useState)(!1),[u,w]=(0,l.useState)(!0),[g,C]=(0,l.useState)(!1),[v,b]=(0,l.useState)(!1),[h,_]=(0,l.useState)(!1),[k,E]=(0,l.useState)(),[f,y]=(0,l.useState)(!1),[N,$]=(0,l.useState)("wdkit"),[L,x]=(0,l.useState)("266965"),[H,M]=(0,l.useState)("assets/images/jpg/wdkit-logo.png"),V=[{text:"WDesignKit",imageSrc:"assets/images/jpg/wdkit-logo.png",alt:"WDesignKit",value:"wdkit"},{text:"WDesignKit Extra Credits",imageSrc:"assets/images/jpg/wdkit-logo.png",alt:"WDesignKit_extra",value:"wdkit_extra"},{text:"The Plus Addons For Elementor",imageSrc:"assets/images/jpg/tpae-logo.png",alt:"Tpae",value:"tpae"},{text:"The Plus Addons For Gutenberg",imageSrc:"assets/images/jpg/tpag-logo.png",alt:"Tpag",value:"tpag"},{text:"UiChemy",imageSrc:"assets/images/jpg/uichemy-logo.png",alt:"uichemy",value:"uichemy"}];(0,l.useEffect)((()=>{null!=r?.credits&&w(!1)}),[r?.credits]),(0,l.useEffect)((()=>{o(t?.wdkit_meta),(()=>{var e=[];if(t.wdkit_meta.credits?.tpae_licence&&null!=t.wdkit_meta?.credits?.tpae_licence?.ApiKey&&e.push({Img:"assets/images/jpg/tpae-logo.png",Plugin:"The Plus Addons for Elementor",value:"tpae",Key:t.wdkit_meta.credits?.tpae_licence?.ApiKey,Credits:t.wdkit_meta.credits?.tpae_credits,Status:"valid"==t.wdkit_meta.credits?.tpae_licence?.license?"Active":"Expired"}),t.wdkit_meta.credits?.tpag_licence&&null!=t.wdkit_meta?.credits?.tpag_licence?.ApiKey&&e.push({Img:"assets/images/jpg/tpag-logo.png",Plugin:"The Plus Addons for Gutenberg",value:"tpag",Key:t.wdkit_meta.credits?.tpag_licence?.ApiKey,Credits:t.wdkit_meta.credits?.tpag_credits,Status:"valid"==t.wdkit_meta.credits?.tpag_licence?.license?"Active":"Expired"}),t.wdkit_meta.credits?.uichemy_licence&&null!=t.wdkit_meta?.credits?.uichemy_licence?.ApiKey&&e.push({Img:"assets/images/jpg/uichemy-logo.png",Plugin:"UiChemy",value:"uichemy",Key:t.wdkit_meta.credits?.uichemy_licence?.ApiKey,Credits:t.wdkit_meta.credits?.uichemy_credits,Status:"valid"==t.wdkit_meta.credits?.uichemy_licence?.license?"Active":"Expired"}),t.wdkit_meta.credits?.wdkit_licence&&null!=t.wdkit_meta?.credits?.wdkit_licence?.ApiKey&&e.push({Img:"assets/images/jpg/wdkit-logo.png",Plugin:"WDesignKit",value:"wdkit",Key:t.wdkit_meta.credits?.wdkit_licence?.ApiKey,Credits:t.wdkit_meta.credits?.wdkit_credits,Status:"valid"==t.wdkit_meta.credits?.wdkit_licence?.license?"Active":"Expired"}),t.wdkit_meta.credits?.wdkit_licence_extra?.length>0){let a=t.wdkit_meta.credits?.wdkit_licence_extra;a.map((a=>{null!=a?.ApiKey&&e.push({Img:"assets/images/jpg/wdkit-logo.png",Plugin:"WDesignKit Extra",value:"wdkit_extra",Key:a?.ApiKey,Credits:t.wdkit_meta.credits?.wdkit_credits_extra,Status:"valid"==a?.license?"Active":"Expired"})}))}s(e)})()}),[t?.wdkit_meta?.credits]);const D=()=>{y(!f)},S=()=>(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",style:{animation:"spin 1.5s linear infinite"},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,e.createElement)("path",{d:"M2.76054 12.0855C3.58507 12.0855 4.25349 11.4171 4.25349 10.5926C4.25349 9.76803 3.58507 9.09961 2.76054 9.09961C1.936 9.09961 1.26758 9.76803 1.26758 10.5926C1.26758 11.4171 1.936 12.0855 2.76054 12.0855Z",fill:"#909BA6"}),(0,e.createElement)("path",{d:"M12.3661 10.7615C13.0817 10.7615 13.6619 10.1813 13.6619 9.4657C13.6619 8.75006 13.0817 8.16992 12.3661 8.16992C11.6505 8.16992 11.0703 8.75006 11.0703 9.4657C11.0703 10.1813 11.6505 10.7615 12.3661 10.7615Z",fill:"#C8D2DC"}),(0,e.createElement)("path",{d:"M11.1837 4.22581C11.7749 4.22581 12.2541 3.74656 12.2541 3.15538C12.2541 2.56421 11.7749 2.08496 11.1837 2.08496C10.5925 2.08496 10.1133 2.56421 10.1133 3.15538C10.1133 3.74656 10.5925 4.22581 11.1837 4.22581Z",fill:"#E9EDF1"}),(0,e.createElement)("path",{d:"M1.58437 8.4411C2.45939 8.4411 3.16873 7.74905 3.16873 6.89536C3.16873 6.04166 2.45939 5.34961 1.58437 5.34961C0.709345 5.34961 0 6.04166 0 6.89536C0 7.74905 0.709345 8.4411 1.58437 8.4411Z",fill:"#7E8B96"}),(0,e.createElement)("path",{d:"M6.13565 14.0004C6.93113 14.0004 7.57599 13.372 7.57599 12.5969C7.57599 11.8217 6.93113 11.1934 6.13565 11.1934C5.34017 11.1934 4.69531 11.8217 4.69531 12.5969C4.69531 13.372 5.34017 14.0004 6.13565 14.0004Z",fill:"#A2ABB8"}),(0,e.createElement)("path",{d:"M9.83706 13.3863C10.5928 13.3863 11.2054 12.7898 11.2054 12.054C11.2054 11.3182 10.5928 10.7217 9.83706 10.7217C9.08136 10.7217 8.46875 11.3182 8.46875 12.054C8.46875 12.7898 9.08136 13.3863 9.83706 13.3863Z",fill:"#B9C3CD"}),(0,e.createElement)("path",{d:"M3.29894 4.8518C4.21373 4.8518 4.95531 4.12792 4.95531 3.23498C4.95531 2.34204 4.21373 1.61816 3.29894 1.61816C2.38416 1.61816 1.64258 2.34204 1.64258 3.23498C1.64258 4.12792 2.38416 4.8518 3.29894 4.8518Z",fill:"#5F6C75"}),(0,e.createElement)("path",{d:"M12.7751 7.30062C13.4512 7.30062 13.9993 6.76265 13.9993 6.09904C13.9993 5.43543 13.4512 4.89746 12.7751 4.89746C12.0989 4.89746 11.5508 5.43543 11.5508 6.09904C11.5508 6.76265 12.0989 7.30062 12.7751 7.30062Z",fill:"#DCE6EB"}),(0,e.createElement)("path",{d:"M7.40859 3.49393C8.37314 3.49393 9.15507 2.71201 9.15507 1.74746C9.15507 0.782902 8.37314 0.000976562 7.40859 0.000976562C6.44403 0.000976562 5.66211 0.782902 5.66211 1.74746C5.66211 2.71201 6.44403 3.49393 7.40859 3.49393Z",fill:"#4E5A61"}));var Z=Array.from({length:100});if(!ki())return t.wdkit_Login_Route("/activate"),(0,e.createElement)(oe,{to:"/login"});return(0,e.createElement)("div",{className:"wkit-activate-key-wrapper"},(0,e.createElement)(rt,{title:"Licence Key",svg:(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M17.5 17.5C16.66 18.34 15.325 18.34 14.5 17.515V17.5C13.675 16.675 13.675 15.34 14.5 14.515V14.5C15.325 13.675 16.66 13.675 17.485 14.5H17.5C18.325 15.325 18.325 16.675 17.5 17.5ZM16 7L19.18 10.18L22.93 6.43L18.13 1.63C16.96 0.460001 15.055 0.460001 13.885 1.63L9.085 6.43L12.835 10.18L16 7ZM7 16L10.18 12.82L6.43 9.07L1.63 13.87C0.460001 15.04 0.460001 16.945 1.63 18.115L6.43 22.915L10.18 19.165L7 16ZM25 16L21.82 19.18L25.57 22.93L30.37 18.13C31.54 16.96 31.54 15.055 30.37 13.885L25.57 9.085L21.82 12.835L25 16ZM16 25L12.82 21.82L9.07 25.57L13.87 30.37C15.04 31.54 16.945 31.54 18.115 30.37L22.915 25.57L19.165 21.82L16 25Z",fill:"#040483"}))}),!u&&(0,e.createElement)("div",{className:"wkit-active-content"},(0,e.createElement)("div",{className:"wkit-credit-detail"},(0,e.createElement)("div",{className:"wkit-credit-chart"},Z.map(((a,l)=>{if(l+1<=2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100))var n="#7939eb";else n=2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100)<l+1&&l+1<=2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100)+5*t.wdkit_meta?.credits?.count_widget/(t.wdkit_meta?.credits?.credits_total/100)?"#fe5231":2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100)+5*t.wdkit_meta?.credits?.count_widget/(t.wdkit_meta?.credits?.credits_total/100)<l+1&&l+1<2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100)+5*t.wdkit_meta?.credits?.count_widget/(t.wdkit_meta?.credits?.credits_total/100)+10*t.wdkit_meta?.credits?.count_workspace/(t.wdkit_meta?.credits?.credits_total/100)?"#00ff66":"#F9E9F1";return(0,e.createElement)("div",{className:"wkit-chart",style:{transform:`rotate(${3.6*l}deg)`},key:l},(0,e.createElement)("span",{className:"wkit-chart-show",style:{backgroundColor:n,zIndex:l}}),(0,e.createElement)("span",{className:"wkit-chart-hiden"}))})),(0,e.createElement)("div",{className:"wkit-center-chart"},(0,e.createElement)("div",{className:"wkit-center-chart-credits"},2*t.wdkit_meta?.credits?.count_template+5*t.wdkit_meta?.credits?.count_widget+10*t.wdkit_meta?.credits?.count_workspace,"/",t.wdkit_meta?.credits?.credits_total),"free"==t.wdkit_meta?.credits?.type?(0,e.createElement)("div",{className:"wkit-center-chart-tag"},"Free"):(0,e.createElement)("div",{className:"wkit-center-chart-pro-tag"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none"},(0,e.createElement)("path",{d:"M1.39994 2.59894L3.49994 3.99894L5.59294 1.06895C5.63919 1.00413 5.70024 0.951295 5.77104 0.914845C5.84184 0.878395 5.92029 0.859375 5.99994 0.859375C6.07959 0.859375 6.15804 0.878395 6.22884 0.914845C6.29964 0.951295 6.36069 1.00413 6.40694 1.06895L8.49994 3.99894L10.5999 2.59894C10.6794 2.54606 10.7724 2.51705 10.8678 2.51531C10.9632 2.51358 11.0572 2.5392 11.1385 2.58915C11.2199 2.6391 11.2852 2.71131 11.3268 2.79721C11.3685 2.88312 11.3846 2.97915 11.3734 3.07395L10.5519 10.0574C10.5376 10.1791 10.4791 10.2912 10.3876 10.3726C10.2961 10.4539 10.1779 10.4989 10.0554 10.4989H1.94444C1.82198 10.4989 1.70377 10.4539 1.61226 10.3726C1.52074 10.2912 1.46227 10.1791 1.44794 10.0574L0.626442 3.07345C0.615342 2.97869 0.631587 2.88273 0.673252 2.7969C0.714922 2.71108 0.780272 2.63896 0.861597 2.58908C0.942923 2.53919 1.03682 2.51361 1.13221 2.51536C1.2276 2.51711 1.3205 2.54611 1.39994 2.59894ZM5.99994 7.49894C6.26514 7.49894 6.51949 7.39359 6.70704 7.20604C6.89459 7.01849 6.99994 6.76414 6.99994 6.49894C6.99994 6.23374 6.89459 5.97939 6.70704 5.79184C6.51949 5.60429 6.26514 5.49894 5.99994 5.49894C5.73474 5.49894 5.48039 5.60429 5.29284 5.79184C5.10529 5.97939 4.99994 6.23374 4.99994 6.49894C4.99994 6.76414 5.10529 7.01849 5.29284 7.20604C5.48039 7.39359 5.73474 7.49894 5.99994 7.49894Z",fill:"white"})),(0,e.createElement)("span",null,"Pro")))),(0,e.createElement)("div",{className:"wkit-credit-meta"},(0,e.createElement)("div",{className:"wkit-credit-meta-header"},"Credits"),(0,e.createElement)("div",{className:"wkit-credit-meta-body"},(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot wkit-cl-template"}),(0,e.createElement)("div",null,"Templates")),(0,e.createElement)("div",{className:"wkit-credit-meta-content-bottom"},"unlimited"==t.wdkit_meta?.credits?.template_limit?.meta_value?(0,e.createElement)("span",null,t.wdkit_meta?.credits?.count_template,"/",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},(0,e.createElement)("path",{d:"M18.6311 7.18922C16.8058 5.36402 13.8359 5.3641 12.0107 7.18922L6.68978 12.5101C6.13544 13.0644 5.40732 13.3416 4.67911 13.3416C3.95094 13.3416 3.22281 13.0644 2.66844 12.5101C1.55976 11.4014 1.55976 9.59745 2.66844 8.48873C3.77719 7.38001 5.58118 7.38013 6.68978 8.48873L7.87164 9.67059L9.17119 8.37105L7.98933 7.18919C6.16408 5.36406 3.19421 5.36398 1.36893 7.18919C-0.456311 9.01447 -0.456311 11.9843 1.36893 13.8096C3.19425 15.6348 6.16408 15.6348 7.98933 13.8096L13.3102 8.48869C14.4189 7.38013 16.2228 7.37997 17.3316 8.48869C18.4402 9.59741 18.4402 11.4014 17.3316 12.51C16.7773 13.0643 16.0489 13.3415 15.3209 13.3415C14.5926 13.3415 13.8646 13.0644 13.3102 12.51L12.1284 11.3282L10.8288 12.6277L12.0107 13.8096C13.836 15.6348 16.8058 15.6348 18.6311 13.8096C20.4563 11.9843 20.4563 9.01451 18.6311 7.18922Z",fill:"#040483"}))):`${t.wdkit_meta?.credits?.count_template}/${t.wdkit_meta?.credits?.template_limit?.meta_value}`)),(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot wkit-cl-widget"}),(0,e.createElement)("div",null,"Widgets")),(0,e.createElement)("div",{className:"wkit-credit-meta-content-bottom"},"unlimited"===t.wdkit_meta?.credits?.widget_limit?.meta_value?(0,e.createElement)("span",null,t.wdkit_meta?.credits?.count_widget,"/",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},(0,e.createElement)("path",{d:"M18.6311 7.18922C16.8058 5.36402 13.8359 5.3641 12.0107 7.18922L6.68978 12.5101C6.13544 13.0644 5.40732 13.3416 4.67911 13.3416C3.95094 13.3416 3.22281 13.0644 2.66844 12.5101C1.55976 11.4014 1.55976 9.59745 2.66844 8.48873C3.77719 7.38001 5.58118 7.38013 6.68978 8.48873L7.87164 9.67059L9.17119 8.37105L7.98933 7.18919C6.16408 5.36406 3.19421 5.36398 1.36893 7.18919C-0.456311 9.01447 -0.456311 11.9843 1.36893 13.8096C3.19425 15.6348 6.16408 15.6348 7.98933 13.8096L13.3102 8.48869C14.4189 7.38013 16.2228 7.37997 17.3316 8.48869C18.4402 9.59741 18.4402 11.4014 17.3316 12.51C16.7773 13.0643 16.0489 13.3415 15.3209 13.3415C14.5926 13.3415 13.8646 13.0644 13.3102 12.51L12.1284 11.3282L10.8288 12.6277L12.0107 13.8096C13.836 15.6348 16.8058 15.6348 18.6311 13.8096C20.4563 11.9843 20.4563 9.01451 18.6311 7.18922Z",fill:"#040483"}))):`${t.wdkit_meta?.credits?.count_widget}/${t.wdkit_meta?.credits?.widget_limit?.meta_value}`)),(0,e.createElement)("div",{className:"wkit-credit-meta-content"},(0,e.createElement)("div",{className:"wkit-credit-meta-content-top"},(0,e.createElement)("div",{className:"wkit-active-dot wkit-cl-workspace"}),(0,e.createElement)("div",null,"Workspace")),(0,e.createElement)("div",{className:"wkit-credit-meta-content-bottom"},"unlimited"===t.wdkit_meta?.credits?.workspace_limit?.meta_value?(0,e.createElement)("span",null,t.wdkit_meta?.credits?.count_workspace,"/",(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none"},(0,e.createElement)("path",{d:"M18.6311 7.18922C16.8058 5.36402 13.8359 5.3641 12.0107 7.18922L6.68978 12.5101C6.13544 13.0644 5.40732 13.3416 4.67911 13.3416C3.95094 13.3416 3.22281 13.0644 2.66844 12.5101C1.55976 11.4014 1.55976 9.59745 2.66844 8.48873C3.77719 7.38001 5.58118 7.38013 6.68978 8.48873L7.87164 9.67059L9.17119 8.37105L7.98933 7.18919C6.16408 5.36406 3.19421 5.36398 1.36893 7.18919C-0.456311 9.01447 -0.456311 11.9843 1.36893 13.8096C3.19425 15.6348 6.16408 15.6348 7.98933 13.8096L13.3102 8.48869C14.4189 7.38013 16.2228 7.37997 17.3316 8.48869C18.4402 9.59741 18.4402 11.4014 17.3316 12.51C16.7773 13.0643 16.0489 13.3415 15.3209 13.3415C14.5926 13.3415 13.8646 13.0644 13.3102 12.51L12.1284 11.3282L10.8288 12.6277L12.0107 13.8096C13.836 15.6348 16.8058 15.6348 18.6311 13.8096C20.4563 11.9843 20.4563 9.01451 18.6311 7.18922Z",fill:"#040483"}))):`${t.wdkit_meta?.credits?.count_workspace}/${t.wdkit_meta?.credits?.workspace_limit?.meta_value}`))),(0,e.createElement)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer"},"free"==t.wdkit_meta?.credits?.type&&(0,e.createElement)("button",{className:"wkit-credit-meta-btn wkit-goPro-btn wkit-pink-btn-class"},(0,e.createElement)("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M1.79989 4.2018L5.99989 7.0018L10.1859 1.1418C10.2784 1.01217 10.4005 0.906496 10.5421 0.833596C10.6837 0.760696 10.8406 0.722656 10.9999 0.722656C11.1592 0.722656 11.3161 0.760696 11.4577 0.833596C11.5993 0.906496 11.7214 1.01217 11.8139 1.1418L15.9999 7.0018L20.1999 4.2018C20.3589 4.09604 20.5448 4.038 20.7356 4.03453C20.9265 4.03106 21.1144 4.08231 21.2771 4.18222C21.4398 4.28212 21.5705 4.42652 21.6537 4.59833C21.737 4.77014 21.7693 4.9622 21.7469 5.1518L20.1039 19.1188C20.0752 19.3621 19.9583 19.5863 19.7753 19.7491C19.5922 19.9118 19.3558 20.0018 19.1109 20.0018H2.88889C2.64396 20.0018 2.40755 19.9118 2.22452 19.7491C2.04148 19.5863 1.92455 19.3621 1.89589 19.1188L0.252885 5.1508C0.230685 4.96128 0.263175 4.76937 0.346505 4.59771C0.429845 4.42606 0.560545 4.28183 0.723195 4.18206C0.885845 4.08228 1.07365 4.03112 1.26443 4.03462C1.45521 4.03812 1.64101 4.09613 1.79989 4.2018V4.2018ZM10.9999 14.0018C11.5303 14.0018 12.039 13.7911 12.4141 13.416C12.7892 13.0409 12.9999 12.5322 12.9999 12.0018C12.9999 11.4714 12.7892 10.9627 12.4141 10.5876C12.039 10.2125 11.5303 10.0018 10.9999 10.0018C10.4695 10.0018 9.96079 10.2125 9.58569 10.5876C9.21059 10.9627 8.99989 11.4714 8.99989 12.0018C8.99989 12.5322 9.21059 13.0409 9.58569 13.416C9.96079 13.7911 10.4695 14.0018 10.9999 14.0018Z",fill:"white"})),"Go Pro"),"free"!=t.wdkit_meta?.credits?.type&&2*t.wdkit_meta?.credits?.count_template+5*t.wdkit_meta?.credits?.count_widget+10*t.wdkit_meta?.credits?.count_workspace>=t.wdkit_meta?.credits?.total_credits?.meta_value&&(0,e.createElement)("button",{className:"wkit-credit-meta-btn wkit-goPro-btn wkit-pink-btn-class"},"Buy Extra Credits")))),(0,e.createElement)("div",{className:"wkit-apiKey-content"},(0,e.createElement)("div",{className:"wkit-apiKey-add-content"},(0,e.createElement)("div",{className:"wkit-addKey-header"},"Add Licence Key"),(0,e.createElement)("div",{className:"wkit-addKey-content"},(0,e.createElement)("span",null,"Enter Licence Key"),(0,e.createElement)("div",{className:"wkit-addKey-body"},(0,e.createElement)("div",{className:"wkit-addkey-dropdown-field "+(m?"wkit-empty-key":"")},(0,e.createElement)("div",{className:"wkit-addkey-dropdown-parent"},H&&(0,e.createElement)("img",{src:hi+H,alt:"Selected Option Image",onClick:()=>{D()},draggable:!1}),(0,e.createElement)("input",{className:"wkit-addKey-input",placeholder:"XXXXXXXXX6788",type:"text",value:c,onFocus:()=>y(!0),onChange:e=>{d(e.target.value),p(!1)}}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",onClick:()=>{D()},className:"wkit-addkey-dropdown-toggle "+(f?"wdkit-dropdown-open":"")},(0,e.createElement)("path",{d:"M6 9.5L12 15.5L18 9.5",stroke:"#999999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))),f&&(0,e.createElement)("div",{className:"wkit-addkey-dropdown-child"},(0,e.createElement)("ul",{className:"dropdown-options"},V.map((t=>(0,e.createElement)("li",{className:t.value==N?"wkit-selected-key":"",key:t.text,onClick:()=>(e=>{const t=V.find((t=>t.value==e));t&&($(e),M(t.imageSrc)),y(!1)})(t.value)},(0,e.createElement)("div",{className:"wkit-activate-key-opt"},(0,e.createElement)("img",{src:hi+t.imageSrc,alt:t.alt}),t.text),t.value==N&&(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{d:"M26.6663 8L11.9997 22.6667L5.33301 16",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))))),"uichemy"==N&&(0,e.createElement)("div",null,(0,e.createElement)("select",{className:"wkit-uichemy-dropDown",onChange:e=>x(e.target.value)},[{value:"266965",text:"All Access"},{value:"266943",text:"Figma to Bricks"},{value:"266948",text:"Figma to Gutenberg"},{value:"226276",text:"Figma to Elementor"}].map((t=>(0,e.createElement)("option",{value:t.value},t.text))))),(0,e.createElement)("div",{className:"wkit-credit-meta-btn wkit-activte-btn wkit-pink-btn-class",onClick:()=>(async()=>{if(y(!1),!c.trim())return p(!0),void t.wdkit_set_toast(["Invalid key entered","Key error, check and fix","","danger"]);{C(!0);const e={type:"active_licence",token:Pe().token,licencekey:c,licencename:N,uichemyid:"uichemy"==N?L:""};await Ei(e).then((async e=>{if(e.success){let a=await Ae();a?.data&&t.wdkit_set_meta(a?.data),t.wdkit_set_toast([e?.message,e?.description,"","success"]),C(!1)}else t.wdkit_set_toast([e?.message,e?.description,"","danger"]),C(!1)}))}d("")})()},1==g?(0,e.createElement)(Fe,null):(0,e.createElement)("span",null,_i("Activate"))),(0,e.createElement)("a",{className:"wkit-link-hover-effect",href:"https://blog.wdesignkit.com/documents/how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer"},"How to get key?")))),i.length>0?(0,e.createElement)("div",{className:"wkit-apiKey-table-content"},(0,e.createElement)("div",{className:"wkit-apiKey-table-header"},(0,e.createElement)("span",null,_i("Existing Licence Keys")),(0,e.createElement)("p",null,_i("To utilize the credits associated with this license key, it must be in an 'Active' status. If it has expired, access will be restricted, and you won't be able to use it."))),(0,e.createElement)("div",{className:"wkit-apiKey-table-body"},(0,e.createElement)("table",null,(0,e.createElement)("thead",null,(0,e.createElement)("tr",{className:"wkit-table-hraders"},(0,e.createElement)("th",{className:"wkit-apikey-plugin"},_i("Name")),(0,e.createElement)("th",null,_i("Licence Key")),(0,e.createElement)("th",null,_i("Credits")),(0,e.createElement)("th",null,_i("Status")))),(0,e.createElement)("tbody",null,i.map(((a,l)=>(0,e.createElement)("tr",{key:l},(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wkit-apikey-plugin"},(0,e.createElement)("img",{src:hi+a.Img,alt:"TPAE image"}),(0,e.createElement)("span",null,a.Plugin))),(0,e.createElement)("td",null,a.Key),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wkit-active-table-credits"},(0,e.createElement)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M2.39844 10.9336C2.39844 16.2669 6.66511 20.5336 11.9984 20.5336C17.2651 20.5336 21.5984 16.2669 21.5984 10.9336V13.0669C21.5984 18.4003 17.3317 22.6669 11.9984 22.6669C6.73177 22.6669 2.39844 18.4003 2.39844 13.0669V10.9336Z",fill:"#FFB961"}),(0,e.createElement)("path",{d:"M2.39844 10.9336C2.39844 16.2669 6.66511 20.5336 11.9984 20.5336C17.2651 20.5336 21.5984 16.2669 21.5984 10.9336V13.0669C21.5984 18.4003 17.3317 22.6669 11.9984 22.6669C6.73177 22.6669 2.39844 18.4003 2.39844 13.0669V10.9336Z",fill:"#F3A250"}),(0,e.createElement)("path",{d:"M12.001 20.5336C10.0677 20.5336 8.20104 19.9336 6.73438 18.9336V21.0669C8.2677 22.0669 10.0677 22.6669 12.001 22.6669C17.2677 22.6669 21.601 18.4003 21.601 13.0669V10.9336C21.601 16.2003 17.2677 20.5336 12.001 20.5336Z",fill:"#F18B54"}),(0,e.createElement)("path",{d:"M13.668 20.3339V22.4672C18.1346 21.6672 21.6013 17.7339 21.6013 13.0005V10.8672C21.6013 15.6672 18.2013 19.5339 13.668 20.3339Z",fill:"#F3A250"}),(0,e.createElement)("path",{d:"M19.0664 17.4003V19.5336C20.6664 17.8003 21.5997 15.5336 21.5997 13.0669V10.9336C21.5997 13.4003 20.5997 15.6669 19.0664 17.4003Z",fill:"#F18B54"}),(0,e.createElement)("path",{d:"M21.602 10.934C21.602 16.2673 17.3353 20.534 12.002 20.534C7.20194 20.534 3.26861 17.0673 2.53528 12.4673C1.60194 6.73398 6.00194 1.33398 12.002 1.33398C16.0687 1.33398 19.602 3.86732 20.9353 7.53398C21.402 8.53398 21.602 9.73398 21.602 10.934Z",fill:"#F9CF6B"}),(0,e.createElement)("path",{d:"M4.73438 15.801C6.66771 18.1344 9.33437 19.3344 12.001 19.3344C14.6677 19.3344 17.3344 18.1344 19.2677 15.7344C17.9344 18.1344 15.2677 19.8677 12.001 19.9344C8.80104 19.9344 6.06771 18.1344 4.73438 15.801Z",fill:"white"}),(0,e.createElement)("path",{d:"M20.1339 7.40104C18.4672 4.20104 15.3339 2.33437 12.0005 2.33437C8.66719 2.33437 5.53385 4.20103 3.86719 7.33436C4.93385 4.2677 8.13385 1.80104 12.0005 1.73438C15.8672 1.80104 19.0005 4.26771 20.1339 7.40104Z",fill:"white"}),(0,e.createElement)("path",{d:"M4.73438 15.801C6.66771 18.1344 9.33437 19.3344 12.001 19.3344C14.6677 19.3344 17.3344 18.1344 19.2677 15.7344C17.9344 18.1344 15.2677 19.8677 12.001 19.9344C8.80104 19.9344 6.06771 18.1344 4.73438 15.801Z",fill:"#FDEECA"}),(0,e.createElement)("path",{d:"M19.2677 10.9346C19.2677 14.9346 16.001 18.2013 12.001 18.2013C8.00104 18.2013 4.73438 14.9346 4.73438 10.9346C4.73438 6.93464 8.00104 3.66797 12.001 3.66797C16.001 3.66797 19.2677 6.93464 19.2677 10.9346Z",fill:"#F3A250"}),(0,e.createElement)("path",{d:"M14.3986 12L14.7986 14.5333C14.8653 14.9333 14.4653 15.2 14.1319 15.0667L11.8653 13.8667C11.7319 13.8 11.5319 13.8 11.3986 13.8667L9.13197 15.0667C8.79863 15.2667 8.39863 14.9333 8.4653 14.5333L8.8653 12C8.8653 11.8667 8.8653 11.6667 8.73197 11.6L6.8653 9.8C6.59863 9.53333 6.73197 9.06667 7.13197 9L9.6653 8.6C9.79863 8.6 9.93197 8.46667 9.99865 8.33333L11.1986 6C11.3986 5.66667 11.8653 5.66667 12.0653 6L13.1986 8.33333C13.2653 8.46667 13.3986 8.6 13.5319 8.6L16.0653 9C16.4653 9.06667 16.5986 9.53333 16.3319 9.8L14.4653 11.6C14.3986 11.6667 14.3319 11.8667 14.3986 12Z",fill:"#EF7B56"}),(0,e.createElement)("path",{d:"M18.5314 14.068C20.4647 9.46797 17.0647 4.26797 11.998 4.26797C6.99808 4.26797 3.53141 9.33464 5.39808 14.0013C3.19808 9.2013 6.66475 3.66797 11.998 3.66797C17.398 3.66797 20.8647 9.33464 18.5314 14.068Z",fill:"#EF7B56"}),(0,e.createElement)("path",{d:"M14.801 12.4004L15.201 14.9337C15.2676 15.3337 14.8676 15.6004 14.5343 15.4671L12.2676 14.2671C12.1343 14.2004 11.9343 14.2004 11.801 14.2671L9.53431 15.4671C9.20098 15.6671 8.80098 15.3337 8.86764 14.9337L9.26764 12.4004C9.26764 12.2671 9.26764 12.0671 9.13431 12.0004L7.26764 10.2004C7.00098 9.93372 7.13431 9.46706 7.53431 9.40039L10.0676 9.00039C10.201 9.00039 10.3343 8.86706 10.401 8.73372L11.5343 6.40039C11.7343 6.06706 12.201 6.06706 12.401 6.40039L13.5343 8.73372C13.601 8.86706 13.7343 9.00039 13.8676 9.00039L16.401 9.40039C16.801 9.46706 16.9343 9.93372 16.6676 10.2004L14.9343 12.0004C14.801 12.0671 14.7343 12.2671 14.801 12.4004Z",fill:"#F9CF6B"}),(0,e.createElement)("path",{d:"M7.73639 10.2669C7.46972 10.0003 7.60306 9.60026 8.00306 9.53359L10.2698 9.20026C10.4031 9.20026 10.5364 9.06693 10.6031 9.00026L11.6031 6.93359C11.7364 6.60026 12.2031 6.60026 12.3364 6.93359L13.3364 9.00026C13.4031 9.13359 13.5364 9.20026 13.6698 9.20026L15.9364 9.53359C16.2698 9.60026 16.4031 10.0003 16.2031 10.2669C16.2031 10.2669 14.7364 11.8669 11.8698 11.8669C9.66972 11.8669 7.73639 10.2669 7.73639 10.2669Z",fill:"#FCE7B5"}),(0,e.createElement)("path",{d:"M8.3362 6.20026C8.1362 6.20026 8.00286 6.26693 7.86953 6.33359C7.9362 6.40026 8.46953 6.93359 8.40286 7.00026C8.3362 7.06693 7.80286 6.53359 7.7362 6.46693C7.66953 6.60026 7.60286 6.73359 7.60286 6.93359C7.60286 7.66693 7.5362 8.13359 7.40286 8.13359C7.3362 8.13359 7.26953 7.66693 7.20286 6.93359C7.20286 6.73359 7.1362 6.60026 7.06953 6.46693C7.00286 6.53359 6.46953 7.06693 6.40286 7.00026C6.3362 6.93359 6.86953 6.40026 6.93619 6.33359C6.80286 6.26693 6.66953 6.20026 6.46953 6.20026C4.86953 6.13359 4.86953 5.93359 6.46953 5.86693C6.60286 5.86693 6.80286 5.80026 6.93619 5.73359C6.86953 5.66693 6.3362 5.13359 6.40286 5.06693C6.46953 5.00026 7.00286 5.53359 7.06953 5.60026C7.1362 5.46693 7.20286 5.33359 7.20286 5.13359C7.26953 3.53359 7.46953 3.53359 7.5362 5.13359C7.5362 5.26693 7.60286 5.46693 7.66953 5.60026C7.7362 5.53359 8.26953 5.00026 8.3362 5.06693C8.40286 5.13359 8.20286 5.40026 7.86953 5.73359V5.80026C8.00286 5.86693 8.1362 5.93359 8.3362 5.93359C9.06953 5.93359 9.5362 6.00026 9.5362 6.13359C9.5362 6.13359 9.06953 6.20026 8.3362 6.20026Z",fill:"white"}),(0,e.createElement)("path",{d:"M20.1339 7.40104C18.4672 4.20104 15.3339 2.33437 12.0005 2.33437C8.66719 2.33437 5.53385 4.20103 3.86719 7.33436C4.93385 4.2677 8.13385 1.80104 12.0005 1.73438C15.8672 1.80104 19.0005 4.26771 20.1339 7.40104Z",fill:"#FBE1A0"})),(0,e.createElement)("span",null,a.Credits))),(0,e.createElement)("td",null,(0,e.createElement)("div",{className:"wkit-active-table-status-tab"},(0,e.createElement)("span",{className:"wkit-key-status "+("Expired"==a.Status?"wdkit-expired-class":"wdkit-active-class")},a.Status),v?(0,e.createElement)("span",{className:"wkit-cloud-icon"},(0,e.createElement)(S,null)):(0,e.createElement)("span",{className:"wkit-cloud-icon",onClick:()=>(e=>{b(!0);const a={type:"sync_licence",token:Pe().token,licencename:e};Ei(a).then((e=>{e.success?(b(!1),t.wdkit_set_toast([e?.message,e?.description,"","success"])):(b(!1),t.wdkit_set_toast([e?.message,e?.description,"","danger"]))}))})(a.value)},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M15.6075 7.68C15.38 4.78562 12.9519 2.5 10 2.5C7.475 2.5 5.3075 4.14 4.6075 6.53188C2.61313 7.22438 1.25 9.11438 1.25 11.25C1.25 14.0069 3.49313 16.25 6.25 16.25H14.375C16.7869 16.25 18.75 14.2869 18.75 11.875C18.75 9.90688 17.4562 8.2175 15.6075 7.68ZM12.6831 12.3169L11.4331 11.0669C11.2544 10.8881 11.2006 10.6194 11.2975 10.3856C11.3938 10.1525 11.6225 10 11.875 10H12.4113C12.1319 8.925 11.1619 8.125 10 8.125C9.65125 8.125 9.31437 8.195 8.99875 8.33313C8.68125 8.47062 8.31375 8.32687 8.17563 8.01125C8.03688 7.695 8.18125 7.32625 8.4975 7.18813C8.97187 6.98063 9.47812 6.875 10 6.875C11.8544 6.875 13.3944 8.22937 13.6938 10H14.375C14.6275 10 14.8562 10.1525 14.9525 10.3856C15.0494 10.6194 14.9956 10.8881 14.8169 11.0669L13.5669 12.3169C13.445 12.4388 13.285 12.5 13.125 12.5C12.965 12.5 12.805 12.4388 12.6831 12.3169ZM5.18313 10.1831L6.43313 8.93313C6.6775 8.68875 7.0725 8.68875 7.31687 8.93313L8.56687 10.1831C8.74563 10.3619 8.79938 10.6306 8.7025 10.8644C8.60625 11.0981 8.3775 11.25 8.125 11.25H7.58875C7.86812 12.3256 8.83813 13.125 10 13.125C10.3475 13.125 10.6838 13.055 10.9994 12.9175C11.315 12.7775 11.6838 12.9244 11.8219 13.24C11.9606 13.5562 11.8156 13.925 11.4994 14.0625C11.0256 14.27 10.5206 14.375 10 14.375C8.14563 14.375 6.60563 13.0206 6.30625 11.25H5.625C5.3725 11.25 5.14375 11.0981 5.0475 10.8644C4.95063 10.6306 5.00438 10.3619 5.18313 10.1831Z",fill:"#00A31B"}))),(0,e.createElement)("span",{className:"wkit-delete-key-btn",onClick:()=>{n(!0),E(a)}},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{d:"M2.5 5H4.16667H17.5",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M15.8327 5.0013V16.668C15.8327 17.11 15.6571 17.5339 15.3445 17.8465C15.032 18.159 14.608 18.3346 14.166 18.3346H5.83268C5.39065 18.3346 4.96673 18.159 4.65417 17.8465C4.34161 17.5339 4.16602 17.11 4.16602 16.668V5.0013M6.66602 5.0013V3.33464C6.66602 2.89261 6.84161 2.46868 7.15417 2.15612C7.46673 1.84356 7.89065 1.66797 8.33268 1.66797H11.666C12.108 1.66797 12.532 1.84356 12.8445 2.15612C13.1571 2.46868 13.3327 2.89261 13.3327 3.33464V5.0013",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M8.33398 9.16797V14.168",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,e.createElement)("path",{d:"M11.666 9.16797V14.168",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})))))))))))):(0,e.createElement)("div",{className:"wkit-apiKey-nokey"},(0,e.createElement)("img",{src:hi+"assets/images/jpg/noKey.png",alt:"nokey image",draggable:!1}),(0,e.createElement)("span",null,_i("No licence keys found. Add your WDesignKit, The Plus Addons, UiChemy or other keys to activate and get benefits of pro version.")," ",(0,e.createElement)("a",{className:"wkit-link-hover-effect",href:"https://blog.wdesignkit.com/documents/how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer"},_i("How to get a key?")))))),u&&(0,e.createElement)(vi,null),(0,e.createElement)(ot,{OpenPopup:a,heading:"Please Confirm",closePopup:()=>n(!1),body:()=>(0,e.createElement)("div",{className:"popup-body"},(0,e.createElement)("div",{className:"wkit-popup-content-title"},"Are you sure want to permanently delete ",k?.Plugin?k.Plugin:""," ?"),(0,e.createElement)("div",{className:"wkit-popup-buttons"},(0,e.createElement)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>n(!1)},"No"),(0,e.createElement)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>(e=>{_(!0);const a={type:"delete_licence",token:Pe().token,licencename:e};Ei(a).then((async e=>{if(e.success){let a=await Ae();_(!1),t.wdkit_set_toast([e?.message,e?.description,"","success"]),a?.data&&t.wdkit_set_meta(a?.data)}else _(!1),t.wdkit_set_toast([e?.message,e?.description,"","danger"]);n(!1),E()}))})(k.value)},1==h?(0,e.createElement)(Fe,null):(0,e.createElement)("span",null,"Yes"))))}))})),{Fragment:yi}=wp.element,{__:Ni}=wp.i18n,$i=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Il(t)),wdkit_set_meta:t=>e(Wl(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{var a=wdkitData.WDKIT_ASSETS;const[n,i]=(0,l.useState)("1"),[s,r]=(0,l.useState)({elementor:"loading","the-plus-addons-for-block-editor":"loading",bricks:"loading"}),[o,c]=(0,l.useState)(!0),[d,m]=(0,l.useState)(""),[p,u]=(0,l.useState)(!1),[w,g]=(0,l.useState)(!0),C=[{name:"elementor",label:"Elementor",plugin_slug:"elementor/elementor.php",free_pro:"0",icon:"images/wb-svg/elementor.svg",type:"plugin",status:"elementorplg"},{name:"the-plus-addons-for-block-editor",label:"The Plus Blocks for Gutenberg",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",free_pro:"0",icon:"images/jpg/tpag-logo.png",type:"plugin",status:"tpagplg"},{name:"bricks",label:"Bricks Builder",plugin_slug:"bricks/bricks.php",link:"https://academy.bricksbuilder.io/article/installation-activation/",free_pro:"1",icon:"images/wb-svg/bricks.svg",type:"theme",status:"bricksplg"}];(0,l.useEffect)((()=>{var e=Object.assign({},s);C.map((async t=>{let a={freepro:t.free_pro,original_slug:t.name,plugin_slug:t.plugin_slug,type:t.type},l={type:"check_plugins_depends",plugins:JSON.stringify([a]),editor:wdkitData.use_editor};await je(l).then((async a=>{if(a.success)var l=a.data?.plugins?.[0]?.status?a.data?.plugins?.[0]?.status:"inactive";else l="inactive";e=Object.assign({},e,{[t.name]:l})})),r(e)}))}),[]),(0,l.useEffect)((()=>{const e=Object.values(s).every((e=>"loading"!==e));t.setting_data&&e&&c(!1)}),[t.setting_data,s]);const v=async(e,a)=>{m(e.name);let l={freepro:e.free_pro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type},n={type:"install_plugins_depends",plugins:JSON.stringify(l),editor:wdkitData.use_editor},i=await je(n);if(void 0===i.success)return null==a&&v(e,"repeate"),!1;if(i.success){let a=Object.assign({},s,{[e.name]:i.status});r(a),t.wdkit_set_toast([i?.message,i?.description,"","success"]),m("")}else m(""),t.wdkit_set_toast([i?.message,i?.description,"","danger"])},b=(e,a,l)=>{if(null!=l&&!t.setting_data?.[l])return!1;let n=Object.assign({},t.setting_data,{[a]:e.target.checked}),i={type:"wkit_setting_panel",event:"set",data:JSON.stringify(n)};t.wdkit_GetSettings_redux(n);let s=Object.assign({},t?.wdkit_meta,{Setting:n});t.wdkit_set_meta(s),je(i).then((async e=>{1==e?.success&&e?.data}))};return(0,e.createElement)(yi,null,n>0&&(0,e.createElement)("div",{className:"wdkit-onboarding-main"},(0,e.createElement)("div",{className:"wdkit-onboarding-popup"},o?(0,e.createElement)("div",{className:"wkit-loader"},(0,e.createElement)("img",{src:a+"images/jpg/wdkit_loader.gif",draggable:"false"})):(0,e.createElement)(yi,null,(0,e.createElement)((()=>"1"==n?(0,e.createElement)("div",{className:"wdkit-onboarding-popup-body"},(0,e.createElement)("div",{className:"wdkit-onboarding-image"},(0,e.createElement)("img",{src:a+"images/onbording/ifboth_activated.png",alt:"onboarding-image",draggable:"false"})),(0,e.createElement)("div",{className:"wdkit-onboarding-box"},(0,e.createElement)("div",{className:"wdkit-onboarding-header"},(0,e.createElement)("span",null,Ni("Setup WDesignKit"))),(0,e.createElement)("div",{className:"wdkit-onboarding-box-content"},(0,e.createElement)("div",{className:"wdkit-select-pageBuilder"},(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-header"},(0,e.createElement)("span",null,Ni("Page Templates")),(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"wkit-switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>{b(e,"template")},checked:t.setting_data?.template}),(0,e.createElement)("span",{className:"wkit-slider round"})))),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.setting_data?.template?1:.2}},(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,e.createElement)("span",null,Ni("Elementor"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-elementor"},(0,e.createElement)("input",{type:"checkbox",id:"wkit-pageTemplate-elementor",onChange:e=>b(e,"elementor_template","template"),checked:t.setting_data?.elementor_template}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99922 16.2992C5.93053 16.2992 3.94657 15.4774 2.48379 14.0147C1.021 12.5519 0.199219 10.5679 0.199219 8.49922C0.199219 6.43053 1.021 4.44657 2.48379 2.98379C3.94657 1.521 5.93053 0.699219 7.99922 0.699219C10.0679 0.699219 12.0519 1.521 13.5147 2.98379C14.9774 4.44657 15.7992 6.43053 15.7992 8.49922C15.7992 10.5679 14.9774 12.5519 13.5147 14.0147C12.0519 15.4774 10.0679 16.2992 7.99922 16.2992ZM11.558 5.71364L6.93647 10.2542L4.44047 7.80307C4.34773 7.71471 4.22395 7.66641 4.09588 7.66859C3.96781 7.67077 3.84575 7.72327 3.75608 7.81473C3.66641 7.9062 3.61634 8.02928 3.61669 8.15736C3.61705 8.28545 3.6678 8.40825 3.75797 8.49922L6.59424 11.2848C6.68537 11.3741 6.80789 11.4241 6.93549 11.4241C7.0631 11.4241 7.18562 11.3741 7.27674 11.2848L12.2405 6.40979C12.2872 6.36523 12.3247 6.31181 12.3506 6.25265C12.3766 6.19348 12.3905 6.12975 12.3916 6.06515C12.3927 6.00056 12.381 5.93639 12.3571 5.87637C12.3331 5.81636 12.2975 5.76169 12.2523 5.71556C12.2071 5.66943 12.1531 5.63274 12.0936 5.60764C12.0341 5.58254 11.9701 5.56952 11.9055 5.56935C11.8409 5.56917 11.7769 5.58183 11.7173 5.6066C11.6576 5.63138 11.6035 5.66776 11.558 5.71364Z"})))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/gutenberg.svg",alt:"Gutenberg",draggable:"false"}),(0,e.createElement)("span",null,Ni("Gutenberg"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-gutenberg"},(0,e.createElement)("input",{type:"checkbox",id:"wkit-pageTemplate-gutenberg",onChange:e=>b(e,"gutenberg_template","template"),checked:t.setting_data?.gutenberg_template}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99922 16.2992C5.93053 16.2992 3.94657 15.4774 2.48379 14.0147C1.021 12.5519 0.199219 10.5679 0.199219 8.49922C0.199219 6.43053 1.021 4.44657 2.48379 2.98379C3.94657 1.521 5.93053 0.699219 7.99922 0.699219C10.0679 0.699219 12.0519 1.521 13.5147 2.98379C14.9774 4.44657 15.7992 6.43053 15.7992 8.49922C15.7992 10.5679 14.9774 12.5519 13.5147 14.0147C12.0519 15.4774 10.0679 16.2992 7.99922 16.2992ZM11.558 5.71364L6.93647 10.2542L4.44047 7.80307C4.34773 7.71471 4.22395 7.66641 4.09588 7.66859C3.96781 7.67077 3.84575 7.72327 3.75608 7.81473C3.66641 7.9062 3.61634 8.02928 3.61669 8.15736C3.61705 8.28545 3.6678 8.40825 3.75797 8.49922L6.59424 11.2848C6.68537 11.3741 6.80789 11.4241 6.93549 11.4241C7.0631 11.4241 7.18562 11.3741 7.27674 11.2848L12.2405 6.40979C12.2872 6.36523 12.3247 6.31181 12.3506 6.25265C12.3766 6.19348 12.3905 6.12975 12.3916 6.06515C12.3927 6.00056 12.381 5.93639 12.3571 5.87637C12.3331 5.81636 12.2975 5.76169 12.2523 5.71556C12.2071 5.66943 12.1531 5.63274 12.0936 5.60764C12.0341 5.58254 11.9701 5.56952 11.9055 5.56935C11.8409 5.56917 11.7769 5.58183 11.7173 5.6066C11.6576 5.63138 11.6035 5.66776 11.558 5.71364Z"})))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,e.createElement)("span",null,Ni("Bricks"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-bricks"},(0,e.createElement)("span",{className:"wkit-commign-soon-tag"},Ni("Coming Soon")))))),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder"},(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-header"},(0,e.createElement)("span",null,Ni("Widget Builder")),(0,e.createElement)("div",{className:"wkit-switch-setting-wrap"},(0,e.createElement)("label",{className:"wkit-switch"},(0,e.createElement)("input",{type:"checkbox",onChange:e=>{b(e,"builder")},checked:t.setting_data?.builder}),(0,e.createElement)("span",{className:"wkit-slider round"})))),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.setting_data?.builder?1:.2}},(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,e.createElement)("span",null,Ni("Elementor"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-elementor"},(0,e.createElement)("input",{type:"checkbox",id:"wkit-widgetBuilder-elementor",onChange:e=>{b(e,"elementor_builder","builder")},checked:t.setting_data?.elementor_builder}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99922 16.2992C5.93053 16.2992 3.94657 15.4774 2.48379 14.0147C1.021 12.5519 0.199219 10.5679 0.199219 8.49922C0.199219 6.43053 1.021 4.44657 2.48379 2.98379C3.94657 1.521 5.93053 0.699219 7.99922 0.699219C10.0679 0.699219 12.0519 1.521 13.5147 2.98379C14.9774 4.44657 15.7992 6.43053 15.7992 8.49922C15.7992 10.5679 14.9774 12.5519 13.5147 14.0147C12.0519 15.4774 10.0679 16.2992 7.99922 16.2992ZM11.558 5.71364L6.93647 10.2542L4.44047 7.80307C4.34773 7.71471 4.22395 7.66641 4.09588 7.66859C3.96781 7.67077 3.84575 7.72327 3.75608 7.81473C3.66641 7.9062 3.61634 8.02928 3.61669 8.15736C3.61705 8.28545 3.6678 8.40825 3.75797 8.49922L6.59424 11.2848C6.68537 11.3741 6.80789 11.4241 6.93549 11.4241C7.0631 11.4241 7.18562 11.3741 7.27674 11.2848L12.2405 6.40979C12.2872 6.36523 12.3247 6.31181 12.3506 6.25265C12.3766 6.19348 12.3905 6.12975 12.3916 6.06515C12.3927 6.00056 12.381 5.93639 12.3571 5.87637C12.3331 5.81636 12.2975 5.76169 12.2523 5.71556C12.2071 5.66943 12.1531 5.63274 12.0936 5.60764C12.0341 5.58254 11.9701 5.56952 11.9055 5.56935C11.8409 5.56917 11.7769 5.58183 11.7173 5.6066C11.6576 5.63138 11.6035 5.66776 11.558 5.71364Z"})))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/gutenberg.svg",alt:"Gutenberg",draggable:"false"}),(0,e.createElement)("span",null,Ni("Gutenberg"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-gutenberg"},(0,e.createElement)("input",{type:"checkbox",id:"wkit-widgetBuilder-gutenberg",onChange:e=>{b(e,"gutenberg_builder","builder")},checked:t.setting_data?.gutenberg_builder}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99922 16.2992C5.93053 16.2992 3.94657 15.4774 2.48379 14.0147C1.021 12.5519 0.199219 10.5679 0.199219 8.49922C0.199219 6.43053 1.021 4.44657 2.48379 2.98379C3.94657 1.521 5.93053 0.699219 7.99922 0.699219C10.0679 0.699219 12.0519 1.521 13.5147 2.98379C14.9774 4.44657 15.7992 6.43053 15.7992 8.49922C15.7992 10.5679 14.9774 12.5519 13.5147 14.0147C12.0519 15.4774 10.0679 16.2992 7.99922 16.2992ZM11.558 5.71364L6.93647 10.2542L4.44047 7.80307C4.34773 7.71471 4.22395 7.66641 4.09588 7.66859C3.96781 7.67077 3.84575 7.72327 3.75608 7.81473C3.66641 7.9062 3.61634 8.02928 3.61669 8.15736C3.61705 8.28545 3.6678 8.40825 3.75797 8.49922L6.59424 11.2848C6.68537 11.3741 6.80789 11.4241 6.93549 11.4241C7.0631 11.4241 7.18562 11.3741 7.27674 11.2848L12.2405 6.40979C12.2872 6.36523 12.3247 6.31181 12.3506 6.25265C12.3766 6.19348 12.3905 6.12975 12.3916 6.06515C12.3927 6.00056 12.381 5.93639 12.3571 5.87637C12.3331 5.81636 12.2975 5.76169 12.2523 5.71556C12.2071 5.66943 12.1531 5.63274 12.0936 5.60764C12.0341 5.58254 11.9701 5.56952 11.9055 5.56935C11.8409 5.56917 11.7769 5.58183 11.7173 5.6066C11.6576 5.63138 11.6035 5.66776 11.558 5.71364Z"})))),(0,e.createElement)("hr",null),(0,e.createElement)("div",{className:"wdkit-select-pageBuilder-content"},(0,e.createElement)("div",{className:"wdkit-pageBuilder-meta"},(0,e.createElement)("img",{src:a+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,e.createElement)("span",null,Ni("Bricks"))),(0,e.createElement)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-bricks"},(0,e.createElement)("input",{type:"checkbox",id:"wkit-widgetBuilder-bricks",onChange:e=>{b(e,"bricks_builder","builder")},checked:t.setting_data?.bricks_builder}),(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.99922 16.2992C5.93053 16.2992 3.94657 15.4774 2.48379 14.0147C1.021 12.5519 0.199219 10.5679 0.199219 8.49922C0.199219 6.43053 1.021 4.44657 2.48379 2.98379C3.94657 1.521 5.93053 0.699219 7.99922 0.699219C10.0679 0.699219 12.0519 1.521 13.5147 2.98379C14.9774 4.44657 15.7992 6.43053 15.7992 8.49922C15.7992 10.5679 14.9774 12.5519 13.5147 14.0147C12.0519 15.4774 10.0679 16.2992 7.99922 16.2992ZM11.558 5.71364L6.93647 10.2542L4.44047 7.80307C4.34773 7.71471 4.22395 7.66641 4.09588 7.66859C3.96781 7.67077 3.84575 7.72327 3.75608 7.81473C3.66641 7.9062 3.61634 8.02928 3.61669 8.15736C3.61705 8.28545 3.6678 8.40825 3.75797 8.49922L6.59424 11.2848C6.68537 11.3741 6.80789 11.4241 6.93549 11.4241C7.0631 11.4241 7.18562 11.3741 7.27674 11.2848L12.2405 6.40979C12.2872 6.36523 12.3247 6.31181 12.3506 6.25265C12.3766 6.19348 12.3905 6.12975 12.3916 6.06515C12.3927 6.00056 12.381 5.93639 12.3571 5.87637C12.3331 5.81636 12.2975 5.76169 12.2523 5.71556C12.2071 5.66943 12.1531 5.63274 12.0936 5.60764C12.0341 5.58254 11.9701 5.56952 11.9055 5.56935C11.8409 5.56917 11.7769 5.58183 11.7173 5.6066C11.6576 5.63138 11.6035 5.66776 11.558 5.71364Z"}))))))))):"2"==n?(0,e.createElement)("div",{className:"wdkit-onboarding-popup-body"},(0,e.createElement)("div",{className:"wdkit-onboarding-image"},(0,e.createElement)("div",{className:"wkit-onboarding-bg-image"},(0,e.createElement)("div",{className:"wdkit-onboarding-image-content"},(0,e.createElement)("img",{src:a+"images/onbording/basic_requirements.png",alt:"Onboarding-Image",draggable:"false"})),"active"==s?.bricks&&t?.setting_data?.bricks_builder&&(0,e.createElement)("div",{className:"wkit-inner-image-content wkit-inner-bricks"},(0,e.createElement)("svg",{className:"wkit-image-content-icon",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.7074 21.4147C16.6209 21.4147 21.4147 16.6209 21.4147 10.7074C21.4147 4.79385 16.6209 0 10.7074 0C4.79385 0 0 4.79385 0 10.7074C0 16.6209 4.79385 21.4147 10.7074 21.4147ZM10.598 8.84798C10.2221 9.04794 9.92616 9.30789 9.7102 9.62783V6.42444H8.03052V15.3027H9.7102V14.3549C9.93415 14.6669 10.2301 14.9228 10.598 15.1228C10.974 15.3147 11.4099 15.4107 11.9058 15.4107C12.4737 15.4107 12.9856 15.2668 13.4415 14.9788C13.9054 14.6909 14.2693 14.2869 14.5333 13.767C14.8052 13.2391 14.9412 12.6353 14.9412 11.9554C14.9412 11.2755 14.8052 10.6796 14.5333 10.1677C14.2693 9.64782 13.9054 9.2479 13.4415 8.96795C12.9856 8.68801 12.4737 8.54803 11.9058 8.54803C11.4179 8.54803 10.982 8.64802 10.598 8.84798ZM12.9736 10.9236C13.1415 11.2115 13.2255 11.5555 13.2255 11.9554C13.2255 12.3633 13.1415 12.7152 12.9736 13.0112C12.8136 13.3071 12.5976 13.5351 12.3257 13.6951C12.0617 13.855 11.7738 13.935 11.4619 13.935C11.1579 13.935 10.87 13.859 10.598 13.7071C10.3341 13.5471 10.1181 13.3191 9.95015 13.0232C9.79018 12.7272 9.7102 12.3793 9.7102 11.9794C9.7102 11.5795 9.79018 11.2315 9.95015 10.9356C10.1181 10.6396 10.3341 10.4157 10.598 10.2637C10.87 10.1037 11.1579 10.0238 11.4619 10.0238C11.7738 10.0238 12.0617 10.0997 12.3257 10.2517C12.5976 10.4037 12.8136 10.6276 12.9736 10.9236Z",fill:"black"})),(0,e.createElement)("span",null,Ni("Bricks Elements Builder"))),"active"==s?.elementor&&(0,e.createElement)("div",{className:"wkit-inner-image-content wkit-inner-elementor"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none"},(0,e.createElement)("path",{d:"M14.0541 0C6.29146 0 0 6.29143 0 14.054C0 21.8141 6.29146 28.1081 14.0541 28.1081C21.8167 28.1081 28.1081 21.8165 28.1081 14.054C28.1057 6.29143 21.8142 0 14.0541 0ZM10.5412 19.9078H8.20013V8.19752H10.5412V19.9078ZM19.908 19.9078H12.8823V17.5669H19.908V19.9078ZM19.908 15.2232H12.8823V12.8822H19.908V15.2232ZM19.908 10.5386H12.8823V8.19752H19.908V10.5386Z",fill:"white"})),(0,e.createElement)("span",null,Ni("Elementor Widget Builder"))),"active"==s?.["the-plus-addons-for-block-editor"]&&t?.setting_data?.gutenberg_builder&&(0,e.createElement)("div",{className:"wkit-inner-image-content wkit-inner-gutenberg"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.98499 19.97C15.4996 19.97 19.97 15.4995 19.97 9.98499C19.97 4.47046 15.4996 0 9.98499 0C4.47046 0 0 4.47046 0 9.98499C0 15.4995 4.47046 19.97 9.98499 19.97ZM6.01361 10.0663C5.90125 7.36377 6.47913 5.95776 7.98822 5.30176C9.57758 4.59875 11.7609 5.17676 12.403 6.48889C12.676 7.03564 12.7081 7.23877 12.5635 7.48865C12.2585 8.05103 11.9374 7.86365 11.5843 6.95764C11.1669 5.81726 9.36884 5.39551 8.21295 6.14526C7.26581 6.75452 7.02496 7.45752 7.02496 9.69128C7.02496 11.3784 7.07312 11.722 7.36212 12.1907C7.84375 13.0031 8.61432 13.4404 9.54541 13.4404C11.0706 13.4404 11.7609 12.7062 11.7609 11.0504C11.7609 10.5818 11.7127 10.1755 11.6646 10.113C11.4719 9.92566 10.621 10.3787 10.1715 10.8942C9.85046 11.269 9.60968 11.4253 9.4491 11.3628C9.06384 11.2065 9.1441 10.8473 9.68994 10.238C10.1876 9.69128 10.5087 9.56628 12.2906 9.22266C12.9167 9.09766 13.3984 8.87903 13.7515 8.58215C14.3776 8.05103 14.8111 7.98865 14.8111 8.42603C14.8111 8.8009 13.7836 9.64441 13.1896 9.76941C12.7723 9.86316 12.7562 9.91003 12.692 11.144C12.6439 11.9095 12.5154 12.6282 12.3549 12.9249C11.9695 13.6436 11.1187 14.0966 9.93073 14.1747C8.26111 14.3152 7.12134 13.7528 6.43097 12.4407C6.15808 11.9408 6.07782 11.4409 6.01361 10.0663Z",fill:"white"})),(0,e.createElement)("span",null,Ni("Gutenberg Blocks Builder"))))),(0,e.createElement)("div",{className:"wdkit-onboarding-box"},(0,e.createElement)("div",{className:"wdkit-onboarding-header"},(0,e.createElement)("span",null,Ni("Basic Requirements"))),(0,e.createElement)("div",{className:"wdkit-onboarding-basic"},C.filter((e=>"bricks"===e.name&&t?.setting_data?.bricks_builder||"the-plus-addons-for-block-editor"===e.name&&(t?.setting_data?.gutenberg_builder||t?.setting_data?.gutenberg_template)||"elementor"===e.name&&(t?.setting_data?.elementor_builder||t?.setting_data?.elementor_template)?e:void 0)).map(((t,l)=>(0,e.createElement)("div",{className:"wdkit-onboarding-basic-content",key:l},(0,e.createElement)("div",{className:`wdkit-onboarding-basic-content-status wkit-${s?.[t.name]}-plugin`},"active"==s?.[t.name]?(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},(0,e.createElement)("path",{d:"M8.33335 2.5L3.75002 7.08333L1.66669 5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})):(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 1.33337C2.97496 1.33337 1.33334 2.975 1.33334 5.00004C1.33334 7.02508 2.97496 8.66671 5 8.66671C7.02505 8.66671 8.66667 7.02508 8.66667 5.00004C8.66667 2.975 7.02505 1.33337 5 1.33337ZM0.333336 5.00004C0.333336 2.42271 2.42267 0.333374 5 0.333374C7.57733 0.333374 9.66667 2.42271 9.66667 5.00004C9.66667 7.57737 7.57733 9.66671 5 9.66671C2.42267 9.66671 0.333336 7.57737 0.333336 5.00004ZM5 2.83337C5.27614 2.83337 5.5 3.05723 5.5 3.33337V5.00004C5.5 5.27618 5.27614 5.50004 5 5.50004C4.72386 5.50004 4.5 5.27618 4.5 5.00004V3.33337C4.5 3.05723 4.72386 2.83337 5 2.83337ZM5 6.16663C4.72386 6.16663 4.5 6.39048 4.5 6.66663C4.5 6.94277 4.72386 7.16663 5 7.16663H5.00417C5.28031 7.16663 5.50417 6.94277 5.50417 6.66663C5.50417 6.39048 5.28031 6.16663 5.00417 6.16663H5Z",fill:"white"})),(0,e.createElement)("span",null,"manually"==s?.[t.name]?"unavailable":s?.[t.name])),(0,e.createElement)("div",{className:"wdkit-onboarding-basic-content-body"},(0,e.createElement)("div",{className:"wdkit-onboarding-basic-content-header"},(0,e.createElement)("span",null,t.label),(0,e.createElement)("img",{src:a+t.icon,alt:"Elementor",draggable:"false"})),"active"==s?.[t.name]&&(0,e.createElement)("div",{className:"wdkit-onboarding-basic-content-installed"},(0,e.createElement)("span",null,"No Action Needed")),("inactive"==s?.[t.name]||"unavailable"==s?.[t.name])&&(0,e.createElement)("div",{className:"wdkit-onboarding-basic-content-notInstalled",onClick:()=>{v(t)}},d==t.name?(0,e.createElement)(Fe,null):(0,e.createElement)("span",null,"inactive"==s?.[t.name]?"Activate Now":"Install & Activate")),"manually"==s?.[t.name]&&(0,e.createElement)("div",{className:"wdkit-onboarding-install-manually"},(0,e.createElement)("a",{href:t.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("span",null,Ni("How to Install ?"))))))))))):"3"==n?(0,e.createElement)("div",{className:"wdkit-onboarding-popup-body"},(0,e.createElement)("div",{className:"wdkit-onboarding-image"},(0,e.createElement)("img",{src:a+"images/onbording/check-our-all-features.png",alt:"Onboarding-Image",draggable:"false"})),(0,e.createElement)("div",{className:"wdkit-onboarding-box"},(0,e.createElement)("div",{className:"wdkit-onboarding-header"},(0,e.createElement)("span",null,Ni("Packed with Everything You Need for Exceptional Websites"))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures"},(0,e.createElement)("a",{href:"https://wdesignkit.com/browse/template",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onboarding-boxallfeatures"},(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-svg"},(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 11.0385C9 9.8512 9.96253 8.88867 11.1499 8.88867H21.0723C22.2597 8.88867 23.2222 9.8512 23.2222 11.0385V13.1057V20.961C23.2222 22.1483 22.2597 23.1108 21.0723 23.1108H11.1499C9.96253 23.1108 9 22.1483 9 20.961V13.1057V11.0385ZM11.1499 9.88091C10.5105 9.88091 9.99225 10.3992 9.99225 11.0385V12.6096H22.23V11.0385C22.23 10.3992 21.7117 9.88091 21.0723 9.88091H11.1499ZM22.23 13.6018H9.99225V20.961C9.99225 21.6003 10.5105 22.1186 11.1499 22.1186H21.0723C21.7117 22.1186 22.23 21.6003 22.23 20.961V13.6018ZM10.6537 15.9997C10.6537 15.7257 10.8759 15.5036 11.1499 15.5036H21.0723C21.3463 15.5036 21.5685 15.7257 21.5685 15.9997C21.5685 16.2737 21.3463 16.4959 21.0723 16.4959H11.1499C10.8759 16.4959 10.6537 16.2737 10.6537 15.9997ZM11.1558 11.4492C11.1558 11.2209 11.3409 11.0358 11.5693 11.0358C11.7976 11.0358 11.9827 11.2209 11.9827 11.4492C11.9827 11.6776 11.7976 11.8627 11.5693 11.8627C11.3409 11.8627 11.1558 11.6776 11.1558 11.4492ZM13.222 11.0358C12.9937 11.0358 12.8086 11.2209 12.8086 11.4492C12.8086 11.6776 12.9937 11.8627 13.222 11.8627C13.4504 11.8627 13.6355 11.6776 13.6355 11.4492C13.6355 11.2209 13.4504 11.0358 13.222 11.0358ZM11.6726 17.8604C11.3872 17.8604 11.1558 18.0918 11.1558 18.3772V19.4108C11.1558 19.6963 11.3872 19.9276 11.6726 19.9276H12.7062C12.9916 19.9276 13.223 19.6963 13.223 19.4108V18.3772C13.223 18.0918 12.9916 17.8604 12.7062 17.8604H11.6726ZM15.5831 17.8604C15.2976 17.8604 15.0663 18.0918 15.0663 18.3772V19.4108C15.0663 19.6963 15.2976 19.9276 15.5831 19.9276H16.6166C16.9021 19.9276 17.1334 19.6963 17.1334 19.4108V18.3772C17.1334 18.0918 16.9021 17.8604 16.6166 17.8604H15.5831ZM19.0111 18.3772C19.0111 18.0918 19.2425 17.8604 19.5279 17.8604H20.5615C20.8469 17.8604 21.0783 18.0918 21.0783 18.3772V19.4108C21.0783 19.6963 20.8469 19.9276 20.5615 19.9276H19.5279C19.2425 19.9276 19.0111 19.6963 19.0111 19.4108V18.3772ZM14.8766 11.0358C14.6482 11.0358 14.4631 11.2209 14.4631 11.4492C14.4631 11.6776 14.6482 11.8627 14.8766 11.8627C15.1049 11.8627 15.29 11.6776 15.29 11.4492C15.29 11.2209 15.1049 11.0358 14.8766 11.0358Z",fill:"white"}))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-name"},(0,e.createElement)("span",null,Ni("Browse Our Templates")),(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.91675 5L12.9167 10L7.91675 15",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("a",{href:"https://wdesignkit.com/browse/widget",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onboarding-boxallfeatures"},(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-svg"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"#040483"},(0,e.createElement)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z",fill:"#040483"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 11.6666C9 10.1939 10.1939 9 11.6667 9C13.1394 9 14.3334 10.1939 14.3334 11.6666C14.3334 12.2475 14.1477 12.7849 13.8324 13.2229L14.8048 14.1952C15.0651 14.4556 15.0651 14.8777 14.8048 15.1381C14.5444 15.3984 14.1223 15.3984 13.8619 15.1381L12.8035 14.0796C12.4586 14.2423 12.0733 14.3333 11.6667 14.3333C10.1939 14.3333 9 13.1394 9 11.6666ZM11.6667 13C12.4031 13 13 12.403 13 11.6666C13 10.9303 12.4031 10.3333 11.6667 10.3333C10.9303 10.3333 10.3334 10.9303 10.3334 11.6666C10.3334 12.403 10.9303 13 11.6667 13ZM17 9.66662C17 9.29848 17.2985 9 17.6667 9H21.6667C22.0349 9 22.3334 9.29848 22.3334 9.66662V13.6666C22.3334 14.0348 22.0349 14.3333 21.6667 14.3333H17.6667C17.2985 14.3333 17 14.0348 17 13.6666V9.66662ZM18.3334 10.3333V13H21V10.3333H18.3334ZM9 17.6666C9 17.2985 9.29847 17 9.66668 17H13.6667C14.0349 17 14.3334 17.2985 14.3334 17.6666V21.6666C14.3334 22.0348 14.0349 22.3333 13.6667 22.3333H9.66668C9.29847 22.3333 9 22.0348 9 21.6666V17.6666ZM10.3334 18.3333V21H13V18.3333H10.3334ZM17 17.6666C17 17.2985 17.2985 17 17.6667 17H21.6667C22.0349 17 22.3334 17.2985 22.3334 17.6666V21.6666C22.3334 22.0348 22.0349 22.3333 21.6667 22.3333H17.6667C17.2985 22.3333 17 22.0348 17 21.6666V17.6666ZM18.3334 18.3333V21H21V18.3333H18.3334Z",fill:"white"}))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-name"},(0,e.createElement)("span",null,Ni("Widget Library")),(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.91675 5L12.9167 10L7.91675 15",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("a",{href:"https://wdesignkit.com/browse/figma",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onboarding-boxallfeatures"},(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-svg"},(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M18.5675 13.9873H15.5088V8H18.5675C20.2182 8 21.5608 9.34267 21.5608 10.9933C21.5608 12.644 20.2182 13.9873 18.5675 13.9873ZM16.4895 13.0067H18.5675C19.6775 13.0067 20.5802 12.1033 20.5802 10.994C20.5802 9.88467 19.6768 8.98133 18.5675 8.98133H16.4895V13.0067ZM16.4895 13.9873H13.4315C11.7808 13.9873 10.4382 12.6447 10.4382 10.994C10.4382 9.34333 11.7808 8 13.4315 8H16.4902L16.4895 13.9873ZM13.4315 8.98067C12.3215 8.98067 11.4188 9.884 11.4188 10.9933C11.4188 12.1027 12.3215 13.0067 13.4315 13.0067H15.5095V8.98067H13.4315ZM16.4895 18.9933H13.4315C11.7808 18.9933 10.4382 17.6507 10.4382 16C10.4382 14.3493 11.7808 13.0067 13.4315 13.0067H16.4895V18.9933ZM13.4315 13.9873C12.3215 13.9873 11.4188 14.8907 11.4188 16C11.4188 17.1093 12.3222 18.0127 13.4315 18.0127H15.5095L15.5088 13.9873H13.4315ZM13.4475 24C11.7882 24 10.4375 22.6573 10.4375 21.0067C10.4375 19.356 11.7809 18.0127 13.4315 18.0127L16.4895 18.0133V20.974C16.4895 22.6427 15.1248 24 13.4475 24ZM13.4315 18.9933C12.8979 18.994 12.3864 19.2063 12.0091 19.5836C11.6318 19.9609 11.4195 20.4724 11.4188 21.006C11.4188 22.116 12.3288 23.0187 13.4482 23.0187C14.5848 23.0187 15.5102 22.1013 15.5102 20.9733V18.9933H13.4315ZM18.5675 18.9933H18.5022C16.8515 18.9933 15.5088 17.6507 15.5088 16C15.5088 14.3493 16.8515 13.0067 18.5022 13.0067H18.5675C20.2182 13.0067 21.5608 14.3493 21.5608 16C21.5608 17.6507 20.2182 18.9933 18.5675 18.9933ZM18.5028 13.9873C17.3928 13.9873 16.4902 14.8907 16.4902 16C16.4902 17.1093 17.3935 18.0127 18.5028 18.0127H18.5682C19.6782 18.0127 20.5808 17.1093 20.5808 16C20.5808 14.8907 19.6768 13.9873 18.5675 13.9873H18.5028Z",fill:"white"}))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-name"},(0,e.createElement)("span",null,Ni("Figma Design Templates")),(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.91675 5L12.9167 10L7.91675 15",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("a",{href:"https://wdesignkit.com/builder",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onboarding-boxallfeatures"},(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-svg"},(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},(0,e.createElement)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z",fill:"#040483"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.0669 8.21692C15.4801 7.92769 16.03 7.92769 16.4432 8.21692L21.9982 12.1054C22.6542 12.5646 22.685 13.5253 22.0597 14.0255L21.6444 14.3577L21.9982 14.6054C22.6542 15.0646 22.685 16.0253 22.0597 16.5255L21.6444 16.8577L21.9982 17.1054C22.6542 17.5646 22.685 18.5253 22.0597 19.0255L19.4215 21.136L17.3376 22.8031C16.4124 23.5433 15.0977 23.5433 14.1725 22.8031L12.0885 21.136L9.45038 19.0255C8.82508 18.5253 8.85584 17.5646 9.51186 17.1054L9.86566 16.8577L9.45038 16.5255C8.82508 16.0253 8.85584 15.0646 9.51186 14.6054L9.86566 14.3577L9.45038 14.0255C8.82508 13.5253 8.85584 12.5646 9.51186 12.1054L15.0669 8.21692ZM10.7337 17.5521L10.1236 17.9792C10.0507 18.0302 10.0473 18.137 10.1168 18.1926L12.7549 20.3031L14.8388 21.9702C15.3745 22.3987 16.1356 22.3987 16.6713 21.9702L18.7552 20.3031L21.3933 18.1926C21.4628 18.137 21.4594 18.0302 21.3865 17.9792L20.7764 17.5521L19.4215 18.636L17.3376 20.3031C16.4124 21.0433 15.0977 21.0433 14.1725 20.3031L12.0885 18.636L10.7337 17.5521ZM19.4215 16.136L20.7764 15.0521L21.3865 15.4792C21.4594 15.5302 21.4628 15.637 21.3933 15.6926L18.7552 17.8031L16.6713 19.4702C16.1356 19.8987 15.3745 19.8987 14.8388 19.4702L12.7549 17.8031L10.1168 15.6926C10.0473 15.637 10.0507 15.5302 10.1236 15.4792L10.7337 15.0521L12.0885 16.136L14.1725 17.8031C15.0977 18.5433 16.4124 18.5433 17.3376 17.8031L19.4215 16.136ZM15.8315 9.09077C15.7856 9.05863 15.7245 9.05863 15.6786 9.09077L10.1236 12.9792C10.0507 13.0302 10.0473 13.137 10.1168 13.1926L12.7549 15.3031L14.8388 16.9702C15.3745 17.3987 16.1356 17.3987 16.6713 16.9702L18.7552 15.3031L21.3933 13.1926C21.4628 13.137 21.4594 13.0302 21.3865 12.9792L15.8315 9.09077Z",fill:"white"}))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-name"},(0,e.createElement)("span",null,Ni("Widget Builder")),(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.91675 5L12.9167 10L7.91675 15",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))))),(0,e.createElement)("a",{href:"https://wdesignkit.com/workspace",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onboarding-boxallfeatures"},(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-svg"},(0,e.createElement)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32C24.8366 32 32 24.8366 32 16Z",fill:"#040483"}),(0,e.createElement)("path",{d:"M11.2 18.3333C12.08 18.3333 12.8 19.0333 12.8 19.8889C12.8 20.7444 12.08 21.4444 11.2 21.4444C10.32 21.4444 9.6 20.7444 9.6 19.8889C9.6 19.0333 10.32 18.3333 11.2 18.3333ZM11.2 16.7778C9.44 16.7778 8 18.1778 8 19.8889C8 21.6 9.44 23 11.2 23C12.96 23 14.4 21.6 14.4 19.8889C14.4 18.1778 12.96 16.7778 11.2 16.7778ZM16 10.5556C16.88 10.5556 17.6 11.2556 17.6 12.1111C17.6 12.9667 16.88 13.6667 16 13.6667C15.12 13.6667 14.4 12.9667 14.4 12.1111C14.4 11.2556 15.12 10.5556 16 10.5556ZM16 9C14.24 9 12.8 10.4 12.8 12.1111C12.8 13.8222 14.24 15.2222 16 15.2222C17.76 15.2222 19.2 13.8222 19.2 12.1111C19.2 10.4 17.76 9 16 9ZM20.8 18.3333C21.68 18.3333 22.4 19.0333 22.4 19.8889C22.4 20.7444 21.68 21.4444 20.8 21.4444C19.92 21.4444 19.2 20.7444 19.2 19.8889C19.2 19.0333 19.92 18.3333 20.8 18.3333ZM20.8 16.7778C19.04 16.7778 17.6 18.1778 17.6 19.8889C17.6 21.6 19.04 23 20.8 23C22.56 23 24 21.6 24 19.8889C24 18.1778 22.56 16.7778 20.8 16.7778Z",fill:"white"}))),(0,e.createElement)("div",{className:"wdkit-onboarding-allfeatures-name"},(0,e.createElement)("span",null,Ni("Cloud Workspace")),(0,e.createElement)("span",null,(0,e.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)("path",{d:"M7.91675 5L12.9167 10L7.91675 15",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})))))))):"4"==n?(0,e.createElement)("div",{className:"wdkit-onboarding-popup-body"},(0,e.createElement)("div",{className:"wdkit-onboarding-image"},(0,e.createElement)("img",{src:a+"images/onbording/thank-you.png",alt:"Onboarding-Image",draggable:"false"})),(0,e.createElement)("div",{className:"wdkit-onboarding-box"},(0,e.createElement)("div",{className:"wdkit-onboarding-header"},(0,e.createElement)("span",null,Ni("WDesignKit is Ready to Power your WordPress Website"))),(0,e.createElement)("div",{className:"wdkit-onboarding-doubt"},(0,e.createElement)("span",null,Ni("Still in Doubt?")),(0,e.createElement)("div",{className:"wdkit-onboarding-links"},(0,e.createElement)("a",{href:"https://www.youtube.com/c/POSIMYTHInnovations",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onbording-link"},Ni("Watch Video Tutorials")),(0,e.createElement)("span",{className:"wdkit-onboarding-dot"}),(0,e.createElement)("a",{href:"https://blog.wdesignkit.com/docs/",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onbording-link"},Ni("Read Documentation")),(0,e.createElement)("span",{className:"wdkit-onboarding-dot"}),(0,e.createElement)("a",{href:"https://store.posimyth.com/login/",target:"_blank",rel:"noopener noreferrer",className:"wdkit-onbording-link"},Ni("Helpdesk")))),(0,e.createElement)("div",{className:"wdkit-onboarding-ourproducts"},(0,e.createElement)("span",null,Ni("Check our other products")),(0,e.createElement)("div",{className:"wdkit-onboarding-ourproducts-logo"},(0,e.createElement)("a",{href:"https://theplusaddons.com/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("div",{className:"wdkit-onboarding-border"},(0,e.createElement)("img",{src:a+"images/onbording/tpae.png",alt:"tpae",draggable:"false"}))),(0,e.createElement)("a",{href:"https://nexterwp.com/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("div",{className:"wdkit-onboarding-border"},(0,e.createElement)("img",{src:a+"images/onbording/nexter.png",alt:"nexter",draggable:"false"}))),(0,e.createElement)("a",{href:"https://uichemy.com/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("div",{className:"wdkit-onboarding-border"},(0,e.createElement)("img",{src:a+"images/onbording/uichemy.png",alt:"uichemy",draggable:"false"}))),(0,e.createElement)("a",{href:"https://theplusblocks.com/",target:"_blank",rel:"noopener noreferrer"},(0,e.createElement)("div",{className:"wdkit-onboarding-border"},(0,e.createElement)("img",{src:a+"images/onbording/tpag.png",alt:"tpag",draggable:"false"})))))),(0,e.createElement)("div",{className:"wkit-confirm-terms-content"},(0,e.createElement)("input",{className:"wkit-confirm-terms-inp",checked:w,type:"checkbox",onChange:e=>g(e.target.checked)}),(0,e.createElement)("span",{className:"wkit-confirm-terms-text"},"By accepting this you agree to our ",(0,e.createElement)("a",{href:wdkitData.wdkit_server_url+"terms",target:"_blank",rel:"noopener noreferrer",className:"wkit-confirm-terms-link-text"},"Terms & Conditions")))):void 0),null),(0,e.createElement)("div",{className:"wdkit-onboarding-footer"},(0,e.createElement)("div",{className:"wdkit-onboarding-footer-left"},(0,e.createElement)("button",{className:"wdkit-onboarding-skip-button",onClick:()=>{i(4)},disabled:4==n,style:4==n?{visibility:"hidden"}:{visibility:"visible"}},Ni("Skip"))),(0,e.createElement)("div",{className:"wdkit-onboarding-pagination"},(0,e.createElement)("span",{style:{color:"#040483"}},"0",n),(0,e.createElement)("span",null,"/04")),(0,e.createElement)("div",{className:"wdkit-onboarding-footer-right"},n>1&&(0,e.createElement)("button",{className:"wdkit-onboarding-back-button",onClick:()=>{i(Number(n)-1)}},Ni("Back")),4==n?(0,e.createElement)(yi,null,p?(0,e.createElement)("button",{className:"wdkit-onboarding-next-button"},(0,e.createElement)(Fe,null)):(0,e.createElement)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{(async()=>{if(u(!0),w){let e={widget_builder:!0===t?.setting_data?.builder?1:0,elementor:!0===t?.setting_data?.elementor_builder?1:0,gutenberg:!0===t?.setting_data?.gutenberg_builder?1:0,bricks:!0===t?.setting_data?.bricks_builder?1:0},a={page_templates:!0===t?.setting_data?.template?1:0,elementor:1,gutenberg:1,bricks:0},l={type:"onboarding_handler",page_template:JSON.stringify(a),page_builder:JSON.stringify(e),elementor_plugin:"active"===s?.elementor?1:0,tpag_plugin:"active"===s?.["the-plus-addons-for-block-editor"]?1:0,bricks_theme:"active"===s?.bricks?1:0};await je(l)}await setTimeout((()=>{i(0),u(!1)}),1e3)})()}},Ni("Finish"))):t.setting_data?.template&&(t.setting_data?.gutenberg_template||t.setting_data?.elementor_template)||t.setting_data?.builder&&(t.setting_data?.bricks_builder||t.setting_data?.gutenberg_builder||t.setting_data?.elementor_builder)?(0,e.createElement)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{i(Number(n)+1)}},Ni("Next")):(0,e.createElement)("div",{className:"wkit-tooltip-onboarding"},(0,e.createElement)("span",null,"Enable any one feature to continue!"),(0,e.createElement)("button",{className:"wkit-disable-next-btn",disabled:!0},Ni("Next")))))))))})),{Fragment:Li}=wp.element,{Side_menu:xi,MyUploaded:Hi,Kit_Page:Mi,Share_with_me:Vi,Favorite:Di,Manage_Workspace:Si,Activate:Zi,Workspace_single:Ri,Save_template:Bi,Main_js_container:Ti,Widget_brows:Oi,Loader_container:ji,Wdkit_Login:Ai,Wdkit_Login_Api:Pi,Browse:Wi}=wp.wkit_Pages,{Wkit_user_details:Ii,wkit_get_user_login:Fi,form_data:qi,get_userinfo:Ui}=wp.wkit_Helper,Ki=Hl((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(Wl(t)),wdkit_GetSettings_redux:t=>e(Al(t)),wdkit_set_toast:t=>e(Fl(t))})))((t=>{(0,l.useEffect)((()=>{a()}),[]);const a=async()=>{if(await Fi()){let e=await Ui();1==e?.data?.success&&("logout"!=e.data.login_status?t.wdkit_set_meta(e?.data):We())}else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await qi(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}};return(0,e.createElement)("div",{className:"wkit-main-menu-dashbord"},1!=wdkitData.WDKIT_onbording_end&&"wdkit"==window.wdkit_editor&&(0,e.createElement)($i,null),(0,e.createElement)(Ce,null,(0,e.createElement)(li,null),(0,e.createElement)("div",{className:"wkit-right-side"},(0,e.createElement)(tt,null),"disabled"==t?.wdkit_meta?.login_status&&"pro"==t?.wdkit_meta?.credits?.type&&(0,e.createElement)(Ge,null),"1"==t?.wdkit_meta?.maintenance_mode?.meta_value&&(0,e.createElement)(ze,null),(0,e.createElement)(mi,null),(0,e.createElement)(me,null,(0,e.createElement)(ce,{path:"/login",element:(0,e.createElement)(pi,null)}),(0,e.createElement)(ce,{path:"/login-api",element:(0,e.createElement)(ui,null)}),(0,e.createElement)(ce,{path:"/browse",element:(0,e.createElement)(ci,null)}),(0,e.createElement)(ce,{path:"/share_with_me",element:(0,e.createElement)(si,null)}),(0,e.createElement)(ce,{path:"/manage_workspace",element:(0,e.createElement)(ii,null)}),(0,e.createElement)(ce,{path:"/manage_workspace/workspace_template/:id",element:(0,e.createElement)(ri,null)}),(0,e.createElement)(ce,{path:"/my_uploaded",element:(0,e.createElement)(wi,null)}),(0,e.createElement)(ce,{path:"/:kit_parent/kit/:kit_id",element:(0,e.createElement)(di,null)}),(0,e.createElement)(ce,{path:"*",element:(0,e.createElement)(Hn,null)}),(0,e.createElement)(ce,{path:"/",element:(0,e.createElement)(Wi,null)}),"wdkit"==window.wdkit_editor&&(0,e.createElement)(Li,null,(0,e.createElement)(ce,{path:"/widget-listing",element:(0,e.createElement)(Ti,null)}),(0,e.createElement)(ce,{path:"/widget-listing/builder/:id",element:(0,e.createElement)(ji,null)}),(0,e.createElement)(ce,{path:"/widget-browse",element:(0,e.createElement)(oi,null)}),(0,e.createElement)(ce,{path:"/activate",element:(0,e.createElement)(fi,null)}),(0,e.createElement)(ce,{path:"/settings",element:(0,e.createElement)(ni,null)})),"wdkit"!=wdkitData.use_editor&&(0,e.createElement)(Li,null,(0,e.createElement)(ce,{path:"/save_template",element:(0,e.createElement)(gi,null)}),(0,e.createElement)(ce,{path:"/save_template/section",element:(0,e.createElement)(gi,{type:"section"})}))))),(0,e.createElement)(Ci,null))}));class Ji extends n().Component{constructor(e){super(e)}componentWillUnmount(){"wdkit"!=window.wdkit_editor&&(window.location.hash="")}render(){return(0,e.createElement)(Ki,null)}}const zi=Ji,Gi=jn(Gn),Yi=document.getElementById("wdesignkit-app");Yi&&(0,el.createRoot)(Yi).render((0,e.createElement)(Ml,{store:Gi},(0,e.createElement)(zi,null)))})()})();