GRAYBYTE WORDPRESS FILE MANAGER4620

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/wdesignkit/build/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/wdesignkit/build//index.js
(()=>{var e,t,a={505:(e,t,a)=>{e.exports=a(15)},592:(e,t,a)=>{"use strict";var i=a(516),s=a(522),n=a(948),l=a(106),r=a(615),o=a(631),d=a(202),c=a(896),p=a(845),w=a(563),m=a(656);e.exports=function(e){return new Promise((function(t,a){var g,u=e.data,h=e.headers,_=e.responseType;function C(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}i.isFormData(u)&&i.isStandardBrowserEnv()&&delete h["Content-Type"];var k=new XMLHttpRequest;if(e.auth){var v=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(v+":"+b)}var x=r(e.baseURL,e.url);function f(){if(k){var i="getAllResponseHeaders"in k?o(k.getAllResponseHeaders()):null,n={data:_&&"text"!==_&&"json"!==_?k.response:k.responseText,status:k.status,statusText:k.statusText,headers:i,config:e,request:k};s((function(e){t(e),C()}),(function(e){a(e),C()}),n),k=null}}if(k.open(e.method.toUpperCase(),l(x,e.params,e.paramsSerializer),!0),k.timeout=e.timeout,"onloadend"in k?k.onloadend=f:k.onreadystatechange=function(){k&&4===k.readyState&&(0!==k.status||k.responseURL&&0===k.responseURL.indexOf("file:"))&&setTimeout(f)},k.onabort=function(){k&&(a(new p("Request aborted",p.ECONNABORTED,e,k)),k=null)},k.onerror=function(){a(new p("Network Error",p.ERR_NETWORK,e,k,k)),k=null},k.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),a(new p(t,i.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,k)),k=null},i.isStandardBrowserEnv()){var j=(e.withCredentials||d(x))&&e.xsrfCookieName?n.read(e.xsrfCookieName):void 0;j&&(h[e.xsrfHeaderName]=j)}"setRequestHeader"in k&&i.forEach(h,(function(e,t){void 0===u&&"content-type"===t.toLowerCase()?delete h[t]:k.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(k.withCredentials=!!e.withCredentials),_&&"json"!==_&&(k.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&k.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&k.upload&&k.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){k&&(a(!e||e&&e.type?new w:e),k.abort(),k=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),u||(u=null);var y=m(x);y&&-1===["http","https","file"].indexOf(y)?a(new p("Unsupported protocol "+y+":",p.ERR_BAD_REQUEST,e)):k.send(u)}))}},15:(e,t,a)=>{"use strict";var i=a(516),s=a(12),n=a(155),l=a(343),r=function e(t){var a=new n(t),r=s(n.prototype.request,a);return i.extend(r,n.prototype,a),i.extend(r,a),r.create=function(a){return e(l(t,a))},r}(a(412));r.Axios=n,r.CanceledError=a(563),r.CancelToken=a(191),r.isCancel=a(864),r.VERSION=a(641).version,r.toFormData=a(440),r.AxiosError=a(845),r.Cancel=r.CanceledError,r.all=function(e){return Promise.all(e)},r.spread=a(980),r.isAxiosError=a(19),e.exports=r,e.exports.default=r},191:(e,t,a)=>{"use strict";var i=a(563);function s(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,i=a._listeners.length;for(t=0;t<i;t++)a._listeners[t](e);a._listeners=null}})),this.promise.then=function(e){var t,i=new Promise((function(e){a.subscribe(e),t=e})).then(e);return i.cancel=function(){a.unsubscribe(t)},i},e((function(e){a.reason||(a.reason=new i(e),t(a.reason))}))}s.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},s.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},s.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},s.source=function(){var e;return{token:new s((function(t){e=t})),cancel:e}},e.exports=s},563:(e,t,a)=>{"use strict";var i=a(845);function s(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}a(516).inherits(s,i,{__CANCEL__:!0}),e.exports=s},864:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},155:(e,t,a)=>{"use strict";var i=a(516),s=a(106),n=a(471),l=a(490),r=a(343),o=a(615),d=a(841),c=d.validators;function p(e){this.defaults=e,this.interceptors={request:new n,response:new n}}p.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&&d.assertOptions(a,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var i=[],s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));var n,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!s){var p=[l,void 0];for(Array.prototype.unshift.apply(p,i),p=p.concat(o),n=Promise.resolve(t);p.length;)n=n.then(p.shift(),p.shift());return n}for(var w=t;i.length;){var m=i.shift(),g=i.shift();try{w=m(w)}catch(e){g(e);break}}try{n=l(w)}catch(e){return Promise.reject(e)}for(;o.length;)n=n.then(o.shift(),o.shift());return n},p.prototype.getUri=function(e){e=r(this.defaults,e);var t=o(e.baseURL,e.url);return s(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],(function(e){p.prototype[e]=function(t,a){return this.request(r(a||{},{method:e,url:t,data:(a||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){function t(t){return function(a,i,s){return this.request(r(s||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:a,data:i}))}}p.prototype[e]=t(),p.prototype[e+"Form"]=t(!0)})),e.exports=p},845:(e,t,a)=>{"use strict";var i=a(516);function s(e,t,a,i,s){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),i&&(this.request=i),s&&(this.response=s)}i.inherits(s,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 n=s.prototype,l={};["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){l[e]={value:e}})),Object.defineProperties(s,l),Object.defineProperty(n,"isAxiosError",{value:!0}),s.from=function(e,t,a,l,r,o){var d=Object.create(n);return i.toFlatObject(e,d,(function(e){return e!==Error.prototype})),s.call(d,e.message,t,a,l,r),d.name=e.name,o&&Object.assign(d,o),d},e.exports=s},471:(e,t,a)=>{"use strict";var i=a(516);function s(){this.handlers=[]}s.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},s.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},s.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=s},615:(e,t,a)=>{"use strict";var i=a(137),s=a(680);e.exports=function(e,t){return e&&!i(t)?s(e,t):t}},490:(e,t,a)=>{"use strict";var i=a(516),s=a(881),n=a(864),l=a(412),r=a(563);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=s.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||l.adapter)(e).then((function(t){return o(e),t.data=s.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return n(t)||(o(e),t&&t.response&&(t.response.data=s.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},343:(e,t,a)=>{"use strict";var i=a(516);e.exports=function(e,t){t=t||{};var a={};function s(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function n(a){return i.isUndefined(t[a])?i.isUndefined(e[a])?void 0:s(void 0,e[a]):s(e[a],t[a])}function l(e){if(!i.isUndefined(t[e]))return s(void 0,t[e])}function r(a){return i.isUndefined(t[a])?i.isUndefined(e[a])?void 0:s(void 0,e[a]):s(void 0,t[a])}function o(a){return a in t?s(e[a],t[a]):a in e?s(void 0,e[a]):void 0}var d={url:l,method:l,data:l,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 i.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=d[e]||n,s=t(e);i.isUndefined(s)&&t!==o||(a[e]=s)})),a}},522:(e,t,a)=>{"use strict";var i=a(845);e.exports=function(e,t,a){var s=a.config.validateStatus;a.status&&s&&!s(a.status)?t(new i("Request failed with status code "+a.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a)):e(a)}},881:(e,t,a)=>{"use strict";var i=a(516),s=a(412);e.exports=function(e,t,a){var n=this||s;return i.forEach(a,(function(a){e=a.call(n,e,t)})),e}},412:(e,t,a)=>{"use strict";var i=a(516),s=a(18),n=a(845),l=a(896),r=a(440),o={"Content-Type":"application/x-www-form-urlencoded"};function d(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,p={transitional:l,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=a(592)),c),transformRequest:[function(e,t){if(s(t,"Accept"),s(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return d(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var a,n=i.isObject(e),l=t&&t["Content-Type"];if((a=i.isFileList(e))||n&&"multipart/form-data"===l){var o=this.env&&this.env.FormData;return r(a?{"files[]":e}:e,o&&new o)}return n||"application/json"===l?(d(t,"application/json"),function(e){if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||p.transitional,a=t&&t.silentJSONParsing,s=t&&t.forcedJSONParsing,l=!a&&"json"===this.responseType;if(l||s&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(l){if("SyntaxError"===e.name)throw n.from(e,n.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(534)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(e){p.headers[e]={}})),i.forEach(["post","put","patch"],(function(e){p.headers[e]=i.merge(o)})),e.exports=p},896:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},641:e=>{e.exports={version:"0.27.2"}},12:e=>{"use strict";e.exports=function(e,t){return function(){for(var a=new Array(arguments.length),i=0;i<a.length;i++)a[i]=arguments[i];return e.apply(t,a)}}},106:(e,t,a)=>{"use strict";var i=a(516);function s(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 n;if(a)n=a(t);else if(i.isURLSearchParams(t))n=t.toString();else{var l=[];i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),l.push(s(t)+"="+s(e))})))})),n=l.join("&")}if(n){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}},680:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},948:(e,t,a)=>{"use strict";var i=a(516);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,a,s,n,l){var r=[];r.push(e+"="+encodeURIComponent(t)),i.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),i.isString(s)&&r.push("path="+s),i.isString(n)&&r.push("domain="+n),!0===l&&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(){}}},137:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},19:(e,t,a)=>{"use strict";var i=a(516);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}},202:(e,t,a)=>{"use strict";var i=a(516);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");function s(e){var i=e;return t&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{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=s(window.location.href),function(t){var a=i.isString(t)?s(t):t;return a.protocol===e.protocol&&a.host===e.host}}():function(){return!0}},18:(e,t,a)=>{"use strict";var i=a(516);e.exports=function(e,t){i.forEach(e,(function(a,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[i])}))}},534:e=>{e.exports=null},631:(e,t,a)=>{"use strict";var i=a(516),s=["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,n,l={};return e?(i.forEach(e.split("\n"),(function(e){if(n=e.indexOf(":"),t=i.trim(e.substr(0,n)).toLowerCase(),a=i.trim(e.substr(n+1)),t){if(l[t]&&s.indexOf(t)>=0)return;l[t]="set-cookie"===t?(l[t]?l[t]:[]).concat([a]):l[t]?l[t]+", "+a:a}})),l):l}},656:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},980:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},440:(e,t,a)=>{"use strict";var i=a(516);e.exports=function(e,t){t=t||new FormData;var a=[];function s(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(n,l){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==a.indexOf(n))throw Error("Circular reference detected in "+l);a.push(n),i.forEach(n,(function(a,n){if(!i.isUndefined(a)){var r,o=l?l+"."+n:n;if(a&&!l&&"object"==typeof a)if(i.endsWith(n,"{}"))a=JSON.stringify(a);else if(i.endsWith(n,"[]")&&(r=i.toArray(a)))return void r.forEach((function(e){!i.isUndefined(e)&&t.append(o,s(e))}));e(a,o)}})),a.pop()}else t.append(l,s(n))}(e),t}},841:(e,t,a)=>{"use strict";var i=a(641).version,s=a(845),n={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){n[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}}));var l={};n.transitional=function(e,t,a){function n(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(a?". "+a:"")}return function(a,i,r){if(!1===e)throw new s(n(i," has been removed"+(t?" in "+t:"")),s.ERR_DEPRECATED);return t&&!l[i]&&(l[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(a,i,r)}},e.exports={assertOptions:function(e,t,a){if("object"!=typeof e)throw new s("options must be an object",s.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),n=i.length;n-- >0;){var l=i[n],r=t[l];if(r){var o=e[l],d=void 0===o||r(o,l,e);if(!0!==d)throw new s("option "+l+" must be "+d,s.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new s("Unknown option "+l,s.ERR_BAD_OPTION)}},validators:n}},516:(e,t,a)=>{"use strict";var i,s=a(12),n=Object.prototype.toString,l=(i=Object.create(null),function(e){var t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function r(e){return e=e.toLowerCase(),function(t){return l(t)===e}}function o(e){return Array.isArray(e)}function d(e){return void 0===e}var c=r("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function w(e){if("object"!==l(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var m=r("Date"),g=r("File"),u=r("Blob"),h=r("FileList");function _(e){return"[object Function]"===n.call(e)}var C=r("URLSearchParams");function k(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var a=0,i=e.length;a<i;a++)t.call(null,e[a],a,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}var v,b=(v="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return v&&e instanceof v});e.exports={isArray:o,isArrayBuffer:c,isBuffer:function(e){return null!==e&&!d(e)&&null!==e.constructor&&!d(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||n.call(e)===t||_(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&c(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:p,isPlainObject:w,isUndefined:d,isDate:m,isFile:g,isBlob:u,isFunction:_,isStream:function(e){return p(e)&&_(e.pipe)},isURLSearchParams:C,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:k,merge:function e(){var t={};function a(a,i){w(t[i])&&w(a)?t[i]=e(t[i],a):w(a)?t[i]=e({},a):o(a)?t[i]=a.slice():t[i]=a}for(var i=0,s=arguments.length;i<s;i++)k(arguments[i],a);return t},extend:function(e,t,a){return k(t,(function(t,i){e[i]=a&&"function"==typeof t?s(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,i){e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,a&&Object.assign(e.prototype,a)},toFlatObject:function(e,t,a){var i,s,n,l={};t=t||{};do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)l[n=i[s]]||(t[n]=e[n],l[n]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:r,endsWith:function(e,t,a){e=String(e),(void 0===a||a>e.length)&&(a=e.length),a-=t.length;var i=e.indexOf(t,a);return-1!==i&&i===a},toArray:function(e){if(!e)return null;var t=e.length;if(d(t))return null;for(var a=new Array(t);t-- >0;)a[t]=e[t];return a},isTypedArray:b,isFileList:h}},181:(e,t,a)=>{var i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,l=/^0o[0-7]+$/i,r=parseInt,o="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,d="object"==typeof self&&self&&self.Object===Object&&self,c=o||d||Function("return this")(),p=Object.prototype.toString,w=Math.max,m=Math.min,g=function(){return c.Date.now()};function u(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==p.call(e)}(e))return NaN;if(u(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=u(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var a=n.test(e);return a||l.test(e)?r(e.slice(2),a?2:8):s.test(e)?NaN:+e}e.exports=function(e,t,a){var i,s,n,l,r,o,d=0,c=!1,p=!1,_=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function C(t){var a=i,n=s;return i=s=void 0,d=t,l=e.apply(n,a)}function k(e){var a=e-o;return void 0===o||a>=t||a<0||p&&e-d>=n}function v(){var e=g();if(k(e))return b(e);r=setTimeout(v,function(e){var a=t-(e-o);return p?m(a,n-(e-d)):a}(e))}function b(e){return r=void 0,_&&i?C(e):(i=s=void 0,l)}function x(){var e=g(),a=k(e);if(i=arguments,s=this,o=e,a){if(void 0===r)return function(e){return d=e,r=setTimeout(v,t),c?C(e):l}(o);if(p)return r=setTimeout(v,t),C(o)}return void 0===r&&(r=setTimeout(v,t)),l}return t=h(t)||0,u(a)&&(c=!!a.leading,n=(p="maxWait"in a)?w(h(a.maxWait)||0,t):n,_="trailing"in a?!!a.trailing:_),x.cancel=function(){void 0!==r&&clearTimeout(r),d=0,i=o=s=r=void 0},x.flush=function(){return void 0===r?l:b(g())},x}},214:(e,t,a)=>{"use strict";function i(e){return i="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},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.DebounceInput=void 0;var s=r(a(609)),n=r(a(181)),l=["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 i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,i)}return a}function d(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){g(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 c(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var u=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&&p(e,t)}(h,e);var t,a,r,o,u=(r=h,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=m(r);if(o){var a=m(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return w(e)}(this,e)});function h(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),g(w(t=u.call(this,e)),"onChange",(function(e){e.persist();var a=t.state.value,i=t.props.minLength;t.setState({value:e.target.value},(function(){var s=t.state.value;s.length>=i?t.notify(e):a.length>s.length&&t.notify(d(d({},e),{},{target:d(d({},e.target),{},{value:""})}))}))})),g(w(t),"onKeyDown",(function(e){"Enter"===e.key&&t.forceNotify(e);var a=t.props.onKeyDown;a&&(e.persist(),a(e))})),g(w(t),"onBlur",(function(e){t.forceNotify(e);var a=t.props.onBlur;a&&(e.persist(),a(e))})),g(w(t),"createNotifier",(function(e){if(e<0)t.notify=function(){return null};else if(0===e)t.notify=t.doNotify;else{var a=(0,n.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()}}})),g(w(t),"doNotify",(function(){t.props.onChange.apply(void 0,arguments)})),g(w(t),"forceNotify",(function(e){var a=t.props.debounceTimeout;if(t.isDebouncing||!(a>0)){t.cancel&&t.cancel();var i=t.state.value,s=t.props.minLength;i.length>=s?t.doNotify(e):t.doNotify(d(d({},e),{},{target:d(d({},e.target),{},{value:i})}))}})),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=h,(a=[{key:"componentDidUpdate",value:function(e){if(!this.isDebouncing){var t=this.props,a=t.value,i=t.debounceTimeout,s=e.debounceTimeout,n=e.value,l=this.state.value;void 0!==a&&n!==a&&l!==a&&this.setState({value:a}),i!==s&&this.createNotifier(i)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var e,t,a=this.props,i=a.element,n=(a.onChange,a.value,a.minLength,a.debounceTimeout,a.forceNotifyByEnter),r=a.forceNotifyOnBlur,o=a.onKeyDown,c=a.onBlur,p=a.inputRef,w=function(e,t){if(null==e)return{};var a,i,s=function(e,t){if(null==e)return{};var a,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(s[a]=e[a]);return s}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}(a,l),m=this.state.value;e=n?{onKeyDown:this.onKeyDown}:o?{onKeyDown:o}:{},t=r?{onBlur:this.onBlur}:c?{onBlur:c}:{};var g=p?{ref:p}:{};return s.default.createElement(i,d(d(d(d({},w),{},{onChange:this.onChange,value:m},e),t),g))}}])&&c(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),h}(s.default.PureComponent);t.DebounceInput=u,g(u,"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})},677:(e,t,a)=>{"use strict";var i=a(214).DebounceInput;i.DebounceInput=i,e.exports=i},764:function(e,t,a){var i;i=e=>(()=>{var t={703:(e,t,a)=>{"use strict";var i=a(414);function s(){}function n(){}n.resetWarningCache=s,e.exports=function(){function e(e,t,a,s,n,l){if(l!==i){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:n,resetWarningCache:s};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 i(e){var s=a[e];if(void 0!==s)return s.exports;var n=a[e]={exports:{}};return t[e](n,n.exports,i),n.exports}i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var a in t)i.o(t,a)&&!i.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";i.r(s),i.d(s,{default:()=>v});var e=i(98),t=i.n(e),a=i(697),n=i.n(a);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},l.apply(this,arguments)}var r=function(e){var a=e.pageClassName,i=e.pageLinkClassName,s=e.page,n=e.selected,r=e.activeClassName,o=e.activeLinkClassName,d=e.getEventListener,c=e.pageSelectedHandler,p=e.href,w=e.extraAriaContext,m=e.pageLabelBuilder,g=e.rel,u=e.ariaLabel||"Page "+s+(w?" "+w:""),h=null;return n&&(h="page",u=e.ariaLabel||"Page "+s+" is your current page",a=void 0!==a?a+" "+r:r,void 0!==i?void 0!==o&&(i=i+" "+o):i=o),t().createElement("li",{className:a},t().createElement("a",l({rel:g,role:p?void 0:"button",className:i,href:p,tabIndex:n?"-1":"0","aria-label":u,"aria-current":h,onKeyPress:c},d(c)),m(s)))};r.propTypes={pageSelectedHandler:n().func.isRequired,selected:n().bool.isRequired,pageClassName:n().string,pageLinkClassName:n().string,activeClassName:n().string,activeLinkClassName:n().string,extraAriaContext:n().string,href:n().string,ariaLabel:n().string,page:n().number.isRequired,getEventListener:n().func.isRequired,pageLabelBuilder:n().func.isRequired,rel:n().string};const o=r;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},d.apply(this,arguments)}var c=function(e){var a=e.breakLabel,i=e.breakAriaLabel,s=e.breakClassName,n=e.breakLinkClassName,l=e.breakHandler,r=e.getEventListener,o=s||"break";return t().createElement("li",{className:o},t().createElement("a",d({className:n,role:"button",tabIndex:"0","aria-label":i,onKeyPress:l},r(l)),a))};c.propTypes={breakLabel:n().oneOfType([n().string,n().node]),breakAriaLabel:n().string,breakClassName:n().string,breakLinkClassName:n().string,breakHandler:n().func.isRequired,getEventListener:n().func.isRequired};const p=c;function w(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function m(e){return m="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},m(e)}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},g.apply(this,arguments)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function C(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}var k=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&&u(e,t)}(r,e);var a,i,s,n,l=(s=r,n=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=_(s);if(n){var a=_(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function r(e){var a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),C(h(a=l.call(this,e)),"handlePreviousPage",(function(e){var t=a.state.selected;a.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),C(h(a),"handleNextPage",(function(e){var t=a.state.selected,i=a.props.pageCount;a.handleClick(e,null,t<i-1?t+1:void 0,{isNext:!0})})),C(h(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)})),C(h(a),"handlePageChange",(function(e){a.state.selected!==e&&(a.setState({selected:e}),a.callCallback(e))})),C(h(a),"getEventListener",(function(e){return C({},a.props.eventListener,e)})),C(h(a),"handleClick",(function(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=s.isPrevious,l=void 0!==n&&n,r=s.isNext,o=void 0!==r&&r,d=s.isBreak,c=void 0!==d&&d,p=s.isActive,w=void 0!==p&&p;e.preventDefault?e.preventDefault():e.returnValue=!1;var m=a.state.selected,g=a.props.onClick,u=i;if(g){var h=g({index:t,selected:m,nextSelectedPage:i,event:e,isPrevious:l,isNext:o,isBreak:c,isActive:w});if(!1===h)return;Number.isInteger(h)&&(u=h)}void 0!==u&&a.handlePageChange(u)})),C(h(a),"handleBreakClick",(function(e,t){var i=a.state.selected;a.handleClick(t,e,i<e?a.getForwardJump():a.getBackwardJump(),{isBreak:!0})})),C(h(a),"callCallback",(function(e){void 0!==a.props.onPageChange&&"function"==typeof a.props.onPageChange&&a.props.onPageChange({selected:e})})),C(h(a),"callActiveCallback",(function(e){void 0!==a.props.onPageActive&&"function"==typeof a.props.onPageActive&&a.props.onPageActive({selected:e})})),C(h(a),"getElementPageRel",(function(e){var t=a.state.selected,i=a.props,s=i.nextPageRel,n=i.prevPageRel,l=i.selectedPageRel;return t-1===e?n:t===e?l:t+1===e?s:void 0})),C(h(a),"pagination",(function(){var e=[],i=a.props,s=i.pageRangeDisplayed,n=i.pageCount,l=i.marginPagesDisplayed,r=i.breakLabel,o=i.breakClassName,d=i.breakLinkClassName,c=i.breakAriaLabels,w=a.state.selected;if(n<=s)for(var m=0;m<n;m++)e.push(a.getPageElement(m));else{var g=s/2,u=s-g;w>n-s/2?g=s-(u=n-w):w<s/2&&(u=s-(g=w));var h,_,C=function(e){return a.getPageElement(e)},k=[];for(h=0;h<n;h++){var v=h+1;if(v<=l)k.push({type:"page",index:h,display:C(h)});else if(v>n-l)k.push({type:"page",index:h,display:C(h)});else if(h>=w-g&&h<=w+(0===w&&s>1?u-1:u))k.push({type:"page",index:h,display:C(h)});else if(r&&k.length>0&&k[k.length-1].display!==_&&(s>0||l>0)){var b=h<w?c.backward:c.forward;_=t().createElement(p,{key:h,breakAriaLabel:b,breakLabel:r,breakClassName:o,breakLinkClassName:d,breakHandler:a.handleBreakClick.bind(null,h),getEventListener:a.getEventListener}),k.push({type:"break",index:h,display:_})}}k.forEach((function(t,a){var i=t;"break"===t.type&&k[a-1]&&"page"===k[a-1].type&&k[a+1]&&"page"===k[a+1].type&&k[a+1].index-k[a-1].index<=2&&(i={type:"page",index:t.index,display:C(t.index)}),e.push(i.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"),i=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,a.state={selected:i},a}return a=r,(i=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,a=e.disableInitialCallback,i=e.extraAriaContext,s=e.pageCount,n=e.forcePage;void 0===t||a||this.callCallback(t),i&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead."),Number.isInteger(s)||console.warn("(react-paginate): The pageCount prop value provided is not an integer (".concat(s,"). Did you forget a Math.ceil()?")),void 0!==t&&t>s-1&&console.warn("(react-paginate): The initialPage prop provided is greater than the maximum page index from pageCount prop (".concat(t," > ").concat(s-1,").")),void 0!==n&&n>s-1&&console.warn("(react-paginate): The forcePage prop provided is greater than the maximum page index from pageCount prop (".concat(n," > ").concat(s-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,i=e+t.pageRangeDisplayed;return i>=a?a-1:i}},{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,i=t.pageCount,s=t.hrefAllControls;if(a)return s||e>=0&&e<i?a(e+1,i,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,i=this.props,s=i.pageClassName,n=i.pageLinkClassName,l=i.activeClassName,r=i.activeLinkClassName,d=i.extraAriaContext,c=i.pageLabelBuilder;return t().createElement(o,{key:e,pageSelectedHandler:this.handlePageSelected.bind(null,e),selected:a===e,rel:this.getElementPageRel(e),pageClassName:s,pageLinkClassName:n,activeClassName:l,activeLinkClassName:r,extraAriaContext:d,href:this.getElementHref(e),ariaLabel:this.ariaLabelBuilder(e),page:e+1,pageLabelBuilder:c,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,i=a.disabledClassName,s=a.disabledLinkClassName,n=a.pageCount,l=a.className,r=a.containerClassName,o=a.previousLabel,d=a.previousClassName,c=a.previousLinkClassName,p=a.previousAriaLabel,m=a.prevRel,u=a.nextLabel,h=a.nextClassName,_=a.nextLinkClassName,C=a.nextAriaLabel,k=a.nextRel,v=this.state.selected,b=0===v,x=v===n-1,f="".concat(w(d)).concat(b?" ".concat(w(i)):""),j="".concat(w(h)).concat(x?" ".concat(w(i)):""),y="".concat(w(c)).concat(b?" ".concat(w(s)):""),$="".concat(w(_)).concat(x?" ".concat(w(s)):""),N=b?"true":"false",L=x?"true":"false";return t().createElement("ul",{className:l||r,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:f},t().createElement("a",g({className:y,href:this.getElementHref(v-1),tabIndex:b?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":N,"aria-label":p,rel:m},this.getEventListener(this.handlePreviousPage)),o)),this.pagination(),t().createElement("li",{className:j},t().createElement("a",g({className:$,href:this.getElementHref(v+1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":L,"aria-label":C,rel:k},this.getEventListener(this.handleNextPage)),u)))}}])&&function(e,t){for(var a=0;a<t.length;a++){var i=t[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}(a.prototype,i),Object.defineProperty(a,"prototype",{writable:!1}),r}(e.Component);C(k,"propTypes",{pageCount:n().number.isRequired,pageRangeDisplayed:n().number,marginPagesDisplayed:n().number,previousLabel:n().node,previousAriaLabel:n().string,prevPageRel:n().string,prevRel:n().string,nextLabel:n().node,nextAriaLabel:n().string,nextPageRel:n().string,nextRel:n().string,breakLabel:n().oneOfType([n().string,n().node]),breakAriaLabels:n().shape({forward:n().string,backward:n().string}),hrefBuilder:n().func,hrefAllControls:n().bool,onPageChange:n().func,onPageActive:n().func,onClick:n().func,initialPage:n().number,forcePage:n().number,disableInitialCallback:n().bool,containerClassName:n().string,className:n().string,pageClassName:n().string,pageLinkClassName:n().string,pageLabelBuilder:n().func,activeClassName:n().string,activeLinkClassName:n().string,previousClassName:n().string,nextClassName:n().string,previousLinkClassName:n().string,nextLinkClassName:n().string,disabledClassName:n().string,disabledLinkClassName:n().string,breakClassName:n().string,breakLinkClassName:n().string,extraAriaContext:n().string,ariaLabelBuilder:n().func,eventListener:n().string,renderOnZeroPageCount:n().func,selectedPageRel:n().string}),C(k,"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 v=k})(),s})(),e.exports=i(a(609))},154:(e,t,a)=>{"use strict";var i=a(609),s="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=i.useSyncExternalStore,l=i.useRef,r=i.useEffect,o=i.useMemo,d=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,a,i,c){var p=l(null);if(null===p.current){var w={hasValue:!1,value:null};p.current=w}else w=p.current;p=o((function(){function e(e){if(!r){if(r=!0,n=e,e=i(e),void 0!==c&&w.hasValue){var t=w.value;if(c(t,e))return l=t}return l=e}if(t=l,s(n,e))return t;var a=i(e);return void 0!==c&&c(t,a)?t:(n=e,l=a)}var n,l,r=!1,o=void 0===a?null:a;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]}),[t,a,i,c]);var m=n(e,p[0],p[1]);return r((function(){w.hasValue=!0,w.value=m}),[m]),d(m),m}},418:(e,t,a)=>{"use strict";e.exports=a(154)},609:e=>{"use strict";e.exports=window.React}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return a[e].call(n.exports,n,n.exports,s),n.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,s.t=function(a,i){if(1&i&&(a=this(a)),8&i)return a;if("object"==typeof a&&a){if(4&i&&a.__esModule)return a;if(16&i&&"function"==typeof a.then)return a}var n=Object.create(null);s.r(n);var l={};e=e||[null,t({}),t([]),t(t)];for(var r=2&i&&a;"object"==typeof r&&!~e.indexOf(r);r=t(r))Object.getOwnPropertyNames(r).forEach((e=>l[e]=()=>a[e]));return l.default=()=>a,s.d(n,l),n},s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e=s(609),t=s.n(e);const a=window.wp.i18n;var i,n=s(505),l=s.n(n);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 i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},r.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(i||(i={}));const o="popstate";function d(e,t){if(!1===e||null==e)throw new Error(t)}function c(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function p(e,t){return{usr:e.state,key:e.key,idx:t}}function w(e,t,a,i){return void 0===a&&(a=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?g(t):t,{state:a,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function m(e){let{pathname:t="/",search:a="",hash:i=""}=e;return a&&"?"!==a&&(t+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(t+="#"===i.charAt(0)?i:"#"+i),t}function g(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substr(a),e=e.substr(0,a));let i=e.indexOf("?");i>=0&&(t.search=e.substr(i),e=e.substr(0,i)),e&&(t.pathname=e)}return t}var u;function h(e,t,a){return void 0===a&&(a="/"),function(e,t,a,i){let s=H(("string"==typeof t?g(t):t).pathname||"/",a);if(null==s)return null;let n=_(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 l=null;for(let e=0;null==l&&e<n.length;++e){let t=M(s);l=N(n[e],t,i)}return l}(e,t,a,!1)}function _(e,t,a,i){void 0===t&&(t=[]),void 0===a&&(a=[]),void 0===i&&(i="");let s=(e,s,n)=>{let l={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};l.relativePath.startsWith("/")&&(d(l.relativePath.startsWith(i),'Absolute route path "'+l.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),l.relativePath=l.relativePath.slice(i.length));let r=Z([i,l.relativePath]),o=a.concat(l);e.children&&e.children.length>0&&(d(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+r+'".'),_(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 C(e.path))s(e,t,a);else s(e,t)})),t}function C(e){let t=e.split("/");if(0===t.length)return[];let[a,...i]=t,s=a.endsWith("?"),n=a.replace(/\?$/,"");if(0===i.length)return s?[n,""]:[n];let l=C(i.join("/")),r=[];return r.push(...l.map((e=>""===e?n:[n,e].join("/")))),s&&r.push(...l),r.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(u||(u={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const k=/^:[\w-]+$/,v=3,b=2,x=1,f=10,j=-2,y=e=>"*"===e;function $(e,t){let a=e.split("/"),i=a.length;return a.some(y)&&(i+=j),t&&(i+=b),a.filter((e=>!y(e))).reduce(((e,t)=>e+(k.test(t)?v:""===t?x:f)),i)}function N(e,t,a){void 0===a&&(a=!1);let{routesMeta:i}=e,s={},n="/",l=[];for(let e=0;e<i.length;++e){let r=i[e],o=e===i.length-1,d="/"===n?t:t.slice(n.length)||"/",c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:o},d),p=r.route;if(!c&&o&&a&&!i[i.length-1].route.index&&(c=L({path:r.relativePath,caseSensitive:r.caseSensitive,end:!1},d)),!c)return null;Object.assign(s,c.params),l.push({params:s,pathname:Z([n,c.pathname]),pathnameBase:R(Z([n,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(n=Z([n,c.pathnameBase]))}return l}function L(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[a,i]=function(e,t,a){void 0===t&&(t=!1),void 0===a&&(a=!0),c("*"===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 i=[],s="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,a)=>(i.push({paramName:t,isOptional:null!=a}),a?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(i.push({paramName:"*"}),s+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":""!==e&&"/"!==e&&(s+="(?:(?=\\/|$))"),[new RegExp(s,t?void 0:"i"),i]}(e.path,e.caseSensitive,e.end),s=t.match(a);if(!s)return null;let n=s[0],l=n.replace(/(.)\/+$/,"$1"),r=s.slice(1);return{params:i.reduce(((e,t,a)=>{let{paramName:i,isOptional:s}=t;if("*"===i){let e=r[a]||"";l=n.slice(0,n.length-e.length).replace(/(.)\/+$/,"$1")}const o=r[a];return e[i]=s&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:n,pathnameBase:l,pattern:e}}function M(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return c(!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 H(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,i=e.charAt(a);return i&&"/"!==i?null:e.slice(a)||"/"}function V(e,t,a,i){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(i)+"].  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,t){let a=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?a.map(((e,t)=>t===a.length-1?e.pathname:e.pathnameBase)):a.map((e=>e.pathnameBase))}function S(e,t,a,i){let s;void 0===i&&(i=!1),"string"==typeof e?s=g(e):(s=r({},e),d(!s.pathname||!s.pathname.includes("?"),V("?","pathname","search",s)),d(!s.pathname||!s.pathname.includes("#"),V("#","pathname","hash",s)),d(!s.search||!s.search.includes("#"),V("#","search","hash",s)));let n,l=""===e||""===s.pathname,o=l?"/":s.pathname;if(null==o)n=a;else{let e=t.length-1;if(!i&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}n=e>=0?t[e]:"/"}let c=function(e,t){void 0===t&&(t="/");let{pathname:a,search:i="",hash:s=""}="string"==typeof e?g(e):e,n=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:n,search:B(i),hash:E(s)}}(s,n),p=o&&"/"!==o&&o.endsWith("/"),w=(l||"."===o)&&a.endsWith("/");return c.pathname.endsWith("/")||!p&&!w||(c.pathname+="/"),c}const Z=e=>e.join("/").replace(/\/\/+/g,"/"),R=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),B=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",E=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const O=["post","put","patch","delete"],A=(new Set(O),["get",...O]);function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},T.apply(this,arguments)}new Set(A),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const P=e.createContext(null),W=e.createContext(null),F=e.createContext(null),I=e.createContext(null),q=e.createContext({outlet:null,matches:[],isDataRoute:!1}),U=e.createContext(null);function z(){return null!=e.useContext(I)}function J(){return z()||d(!1),e.useContext(I).location}function K(t){e.useContext(F).static||e.useLayoutEffect(t)}function G(){let{isDataRoute:t}=e.useContext(q);return t?function(){let{router:t}=function(){let t=e.useContext(P);return t||d(!1),t}(se.UseNavigateStable),a=le(ne.UseNavigateStable),i=e.useRef(!1);return K((()=>{i.current=!0})),e.useCallback((function(e,s){void 0===s&&(s={}),i.current&&("number"==typeof e?t.navigate(e):t.navigate(e,T({fromRouteId:a},s)))}),[t,a])}():function(){z()||d(!1);let t=e.useContext(P),{basename:a,future:i,navigator:s}=e.useContext(F),{matches:n}=e.useContext(q),{pathname:l}=J(),r=JSON.stringify(D(n,i.v7_relativeSplatPath)),o=e.useRef(!1);return K((()=>{o.current=!0})),e.useCallback((function(e,i){if(void 0===i&&(i={}),!o.current)return;if("number"==typeof e)return void s.go(e);let n=S(e,JSON.parse(r),l,"path"===i.relative);null==t&&"/"!==a&&(n.pathname="/"===n.pathname?a:Z([a,n.pathname])),(i.replace?s.replace:s.push)(n,i.state,i)}),[a,s,r,l,t])}()}function Y(){let{matches:t}=e.useContext(q),a=t[t.length-1];return a?a.params:{}}function Q(t,a){let{relative:i}=void 0===a?{}:a,{future:s}=e.useContext(F),{matches:n}=e.useContext(q),{pathname:l}=J(),r=JSON.stringify(D(n,s.v7_relativeSplatPath));return e.useMemo((()=>S(t,JSON.parse(r),l,"path"===i)),[t,r,l,i])}function X(t,a,s,n){z()||d(!1);let{navigator:l}=e.useContext(F),{matches:r}=e.useContext(q),o=r[r.length-1],c=o?o.params:{},p=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let w,m=J();if(a){var u;let e="string"==typeof a?g(a):a;"/"===p||(null==(u=e.pathname)?void 0:u.startsWith(p))||d(!1),w=e}else w=m;let _=w.pathname||"/",C=_;if("/"!==p){let e=p.replace(/^\//,"").split("/");C="/"+_.replace(/^\//,"").split("/").slice(e.length).join("/")}let k=h(t,{pathname:C}),v=function(t,a,i,s){var n;if(void 0===a&&(a=[]),void 0===i&&(i=null),void 0===s&&(s=null),null==t){var l;if(!i)return null;if(i.errors)t=i.matches;else{if(!(null!=(l=s)&&l.v7_partialHydration&&0===a.length&&!i.initialized&&i.matches.length>0))return null;t=i.matches}}let r=t,o=null==(n=i)?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||d(!1),r=r.slice(0,Math.min(r.length,e+1))}let c=!1,p=-1;if(i&&s&&s.v7_partialHydration)for(let e=0;e<r.length;e++){let t=r[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(p=e),t.route.id){let{loaderData:e,errors:a}=i,s=t.route.loader&&void 0===e[t.route.id]&&(!a||void 0===a[t.route.id]);if(t.route.lazy||s){c=!0,r=p>=0?r.slice(0,p+1):[r[0]];break}}}return r.reduceRight(((t,s,n)=>{let l,d=!1,w=null,m=null;var g;i&&(l=o&&s.route.id?o[s.route.id]:void 0,w=s.route.errorElement||te,c&&(p<0&&0===n?(re[g="route-fallback"]||(re[g]=!0),d=!0,m=null):p===n&&(d=!0,m=s.route.hydrateFallbackElement||null)));let u=a.concat(r.slice(0,n+1)),h=()=>{let a;return a=l?w:d?m:s.route.Component?e.createElement(s.route.Component,null):s.route.element?s.route.element:t,e.createElement(ie,{match:s,routeContext:{outlet:t,matches:u,isDataRoute:null!=i},children:a})};return i&&(s.route.ErrorBoundary||s.route.errorElement||0===n)?e.createElement(ae,{location:i.location,revalidation:i.revalidation,component:w,error:l,children:h(),routeContext:{outlet:null,matches:u,isDataRoute:!0}}):h()}),null)}(k&&k.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:Z([p,l.encodeLocation?l.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?p:Z([p,l.encodeLocation?l.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),r,s,n);return a&&v?e.createElement(I.Provider,{value:{location:T({pathname:"/",search:"",hash:"",state:null,key:"default"},w),navigationType:i.Pop}},v):v}function ee(){let t=function(){var t;let a=e.useContext(U),i=function(){let t=e.useContext(W);return t||d(!1),t}(ne.UseRouteError),s=le(ne.UseRouteError);return void 0!==a?a:null==(t=i.errors)?void 0:t[s]}(),a=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),i=t instanceof Error?t.stack:null,s={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},a),i?e.createElement("pre",{style:s},i):null,null)}const te=e.createElement(ee,null);class ae extends e.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:void 0!==e.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 void 0!==this.state.error?e.createElement(q.Provider,{value:this.props.routeContext},e.createElement(U.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ie(t){let{routeContext:a,match:i,children:s}=t,n=e.useContext(P);return n&&n.static&&n.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=i.route.id),e.createElement(q.Provider,{value:a},s)}var se=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(se||{}),ne=function(e){return 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",e}(ne||{});function le(t){let a=function(){let t=e.useContext(q);return t||d(!1),t}(),i=a.matches[a.matches.length-1];return i.route.id||d(!1),i.route.id}const re={},oe={},de=(e,t,a)=>{var i;oe[i="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+a+"."]||(oe[i]=!0,console.warn(i))};function ce(t){let{to:a,replace:i,state:s,relative:n}=t;z()||d(!1);let{future:l,static:r}=e.useContext(F),{matches:o}=e.useContext(q),{pathname:c}=J(),p=G(),w=S(a,D(o,l.v7_relativeSplatPath),c,"path"===n),m=JSON.stringify(w);return e.useEffect((()=>p(JSON.parse(m),{replace:i,state:s,relative:n})),[p,m,n,i,s]),null}function pe(e){d(!1)}function we(t){let{basename:a="/",children:s=null,location:n,navigationType:l=i.Pop,navigator:r,static:o=!1,future:c}=t;z()&&d(!1);let p=a.replace(/^\/*/,"/"),w=e.useMemo((()=>({basename:p,navigator:r,static:o,future:T({v7_relativeSplatPath:!1},c)})),[p,c,r,o]);"string"==typeof n&&(n=g(n));let{pathname:m="/",search:u="",hash:h="",state:_=null,key:C="default"}=n,k=e.useMemo((()=>{let e=H(m,p);return null==e?null:{location:{pathname:e,search:u,hash:h,state:_,key:C},navigationType:l}}),[p,m,u,h,_,C,l]);return null==k?null:e.createElement(F.Provider,{value:w},e.createElement(I.Provider,{children:s,value:k}))}function me(e){let{children:t,location:a}=e;return X(ge(t),a)}function ge(t,a){void 0===a&&(a=[]);let i=[];return e.Children.forEach(t,((t,s)=>{if(!e.isValidElement(t))return;let n=[...a,s];if(t.type===e.Fragment)return void i.push.apply(i,ge(t.props.children,n));t.type!==pe&&d(!1),t.props.index&&t.props.children&&d(!1);let l={id:t.props.id||n.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(l.children=ge(t.props.children,n)),i.push(l)})),i}e.startTransition,new Promise((()=>{})),e.Component;const ue=window.ReactDOM;function he(){return he=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i])}return e},he.apply(this,arguments)}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const _e=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const Ce=e.startTransition;function ke(t){let{basename:a,children:s,future:n,window:l}=t,u=e.useRef();var h;null==u.current&&(u.current=(void 0===(h={window:l,v5Compat:!0})&&(h={}),function(e,t,a,s){void 0===s&&(s={});let{window:n=document.defaultView,v5Compat:l=!1}=s,c=n.history,g=i.Pop,u=null,h=_();function _(){return(c.state||{idx:null}).idx}function C(){g=i.Pop;let e=_(),t=null==e?null:e-h;h=e,u&&u({action:g,location:v.location,delta:t})}function k(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,a="string"==typeof e?e:m(e);return a=a.replace(/ $/,"%20"),d(t,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,t)}null==h&&(h=0,c.replaceState(r({},c.state,{idx:h}),""));let v={get action(){return g},get location(){return e(n,c)},listen(e){if(u)throw new Error("A history only accepts one active listener");return n.addEventListener(o,C),u=e,()=>{n.removeEventListener(o,C),u=null}},createHref:e=>t(n,e),createURL:k,encodeLocation(e){let t=k(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){g=i.Push;let s=w(v.location,e,t);a&&a(s,e),h=_()+1;let r=p(s,h),o=v.createHref(s);try{c.pushState(r,"",o)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(o)}l&&u&&u({action:g,location:v.location,delta:1})},replace:function(e,t){g=i.Replace;let s=w(v.location,e,t);a&&a(s,e),h=_();let n=p(s,h),r=v.createHref(s);c.replaceState(n,"",r),l&&u&&u({action:g,location:v.location,delta:0})},go:e=>c.go(e)};return v}((function(e,t){let{pathname:a="/",search:i="",hash:s=""}=g(e.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),w("",{pathname:a,search:i,hash:s},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let a=e.document.querySelector("base"),i="";if(a&&a.getAttribute("href")){let t=e.location.href,a=t.indexOf("#");i=-1===a?t:t.slice(0,a)}return i+"#"+("string"==typeof t?t:m(t))}),(function(e,t){c("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),h)));let _=u.current,[C,k]=e.useState({action:_.action,location:_.location}),{v7_startTransition:v}=n||{},b=e.useCallback((e=>{v&&Ce?Ce((()=>k(e))):k(e)}),[k,v]);return e.useLayoutEffect((()=>_.listen(b)),[_,b]),e.useEffect((()=>{return null!=(e=n)&&e.v7_startTransition||de("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),null!=e&&e.v7_relativeSplatPath||t&&t.v7_relativeSplatPath||de("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),void(t&&(t.v7_fetcherPersist||de("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||de("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||de("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||de("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation")));var e,t}),[n]),e.createElement(we,{basename:a,children:s,location:C.location,navigationType:C.action,navigator:_,future:n})}ue.flushSync,e.useId;const ve="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,be=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xe=e.forwardRef((function(t,a){let i,{onClick:s,relative:n,reloadDocument:l,replace:r,state:o,target:c,to:p,preventScrollReset:w,viewTransition:g}=t,u=function(e,t){if(null==e)return{};var a,i,s={},n=Object.keys(e);for(i=0;i<n.length;i++)a=n[i],t.indexOf(a)>=0||(s[a]=e[a]);return s}(t,_e),{basename:h}=e.useContext(F),_=!1;if("string"==typeof p&&be.test(p)&&(i=p,ve))try{let e=new URL(window.location.href),t=p.startsWith("//")?new URL(e.protocol+p):new URL(p),a=H(t.pathname,h);t.origin===e.origin&&null!=a?p=a+t.search+t.hash:_=!0}catch(e){}let C=function(t,a){let{relative:i}=void 0===a?{}:a;z()||d(!1);let{basename:s,navigator:n}=e.useContext(F),{hash:l,pathname:r,search:o}=Q(t,{relative:i}),c=r;return"/"!==s&&(c="/"===r?s:Z([s,r])),n.createHref({pathname:c,search:o,hash:l})}(p,{relative:n}),k=function(t,a){let{target:i,replace:s,state:n,preventScrollReset:l,relative:r,viewTransition:o}=void 0===a?{}:a,d=G(),c=J(),p=Q(t,{relative:r});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,i)){e.preventDefault();let a=void 0!==s?s:m(c)===m(p);d(t,{replace:a,state:n,preventScrollReset:l,relative:r,viewTransition:o})}}),[c,d,p,s,n,i,t,l,r,o])}(p,{replace:r,state:o,target:c,preventScrollReset:w,relative:n,viewTransition:g});return e.createElement("a",he({},u,{href:i||C,onClick:_||l?s:function(e){s&&s(e),e.defaultPrevented||k(e)},ref:a,target:c}))}));var fe,je;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(fe||(fe={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(je||(je={}));var ye="wdesignkit";const Ne=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},Le=e=>"string"==typeof e?e.replaceAll("'","\\'"):e,Me=(e,t)=>{if("select"==e.type)return`'${e.name}' => '${Le(e.select_defaultValue[0])}',\n`;if("choose"==e.type)return`'${e.name}' => '${Le(e.align_defaultValue)}',\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' => '${Le(e.value)}', 'label' => '${Le(e.lable)}'],`})),a+="),"):a=`'${e.name}' => ['value' => '${Le(e.select2_defaultValue[0].value)}', 'label' => '${Le(e.select2_defaultValue[0].lable)}']`),`${a}`}if("dimension"==e.type)return`'${e.name}' => '',\n`;if("slider"==e.type)return`'${e.name}' => '',\n`;if("selecttemplate"==e.type)return`'${e.name}' => '${e.s_template_defaultValue}',\n`;if("switcher"==e.type)return`'${e.name}' => ${!!Le(e.defaultValue)&&Le(e.defaultValue)},\n`;if("media"==e.type)return"gutenberg"==t?`'${e.name}' => array(\n                'url' => '${Le(e.defaultValue)}',\n                'Id' => '',\n            ),`:"bricks"==t?`'${e.name}' =>  array(\n                    'id' => '0',\n                    'url' => '${Le(e.defaultValue)}',\n                ),`:`'${e.name}' => '${Le(e.defaultValue)}', \n`;if("gallery"==e.type)return"gutenberg"==t?`'${e.name}' => array(\n                            (object) array('url' => '${e.defaultValue?Le(e.defaultValue):""}', 'Id' => ''),\n                          ),`:"bricks"==t?`'${e.name}' => array(\n                'images' => [\n                    array( 'url' => '${Le(e.defaultValue)}' )\n                ]),`:`'${e.name}' => array(\n                [\n                    'id'    => '',\n                    'url' => '${Le(e.defaultValue)}'\n                ]\n            ), \n`;if("url"==e.type&&"gutenberg"==t)return`'${e.name}' => array(\n                    'url' => '${Le(e.defaultValue)}',\n                    ${e.is_external?"'target' => true,":""}\n                    ${e.nofollow?"'nofollow' => 'no-follow'":""}\n                ),`;if("headingtags"==e.type){let t=Le(e.select_defaultValue[0])?Le(e.select_defaultValue[0]):"";return`'${e.name}' => esc_html__('${t}', '${ye}'), \n`}{let t=Le(e.defaultValue)?Le(e.defaultValue):"";return["text","textarea","number","headingtags","heading"].includes(e.type)?`'${e.name}' => esc_html__('${t}', '${ye}'), \n`:`'${e.name}' => '${t}', \n`}},He=(e,t,a,i,s,n,l)=>{var r="",o="";const d=(e,t)=>{let i="";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&&(i+=i?e:"(",s?.includes(t.name)?"!="==t.operator?i+=` !${n}${t.name} `:i+=` ${n}${t.name} `:"true"==t.value||"false"==t.value||"null"==t.value?i+=` ${n}${t.name} ${t.operator} ${t.value} `:i+=` ${n}${t.name} ${t.operator} "${t.value}" `)})),i&&(i+=") &&")}return i};if("text"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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}${i||""}: value }) ${n||""}},`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.defaultValue)}'\n        ),\n`}else if("url"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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}${i||""}: value }),`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'object',\n            'default' => array(\n                'url' => '${Le(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=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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}${i||""}: value }) ${n||""}},`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n        'type' => 'string',\n        'default' => '${Le(e.defaultValue)}',\n        ${e.selectors||e.selector_value?`'style' => array(\n            (object) array(\n                'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${i||""}}};}',\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 s=d(e.conditions,e.condition_value);r+=`${s} React.createElement(Pmgc_Select, {\n                ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n                options:${l||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+(i||"")},\n                ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => {setAttributes({ ${e.name}${i||""}: value }) ${n||""}},`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.select_defaultValue[0])}'\n        ),\n`}else if("select2"==e.type){let t="";var c=[];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=>{c.push(`['value' => '${Le(e.value)}', 'label' => '${Le(e.lable)}']`)})):c=`'value' => '${Le(e.select2_defaultValue[0].value)}', 'label' => '${Le(e.select2_defaultValue[0].lable)}'`);let s=d(e.conditions,e.condition_value);r+=`${s} 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+(i||"")},\n                ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => array(${c}),\n        ),\n`}else if("textarea"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\n                ${e.dynamic?"dynamic: true,":""}\n                ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.defaultValue)}',\n        ),\n`}else if("dimension"==e.type){let t=d(e.conditions,e.condition_value),s="";e.dimension_units&&e.dimension_units.map((e=>{s+=`'${e}',`})),r+=`${t} React.createElement(Pmgc_Dimension, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            noLock: false,\n            unit: [${s}],\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}${i||""}: value }),`}\n            ${e.responsive?"responsive: true,\n            device: device,\n            onDeviceChange: (value) => setDevice( value ),":""}\n        }),\n`,o+=`'${e.name}${i||""}' => 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}${i||""}}}}',\n                ),\n            ),`:""}\n        ), \n`}else if("color"==e.type){let t=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Color, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.defaultValue)}',\n            ${e.selectors||e.selector_value?`'style' => array(\n                (object) array(\n                    'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${i||""}}};}',\n                ),\n            ),`:""}\n        ), \n`}else if("gradientcolor"==e.type){let t=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Gradient, {\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.defaultValue)}',\n            ${e.selectors||e.selector_value?`'style' => array(\n                (object) array(\n                    'selector' => '{{PLUS_WRAP}} ${e.selectors}{${e.selector_value}:{{${e.name}${i||""}}};}',\n                ),\n            ),`:""}\n        ), \n`}else if("switcher"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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({ ${e.name}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Label_Heading, {\n            label: __(\`${e.lable}\`),\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            ${e.separator?`separator:"${e.separator}",`:""}\n            inlineblock: true,\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n        ), \n`}else if("border"==e.type){let t=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Border, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            ${e.separator?`separator:"${e.separator}",`:""}\n            ${e?.description?`help: \`${e.description}\`,`:""}\n            ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n            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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_BoxShadow, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_BoxShadow, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);var p=[];e.types.length>0&&e.types.map((e=>{'"classic"'==e?(p.push('"color"'),p.push('"image"')):p.push(e)})),r+=`${t} React.createElement(Pmgc_Background, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            sources: [${p}],\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'object',\n            'default' =>(object) array(\n            'openBg'=> 0,\n            'bgType' => ${p.length>0?p[0]:'""'},\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=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Typography, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            ${e.separator?`separator:'${e.separator}',`:""}\n            ${e?.description?`help: \`${e.description}\`,`:""}\n            device: device,\n            onDeviceChange: (value) => setDevice( value ),\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\n            ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            ${e.separator?`separator:'${e.separator}',`:""}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'object',\n            'default' => array(\n                'url' => '${Le(e.defaultValue)}',\n                'Id' => '',\n            ),\n        ), \n`}else if("gallery"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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            type: ['image'],\n            ${e.separator?`separator:'${e.separator}',`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\n            panel: true,\n            ${e.lableBlock?`inlineblock:${!e.lableBlock},`:""}\n            ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'array',\n            'default' => array(\n                (object) array('url' => '${e.defaultValue?Le(e.defaultValue):""}', 'Id' => ''),\n            ),\n        ), \n`}else if("iconscontrol"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\n            ${e.separator?`separator:'${e.separator}',`:""}\n            ${a?`onChange: v => { value.${e.name} = v; onChange(value); },`:`onChange: (value) => setAttributes({ ${e.name}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default'=> '${Le(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 s=d(e.conditions,e.condition_value);r+=`${s} 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+(i||"")},\n            ${e?.description?`help: \`${e.description}\`,`:""}\n            min: ${a?"value.":""}${e.name}${i||""} && ${a?"value.":""}${e.name}${i||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${i||""}.unit, 'min') : 0,\n            max: ${a?"value.":""}${e.name}${i||""} && ${a?"value.":""}${e.name}${i||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${i||""}.unit, 'max') : 100,\n            step: ${a?"value.":""}${e.name}${i||""} && ${a?"value.":""}${e.name}${i||""}.unit ? ${e.name}Function(${a?"value.":""}${e.name}${i||""}.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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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}${i||""}}};}',\n                ),\n            ),`:""}\n        ), \n`}else if("choose"==e.type){let t=d(e.conditions,e.condition_value);var w="";e.align_option.length>0&&(w="",w+="[",e.align_option.map((e=>{var t;t="align_svg"==e.align_icon||"align_title"==e.align_icon?"":e.align_icon,w+=`{ 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`})),w+="]"),r+=`${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 : ${w},\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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}${i||""}}}; }',\n                ),\n            ),`:""}\n        ), \n`}else if("popover"==e.type){let t=d(e.conditions,e.condition_value),a="",n="",l="";e.fields.map((t=>{a+=He(t,"js",e.name,"",s)})),e.fields.map((e=>{n+=He(e,"php")})),e.fields&&e.fields.length>0&&(l+="[",e.fields.map((e=>{l+=Me(e,"gutenberg")})),l+="]\n"),r+=`${t} React.createElement(Pmgc_GroupPopover, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${e.name+(i||"")},\n            ${e?.description?`help: \`${e.description}\`,`:""}\n            onChange: value => setAttributes({ ${e.name}${i||""}: value }),\n            },\n            (value, onChange) => {\n                return [\n                    React.createElement(Fragment, null,\n                        ${a}\n                    )]\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'object',\n            'groupField' => array(\n                (object) array(\n                    ${n}\n                )\n            ),\n            'default' => ${l||"[]"},\n        ), \n`}else if("normalhover"==e.type){let t=d(e.conditions,e.condition_value),a="";r+=`${t} React.createElement(Pmgc_Tabs, null, `,e?.nha_array?.length>0&&e.nha_array.map(((t,i)=>{if(null!=t){if(e.nha_array_lable?.[i])var n=e.nha_array_lable[i].charAt(0).toUpperCase()+e.nha_array_lable[i].slice(1);else n=0==i?"Normal":1==i?"Hover":2==i?"Active":`Tab - ${i}`;r+=`React.createElement(Pmgc_Tab, {\n                                tabTitle: __('${n}')\n                            }, `,e.fields.map((e=>{e.key==t&&(r+=He(e,"js","","",s),a+=He(e,"php",""))})),r+="), \n"}})),r+="), \n",o+=`${a}\n`}else if("repeater"==e.type){let t=d(e.conditions,e.condition_value),a="",n="";var m="";e.fields.map((t=>{a+=He(t,"js",e.name,"",s)})),e.fields.map((e=>{n+=He(e,"php")})),e.fields.length>0&&(m+="array(\n '_key' => '0', \n",e.fields.map((e=>{m+=Me(e,"gutenberg")})),m+="),"),r+=`${t} React.createElement(Pmgc_Repeater, {\n            // max: 10,\n            ${e?.showLable&&e.lable?`labelText:__(\`${e.lable}\`),`:""}\n            value: ${e.name+(i||"")},\n            attributeName: '${e.name+(i||"")}',\n            addText: 'Add Item',\n            ${e.title_field?`titleField: \`{${e.title_field}}\`,`:""}\n            ${e?.description?`help: \`${e.description}\`,`:""}\n            onChange: value => setAttributes({ ${e.name}${i||""}: value }),\n            },\n            (value, onChange) => {\n                return [\n                    React.createElement(Fragment, null,\n                        ${a}\n                    )]\n            }), \n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'array',\n            'repeaterField' => array(\n                (object) array(\n                    ${n}\n                )\n            ),\n            'default' => array(${m}),\n        ), \n`}else if("rawhtml"==e.type){let t=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Note, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`}else if("headingtags"==e.type){let t=d(e.conditions,e.condition_value);r+=`${t} React.createElement(Pmgc_Heading, {\n            ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n            value: ${a?"value."+e.name:e.name+(i||"")},\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}${i||""}: value }),`}\n            }), \n`,o+=`'${e.name}${i||""}' => 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=d(e.conditions,e.condition_value);r+=`${a} React.createElement(Pmgc_Styles, {\n            ${e?.showLable&&e.lable?`label: __("${e.lable}"),`:""}\n            columns: '${e.columns}',\n            ${e?.description?`help: '${Le(e.description)}',`:""}\n            ${e.separator?`separator:'${e.separator}',`:""}\n            value: ${e.name},\n            options: ${t},\n            onChange: (value) => setAttributes({ ${e.name}: value }),\n            }), \n`,o+=`'${e.name}' => array(\n            'type' => 'string',\n            'default' => '${Le(e.select_defaultValue[0])}',\n        ),\n`}else if("datetime"==e.type){let t=d(e.conditions,e.condition_value);r+=`${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+(i||"")},\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}${i||""}: value }),`}\n            }),\n`,o+=`'${e.name}${i||""}' => array(),\n`}else if("cpt"==e.type){let t="",n="";e?.fields?.length&&e?.fields.map((a=>{if(a.name!="post_type_"+e.unique_id){if(e.unique_id&&a.name.search(e.unique_id)>-1)var i=a.name.replace("_"+[e.unique_id],"");a.name=="order_by_"+e.unique_id?t+=He(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`,"wdkit_post_type?.order_by ? wdkit_post_type.order_by : []"):t+=He(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`),n+=He(a,"php","","",s,`, ${e.name}_fun()`)}}));let l=d(e.conditions,e.condition_value);r+=`${l} React.createElement(Pmgc_Select, {\n                ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n                options: wdkit_post_type?.post_list ? wdkit_post_type.post_list : [],\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+(i||"")},\n                onChange: (value) => {setAttributes({ ${e.name}${i||""}: value }), ${e.name}_fun(value, 'type')},\n            }),\n\n            \n            ${t}\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => 'post'\n        ),\n\n        \n        ${n}\n`}else if("product_listing"==e.type){let t="",a="";e?.fields?.length&&e?.fields.map((i=>{if(i.name!="post_type_"+e.unique_id){if(e.unique_id&&i.name.search(e.unique_id)>-1)var n=i.name.replace("_"+[e.unique_id],"");i.name=="order_by_"+e.unique_id?t+=He(i,"js","","",s,`, ${e.name}_fun(value, '${n}')`,"wdkit_post_type?.order_by ? wdkit_post_type.order_by : []"):t+=He(i,"js","","",s,`, ${e.name}_fun(value, '${n}')`),a+=He(i,"php","","",s,`, ${e.name}_fun()`)}})),d(e.conditions,e.condition_value),r+=`${t}\n`,o+=`${a}\n`}else if("taxonomy"==e.type){let t="",n="";e?.fields?.length&&e?.fields.map((a=>{if(e.unique_id&&a.name.search(e.unique_id)>-1)var i=a.name.replace("_"+[e.unique_id],"");a.name=="post_type_"+e.unique_id?t+=He(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`,"wdkit_post_type?.post_list ? wdkit_post_type.post_list : []"):t+=He(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`),n+=He(a,"php","","",s,`, ${e.name}_fun()`)}));let l=d(e.conditions,e.condition_value);r+=`${l} React.createElement(Pmgc_Select, {\n                ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n                options: Object.entries(wdkit_taxonomy),\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+(i||"")},\n                onChange: (value) => {setAttributes({ ${e.name}${i||""}: value }), ${e.name}_fun(value, 'type')},\n            }),\n\n            \n            ${t}\n`,o+=`'${e.name}${i||""}' => array(\n            'type' => 'string',\n            'default' => 'category'\n        ),\n\n        \n        ${n}\n`}return"php"==t?o=(o=o.replaceAll("{{CURRENT_ITEM}}","{{TP_REPEAT_ID}}")).replaceAll("{{WRAPPER}}","{{PLUS_WRAP}}"):"js"==t?r:void 0},Ve=(e,t,a)=>{const i=e=>{var t="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""==e.name||""==e.operator||(l+=`array('name' => '${Le(e.name)}', 'operator' => '${e.operator}', 'value' => '${Le(e.value)}'),\n`)})),""==l?t="":t+=`'conditions' => array(\n                    'relation' => '${e.condition_value.relation}',\n                    'terms' => [${l}],\n                ),`),t};var s="wdesignkit",n="",l="",r=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::TEXT,\n            ${1!=e?.ai_support?"'ai'   => [ 'active' => false ],":""}\n            ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${s}' ),`:""}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(e)}\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("preview"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let i='\n               array(\n                    \'label\' => \'<div class="elementor-update-preview" style="margin: 0;">\n                                        <div class="elementor-update-preview-title">Update changes to page</div>\n                                            <div class="elementor-update-preview-button-wrapper">\n                                                <button class="elementor-update-preview-button elementor-button"">\n                                                    Apply\n                                                </button>\n                                            </div>\n                                        </div>\',\n                    \'type\'  => Controls_Manager::RAW_HTML,\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("number"==e.type){let a="",l=e?.number_setting?.min,r=e?.number_setting?.max,d=e?.number_setting?.step;var o="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),""!=e.selectors&&(o+="'selectors' => array(",o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,o+="),");let c=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::NUMBER,\n            'min' => ${null!=l&&""!=l?l:'""'},\n            'max' => ${null!=r&&""!=r?r:'""'},\n            'step' => ${null!=d&&""!=d?d:'""'},\n            'default' => ${null!=e.defaultValue&&""!=e.defaultValue?e.defaultValue:'""'},\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(e)}\n            ${o}\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("repeater"==e.type){var d="",c="",p="",w="",m="";if(""==t&&null!=t&&(c=`'name' => '${e.name}',`),"Old"==e.repeater_type?p+=`repeater_${Ne()}`:"New"==e.repeater_type&&(p=""),e.fields){m+="array(";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(m+="array(",m+=`'_id'=>uniqid('Wkit-${Ne()}'),\n`,e.fields.map((e=>{m+=Me(e,"elementor")})),m+="),\n");m+=")"}e.fields.length>0&&("Old"==e.repeater_type?d+=`$${p}->get_controls(),`:"New"==e.repeater_type&&(d+="array(",e.fields.map((e=>{r.includes(e.type)||(d+=`${Ve(e,"")},`)})),d+="),"));let a=`array(\n                ${c}\n\t\t\t\t'type' => Controls_Manager::REPEATER,\n\t\t\t\t${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n                ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.title_field)}',`:""}\n\t\t\t\t'fields' => ${d||"array(),"}\n                ${m?`'default' => ${m},`:""}\n                ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n                ${!0===e.prevent_empty?"":`'prevent_empty' => ${e.prevent_empty},`}     \n                ${i(e)}\n        )`;null!=t&&""==t?n+=a:t&&null!=t?n+=`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                ${a}\n            );\n`:"Old"==e.repeater_type?(e.fields.map((e=>{w+=Ve(e,p)})),n+=`$${p} = new \\Elementor\\Repeater();\n\n                ${w}\n                \n                $this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                    ${a}\n                );\n`):n+=`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                    ${a}\n                );\n`}else if("popover"==e.type){let a="";var g="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),e.fields&&(t&&null!=t?(g+=`$${t}->start_popover();\n`,e.fields.map((e=>{g+=Ve(e,t)})),g+=`$${t}->end_popover();\n`):(g+="$this->start_popover();\n",e.fields.map((e=>{g+=Ve(e)})),g+="$this->end_popover();\n"));let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::POPOVER_TOGGLE,\n            ${e.return_value?`'return_value' => '${Le(e.return_value)}',`:""}\n            'default' => 'yes',\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n            'label_block' => false,\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(e)}\n        )`;n+=null!=t&&""==t?l:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                ${l}\n            );\n            ${g}\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                ${l}\n            );\n            ${g}\n`}else if("normalhover"==e.type){let a="";g="",""==t&&null!=t&&(a=`'name' => '${e.name}',`),e.fields&&(t&&null!=t?e.nha_array.length>0&&e.nha_array.map(((a,i)=>{if(null!=a){if(e.nha_array_lable?.[i])var n=e.nha_array_lable[i].charAt(0).toUpperCase()+e.nha_array_lable[i].slice(1);else n=0==i?"Normal":1==i?"Hover":2==i?"Active":`Tab-${i}`;g+=`$${t}->start_controls_tab(\n\n                        '${e.name}_${a}_tab',\n                            array(\n                                'label' => esc_html__( '${n}', '${s}' ),\n                            )\n                        );\n`,e.fields.filter((e=>{if(e.key==a)return e})).map((e=>{g+=Ve(e,t)})),g+=`$${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 i=e.nha_array_lable[a].charAt(0).toUpperCase()+e.nha_array_lable[a].slice(1);else i=0==a?"Normal":1==a?"Hover":2==a?"Active":`Tab-${a}`;g+=`$this->start_controls_tab(\n\n                        '${e.name}_${t}_tab',\n                            array(\n                                'label' => esc_html__( '${i}', '${s}' ),\n                            )\n                        );\n`,e.fields.filter((e=>{if(e.key==t)return e})).map((e=>{g+=Ve(e)})),g+="$this->end_controls_tab();\n"}})));let l=`array(\n            ${a}\n            ${i(e)}\n        )`;n+=null!=t&&""==t?l:t&&null!=t?`$${t}->start_controls_tabs('${e.name}',\n                ${l}\n            );\n            ${g}\n\n            $this->end_controls_tabs();`:`$this->start_controls_tabs('${e.name}',\n                ${l}\n            );\n            ${g}\n\n            $this->end_controls_tabs();`}else if("wysiwyg"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n                ${a}\n                ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n\t\t\t\t'type' => Controls_Manager::WYSIWYG,\n                ${1!=e?.ai_support?"'ai'   => [ 'active' => false ],":""}\n                ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${s}' ),`:""}\n                ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${s}' ),`:""}\n                ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n                ${!0===e.dynamic?`'dynamic' => array(\n                    'active' => ${e.dynamic},\n                ),`:""}\n                ${i(e)}\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("code"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            'type' => Controls_Manager::CODE,\n            ${1!=e?.ai_support?"'ai'   => [ 'active' => false ],":""}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.defaultValue)}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(e)}\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("choose"==e.type){let a="";if(o="",""==t&&null!=t&&(a=`'name' => '${e.name}',`),""!=e.selectors&&(o+="'selectors' => array(",o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,o+="),"),e.align_option){var u="";u+="'options' => array(",e.align_option.map((e=>{u+=`\n                    '${e.align_value}' => array(\n                        'title' => esc_html__( '${Le(e.align_lable)}', '${s}' ),\n                        'icon' => '${Le(e.align_icon)}',\n                    ),\n                `})),u+="),"}let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            'type' => Controls_Manager::CHOOSE,\n            ${u}\n            ${e.align_defaultValue?`'default' => '${Le(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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\n            ${o}\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("datetime"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::DATE_TIME,\n            ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("gallery"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            'label' => esc_html__( '${Le(e.lable)}', '${s}' ),\n            'type' => Controls_Manager::GALLERY,\n            ${e.defaultValue?`\n                'default' => array(\n                [\n                'id'    => '',\n                'url' => '${Le(e.defaultValue)}'\n                ]\n                ),\n                `:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("background"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\n        Group_Control_Background::get_type(),\n        array(\n            'name' => '${e.name}',\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'types' => [${e.types}],\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\n            ${o}\n        )`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`}else if("border"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\n        Group_Control_Border::get_type(),\n        array(\n            'name' => '${e.name}',\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\n            ${o}\n        )`;n+=t&&null!=t?`$${t}->add_group_control(\n                ${a}\n            );\n`:`$this->add_group_control(\n                ${a}\n            );\n`}else if("dimension"==e.type){o="";let a="",l="",r="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),""!=e.selectors&&(o+="'selectors' => array(",o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}}',`,o+="),"),e.dimension_units&&e.dimension_units.map((e=>{l+=`'${e}',`})),e.dimension_defaultValue&&(1==e.dimension_defaultValue.isLinked?r=`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&&(r=`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 d=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::DIMENSIONS,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n            ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n            'size_units' => array(${l}),\n            ${r?`'default' => ${r},`:""}\n            ${1==e.responsive?`'tablet_default' => ${r},\n                'mobile_default' => ${r},\n                'widescreen_default' => ${r},`:""}\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\n            ${o}\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("boxshadow"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\n        Group_Control_Box_Shadow::get_type(),\n        array(\n            'name' => '${e.name}',\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\n            ${o} \n        )`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`}else if("textshadow"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\n        Group_Control_Text_Shadow::get_type(),\n            array(\n\t\t\t\t'name' => '${e.name}',\n                ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n                ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n                ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n                ${i(e)}\n\t\t\t\t${o}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                    ${a}\n                );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                    ${a}\n                );\n`}else if("color"==e.type){o="";let a="";null!=t&&""==t&&(a=`'name' => '${e.name}',`),""!=e.selectors&&(o+="'selectors' => array(",o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{VALUE}}',`,o+="),");let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\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' => '${Le(e.defaultValue)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            'alpha' => ${e.alpha},\n            ${!0===e.global?`'global' => array(\n                'active' => ${e.global},\n            ),`:""}\n            ${i(e)}\n            ${o}\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("cssfilter"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\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' => '${Le(e.controlClass)}',`:""}\n                ${i(e)}\n\t\t\t\t${o}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\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__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::HIDDEN,\n            ${e.defaultValue?`'default' => '${Le(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 a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::MEDIA,\n            ${1!=e?.ai_support?"'ai'   => [ 'active' => false ],":""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("typography"==e.type){o="",""!=e.selector&&(o+=`'selector' => '{{WRAPPER}} ${e.selector}',`);let a=`\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' => '${Le(e.controlClass)}',`:""}\n                ${i(e)}\n                ${o}\n\t\t\t)`;n+=t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_group_control"}(\n                ${a}\n            );\n`}else if("heading"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::HEADING,\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("divider"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let i=`array(\n            ${a}\n            'type' => Controls_Manager::DIVIDER,\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("rawhtml"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::RAW_HTML,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${e.defaultValue?`'raw' => wp_kses_post( '${Le(e.defaultValue)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("iconscontrol"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::ICONS,\n            'fa4compatibility' => 'icon',\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${e.defaultValue?`'default' => array(\n                'value' => '${Le(e.defaultValue)}',\n                'library' => 'fa-solid',\n            ),`:""}\n            ${i(e)}\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("slider"==e.type){o="";var h="",_="",C="";let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(h+=`"${e.type}",`,_+=`'${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),`)})),h&&_?(h=`'size_units' => array( ${h} ),`,_=`'range' => array(${_}),`):(h="",_="")),""!=e.slider_defaultValue&&null!=e.slider_defaultValue&&(C+=h?`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&&(o+="'selectors' => array(",e&&1==e.show_unit&&h?o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}}{{UNIT}};',)`:o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}};',)`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::SLIDER,\n            ${h}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${_}\n            ${C?`'default' => ${C},`:""}\n            ${1==e.responsive?`'tablet_default' => ${C},\n                'mobile_default' => ${C},\n                'widescreen_default' => ${C},`:""}\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            ${i(e)}\n            ${o}\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("select"==e.type){let l=e.options;var k="";let r="";""==t&&null!=t&&(r=`'name' => '${e.name}',`),l.map((e=>{k+=`'${e.value}'  => esc_html__( '${e.lable}', '${s}' ),`}));let o=`array(\n            ${r}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${e.select_defaultValue[0]?`'default' => '${Le(e.select_defaultValue[0])}',`:""}\n            ${i(e)}\n            ${a?`'options' => ${a},`:`'options' => array( ${k} ),`}\n        )`;n+=null!=t&&""==t?o:t&&null!=t?`$${t}->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                ${o}\n            );\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n                ${o}\n            );\n`}else if("selecttemplate"==e.type){k="";let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            'default' => '0',\n            ${i(e)}\n            'options' => Wdkit_Wb_Elementor_Controller::wdkit_get_templates(),\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("select2"==e.type){let a=e.options;k="";let l="";var v=[];""==t&&null!=t&&(l=`'name' => '${e.name}',`),a.map((e=>{k+=`'${Le(e.value)}'  => esc_html__( '${Le(e.lable)}', '${s}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{v.push("'"+Le(e.value)+"'")}));let r=`array(\n            ${l}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::SELECT2,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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(${v}),\n            ${!0===e.multiple?`'multiple' => ${e.multiple},`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n\n            'options' => array( ${k} ),\n            ${i(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 a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            'type' => Controls_Manager::TEXTAREA,\n            ${1!=e?.ai_support?"'ai'   => [ 'active' => false ],":""}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\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__( '${Le(e.placeHolder)}', '${s}' ),`:""}\n            ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${s}' ),`:""}\n            ${e.controlClass?`'classes' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(e)}\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("switcher"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::SWITCHER,\n            'label_on' => esc_html__( '${Le(e.label_on)}', '${s}' ),\n            'label_off' => esc_html__( '${Le(e.label_off)}', '${s}' ),\n            ${e?.description?`'description' => esc_html__( '${e.description}', '${s}' ),`:""}\n            'return_value' => '${Le(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' => '${Le(e.controlClass)}',`:""}\n            ${i(e)}\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("headingtags"==e.type){let a=[{value:"h1",lable:"H1"},{value:"h2",lable:"H2"},{value:"h3",lable:"H3"},{value:"h4",lable:"H4"},{value:"h5",lable:"H5"},{value:"h6",lable:"H6"}];k="";let l="";""==t&&null!=t&&(l=`'name' => '${e.name}',`),a.map((e=>{k+=`'${e.value}'  => esc_html__( '${e.lable}', '${s}' ),`}));let r=`array(\n            ${l}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\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' => '${Le(e.controlClass)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${e.select_defaultValue[0]?`'default' => '${Le(e.select_defaultValue[0])}',`:""}\n            ${i(e)}\n            'options' => array( ${k} ),\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 a="",l=[];""==t&&null!=t&&(a=`'name' => '${e.name}',`),e.url_options&&1==e.url_options&&e.url_options_array?(l+="array(",e.url_options_array.map((e=>{l+=`'${e}',`})),l+=")"):l=!1;let r=`array(\n            ${a}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::URL,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${s}' ),`:""}\n            'options' => ${l},\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' => '${Le(e.controlClass)}',`:""}\n            ${!0===e.dynamic?`'dynamic' => array(\n                'active' => ${e.dynamic},\n            ),`:""}\n            ${i(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 a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n            ${a}\n            ${e.lable?`'heading' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::ALERT,\n            ${e?.description?`'content' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n            'alert_type' => '${e.alert_type}',\n            ${i(e)}\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("notice"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n        ${a}\n        ${e.lable?`'heading' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n        'type' => Controls_Manager::NOTICE,\n        ${e?.description?`'content' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n        'notice_type' => '${e.notice_type}',\n        'dismissible' => ${e.dismissible},  \n        ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n        ${i(e)}\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("deprecatednotice"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let l=`array(\n        ${a}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n        ${e?.description?`'content' => esc_html__( '${Le(e.description)}', '${s}' ).' <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' => '${Le(e.deprecatedValue[0].Widget)}',\n        'since' => '${Le(e.deprecatedValue[1].Since)}',\n        'last' => '${Le(e.deprecatedValue[2].Last)}',\n        'plugin' => '${Le(e.deprecatedValue[3].Plugin)}',\n        'replacement' => '${Le(e.deprecatedValue[4].Replacement)}',\n        ${i(e)}\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("cpt"==e.type){let a="";e?.fields?.length&&e?.fields.map((i=>{i.name!="post_type_"+e.unique_id&&(i.name=="order_by_"+e.unique_id?a+=Ve(i,t,'$this->set_options("order_by")'):a+=Ve(i))}));let l=`array(\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n            'type' => Controls_Manager::SELECT,\n            'options' => $this->set_options("post_list"),\n            'default' => 'post',\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' => '${Le(e.controlClass)}',`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n            ${i(e)}\n        )`;n+=`$this->${1==e.responsive?"add_responsive_control":"add_control"}('post_type_${e.unique_id}',\n            ${l}\n        );\n\n        \n        ${a}`}else if("product_listing"==e.type){let a="";e?.fields?.length&&e?.fields.map((i=>{i.name!="post_type_"+e.unique_id&&(i.name=="order_by_"+e.unique_id?a+=Ve(i,t,'$this->set_options("order_by")'):a+=Ve(i))})),n+=a}else if("taxonomy"==e.type){let a="";e?.fields?.length&&e?.fields.map((i=>{i.name=="post_type_"+e.unique_id?a+=Ve(i,t,'$this->set_options("post_list")'):a+=Ve(i)})),n+=`\n        $this->add_control('taxonomy_${e.unique_id}',\n            array(\n                ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${s}' ),`:""}\n                'type' => Controls_Manager::SELECT,\n                'options' => get_taxonomies(),\n                'default' => 'category',\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' => '${Le(e.controlClass)}',`:""}\n                ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${s}' ),`:""}\n                ${i(e)}\n            )\n        );\n\n        \n        ${a}`}return n},De=(e,t,a,i,s)=>{const n=e=>{var t="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""==e.name||""==e.operator||(o+=`['${Le(e.name)}','${"=="==e.operator?"=":e.operator}', ${1==e.value||0==e.value||"true"==e.value||"false"==e.value?e.value:`'${Le(e.value)}'`}],\n`)})),""==o?t="":t+=`'required' =>  [${o}],`),t};var l="wdesignkit",r="",o="",d=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let s=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'text',\n            'spellcheck' => true,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${l}' ),`:""}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("number"==e.type){let s=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\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__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${n(e)}\n            ${!1===e.lableBlock?"":`'inline' =>${e.lableBlock},`}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            ${e.selector_value||e.selectors?`'css' => [\n                [\n                    'property' => '${Le(e.selector_value)}',\n                    'selector' => '${Le(e.selectors)}',\n                ],\n            ],`:""}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("repeater"==e.type){var c="",p="";if(""==a&&null!=a&&e.name,"Old"==e.repeater_type?Ne():e.repeater_type,e.fields){p+="[";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(p+="[",e.fields.map((e=>{p+=Me(e,"bricks")})),p+="],\n");p+="]"}e.fields.length>0&&(c+="[",e.fields.forEach((e=>{d.includes(e.type)||(c+=`\n ${De(e,"","repeater")}`)})),c+="],"),r+=`\n            $this->controls['${e.name}'] = [\n                'tab' =>  '${t}',\n                ${a?"":`'group' => '${Le(i?.section)}',`}\n                ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n\t\t\t\t'type' => 'repeater',\n                ${e.title_field?`'titleProperty' => '${Le(e.title_field)}',`:""}\n                ${p?`'default' => ${p},`:""}\n                ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n                'inline' => false,\n                ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n                'fields' => ${c||"[]"}\n                ${n(e)}\n            ];\n        `}else if("textarea"==e.type){let s=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'textarea',\n            'rows' => '${e.rows}',\n            'spellcheck' => true,\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            ${e.defaultValue?`'default' => '${Le(e.defaultValue)}',`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("color"==e.type){let s=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'color',\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.selector_value||e.selectors?`'css' => [\n                [\n                    'property' => '${Le(e.selector_value)}',\n                    'selector' => '${Le(e.selectors)}',\n                ],\n            ],`:""}            \n            ${e.defaultValue?`'default' => [\n              'hex' => '${Le(e.defaultValue)}',\n            ],`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("select"==e.type){let o=e.options;var w="";o.map((e=>{w+=`'${e.value}'  => esc_html__( '${e.lable}', '${l}' ),`}));let d=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'select',\n            ${s?`'options' => ${s},`:`'options' => array( ${w} ),`}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            'multiple' => false, \n            'searchable' => true,\n            'clearable' => true,\n            ${e.select_defaultValue[0]?`'default' => '${Le(e.select_defaultValue[0])}',`:""}\n            ${n(e)}\n            `;r+=a?`'${e.name}' => [\n                ${d}\n            ],`:`$this->controls['${e.name}'] = [\n                ${d}\n            ]\n            ;\n`}else if("select2"==e.type){let s=e.options;w="";var m=[];s.map((e=>{w+=`'${Le(e.value)}'  => esc_html__( '${Le(e.lable)}', '${l}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{m.push("'"+Le(e.value)+"'")}));let o=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'select',\n            'options' => [ ${w} ],\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            'multiple' => true, \n            'searchable' => true,\n            'clearable' => true,\n            ${m?`'default' => array(${m}),`:""}\n            ${n(e)}\n\n        `;r+=a?`'${e.name}' => [\n                ${o}\n            ],`:`$this->controls['${e.name}'] = [\n                ${o}\n            ]\n            ;\n`}else if("url"==e.type){let s=`\n       \n            'tab'         => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            'type'        => 'link',\n            'pasteStyles' => false,\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("media"==e.type){let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            'type' => 'image',\n            ${e.defaultValue?`\n            'default' => [\n                        'url'      => '${Le(e.defaultValue)}',\n                        ],\n                `:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("iconscontrol"==e.type){let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'icon',\n            'default' => [\n              'library' => 'Fontawesome - Regular',\n              'icon' => '${Le(e.defaultValue)}',\n            ],\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${n(e)}\n            ${e.selectors?`'css' => [\n              [\n                'selector' => '${Le(e.selectors)}',\n              ],\n            ],`:""}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("slider"==e.type){var g="",u="";""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(g+=`"${e.type}",`,u+=`'${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],`)})),g&&u?(g=`'size_units' => [ ${g} ],`,u=`'units' => [${u}],`):(g="",u=""));let s=`\n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'slider',\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.selector_value||e.selectors?`'css' => [\n                [\n                    'property' => '${Le(e.selector_value)}',\n                    'selector' => '${Le(e.selectors)}',\n                ],\n            ],`:""}\n            ${u}\n            \n            'default' => '${e.slider_defaultValue[1]}${Le(e.slider_defaultValue[0])}',\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("dimension"==e.type){let s="";e.dimension_defaultValue&&(1==e.dimension_defaultValue.isLinked?s=`[\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&&(s=`[\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' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'dimensions',\n            ${e.selector_value||e.selectors?`'css' => [\n                [\n                    'property' => '${Le(e.selector_value)}',\n                    'selector' => '${Le(e.selectors)}',\n                ],\n            ],`:""}\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${s?`'default' => ${s},`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${o}\n            ],`:`$this->controls['${e.name}'] = [\n                ${o}\n            ]\n            ;\n`}else if("background"==e.type){let s=`\n    \n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'background',\n        ${e.selector?`'css' => [\n            [\n                'property' => 'background',\n                'selector' => '${Le(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)}`;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("border"==e.type){let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'border',\n            ${e.selector?`'css' => [\n                [\n                    'property' => 'border',\n                    'selector' => '${Le(e.selector)}',\n                ],\n            ],`:""}\n            'small' => true,\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("typography"==e.type){let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'typography',\n            ${e.selector?`'css' => [\n                [\n                    'property' => 'typography',\n                    'selector' => '${Le(e.selector)}',\n                ],\n            ],`:""}\n            'inline' => true,\n            ${n(e)}\n            'popup' => true, \n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("textshadow"==e.type){let s=`\n       \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'text-shadow',\n            ${e.selector?`'css' => [\n                [\n                    'property' => 'text-shadow',\n                    'selector' => '${Le(e.selector)}',\n                ],\n            ],`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("boxshadow"==e.type){let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'box-shadow',\n            ${e.selector?`'css' => [\n                [\n                    'property' => 'box-shadow',\n                    'selector' => '${Le(e.selector)}',\n                ],\n            ],`:""}\n            'small' => true,\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("cssfilter"==e.type){let s=`\n       \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'filters',\n            ${e.selector?`'css' => [\n                [\n                    'property' => 'filter',\n                    'selector' => '${Le(e.selector)}',\n                ],\n            ],`:""}\n            'inline' => true,\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("svg"==e.type){let s=`\n       \n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        'type' => 'svg',\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("datetime"==e.type){let s=`\n       \n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'datepicker',\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${e.defaultValue?`'default' =>  esc_html__( '${Le(e.defaultValue)}', '${l}' ),`:""}\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("code"==e.type){let s=`\n       \n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'code',\n        'mode' => '${e.language}',\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${e.defaultValue?`'default' => '${Le(e.defaultValue)}',`:""}\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("gallery"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'image-gallery',\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        'inline' => false,\n         ${e.defaultValue?`\n                'default' => array(\n                'images' => [\n                    array(\n                        'url' => '${Le(e.defaultValue)}'\n                        )\n                ]\n                ),\n                `:""}\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("align"==e.type){const s={"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' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type'  => '${s}',\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__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${n(e)}\n        ${s||e.selectors?`'css' => [\n            [\n                'property' => '${e.alignType.trim()}',\n                'selector' => '${Le(e.selectors)}',\n            ],\n        ],`:""}\n        \n        `;r+=a?`'${e.name}' => [\n                ${o}\n            ],`:`$this->controls['${e.name}'] = [\n                ${o}\n            ]\n            ;\n`}else if("headingtags"==e.type){w="",[{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=>{w+=`'${e.value}'  => esc_html__( '${e.lable}', '${l}' ),`}));let s=`\n        \n            'tab' => '${t}',\n            ${a?"":`'group' => '${Le(i?.section)}',`}\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'select',\n            'options' => [ ${w} ],\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            'multiple' => false, \n            'searchable' => false,\n            'clearable' => false,\n            ${e.select_defaultValue[0]?`'default' => '${Le(e.select_defaultValue[0])}',`:""}\n            ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("heading"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'info',\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("switcher"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'checkbox',\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${e.defaultValue?`'default' => ${e.defaultValue},`:""}\n        ${n(e)}\n\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("wysiwyg"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'editor',\n        'inlineEditing' => [\n            'selector' => '.text-editor',\n            'toolbar' => true,\n        ],\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${e.defaultValue?`'default' => esc_html__( '${Le(e.defaultValue)}', '${l}' ),`:""} \n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("query"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'query',\n        'default' => [\n            'post_type' => 'post',\n        ],\n        ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n        ${n(e)}\n\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("divider"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        'type' => 'separator',\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("gradientcolor"==e.type){let s=`\n\n        'tab' => '${t}',\n        ${a?"":`'group' => '${Le(i?.section)}',`}\n        ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n        'type' => 'gradient',\n        'css' => [\n            [\n              'property' => 'background-image',\n              'selector' => '${Le(e.selectors)}',\n            ],\n          ],\n          ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n        'inline' => false,\n        ${n(e)}\n        `;r+=a?`'${e.name}' => [\n                ${s}\n            ],`:`$this->controls['${e.name}'] = [\n                ${s}\n            ]\n            ;\n`}else if("cpt"==e.type){let a="";e?.fields?.length&&e?.fields.map((s=>{s.name!="post_type_"+e.unique_id&&(s.name=="order_by_"+e.unique_id?a+=De(s,t,void 0,i,'$this->set_options("order_by")'):a+=De(s,t,void 0,i))}));let s=`\n            'tab' => '${t}',\n            'group' => '${Le(i?.section)}',\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'type' => 'select',\n            'options' => $this->set_options("post_list"),\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            'multiple' => false, \n            'default' => 'post',\n            ${n(e)}\n            `;r+=`$this->controls['post_type_${e.unique_id}'] = [\n                ${s}\n            ];\n            ${a}\n            \n`}else if("product_listing"==e.type){let a="";e?.fields?.length&&e?.fields.map((s=>{s.name!="post_type_"+e.unique_id&&(s.name=="order_by_"+e.unique_id?a+=De(s,t,void 0,i,'$this->set_options("order_by")'):a+=De(s,t,void 0,i))})),r+=a}else if("taxonomy"==e.type){let a="";e?.fields?.length&&e?.fields.map((s=>{s.name=="post_type_"+e.unique_id?a+=De(s,t,void 0,i,'$this->set_options("post_listing")'):a+=De(s,t,void 0,i)})),r+=`$this->controls['${e.name}'] = [\n            'tab' => '${t}',\n            ${e.lable?`'label' => esc_html__( '${Le(e.lable)}', '${l}' ),`:""}\n            'group' => '${Le(i?.section)}',\n            'type' => 'select',\n            'options' => get_taxonomies(),\n            ${e?.description?`'description' => esc_html__( '${Le(e.description)}', '${l}' ),`:""}\n            ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n            ${e.placeHolder?`'placeholder' => esc_html__( '${Le(e.placeHolder)}', '${l}' ),`:""}\n            'multiple' => false, \n            'searchable' => true,\n            'clearable' => true,\n            'default' => 'category',\n            ${n(e)}\n        ]\n        ;\n\n        \n        ${a}`}return r},Se=async(e,t,a,i,s,n,r,o)=>{const d=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},c=()=>{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()),w=function(e){return(new DOMParser).parseFromString(e,"text/html")},m=e=>"string"==typeof e?e.replaceAll("'","\\'"):e,g=e=>{var t="",a="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""!=e.name&&""!=e.operator&&(a+=`['name' => '${m(e.name)}', 'operator' => '${e.operator}', 'value' => '${m(e.value)}'],\n`)})),""!=a&&(t+=`'conditions' => array(\n                    'relation' => '${e.condition_value.relation}',\n                    'terms' => [${a}],\n                ),`)),t};wdkitData.WDKIT_SITE_URL;var u=wdkitData.WDKIT_SERVER_PATH,h="wdesignkit",_=(e=>{let t=JSON.parse(e),a=w(t);return(a.head.innerHTML+a.body.innerHTML).replaceAll("'","\\'")})(a),C=[],k=[],v="",b={},x="",f="",j="",y=d(),$=d(),N=[],L={ajax:"",api:""},M=[],H=[],V=!1,D={selecttemplate:"use wdkit\\wdkit_wbcontroller\\Wdkit_Wb_Elementor_Controller;"};const S=e=>{var a=t.WcardData.widgetdata.name.trim(),i=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+i:"folder"==e?a.replaceAll(" ","-")+"_"+i:null==e?a:void 0},Z=e=>{let t=[],a=w(_);if(a.querySelectorAll(`[data-${e}]`).length>0){_=a.head.innerHTML+a.body.innerHTML;let i=a.querySelectorAll(`[data-${e}]`);return Object.values(i).map((e=>{t.push(e.outerHTML)})),t}};(()=>{if("update"==e||"sync"==e&&null!=n){let e=new URL(window.location).hash.split("/"),a=e.length-1,i=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=i;let s=e.join("/");document.location.hash=s}})();const R=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(n){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=S("folder"),i=S("file"),s=`${u}/elementor/${e}/${i}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:a})}}return t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];if(a){let e=S("folder"),i=S("file"),s=`${u}/elementor/${e}/${i}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,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=S("folder"),i=S("file"),s=`${u}/elementor/${a}/${i}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:e})}}}},B=async e=>{if(e){let t=Z(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var i=w(t);N.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&B(t.name)}));let n=Z(e);if(n.length>0){let t=N.findIndex((t=>t.name==e)),i=N[t];if("repeater"==i.type){let e=c(),t=`$${i.name+"_"+e} .= '${n[0]}';`;v+=`$${i.name+"_"+e} = '';\n                            if ( $settings['${i.name}'] ) {\n                                foreach ( $settings['${i.name}'] as $key => $r_item ) {\n                                    ${b?.[i.name]?b?.[i.name]:""}\n                                    ${t}\n                                }\n                            }`,_=_.replace(n[0],`'.$${i.name+"_"+e}.'`)}else if("gallery"==i.type){let e=c();if(null!=i?.repeater){var s=`$${i.name+"_"+e} = '';\n                                if($r_item['${i.name}']){\n                                    foreach ( ${i?.repeater?"$r_item":"$settings"}['${i.name}'] as $image ) {\n                                        $${i.name+"_"+e} .= '${n[a]}';\n                                    }\n                                }`;b?.[i?.repeater]&&(s=b?.[i?.repeater]+s),b=Object.assign({},b,{[i?.repeater]:s})}else x+=`$${i.name+"_"+e} = '';\n                                if($settings['${i.name}']){\n                                    foreach ( ${i?.repeater?"$r_item":"$settings"}['${i.name}'] as $image ) {\n                                        $${i.name+"_"+e} .= '${n[0]}';\n                                    }\n                                }`;_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("cpt"==i.type){let e=c(),t=n[0],a=w(t),s=[],l=[];if(a.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=a.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{s.push(e.outerHTML)}))}if(a.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=a.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(s?.length>0){let e="",a="";s.map((i=>{let s=c();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),r+=`\n                                    ${a}\n                                    if( !empty ($p_item['categories']) ){\n                                        foreach( $p_item['categories'] as $cat){\n                                            ${e}\n                                        }\n                                    }`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=c();a+=`$${"tagList_"+s} = '';\n`,t=t.replace([i],`'.$${"tagList_"+s}.'`),e+=`$${"tagList_"+s} .= '${i}';\n`})),o+=`\n                                    ${a}\n                                    if( !empty ($p_item['tags']) ){\n                                        foreach( $p_item['tags'] as $tag){\n                                            ${e}\n                                        }\n                                    }`}x+=`$${i.name+"_"+e} = '';\n                                if(!empty($settings['post_type_${i.unique_id}'])){\n\n                                $type = $settings['post_type_${i.unique_id}'];\n                                $per_page = isset($settings['max_post_${i.unique_id}']) ? $settings['max_post_${i.unique_id}'] : '10';\n                                $order = !empty($settings['order_${i.unique_id}']) ? $settings['order_${i.unique_id}'] : 'DESC'; \n                                $order_by = !empty($settings['order_by_${i.unique_id}']) ? $settings['order_by_${i.unique_id}'] : 'date'; \n                                $include = !empty( $settings['include_${i.unique_id}'] ) ? explode( ',', $settings['include_${i.unique_id}'] ) : array();\n                                $exclude = !empty( $settings['exclude_${i.unique_id}'] ) ? explode( ',', $settings['exclude_${i.unique_id}'] ) : array();\n                                $cat_count = isset( $settings['max_cat_${i.unique_id}'] ) ? $settings['max_cat_${i.unique_id}'] : 3;\n                                $tag_count = isset( $settings['max_tag_${i.unique_id}'] ) ? $settings['max_tag_${i.unique_id}'] : 3;\n\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_post_query($type, $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count)) ? $this->get_post_query($type, $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count) : [];\n                                    foreach ( $${i.name+"_"+e+"_array"} as $p_item ) {\n                                        ${r}\n                                        ${o}\n                                        $${i.name+"_"+e} .= '${t}';\n                                    }\n                                }`,_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("product_listing"==i.type){let e=c(),t=n[0],a=w(t),s=[],l=[];if(a.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=a.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{s.push(e.outerHTML)}))}if(a.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=a.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(s?.length>0){let e="",a="";s.map((i=>{let s=c();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),r+=`\n                                    ${a}\n                                    if( !empty ($p_item['categories']) ){\n                                        foreach( $p_item['categories'] as $cat){\n                                            ${e}\n                                        }\n                                    }`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=c();a+=`$${"tagList_"+s} = '';\n`,t=t.replace([i],`'.$${"tagList_"+s}.'`),e+=`$${"tagList_"+s} .= '${i}';\n`})),o+=`\n                                    ${a}\n                                    if( !empty ($p_item['tags']) ){\n                                        foreach( $p_item['tags'] as $tag){\n                                            ${e}\n                                        }\n                                    }`}x+=`$${i.name+"_"+e} = '';\n\n                                $per_page = isset($settings['max_post_${i.unique_id}']) ? $settings['max_post_${i.unique_id}'] : '10';\n                                $order = !empty($settings['order_${i.unique_id}']) ? $settings['order_${i.unique_id}'] : 'DESC'; \n                                $order_by = !empty($settings['order_by_${i.unique_id}']) ? $settings['order_by_${i.unique_id}'] : 'date'; \n                                $include = !empty( $settings['include_${i.unique_id}'] ) ? explode( ',', $settings['include_${i.unique_id}'] ) : array();\n                                $exclude = !empty( $settings['exclude_${i.unique_id}'] ) ? explode( ',', $settings['exclude_${i.unique_id}'] ) : array();\n                                $cat_count = isset( $settings['max_cat_${i.unique_id}'] ) ? $settings['max_cat_${i.unique_id}'] : 3;\n                                $tag_count = isset( $settings['max_tag_${i.unique_id}'] ) ? $settings['max_tag_${i.unique_id}'] : 3;\n\n\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_post_query('product', $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count)) ? $this->get_post_query('product', $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count) : [];\n                                    foreach ( $${i.name+"_"+e+"_array"} as $p_item ) {\n                                        ${r}\n                                        ${o}\n                                        $${i.name+"_"+e} .= '${t}';\n                                    }`,_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("taxonomy"==i.type){let e=c(),t=n[0];x+=`$${i.name+"_"+e} = '';\n                                if(!empty($settings['taxonomy_${i.unique_id}'])){\n\n                                    $taxo_type = $settings['taxonomy_${i.unique_id}'];\n                                    $post_type = !empty($settings['post_type_${i.unique_id}']) ? $settings['post_type_${i.unique_id}'] : 'post';\n                                    $per_page = !empty($settings['max_post_${i.unique_id}']) ? $settings['max_post_${i.unique_id}'] : '10';\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_taxonomy_list($taxo_type, $post_type, $per_page)) ? $this->get_taxonomy_list($taxo_type, $post_type, $per_page) : [];\n\n                                    if ( !empty($${i.name+"_"+e+"_array"}) ) {\n                                        foreach ( $${i.name+"_"+e+"_array"} as $t_item ) {\n                                            $${i.name+"_"+e} .= '${t}';\n                                        }\n                                    } else {\n                                        $${i.name+"_"+e} .= '<h6 style="color: red;text-align: center;display: block;">No Result Found</h6>';\n                                    }\n                                }`,_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("select2"==i.type){let e=c();i?.repeater?(s=i?.multiple?`$${i.name+"_"+e} = '';\n                                    if ( $r_item['${i.name}'] && $r_item['${i.name}'] != "undefined" ) {\n                                        foreach ( $r_item['${i.name}'] as $s_item  ) {\n                                            $${i.name+"_"+e} .= '${n[0]}';\n                                        }\n                                    }`:`$${i.name+"_"+e} = '';\n                                    if ( $r_item['${i.name}'] && $r_item['${i.name}'] != "undefined" ) {\n                                            $${i.name+"_"+e} .= '${n[0]}';\n                                    }`,b?.[i?.repeater]&&(s=b?.[i?.repeater]+s),b=Object.assign({},b,{[i?.repeater]:s})):x+=i?.multiple?`$${i.name+"_"+e} = '';\n                                    if ( ${i?.repeater?"$r_item":"$settings"}['${i.name}'] && ${i?.repeater?"$r_item":"$settings"}['${i.name}'] != "undefined" ) {\n                                        foreach ( ${i?.repeater?"$r_item":"$settings"}['${i.name}'] as $s_item  ) {\n                                            $${i.name+"_"+e} .= '${n[0]}';\n                                        }\n                                    }`:`$${i.name+"_"+e} = '';\n                                    if ( ${i?.repeater?"$r_item":"$settings"}['${i.name}'] && ${i?.repeater?"$r_item":"$settings"}['${i.name}'] != "undefined" ) {\n                                            $${i.name+"_"+e} .= '${n[0]}';\n                                    }`,_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("headingtags"==i.type){let e=c();if(null!=i?.repeater){let t=n[0],a=d();t=t.replaceAll(`data-${i.name}`,a),t=t.replaceAll([i.name],`'.$r_item["${i.name}"].'`),t=t.replaceAll([a],`data-${i.name}`),s=`$${i.name+"_"+e} = '';\n                                if($r_item['${i.name}']){\n                                    $${i.name+"_"+e} = '${t}';\n                                }`,b?.[i?.repeater]&&(s=b?.[i?.repeater]+s),b=Object.assign({},b,{[i?.repeater]:s})}else{let t=n[0],a=d();t=t.replaceAll(`data-${i.name}`,a),t=t.replaceAll([i.name],`'.$settings["${i.name}"].'`),t=t.replaceAll([a],`data-${i.name}`),x+=`$${i.name+"_"+e} = '';\n                                if($settings['${i.name}']){\n                                    $${i.name+"_"+e} = '${t}';\n                                }`}_=_.replace([n[0]],`'.$${i.name+"_"+e}.'`)}}}}))}},E=(e,t)=>{let a=e?.sanitizer_value?e.sanitizer_value:"";return(e?.sanitizer_dropdown_value?e.sanitizer_dropdown_value:"")||(a="wdk_senitize_js"),"none"!=a&&a&&a.trim()?("wdk_senitize_js"==a&&(V=!0),`${a}(${t})`):t},O=(e,t)=>{M.includes(e.type)||M.push(e.type);var a="";if("icon"==e.type||"iconscontrol"==e.type){if(_.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`;b?.[t]&&(a=b?.[t]+a),b=Object.assign({},b,{[t]:a})}else x+=`$${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`;_=_.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("text"==e.type||"textarea"==e.type||"select"==e.type||"choose"==e.type||"wysiwyg"==e.type||"rawhtml"==e.type)null!=t?_=_.replaceAll(`{{${e.name}}}`,`' . ${E(e,`$r_item['${e.name}']`)} . '`):(x+=`$${e.name} = !empty($settings['${e.name}']) ? ${E(e,`$settings['${e.name}']`)} : '';\n`,_=_.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`));else if("media"==e.type){if(_.search(e.name)>=1){if(null!=t){let a=`$${e.name} = !empty($r_item['${e.name}']['url']) ? ${E(e,`$r_item['${e.name}']['url']`)} : '';\n`;b?.[t]&&(a=b?.[t]+a),b=Object.assign({},b,{[t]:a})}else x+=`$${e.name} = !empty($settings['${e.name}']['url']) ? ${E(e,`$settings['${e.name}']['url']`)} : '';\n`;_=_.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){N.push({type:e.type,name:e.name,repeater:t});let i=Z(e.name);i?i.map(((t,i)=>{let s=t;b[e.name]="",e.fields.map((n=>{if(a+=O(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=(l=s,(new DOMParser).parseFromString(l,"text/html").body);if(e.querySelector(`[data-${n.name}]`)&&e.querySelector(`[data-${n.name}]`).outerHTML){let t=e.querySelector(`[data-${n.name}]`).outerHTML;_=_.replaceAll(t,`'.$${n.name+i}.'`)}}else _="media"==n.type||"iconscontrol"==n.type?_.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):"url"==n.type?(_=(_=_.replaceAll(`{{${n.name}-url}}`,`' . $${n.name}_url . '`)).replaceAll(`{{${n.name}-is_external}}`,`' . $${n.name}_is_external . '`)).replaceAll(`{{${n.name}-nofollow}}`,`' . $${n.name}_nofollow . '`):_.replaceAll(`{{${n.name}}}`,`' . $r_item['${n.name}'] . '`);_=(_=(_=_.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 l}))})):e.fields.map((t=>{a+=O(t,e.name)}))}else if("gallery"==e.type){N.push({type:e.type,name:e.name,repeater:t});let a=Z(e.name);a&&a.map(((t,a)=>{t&&(_=_.replaceAll("{{"+e.name+"}}",`'.${E(e,"$image['url']")}.'`))}))}else if("select2"==e.type){N.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple});let a=Z(e.name);a&&a.map(((t,a)=>{t&&(_=e.multiple?_.replaceAll("{{"+e.name+"}}",`' .${E(e,"$s_item")} . '`):_.replaceAll("{{"+e.name+"}}",`' .${E(e,`$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'])? ${E(e,`$r_item['${e.name}']['url']`)} : '';\n`,a+=`$${e.name}_nofollow = !empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['nofollow'])? 'nofollow' : '';\n`,b?.[t]&&(a=b?.[t]+a),b=Object.assign({},b,{[t]:a})}else x+=`$${e.name}_url = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['url']) ? ${E(e,`$settings['${e.name}']['url']`)} : '';\n`,x+=`$${e.name}_is_external = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['is_external']) ? '_blank' : '';\n`,x+=`$${e.name}_nofollow = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['nofollow']) ? 'nofollow' : '';\n`,x+=`$${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                }`;_=(_=(_=(_=_.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`;b?.[t]&&(a=b?.[t]+a),b=Object.assign({},b,{[t]:a})}else x+=`$${e.name} = !empty($settings['${e.name}']) ? Wdkit_Wb_Elementor_Controller::wdkit_elementor()->frontend->get_builder_content_for_display( $settings['${e.name}'] ) : '';\n`;_=_.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("popover"==e.type)e.fields&&e.fields.map((e=>{a+=O(e)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{a+=O(e)}));else if("number"==e.type){if(null!=t){let a=`$${e.name} = isset($r_item['${e.name}']) ? ${E(e,`$r_item['${e.name}']`)} : '';\n`;b?.[t]&&(a=b?.[t]+a),b=Object.assign({},b,{[t]:a})}else x+=`$${e.name} = isset($settings['${e.name}']) ? ${E(e,`$settings['${e.name}']`)} : '';\n`;_=_.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("headingtags"==e.type)N.push({type:e.type,name:e.name,repeater:t});else if("cpt"==e.type){N.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=Z(e.name);a&&a.map(((t,a)=>{t&&(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=_.replaceAll("{{title_"+e.name+"}}","'.$p_item['title'].'")).replaceAll("{{description_"+e.name+"}}","'.$p_item['description'].'")).replaceAll("{{cat_name_"+e.name+"}}","'.$cat['name'].'")).replaceAll("{{cat_url_"+e.name+"}}","'.$cat['url'].'")).replaceAll("{{tag_name_"+e.name+"}}","'.$tag['name'].'")).replaceAll("{{tag_url_"+e.name+"}}","'.$tag['url'].'")).replaceAll("{{thumbnail_"+e.name+"}}","'.$p_item['image'].'")).replaceAll("{{post_link_"+e.name+"}}","'.$p_item['post_link'].'")).replaceAll("{{post_date_"+e.name+"}}","'.$p_item['post_date'].'")).replaceAll("{{auth_name_"+e.name+"}}","'.$p_item['author_name'].'")).replaceAll("{{auth_id_"+e.name+"}}","'.$p_item['author_id'].'")).replaceAll("{{auth_email_"+e.name+"}}","'.$p_item['author_email'].'")).replaceAll("{{auth_profile_"+e.name+"}}","'.$p_item['author_avatar'].'")).replaceAll("{{auth_url_"+e.name+"}}","'.$p_item['author_url'].'"))}))}else if("product_listing"==e.type){N.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=Z(e.name);a&&a.map(((t,a)=>{t&&(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=(_=_.replaceAll("{{title_"+e.name+"}}","'.$p_item['title'].'")).replaceAll("{{description_"+e.name+"}}","'.$p_item['description'].'")).replaceAll("{{cat_name_"+e.name+"}}","'.$cat['name'].'")).replaceAll("{{cat_url_"+e.name+"}}","'.$cat['url'].'")).replaceAll("{{tag_name_"+e.name+"}}","'.$tag['name'].'")).replaceAll("{{tag_url_"+e.name+"}}","'.$tag['url'].'")).replaceAll("{{thumbnail_"+e.name+"}}","'.$p_item['image'].'")).replaceAll("{{post_link_"+e.name+"}}","'.$p_item['post_link'].'")).replaceAll("{{post_date_"+e.name+"}}","'.$p_item['post_date'].'")).replaceAll("{{auth_name_"+e.name+"}}","'.$p_item['author_name'].'")).replaceAll("{{auth_id_"+e.name+"}}","'.$p_item['author_id'].'")).replaceAll("{{auth_email_"+e.name+"}}","'.$p_item['author_email'].'")).replaceAll("{{auth_profile_"+e.name+"}}","'.$p_item['author_avatar'].'")).replaceAll("{{auth_url_"+e.name+"}}","'.$p_item['author_url'].'"))}))}else if("taxonomy"==e.type){N.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=Z(e.name);a&&a.map(((t,a)=>{t&&(_=(_=(_=(_=(_=_.replaceAll("{{title_"+e.name+"}}","'.$t_item['name'].'")).replaceAll("{{description_"+e.name+"}}","'.$t_item['description'].'")).replaceAll("{{taxo_image_"+e.name+"}}","'.$t_item['thumbnail'].'")).replaceAll("{{taxo_link_"+e.name+"}}","'.$t_item['front_link'].'")).replaceAll("{{taxo_slug_"+e.name+"}}","'.$t_item['slug'].'"))}))}else null!=t?_=_.replaceAll(`{{${e.name}}}`,`' . $r_item['${e.name}'] . '`):(x+=`$${e.name} = !empty($settings['${e.name}']) ? $settings['${e.name}'] : '';\n`,_=_.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_${d()}', '${e}', array(), '${wdkitData.WDKIT_VERSION}.${p()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(k+=`wp_enqueue_style( 'wd_css_ex_1_${d()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${p()}', 'all' );\n`)})),t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{v+=O(e)}))})),N.length>0&&N.map((e=>{B(e.name)})),t.CardItems.cardData[0].layout.map((e=>{f+=`$this->start_controls_section('${e.section}_tab_content',\n            [\n                'label' => esc_html__( '${e.section}', '${h}' ),\n                'tab' => Controls_Manager::TAB_CONTENT,\n                ${g(e)}\n            ]\n        );\n`,e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||H.includes(e.type)||H.push(e.type),f+=Ve(e)})),f+="$this->end_controls_section();"})),t.CardItems.cardData[0].style.map((e=>{j+=`$this->start_controls_section(\n            '${e.section}_style_secdddtion',\n            [\n                'label' => esc_html__( '${e.section}', '${h}' ),\n                'tab' => \\Elementor\\Controls_Manager::TAB_STYLE,\n                ${g(e)}\n            ]\n        );\n`,e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||H.includes(e.type)||H.push(e.type),j+=Ve(e)})),j+="$this->end_controls_section();"})),x=x.replaceAll("wdk_senitize_js","$this->wdk_senitize_js"),v=v.replaceAll("wdk_senitize_js","$this->wdk_senitize_js");var A,T='""'!=s?`(function ($) {\n        "use strict";\n            var WidgetScrollSequenceHandler = function($scope, $) { \n                let is_editable = elementorFrontend?.isEditMode();\n                ${JSON.parse(s)}  \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);`:"",P=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(i);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("}"),i="";return t.map((t=>{let a=t.trim();if(a.search("{")>-1)if(a.search("@import")>-1)i+=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} .`)),i+=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)),i+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` {  .wkit-wb-Widget_${e}`),i+=a+"}"):i+=a+"}";else a.search("{")<=-1&&(i+="}")})),i=i.slice(0,-1),i}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`,W=`<?php\n/*\n * Widget Name: ${S()}\n * Author: POSIMYTH\n * Author URI: https://posimyth.com\n * \n * @package wdesignkit\n */\n\n${A="",M?.length>0&&M.map((e=>{D?.[e]&&(A+=D?.[e])})),A}\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_${S("file").replaceAll("-","_")}\n */\nclass Wdkit_${S("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__('${S()}', '${h}');\n    }\n\n    ${t.WcardData.widgetdata.w_icon?`\n    /**\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,i)=>{a+=`'${t}'`,i!=e.length-1&&(a+=",")})),a}return"'WDesignKit'"})()});\n    }\n\n    ${H.length>0?"\n        /**\n        * Get dynamic listing data as per query.\n        *\n        * @since 1.0.38\n        */\n        private function set_options($type){\n            $ctp = [];\n\n            if(class_exists('Wdkit_Dynamic_Listing_Files')){\n                $wdkit_widget = new Wdkit_Dynamic_Listing_Files();\n                \n                if('post_list' == $type){\n                    if ( method_exists($wdkit_widget, 'Get_post_list')) {\n                        $ctp = $wdkit_widget->Get_post_list();\n                    }\n                } else if ('order_by' == $type){    \n                    if (method_exists($wdkit_widget, 'Get_orderBy_List')) {\n                        $ctp = $wdkit_widget->Get_orderBy_List();\n                    }\n                }\n            }\n\n            $cpt_array = array();\n\n            foreach ($ctp as $key => $value) {\n                $cpt_array[$value['name']] = $value['label'];\n            }\n\n            return $cpt_array;\n        }\n    ":""}\n\n    ${V?"/**\n        * Prevent JS senitizer\n        *\n        * @since 1.2.4\n        * */\n        function wdk_senitize_js( $input ) {\n\n            $input = preg_replace( '/&#x[0-9a-fA-F]+;/i', '', $input );\n\n            // Remove complete iframe tags with or without content\n            $input = preg_replace( '/<iframe[^>]*>.*?<\\/iframe>/is', '', $input );\n\n            // Remove incomplete iframe tags\n            $input = preg_replace( '/<iframe[^>]*\\/?>/is', '', $input );\n\n            // Remove JavaScript pseudo-protocols (like javascript:)\n            $input = preg_replace( '/javascript\\s*:/i', '', $input );\n\n            // Remove JavaScript event handlers (like onload, onclick, etc.)\n            $input = preg_replace( '/\\s*on\\w+\\s*=\\s*(\".*?\"|\\'.*?\\'|[^>\\s]+)/is', '', $input );\n\n            // Ensure input is not overly stripped by handling invalid tags carefully\n            $input = strip_tags( $input );\n\n            return trim( $input );\n        }":""}\n\n    ${H.includes("cpt")||H.includes("product_listing")?`\n            \n        /**\n         * Get all posts from wordpress.\n         *\n         * @since ${wdkitData.WDKIT_VERSION}\n         */\n        private function get_post_query( $type, $per_post, $order, $order_by, $include, $exclude, $cat_count, $tag_count ) {\n            \n        // Query arguments\n            $args = array(\n                'post_type' => $type,\n                'posts_per_page'      => $per_post,\n                'order'               => $order,\n                'orderby'             => $order_by,\n                'post__in'            => $include,\n                'post__not_in'        => $exclude,\n            );\n\n            $post_value = array();\n        \n            $query = new WP_Query($args);\n\n            while ($query->have_posts()) {\n\n                $index = count($post_value);\n                $query->the_post();\n\n                $thumbnail_image = has_post_thumbnail() ? get_the_post_thumbnail_url() : '';\n                $title = get_the_title() ? get_the_title() : '';\n                $excerpt = get_the_excerpt() ? get_the_excerpt() : '';\n                $categories = $type === 'product' ? wp_get_post_terms(get_the_ID(), 'product_cat') : get_the_category();\n                $tags_array = $type === 'product' ? wp_get_post_terms(get_the_ID(), 'product_tag') : get_the_tags();\n                $custom_fields = get_post_custom() ? get_post_custom() : '';\n                $post_date = get_the_date() ? get_the_date() : '';\n                $permalink = get_permalink() ? get_permalink() : '';\n\n                $tags_list = array();\n                if (!empty($tags_array)) {\n                    if(isset($tag_count)){\n                        $tags_array = array_slice($tags_array, 0, $tag_count); // Limit the number of tags\n                    }\n                    foreach ($tags_array as $key =>  $tag) {\n                        $tag_name = $tag->name;\n                        $tag_url = get_tag_link($tag->term_id);\n\n                        $tags_list[$key] = array(\n                            'name' => $tag_name,\n                            'url' => $tag_url,\n                        );\n                    }\n                }\n\n                $categories_list = array();\n                if (!empty($categories)) {\n                    if(isset($cat_count)){\n                        $categories = array_slice($categories, 0, $cat_count); // Limit the number of tags\n                    }\n                    foreach ($categories as $category) {\n                        $category_name = $category->name;\n                        $category_url = get_category_link($category->term_id);\n\n                        $categories_list[] = array(\n                            'name' => $category_name,\n                            'url' => $category_url,\n                        );\n                    }\n                }\n\n                // Get author details\n                $author_id = get_the_author_meta('ID') ? get_the_author_meta('ID') : '';\n                $author_name = get_the_author_meta('display_name', $author_id) ? get_the_author_meta('display_name', $author_id) : '';\n                $author_email = get_the_author_meta('user_email', $author_id) ? get_the_author_meta('user_email', $author_id) : '';\n                $author_url = get_the_author_meta('user_url', $author_id) ? get_the_author_meta('user_url', $author_id) : '';\n                $author_avatar = get_avatar_url($author_id, 200) ? get_avatar_url($author_id, array('size' => 200)) : '';\n\n                $post_value[$index]['title'] = $title; \n                $post_value[$index]['post_link'] = $permalink; \n                $post_value[$index]['description'] = $excerpt; \n                $post_value[$index]['categories'] = $categories_list; \n                $post_value[$index]['tags'] = $tags_list; \n                $post_value[$index]['custom_fields'] = $custom_fields; \n                $post_value[$index]['image'] = $thumbnail_image ? $thumbnail_image : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}';\n                $post_value[$index]['author_id'] = $author_id; \n                $post_value[$index]['author_name'] = $author_name; \n                $post_value[$index]['author_email'] = $author_email; \n                $post_value[$index]['author_url'] = $author_url; \n                $post_value[$index]['author_avatar'] = $author_avatar; \n                $post_value[$index]['post_date'] = $post_date; \n            }\n\n            return $post_value;\n        }`:""}\n\n    ${H.includes("taxonomy")?"\n        \n        /**\n         * Get all posts from wordpress.\n         *\n         * @since 1.0.36\n         */\n        private function get_taxonomy_list( $taxo_type, $post_type, $per_page ) {\n            \n            $terms = [];\n\n            $taxoomy_list = !empty( get_object_taxonomies( $post_type ) ) ? get_object_taxonomies( $post_type ) : [];\n            if ( !in_array($taxo_type, $taxoomy_list) ) {\n                return [];\n            }\n            \n            // Query arguments\n            $terms = get_terms( array(\n                'taxonomy' => $taxo_type,\n                'hide_empty' => false,\n                'number' => $per_page,\n            ) );\n\n            foreach ($terms as $key => $value) {\n                $term_link = get_term_link( $value );\n                $term_image_id = get_term_meta( $value->term_id );\n                \n                if ( !empty($term_link) ) {\n                    $terms[$key]->front_link = $term_link;\n                } else {\n                    $terms[$key]->front_link = '';\n                }\n                \n                if ( !empty($term_image_id['thumbnail_id'][0]) ) {\n                    $img_id = $term_image_id['thumbnail_id'][0];\n                    $thumbnail_img = wp_get_attachment_url($img_id);\n                    $terms[$key]->thumbnail = $thumbnail_img;\n                } else {\n                    $terms[$key]->thumbnail = '';\n                }\n            }\n\n            $terms = json_decode(json_encode($terms), true);\n\n            return $terms;\n        }":""}\n\n    ${0!=C?.length||T?`/**\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        ${T?`wp_enqueue_script( 'wkit_child_script_${y}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${S("folder")}/${S("file")}.js', array(), '${wdkitData.WDKIT_VERSION}.${p()}', true );`:""}\n\n        return [ 'wkit_child_script_${y}' ];\n    }`:""}\n\n    ${0!=k?.length||P?`/**\n    * Get Widget Styles\n    *\n    * @since ${wdkitData.WDKIT_VERSION}\n    */\n    public function get_style_depends() {\n        \n        /**External Css enqueue*/\n        ${k}\n\n        ${P?`wp_enqueue_style( 'wkit_css_1_${$}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${S("folder")}/${S("file")}.css', false, '${wdkitData.WDKIT_VERSION}.${p()}', 'all' );`:""}\n\n        return [ 'wkit_css_1_${$}' ];\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    ${f||j?`protected function register_controls() {\n\n            ${f}\n\n            ${j}\n\n    }`:""}\n\n    /**\n     * Written in PHP and HTML.\n     *\n     * @since ${wdkitData.WDKIT_VERSION}\n     */\n    protected function render() { \t\n\n        $settings = $this->get_settings_for_display();\n        ${x}\n        ${v}\n\n        $output = '';\n        $output .= '<div class="wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}" data-wdkitunique="${t.WcardData.widgetdata.widget_id}">';\n            $output .= '${_}';\n        $output .= '</div>';\n        \n        echo $output;\n    }\n}`;let F=R().widgetdata.name.trim(),I={widgetdata:Object.assign({},R().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:F})};var q=`{\n        "section_data":${JSON.stringify(t.CardItems.cardData)},\n        "widget_data":${JSON.stringify(I)},\n        "Editor_Link":${JSON.stringify(t.Editor_data)},\n        "Editor_data":{\n            "html":${a},\n            "css":${i},\n            "js":${s}\n            } \n        }`;if(null==n)var U="";else U=n;var z={old_folder:U,file_name:S("file"),folder_name:S("folder"),description:t.WcardData.widgetdata.description,elementor_php_file:W,elementor_js:T,elementor_css:P,json_file:q,plugin:"elementor",d_image:o||"",call:e},J=new FormData;J.append("action","get_wdesignkit"),J.append("kit_nonce",wdkitData.kit_nonce),J.append("image",r),J.append("type","wkit_create_widget"),J.append("value",JSON.stringify(z)),await l().post(ajaxurl,J,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),L.api=e.data)})).catch((e=>console.error(e)));var K=t.WcardData.widgetdata.w_image,G=t.WcardData.widgetdata.img_ext;let Y=Xe();if(Y&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/elementor/${S("folder")}/${S("file")}.json`,t=await l().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(K=t?.widget_data?.widgetdata?.w_image,G=t?.widget_data?.widgetdata?.img_ext)})();let e={token:Y.token,type:"add",title:S(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:q,w_uniq:t.WcardData.widgetdata.widget_id,w_image:K,w_imgext:G,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 Ye(a).then((e=>{L.ajax={data:e}}))}return L},Ze=async(e,t,a,i,s,n,r,o,d=!1)=>{const c=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},p=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,2)+e},w=()=>Math.floor(1e6*Math.random()),m=function(e){return(new DOMParser).parseFromString(e,"text/html")},g=(e,t)=>{let a="";if(t?.relation&&!0===e){let e="or"===t.relation?"||":"and"===t.relation?"&&":"||";t.values.map((t=>{t?.name&&t?.operator&&(a+=a?e:"(",R?.includes(t.name)?"!="==t.operator?a+=` !${t.name} `:a+=` ${t.name} `:"true"==t.value||"false"==t.value||"null"==t.value?a+=` ${t.name} ${t.operator} ${t.value} `:a+=` ${t.name} ${t.operator} "${t.value}" `)})),a&&(a+=") &&")}return a};var u=wdkitData.WDKIT_SERVER_PATH,h="",_="",C="",k="",v=(e=>{var t;return(e=>{let t=m(e).querySelectorAll("a");return t=Object.values(t),t.length>0&&t.map((t=>{let a=t.outerHTML,i=t.rel.trim();if(!i.includes("noopener")){t.rel=i?i+" noopener":"noopener";let s=t.outerHTML;e=e.replaceAll([a],[s])}})),e})((t=JSON.parse(e),(new DOMParser).parseFromString(t,"text/html").body).innerHTML.replaceAll("'","\\'"))})(a),b=[],x=[],f=[],j={},y=[],$=[],N=[],L=c(),M="",H="",V="",D="",S={ajax:"",api:""},Z="",R=[],B=[],E=[],O=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&&(b+=`wp_enqueue_script( 'wd_ex_script_${c()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${w()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(x+=`wp_enqueue_style( 'wd_css_ex_1_${c()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${w()}', 'all' );\n`)}));const A=e=>{var a=t.WcardData.widgetdata.name.trim(),i=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+i:"folder"==e?a.replaceAll(" ","-")+"_"+i:null==e?a:void 0},T=e=>{let t=[],a=m(v);if(a.querySelectorAll(`[data-${e}]`).length>0){v=a.head.innerHTML+a.body.innerHTML;let i=a.querySelectorAll(`[data-${e}]`);return Object.values(i).map((e=>{t.push(e.outerHTML)})),t}},P=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(n){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=A("folder"),i=A("file"),s=`${u}/gutenberg/${e}/${i}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:a})}}return t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];if(a){let e=A("folder"),i=A("file"),s=`${u}/gutenberg/${e}/${i}.${a}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,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=A("folder"),i=A("file"),s=`${u}/gutenberg/${a}/${i}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:e})}}}};(()=>{if("update"==e&&null!=n){let e=new URL(window.location).hash.split("/"),a=e.length-1,i=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=i;let s=e.join("/");document.location.hash=s}})();const W=async(e,t)=>{if(e){let t=T(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var i=m(t);$.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&W(t.name)}));let a=T(e);if(a.length>0){let t=$.findIndex((t=>t.name==e)),i=$[t];if("repeater"==i.type){let e=p(),t=`${i.name+"_"+e} += \`${a[0]}\`;`;k+=`\nlet ${i.name+"_"+e} = "";\n                            \n${i.name} ${i?.condition?i.condition:""} && ${i.name}.map((r_item, index) => {\n                                ${j?.[i.name]?j?.[i.name]:""}\n                                ${t}\n                            })`,v=v.replace(a[0],"${"+i.name+"_"+e+"}")}else if("gallery"==i.type){let e=p();if(null!=i?.repeater){var s=`\nlet ${i.name+"_"+e} = '';\n                                r_item?.${i.name} ${i?.condition?i.condition:""} && r_item.${i.name}.map((g_image, index) => {\n                                    ${i.name+"_"+e} += \`${a[0]}\`;\n                                })`;j?.[i?.repeater]&&(s=j?.[i?.repeater]+s),j=Object.assign({},j,{[i?.repeater]:s})}else Z+=null!=i?.popover?`\nlet ${i.name+"_"+e} = '';\n                                ${i?.popover}?.${i.name} ${i?.condition?i.condition:""} && ${i.popover}.${i.name}.map((g_image, index) => {\n                                    ${i.name+"_"+e} += \`${a[0]}\`;\n                                })`:`\nlet ${i.name+"_"+e} = '';\n                                ${i.name} ${i?.condition?i.condition:""} && ${i.name}.map((g_image, index) => {\n                                    ${i.name+"_"+e} += \`${a[0]}\`;\n                                })`;v=v.replace([a[0]],"${"+i.name+"_"+e+"}")}else if("select2"==i.type){let e=p();if(null!=i?.repeater){if(i.multiple)s=`\nlet ${i.name+"_"+e} = '';\n                                    r_item?.${i.name}?.length > 0 && r_item.${i.name}.map((s2_item, index) => {\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;\n                                    })`;else s=`\nlet ${i.name+"_"+e} = '';\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;`;j?.[i?.repeater]&&(s=j?.[i?.repeater]+s),j=Object.assign({},j,{[i?.repeater]:s})}else null!=i?.popover?i.multiple?Z+=`\nlet ${i.name+"_"+e} = '';\n                                    ${i?.popover}?.${i.name}?.length > 0 && ${i.popover}.${i.name}.map((s2_item, index) => {\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;\n                                    })`:Z+=`\nlet ${i.name+"_"+e} = '';\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;`:i.multiple?Z+=`\nlet ${i.name+"_"+e} = '';\n                                    ${i.name}?.length > 0 && ${i.name}.map((s2_item, index) => {\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;\n                                    })`:Z+=`\nlet ${i.name+"_"+e} = '';\n                                        ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;`;v=v.replace([a[0]],"${"+i.name+"_"+e+"}")}else if("headingtags"==i.type){let e=p();if(null!=i?.repeater){let t=a[0],n=c();t=t.replaceAll(`data-${i.name}`,n),t=t.replaceAll([i.name],"${r_item?."+i.name+"}"),t=t.replaceAll([n],`data-${i.name}`),s=`let ${i.name+"_"+e} = '';\n                                if(r_item?.${i.name} ${i?.condition?i.condition:""}){\n                                    ${i.name+"_"+e} = \`${t}\`;\n                                }`,j?.[i?.repeater]&&(s=j?.[i?.repeater]+s),j=Object.assign({},j,{[i?.repeater]:s})}else if(null!=i?.popover){let t=a[0],s=c();t=t.replaceAll(`data-${i.name}`,s),t=t.replaceAll([i.name],"${"+i?.popover+"?."+i.name+"}"),t=t.replaceAll([s],`data-${i.name}`),Z+=`let ${i.name+"_"+e} = '';\n                                if(${i?.popover}?.${i.name} ${i?.condition?i.condition:""}){\n                                    ${i.name+"_"+e} = \`${t}\`;\n                                }`}else{let t=a[0],s=c();t=t.replaceAll(`data-${i.name}`,s),t=t.replaceAll([i.name],"${"+i.name+"}"),t=t.replaceAll([s],`data-${i.name}`),Z+=`let ${i.name+"_"+e} = '';\n                                if(${i.name} ${i?.condition?i.condition:""}){\n                                    ${i.name+"_"+e} = \`${t}\`;\n                                }`}v=v.replace([a[0]],"${"+i.name+"_"+e+"}")}else if("cpt"==i.type){let e=p(),t=a[0],s=m(t),n=[],l=[];if(s.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{n.push(e.outerHTML)}))}if(s.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(n?.length>0){let e="",a="";n.map((i=>{let s=p();a+=`let ${"catList_"+s} = '';\n`,t=t.replace([i],"${catList_"+s+"}"),e+=`catList_${s} += \`${i}\`;\n`})),r+=`\n                                    ${a}\n                                    cpt_val?.catrgory_list?.length > 0 && cpt_val.catrgory_list.slice(0, max_cat_${i.unique_id}).map((cat_val) => {\n                                        ${e}\n                                    })`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=p();a+=`let ${"tagList_"+s} = '';\n`,t=t.replace([i],"${tagList_"+s+"}"),e+=`tagList_${s} += \`${i}\`;\n`})),o+=`\n                                    ${a}\n                                    cpt_val?.tag_list?.length > 0 && cpt_val.tag_list.slice(0, max_tag_${i.unique_id}).map((tag_val) => {\n                                        ${e}\n                                    })`}k+=`let ${i.name+"_"+e} = '';\n                                if(${i.name}){\n\n                                    ${i.name}_st?.length > 0 && ${i.name}_st.map((cpt_item, index) => {\n                                        let cpt_val = GetCPT(cpt_item);\n                                        ${r}\n                                        ${o}\n                                        ${i.name+"_"+e} += \`${t}\`;\n                                    });\n                                }`,v=v.replace(a[0],"${"+i.name+"_"+e+"}")}else if("product_listing"==i.type){let e=p(),t=a[0],s=m(t),n=[],l=[];if(s.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{n.push(e.outerHTML)}))}if(s.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(n?.length>0){let e="",a="";n.map((i=>{let s=p();a+=`let ${"catList_"+s} = '';\n`,t=t.replace([i],"${catList_"+s+"}"),e+=`catList_${s} += \`${i}\`;\n`})),r+=`\n                                    ${a}\n                                    cpt_val?.catrgory_list?.length > 0 && cpt_val.catrgory_list.slice(0, max_cat_${i.unique_id}).map((cat_val) => {\n                                        ${e}\n                                    })`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=p();a+=`let ${"tagList_"+s} = '';\n`,t=t.replace([i],"${tagList_"+s+"}"),e+=`tagList_${s} += \`${i}\`;\n`})),o+=`\n                                    ${a}\n                                    cpt_val?.tag_list?.length > 0 && cpt_val.tag_list.slice(0, max_tag_${i.unique_id}).map((tag_val) => {\n                                        ${e}\n                                    })`}k+=`let ${i.name+"_"+e} = '';\n\n                                    ${i.name}_st?.length > 0 && ${i.name}_st.map((cpt_item, index) => {\n                                        let cpt_val = GetCPT(cpt_item);\n                                        ${r}\n                                        ${o}\n                                        ${i.name+"_"+e} += \`${t}\`;\n                                    });`,v=v.replace(a[0],"${"+i.name+"_"+e+"}")}else if("taxonomy"==i.type){let e=p(),t=a[0];k+=`let ${i.name+"_"+e} = '';\n                                if(taxonomy_${i.unique_id}){\n\n                                    let post_type = post_type_${i.unique_id} ? post_type_${i.unique_id} : 'post';\n                                    let per_page = max_post_${i.unique_id} ? max_post_${i.unique_id} : '10';\n\n                                    if ( ${i.name}_st?.length > 0 ) {\n                                        ${i.name}_st.map( (t_item, index) => {\n                                            ${i.name+"_"+e} += \`${t}\`;\n                                    })\n                                    } else {\n                                        ${i.name+"_"+e} += '<h6 style="color: red;text-align: center;display: block;">No Result Found</h6>';\n                                    }\n                                }`,v=v.replace([a[0]],"${"+i.name+"_"+e+"}")}}}}))}},F=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((i,s)=>{i.name&&i.operator&&(R.includes(i.name)?t?"!="==i.operator?a+=`!${t}?.${i.name}`:a+=`${t}?.${i.name}`:"!="==i.operator?a+=`!${i.name}`:a+=`${i.name}`:a+=t?`(${t}?.${i.name} ${i.operator} "${i.value}")`:`(${i.name} ${i.operator} "${i.value}")`,s<e?.condition_value?.values?.length-1&&(a+="or"===e?.condition_value.relation?"||":"&&"))})),a?`&& ( ${a} )`:""},I=(e,t,a)=>{let i="";if("iconscontrol"==e.type)if(t){if(e.parent_class||null==e.parent_class)var s=`<span class="tp-title-icon"><i class="'+r_item?.${e.name}+'"></i></span>`;else s=`<i class="'+r_item?.${e.name}+'"></i>`;v=v.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+" }");let a=`\nlet grnp_${e.name} = r_item?.${e.name} != undefined ${F(e,"r_item")} ? '${s}' : '';\n`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(s=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>`,v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${F(e,a)} ? '${s}' : '';\n`):(s=e.parent_class||null==e.parent_class?`<span class="tp-title-icon"><i class="'+${e.name}+'"></i></span>`:`<i class="'+${e.name}+'"></i>`,v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} != undefined ${F(e)} ? '${s}' : '';\n`);else if("url"==e.type){if(v.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 : "";`;v=v.replaceAll(`{{${e.name}-url}}`,"${grnp_"+e.name+"_url}"),j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(i+=`\nlet pop_${e.name}_url =  ${a}?.${e.name}?.url && ${a}?.${e.name}?.url != undefined ? ${a}?.${e.name}.url : "";`,v=v.replaceAll(`{{${e.name}-url}}`,"${pop_"+e.name+"_url}")):(i+=`\nlet g_${e.name}_url = ${e.name}?.url && ${e.name}?.url != undefined ? ${e.name}.url : "";`,v=v.replaceAll(`{{${e.name}-url}}`,"${g_"+e.name+"_url}"));if(v.search(`{{${e.name}-is_external}}`))if(t){v=v.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 : "";`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}-is_external}}`,"${pop_"+e.name+"_target}"),i+=`\nlet pop_${e.name}_target = ${a}?.${e.name}?.target && ${a}?.${e.name}?.target != undefined ? ${a}?.${e.name}?.target : "";`):(v=v.replaceAll(`{{${e.name}-is_external}}`,"${g_"+e.name+"_target}"),i+=`\nlet g_${e.name}_target = ${e.name}?.target && ${e.name}?.target != undefined ? ${e.name}.target : "";`);if(v.search(`{{${e.name}-nofollow}}`))if(t){v=v.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 : "";`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}-nofollow}}`,"${pop_"+e.name+"_nofollow}"),i+=`\nlet pop_${e.name}_nofollow = ${a}?.${e.name}?.nofollow && ${a}?.${e.name}?.nofollow != undefined ? ${a}?.${e.name}?.nofollow : "";`):(v=v.replaceAll(`{{${e.name}-nofollow}}`,"${g_"+e.name+"_nofollow}"),i+=`\nlet g_${e.name}_nofollow = ${e.name}?.nofollow && ${e.name}?.nofollow != undefined ? ${e.name}.nofollow : "";`);if(v.search(`{{${e.name}-custom_atr}}=""`))if(t){v=v.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                    }`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}-custom_atr}}=""`,"${pop_"+e.name+"_attr}"),i+=`\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                    }`):(v=v.replaceAll(`{{${e.name}-custom_atr}}=""`,"${g_"+e.name+"_attr}"),i+=`\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){v=v.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+"}");let a=`\nlet grnp_${e.name} = r_item?.${e.name}?.url != undefined ${F(e,"r_item")} ? r_item?.${e.name}.url : "";`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name}?.url != undefined ${F(e,a)} ? ${a}.${e.name}.url : "";`):(v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} && ${e.name}.url && ${e.name}.url != undefined ${F(e)} ? ${e.name}.url : "";`);else if("popover"==e.type)e.fields&&e.fields.map((t=>{i+=I(t,"",e.name)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{i+=I(e)}));else if("repeater"==e.type){$.push({type:e.type,name:e.name,repeater:t,condition:F(e,t)});let a=T(e.name);a?a.map(((t,a)=>{j[e.name]="";let s=t;e.fields.map((n=>{if(i+=I(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=(l=s,(new DOMParser).parseFromString(l,"text/html").body);if(e.querySelector(`[data-${n.name}]`)&&e.querySelector(`[data-${n.name}]`).outerHTML){let t=e.querySelector(`[data-${n.name}]`).outerHTML;v=v.replaceAll(t,`'+${n.name+a}+'`)}}else v="media"==n.type||"iconscontrol"==n.type?v.replaceAll(`{{${n.name}}}`,`'+${n.name}+'`):v.replaceAll(`{{${n.name}}}`,"${r_item."+n.name+"}");v=(v=(v=v.replaceAll("{loop-class-repeater}","tp-repeater-item-${r_item._key}")).replaceAll(`{{${e.name}_index}}`,"${index}")).replaceAll(`{{${e.name}_uid}}`,"${r_item._key}")}var l}))})):e.fields.map((t=>{i+=I(t,e.name)}))}else if("gallery"==e.type){a?$.push({type:e.type,name:e.name,popover:a,condition:F(e,t)}):$.push({type:e.type,name:e.name,repeater:t,condition:F(e,t)});let i=T(e.name);i&&i.map(((t,a)=>{t&&(v=v.replaceAll("{{"+e.name+"}}","${g_image.url}"))}))}else if("select2"==e.type){a?$.push({type:e.type,name:e.name,popover:a,multiple:e.multiple,condition:F(e,t)}):$.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:F(e,t)});let i=T(e.name);i&&i.map(((t,a)=>{t&&(v=e.multiple?v.replaceAll("{{"+e.name+"}}","${s2_item?.value}"):v.replaceAll("{{"+e.name+"}}","${"+e.name+".value}"))}))}else if("slider"==e.type){var n="";e.size_units&&e.size_units.map(((t,a)=>{n+=`g_${e.name}_list['${t.type}'] = { "type": "${t.type}", "min": ${t.min}, "max": ${t.max}, "step": ${t.step} };\n`})),M+=`const ${e.name}Function = (unit, type) => {\n                var g_${e.name}_list = [];\n                ${n}\n                return g_${e.name}_list[unit][type];\n            };\n`}else if("headingtags"==e.type)a?$.push({type:e.type,name:e.name,popover:a,condition:F(e,t)}):$.push({type:e.type,name:e.name,repeater:t,condition:F(e,t)});else if("switcher"==e.type)if(t){v=v.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+"}");let a=`\nlet grnp_${e.name} = r_item.${e.name} ${F(e,"r_item")} ? '${e.return_value}' : "";`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${F(e,a)} ? '${e.return_value}' : "";`):(v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} && ${e.name} != undefined ${F(e)} ? '${e.return_value}' : "";`);else if("cpt"==e.type){$.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),H+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,M+=`const ${e.name}_fun = async (value, type) => {\n\n                    let filters = {\n                        type: ${e.name},\n                        include: include_${e.unique_id},\n                        exclude: exclude_${e.unique_id},\n                        max_post: max_post_${e.unique_id},\n                        order: order_${e.unique_id},\n                        order_by: order_by_${e.unique_id},\n                        max_cat: max_cat_${e.unique_id},\n                        max_tag: max_tag_${e.unique_id},\n                    }\n\n                    if (value != undefined && type != undefined) {\n                        filters = Object.assign({}, filters, { [type]: value })\n                    }\n\n                    let data = await CPT_array(filters);\n\n                    await set${e.name}_st(data);\n                }\n`,D+=`${e.name}_fun(${e.name});`,V+=`\n                const cpt_${e.unique_id}_flt = {\n                    type: ${e.name},\n                    include: include_${e.unique_id},\n                    exclude: exclude_${e.unique_id},\n                    max_post: max_post_${e.unique_id},\n                    order: order_${e.unique_id},\n                    order_by: order_by_${e.unique_id},\n                    max_cat: max_cat_${e.unique_id},\n                    max_tag: max_tag_${e.unique_id},\n                };\n            \n            const ${e.name}_st = CPT_array(cpt_${e.unique_id}_flt);`;let t=T(e.name);t&&t.map(((t,a)=>{t&&(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=v.replaceAll("{{title_"+e.name+"}}","${cpt_val?.title}")).replaceAll("{{description_"+e.name+"}}","${cpt_val?.description}")).replaceAll("{{cat_name_"+e.name+"}}","${cat_val?.name}")).replaceAll("{{cat_url_"+e.name+"}}","${cat_val.url}")).replaceAll("{{tag_name_"+e.name+"}}","${tag_val.name}")).replaceAll("{{tag_url_"+e.name+"}}","${tag_val.url}")).replaceAll("{{thumbnail_"+e.name+"}}","${cpt_val?.thumbnail}")).replaceAll("{{post_link_"+e.name+"}}","${cpt_val?.post_link}")).replaceAll("{{post_date_"+e.name+"}}","${cpt_val?.post_date}")).replaceAll("{{auth_name_"+e.name+"}}","${cpt_val?.auth_name}")).replaceAll("{{auth_id_"+e.name+"}}","${cpt_val?.auth_id}")).replaceAll("{{auth_email_"+e.name+"}}","")).replaceAll("{{auth_profile_"+e.name+"}}","${cpt_val?.auth_profile}")).replaceAll("{{auth_url_"+e.name+"}}","${cpt_val?.auth_url}"))}))}else if("product_listing"==e.type){$.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),H+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,M+=`const ${e.name}_fun = async (value, type) => {\n\n                    let filters = {\n                        type: 'product',\n                        include: include_${e.unique_id},\n                        exclude: exclude_${e.unique_id},\n                        max_post: max_post_${e.unique_id},\n                        order: order_${e.unique_id},\n                        order_by: order_by_${e.unique_id},\n                        max_cat: max_cat_${e.unique_id},\n                        max_tag: max_tag_${e.unique_id},\n                    }\n\n                    if (value != undefined && type != undefined) {\n                        filters = Object.assign({}, filters, { [type]: value })\n                    }\n\n                    let data = await CPT_array(filters);\n\n                    await set${e.name}_st(data);\n                }\n`,D+=`${e.name}_fun(${e.name});`,V+=`\n                const cpt_${e.unique_id}_flt = {\n                    type: 'product',\n                    include: include_${e.unique_id},\n                    exclude: exclude_${e.unique_id},\n                    max_post: max_post_${e.unique_id},\n                    order: order_${e.unique_id},\n                    order_by: order_by_${e.unique_id},\n                    max_cat: max_cat_${e.unique_id},\n                    max_tag: max_tag_${e.unique_id},\n                };\n            \n            const ${e.name}_st = CPT_array(cpt_${e.unique_id}_flt);`;let t=T(e.name);t&&t.map(((t,a)=>{t&&(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=v.replaceAll("{{title_"+e.name+"}}","${cpt_val?.title}")).replaceAll("{{description_"+e.name+"}}","${cpt_val?.description}")).replaceAll("{{cat_name_"+e.name+"}}","${cat_val?.name}")).replaceAll("{{cat_url_"+e.name+"}}","${cat_val.url}")).replaceAll("{{tag_name_"+e.name+"}}","${tag_val.name}")).replaceAll("{{tag_url_"+e.name+"}}","${tag_val.url}")).replaceAll("{{thumbnail_"+e.name+"}}","${cpt_val?.thumbnail}")).replaceAll("{{post_link_"+e.name+"}}","${cpt_val?.post_link}")).replaceAll("{{post_date_"+e.name+"}}","${cpt_val?.post_date}")).replaceAll("{{auth_name_"+e.name+"}}","${cpt_val?.auth_name}")).replaceAll("{{auth_id_"+e.name+"}}","${cpt_val?.auth_id}")).replaceAll("{{auth_email_"+e.name+"}}","")).replaceAll("{{auth_profile_"+e.name+"}}","${cpt_val?.auth_profile}")).replaceAll("{{auth_url_"+e.name+"}}","${cpt_val?.auth_url}"))}))}else if("taxonomy"==e.type){$.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),H+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,M+=`const ${e.name}_fun = async (value, type) => {\n\n                let filters = {\n                    type: ${e.name},\n                    max_post: max_post_${e.unique_id},\n                    post_type: post_type_${e.unique_id} ? post_type_${e.unique_id} : '',\n                }\n\n                if (value != undefined && type != undefined) {\n                    filters = Object.assign({}, filters, { [type]: value })\n                }\n\n                let data = await Get_taxo_list(filters);\n\n                await set${e.name}_st(data);\n            }\n`,D+=`${e.name}_fun(${e.name});`,V+=`\n                const taxo_${e.unique_id}_flt = {\n                    type: ${e.name},\n                    max_post: max_post_${e.unique_id},\n                    post_type: post_type_${e.unique_id} ? post_type_${e.unique_id} : '',\n                };\n            \n            const ${e.name}_st = Get_taxo_list(taxo_${e.unique_id}_flt);`;let t=T(e.name);t&&t.map(((t,a)=>{t&&(v=(v=(v=(v=(v=v.replaceAll("{{title_"+e.name+"}}","${t_item.name}")).replaceAll("{{description_"+e.name+"}}","${t_item.description}")).replaceAll("{{taxo_image_"+e.name+"}}","${t_item.thumbnail}")).replaceAll("{{taxo_link_"+e.name+"}}","${t_item.link}")).replaceAll("{{taxo_slug_"+e.name+"}}","${t_item.slug}"))}))}else if(t){v=v.replaceAll(`{{${e.name}}}`,"${grnp_"+e.name+"}");let a=`\nlet grnp_${e.name} = r_item.${e.name} ${F(e,"r_item")} ? r_item.${e.name} : "";`;j?.[t]&&(a=j?.[t]+a),j=Object.assign({},j,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${F(e,a)} ? ${a}.${e.name} : "";`):(v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} && ${e.name} != undefined ${F(e)} ? ${e.name} : "";`);return i};t.CardItems.cardData[0].layout.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||(B.includes(e.name)||"cpt"!=e.type&&"product_listing"!=e.type||B.push(e.name),E.includes(e.type)||E.push(e.type)),"switcher"==e.type&&R.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&R.push(e.name)}))}))})),t.CardItems.cardData[0].style.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||(B.includes(e.name)||"cpt"!=e.type&&"product_listing"!=e.type||B.push(e.name),E.includes(e.type)||E.push(e.type)),"switcher"==e.type&&R.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&R.push(e.name)}))}))})),t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{Z+=I(e)}))})),t.CardItems.cardData[0].style.map((e=>{e.inner_sec.map((e=>{Z+=I(e)}))})),$.length>0&&$.map((e=>{W(e.name)}));let q={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",cpt:"Pmgc_Select",taxonomy:"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,t)=>{let a=g(e.conditions,e.condition_value);h+=`${a} React.createElement(PanelBody, { title: __("${e.section}"), initialOpen: ${0==t} },\n`,e.inner_sec.map((e=>{"repeater"!=e.type&&"popover"!=e.type&&"normalhover"!=e.type&&"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||e.fields.map((t=>{y.includes(q.pmgc[t.type])||q?.pmgc?.[t.type]&&y.push(q.pmgc[t.type]),"datetime"==t.type&&(f.includes("DateTimePicker")||f.push("DateTimePicker")),"normalhover"!=e.type&&"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||N.push(t.name)})),y.includes(q.pmgc[e.type])||("datetime"==e.type&&(f.includes("DateTimePicker")||f.push("DateTimePicker")),q?.pmgc?.[e.type]&&y.push(q.pmgc[e.type])),N.includes(e.name)||N.push(e.name),h+=He(e,"js","","",R),C+=He(e,"php")})),h+="),"})),t.CardItems.cardData[0].style.map(((e,t)=>{let a=g(e.conditions,e.condition_value);_+=`${a} React.createElement(PanelBody, { title: __("${e.section}"), initialOpen: ${0==t} },\n`,e.inner_sec.map((e=>{"repeater"!=e.type&&"popover"!=e.type&&"normalhover"!=e.type||e.fields.map((t=>{y.includes(q.pmgc[t.type])||y.push(q.pmgc[t.type]),"normalhover"==e.type&&N.push(t.name)})),y.includes(q.pmgc[e.type])||y.push(q.pmgc[e.type]),N.includes(e.name)||N.push(e.name),_+=He(e,"js","","",R),C+=He(e,"php")})),_+="),"})),y.map((e=>{}));var U="";N.map((e=>{U+=`${e},\n`}));let z=P().widgetdata.name.trim(),J={widgetdata:Object.assign({},P().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:z})};var K=JSON.stringify(t.CardItems.cardData),G=JSON.stringify(J),Y=JSON.stringify(t.Editor_data);let Q=c();var X=`\n    class ${A("file").replaceAll("-","_")} {\n        constructor() {\n            this.${A("file").replaceAll("-","_")}_${Q}();\n        }\n    \n        ${A("file").replaceAll("-","_")}_${Q}() {\n    const { useState, useEffect } = wp.element;\n    const { __ } = wp.i18n;\n    const { registerBlockType } = wp.blocks;\n   \n    const {\n        PanelBody,\n        ${f}\n    } = wp.components;\n\n    ${E.length>0?"\n        const {\n            select,\n            resolveSelect,\n        } = wp.data;":""}\n   \n    const {\n       Pmgc_PanelTabs,\n       Pmgc_Tab,\n       ${y?.length>0?y+",":""}\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('wdkit/wb-${t.WcardData.widgetdata.widget_id}', {\n        title: __('${A()}'), // 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        \n        ${H}\n\n        ${E.length>0?`\n            useEffect(() => {\n                ${D}\n            }, [])`:""}\n\n        ${E.includes("taxonomy")?"\n\n            const Get_taxo_list = async (t_data) => {\n\n                if (t_data?.post_type != 'select type') {\n\n                    const taxonomies = await resolveSelect('core').getTaxonomies({ type: t_data.post_type }) || [];\n                    const taxonomy = await taxonomies.find(tax => tax.slug === t_data.type);\n\n                    if (!taxonomy) {\n                        return [];\n                    }\n                }\n\n                var query = {\n                    per_page: t_data.max_post,\n                    offset: 0,\n                    _embed: true,\n                };\n\n                const newdata = await resolveSelect('core').getEntityRecords('taxonomy', t_data.type, query) || [];\n\n                return await newdata;\n            }":""}\n\n        ${B.length>0?`const CPT_array = async (f_data) => {\n\n                var query = {\n                    per_page: f_data.max_post,\n                    order: f_data.order,\n                    offset: 0,\n                    status: 'publish',\n                    _embed: true,\n                };\n\n                if (f_data?.order_by && f_data?.order_by != 'none') {\n                    query = Object.assign({}, query, { 'orderby': f_data.order_by })\n                }\n\n                if (f_data.include) {\n                    let in_array = f_data.include.split(',');\n                    query = Object.assign({}, query, { 'include': in_array })\n                }\n\n                if (f_data.exclude) {\n                    let in_array = f_data.exclude.split(',');\n                    query = Object.assign({}, query, { 'exclude': in_array })\n                }\n\n                const newdata = await resolveSelect('core').getEntityRecords('postType', f_data.type, query) || [];\n\n                return await newdata;\n            }\n                \n            const GetCPT = (data) => {\n                let cpt_obj = {\n                    'title' : data?.title?.rendered ? data.title.rendered : '',\n                    'description' : data?.excerpt?.rendered ? data.excerpt.rendered : '',\n                    'thumbnail' : data._embedded?.['wp:featuredmedia']?.[0]?.source_url ? data._embedded['wp:featuredmedia'][0].source_url : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}',\n                    'post_link' : data?.link ? data.link : '',\n                    'post_date' : data?.date ? data.date : '',\n                    'auth_name' : data?._embedded.author?.[0]?.name ? data._embedded.author[0].name : '',\n                    'auth_id' : data?._embedded?.author?.[0]?.id ? data._embedded.author[0].id : '',\n                    'auth_profile' : data?._embedded.author?.[0]?.avatar_urls?.['48'] ? data._embedded.author[0].avatar_urls['48'] : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}',\n                    'auth_url' : data?._embedded?.author?.[0]?.link ? data?._embedded.author[0].link : '',\n                    'catrgory_list' : data?._embedded?.['wp:term']?.[0] ? data._embedded['wp:term'][0] : [],\n                    'tag_list' : data?._embedded?.['wp:term']?.[1] ? data._embedded['wp:term'][1] : [],\n                };\n\n                return cpt_obj;\n            }`:""}\n\n        ${M}\n   \n            const {\n               isSelected,\n               attributes,\n               setAttributes,\n            } = props;\n   \n            const {\n               ${U}\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            useEffect(() => {\n                setTimeout(() => {\n                    if(jQuery('.wdkit-block-' + block_id)?.length > 0){\n                        main_function_${t.WcardData.widgetdata.widget_id}(jQuery('.wdkit-block-' + block_id))\n                    }\n                }, 1500);\n            }, [attributes])\n\n            const main_function_${t.WcardData.widgetdata.widget_id} = ($scope) => {\n                let is_editable = wp?.blocks ? true : false;\n                ${JSON.parse(s)}\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                           ${h}\n                        ),\n                        React.createElement(Pmgc_Tab, { tabTitle: __("Style") },\n                           ${_}\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, 'wdkit', "wb-${t.WcardData.widgetdata.widget_id}", block_id, false, props.clientId);\n                }\n            }\n\n            ${Z}\n            ${k}\n   \n            return (\n                React.createElement(Fragment, null, inspectorControls,\n                    wp.element.createElement("div", {\n                    class: "wkit-wb-Widget_${t.WcardData.widgetdata.widget_id} wdkit-block-"+block_id+"",\n                        dangerouslySetInnerHTML: {\n                            __html: \`${v}\`\n                        }\n                    })\n                )\n            );\n        },\n   \n       save: (props) => {\n\n        const {\n            isSelected,\n            attributes,\n            setAttributes,\n        } = props;\n\n        const {\n            ${U}\n            block_id,\n        } = attributes;\n\n        ${E.includes("taxonomy")?"\n\n            const Get_taxo_list = (t_data) => {\n\n                if (t_data?.post_type != 'select type') {\n                    const taxonomies = select('core').getTaxonomies({ type: t_data.post_type }) || [];\n                    const taxonomy = taxonomies.find(tax => tax.slug === t_data.type);\n\n                    if (!taxonomy) {\n                        return [];\n                    }\n                }\n\n                var query = {\n                    per_page: t_data.max_post,\n                    offset: 0,\n                    _embed: true,\n                };\n\n                const newdata = select('core').getEntityRecords('taxonomy', t_data.type, query) || [];\n\n                return newdata;\n            }":""}\n\n        ${B.length>0?`const CPT_array = (f_data) => {\n\n                let query = {\n                    per_page: f_data.max_post,\n                    order: f_data.order,\n                    offset: 0,\n                    status: 'publish',\n                    _embed: true,\n                };\n\n                if (f_data?.order_by && f_data?.order_by != 'none') {\n                    query = Object.assign({}, query, { 'orderby': f_data.order_by })\n                }\n\n                if (f_data.include) {\n                    let in_array = f_data.include.split(',');\n                    query = Object.assign({}, query, { 'include': in_array })\n                }\n\n                if (f_data.exclude) {\n                    let in_array = f_data.exclude.split(',');\n                    query = Object.assign({}, query, { 'exclude': in_array })\n                }\n\n                let data = select('core').getEntityRecords('postType', f_data.type, query) || [];\n\n                return data;\n            }\n                \n            const GetCPT = (data) => {\n                let cpt_obj = {\n                    'title': data?.title?.rendered ? data.title.rendered : '',\n                    'description': data?.excerpt?.rendered ? data.excerpt.rendered : '',\n                    'thumbnail': data._embedded?.['wp:featuredmedia']?.[0]?.source_url ? data._embedded['wp:featuredmedia'][0].source_url : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}',\n                    'post_link': data?.link ? data.link : '',\n                    'post_date': data?.date ? data.date : '',\n                    'auth_name': data?._embedded.author?.[0]?.name ? data._embedded.author[0].name : '',\n                    'auth_id': data?._embedded?.author?.[0]?.id ? data._embedded.author[0].id : '',\n                    'auth_profile': data?._embedded.author?.[0]?.avatar_urls?.['48'] ? data._embedded.author[0].avatar_urls['48'] : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}',\n                    'auth_url': data?._embedded?.author?.[0]?.link ? data?._embedded.author[0].link : '',\n                    'catrgory_list': data?._embedded?.['wp:term']?.[0] ? data._embedded['wp:term'][0] : [],\n                    'tag_list': data?._embedded?.['wp:term']?.[1] ? data._embedded['wp:term'][1] : [],\n                };\n\n                return cpt_obj;\n            }`:""}\n\n        ${V}\n\n        ${Z}\n        ${k}\n\n        let styleCss = Pmgc_CssGenerator(attributes, 'wdkit', "wb-${t.WcardData.widgetdata.widget_id}", block_id, true);\n\n        return (\n            React.createElement(Fragment, null,\n                wp.element.createElement("div", {\n                    class: "wkit-wb-Widget_${t.WcardData.widgetdata.widget_id} wdkit-block-" + block_id + "",\n                    dangerouslySetInnerHTML: {\n                        __html: \`${v}\`\n                    }\n\n                }),\n                /*#__PURE__*/React.createElement("style", null, styleCss)\n            )\n        );\n       },\n   });\n}\n}\n    new ${A("file").replaceAll("-","_")}();`,ee=O.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_${L}(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_${L}([element])\n                });\n        }, 800);`,te='""'!=s?`class MyClass_${L} {\n\n        constructor() {\n            window.addEventListener('DOMContentLoaded', (event) => {\n                ${ee}\n            });\n        }\n\n        main_function_${L}($scope) {\n        let is_editable = wp?.blocks ? true : false;\n            ${JSON.parse(s)} \n        }\n    }\n\n    new MyClass_${L}();`:"",ae=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(i);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("}"),i="";return t.map((t=>{let a=t.trim();a.search("{")>-1?a.search("@import")>-1?i+=a+"}":"."==a.charAt(0)?(a=a.replace(".",`.wkit-wb-Widget_${e} .`),i+=a+"}"):a.charAt(0).match("[a-zA-Z]+")&&!a.startsWith("body")?(a=a.replace(a.charAt(0),`.wkit-wb-Widget_${e} `+a.charAt(0)),i+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` {  .wkit-wb-Widget_${e}`),i+=a+"}"):i+=a+"}":a.search("{")<=-1&&(i+="}")})),i=i.slice(0,-1),i}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`;let ie=c(),se=c(),ne=c(),le=O.includes("jQuery")?"array('jquery')":"[]";var re=`<?php\n    function wb_${A("file").replaceAll("-","_")}() { \n\n        ${b||te||x?`if ( ( !empty( $_GET['action'] ) && 'edit' === $_GET['action'] ) || ! is_admin() ){\n            ${b}\n            ${te?`wp_enqueue_script("wbuilder-cgb-block_external${ie}-js", WDKIT_SERVER_PATH .'/gutenberg/${A("folder")}/index.js', ${le}, '${wdkitData.WDKIT_VERSION}.${w()}', true);`:""}\n\n            ${x}\n        }`:""}\n\n        wp_register_script('wbuilder-cgb-block_${ie}-js', WDKIT_SERVER_PATH .'/gutenberg/${A("folder")}/${A("file")}.js',\n            array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wkit-editor-block-pmgc' ), '${wdkitData.WDKIT_VERSION}.${w()}', true\n        );\n\n        ${E.length>0?`/**\n            * Get post type list.\n            *\n            * @since 1.0.34\n            */\n            function set_options_${t.WcardData.widgetdata.widget_id}()\n            {\n                $ctp = array();\n                $order_list = array();\n                $cpt_array = array();\n                $order_array = array();\n\n                if(class_exists('Wdkit_Dynamic_Listing_Files')){\n                    $wdkit_widget = new Wdkit_Dynamic_Listing_Files();\n        \n                    if(method_exists($wdkit_widget, 'Get_post_list')){\n                        $ctp = $wdkit_widget->Get_post_list();\n                    }\n        \n                    if(method_exists($wdkit_widget, 'Get_orderBy_List')){\n                        $order_list = $wdkit_widget->Get_orderBy_List();\n                    }\n                }\n\n                foreach ($ctp as $key => $value) {\n                    array_push($cpt_array, array( $value['name'],  $value['label'] ));\n                }\n                \n                foreach ($order_list as $key => $value) {\n                    array_push($order_array, array( $value['name'],  $value['label'] ));\n                }\n\n                return array(\n                    'post_list' => $cpt_array,\n                    'order_by' => $order_array,\n                );\n            }\n    \n            wp_localize_script(\n                'wbuilder-cgb-block_${ie}-js',\n                'wdkit_post_type', // The object name that will be available in JavaScript\n                set_options_${t.WcardData.widgetdata.widget_id}()\n            );`:""}\n\n        ${E.includes("taxonomy")>0?`/**\n            * Get post type list.\n            *\n            * @since 1.0.38\n            */   \n            wp_localize_script(\n                'wbuilder-cgb-block_${ie}-js',\n                'wdkit_taxonomy', // The object name that will be available in JavaScript\n                get_taxonomies(),\n            );`:""}\n    \n        ${ae?`wp_register_style('wbuilder-cgb-style_${se}-css', WDKIT_SERVER_PATH .'/gutenberg/${A("folder")}/${A("file")}.css', is_admin() ? array( 'wp-editor' ) : null, '${wdkitData.WDKIT_VERSION}.${w()}', false );`:""}\n    \n        register_block_type(\n            'wdkit/wb-${t.WcardData.widgetdata.widget_id}', array(\n                'attributes' => [\n                    'block_id' => [\n                        'type' => 'string',\n                        'default' => '',\n                    ],\n                    ${C}\n    \n                ],\n                ${ae?`'style'         => 'wbuilder-cgb-style_${se}-css',`:""}\n                'editor_script' => 'wbuilder-cgb-block_${ie}-js',\n                'render_callback' => 'wkit_render_callback_${ne}'\n            )\n        );\n    \n    }\n    add_action( 'init', 'wb_${A("file").replaceAll("-","_")}' );\n    \n    function wkit_render_callback_${ne}($atr, $cnt) { \n        $output = $cnt;\n    \n        return $output;\n    }`,oe=`{\n    "section_data": ${K},\n    "widget_data":${G},\n    "Editor_Link":${Y},\n        "Editor_data": {\n            "html":${a},\n            "css":${i},\n            "js":${s}\n        }\n    }`;if(null==n)var de="";else de=n;var ce={old_folder:de,file_name:A("file"),folder_name:A("folder"),description:t.WcardData.widgetdata.description,gutenberg_js:X,gutenberg_php_file:re,gutenberg_css:ae,external_js_file:te,json_file:oe,plugin:"gutenberg",d_image:o||"",call:e},pe=new FormData;pe.append("action","get_wdesignkit"),pe.append("kit_nonce",wdkitData.kit_nonce),pe.append("type","wkit_create_widget"),pe.append("image",r),pe.append("value",JSON.stringify(ce)),await l().post(ajaxurl,pe).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),S.api=e.data)})).catch((e=>console.log(e)));var we=t.WcardData.widgetdata.w_image,me=t.WcardData.widgetdata.img_ext;let ge=Xe();if(ge&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/gutenberg/${A("folder")}/${A("file")}.json`,t=await l().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(we=t?.widget_data?.widgetdata?.w_image,me=t?.widget_data?.widgetdata?.img_ext)})();let e={token:ge.token,type:"add",title:A(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:oe,w_uniq:t.WcardData.widgetdata.widget_id,w_image:we,w_imgext:me,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 Ye(a).then((e=>{S.ajax={data:e}}))}return S},Re=async(e,t,a,i,s,n,r,o)=>{const d=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e},c=e=>"string"==typeof e?e.replaceAll("'","\\'"):e,p=e=>{var t="",a="";return 1==e.conditions&&(e.condition_value.values.map((e=>{e.name&&e.operator&&(a+=`['${c(e.name)}', '${"=="==e.operator?"=":e.operator}', ${1==e.value||0==e.value||"true"==e.value||"false"==e.value?e.value:`'${c(e.value)}'`}],\n`)})),""!=a&&(t+=`'required' =>  [${a}],`)),t};var w="",m=wdkitData.WDKIT_SERVER_PATH,g="",u={},h="",_="wdesignkit",C=[],k=[],v="",b={api:"",ajax:""},x=[],f=t.Editor_code?.Editor_codes?.[0]?.php,j=d(),y=[],$=d(),N=[],L=!1,M=t?.Editor_data?.links?.[0]?.external_cdn?[...t?.Editor_data?.links?.[0]?.external_cdn]:[];const H=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,2)+e},V=()=>Math.floor(1e6*Math.random()),D=e=>{let a=`${m}/bricks/${B("folder")}/${B("file")}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:a,img_ext:e})}},S=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!r||!r.type){if(n){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];return a?D(a):t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];return a?D(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 D(e)}},Z=function(e){return(new DOMParser).parseFromString(e,"text/html")};var R=(e=>{let t=Z(JSON.parse(e));return(t.head.innerHTML+t.body.innerHTML).replaceAll("'","\\'")})(a);const B=e=>{var a=t.WcardData.widgetdata.name.trim(),i=t.WcardData.widgetdata.widget_id;return"file"==e?a.replaceAll(" ","_")+"_"+i:"folder"==e?a.replaceAll(" ","-")+"_"+i:a},E=e=>{let t=[],a=Z(R),i=a.querySelectorAll(`[data-${e}]`);if(i.length>0)return R=a.head.innerHTML+a.body.innerHTML,Object.values(i).map((e=>{t.push(e.outerHTML)})),t};(()=>{if("update"===e||"sync"===e&&null!=n){let e=new URL(window.location).hash.split("/"),a=e.length-1,i=t.WcardData.widgetdata.name.trim()+"_"+t.WcardData.widgetdata.widget_id;e[a]=i,document.location.hash=e.join("/")}})();const O=(e,t)=>{let a=e?.sanitizer_value?e.sanitizer_value:"";return(e?.sanitizer_dropdown_value?e.sanitizer_dropdown_value:"")||(a="wdk_senitize_js"),"none"!=a&&a&&a.trim()?("wdk_senitize_js"==a&&(L=!0),`${a}(${t})`):t},A=async e=>{if(e){let t=E(e);t?.length>0&&t?.map(((t,a)=>{if(t){var i=Z(t);x.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&A(t.name)}));let a=E(e);if(!(a.length>0))return!1;{let t=x.findIndex((t=>t.name==e)),i=x[t];if("repeater"==i.type){let e=H(),t=`$${i.name+"_"+e} .= '${a[0]}';`;v+=`$${i.name+"_"+e} = '';\n                            if ( !empty($this->settings['${i.name}']) ${i?.condition?i.condition:""}) {\n                                foreach ( $this->settings['${i.name}'] as $key => $r_item ) {\n                                    ${u?.[i.name]?u?.[i.name]:""}\n                                    ${t}\n                                }\n                            }`,R=R.replace(a[0],`'.$${i.name+"_"+e}.'`)}else if("cpt"==i.type){let e=H(),t=a[0],s=Z(t),n=[],l=[];if(s.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{n.push(e.outerHTML)}))}if(s.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(n?.length>0){let e="",a="";n.map((i=>{let s=H();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),r+=`\n                                    ${a}\n                                    if( !empty ($p_item['categories']) ){\n                                        foreach( $p_item['categories'] as $cat){\n                                            ${e}\n                                        }\n                                    }`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=H();a+=`$${"tagList_"+s} = '';\n`,t=t.replace([i],`'.$${"tagList_"+s}.'`),e+=`$${"tagList_"+s} .= '${i}';\n`})),o+=`\n                                    ${a}\n                                    if( !empty ($p_item['tags']) ){\n                                        foreach( $p_item['tags'] as $tag){\n                                            ${e}\n                                        }\n                                    }`}g+=`$${i.name+"_"+e} = '';\n                                if(!empty($this->settings['post_type_${i.unique_id}'])){\n\n                                $type = $this->settings['post_type_${i.unique_id}'];\n                                $per_page = isset($this->settings['max_post_${i.unique_id}']) ? $this->settings['max_post_${i.unique_id}'] : '10';\n                                $order = !empty($this->settings['order_${i.unique_id}']) ? $this->settings['order_${i.unique_id}'] : 'DESC'; \n                                $order_by = !empty($this->settings['order_by_${i.unique_id}']) ? $this->settings['order_by_${i.unique_id}'] : 'date'; \n                                $include = !empty( $this->settings['include_${i.unique_id}'] ) ? explode( ',', $this->settings['include_${i.unique_id}'] ) : array();\n                                $exclude = !empty( $this->settings['exclude_${i.unique_id}'] ) ? explode( ',', $this->settings['exclude_${i.unique_id}'] ) : array();\n                                $cat_count = isset( $this->settings['max_cat_${i.unique_id}'] ) ? $this->settings['max_cat_${i.unique_id}'] : 3;\n                                $tag_count = isset( $this->settings['max_tag_${i.unique_id}'] ) ? $this->settings['max_tag_${i.unique_id}'] : 3;\n\n\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_post_query($type, $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count)) ? $this->get_post_query($type, $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count) : [];\n                                    \n                                    if ( !empty($${i.name+"_"+e+"_array"}) ) {        \n                                        foreach ( $${i.name+"_"+e+"_array"} as $p_item ) {\n                                            ${r}\n                                            ${o}\n                                            $${i.name+"_"+e} .= '${t}';\n                                        }\n                                    } else {\n                                        $${i.name+"_"+e} .= '<h6 style="color: red;text-align: center;display: block;">No Result Found</h6>';\n                                    }\n                                }`,R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("product_listing"==i.type){let e=H(),t=a[0],s=Z(t),n=[],l=[];if(s.querySelectorAll(`[data-${i.name+"_cat"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_cat"}]`);Object.values(e).map((e=>{n.push(e.outerHTML)}))}if(s.querySelectorAll(`[data-${i.name+"_tag"}]`).length>0){let e=s.querySelectorAll(`[data-${i.name+"_tag"}]`);Object.values(e).map((e=>{l.push(e.outerHTML)}))}let r="";if(n?.length>0){let e="",a="";n.map((i=>{let s=H();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),r+=`\n                                    ${a}\n                                    if( !empty ($p_item['categories']) ){\n                                        foreach( $p_item['categories'] as $cat){\n                                            ${e}\n                                        }\n                                    }`}let o="";if(l?.length>0){let e="",a="";l.map((i=>{let s=H();a+=`$${"tagList_"+s} = '';\n`,t=t.replace([i],`'.$${"tagList_"+s}.'`),e+=`$${"tagList_"+s} .= '${i}';\n`})),o+=`\n                                    ${a}\n                                    if( !empty ($p_item['tags']) ){\n                                        foreach( $p_item['tags'] as $tag){\n                                            ${e}\n                                        }\n                                    }`}g+=`$${i.name+"_"+e} = '';\n\n                                $per_page = isset($this->settings['max_post_${i.unique_id}']) ? $this->settings['max_post_${i.unique_id}'] : '10';\n                                $order = !empty($this->settings['order_${i.unique_id}']) ? $this->settings['order_${i.unique_id}'] : 'DESC'; \n                                $order_by = !empty($this->settings['order_by_${i.unique_id}']) ? $this->settings['order_by_${i.unique_id}'] : 'date'; \n                                $include = !empty( $this->settings['include_${i.unique_id}'] ) ? explode( ',', $this->settings['include_${i.unique_id}'] ) : array();\n                                $exclude = !empty( $this->settings['exclude_${i.unique_id}'] ) ? explode( ',', $this->settings['exclude_${i.unique_id}'] ) : array();\n                                $cat_count = isset( $this->settings['max_cat_${i.unique_id}'] ) ? $this->settings['max_cat_${i.unique_id}'] : 3;\n                                $tag_count = isset( $this->settings['max_tag_${i.unique_id}'] ) ? $this->settings['max_tag_${i.unique_id}'] : 3;\n\n\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_post_query('product', $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count)) ? $this->get_post_query('product', $per_page, $order, $order_by, $include, $exclude, $cat_count, $tag_count) : [];\n                                    if ( !empty($${i.name+"_"+e+"_array"}) ) {\n                                        foreach ( $${i.name+"_"+e+"_array"} as $p_item ) {\n                                            ${r}\n                                            ${o}\n                                            $${i.name+"_"+e} .= '${t}';\n                                        }\n                                    } else {\n                                        $${i.name+"_"+e} .= '<h6 style="color: red;text-align: center;display: block;">No Result Found</h6>';\n                                    }`,R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("gallery"===i.type){let e=H();if(null!=i?.repeater){var s=`$${i.name+"_"+e} = '';\n                                if(!empty($r_item['${i.name}']) ${i?.condition?i.condition:""}){\n                                    foreach ( ${i?.repeater?"$r_item":"$this->settings"}['${i.name}']['images'] as $image ) {\n                                        $${i.name} = ${O(i,"$image['url']")};\n                                        $${i.name+"_"+e} .= '${a[0]}';\n                                    }\n                                }`;u?.[i?.repeater]&&(s=u?.[i?.repeater]+s),u=Object.assign({},u,{[i?.repeater]:s})}else g+=`$${i.name+"_"+e} = '';\n                                if( !empty ($this->settings['${i.name}']) ${i?.condition?i.condition:""}){\n                                    foreach ( ${i?.repeater?"$r_item":"$this->settings"}['${i.name}']['images'] as $image ) {\n                                        $${i.name} = ${O(i,"$image['url']")};\n                                        $${i.name+"_"+e} .= '${a[0]}';\n                                    }\n                                }`;R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("select2"===i.type){let e=H();i?.repeater?(s=i?.multiple?`$${i.name+"_"+e} = '';\n                                    if ( !empty($r_item['${i.name}']) ${i?.condition?i.condition:""}) {\n                                        foreach ( $r_item['${i.name}'] as $s_item  ) {\n                                            $${i.name+"_"+e} .= '${a[0]}';\n                                        }\n                                    }`:`$${i.name+"_"+e} = '';\n                                    if ( !empty($r_item['${i.name}']) ${i?.condition?i.condition:""}) {\n                                            $${i.name+"_"+e} .= '${a[0]}';\n                                    }`,u?.[i?.repeater]&&(s=u?.[i?.repeater]+s),u=Object.assign({},u,{[i?.repeater]:s})):g+=i?.multiple?`$${i.name+"_"+e} = '';\n                                    if (  !empty($this->settings['${i.name}']) ${i?.condition?i.condition:""}) {\n                                        foreach (  $this->settings['${i.name}'] as $s_item  ) {\n                                            $${i.name+"_"+e} .= '${a[0]}';\n                                        }\n                                    }`:`$${i.name+"_"+e} = '';\n                                    if (  !empty($this->settings['${i.name}']) ${i?.condition?i.condition:""}) {\n                                            $${i.name+"_"+e} .= '${a[0]}';\n                                    }`,R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("headingtags"===i.type){let e=H();if(null!=i?.repeater){let t=a[0];t=t.replaceAll([i.name],`'.$r_item["${i.name}"].'`),s=`$${i.name+"_"+e} = '';\n                                if(!empty($r_item['${i.name}']) ${i?.condition?i.condition:""}){\n                                    $${i.name+"_"+e} = '${t}';\n                                }`,u?.[i?.repeater]&&(s=u?.[i?.repeater]+s),u=Object.assign({},u,{[i?.repeater]:s})}else{let t=a[0],s=d();t=t.replaceAll(`data-${i.name}`,s),t=t.replaceAll([i.name],`'.$this->settings["${i.name}"].'`),t=t.replaceAll([s],`data-${i.name}`),g+=`$${i.name+"_"+e} = '';\n                                if(!empty($this->settings['${i.name}']) ${i?.condition?i.condition:""}){\n                                    $${i.name+"_"+e} = '${t}';\n                                }`}R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("taxonomy"==i.type){let e=H(),t=a[0];g+=`$${i.name+"_"+e} = '';\n                                if(!empty($this->settings['taxonomy_${i.unique_id}'])){\n\n                                    $taxo_type = $this->settings['taxonomy_${i.unique_id}'];\n                                    $post_type = !empty($this->settings['post_type_${i.unique_id}']) ? $this->settings['post_type_${i.unique_id}'] : 'post';\n                                    $per_page = !empty($this->settings['max_post_${i.unique_id}']) ? $this->settings['max_post_${i.unique_id}'] : '10'; \n\n                                    $${i.name+"_"+e+"_array"} = !empty($this->get_taxonomy_list($taxo_type, $post_type, $per_page)) ? $this->get_taxonomy_list($taxo_type, $post_type, $per_page) : [];\n\n                                    if ( !empty($${i.name+"_"+e+"_array"}) ) {\n                                        foreach ( $${i.name+"_"+e+"_array"} as $t_item ) {\n                                            $${i.name+"_"+e} .= '${t}';\n                                        }\n                                    } else {\n                                        $${i.name+"_"+e} .= '<h6 style="color: red;text-align: center;display: block;">No Result Found</h6>';\n                                    }\n                                }`,R=R.replace([a[0]],`'.$${i.name+"_"+e}.'`)}}}}))}},T=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((i,s)=>{i.name&&i.operator&&(y.includes(i.name)?t?"!="==i.operator?a+=`!isset($r_item['${i.name}'])`:a+=`isset($r_item['${i.name}'])`:"!="==i.operator?a+=`!isset($this->settings['${i.name}'])`:a+=`isset($this->settings['${i.name}'])`:a+=t?`!empty($r_item['${i.name}']) && $r_item['${i.name}'] ${i.operator} ${"true"===i.value||"false"===i.value?i.value:`'${i.value}'`}`:`!empty($this->settings['${i.name}']) && $this->settings['${i.name}'] ${i.operator} ${"true"===i.value||"false"===i.value?i.value:`'${i.value}'`}`,s<e?.condition_value?.values?.length-1&&(a+="or"===e?.condition_value.relation?"||":"&&"))})),a?`&& (${a}) `:""},P=(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']) ${T(e,t)} ? '_blank' : '';\n`;a+=`$${e.name}_url = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${T(e,t)} ? ${O(e,`$r_item['${e.name}']['url']`)} : '';\n`,a+=`$${e.name}_nofollow = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['rel']) ${T(e,t)} ? $r_item['${e.name}']['rel'] : '';\n`,a+=`$${e.name}_arialabel = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['ariaLabel']) ${T(e,t)} ?  'ariaLabel="'.$r_item['${e.name}']['ariaLabel'].'"' : '';\n`,a+=`$${e.name}_title = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['title']) ${T(e,t)} ?  'title="'.$r_item['${e.name}']['title'].'"' : '';\n`,u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else g+=`$${e.name}_is_external = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['newTab']) ${T(e)} ?  '_blank' : '';\n`,g+=`$${e.name}_url = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['url']) ${T(e)} ?  ${O(e,`$this->settings['${e.name}']['url']`)} : '';\n`,g+=`$${e.name}_nofollow = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['rel']) ${T(e)}?  $this->settings['${e.name}']['rel'] : '';\n`,g+=`$${e.name}_arialabel = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['ariaLabel']) ${T(e)} ?  'ariaLabel="'.$this->settings['${e.name}']['ariaLabel'].'"' : '';\n`,g+=`$${e.name}_title = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['title']) ${T(e)} ?  'title="'.$this->settings['${e.name}']['title'].'"' : '';\n`;R=(R=(R=(R=R.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(R.search(e.name)>=1){if(t){let a=`$${e.name} = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${T(e,t)} ?  ${O(e,`$r_item['${e.name}']['url']`)} : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else g+=`$${e.name} = isset($this->settings['${e.name}']) && !empty($this->settings['${e.name}']['url']) ${T(e)} ? ${O(e,`$this->settings['${e.name}']['url']`)} : '';\n`;R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){x.push({type:e.type,name:e.name,repeater:t,condition:T(e,t)});let i=E(e.name);i&&i.map(((t,i)=>{let s=t;u[e.name]="",e.fields.map((n=>{if(a+=P(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=(l=s,(new DOMParser).parseFromString(l,"text/html").body);if(e.querySelector(`[data-${n.name}]`)&&e.querySelector(`[data-${n.name}]`).outerHTML){let t=e.querySelector(`[data-${n.name}]`).outerHTML;R=R.replaceAll(t,`'.$${n.name+i}.'`)}}else R="media"==n.type||"iconscontrol"==n.type?R.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):"url"==n.type?(R=(R=R.replaceAll(`{{${n.name}-url}}`,`' . $${n.name}_url . '`)).replaceAll(`{{${n.name}-is_external}}`,`' . $${n.name}_is_external . '`)).replaceAll(`{{${n.name}-nofollow}}`,`' . $${n.name}_nofollow . '`):"svg"==n.type?R.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):R.replaceAll(`{{${n.name}}}`,`' . $r_item['${n.name}'] . '`);R=(R=(R=(R=R.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 l}))}))}else if("cpt"==e.type){x.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=E(e.name);a&&a.map(((t,a)=>{t&&(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=R.replaceAll("{{title_"+e.name+"}}","'.$p_item['title'].'")).replaceAll("{{description_"+e.name+"}}","'.$p_item['description'].'")).replaceAll("{{cat_name_"+e.name+"}}","'.$cat['name'].'")).replaceAll("{{cat_url_"+e.name+"}}","'.$cat['url'].'")).replaceAll("{{tag_name_"+e.name+"}}","'.$tag['name'].'")).replaceAll("{{tag_url_"+e.name+"}}","'.$tag['url'].'")).replaceAll("{{thumbnail_"+e.name+"}}","'.$p_item['image'].'")).replaceAll("{{post_link_"+e.name+"}}","'.$p_item['post_link'].'")).replaceAll("{{post_date_"+e.name+"}}","'.$p_item['post_date'].'")).replaceAll("{{auth_name_"+e.name+"}}","'.$p_item['author_name'].'")).replaceAll("{{auth_id_"+e.name+"}}","'.$p_item['author_id'].'")).replaceAll("{{auth_email_"+e.name+"}}","'.$p_item['author_email'].'")).replaceAll("{{auth_profile_"+e.name+"}}","'.$p_item['author_avatar'].'")).replaceAll("{{auth_url_"+e.name+"}}","'.$p_item['author_url'].'"))}))}else if("taxonomy"==e.type){x.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=E(e.name);a&&a.map(((t,a)=>{t&&(R=(R=(R=(R=(R=R.replaceAll("{{title_"+e.name+"}}","'.$t_item['name'].'")).replaceAll("{{description_"+e.name+"}}","'.$t_item['description'].'")).replaceAll("{{taxo_image_"+e.name+"}}","'.$t_item['thumbnail'].'")).replaceAll("{{taxo_link_"+e.name+"}}","'.$t_item['front_link'].'")).replaceAll("{{taxo_slug_"+e.name+"}}","'.$t_item['slug'].'"))}))}else if("product_listing"==e.type){x.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=E(e.name);a&&a.map(((t,a)=>{t&&(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=(R=R.replaceAll("{{title_"+e.name+"}}","'.$p_item['title'].'")).replaceAll("{{description_"+e.name+"}}","'.$p_item['description'].'")).replaceAll("{{cat_name_"+e.name+"}}","'.$cat['name'].'")).replaceAll("{{cat_url_"+e.name+"}}","'.$cat['url'].'")).replaceAll("{{tag_name_"+e.name+"}}","'.$tag['name'].'")).replaceAll("{{tag_url_"+e.name+"}}","'.$tag['url'].'")).replaceAll("{{thumbnail_"+e.name+"}}","'.$p_item['image'].'")).replaceAll("{{post_link_"+e.name+"}}","'.$p_item['post_link'].'")).replaceAll("{{post_date_"+e.name+"}}","'.$p_item['post_date'].'")).replaceAll("{{auth_name_"+e.name+"}}","'.$p_item['author_name'].'")).replaceAll("{{auth_id_"+e.name+"}}","'.$p_item['author_id'].'")).replaceAll("{{auth_email_"+e.name+"}}","'.$p_item['author_email'].'")).replaceAll("{{auth_profile_"+e.name+"}}","'.$p_item['author_avatar'].'")).replaceAll("{{auth_url_"+e.name+"}}","'.$p_item['author_url'].'"))}))}else if("gallery"==e.type){x.push({type:e.type,name:e.name,repeater:t,sanitizer_value:e?.sanitizer_value,sanitizer_dropdown_value:e?.sanitizer_dropdown_value,condition:T(e,t)});let a=E(e.name);a&&a.map(((t,a)=>{t&&(R=R.replaceAll("{{"+e.name+"}}",`' . $${e.name} . '`))}))}else if("select2"==e.type){x.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:T(e,t)});let a=E(e.name);a&&a.map(((t,a)=>{t&&(R=e.multiple?R.replaceAll("{{"+e.name+"}}",`' .${O(e,"$s_item")}. '`):R.replaceAll("{{"+e.name+"}}",`' .${O(e,`$settings['${e.name}']`)}. '`))}))}else if("iconscontrol"==e.type){if(R.search(e.name)>=1){if(t){if(e.parent_class||null==e.parent_class)var i=`<span class="tp-title-icon"><i class="'.$r_item['${e.name}']['icon'].'"></i></span>`;else i=`<i class="'.$r_item['${e.name}']['icon'].'"></i>`;let a=`$${e.name} = isset( $r_item['${e.name}'] ) && !empty($r_item['${e.name}']['icon']) ${T(e,t)} ?  '${i}' : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else i=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>`,g+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${T(e)} ? '${i}' : '';\n`;R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("svg"==e.type)if(t){let a=`$${e.name} = isset( $r_item['${e.name}']['url'] ) ${T(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 g+=`$${e.name} =\n                isset( $this->settings['${e.name}']['url'] ) ${T(e)} ? file_get_contents( esc_url( $this->settings['${e.name}']['url'] ) ) : '';\n`,R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if("headingtags"==e.type)x.push({type:e.type,name:e.name,repeater:t,condition:T(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 g+=`$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`;R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("color"==e.type)if(t){R=R.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']['hex']) ${T(e,t)} ? $r_item['${e.name}']['hex'] : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else g+=`$${e.name} =\n                isset( $this->settings['${e.name}']['hex'] ) ${T(e)} ? $this->settings['${e.name}']['hex'] : '';\n`,R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if("text"==e.type||"number"==e.type||"textarea"==e.type||"select"==e.type||"choose"==e.type||"wysiwyg"==e.type||"rawhtml"==e.type)if(t){R=R.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']) ${T(e,t)} ? ${O(e,`$r_item['${e.name}']`)} : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else g+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${T(e)} ? ${O(e,`$this->settings['${e.name}']`)} : '';\n`,R=R.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if(t){R=R.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']) ${T(e,t)} ? $r_item['${e.name}'] : '';\n`;u?.[t]&&(a=u?.[t]+a),u=Object.assign({},u,{[t]:a})}else g+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${T(e)} ? $this->settings['${e.name}'] : '';\n`,R=R.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_${d()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${V()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(k+=`wp_enqueue_style( 'wd_css_ex_1_${d()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${V()}', 'all' );\n`)})),t.CardItems.cardData[0].layout.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&y.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&y.push(e.name)}))}))})),t.CardItems.cardData[0].style.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&y.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&y.push(e.name)}))}))})),t.CardItems?.cardData?.[0].layout.map((e=>{e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||N.includes(e.type)||N.push(e.type),f&&(f=f.replaceAll(`{{${e.name}}}`,e.name)),v+=P(e)}))})),t.CardItems?.cardData?.[0].style.map((e=>{e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||N.includes(e.type)||N(e.type),f&&(f=f.replaceAll(`{{${e.name}}}`,e.name)),v+=P(e)}))})),x.length>0&&x.map((e=>{A(e.name)})),t.CardItems?.cardData?.[0].layout.map((e=>{h+=`$this->control_groups['${e.section}'] =\n            [\n                'title' => esc_html__( '${e.section}', '${_}' ),\n                'tab' => 'content',\n                ${e?.conditions?p(e):""}\n            ];\n        \n`,e.inner_sec.map((t=>{w+=De(t,"content",void 0,e)}))})),t.CardItems?.cardData?.[0].style.map((e=>{h+=`$this->control_groups['${e.section}'] =\n            [\n                'title' => esc_html__( '${e.section}', '${_}' ),\n                'tab' => 'style',\n                ${e?.conditions?p(e):""}\n            ];\n        \n`,e.inner_sec.map((t=>{w+=De(t,"style",void 0,e)}))})),g=g.replaceAll("wdk_senitize_js","$this->wdk_senitize_js"),v=v.replaceAll("wdk_senitize_js","$this->wdk_senitize_js");let W=M.includes("jQuery")?"array('jquery')":"[]";var 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);`,I='""'!=s?`class MyClass_${$} {\n        constructor() {\n            this.initialize();\n            this.observeMutations();\n        }\n\n        initialize() {\n            ${F}\n        }\n\n    main_function_${$}($scope) {\n        let is_editable = window.location.search.includes('bricks=run');\n        ${JSON.parse(s)}\n    }\n\n    observeMutations() {\n    const observer = new MutationObserver((mutations) => {\n        for (const mutation of mutations) {\n            mutation.addedNodes.forEach(node => {\n                if (node.nodeType === 1 && node.matches('.wkit-wb-Widget_${t.WcardData.widgetdata.widget_id}')) {\n                    this.initialize();\n                }\n            });\n        }\n    });\n    observer.observe(document.body, {\n        childList: true,\n        subtree: true\n    });\n}\n}\n\nnew MyClass_${$}();`:"",q=`${(()=>{let e=t.WcardData.widgetdata.widget_id,a=JSON.parse(i);if(!a)return"";if(1==t?.WcardData?.widgetdata?.css_parent_node){a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`);let t=a.split("}"),i="";return t.map((t=>{let a=t.trim();if(a.search("{")>-1)if(a.search("@import")>-1)i+=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} .`)),i+=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)),i+=a+"}"):"*"==a.charAt(0)?(a=a.replace("*",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.startsWith("body")?(a=a.replace("body",`.wkit-wb-Widget_${e} `),i+=a+"}"):a.search("@media")>-1?(a=a.replace("{",` {  .wkit-wb-Widget_${e}`),i+=a+"}"):i+=a+"}";else a.search("{")<=-1&&(i+="}")})),i=i.slice(0,-1),i}return a=a.replaceAll("{{parent-class}}",`.wkit-wb-Widget_${e}`),a})()}`,U=`<?php \n\n    /** \n     * Exit if accessed directly.\n     */\n    if ( ! defined( 'ABSPATH' ) ) {\n        exit; \n    } \n    \n    if ( ! class_exists( '${B("file").replaceAll("-","_")}' ) ) {\n\n    class ${B("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      = ${I?"array('"+B("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__( '${B()}', 'Bricks' );\n      }\n\n    ${N.length>0?"\n        /**\n        * Get dynamic listing data as per query.\n        *\n        * @since 1.0.38\n        */\n        private function set_options($type){\n            $ctp = [];\n\n            if(class_exists('Wdkit_Dynamic_Listing_Files')){\n                $wdkit_widget = new Wdkit_Dynamic_Listing_Files();\n                \n                if('post_list' == $type){\n                    if ( method_exists($wdkit_widget, 'Get_post_list')) {\n                        $ctp = $wdkit_widget->Get_post_list();\n                    }\n                } else if ('order_by' == $type){    \n                    if (method_exists($wdkit_widget, 'Get_orderBy_List')) {\n                        $ctp = $wdkit_widget->Get_orderBy_List();\n                    }\n                }\n            }\n\n            $cpt_array = array();\n\n            foreach ($ctp as $key => $value) {\n                $cpt_array[$value['name']] = $value['label'];\n            }\n\n            return $cpt_array;\n        }":""}\n\n        ${L?"/**\n        * Prevent JS senitizer\n        *\n        * @since 1.2.4\n        * */\n        function wdk_senitize_js( $input ) {\n\n            $input = preg_replace( '/&#x[0-9a-fA-F]+;/i', '', $input );\n\n            // Remove complete iframe tags with or without content\n            $input = preg_replace( '/<iframe[^>]*>.*?<\\/iframe>/is', '', $input );\n\n            // Remove incomplete iframe tags\n            $input = preg_replace( '/<iframe[^>]*\\/?>/is', '', $input );\n\n            // Remove JavaScript pseudo-protocols (like javascript:)\n            $input = preg_replace( '/javascript\\s*:/i', '', $input );\n\n            // Remove JavaScript event handlers (like onload, onclick, etc.)\n            $input = preg_replace( '/\\s*on\\w+\\s*=\\s*(\".*?\"|\\'.*?\\'|[^>\\s]+)/is', '', $input );\n\n            // Ensure input is not overly stripped by handling invalid tags carefully\n            $input = strip_tags( $input );\n\n            return trim( $input );\n        }":""}\n\n        ${N.includes("cpt")||N.includes("product_listing")?`\n            \n        /**\n         * Get all posts from wordpress.\n         *\n         * @since ${wdkitData.WDKIT_VERSION}\n         */\n        private function get_post_query( $type, $per_post, $order, $order_by, $include, $exclude, $cat_count, $tag_count ) {\n            \n        // Query arguments\n            $args = array(\n                'post_type' => $type,\n                'posts_per_page'      => $per_post,\n                'order'               => $order,\n                'orderby'             => $order_by,\n                'post__in'            => $include,\n                'post__not_in'        => $exclude,\n            );\n\n            $post_value = array();\n        \n            $query = new WP_Query($args);\n\n            while ($query->have_posts()) {\n\n                $index = count($post_value);\n                $query->the_post();\n\n                $thumbnail_image = has_post_thumbnail() ? get_the_post_thumbnail_url() : '';\n                $title = get_the_title() ? get_the_title() : '';\n                $excerpt = get_the_excerpt() ? get_the_excerpt() : '';\n                $categories = $type === 'product' ? wp_get_post_terms(get_the_ID(), 'product_cat') : get_the_category();\n                $tags_array = $type === 'product' ? wp_get_post_terms(get_the_ID(), 'product_tag') : get_the_tags();\n                $custom_fields = get_post_custom() ? get_post_custom() : '';\n                $post_date = get_the_date() ? get_the_date() : '';\n                $permalink = get_permalink() ? get_permalink() : '';\n\n                $tags_list = array();\n                if (!empty($tags_array)) {\n                    if(isset($tag_count)){\n                        $tags_array = array_slice($tags_array, 0, $tag_count); // Limit the number of tags\n                    }\n                    foreach ($tags_array as $key =>  $tag) {\n                        $tag_name = $tag->name;\n                        $tag_url = get_tag_link($tag->term_id);\n\n                        $tags_list[$key] = array(\n                            'name' => $tag_name,\n                            'url' => $tag_url,\n                        );\n                    }\n                }\n\n                $categories_list = array();\n                if (!empty($categories)) {\n                    if(isset($cat_count)){\n                        $categories = array_slice($categories, 0, $cat_count); // Limit the number of tags\n                    }\n                    foreach ($categories as $category) {\n                        $category_name = $category->name;\n                        $category_url = get_category_link($category->term_id);\n\n                        $categories_list[] = array(\n                            'name' => $category_name,\n                            'url' => $category_url,\n                        );\n                    }\n                }\n\n                // Get author details\n                $author_id = get_the_author_meta('ID') ? get_the_author_meta('ID') : '';\n                $author_name = get_the_author_meta('display_name', $author_id) ? get_the_author_meta('display_name', $author_id) : '';\n                $author_email = get_the_author_meta('user_email', $author_id) ? get_the_author_meta('user_email', $author_id) : '';\n                $author_url = get_the_author_meta('user_url', $author_id) ? get_the_author_meta('user_url', $author_id) : '';\n                $author_avatar = get_avatar_url($author_id, 200) ? get_avatar_url($author_id, array('size' => 200)) : '';\n\n                $post_value[$index]['title'] = $title; \n                $post_value[$index]['post_link'] = $permalink; \n                $post_value[$index]['description'] = $excerpt; \n                $post_value[$index]['categories'] = $categories_list; \n                $post_value[$index]['tags'] = $tags_list; \n                $post_value[$index]['custom_fields'] = $custom_fields; \n                $post_value[$index]['image'] = $thumbnail_image ? $thumbnail_image : '${wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png"}';\n                $post_value[$index]['author_id'] = $author_id; \n                $post_value[$index]['author_name'] = $author_name; \n                $post_value[$index]['author_email'] = $author_email; \n                $post_value[$index]['author_url'] = $author_url; \n                $post_value[$index]['author_avatar'] = $author_avatar; \n                $post_value[$index]['post_date'] = $post_date; \n            }\n\n            return $post_value;\n            }`:""}\n\n        ${N.includes("taxonomy")?"\n        \n            /**\n             * Get all posts from wordpress.\n             *\n             * @since 1.0.36\n             */\n            private function get_taxonomy_list( $taxo_type, $post_type, $per_page ) {\n                \n                $terms = [];\n    \n                $taxoomy_list = !empty( get_object_taxonomies( $post_type ) ) ? get_object_taxonomies( $post_type ) : [];\n                if ( !in_array($taxo_type, $taxoomy_list) ) {\n                    return [];\n                }\n                \n                // Query arguments\n                $terms = get_terms( array(\n                    'taxonomy' => $taxo_type,\n                    'hide_empty' => false,\n                    'number' => $per_page,\n                ) );\n    \n                foreach ($terms as $key => $value) {\n                    $term_link = get_term_link( $value );\n                    $term_image_id = get_term_meta( $value->term_id );\n                    \n                    if ( !empty($term_link) ) {\n                        $terms[$key]->front_link = $term_link;\n                    } else {\n                        $terms[$key]->front_link = '';\n                    }\n                    \n                    if ( !empty($term_image_id['thumbnail_id'][0]) ) {\n                        $img_id = $term_image_id['thumbnail_id'][0];\n                        $thumbnail_img = wp_get_attachment_url($img_id);\n                        $terms[$key]->thumbnail = $thumbnail_img;\n                    } else {\n                        $terms[$key]->thumbnail = '';\n                    }\n                }\n    \n                $terms = json_decode(json_encode($terms), true);\n    \n                return $terms;\n            }":""}\n    \n      // Set builder control groups.\n      public function set_control_groups() {\n        ${h}\n      }\n     \n      // Set builder controls.\n      public function set_controls() {\n        ${w}\n      }\n      public function enqueue_scripts() {\n\n        ${C}\n        ${I?`wp_enqueue_script( 'wkit_child_script_${j}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${B("folder")}/${B("file")}.js', ${W}, '${wdkitData.WDKIT_VERSION}.${V()}', true  );`:""}\n        \n        ${k}\n        ${q?`wp_enqueue_style( 'wkit_child_script_${j}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${B("folder")}/${B("file")}.css', [], '${wdkitData.WDKIT_VERSION}.${V()}', 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        ${f||`        \n        ${g}\n        ${v}\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 .= '${R}';\n        $output .= '</div>';\n        echo $output;    `}\n      }\n    }\n    }`;let z=S().widgetdata.name.trim(),J={widgetdata:Object.assign({},S().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:z})};var K=`{\n        "section_data":${JSON.stringify(t.CardItems.cardData)},\n        "widget_data":${JSON.stringify(J)},\n        "Editor_Link":${JSON.stringify(t.Editor_data)},\n        "Editor_data":{\n            "html":${a},\n            "css":${i},\n            "js":${s}\n            }\n        }`;if(null==n)var G="";else G=n;var Y={old_folder:G,file_name:B("file"),folder_name:B("folder"),description:t.WcardData.widgetdata.description,bricks_php_file:U,bricks_js:I,bricks_css:q,json_file:K,plugin:"bricks",d_image:o||"",call:e},Q=new FormData;Q.append("action","get_wdesignkit"),Q.append("kit_nonce",wdkitData.kit_nonce),Q.append("image",r),Q.append("type","wkit_create_widget"),Q.append("value",JSON.stringify(Y)),await l().post(ajaxurl,Q,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),b.api=e.data)})).catch((e=>console.error(e)));var X=t.WcardData.widgetdata.w_image,ee=t.WcardData.widgetdata.img_ext;let te=Xe();if(te&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/bricks/${B("folder")}/${B("file")}.json`,t=await l().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(X=t?.widget_data?.widgetdata?.w_image,ee=t?.widget_data?.widgetdata?.img_ext)})();let e={token:te.token,type:"add",title:B(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:K,w_uniq:t.WcardData.widgetdata.widget_id,w_image:X,w_imgext:ee,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 Ye(a).then((e=>{b.ajax={data:e}}))}return b},Be=window.ReactJSXRuntime,{Fragment:Ee}=wp.element,Oe=t=>{const i=t.template_global,[s,n]=(0,e.useState)("standard"),[r,o]=(0,e.useState)("select"),[d,c]=(0,e.useState)(),[p,w]=(0,e.useState)({color:!1,typography:!1}),[m,g]=(0,e.useState)(),[u,h]=(0,e.useState)(p),[_,C]=(0,e.useState)(!1),[k,v]=(0,e.useState)([]);(0,e.useEffect)((()=>{let e=d?Object.entries(d):[],t=i?Object.entries(i):[];if(e.length>0&&t.length>0){var a=Object.assign({},k);e.map((([e,t])=>{let s=i?.[e]?i[e]:[],n=[];t.map((e=>{let t=s.findIndex((t=>t?._id==e?._id));if(t>-1){let a=s[t];n.push({temp_id:a?._id,site_id:e?._id})}})),a=Object.assign({},a,{[e]:n}),v(a)}))}}),[d]);const b={typography_font_size:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:(0,Be.jsx)("path",{d:"M13.6781 4.56424L11.9776 2.29688L10.2771 4.56424H11.4107V6.8316H10.2771L11.9776 9.09896L13.6781 6.8316H12.5444V4.56424H13.6781ZM6.4832 3.43056L3.08215 12.5H4.29349L5.35632 9.6658H8.96312L10.0259 12.5H11.2373L7.83624 3.43056H6.4832ZM5.78088 8.53212L7.15943 4.85616L8.53799 8.53212H5.78088Z",fill:"#1A1A1A",fillOpacity:"0.5"})}),typography_font_weight:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M10.1623 3.65077C10.1623 2.46483 9.19743 1.5 8.01147 1.5H7.95052C7.56883 1.5 7.25943 1.80943 7.25943 2.19109C7.25943 2.57276 7.56885 2.88219 7.95052 2.88219H8.01147C8.43527 2.88219 8.78005 3.22694 8.78005 3.65074C8.78005 4.07455 8.43527 4.41933 8.01147 4.41933H4.11211C3.73042 4.41933 3.42102 4.72876 3.42102 5.11045C3.42102 5.49214 3.73045 5.80154 4.11211 5.80154H5.96363L5.29532 10.3101C5.24103 10.6879 5.50327 11.0381 5.88109 11.0925C5.91443 11.0973 5.94754 11.0996 5.98027 11.0996C6.3184 11.0996 6.61399 10.8511 6.66349 10.5067L7.36004 5.80157H8.01147C9.19743 5.80157 10.1623 4.83671 10.1623 3.65077Z",fill:"#1A1A1A",fillOpacity:"0.5"}),(0,Be.jsx)("path",{d:"M11.986 7.19311C11.6084 7.13886 11.2579 7.40108 11.2036 7.77887C11.1125 8.41256 11.1561 8.10926 10.992 9.25089C10.9514 9.5333 10.6847 9.77247 10.3994 9.76605C10.0512 9.7582 9.7862 9.44773 9.83609 9.10052L9.9978 7.97551C10.0521 7.59772 9.78985 7.2474 9.41208 7.19313C9.03404 7.13848 8.68398 7.40108 8.62968 7.77885L8.46797 8.90384C8.38684 9.46832 8.55446 10.0393 8.92792 10.4702C9.36612 10.9759 10.0397 11.2326 10.7229 11.1233L10.6765 11.4461C10.5575 12.2741 9.94182 12.934 9.16047 13.1388C8.85729 13.2183 8.64681 13.4936 8.64681 13.807C8.64681 14.2577 9.07179 14.5908 9.50816 14.4778C10.8213 14.1377 11.8442 13.0374 12.0447 11.6427L12.5717 7.97546C12.6261 7.59769 12.3638 7.24743 11.986 7.19311Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),typography_line_height:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.79395 2.79297H13.9686",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.39683",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M2.79395 13.9688H13.9686",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.39683",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M6.76549 11.1773H5.58691L7.73276 5.08203H9.09586L11.2447 11.1773H10.0661L8.43812 6.33204H8.3905L6.76549 11.1773ZM6.80418 8.78741H10.0185V9.67432H6.80418V8.78741Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),typography_letter_spacing:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M3.11145 13.3268L3.11145 2.66016",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.33333",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M13.7776 13.3268L13.7776 2.66016",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.33333",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M6.90259 10.6658H5.77759L7.82588 4.84766H9.12702L11.1782 10.6658H10.0532L8.49918 6.04084H8.45372L6.90259 10.6658ZM6.93952 8.38459H10.0077V9.23118H6.93952V8.38459Z",fill:"#1A1A1A",fillOpacity:"0.5"})]})},x={font_family:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{d:"M4 5.5V4H12V5.5M6.5 12H9.5M8 4V12",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeLinecap:"round",strokeLinejoin:"round"})}),font_uppercase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.82694 12.5414C2.44987 12.5414 2.0728 12.8242 2.0728 13.2955C2.0728 13.7669 2.3556 14.0497 2.82694 14.0497V12.5414ZM8.48298 14.0497C8.86004 14.0497 9.23711 13.7669 9.23711 13.2955C9.23711 12.8242 8.95431 12.5414 8.48298 12.5414V14.0497ZM2.82694 14.0497H8.48298V12.6357H2.82694V14.0497Z",fill:"black"}),(0,Be.jsx)("path",{d:"M5.65496 5.75414L6.31483 5.47134C6.22057 5.18853 5.93776 5 5.65496 5C5.37216 5 5.08936 5.18853 4.99509 5.47134L5.65496 5.75414ZM0.281727 16.7834C0.0931921 17.1605 0.281727 17.5376 0.658796 17.7261C1.03587 17.9146 1.41293 17.7261 1.60147 17.349L0.281727 16.7834ZM9.70846 17.349C9.89699 17.7261 10.2741 17.9146 10.6511 17.7261C11.0282 17.5376 11.2167 17.1605 11.0282 16.7834L9.70846 17.349ZM4.99509 5.47134L0.281727 16.7834L1.60147 17.349L6.31483 6.03694L4.99509 5.47134ZM11.0282 16.7834L6.31483 5.47134L4.99509 6.03694L9.70846 17.349L11.0282 16.7834Z",fill:"black"}),(0,Be.jsx)("path",{d:"M14.873 12.5414C14.4959 12.5414 14.1188 12.8242 14.1188 13.2955C14.1188 13.7669 14.4016 14.0497 14.873 14.0497V12.5414ZM20.529 14.0497C20.9061 14.0497 21.2831 13.7669 21.2831 13.2955C21.2831 12.8242 21.0003 12.5414 20.529 12.5414V14.0497ZM14.873 14.0497H20.529V12.6357H14.873V14.0497Z",fill:"black"}),(0,Be.jsx)("path",{d:"M17.701 5.75414L18.3609 5.47134C18.2666 5.18853 17.9838 5 17.701 5C17.4182 5 17.1354 5.18853 17.0411 5.47134L17.701 5.75414ZM12.3278 16.7834C12.1392 17.1605 12.3278 17.5376 12.7048 17.7261C13.0819 17.9146 13.459 17.7261 13.6475 17.349L12.3278 16.7834ZM21.7545 17.349C21.943 17.7261 22.3201 17.9146 22.6972 17.7261C23.0742 17.5376 23.2628 17.1605 23.0742 16.7834L21.7545 17.349ZM17.0411 5.47134L12.3278 16.7834L13.6475 17.349L18.3609 6.03694L17.0411 5.47134ZM23.0742 16.7834L18.3609 5.47134L17.0411 6.03694L21.7545 17.349L23.0742 16.7834Z",fill:"black"})]}),font_underline:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M5.2229 12.6016H13.0917V13.3328H5.2229V12.6016Z",fill:"#1A1A1A",fillOpacity:"0.5"}),(0,Be.jsx)("path",{d:"M10.9094 3.33203H12.3224V8.42809C12.3224 8.98671 12.1904 9.47803 11.9263 9.90207C11.6648 10.3261 11.2966 10.6575 10.8218 10.8961C10.3469 11.1323 9.79214 11.2504 9.15735 11.2504C8.52003 11.2504 7.96396 11.1323 7.48914 10.8961C7.01432 10.6575 6.64614 10.3261 6.38461 9.90207C6.12308 9.47803 5.99231 8.98671 5.99231 8.42809V3.33203H7.40534V8.31002C7.40534 8.63503 7.47644 8.9245 7.61863 9.17841C7.76336 9.43233 7.96649 9.63165 8.22803 9.77638C8.48956 9.91857 8.79933 9.98967 9.15735 9.98967C9.51537 9.98967 9.82515 9.91857 10.0867 9.77638C10.3508 9.63165 10.5539 9.43233 10.6961 9.17841C10.8383 8.9245 10.9094 8.63503 10.9094 8.31002V3.33203Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),font_titlecase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M18 8.80001C19.8 8.80001 21.2 10.3 21.2 12H22.7C22.7 9.40001 20.6 7.20001 17.9 7.20001V8.80001H18ZM14.8 12C14.8 10.2 16.3 8.80001 18 8.80001V7.20001C15.4 7.20001 13.2 9.30001 13.2 12H14.8ZM18 15.2C16.2 15.2 14.8 13.7 14.8 12H13.3C13.3 14.6 15.4 16.8 18.1 16.8V15.2H18ZM18 16.8C20.6 16.8 22.8 14.7 22.8 12H21.3C21.3 13.8 19.8 15.2 18.1 15.2V16.8H18Z",fill:"black"}),(0,Be.jsx)("path",{d:"M4.00001 11.2C3.60001 11.2 3.20001 11.5 3.20001 12C3.20001 12.5 3.50001 12.8 4.00001 12.8V11.2ZM10 12.8C10.4 12.8 10.8 12.5 10.8 12C10.8 11.5 10.5 11.2 10 11.2V12.8ZM4.00001 12.8H10V11.3H4.00001V12.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M7.00002 4.00001L7.70002 3.70001C7.60002 3.40001 7.30002 3.20001 7.00002 3.20001C6.70002 3.20001 6.40002 3.40001 6.30002 3.70001L7.00002 4.00001ZM1.30002 15.7C1.10002 16.1 1.30002 16.5 1.70002 16.7C2.10002 16.9 2.50002 16.7 2.70002 16.3L1.30002 15.7ZM11.3 16.3C11.5 16.7 11.9 16.9 12.3 16.7C12.7 16.5 12.9 16.1 12.7 15.7L11.3 16.3ZM6.30002 3.70001L1.30002 15.7L2.70002 16.3L7.70002 4.30001L6.30002 3.70001ZM12.7 15.7L7.70002 3.70001L6.30002 4.30001L11.3 16.3L12.7 15.7Z",fill:"black"}),(0,Be.jsx)("path",{d:"M22 16.8C21.6 16.8 21.2 16.5 21.2 16V8.00001C21.2 7.60001 21.5 7.20001 22 7.20001C22.5 7.20001 22.8 7.50001 22.8 8.00001V16C22.8 16.4 22.4 16.8 22 16.8Z",fill:"black"})]}),font_strikethrough:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,Be.jsx)("path",{d:"M16.5504 7.44989C16.5504 4.93691 14.5132 2.89978 12.0003 2.89978C9.48727 2.89978 7.45014 4.93691 7.45014 7.44989C7.45014 9.96287 9.48727 12 12.0003 12C14.5132 12 16.5504 14.0371 16.5504 16.5501C16.5504 19.0631 14.5132 21.1002 12.0003 21.1002C9.48727 21.1002 7.45014 19.0631 7.45014 16.5501M4.82581 12H19.1747",stroke:"black",strokeWidth:"1.13281",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),font_lowercase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M18 8.79995C19.8 8.79995 21.2 10.3 21.2 12H22.7C22.7 9.39995 20.6 7.19995 17.9 7.19995V8.79995H18ZM14.8 12C14.8 10.2 16.3 8.79995 18 8.79995V7.19995C15.4 7.19995 13.2 9.29995 13.2 12H14.8ZM18 15.2C16.2 15.2 14.8 13.7 14.8 12H13.3C13.3 14.6 15.4 16.8 18.1 16.8V15.2H18ZM18 16.8C20.6 16.8 22.7999 14.7 22.7999 12H21.2999C21.2999 13.8 19.8 15.2 18.1 15.2V16.8H18Z",fill:"black"}),(0,Be.jsx)("path",{d:"M21.9999 16.8C21.5999 16.8 21.1999 16.5 21.1999 16V7.99995C21.1999 7.59995 21.4999 7.19995 21.9999 7.19995C22.4999 7.19995 22.7999 7.49995 22.7999 7.99995V16C22.7999 16.4 22.3999 16.8 21.9999 16.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M6.8 8.79995C8.6 8.79995 10 10.3 10 12H11.5C11.5 9.39995 9.4 7.19995 6.7 7.19995V8.79995H6.8ZM3.6 12C3.6 10.2 5.1 8.79995 6.8 8.79995V7.19995C4.2 7.19995 2 9.29995 2 12H3.6ZM6.8 15.2C5 15.2 3.6 13.7 3.6 12H2.1C2.1 14.6 4.2 16.8 6.9 16.8V15.2H6.8ZM6.8 16.8C9.4 16.8 11.6 14.7 11.6 12H10.1C10.1 13.8 8.6 15.2 6.9 15.2V16.8H6.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M10.8 16.8C10.4 16.8 9.99999 16.5 9.99999 16V7.99995C9.99999 7.59995 10.3 7.19995 10.8 7.19995C11.3 7.19995 11.6 7.49995 11.6 7.99995V16C11.6 16.4 11.2 16.8 10.8 16.8Z",fill:"black"})]})},f=()=>(0,Be.jsxs)("div",{className:"kit-type-flex",children:[(0,Be.jsxs)("div",{className:"wkit-import-type "+("standard"==s?"wkit-selected-type":""),onClick:()=>{n("standard")},children:[(0,Be.jsx)("div",{className:"wkit-import-type-select",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:(0,Be.jsx)("path",{d:"M14.2223 1.33331L5.66672 9.88887L1.77783 5.99998",stroke:"white",strokeWidth:"2.66667",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-import-option",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.199463 4.63146C0.199463 2.61239 1.83624 0.975616 3.85531 0.975616H20.5904C22.6094 0.975616 24.2462 2.61239 24.2462 4.63146V8.11793V21.3665C24.2462 23.3856 22.6094 25.0224 20.5904 25.0224H3.85531C1.83624 25.0224 0.199463 23.3856 0.199463 21.3665V8.11793V4.63146ZM3.85531 2.70895C2.79353 2.70895 1.9328 3.56969 1.9328 4.63146V7.25127H22.5129V4.63146C22.5129 3.56969 21.6521 2.70895 20.5904 2.70895H3.85531ZM22.5129 8.9846H1.9328V21.3665C1.9328 22.4283 2.79353 23.289 3.85531 23.289H20.5904C21.6521 23.289 22.5129 22.4283 22.5129 21.3665V8.9846ZM2.98864 12.999C2.98864 12.5203 3.37666 12.1323 3.85531 12.1323L20.5904 12.1323C21.069 12.1323 21.457 12.5203 21.457 12.999C21.457 13.4776 21.069 13.8657 20.5904 13.8657L3.85531 13.8657C3.37666 13.8657 2.98864 13.4776 2.98864 12.999ZM3.86398 5.3264C3.86398 4.9413 4.17617 4.62911 4.56128 4.62911C4.94638 4.62911 5.25857 4.9413 5.25857 5.3264C5.25857 5.71151 4.94638 6.0237 4.56128 6.0237C4.17617 6.0237 3.86398 5.71151 3.86398 5.3264ZM7.35034 4.63021C6.96523 4.63021 6.65304 4.9424 6.65304 5.3275C6.65304 5.71261 6.96523 6.0248 7.35034 6.0248C7.73544 6.0248 8.04763 5.71261 8.04763 5.3275C8.04763 4.9424 7.73544 4.63021 7.35034 4.63021ZM4.7356 16.1365C4.25422 16.1365 3.86398 16.5268 3.86398 17.0081V18.7514C3.86398 19.2327 4.25422 19.623 4.7356 19.623H6.47884C6.96022 19.623 7.35045 19.2327 7.35045 18.7514V17.0081C7.35045 16.5268 6.96022 16.1365 6.47884 16.1365H4.7356ZM11.3308 16.1365C10.8495 16.1365 10.4592 16.5268 10.4592 17.0081V18.7514C10.4592 19.2327 10.8495 19.623 11.3308 19.623H13.0741C13.5555 19.623 13.9457 19.2327 13.9457 18.7514V17.0081C13.9457 16.5268 13.5555 16.1365 13.0741 16.1365H11.3308ZM17.1126 17.0081C17.1126 16.5268 17.5028 16.1365 17.9842 16.1365H19.7274C20.2088 16.1365 20.599 16.5268 20.599 17.0081V18.7514C20.599 19.2327 20.2088 19.623 19.7274 19.623H17.9842C17.5028 19.623 17.1126 19.2327 17.1126 18.7514V17.0081ZM10.1348 4.63021C9.74974 4.63021 9.43755 4.9424 9.43755 5.3275C9.43755 5.71261 9.74974 6.0248 10.1348 6.0248C10.5199 6.0248 10.8321 5.71261 10.8321 5.3275C10.8321 4.9424 10.5199 4.63021 10.1348 4.63021Z",fill:"#040483"})}),(0,Be.jsx)("span",{className:"wkit-import-opt-title",children:(0,a.__)("Standard Style","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-import-opt-desc",children:(0,a.__)("Standard Import","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-import-type "+("global"==s?"wkit-selected-type":""),onClick:()=>{n("global")},children:[(0,Be.jsx)("div",{className:"wkit-import-type-select",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:(0,Be.jsx)("path",{d:"M14.2223 1.33331L5.66672 9.88887L1.77783 5.99998",stroke:"white",strokeWidth:"2.66667",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-import-option",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,Be.jsx)("path",{d:"M16.0001 29.3333C23.3639 29.3333 29.3334 23.3638 29.3334 16C29.3334 8.63619 23.3639 2.66666 16.0001 2.66666C8.63628 2.66666 2.66675 8.63619 2.66675 16C2.66675 23.3638 8.63628 29.3333 16.0001 29.3333Z",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M2.66675 16H29.3334",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M16.0001 2.66666C19.3351 6.31779 21.2304 11.056 21.3334 16C21.2304 20.9439 19.3351 25.6822 16.0001 29.3333C12.665 25.6822 10.7697 20.9439 10.6667 16C10.7697 11.056 12.665 6.31779 16.0001 2.66666Z",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("span",{className:"wkit-import-opt-title",children:(0,a.__)("Global Style","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-import-opt-desc",children:(0,a.__)("Import with Global Color","wdesignkit")})]})]})]}),j=(e,t)=>{let i=t?.length>0?t:[];return(0,Be.jsx)("div",{className:"wkit-show-global-list",children:i.map(((t,i)=>{let s=k?.[e]?.findIndex((e=>e?.temp_id==t?._id));if("color"==e)return(0,Be.jsxs)("button",{className:"wkit-show-global-card "+(s>-1?"wkit-selected_value":""),disabled:u?.[e],onClick:()=>{o("inner"),g({value:t,type:e})},children:[s>-1&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsx)("span",{className:"wkit-global-card-tooltip",children:t.title}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:t.color}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:t.color})]})]},i);if("typography"==e){let n=t?.typography_font_family?t.typography_font_family:"",l=t?.typography_font_size?t.typography_font_size:"",r=l?l.size+l.unit+" - ":"",d=t?.typography_font_weight?t.typography_font_weight:"",c=r+d;return(0,Be.jsxs)("button",{className:"wkit-show-global-card "+(s>-1?"wkit-selected_value":""),disabled:u?.[e],onClick:()=>{o("inner"),g({value:t,type:e})},children:[s>-1&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsx)("span",{className:"wkit-global-card-tooltip",children:t.title}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:n,fontWeight:d},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:c})]})]},i)}}))})},y=async()=>{var e={color:[],typography:[]};if(Object.entries(i).length>0){var n={color:[],typography:[]};Object.entries(i).map((([t,a])=>{let i=d?.[t]?d[t]:[],l=k?.[t]?k[t]:[],r=[];a.length>0&&a.map((a=>{let n=a?._id?a._id:"",o=i.findIndex((e=>e?._id==n)),d=l.findIndex((e=>e?.temp_id==n));if(d>-1)var c={status:"update",temp_id:a?._id,site_id:l[d]?.site_id};else o>-1?c={status:"done",temp_id:a?._id}:"standard"==s?c={status:"remove",temp_id:a?._id,data:a}:"global"==s&&e?.[t]&&e?.[t].push(a);r.push(c)})),Object.assign(n,{[t]:r})}));let r=e?.color?.length>0?e.color:[],o=e?.typography?.length>0?e.typography:[];if(r.length>0||o.length>0){let e=[],i=[];if(r.length>0){let t=d?.color?d.color:[];r.map((a=>{t.findIndex((e=>e?._id==a?._id))<0&&e.push(a)}))}if(o.length>0){let e=d?.typography?d.typography:[];o.map((t=>{e.findIndex((e=>e?._id==t?._id))<0&&i.push(t)}))}if((e.length>0||i.length>0)&&1==window.confirm((0,a.__)("The global color and typography you haven't selected will be added as new in your site. Do you want to proceed ?","wdesignkit"))){let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","update_global_val"),a.append("builder","elementor"),a.append("g_color",JSON.stringify(e)),a.append("g_typography",JSON.stringify(i)),await l().post(ajaxurl,a).then((e=>{console.log(e)})),await t.import_template(n)}}else t.import_template(n)}},$=()=>{if("global"==r)var e=(0,a.__)("Import","wdesignkit");else"standard"==s?e=(0,a.__)("Import","wdesignkit"):"global"==s&&(e=(0,a.__)("Next","wdesignkit"));if("inner"!=r)return(0,Be.jsxs)("div",{className:"wkit-next-step-second wkit-global-step-notice",children:[(0,Be.jsx)("div",{className:"wkit-remove-plugin-notice",children:(0,Be.jsxs)("span",{className:"wkit-notice-text",children:[(0,Be.jsx)("b",{className:"wkit-bold-text",children:(0,a.__)("Note:","wdesignkit")}),(0,a.__)("This will apply universal design elements, including typography, colors, spacing, and component styling, across all projects. Ensure compatibility with existing styles to maintain design consistency.","wdesignkit")]})}),(0,Be.jsx)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{(()=>{if("global"==r)y();else if("standard"==s)y();else if("global"==s){o(s);let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","get_global_val"),e.append("builder","elementor"),l().post(ajaxurl,e).then((async e=>{e?.data?.success&&e?.data?.data&&c(e.data.data)}))}})()},disabled:p.color||p.typography,children:e})]})},N=e=>{let t=m?.type?m.type:"",a=m?.value?m.value:"",i=k?.[t]?k?.[t]:[],s=i.findIndex((e=>e.temp_id==a?._id));s>-1?i.splice(s,1,{temp_id:a?._id,site_id:e._id}):i.push({temp_id:a?._id,site_id:e._id});let n=Object.assign({},k,{[t]:i});v(n)};return(0,Be.jsxs)(Ee,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Import Templates","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:["select"==r&&(0,Be.jsx)(f,{}),"global"==r&&(0,Be.jsx)("div",{className:"kit-type-flex",children:(0,Be.jsx)("div",{className:"wkit-show-global",children:i&&Object.values(i).length>0&&Object.entries(i).map((([e,t],s)=>{if(t?.length>0)return(0,Be.jsxs)("div",{className:"wkit-show-global-color",children:[(0,Be.jsxs)("div",{className:"wkit-show-global-header",children:[(0,Be.jsxs)("div",{className:"wkit-show-global-txt",children:[(0,Be.jsx)("span",{className:"wkit-show-global-title",children:(0,a.__)(`Global ${e}`,"wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-show-global-desc",children:(0,a.__)(`Total  global ${e} we found from Template`,"wdesignkit")})]}),u?.[e]?(0,Be.jsxs)("span",{className:"wkit-global-added",children:[(0,Be.jsxs)("svg",{className:"wkit-global-success-svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M9.24735 0.0195866C7.79655 0.156374 6.69379 0.465122 5.48936 1.07089C3.9017 1.86425 2.43135 3.21257 1.46546 4.76021C0.76548 5.87796 0.257115 7.32008 0.0498588 8.7661C-0.0166196 9.22727 -0.0166196 10.7671 0.0498588 11.2283C0.2141 12.3812 0.519118 13.3895 0.996199 14.3548C1.53194 15.4491 2.05985 16.1838 2.92798 17.0554C3.7922 17.9152 4.53911 18.4506 5.59103 18.9665C6.3262 19.326 6.79938 19.5019 7.54628 19.6895C9.50153 20.1819 11.4646 20.0881 13.3729 19.412C13.9595 19.2049 14.9684 18.6968 15.4846 18.3529C16.6656 17.5634 17.7253 16.477 18.4918 15.2732C18.7733 14.8316 19.2269 13.8936 19.4107 13.3739C20.3297 10.7866 20.1694 8.01182 18.961 5.58484C18.4761 4.60779 17.9326 3.83788 17.17 3.05234C16.3332 2.18472 15.4885 1.57114 14.3896 1.0279C13.2321 0.457304 12.1528 0.148558 10.8702 0.031311C10.4713 -0.00386238 9.56801 -0.0116787 9.24735 0.0195866Z",fill:"#14C38E"}),(0,Be.jsx)("path",{d:"M13.8261 6.73158C13.7733 6.75427 12.4461 8.05869 10.8776 9.63534L8.01967 12.4975L6.95643 11.4313C5.80646 10.2819 5.79892 10.2781 5.46712 10.3424C5.28238 10.3764 5.05615 10.6033 5.02222 10.7885C4.95812 11.1288 4.9355 11.1023 6.39087 12.5618C7.84624 14.0212 7.81607 13.9985 8.15918 13.9343C8.28737 13.9116 8.65687 13.5562 11.4432 10.7658C13.7243 8.47837 14.5914 7.58607 14.6216 7.49155C14.7046 7.23822 14.6141 6.966 14.3841 6.79586C14.2672 6.70889 13.9656 6.67487 13.8261 6.73158Z",fill:"white"})]}),(0,a.__)(`${t.length} new global color added successfully to your style.`,"wdesignkit")]}):p?.[e]?(0,Be.jsx)("div",{className:"wkit-global-submit-btn wkit-outer-btn-class",children:(0,Be.jsxs)("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",children:[(0,Be.jsx)("path",{d:"M4.73221 20.7144C6.1457 20.7144 7.29156 19.5686 7.29156 18.1551C7.29156 16.7416 6.1457 15.5957 4.73221 15.5957C3.31871 15.5957 2.17285 16.7416 2.17285 18.1551C2.17285 19.5686 3.31871 20.7144 4.73221 20.7144Z",fill:"#040483"}),(0,Be.jsx)("path",{d:"M21.1989 18.4446C22.4257 18.4446 23.4202 17.4501 23.4202 16.2233C23.4202 14.9965 22.4257 14.002 21.1989 14.002C19.9721 14.002 18.9775 14.9965 18.9775 16.2233C18.9775 17.4501 19.9721 18.4446 21.1989 18.4446Z",fill:"#B1B1D9"}),(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("path",{d:"M16.8642 22.9429C18.1597 22.9429 19.2099 21.9204 19.2099 20.659C19.2099 19.3976 18.1597 18.375 16.8642 18.375C15.5687 18.375 14.5186 19.3976 14.5186 20.659C14.5186 21.9204 15.5687 22.9429 16.8642 22.9429Z",fill:"#B1B1D9"}),(0,Be.jsx)("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,Be.jsx)("path",{d:"M21.9005 12.5103C23.0596 12.5103 23.9993 11.5881 23.9993 10.4505C23.9993 9.31285 23.0596 8.39062 21.9005 8.39062C20.7414 8.39062 19.8018 9.31285 19.8018 10.4505C19.8018 11.5881 20.7414 12.5103 21.9005 12.5103Z",fill:"#B1B1D9"}),(0,Be.jsx)("path",{d:"M12.7 5.98793C14.3535 5.98793 15.694 4.64748 15.694 2.99396C15.694 1.34044 14.3535 0 12.7 0C11.0465 0 9.70605 1.34044 9.70605 2.99396C9.70605 4.64748 11.0465 5.98793 12.7 5.98793Z",fill:"#040483"})]})}):(0,Be.jsx)("div",{className:"wkit-global-submit-btn wkit-outer-btn-class",onClick:()=>{(e=>{w((t=>({...t,[e]:!0})));let t=i?.[e]?i?.[e]:[],a=d?.[e]?d[e]:[],s=[];t.length>0&&t.map((e=>{a.findIndex((t=>t?._id==e?._id))<0&&s.push(e)}));let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","update_global_val"),n.append("builder","elementor"),n.append("g_"+[e],JSON.stringify(s)),l().post(ajaxurl,n).then((async t=>{t?.data?.success?(w((t=>({...t,[e]:!1}))),h((t=>({...t,[e]:!0}))),s.length>0&&(s.map((e=>{a.push(e)})),c((t=>({...t,[e]:a}))))):w((t=>({...t,[e]:!1})))}))})(e)},children:(0,a.__)(`Add missing ${t.length} global ${e}`,"wdesignkit")})]}),j(e,t)]},s)}))})}),"inner"==r&&m&&(()=>{let e=m?.type?m.type:"",t=m?.value?m.value:"",s=m?.value?.typography_font_family?m?.value.typography_font_family:"",n=m?.value?.typography_font_size?m?.value.typography_font_size:"",l=n?n.size+n.unit+" - ":"",r=m?.value?.typography_font_weight?m?.value.typography_font_weight:"",c=l+r;return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-inner-popup-body",onClick:e=>{e.target.closest(".wkit-select-global-header")||C(!1)},children:[(0,Be.jsxs)("div",{className:"wkit-selected-global-value",children:[(0,Be.jsx)("span",{className:"wkit-selected-title",children:t.title}),"color"==e&&(0,Be.jsxs)("div",{className:"wkit-select-global-dpr",children:[(0,Be.jsxs)("div",{className:"wkit-select-global-header",onClick:()=>{C(!_)},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:t.color}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:t.color}),(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M2.5 3.75L5 6.25L7.5 3.75",stroke:"#040483",strokeWidth:"0.625",strokeLinecap:"round",strokeLinejoin:"round"})})]}),_&&(0,Be.jsx)("div",{className:"wkit-select-global-body",children:i.color.map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-select-body-cn",onClick:()=>{g({value:e,type:"color"})},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:e.color}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:e.color})]},t)))})]}),"typography"==e&&(0,Be.jsxs)("div",{className:"wkit-select-global-dpr",children:[(0,Be.jsxs)("div",{className:"wkit-select-global-header",onClick:()=>{C(!_)},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:s,fontWeight:r},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:c}),(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M2.5 3.75L5 6.25L7.5 3.75",stroke:"#040483",strokeWidth:"0.625",strokeLinecap:"round",strokeLinejoin:"round"})})]}),_&&(0,Be.jsx)("div",{className:"wkit-select-global-body",children:i.typography.map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-select-body-cn",onClick:()=>{g({value:e,type:"typography"})},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:e.typography_font_family,fontWeight:e.typography_font_weight},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:e.typography_font_size?.size+e.typography_font_size?.unit+" - "+e.typography_font_weight})]},t)))})]})]}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:`wkit-global-${e}-options`,children:d?.[e]?.length>0&&d[e].map(((a,i)=>{let s=k?.[e]?.findIndex((e=>e?.temp_id==t?._id));if(s>-1)var n=k?.[e]?.[s]?.site_id;return"color"==e?(0,Be.jsxs)("div",{className:"wkit-show-global-card "+(n==a?._id?"wkit-selected_value":""),onClick:()=>{N(a)},children:[n==a?._id&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:a.color}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:a.color})]})]},i):"typography"==e?(0,Be.jsxs)("div",{className:"wkit-show-global-card "+(n==a?._id?"wkit-selected_value":""),onClick:()=>{N(a)},children:[n==a?._id&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsxs)("div",{className:"wkit-global-typo-fontfamily",children:[x.font_family,(0,Be.jsx)("span",{style:{fontFamily:a.typography_font_family},children:a.typography_font_family})]}),(0,Be.jsx)("div",{className:"wkit-global-card-typo",children:Object.entries(b).map((([e,t],i)=>(0,Be.jsxs)("div",{className:"wkit-typo-detail",children:[t,(0,Be.jsx)(Be.Fragment,{children:"string"==typeof a?.[e]?(0,Be.jsx)("span",{children:a?.[e]}):"object"==typeof a?.[e]?(0,Be.jsx)("span",{children:a?.[e].size+""+a?.[e].unit}):(0,Be.jsx)("span",{children:"NaN"})})]},i)))})]},i):void 0}))})]}),(()=>{let i=k?.[e]?k[e]:[],n=i.findIndex((e=>e.temp_id==t._id));if(n>-1){let t=i[n]?.site_id,a=d?.[e]?d[e]:[],s=a.findIndex((e=>e._id==t));var l=a?.[s]?a?.[s]:""}return(0,Be.jsxs)("div",{className:"wkit-inner-popup-footer",children:["typography"==e&&(0,Be.jsx)("div",{className:"wkit-global-replace-data",children:l&&(0,Be.jsxs)("div",{className:"wkit-popup-submit-btn",children:[(0,Be.jsxs)("div",{className:"wkit-global-replace-val",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:s,fontWeight:r},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:c})]}),(0,Be.jsx)("span",{className:"wkit-replace-global-txt",children:(0,a.__)("Replace with","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-global-site-val",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:l.typography_font_family,fontWeight:l.typography_font_weight},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:l.typography_font_size?.size+l.typography_font_size?.unit+" - "+l.typography_font_weight})]})]})}),"color"==e&&(0,Be.jsx)("div",{className:"wkit-global-replace-data",children:l&&(0,Be.jsxs)("div",{className:"wkit-popup-submit-btn",children:[(0,Be.jsxs)("div",{className:"wkit-global-replace-val",children:[(0,Be.jsx)("span",{className:"wkit-selected-color-box",style:{background:t.color}}),(0,Be.jsx)("span",{className:"wkit-selected-color-txt",children:t.color})]}),(0,Be.jsx)("span",{className:"wkit-replace-global-txt",children:(0,a.__)("Replace with","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-global-site-val",children:[(0,Be.jsx)("span",{className:"wkit-replace-color-box",style:{background:l.color}}),(0,Be.jsx)("span",{className:"wkit-replace-color-txt",children:l.color})]})]})}),(0,Be.jsx)("div",{className:"wkit-global-inner-back",children:(0,Be.jsx)("button",{className:"wkit-outer-btn-class",onClick:e=>{o("global")},children:(0,a.__)("Back","wdesignkit")})})]})})()]})})(),(0,Be.jsx)($,{})]})]})},Ae=(e,t)=>{"string"==typeof e&&(e=JSON.parse(e));const a=e=>{if(Array.isArray(e))return e.map(a);if("object"==typeof e&&null!==e){let i={...e};i.__globals__&&Object.entries(i.__globals__).map((([e,t])=>"string"==typeof t?[e,t]:null)).filter(Boolean).map((([e,a])=>{if(a.includes("globals/typography")){let s=a.split("id=")[1],n=t?.typography?.length>0?t.typography:[],l=n.findIndex((e=>e?.temp_id==s));if(l>-1){let t=n[l];if("remove"==t.status&&t?.data){let a=t.data;Object.entries(a).map((([t,a])=>{if("_id"!=t&&"title"!=t){let s=e.replaceAll("typography_typography",t);Object.assign(i,{[s]:a})}})),delete i.__globals__[e]}else if("update"==t.status&&t?.site_id){let n=t.site_id,l=a.replaceAll(s,n);Object.assign(i.__globals__,{[e]:l})}}}else if(a.includes("globals/colors")){let s=a.split("id=")[1],n=t?.color?.length>0?t.color:[],l=n.findIndex((e=>e?.temp_id==s));if(l>-1){let t=n[l];if("remove"==t.status&&t?.data){let a=t.data;Object.assign(i,{[e]:a.color}),delete i.__globals__[e]}else if("update"==t.status&&t?.site_id){let n=t.site_id,l=a.replaceAll(s,n);Object.assign(i.__globals__,{[e]:l})}}}}));for(const e in i)i[e]=a(i[e]);return i}return e};return a(e)},{Fragment:Te}=wp.element,Pe=t=>{var i=t.template_global;Object.entries(i).map((([e,t])=>{let a=(i?.[e]?i[e]:[]).filter(((e,t,a)=>a.findIndex((t=>t.id===e.id))===t));Object.assign(i,{[e]:a})}));const[s,n]=(0,e.useState)("standard"),[r,o]=(0,e.useState)("select"),[d,c]=(0,e.useState)(),[p,w]=(0,e.useState)({color:!1,typography:!1}),[m,g]=(0,e.useState)(),[u,h]=(0,e.useState)(),[_,C]=(0,e.useState)(p),[k,v]=(0,e.useState)(!1),[b,x]=(0,e.useState)([]),[f,j]=(0,e.useState)(!1),[y,$]=(0,e.useState)(""),[N,L]=(0,e.useState)(!1),[M,H]=(0,e.useState)(""),[V,D]=(0,e.useState)(),S=(0,e.useRef)();(0,e.useEffect)((()=>{y&&(()=>{const e=setInterval((()=>{(()=>{if(S.current&&S.current.contentWindow){const e=S.current.contentDocument||S.current.contentWindow.document,t=e.querySelector(".editor-post-publish-button.editor-post-publish-button__button");if(t){let a=e.querySelector(".components-button.is-next-40px-default-size.is-tertiary"),i=e.querySelector(".components-button.is-next-40px-default-size.is-primary");return a?(a.click(),i.click()):i&&i.click(),setTimeout((()=>{t.click()}),500),setTimeout((()=>{(()=>{const e=setInterval((()=>{!(S.current.contentDocument||S.current.contentWindow.document).querySelector(".editor-post-publish-button.editor-post-publish-button__button.is-busy")&&(j(!1),L(!0),B(),1)&&clearInterval(e)}),500)})()}),1e3),!0}}return!1})()&&clearInterval(e)}),500)})()}),[y]);const Z={font_size:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:(0,Be.jsx)("path",{d:"M13.6781 4.56424L11.9776 2.29688L10.2771 4.56424H11.4107V6.8316H10.2771L11.9776 9.09896L13.6781 6.8316H12.5444V4.56424H13.6781ZM6.4832 3.43056L3.08215 12.5H4.29349L5.35632 9.6658H8.96312L10.0259 12.5H11.2373L7.83624 3.43056H6.4832ZM5.78088 8.53212L7.15943 4.85616L8.53799 8.53212H5.78088Z",fill:"#1A1A1A",fillOpacity:"0.5"})}),font_weight:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M10.1623 3.65077C10.1623 2.46483 9.19743 1.5 8.01147 1.5H7.95052C7.56883 1.5 7.25943 1.80943 7.25943 2.19109C7.25943 2.57276 7.56885 2.88219 7.95052 2.88219H8.01147C8.43527 2.88219 8.78005 3.22694 8.78005 3.65074C8.78005 4.07455 8.43527 4.41933 8.01147 4.41933H4.11211C3.73042 4.41933 3.42102 4.72876 3.42102 5.11045C3.42102 5.49214 3.73045 5.80154 4.11211 5.80154H5.96363L5.29532 10.3101C5.24103 10.6879 5.50327 11.0381 5.88109 11.0925C5.91443 11.0973 5.94754 11.0996 5.98027 11.0996C6.3184 11.0996 6.61399 10.8511 6.66349 10.5067L7.36004 5.80157H8.01147C9.19743 5.80157 10.1623 4.83671 10.1623 3.65077Z",fill:"#1A1A1A",fillOpacity:"0.5"}),(0,Be.jsx)("path",{d:"M11.986 7.19311C11.6084 7.13886 11.2579 7.40108 11.2036 7.77887C11.1125 8.41256 11.1561 8.10926 10.992 9.25089C10.9514 9.5333 10.6847 9.77247 10.3994 9.76605C10.0512 9.7582 9.7862 9.44773 9.83609 9.10052L9.9978 7.97551C10.0521 7.59772 9.78985 7.2474 9.41208 7.19313C9.03404 7.13848 8.68398 7.40108 8.62968 7.77885L8.46797 8.90384C8.38684 9.46832 8.55446 10.0393 8.92792 10.4702C9.36612 10.9759 10.0397 11.2326 10.7229 11.1233L10.6765 11.4461C10.5575 12.2741 9.94182 12.934 9.16047 13.1388C8.85729 13.2183 8.64681 13.4936 8.64681 13.807C8.64681 14.2577 9.07179 14.5908 9.50816 14.4778C10.8213 14.1377 11.8442 13.0374 12.0447 11.6427L12.5717 7.97546C12.6261 7.59769 12.3638 7.24743 11.986 7.19311Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),line_height:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.79395 2.79297H13.9686",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.39683",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M2.79395 13.9688H13.9686",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.39683",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M6.76549 11.1773H5.58691L7.73276 5.08203H9.09586L11.2447 11.1773H10.0661L8.43812 6.33204H8.3905L6.76549 11.1773ZM6.80418 8.78741H10.0185V9.67432H6.80418V8.78741Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),letter_spacing:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M3.11145 13.3268L3.11145 2.66016",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.33333",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M13.7776 13.3268L13.7776 2.66016",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeWidth:"1.33333",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M6.90259 10.6658H5.77759L7.82588 4.84766H9.12702L11.1782 10.6658H10.0532L8.49918 6.04084H8.45372L6.90259 10.6658ZM6.93952 8.38459H10.0077V9.23118H6.93952V8.38459Z",fill:"#1A1A1A",fillOpacity:"0.5"})]})},R={font_family:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{d:"M4 5.5V4H12V5.5M6.5 12H9.5M8 4V12",stroke:"#1A1A1A",strokeOpacity:"0.5",strokeLinecap:"round",strokeLinejoin:"round"})}),font_uppercase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.82694 12.5414C2.44987 12.5414 2.0728 12.8242 2.0728 13.2955C2.0728 13.7669 2.3556 14.0497 2.82694 14.0497V12.5414ZM8.48298 14.0497C8.86004 14.0497 9.23711 13.7669 9.23711 13.2955C9.23711 12.8242 8.95431 12.5414 8.48298 12.5414V14.0497ZM2.82694 14.0497H8.48298V12.6357H2.82694V14.0497Z",fill:"black"}),(0,Be.jsx)("path",{d:"M5.65496 5.75414L6.31483 5.47134C6.22057 5.18853 5.93776 5 5.65496 5C5.37216 5 5.08936 5.18853 4.99509 5.47134L5.65496 5.75414ZM0.281727 16.7834C0.0931921 17.1605 0.281727 17.5376 0.658796 17.7261C1.03587 17.9146 1.41293 17.7261 1.60147 17.349L0.281727 16.7834ZM9.70846 17.349C9.89699 17.7261 10.2741 17.9146 10.6511 17.7261C11.0282 17.5376 11.2167 17.1605 11.0282 16.7834L9.70846 17.349ZM4.99509 5.47134L0.281727 16.7834L1.60147 17.349L6.31483 6.03694L4.99509 5.47134ZM11.0282 16.7834L6.31483 5.47134L4.99509 6.03694L9.70846 17.349L11.0282 16.7834Z",fill:"black"}),(0,Be.jsx)("path",{d:"M14.873 12.5414C14.4959 12.5414 14.1188 12.8242 14.1188 13.2955C14.1188 13.7669 14.4016 14.0497 14.873 14.0497V12.5414ZM20.529 14.0497C20.9061 14.0497 21.2831 13.7669 21.2831 13.2955C21.2831 12.8242 21.0003 12.5414 20.529 12.5414V14.0497ZM14.873 14.0497H20.529V12.6357H14.873V14.0497Z",fill:"black"}),(0,Be.jsx)("path",{d:"M17.701 5.75414L18.3609 5.47134C18.2666 5.18853 17.9838 5 17.701 5C17.4182 5 17.1354 5.18853 17.0411 5.47134L17.701 5.75414ZM12.3278 16.7834C12.1392 17.1605 12.3278 17.5376 12.7048 17.7261C13.0819 17.9146 13.459 17.7261 13.6475 17.349L12.3278 16.7834ZM21.7545 17.349C21.943 17.7261 22.3201 17.9146 22.6972 17.7261C23.0742 17.5376 23.2628 17.1605 23.0742 16.7834L21.7545 17.349ZM17.0411 5.47134L12.3278 16.7834L13.6475 17.349L18.3609 6.03694L17.0411 5.47134ZM23.0742 16.7834L18.3609 5.47134L17.0411 6.03694L21.7545 17.349L23.0742 16.7834Z",fill:"black"})]}),font_underline:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M5.2229 12.6016H13.0917V13.3328H5.2229V12.6016Z",fill:"#1A1A1A",fillOpacity:"0.5"}),(0,Be.jsx)("path",{d:"M10.9094 3.33203H12.3224V8.42809C12.3224 8.98671 12.1904 9.47803 11.9263 9.90207C11.6648 10.3261 11.2966 10.6575 10.8218 10.8961C10.3469 11.1323 9.79214 11.2504 9.15735 11.2504C8.52003 11.2504 7.96396 11.1323 7.48914 10.8961C7.01432 10.6575 6.64614 10.3261 6.38461 9.90207C6.12308 9.47803 5.99231 8.98671 5.99231 8.42809V3.33203H7.40534V8.31002C7.40534 8.63503 7.47644 8.9245 7.61863 9.17841C7.76336 9.43233 7.96649 9.63165 8.22803 9.77638C8.48956 9.91857 8.79933 9.98967 9.15735 9.98967C9.51537 9.98967 9.82515 9.91857 10.0867 9.77638C10.3508 9.63165 10.5539 9.43233 10.6961 9.17841C10.8383 8.9245 10.9094 8.63503 10.9094 8.31002V3.33203Z",fill:"#1A1A1A",fillOpacity:"0.5"})]}),font_titlecase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M18 8.80001C19.8 8.80001 21.2 10.3 21.2 12H22.7C22.7 9.40001 20.6 7.20001 17.9 7.20001V8.80001H18ZM14.8 12C14.8 10.2 16.3 8.80001 18 8.80001V7.20001C15.4 7.20001 13.2 9.30001 13.2 12H14.8ZM18 15.2C16.2 15.2 14.8 13.7 14.8 12H13.3C13.3 14.6 15.4 16.8 18.1 16.8V15.2H18ZM18 16.8C20.6 16.8 22.8 14.7 22.8 12H21.3C21.3 13.8 19.8 15.2 18.1 15.2V16.8H18Z",fill:"black"}),(0,Be.jsx)("path",{d:"M4.00001 11.2C3.60001 11.2 3.20001 11.5 3.20001 12C3.20001 12.5 3.50001 12.8 4.00001 12.8V11.2ZM10 12.8C10.4 12.8 10.8 12.5 10.8 12C10.8 11.5 10.5 11.2 10 11.2V12.8ZM4.00001 12.8H10V11.3H4.00001V12.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M7.00002 4.00001L7.70002 3.70001C7.60002 3.40001 7.30002 3.20001 7.00002 3.20001C6.70002 3.20001 6.40002 3.40001 6.30002 3.70001L7.00002 4.00001ZM1.30002 15.7C1.10002 16.1 1.30002 16.5 1.70002 16.7C2.10002 16.9 2.50002 16.7 2.70002 16.3L1.30002 15.7ZM11.3 16.3C11.5 16.7 11.9 16.9 12.3 16.7C12.7 16.5 12.9 16.1 12.7 15.7L11.3 16.3ZM6.30002 3.70001L1.30002 15.7L2.70002 16.3L7.70002 4.30001L6.30002 3.70001ZM12.7 15.7L7.70002 3.70001L6.30002 4.30001L11.3 16.3L12.7 15.7Z",fill:"black"}),(0,Be.jsx)("path",{d:"M22 16.8C21.6 16.8 21.2 16.5 21.2 16V8.00001C21.2 7.60001 21.5 7.20001 22 7.20001C22.5 7.20001 22.8 7.50001 22.8 8.00001V16C22.8 16.4 22.4 16.8 22 16.8Z",fill:"black"})]}),font_strikethrough:(0,Be.jsx)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,Be.jsx)("path",{d:"M16.5504 7.44989C16.5504 4.93691 14.5132 2.89978 12.0003 2.89978C9.48727 2.89978 7.45014 4.93691 7.45014 7.44989C7.45014 9.96287 9.48727 12 12.0003 12C14.5132 12 16.5504 14.0371 16.5504 16.5501C16.5504 19.0631 14.5132 21.1002 12.0003 21.1002C9.48727 21.1002 7.45014 19.0631 7.45014 16.5501M4.82581 12H19.1747",stroke:"black",strokeWidth:"1.13281",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),font_lowercase:(0,Be.jsxs)("svg",{className:"wkit-typo-icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M18 8.79995C19.8 8.79995 21.2 10.3 21.2 12H22.7C22.7 9.39995 20.6 7.19995 17.9 7.19995V8.79995H18ZM14.8 12C14.8 10.2 16.3 8.79995 18 8.79995V7.19995C15.4 7.19995 13.2 9.29995 13.2 12H14.8ZM18 15.2C16.2 15.2 14.8 13.7 14.8 12H13.3C13.3 14.6 15.4 16.8 18.1 16.8V15.2H18ZM18 16.8C20.6 16.8 22.7999 14.7 22.7999 12H21.2999C21.2999 13.8 19.8 15.2 18.1 15.2V16.8H18Z",fill:"black"}),(0,Be.jsx)("path",{d:"M21.9999 16.8C21.5999 16.8 21.1999 16.5 21.1999 16V7.99995C21.1999 7.59995 21.4999 7.19995 21.9999 7.19995C22.4999 7.19995 22.7999 7.49995 22.7999 7.99995V16C22.7999 16.4 22.3999 16.8 21.9999 16.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M6.8 8.79995C8.6 8.79995 10 10.3 10 12H11.5C11.5 9.39995 9.4 7.19995 6.7 7.19995V8.79995H6.8ZM3.6 12C3.6 10.2 5.1 8.79995 6.8 8.79995V7.19995C4.2 7.19995 2 9.29995 2 12H3.6ZM6.8 15.2C5 15.2 3.6 13.7 3.6 12H2.1C2.1 14.6 4.2 16.8 6.9 16.8V15.2H6.8ZM6.8 16.8C9.4 16.8 11.6 14.7 11.6 12H10.1C10.1 13.8 8.6 15.2 6.9 15.2V16.8H6.8Z",fill:"black"}),(0,Be.jsx)("path",{d:"M10.8 16.8C10.4 16.8 9.99999 16.5 9.99999 16V7.99995C9.99999 7.59995 10.3 7.19995 10.8 7.19995C11.3 7.19995 11.6 7.49995 11.6 7.99995V16C11.6 16.4 11.2 16.8 10.8 16.8Z",fill:"black"})]})},B=async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","update_preset_setting"),e.append("act_type","remove"),e.append("post_id",M),await l().post(ajaxurl,e)},E=()=>(0,Be.jsxs)("div",{className:"kit-type-flex",children:[(0,Be.jsxs)("div",{className:"wkit-import-type "+("standard"==s?"wkit-selected-type":""),onClick:()=>{n("standard")},children:[(0,Be.jsx)("div",{className:"wkit-import-type-select",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:(0,Be.jsx)("path",{d:"M14.2223 1.33331L5.66672 9.88887L1.77783 5.99998",stroke:"white",strokeWidth:"2.66667",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-import-option",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"26",viewBox:"0 0 25 26",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.199463 4.63146C0.199463 2.61239 1.83624 0.975616 3.85531 0.975616H20.5904C22.6094 0.975616 24.2462 2.61239 24.2462 4.63146V8.11793V21.3665C24.2462 23.3856 22.6094 25.0224 20.5904 25.0224H3.85531C1.83624 25.0224 0.199463 23.3856 0.199463 21.3665V8.11793V4.63146ZM3.85531 2.70895C2.79353 2.70895 1.9328 3.56969 1.9328 4.63146V7.25127H22.5129V4.63146C22.5129 3.56969 21.6521 2.70895 20.5904 2.70895H3.85531ZM22.5129 8.9846H1.9328V21.3665C1.9328 22.4283 2.79353 23.289 3.85531 23.289H20.5904C21.6521 23.289 22.5129 22.4283 22.5129 21.3665V8.9846ZM2.98864 12.999C2.98864 12.5203 3.37666 12.1323 3.85531 12.1323L20.5904 12.1323C21.069 12.1323 21.457 12.5203 21.457 12.999C21.457 13.4776 21.069 13.8657 20.5904 13.8657L3.85531 13.8657C3.37666 13.8657 2.98864 13.4776 2.98864 12.999ZM3.86398 5.3264C3.86398 4.9413 4.17617 4.62911 4.56128 4.62911C4.94638 4.62911 5.25857 4.9413 5.25857 5.3264C5.25857 5.71151 4.94638 6.0237 4.56128 6.0237C4.17617 6.0237 3.86398 5.71151 3.86398 5.3264ZM7.35034 4.63021C6.96523 4.63021 6.65304 4.9424 6.65304 5.3275C6.65304 5.71261 6.96523 6.0248 7.35034 6.0248C7.73544 6.0248 8.04763 5.71261 8.04763 5.3275C8.04763 4.9424 7.73544 4.63021 7.35034 4.63021ZM4.7356 16.1365C4.25422 16.1365 3.86398 16.5268 3.86398 17.0081V18.7514C3.86398 19.2327 4.25422 19.623 4.7356 19.623H6.47884C6.96022 19.623 7.35045 19.2327 7.35045 18.7514V17.0081C7.35045 16.5268 6.96022 16.1365 6.47884 16.1365H4.7356ZM11.3308 16.1365C10.8495 16.1365 10.4592 16.5268 10.4592 17.0081V18.7514C10.4592 19.2327 10.8495 19.623 11.3308 19.623H13.0741C13.5555 19.623 13.9457 19.2327 13.9457 18.7514V17.0081C13.9457 16.5268 13.5555 16.1365 13.0741 16.1365H11.3308ZM17.1126 17.0081C17.1126 16.5268 17.5028 16.1365 17.9842 16.1365H19.7274C20.2088 16.1365 20.599 16.5268 20.599 17.0081V18.7514C20.599 19.2327 20.2088 19.623 19.7274 19.623H17.9842C17.5028 19.623 17.1126 19.2327 17.1126 18.7514V17.0081ZM10.1348 4.63021C9.74974 4.63021 9.43755 4.9424 9.43755 5.3275C9.43755 5.71261 9.74974 6.0248 10.1348 6.0248C10.5199 6.0248 10.8321 5.71261 10.8321 5.3275C10.8321 4.9424 10.5199 4.63021 10.1348 4.63021Z",fill:"#040483"})}),(0,Be.jsx)("span",{className:"wkit-import-opt-title",children:(0,a.__)("Standard Style","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-import-opt-desc",children:(0,a.__)("Standard Import","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-import-type "+("global"==s?"wkit-selected-type":""),onClick:()=>{n("global")},children:[(0,Be.jsx)("div",{className:"wkit-import-type-select",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",children:(0,Be.jsx)("path",{d:"M14.2223 1.33331L5.66672 9.88887L1.77783 5.99998",stroke:"white",strokeWidth:"2.66667",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-import-option",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:[(0,Be.jsx)("path",{d:"M16.0001 29.3333C23.3639 29.3333 29.3334 23.3638 29.3334 16C29.3334 8.63619 23.3639 2.66666 16.0001 2.66666C8.63628 2.66666 2.66675 8.63619 2.66675 16C2.66675 23.3638 8.63628 29.3333 16.0001 29.3333Z",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M2.66675 16H29.3334",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M16.0001 2.66666C19.3351 6.31779 21.2304 11.056 21.3334 16C21.2304 20.9439 19.3351 25.6822 16.0001 29.3333C12.665 25.6822 10.7697 20.9439 10.6667 16C10.7697 11.056 12.665 6.31779 16.0001 2.66666Z",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("span",{className:"wkit-import-opt-title",children:(0,a.__)("Global Style","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-import-opt-desc",children:(0,a.__)("Import with Global Color","wdesignkit")})]})]})]}),O=(e,t)=>{let i=t?.length>0?t:[];return(0,Be.jsx)("div",{className:"wkit-show-global-list",children:i.map(((t,i)=>{let s=b?.[e]?.findIndex((e=>e?.temp_id==t?.id));if("color"==e)return(0,Be.jsxs)("button",{className:"wkit-show-global-card "+(s>-1?"wkit-selected_value":""),disabled:_?.[e],onClick:()=>{o("inner"),g({value:t,type:e})},children:[s>-1&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsx)("span",{className:"wkit-global-card-tooltip",children:t.label}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:t.value}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:t.value})]})]},i);if("typography"==e){let n=t?.value?t.value:"",l=n?.fontFamily?.family?n.fontFamily.family:"",r=n?.size?n.size:"",d=r?r.md+r.unit+" - ":"",c=n?.fontFamily?.fontWeight?n.fontFamily.fontWeight:"",p=d+c;return(0,Be.jsxs)("button",{className:"wkit-show-global-card "+(s>-1?"wkit-selected_value":""),disabled:_?.[e],onClick:()=>{o("inner"),g({value:t,type:e})},children:[s>-1&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsx)("span",{className:"wkit-global-card-tooltip",children:t.label}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:l,fontWeight:c},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:p})]})]},i)}}))})},A=async e=>{j(!0);var n={color:[],typography:[]};if(Object.entries(i).length>0){var r={color:[],typography:[]};Object.entries(i).map((([e,t])=>{let a=d?.[e]?d[e]:[],i=b?.[e]?b[e]:[],l=[];t.length>0&&t.map((t=>{var r=Object.assign({},t,{id:t.id});let o=r?.id?r.id:"",d=i.findIndex((e=>e?.temp_id==o));if(d>-1){let e=i[d]?.site_id,t=a.findIndex((t=>t?.id==e));var c={status:"update",temp_id:r?.id,site_id:e,data:a[t]}}else if("standard"==s)c={status:"remove",temp_id:r?.id,data:r};else if("global"==s)if(n?.[e]){n?.[e].push(r);let t=u?.[e]?u?.[e]:[];c={status:"update",temp_id:r?.id,site_id:t.length+1,data:r},delete r.id,t.push(r)}else c={status:"remove",temp_id:r?.id,data:r};l.push(c)})),Object.assign(r,{[e]:l})}));let e=n?.color?.length>0?n.color:[],t=n?.typography?.length>0?n.typography:[];if(e.length>0||t.length>0){let e=Object.assign({},u,{key:"wdk_preset",name:"WDK Preset",colors:u.color});if(delete e.color,1==window.confirm((0,a.__)("The global color and typography you haven't selected will be added as new in your site. Do you want to proceed ?","wdesignkit"))){let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","update_global_val"),t.append("builder","gutenberg"),t.append("new_preset",JSON.stringify(e)),await l().post(ajaxurl,t).then((e=>{})),D(r)}}else D(r)}"standard"==e?t.import_template(r):T()},T=async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","update_preset_setting"),e.append("act_type","create"),await l().post(ajaxurl,e).then((async e=>{e.data?.success&&($(e?.data?.preview_url),H(e.data.post_id))}))},P=()=>{if("global"==r)if(N)var e=(0,a.__)("Import","wdesignkit");else e=(0,a.__)("Update Settings","wdesignkit");else"standard"==s?e=(0,a.__)("Import","wdesignkit"):"global"==s&&(e=(0,a.__)("Next","wdesignkit"));const i=()=>{if(V)return t.import_template(V),h(),D(),L(),!1;if("global"==r)A();else if("standard"==s)A("standard");else if("global"==s){o(s);let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","get_global_val"),e.append("builder","gutenberg"),l().post(ajaxurl,e).then((async e=>{if(e?.data?.success&&e?.data?.data){let t=e?.data?.data?e.data.data:"";h(t),t?.colors&&(Object.assign(t,{color:t?.colors}),delete t.colors),Object.entries(t).length>0&&Object.entries(t).map((([e,a])=>{if("array"==typeof a||"object"==typeof a){let i=[];a.map(((e,t)=>{let a=Object.assign({},e,{id:t+1});i.push(a)})),t=Object.assign({},t,{[e]:i})}})),c(t)}}))}};if("inner"!=r)return(0,Be.jsxs)("div",{className:"wkit-next-step-second wkit-global-step-notice",children:[(0,Be.jsx)("div",{className:"wkit-remove-plugin-notice",children:(0,Be.jsxs)("span",{className:"wkit-notice-text",children:[(0,Be.jsx)("b",{className:"wkit-bold-text",children:(0,a.__)("Note:","wdesignkit")}),(0,a.__)("This will apply universal design elements, including typography, colors, spacing, and component styling, across all projects. Ensure compatibility with existing styles to maintain design consistency.","wdesignkit")]})}),"global"==r?(0,Be.jsx)(Be.Fragment,{children:f?(0,Be.jsx)("button",{className:"wkit-loading-button wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-update-loader",children:(0,Be.jsx)("div",{className:"wkit-update-loader-circle"})})}):u&&(0,Be.jsx)("button",{className:"wkit-update-preset-btn wkit-btn-class",onClick:e=>{i()},disabled:p.color||p.typography,children:e})}):(0,Be.jsx)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{i()},disabled:p.color||p.typography,children:e})]})},W=e=>{let t=m?.type?m.type:"",a=m?.value?m.value:"",i=b?.[t]?b?.[t]:[],s=i.findIndex((e=>e.temp_id==a?.id));s>-1?i.splice(s,1,{temp_id:a?.id,site_id:e.id}):i.push({temp_id:a?.id,site_id:e.id});let n=Object.assign({},b,{[t]:i});x(n)};return(0,Be.jsxs)(Te,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Import Templates","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:["select"==r&&(0,Be.jsx)(E,{}),"global"==r&&(0,Be.jsx)("div",{className:"kit-type-flex",children:(0,Be.jsx)("div",{className:"wkit-show-global",children:i&&Object.values(i).length>0&&Object.entries(i).map((([e,t],s)=>{if(("color"==e||"typography"==e)&&t?.length>0)return(0,Be.jsxs)("div",{className:"wkit-show-global-color "+(u?"":"wkit-skeleton"),children:[(0,Be.jsxs)("div",{className:"wkit-show-global-header",children:[(0,Be.jsxs)("div",{className:"wkit-show-global-txt",children:[(0,Be.jsx)("span",{className:"wkit-show-global-title",children:(0,a.__)(`Global ${e}`,"wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-show-global-desc",children:(0,a.__)(`Total  global ${e} we found from Template`,"wdesignkit")})]}),_?.[e]?(0,Be.jsxs)("span",{className:"wkit-global-added",children:[(0,Be.jsxs)("svg",{className:"wkit-global-success-svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M9.24735 0.0195866C7.79655 0.156374 6.69379 0.465122 5.48936 1.07089C3.9017 1.86425 2.43135 3.21257 1.46546 4.76021C0.76548 5.87796 0.257115 7.32008 0.0498588 8.7661C-0.0166196 9.22727 -0.0166196 10.7671 0.0498588 11.2283C0.2141 12.3812 0.519118 13.3895 0.996199 14.3548C1.53194 15.4491 2.05985 16.1838 2.92798 17.0554C3.7922 17.9152 4.53911 18.4506 5.59103 18.9665C6.3262 19.326 6.79938 19.5019 7.54628 19.6895C9.50153 20.1819 11.4646 20.0881 13.3729 19.412C13.9595 19.2049 14.9684 18.6968 15.4846 18.3529C16.6656 17.5634 17.7253 16.477 18.4918 15.2732C18.7733 14.8316 19.2269 13.8936 19.4107 13.3739C20.3297 10.7866 20.1694 8.01182 18.961 5.58484C18.4761 4.60779 17.9326 3.83788 17.17 3.05234C16.3332 2.18472 15.4885 1.57114 14.3896 1.0279C13.2321 0.457304 12.1528 0.148558 10.8702 0.031311C10.4713 -0.00386238 9.56801 -0.0116787 9.24735 0.0195866Z",fill:"#14C38E"}),(0,Be.jsx)("path",{d:"M13.8261 6.73158C13.7733 6.75427 12.4461 8.05869 10.8776 9.63534L8.01967 12.4975L6.95643 11.4313C5.80646 10.2819 5.79892 10.2781 5.46712 10.3424C5.28238 10.3764 5.05615 10.6033 5.02222 10.7885C4.95812 11.1288 4.9355 11.1023 6.39087 12.5618C7.84624 14.0212 7.81607 13.9985 8.15918 13.9343C8.28737 13.9116 8.65687 13.5562 11.4432 10.7658C13.7243 8.47837 14.5914 7.58607 14.6216 7.49155C14.7046 7.23822 14.6141 6.966 14.3841 6.79586C14.2672 6.70889 13.9656 6.67487 13.8261 6.73158Z",fill:"white"})]}),(0,a.__)(`${t.length} new global color added successfully to your style.`,"wdesignkit")]}):p?.[e]?(0,Be.jsx)("div",{className:"wkit-global-submit-btn wkit-outer-btn-class",children:(0,Be.jsxs)("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",children:[(0,Be.jsx)("path",{d:"M4.73221 20.7144C6.1457 20.7144 7.29156 19.5686 7.29156 18.1551C7.29156 16.7416 6.1457 15.5957 4.73221 15.5957C3.31871 15.5957 2.17285 16.7416 2.17285 18.1551C2.17285 19.5686 3.31871 20.7144 4.73221 20.7144Z",fill:"#040483"}),(0,Be.jsx)("path",{d:"M21.1989 18.4446C22.4257 18.4446 23.4202 17.4501 23.4202 16.2233C23.4202 14.9965 22.4257 14.002 21.1989 14.002C19.9721 14.002 18.9775 14.9965 18.9775 16.2233C18.9775 17.4501 19.9721 18.4446 21.1989 18.4446Z",fill:"#B1B1D9"}),(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("path",{d:"M16.8642 22.9429C18.1597 22.9429 19.2099 21.9204 19.2099 20.659C19.2099 19.3976 18.1597 18.375 16.8642 18.375C15.5687 18.375 14.5186 19.3976 14.5186 20.659C14.5186 21.9204 15.5687 22.9429 16.8642 22.9429Z",fill:"#B1B1D9"}),(0,Be.jsx)("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,Be.jsx)("path",{d:"M21.9005 12.5103C23.0596 12.5103 23.9993 11.5881 23.9993 10.4505C23.9993 9.31285 23.0596 8.39062 21.9005 8.39062C20.7414 8.39062 19.8018 9.31285 19.8018 10.4505C19.8018 11.5881 20.7414 12.5103 21.9005 12.5103Z",fill:"#B1B1D9"}),(0,Be.jsx)("path",{d:"M12.7 5.98793C14.3535 5.98793 15.694 4.64748 15.694 2.99396C15.694 1.34044 14.3535 0 12.7 0C11.0465 0 9.70605 1.34044 9.70605 2.99396C9.70605 4.64748 11.0465 5.98793 12.7 5.98793Z",fill:"#040483"})]})}):(0,Be.jsx)("div",{className:"wkit-global-submit-btn wkit-outer-btn-class",onClick:()=>{(e=>{w((t=>({...t,[e]:!0})));let t=i?.[e]?i?.[e]:[];var a=d?.[e]?d[e]:[];let s=u?.[e]?u?.[e]:[];if(t.length>0){let i=b?.[e]?b[e]:[];t.map((e=>{let t=Object.assign({},e,{id:Number(a.length)+1});var n={temp_id:e?.id,site_id:Number(a.length)+1};i.push(n),a.push(t),s.push(t)}));let n=Object.assign({},b,{[e]:i});x(n)}let n=Object.assign({},u,{key:"wdk_preset",name:"WDK Preset",colors:u?.color});delete n.color;let r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","update_global_val"),r.append("builder","gutenberg"),r.append("new_preset",JSON.stringify(n)),l().post(ajaxurl,r).then((async t=>{if(t?.data?.success){if(w((t=>({...t,[e]:!1}))),C((t=>({...t,[e]:!0}))),a.length>0){let t=Object.assign({},d,{[e]:a});c(t)}}else w((t=>({...t,[e]:!1})))}))})(e)},children:(0,a.__)(`Add missing ${t.length} global ${e}`,"wdesignkit")})]}),O(e,t)]},s)}))})}),"inner"==r&&m&&(()=>{let e=m?.type?m.type:"",t=m?.value?m.value:"",s=t?.value?t.value:"",n=s?.fontFamily?.family?s.fontFamily.family:"",l=s?.size?s.size:"",r=l?l.md+l.unit+" - ":"",c=s?.fontFamily?.fontWeight?s.fontFamily.fontWeight:"",p=r+c;return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-inner-popup-body",onClick:e=>{e.target.closest(".wkit-select-global-header")||v(!1)},children:[(0,Be.jsxs)("div",{className:"wkit-selected-global-value",children:[(0,Be.jsx)("span",{className:"wkit-selected-title",children:t.label}),"color"==e&&(0,Be.jsxs)("div",{className:"wkit-select-global-dpr",children:[(0,Be.jsxs)("div",{className:"wkit-select-global-header",onClick:()=>{v(!k)},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:t.value}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:t.value}),(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M2.5 3.75L5 6.25L7.5 3.75",stroke:"#040483",strokeWidth:"0.625",strokeLinecap:"round",strokeLinejoin:"round"})})]}),k&&(0,Be.jsx)("div",{className:"wkit-select-global-body",children:i.color.map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-select-body-cn",onClick:()=>{g({value:e,type:"color"})},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:e.value}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:e.value})]},t)))})]}),"typography"==e&&(0,Be.jsxs)("div",{className:"wkit-select-global-dpr",children:[(0,Be.jsxs)("div",{className:"wkit-select-global-header",onClick:()=>{v(!k)},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:n,fontWeight:c},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:p}),(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M2.5 3.75L5 6.25L7.5 3.75",stroke:"#040483",strokeWidth:"0.625",strokeLinecap:"round",strokeLinejoin:"round"})})]}),k&&(0,Be.jsx)("div",{className:"wkit-select-global-body",children:i.typography.map(((e,t)=>{let i=e?.value?e.value:"",s=i?.fontFamily?.family?i.fontFamily.family:"",n=i?.fontFamily?.fontWeight?i.fontFamily.fontWeight:"",l=i?.size?.md?i.size.md:"",r=i?.size?.unit?i.size.unit:"";return(0,Be.jsxs)("div",{className:"wkit-select-body-cn",onClick:()=>{g({value:e,type:"typography"})},children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:s,fontWeight:n},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:l+r+" - "+n})]},t)}))})]})]}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:`wkit-global-${e}-options`,children:d?.[e]?.length>0&&d[e].map(((a,i)=>{let s=b?.[e]?.findIndex((e=>e?.temp_id==t?.id));if(s>-1)var n=b?.[e]?.[s]?.site_id;if("color"==e)return(0,Be.jsxs)("div",{className:"wkit-show-global-card "+(n==a?.id?"wkit-selected_value":""),onClick:()=>{W(a)},children:[n==a?.id&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsxs)("div",{className:"wkit-global-card-content",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot wkit-circle-border",style:{background:a.value}}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:a.value})]})]},i);if("typography"==e){let e=a?.value?a.value:"",t=e?.fontFamily?.family?e.fontFamily.family:"",s=e?.size?e.size:"",l=e?.height?e.height:"",r=e?.spacing?e.spacing:"";const o={font_weight:e?.fontFamily?.fontWeight?e.fontFamily.fontWeight:"",font_size:s?s?.md+s?.unit:"",line_height:l?l?.md+l?.unit:"",letter_spacing:r?r?.md+r?.unit:""};return(0,Be.jsxs)("div",{className:"wkit-show-global-card "+(n==a?.id?"wkit-selected_value":""),onClick:()=>{W(a)},children:[n==a?.id&&(0,Be.jsx)("svg",{className:"wkit-global-selected-tick",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 8 6",fill:"none",children:(0,Be.jsx)("path",{d:"M6.59241 1.05664L3.0276 4.62146L1.40723 3.00108",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,Be.jsxs)("div",{className:"wkit-global-typo-fontfamily",children:[R.font_family,(0,Be.jsx)("span",{style:{fontFamily:t},children:t})]}),(0,Be.jsx)("div",{className:"wkit-global-card-typo",children:Object.entries(Z).map((([e,t],a)=>(0,Be.jsxs)("div",{className:"wkit-typo-detail",children:[t,o?.[e]?(0,Be.jsx)("span",{children:o?.[e]}):(0,Be.jsx)("span",{children:"NaN"})]},a)))})]},i)}}))})]}),(()=>{let i=b?.[e]?b[e]:[],n=i.findIndex((e=>e.temp_id==t.id));if(n>-1){let t=i[n]?.site_id,a=d?.[e]?d[e]:[],s=a.findIndex((e=>e.id==t));var l=a?.[s]?a?.[s]:""}let r=l?.value?l.value:"",c=s?.fontFamily?.family?s.fontFamily.family:"",p=s?.size?s.size:"",w=p?p.md+p.unit+" - ":"",m=s?.fontFamily?.fontWeight?s.fontFamily.fontWeight:"",g=w+m;return(0,Be.jsxs)("div",{className:"wkit-inner-popup-footer",children:["typography"==e&&(0,Be.jsx)("div",{className:"wkit-global-replace-data",children:l&&(0,Be.jsxs)("div",{className:"wkit-popup-submit-btn",children:[(0,Be.jsxs)("div",{className:"wkit-global-replace-val",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:c,fontWeight:m},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:g})]}),(0,Be.jsx)("span",{className:"wkit-replace-global-txt",children:(0,a.__)("Replace with","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-global-site-val",children:[(0,Be.jsx)("span",{className:"wkit-global-card-dot",style:{fontFamily:r.fontFamily.family,fontWeight:r.fontFamily.fontWeight},children:(0,a.__)("Ag","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-global-card-val",children:r?.size?.md+r?.size?.unit+" - "+r.fontFamily.fontWeight})]})]})}),"color"==e&&(0,Be.jsx)("div",{className:"wkit-global-replace-data",children:l&&(0,Be.jsxs)("div",{className:"wkit-popup-submit-btn",children:[(0,Be.jsxs)("div",{className:"wkit-global-replace-val",children:[(0,Be.jsx)("span",{className:"wkit-selected-color-box",style:{background:t.value}}),(0,Be.jsx)("span",{className:"wkit-selected-color-txt",children:t.value})]}),(0,Be.jsx)("span",{className:"wkit-replace-global-txt",children:(0,a.__)("Replace with","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-global-site-val",children:[(0,Be.jsx)("span",{className:"wkit-replace-color-box",style:{background:l.value}}),(0,Be.jsx)("span",{className:"wkit-replace-color-txt",children:l.value})]})]})}),(0,Be.jsx)("div",{className:"wkit-global-inner-back",children:(0,Be.jsx)("button",{className:"wkit-outer-btn-class",onClick:e=>{o("global")},children:(0,a.__)("Back","wdesignkit")})})]})})()]})})(),(0,Be.jsx)(P,{}),f&&y&&(0,Be.jsx)("iframe",{id:"wkit-edit-link-ifram",ref:S,src:y})]})]})},We=(e,t)=>{var a=e;let i=[...e.matchAll(/<!--\s*wp:[^\s]+\s*(?:({[\s\S]*?}))?\s*(?:\/-->|-->)/g)],s=i.map((e=>{try{return JSON.parse(e[1])}catch(e){return null}})).filter((e=>null!==e));const n=e=>{if(Array.isArray(e))return e.map((e=>n(e)));if("object"==typeof e&&null!==e){var i={...e};Object.entries(i).map((([e,s])=>{if("string"==typeof s&&s.startsWith("var(")){let r=s.match(/var\(--tpgb-([A-Z]+)([A-Z0-9]*)\)/i);if(r)if("C"==r[1]){let s=t?.color?.findIndex((e=>Number(e.temp_id)+1==r[2])),o=t?.color?.[s];if("update"==o?.status)var n=`var(--tpgb-C${o.site_id})`;else"remove"==o?.status&&(n=o.data.value);var l=`var(--tpgb-C${r[2]})`;a=a.replaceAll(l,n),s>-1&&Object.assign(i,{[e]:n})}else if("GC"==r[1]){let s=t?.gradient?.findIndex((e=>Number(e.temp_id)+1==r[2])),n=t?.gradient?.[s].data.value;l=`var(--tpgb-GC${r[2]})`,a=a.replaceAll(l,n),s>-1&&Object.assign(i,{[e]:n})}else if("S"==r[1]){let a=t?.spacing?.findIndex((e=>Number(e.temp_id)+1==r[2])),s=t?.spacing?.[a].data.value;a>-1&&Object.assign(i,{[e]:s})}}if(e.toLowerCase().includes("global")&&("globalTypo"===e||"globalShadow"===e))if(i?.[e]&&delete i[e],"globalShadow"===e){let e=t.boxshadow.findIndex((e=>Number(e.temp_id)+1==s)),n=t.boxshadow[e].data.value;if(0==n?.inset)var r=`${n?.horizontal}px ${n?.vertical}px ${n?.blur}px ${n?.spread}px ${n?.color}`;else r=`inset ${n?.horizontal}px ${n?.vertical}px ${n?.blur}px ${n?.spread}px ${n?.color}`;l=`var(--tpgb-BS${s})`,a=a.replaceAll(l,r),i=n}else if("globalTypo"===e){let e=t.typography.findIndex((e=>Number(e.temp_id)+1==s)),n=t.typography[e],l=n?.data?.value;if("update"==n?.status){if(l?.fontFamily?.family){var o=`var(--tpgb-${s}-font-family)`,d=`var(--tpgb-${n.site_id}-font-family)`;a=a.replaceAll(o,d)}if(l?.fontFamily?.fontWeight){var c=`var(--tpgb-${s}-font-weight)`,p=`var(--tpgb-${n.site_id}-font-weight)`;a=a.replaceAll(c,p)}if(l?.fontStyle){var w=`var(--tpgb-${s}-font-style)`,m=`var(--tpgb-${n.site_id}-font-style)`;a=a.replaceAll(w,m)}if(l?.size?.md&&l?.size?.unit){var g=`var(--tpgb-${s}-font-size)`,u=`var(--tpgb-${n.site_id}-font-size)`;a=a.replaceAll(g,u)}if(l?.height?.md&&l?.height?.unit){var h=`var(--tpgb-${s}-line-height)`,_=`var(--tpgb-${n.site_id}-line-height)`;a=a.replaceAll(h,_)}if(l?.spacing?.md&&l?.spacing?.unit){var C=`var(--tpgb-${s}-letter-spacing)`,k=`var(--tpgb-${n.site_id}-letter-spacing)`;a=a.replaceAll(C,k)}if(l?.textTransform){var v=`var(--tpgb-${s}-text-transform)`,b=`var(--tpgb-${n.site_id}-text-transform)`;a=a.replaceAll(v,b)}if(l?.textDecoration){var x=`var(--tpgb-${s}-text-decoration)`,f=`var(--tpgb-${n.site_id}-text-decoration)`;a=a.replaceAll(x,f)}Object.assign(l,{globalTypo:n.site_id})}else"remove"==n?.status&&(l?.fontFamily?.family&&(o=`var(--tpgb-${s}-font-family)`,a=a.replaceAll(o,l.fontFamily.family)),l?.fontFamily?.fontWeight&&(c=`var(--tpgb-${s}-font-weight)`,a=a.replaceAll(c,l.fontFamily.fontWeight)),l?.fontStyle&&(w=`var(--tpgb-${s}-font-style)`,a=a.replaceAll(w,l.fontStyle)),l?.size?.md&&l?.size?.unit&&(g=`var(--tpgb-${s}-font-size)`,a=a.replaceAll(g,l.size.md+l.size.unit)),l?.height?.md&&l?.height?.unit&&(h=`var(--tpgb-${s}-line-height)`,a=a.replaceAll(h,l.height.md+l.height.unit)),l?.spacing?.md&&l?.spacing?.unit&&(C=`var(--tpgb-${s}-letter-spacing)`,a=a.replaceAll(C,l.spacing.md+l.spacing.unit)),l?.textTransform&&(v=`var(--tpgb-${s}-text-transform)`,a=a.replaceAll(v,l.textTransform)),l?.textDecoration&&(x=`var(--tpgb-${s}-text-decoration)`,a=a.replaceAll(x,l.textDecoration)));i=l}}));for(const e in i)i[e]=n(i[e]);return i}return e};let l=n(s);return i.map(((e,t)=>{if(!e[1])return;let i=JSON.parse(e[1]),s=i?.block_id?i.block_id:"",n=l?.[t]?.block_id?l?.[t]?.block_id:"";if(s)if(n&&s==n){let i=l?.[t]?l?.[t]:"",s=e[1];a=a.replace(s,JSON.stringify(i))}else{let t=l.findIndex((e=>e.block_id==s));if(t>-1){let i=l?.[t]?l?.[t]:"",s=e[1];a=a.replace(s,JSON.stringify(i))}}})),a},{Fragment:Fe}=wp.element;var Ie,qe=wdkitData.WDKIT_URL;const Ue=e=>{let t=Number(e),a=[];for(let e=0;e<t;e++)a.push(e);return a},ze=()=>{let e=(window?.location?.pathname?window.location.pathname:"").split("/");if(e.includes("wp-admin")){let t=e.findIndex((e=>"wp-admin"==e)),a=e.slice(0,t+1).join("/");return window.location.origin+a}return window.location.origin+window.location.pathname},Je=e=>{var t=e.replace(/\s+/g,"-");return(t=t.replace(/[^\w-]+/g,"")).toLowerCase()},Ke=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)}},Ge=async e=>!!e&&await l().post(ajaxurl,e,{headers:{"content-type":"application/json"}}).then((e=>e.data)).catch((e=>e)),Ye=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)))),Ge(t)},Qe=async()=>{let e=ze(),t=Xe(),a="wdkit"==window.wdkit_editor?"":window.wdkit_editor,i="";t&&t.user_email&&(i=t.user_email);let s={type:"get_user_info",email:i,builder:a,site_url:e},n=await Ye(s);return window.userData=n,n},Xe=()=>JSON.parse(localStorage.getItem("wdkit-login")),et=async e=>{let t=Xe();if(t&&t.user_email){let e={type:"wkit_logout",email:t.user_email,logout_type:t.login_type};await Ye(e),window.userData="",localStorage.removeItem("wdkit-login")}window.location.hash="/login"},tt=(e,t)=>{let a="";return e&&t&&Object.entries(t).map((([t,i])=>{Number(i.p_id)===Number(e)&&(a=i.original_slug)})),a||""},at=(e,t)=>{if(t?.length<=0)return"";let a=t.findIndex((t=>t.w_id==e));return a>-1&&t?.[a]?.builder_name?t?.[a]?.builder_name.toLocaleLowerCase():""},it=(e,t="",a="all")=>{var i=[];return e&&e.workspace&&Object.entries(e.workspace).map((([e,t])=>{"admin"!==t.roles&&"editor"!==t.roles||("all"==a?i[e]={w_id:t.w_id,title:t.work_title}:"copy"!=a&&"t-copy"!=a&&"move"!=a||(i[e]={w_id:t.w_id,title:t.work_title}))})),i},st=()=>(0,Be.jsx)("div",{className:"wkit-content-loader",children:(0,Be.jsx)("div",{className:"wb-contentLoader-circle"})}),nt=({props:e,children:t})=>(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",onClick:e=>{Object.values(e.target.classList).includes("wkit-model-transp")&&t.props.popCloseHandler(!1)},children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{t.props.popCloseHandler(!1)},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})}),t]})}),lt=async e=>{if(e){let t=new FormData;return t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","check_plugins_depends"),t.append("plugins",JSON.stringify(e)),t.append("editor",wdkitData.use_editor),await l().post(ajaxurl,t).then((e=>e.data))}return!1},rt=async e=>{if(e){let t=new FormData;return t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","install_plugins_depends"),t.append("plugins",JSON.stringify(e)),t.append("editor",wdkitData.use_editor),await l().post(ajaxurl,t).then((e=>e))}return!1},ot=e=>(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:t=>{e.setdeleteWsID(-1)},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"popup-missing",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Please Confirm","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsx)("div",{className:"wkit-popup-content-title",children:(0,a.__)("Are you sure want to permanently delete","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,Be.jsx)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>{e.setdeleteWsID(-1)},children:(0,a.__)("No","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>e.removeFunction(),children:e.isLoading?(0,Be.jsx)(st,{}):(0,Be.jsx)("span",{children:(0,a.__)("Yes","wdesignkit")})})]})]})]})]})}),dt=t=>{var i=wdkitData.WDKIT_URL;let s=J();const n=G(),[l,r]=(0,e.useState)(!1),[o,d]=(0,e.useState)(!1),[c,p]=(0,e.useState)(!1),[w,m]=(0,e.useState)(!1),[g,u]=(0,e.useState)(-1),[h,_]=(0,e.useState)("");let C=s.pathname.split("/"),k=t.data,v="",b="";t.builder&&k.post_builder&&Object.entries(t.builder).forEach((([e,t])=>{t.p_id==Number(k.post_builder)&&(v=t.plugin_icon,b=t.plugin_name)})),(0,e.useEffect)((()=>{t.favorite&&t.favorite.includes(Number(k.id))&&r(!0)}),[k.id]);const x=async e=>{d(!0);let i=t;if(!e)return{error:!1,data:(0,a.__)("Not found")};{let a=Xe();var s="";a&&a.user_email&&(s=a.user_email);let n={type:"manage_favorite",email:s,template_id:e},o=await Ye(n);if("success"==o?.data){t.wdkit_set_toast(o?.message,o?.description,"","success");let a=-1;(a=t.favorite.indexOf(e))&&(a>-1?t.favorite.splice(a,1):t.favorite.push(e)),r(!l),d(!1),i.handler(t.favorite)}}},f=Y(),j=()=>{let e=k;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,$=e=>e?e.replace(/\s/g,"%20"):"",[N,L]=(0,e.useState)(!1);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!=N&&L(!1)}))}));return(0,Be.jsxs)("div",{className:"wdesign-template-boxed",children:["active"!=k.is_activated&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Template got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(!t.filter||t.filter&&"browse"!=t.filter)&&!(window.location.hash.search("#/share_with_me")>-1)&&!(window.location.hash.search("/kit/")>-1)&&(0,Be.jsx)("span",{className:"wdkit-inner-boxed-remove",children:(0,Be.jsx)("svg",{onClick:()=>{u(k.id),_("delete")},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wdkit-inner-boxed",children:[(0,Be.jsxs)("div",{className:"top-part",children:[(0,Be.jsxs)("div",{className:"kit-list-pin-icons",children:["/my_uploaded"==s?.pathname&&(0,Be.jsxs)("div",{className:"kit-pin-icon pin-section-pages",onClick:e=>{x(k.id)},children:[l?o?(0,Be.jsx)("svg",{width:"18",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,Be.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"white",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,Be.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})}):(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/wb-svg/fav-icon-selected.svg",alt:"page"}):o?(0,Be.jsx)("svg",{width:"18",xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto"},viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid",children:(0,Be.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"white",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,Be.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})}):(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/unfavourite.svg",alt:"section"}),(0,Be.jsx)("span",{className:"kit-hint-tooltip",children:l?(0,a.__)("UnFavourite","wdesignkit"):(0,a.__)("Favourite","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"kit-pin-icon pin-section-pages",children:["section"==t.data.type?(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/sections.svg",alt:"section"}):"pagetemplate"==t.data.type?(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/pages.svg",alt:"page"}):(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/websitekit.svg",alt:"kit"}),(0,Be.jsx)("span",{className:"kit-hint-tooltip",children:"section"==t.data.type?(0,a.__)("Section","wdesignkit"):"pagetemplate"==t.data.type?(0,a.__)("Full Page","wdesignkit"):(0,a.__)("Page Kit","wdesignkit")})]}),k.post_status&&!t.filter&&(0,Be.jsxs)("div",{className:"kit-pin-icon pin-public-private",children:["publish"==k.post_status?(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/public.svg",alt:"public"}):(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/svg/private.svg",alt:"private"}),(0,Be.jsx)("span",{className:"kit-hint-tooltip",children:"publish"==k.post_status?(0,a.__)("Public","wdesignkit"):(0,a.__)("Private","wdesignkit")})]})]}),"pro"==t.data.free_pro&&(0,Be.jsxs)("div",{className:"wdkit-card-tag",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wdkit-temp-feature-img "+(f.kit_id?"wkit-webkit-hover":""),children:(0,Be.jsxs)("label",{htmlFor:"template_"+k.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()}},children:[(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:i+"assets/images/wkit-dummy-bg.png",draggable:!1}),(()=>{var e="";C.includes("my_uploaded")?e=`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`:C.includes("browse")&&(e=`${wdkitData.wdkit_server_url}templates/${y(t.data)}/${Je(t.data.title)}/${t.data.id}`);let a=()=>(0,Be.jsxs)("picture",{children:[t.data&&t.data.responsive_image&&t.data.responsive_image.map(((e,t)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:$(e.url)})},t))),(0,Be.jsx)("img",{className:"wkit-temp-image-content",src:k.post_image&&k.post_image.indexOf("wdesignkit")>-1?k.post_image:i+"assets/images/placeholder.jpg",alt:"featured-img",draggable:!1})]});return"websitekit"!==t.type&&"websitekit-view"!==t.type&&(C.includes("my_uploaded")||C.includes("browse"))?wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-temp-link-server",children:a()}):(0,Be.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server",children:a()}):(0,Be.jsxs)("picture",{children:[t.data&&t.data.responsive_image&&t.data.responsive_image.map(((e,t)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:$(e.url)})},t))),(0,Be.jsx)("img",{className:"wkit-temp-image-content",src:k.post_image&&k.post_image.indexOf("wdesignkit")>-1?k.post_image:i+"assets/images/placeholder.jpg",alt:"featured-img",draggable:!1})]})})(),(0,Be.jsx)("input",{type:"checkbox",id:"template_"+k.id,name:"selectTemplate",value:k.id,checked:j(),onChange:e=>{(e=>{if(t.handlerMultiSelect){const{value:a,checked:i}=e.target;i?t.handlerMultiSelect(t.data,"add"):t.handlerMultiSelect(t.data,"remove")}})(e)},style:{display:"none"}}),f?.kit_id&&(0,Be.jsx)("div",{className:j()?"wkit-check-mark wkit-selected-inner-kit":"wkit-check-mark",children:(0,Be.jsx)("div",{className:"wkit-checkmark-box-icon",children:(0,Be.jsx)("svg",{className:"wkit-checkmark-icon",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"15",viewBox:"0 0 22 15",fill:"none",children:(0,Be.jsx)("path",{d:"M1.5 7.66659L7.66669 13.8333L20.5 1",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})]})})]}),(0,Be.jsxs)("div",{className:"boxed-bottom",children:[(0,Be.jsxs)("div",{className:"template-wrap-title",children:[t.data.title&&(0,Be.jsxs)(Be.Fragment,{children:[C.includes("browse")&&(wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-temp-link-server",children:(0,Be.jsx)("div",{className:"temp-title",children:t.data.title})}):(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}templates/${y(t.data)}/${Je(t.data.title)}/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server",children:(0,Be.jsx)("div",{className:"temp-title",children:t.data.title})})),C.includes("my_uploaded")&&(wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-temp-link-server",children:(0,Be.jsx)("div",{className:"temp-title",children:t.data.title})}):(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",className:"wkit-temp-link-server",children:(0,Be.jsx)("div",{className:"temp-title",children:t.data.title})})),!C.includes("my_uploaded")&&!C.includes("browse")&&(0,Be.jsx)("div",{className:"temp-title",children:t.data.title})]}),(0,Be.jsxs)("div",{className:"wkit-download-eye-wrapperd",children:[t&&"websitekit-view"==t.type&&(0,Be.jsx)("div",{className:"wdkit-download-temp",onClick:()=>{((e,i)=>{var l=!1;let r=Xe();if("pro"==t.data.free_pro&&!r)return n("/login"),!1;if("active"==e.data.is_activated&&(l=!1,"pro"==e.data.free_pro&&"1"==t?.credits?.pro_template_limit?.meta_value)){let e=b.toLowerCase();"elementor"===e?"1"==t?.credits?.access_elementor?.meta_value&&(l=!0):"gutenberg"===e?"1"==t?.credits?.access_gutenburg?.meta_value&&(l=!0):"bricks"===e&&"1"==t?.credits?.access_bricks?.meta_value&&(l=!0)}if("pro"==e.data.free_pro&&!l)return t.wdkit_set_toast((0,a.__)("Get Pro Version to Download","wdesignkit"),"","","danger"),!1;n(`/${s.pathname.split("/")[1]}/kit/${i}?page=${e.currentPage}${e.wsID?`&wsID=${e.wsID}`:""}`)})(t,k.id)},children:(0,Be.jsx)("img",{className:"wkit-download-template",src:i+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:!1})}),t&&"websitekit"!==t.type&&"websitekit-view"!==t.type&&(0,Be.jsx)("div",{onClick:()=>{(e=>{let i=Xe();if("pro"==t.data.free_pro&&!i)return n("/login"),!1;if("active"==k.is_activated){var s=!1;if("pro"==t.data.free_pro&&"1"==t?.credits?.pro_template_limit?.meta_value){let e=b.toLowerCase();"elementor"===e?"1"==t?.credits?.access_elementor?.meta_value&&(s=!0):"gutenberg"===e?"1"==t?.credits?.access_gutenburg?.meta_value&&(s=!0):"bricks"===e&&"1"==t?.credits?.access_bricks?.meta_value&&(s=!0)}if("pro"==t.data.free_pro&&!s)return t.wdkit_set_toast((0,a.__)("Get Pro Version to Download","wdesignkit"),"","","danger"),!1;t.handlerTempID(e)}else t.wdkit_set_toast((0,a.__)("Template Deactivate","wdesignkit"),(0,a.__)("This Template is Deactivated","wdesignkit"),"","danger")})(k.id)},className:"wdkit-download-temp",children:(0,Be.jsx)("img",{className:"wkit-download-template",src:i+"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,Be.jsxs)("div",{className:"w-designkit-hover-select","data-id":t.data.id,children:[(0,Be.jsx)("img",{className:"wkit-select-img",onClick:e=>{L(!N)},src:i+"assets/images/wb-svg/3-dot.svg",alt:"extra-opt-img",draggable:!1}),(0,Be.jsx)("div",{style:{display:0==N?"none":"block"},className:"wkit-dropdown-content",children:(0,Be.jsxs)("div",{className:"wkit-select-menu-wrapper",children:["/my_uploaded"==s?.pathname&&(0,Be.jsx)(Fe,{children:l?(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>x(k.id),children:[o?(0,Be.jsx)("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",children:(0,Be.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#000",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,Be.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})}):(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Remove Favorite","wdesignkit")]}):(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>x(k.id),children:[o?(0,Be.jsx)("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",children:(0,Be.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#000",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,Be.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})}):(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Add Favorite","wdesignkit")]})}),(!t.wsRoles||"subscriber"!=t.wsRoles)&&(0,Be.jsxs)(Fe,{children:[t?.data?.user_id==t?.userinfo?.id&&!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsxs)("button",{className:"wkit-design-item",children:[(0,Be.jsx)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Edit","wdesignkit")]})}),(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>{p(k.id),t.wsRoles?m("copy"):m("t-copy")},children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsxs)("g",{clipPath:"url(#clip0_6220_28330)",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"clip0_6220_28330",children:(0,Be.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]}),(0,a.__)("Copy to Workspace","wdesignkit")]}),!(window.location.hash.search("/kit/")>-1)&&!(window.location.hash.search("#/manage_workspace")>-1)&&(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>{u(k.id),_("delete")},children:[(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Delete","wdesignkit")]}),("admin"==t.wsRoles||"editor"==t.wsRoles)&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>{p(k.id),t.wsRoles&&m("move")},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Move to Workspace","wdesignkit")]}),(0,Be.jsxs)("button",{className:"wkit-design-item",onClick:()=>{u(k.id),_("remove")},children:[(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Remove","wdesignkit")]})]})]})]})})]}),g>-1&&(0,Be.jsx)(ot,{deletetype:h,removeFunction:()=>{"delete"==h?(async()=>{let e=Xe(),a="";if(e&&e.user_email&&(a=e.user_email),g>-1){t.setLoading&&t.setLoading(!0);let e={type:"template_remove",email:a,template_id:g},i=await Ye(e);if(i?.success){let e=await Qe();t.wdkit_set_toast(i?.message,i?.description,"","success"),t.UpdateUserData(e)}}u(-1)})():(async()=>{if(t.setLoading&&t.setLoading(!0),g&&f&&f.id){let e={wid:f.id,template_id:g,wstype:"temp_remove",moveId:f.id},a=await ct(e);a?.data?.success&&t.wdkit_set_toast(a?.data?.message,a?.data?.description,"","success");let i=await Qe();t.UpdateUserData(i)}t.setLoading&&t.setLoading(!1)})()},setdeleteWsID:e=>{u(e)}})]})]}),(0,Be.jsx)(bt,{avg_rating:t.data?.avg_rating,total_rating:t.data?.total_rating}),(0,Be.jsxs)("div",{className:"btn-reviews",children:[(0,Be.jsxs)("div",{className:"btn-img",children:[(0,Be.jsxs)("a",{children:[(0,Be.jsx)("img",{src:i+"assets/images/svg/eye.svg",alt:(0,a.__)("post views","wdesignkit")}),t.data.post_views]}),(0,Be.jsx)("hr",{className:"wkit-icon-divider-hr"}),(0,Be.jsxs)("a",{children:[(0,Be.jsx)("img",{src:i+"assets/images/svg/download-template.svg",alt:(0,a.__)("post download","wdesignkit")}),t.data.post_download]})]}),(0,Be.jsxs)("div",{className:"kit-pin-icon",children:[t.data.post_builder&&v&&(0,Be.jsx)("div",{className:"elementor-right-part kit-pin-icon",children:(0,Be.jsx)("img",{src:v,alt:(0,a.__)("builder icon","wdesignkit"),draggable:!1})}),(0,Be.jsx)("span",{className:"kit-hint-tooltip",children:b?(0,a.__)(b):(0,a.__)("")})]})]})]})]}),c&&(0,Be.jsx)(nt,{popupclose:()=>{t.handlerAfterSuccessImported()},popCloseHandler:e=>{p(!1)},children:(0,Be.jsx)(vt,{UpdateUserData:e=>t.UpdateUserData(e),setloading:e=>t.setloading(e),userData:t?.userData,temp_id:c,action:w,popCloseHandler:e=>p(!1),wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast(e,a,i,s)}})})]})},ct=async e=>{let t=Xe(),a="";t&&t.user_email&&(a=t.user_email);let i={type:"manage_workspace",email:a};i=Object.assign({},i,e);var s=await Ye(i);return s&&s.data&&s.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 i=window.userData.data.workspace[a].work_templates.indexOf(e.template_id);-1!==i&&window.userData.data.workspace[a].work_templates.splice(i,1)}})),s):s},pt=()=>(0,Be.jsxs)("div",{className:"wkit-maintenance-mode-content",children:[(0,Be.jsxs)("div",{className:"wkit-maintenance-mode-text",children:[(0,Be.jsx)("span",{className:"wkit-maintenance-mode-header",children:(0,a.__)("Website Upgrade in Progress.","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-maintenance-mode-description",children:(0,a.__)("Our  website is undergoing a transformation to serve you better.","wdesignkit")})]}),(0,Be.jsx)("img",{className:"wkit-maintenance-mode-image",src:qe+"assets/images/jpg/maintenance_mode.png"})]}),wt=()=>(0,Be.jsxs)("div",{className:"wkit-deactivate-account-content",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Limit reached of active sites. Deactivate one or upgrade your plan to unlock access.","wdesignkit")}),"  "]}),mt=async()=>{await(async()=>{await fetch(document.location.href,{parse:!1}).then((e=>e.text())).then((e=>{const t=(new DOMParser).parseFromString(e,"text/html"),a=["wp-blocks-js-after","plus-editor-css-css","plus-editor-js-js","elementor-editor-js-before"];return Array.from(t.querySelectorAll('link[rel="stylesheet"],script')).filter((e=>e.id&&(a.includes(e.id)||!document.getElementById(e.id)))).reduce(((e,t)=>e.then((()=>{return e=t,new Promise(((t,a)=>{const i=document.createElement(e.nodeName);["id","rel","src","href","type"].forEach((t=>{e[t]&&(i[t]=e[t])})),e.innerHTML&&i.appendChild(document.createTextNode(e.innerHTML)),i.onload=()=>{t(!0)},i.onerror=()=>{a(new Error("Error loading asset."))},document.body.appendChild(i),("link"===i.nodeName.toLowerCase()||"script"===i.nodeName.toLowerCase()&&!i.src)&&t()}));var e}))),Promise.resolve())})).catch((e=>{console.error("Error fetching or processing data:",e)}))})(),"undefined"!=typeof elementor&&elementor.addWidgetsCache(elementor.getConfig().initial_document.widgets)},gt=async e=>{const t=(e,a)=>{e.hasOwnProperty("widgetType")&&e.widgetType&&!a.includes(e.widgetType)&&a.push(e.widgetType),e.elements&&Array.isArray(e.elements)&&e.elements.length>0&&e.elements.map((e=>t(e,a)))};let a=[];if(e?.content&&Array.isArray(e.content)){e.content.map((e=>t(e,a)));let i=new FormData;return i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","enable_template_widgets"),i.append("widget_list",JSON.stringify(a)),await l().post(ajaxurl,i).then((e=>e)),a}return!1},ut=t=>{let i=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[s,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)([]),[d,c]=(0,e.useState)([]),[p,w]=(0,e.useState)(),[m,g]=(0,e.useState)(0),[u,h]=(0,e.useState)(0),[_,C]=(0,e.useState)(0),[k,v]=(0,e.useState)(0);var b=[],x=[],f=[],j=[],y=[],$=[];(0,e.useEffect)((()=>{L()}),[t.template_id]);const N=e=>{let a=t?.meta_data?.builder?t.meta_data.builder:[],i=a.findIndex((t=>t.p_id==e));return i>-1&&a[i].original_slug?a[i].original_slug:""};wdkitData.WDKIT_URL;const L=()=>{let e=Xe(),a="";if(e&&e.user_email){a=e.user_email;var i="import_template"}else i="import/template/free";(t.template_id.pages&&0!=t.template_id.pages.length||t.template_id.sections&&0!=t.template_id.sections.length)&&(n(!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,s){let n={type:"import_kit_template",api_type:i,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,builder:N(e.post_builder),page_section:"pages",custom_meta:t.custom_meta_import||!1};await Ye(n).then((async a=>{if(a.success&&a.data){let s=a.data?.response?.content?JSON.parse(a.data?.response?.content):[];if(s&&"elementor"==N(e.post_builder)&&await gt(s),e.global_data&&(e.global_data?.typography?.length>0||e.global_data?.color?.length>0)&&"elementor"==N(e.post_builder)){let e=Ae(s.content,t.global_data);var i=Object.assign({},s,{content:e})}else if(e.global_data&&(e.global_data?.typography?.length>0||e.global_data?.color?.length>0)&&"gutenberg"==N(e.post_builder)){let e=We(s.content,t.global_data);i=Object.assign({},s,{content:e})}else i=s;let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","import_page_section"),n.append("args",JSON.stringify(a.data.args)),n.append("temp_data",JSON.stringify(a.data.temp_data)),n.append("template_id",JSON.stringify(a.data.id)),n.append("data",JSON.stringify(i));let r=await l().post(ajaxurl,n).then((e=>e.data)),d=Object.assign({},r[e.id],{status:!0},{id:e.id});b.push(d),f.push(d),g(f.length),o(b)}else{let t=Object.assign({},a[e.id],{status:!1},{id:e.id});b.push(t),y.push(t),C(y.length),o(b)}})),w(s)})),0!=t.template_id.sections.length&&(t.template_id?.sections?.length>0&&t.template_id.sections?t.template_id.sections:[]).forEach((async function(e,s){let n={type:"import_kit_template",api_type:i,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,builder:N(e.post_builder),page_section:"sections",custom_meta:t.custom_meta_import||!1};await Ye(n).then((async a=>{if(a.success&&a.data){let s=a.data?.response?.content?JSON.parse(a.data?.response?.content):[];if(s&&"elementor"==N(e.post_builder)&&await gt(s),e.global_data&&(e.global_data?.typography?.length>0||e.global_data?.color?.length>0)&&"elementor"==N(e.post_builder)){let e=Ae(s.content,t.global_data);var i=Object.assign({},s,{content:e})}else if(e.global_data&&(e.global_data?.typography?.length>0||e.global_data?.color?.length>0)&&"gutenberg"==N(e.post_builder)){let e=We(s.content,t.global_data);i=Object.assign({},s,{content:e})}else i=s;let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","import_page_section"),n.append("args",JSON.stringify(a.data.args)),n.append("temp_data",JSON.stringify(a.data.temp_data)),n.append("template_id",JSON.stringify(a.data.id)),n.append("data",JSON.stringify(i));let r=await l().post(ajaxurl,n).then((e=>e.data)),o=Object.assign({},r[e.id],{status:!0},{id:e.id});x.push(o),j.push(o),h(j.length),c(x)}else{let t=Object.assign({},a[e.id],{status:!1},{id:e.id});x.push(t),$.push(t),v($.length),c(x)}})),w(s)})),n(!1))};return(0,Be.jsxs)(Fe,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Importing Templates","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-success-body",children:[d.length+r.length==i?(0,Be.jsxs)("div",{className:"wkit-import-kit-success-header",children:[m+u===i&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("div",{className:"wkit-import-kit-success-title-content",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{className:"wkit-import-kit-success-title",children:(0,a.__)(`${Number(m+u)>0?Number(m+u):0}/${i} Successfully Imported`)})]}),(0,Be.jsx)("div",{className:"wkit-import-kit-success-subTitle",children:(0,a.__)("Yay! Your kit has been successfully imported","wdesignkit")})]}),m+u===0&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("div",{className:"wkit-import-kit-success-title-content",children:[(0,Be.jsxs)("svg",{width:"40",height:"41",viewBox:"0 0 40 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{className:"wkit-import-kit-fail-title",children:(0,a.__)(`${Number(m+u)>0?Number(m+u):0}/${i} Import Failed!`,"wdesignkit")})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("div",{className:"wkit-import-kit-fail-subTitle",children:[(0,a.__)("Ops! Your templates are failed to import. Please Try Again.","wdesignkit"),(0,Be.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"/documents/how-to-manage-licence-in-wdesignkit/#Manage-Licence",style:{color:"#040483",fontWeight:"500"},target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Why Failed?","wdesignkit")})]})]}),m+u!==0&&m+u!==i&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("div",{className:"wkit-import-kit-success-title-content",children:[(0,Be.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{className:"wkit-import-kit-partial-title",children:(0,a.__)(`${Number(m+u)>0?Number(m+u):0}/${i}  Partially Imported!`)})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("div",{className:"wkit-import-kit-partial-subTitle",children:[(0,a.__)(`Happy to say your ${Number(m+u)} Templates Imported but sorry to know ${i-(m+u)} Failed to Import.`,"wdesignkit"),(0,Be.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"documents/how-to-manage-licence-in-wdesignkit/#Manage-Licence",style:{color:"#040483",fontWeight:"500"},target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Why Failed?","wdesignkit")})]})]})]}):(0,Be.jsxs)("div",{className:"wkit-import-kit-success-header",children:[(0,Be.jsx)("div",{className:"wkit-import-kit-loading-progress-content",children:(0,Be.jsx)("div",{className:"wkit-import-kit-progress-title",children:(0,a.__)(`${Number(m+u)>0?Number(m+u):0}/${i} Importing...`)})}),(0,Be.jsx)("div",{className:"wkit-import-kit-progressBar-content",children:(0,Be.jsx)("div",{className:"wkit-import-kit-progressBar-thumb",style:{width:100*Number(m+u)/Number(i)+"%"}})})]}),(0,Be.jsxs)("div",{className:"wkit-success-wrapper",children:[t.template_id.pages.length>0&&(0,Be.jsxs)("div",{className:"wkit-success-content",children:[(0,Be.jsxs)("div",{className:"wkit-success-template-content",children:[(0,Be.jsxs)("span",{className:"wkit-success-template-count",children:[(0,a.__)("Pages :","wdesignkit")," ",m]}),_>0&&(0,Be.jsxs)("div",{className:"wkit-fail-template-count",children:[(0,Be.jsxs)("span",{className:"wkit-success-temp-container",children:[(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("span",{style:{color:"#00A31B"},children:[m," ",(0,a.__)("Success.","wdesignkit")]})]}),(0,Be.jsxs)("span",{className:"wkit-fail-temp-container",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("span",{children:[_," ",(0,a.__)("Failed.","wdesignkit")]})]})]})]}),(0,Be.jsx)("div",{className:"wkit-success-list-content",children:(0,Be.jsx)("div",{className:"wkit-success-col",children:t.template_id.pages.map(((e,t)=>{let a=r.findIndex((t=>t.id==e.id));if(a>-1)var i=!0,s=r[a].view,n=r[a].status;else i=!1;return(0,Be.jsxs)("div",{className:`wkit-success-list-item ${i&&(n?"":"wkit-import-fail")}`,children:[(0,Be.jsxs)("div",{className:"wkit-plugin-img-title-wrapper",children:[(0,Be.jsx)("img",{src:e.post_image}),(0,Be.jsx)("div",{className:"heading",children:e.title})]}),i?n?(0,Be.jsx)("a",{href:s?s+(wdkitData?.wdkit_white_label?.plugin_news?"":"?wkit_user_review=true"):"",target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer",children:(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{children:(0,Be.jsxs)("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",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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)}))})})]}),t.template_id.sections.length>0&&(0,Be.jsxs)("div",{className:"wkit-success-content",children:[(0,Be.jsxs)("div",{className:"wkit-success-template-content",children:[(0,Be.jsxs)("span",{className:"wkit-success-template-count",children:[(0,a.__)("Sections :","wdesignkit")," ",u]}),k>0&&(0,Be.jsxs)("div",{className:"wkit-fail-template-count",children:[(0,Be.jsxs)("span",{className:"wkit-success-temp-container",children:[(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("span",{style:{color:"#00A31B"},children:[u,(0,a.__)("Success.","wdesignkit")]})]}),(0,Be.jsxs)("span",{className:"wkit-fail-temp-container",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("span",{children:[k," ",(0,a.__)("Failed.","wdesignkit")]})]})]})]}),(0,Be.jsx)("div",{className:"wkit-success-list-content",children:(0,Be.jsx)("div",{className:"wkit-success-col",children:t.template_id.sections.map(((e,t)=>{let a=d.findIndex((t=>t.id==e.id));if(a>-1)var i=!0,s=d[a].view,n=d[a].status;else i=!1;return(0,Be.jsxs)("div",{className:`wkit-success-list-item ${i&&(n?"":"wkit-import-fail")}`,children:[(0,Be.jsxs)("div",{className:"wkit-plugin-img-title-wrapper",children:[(0,Be.jsx)("img",{src:e.post_image}),(0,Be.jsx)("div",{className:"heading",children:e.title})]}),i?n?(0,Be.jsx)("a",{href:s?s+(wdkitData?.wdkit_white_label?.plugin_news?"":"?wkit_user_review=true"):"",target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer",children:(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{children:(0,Be.jsxs)("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",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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)}))})})]})]})]})]})},ht=e=>(0,Be.jsx)("div",{className:"wkit-skeleton-main-wrap wkit-skeleton-row",children:Object.values(Ue(12)).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-skeleton-boxed",children:(0,Be.jsxs)("div",{className:"wkit-skeleton-inner-boxed ",children:[(0,Be.jsxs)("ul",{children:[(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})})]}),(0,Be.jsx)("div",{className:"wkit-template-bg",children:(0,Be.jsx)("div",{className:"wkit-skeleton-square"})}),(0,Be.jsxs)("div",{className:"wkit-title-meta-content",children:[(0,Be.jsx)("div",{className:"template-page-kit-title",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})}),(0,Be.jsx)("div",{className:"wkit-select",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})]}),(0,Be.jsxs)("div",{className:"wkit-title-meta-content",children:[(0,Be.jsx)("div",{className:"wkit-action-inner",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})}),(0,Be.jsx)("div",{children:(0,Be.jsx)("div",{className:"wkit-img-border-rounded"})})]})]})},t)))}),_t=e=>{var t=e?.page?e?.page:"",i=wdkitData.WDKIT_URL,s=e?.link?e.link:"";return(0,Be.jsxs)("div",{className:"wkit-content-not-availble",children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"assets/images/jpg/empty-dog.png",alt:"section"}),(0,Be.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("Nothing related found!","wdesignkit")}),s&&!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:s,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{type:"submit",className:"wkit-common-btn wkit-pink-btn-class",children:(0,a.__)(`How to Add ${t}`,"wdesignkit")})})]})},Ct=t=>{let i=J().pathname.split("/");var s=wdkitData.WDKIT_URL;let n=Xe();const[l,r]=(0,e.useState)([]),[o,d]=(0,e.useState)([]),[c,p]=(0,e.useState)(!1);(0,e.useEffect)((()=>{i.includes("preset")&&p(!0)}),[]),(0,e.useEffect)((()=>{let e=[];t?.props?.wdkit_meta?.Setting?.elementor_builder&&e.push("Elementor"),t?.props?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("Gutenberg"),t?.props?.wdkit_meta?.Setting?.bricks_builder&&e.push("Bricks"),r(e);let a=[];t?.props?.wdkit_meta?.Setting?.elementor_template&&a.push("Elementor"),t?.props?.wdkit_meta?.Setting?.gutenberg_template&&a.push("Gutenberg"),d(a)}),[t?.props?.wdkit_meta?.Setting]);let w=t?.props?.wdkit_meta?.Setting?.template&&o.length>0,m=t?.props?.wdkit_meta?.Setting?.builder&&l.length>0;if(!(i.includes("builder")&&i.includes("widget-listing")||i.includes("theplus_popup")||i.includes("download"))){let e=Xe(),l=wdkitData?.wdkit_white_label?.website_url||wdkitData?.wdkit_server_url,r=wdkitData?.wdkit_white_label?.plugin_logo||s+"assets/images/jpg/Wdesignkit-logo.png",o=wdkitData?.wdkit_white_label?.plugin_logo||s+"assets/images/jpg/Wdesignkit-full-logo-original.png",d=null!=e?t?.props?.wdkit_meta?.userinfo?.user_profile:s+"assets/images/jpg/Wdesignkit-full-logo-original.png";return(0,Be.jsxs)("div",{className:"wkit-mobile-header-main",children:[(0,Be.jsx)("a",{href:l,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("img",{className:"wdkit-main-logo",src:r,alt:"wdesignkit-logo"})}),(0,Be.jsxs)("div",{className:"wkit-mobile-hamburger-dot",children:[(0,Be.jsx)("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"},children:(0,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M27.1875 7.5H2.8125C1.77702 7.5 0.9375 6.66048 0.9375 5.625C0.9375 4.58952 1.77702 3.75 2.8125 3.75H27.1875C28.223 3.75 29.0625 4.58952 29.0625 5.625C29.0625 6.66048 28.223 7.5 27.1875 7.5Z",fill:"white"}),(0,Be.jsx)("path",{d:"M27.1875 26.25H2.8125C1.77702 26.25 0.9375 25.4105 0.9375 24.375C0.9375 23.3395 1.77702 22.5 2.8125 22.5H27.1875C28.223 22.5 29.0625 23.3395 29.0625 24.375C29.0625 25.4105 28.223 26.25 27.1875 26.25Z",fill:"white"}),(0,Be.jsx)("path",{d:"M27.1875 16.875H2.8125C1.77702 16.875 0.9375 16.0355 0.9375 15C0.9375 13.9645 1.77702 13.125 2.8125 13.125H27.1875C28.223 13.125 29.0625 13.9645 29.0625 15C29.0625 16.0355 28.223 16.875 27.1875 16.875Z",fill:"white"})]})}),(0,Be.jsx)("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"},children:(0,Be.jsxs)("ul",{className:"wkit-hamburger-menu-content",children:[null==e?(0,Be.jsx)("div",{className:"wkit-menu-site-logo",children:(0,Be.jsx)("img",{src:o,alt:"wdesignkitlogo",draggable:"false"})}):(0,Be.jsxs)("div",{className:"wkit-mobile-profile",children:[(0,Be.jsx)("div",{className:"wkit-inner-logo",children:(0,Be.jsx)("img",{src:d,alt:"profile Pic",className:"wkit-user-profile-img",draggable:"false"})}),(0,Be.jsxs)("div",{className:"wkit-profile-right-info",children:[(0,Be.jsx)("span",{className:"wkit-profile-uname",children:t?.props?.wdkit_meta?.userinfo?.full_name}),(0,Be.jsx)("span",{className:"wkit-profile-uemail",children:t?.props?.wdkit_meta?.userinfo?.user_email})]})]}),"wdkit"!=window.wdkit_editor&&c&&(0,Be.jsx)("li",{className:i.includes("preset")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/preset/12570",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,Be.jsx)("path",{d:"M14 12H20M14 16H20M14 20H20M4 5C4 4.73478 4.10536 4.48043 4.29289 4.29289C4.48043 4.10536 4.73478 4 5 4H19C19.2652 4 19.5196 4.10536 19.7071 4.29289C19.8946 4.48043 20 4.73478 20 5V7C20 7.26522 19.8946 7.51957 19.7071 7.70711C19.5196 7.89464 19.2652 8 19 8H5C4.73478 8 4.48043 7.89464 4.29289 7.70711C4.10536 7.51957 4 7.26522 4 7V5ZM4 13C4 12.7348 4.10536 12.4804 4.29289 12.2929C4.48043 12.1054 4.73478 12 5 12H9C9.26522 12 9.51957 12.1054 9.70711 12.2929C9.89464 12.4804 10 12.7348 10 13V19C10 19.2652 9.89464 19.5196 9.70711 19.7071C9.51957 19.8946 9.26522 20 9 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V13Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,a.__)("Presets","wdesignkit")]})}),w&&(0,Be.jsx)("li",{className:i.includes("browse")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/browse",children:[(0,Be.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Browse Templates","wdesignkit")]})}),"wdkit"!=window.wdkit_editor&&(0,Be.jsx)("li",{className:i.includes("save_template")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/save_template",children:[(0,Be.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.625 5.375H4.375V8.625H20.625V5.375ZM4.375 21.625V10.25H12.5V14.8214C12.5 15.6001 13.3679 16.0646 14.0158 15.6327L15.75 14.4765L17.4842 15.6327C18.1321 16.0646 19 15.6001 19 14.8214V10.25H20.625V21.625H4.375ZM17.375 10.25H14.125V13.6068L15.2542 12.854C15.5544 12.6539 15.9456 12.6539 16.2458 12.854L17.375 13.6068V10.25ZM4.375 3.75C3.47754 3.75 2.75 4.47754 2.75 5.375V21.625C2.75 22.5225 3.47754 23.25 4.375 23.25H20.625C21.5225 23.25 22.25 22.5225 22.25 21.625V5.375C22.25 4.47754 21.5225 3.75 20.625 3.75H4.375ZM7.625 7C7.625 7.44873 7.26123 7.8125 6.8125 7.8125C6.36377 7.8125 6 7.44873 6 7C6 6.55127 6.36377 6.1875 6.8125 6.1875C7.26123 6.1875 7.625 6.55127 7.625 7ZM10.0625 7.8125C10.5112 7.8125 10.875 7.44873 10.875 7C10.875 6.55127 10.5112 6.1875 10.0625 6.1875C9.61376 6.1875 9.25 6.55127 9.25 7C9.25 7.44873 9.61376 7.8125 10.0625 7.8125ZM6 14.3125C6 13.8638 6.36377 13.5 6.8125 13.5H8.4375C8.88623 13.5 9.25 13.8638 9.25 14.3125C9.25 14.7612 8.88623 15.125 8.4375 15.125H6.8125C6.36377 15.125 6 14.7612 6 14.3125ZM6.8125 17.5625C6.36377 17.5625 6 17.9263 6 18.375C6 18.8237 6.36377 19.1875 6.8125 19.1875H15.75C16.1987 19.1875 16.5625 18.8237 16.5625 18.375C16.5625 17.9263 16.1987 17.5625 15.75 17.5625H6.8125Z",fill:"white"})}),"          ",(0,a.__)("Save Template","wdesignkit")]})}),"wdkit"==window.wdkit_editor&&m&&(0,Be.jsx)("li",{className:i.includes("widget-browse")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/widget-browse",children:[(0,Be.jsx)("svg",{width:"22",height:"24",viewBox:"0 0 22 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Browse Widgets","wdesignkit")]})}),w&&(0,Be.jsx)("li",{className:i.includes("my_uploaded")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/my_uploaded",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M9 16H15V10H19L12 3L5 10H9V16ZM12 5.83L14.17 8H13V14H11V8H9.83L12 5.83ZM5 18H19V20H5V18Z",fill:"white"})}),(0,a.__)("My Templates","wdesignkit")]})}),(1==w||1==m)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("li",{className:i.includes("share_with_me")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/share_with_me",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Shared with Me","wdesignkit")]})}),(0,Be.jsx)("li",{className:i.includes("manage_workspace")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/manage_workspace",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Manage Workspace","wdesignkit")]})})]}),"wdkit"==window.wdkit_editor&&(0,Be.jsxs)(Fe,{children:[!wdkitData?.wdkit_white_label?.licence_tab&&(0,Be.jsx)("li",{className:i.includes("activate")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/activate",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Manage Licence","wdesignkit")]})}),1==m&&(0,Be.jsx)("li",{className:i.includes("widget-listing")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/widget-listing",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("My Widgets","wdesignkit")]})}),(0,Be.jsx)("li",{className:i.includes("settings")?"wkit-mobileMenu-active":"",children:(0,Be.jsxs)(xe,{to:"/settings",children:[(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,a.__)("Settings","wdesignkit")]})})]}),(0,Be.jsx)("div",{className:"wkit-mobile-menu-logout",children:n?(0,Be.jsx)("span",{className:"wkit-menu-text wkit-menu-logout-text",onClick:()=>et(),children:(0,a.__)("Logout","wdesignkit")}):(0,Be.jsx)(xe,{className:"wkit-menu-text wkit-menu-logout-text",to:"/login",onClick:()=>et(),children:(0,a.__)("Login","wdesignkit")})})]})})]})]})}},kt=()=>(0,Be.jsx)("div",{className:"wkit-skeleton-main-wrap wkit-skeleton-row",children:Object.values(Ue(6)).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-skeleton-boxed wkit-workspace-boxed",children:(0,Be.jsxs)("div",{className:"wkit-skeleton-inner-boxed ",children:[(0,Be.jsxs)("ul",{children:[(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-small-img-box"})})]}),(0,Be.jsx)("div",{className:"wkit-template-bg",children:(0,Be.jsx)("div",{className:"wkit-skeleton-square"})}),(0,Be.jsx)("div",{className:"wkit-title-meta-content",children:(0,Be.jsx)("div",{className:"template-page-kit-title",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})}),(0,Be.jsxs)("div",{className:"wkit-title-meta-content",children:[(0,Be.jsx)("div",{className:"wkit-action-inner",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})}),(0,Be.jsx)("div",{children:(0,Be.jsx)("div",{className:"wkit-img-border-rounded"})})]})]})},t)))}),vt=t=>{const i=Y();if(!t.temp_id)return"";const[s,n]=(0,e.useState)(null),[l,r]=(0,e.useState)([]),[o,d]=(0,e.useState)(""),[c,p]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{r(it(t.userData,t.temp_id,t.action))}),[]),(0,Be.jsxs)("div",{className:"wkit-copy-move-ws-wrap",children:[(0,Be.jsx)("div",{className:"wkit-ws-label-heading",children:"move"==t.action?(0,a.__)("Move to Workspace","wdesignkit"):(0,a.__)("Copy to Workspace","wdesignkit")}),"   ",(0,Be.jsxs)("div",{className:"wkit-ws-content dropdown-custom-width",children:[(0,Be.jsxs)("select",{className:"wkit-select-workspace "+o,onChange:e=>n(e.target.value),children:[(0,Be.jsx)("option",{value:"",children:(0,a.__)("Select Workspace","wdesignkit")}),l&&l.map(((e,t)=>(0,Be.jsx)("option",{value:e.w_id,children:e.title},t)))]}),(0,Be.jsx)("div",{className:"wkit-copy-wrap",children:c?(0,Be.jsx)("button",{className:"btn-workspace-add wkit-pink-btn-class",children:st()}):(0,Be.jsx)("button",{type:"button",className:"btn-workspace-add wkit-pink-btn-class",onClick:()=>(async()=>{if("move"==t.action&&t.setloading(!0),d(""),s){p(!0);let a={wid:s,template_id:t.temp_id,wstype:t.action};i&&i.id&&"move"==t.action&&(a=Object.assign({},a,{current_wid:i.id}));var e=await ct(a);e?.data?.success?(p(!1),t.wdkit_set_toast(e?.data?.message,e?.data?.description,"","success")):(p(!1),t.wdkit_set_toast(e?.data?.message,e?.data?.description,"","danger"));const n=setTimeout((()=>{t.popCloseHandler(!1)}),1e3);if("move"==t.action){let e=await Qe();t.UpdateUserData(e),t.setloading(!1)}return()=>{clearTimeout(n)}}})(),children:"move"==t.action?(0,a.__)("Move","wdesignkit"):(0,a.__)("Copy","wdesignkit")})})]})]})},bt=e=>{const t=e.avg_rating,a=()=>(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),i=()=>(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"})]}),s=()=>(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wdkit-star-rating",children:[Array.from({length:5}).map(((e,n)=>t>=n+1?(0,Be.jsx)(a,{},n):t>=n+.5?(0,Be.jsx)(i,{},n):(0,Be.jsx)(s,{},n))),(0,Be.jsxs)("span",{children:["(",e.total_rating," ",e.total_rating<=1?"Review":"Reviews",")"]})]})},xt=t=>{var i=t.widgetData,s=wdkitData.WDKIT_URL;let n=t.index,l=J().pathname.split("/");const[r,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)(-1),p=G(),w=e=>e?e.replace(/\s/g,"%20"):"",m=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},g=()=>(0,Be.jsxs)("picture",{children:[i.responsive_image.map(((e,t)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:w(e.url)})},t))),(0,Be.jsx)("img",{className:"wkit-widget-image-content",src:i.image,alt:"featured-img",draggable:!1})]});return(0,Be.jsxs)("div",{className:"wkit-widgetlist-grid-content",children:["active"!=i.is_activated&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Template got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(!t.filter||t.filter&&"browse"!=t.filter)&&!(window.location.hash.search("#/share_with_me")>-1)&&!(window.location.hash.search("/kit/")>-1)&&(0,Be.jsx)("span",{className:"wdkit-inner-boxed-remove",children:(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-widget-card",children:[(0,Be.jsxs)("div",{className:"wkit-widget-card-top-part",children:[(0,Be.jsxs)("div",{className:"wkit-widget-upper-icons",children:["private"==i.status&&(0,Be.jsxs)("div",{className:"wkit-widget-public-icon",children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:s+"/assets/images/svg/private.svg",alt:"private",draggable:!1}),(0,Be.jsx)("span",{className:"wkit-widget-icon-tooltip",children:(0,a.__)("Private","wdesignkit")})]}),"public"==i.status&&(0,Be.jsxs)("div",{className:"wkit-widget-public-icon",children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:s+"/assets/images/svg/public.svg",alt:"public",draggable:!1}),(0,Be.jsx)("span",{className:"wkit-widget-icon-tooltip",children:(0,a.__)("Public","wdesignkit")})]})]}),"pro"==i.free_pro&&(0,Be.jsxs)("div",{className:"wdkit-card-tag",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})]}),(0,Be.jsxs)("div",{children:[l.includes("widget-browse")&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:s+"assets/images/wkit-dummy-bg.png",draggable:!1}),wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-widget-title-heading",children:g()}):(0,Be.jsx)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widgets/${Je(i.title)}/${i.id}`,target:"_blank",rel:"noopener noreferrer",children:g()})]}),!l.includes("widget-browse")&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:s+"assets/images/wkit-dummy-bg.png",draggable:!1}),(0,Be.jsxs)("picture",{children:[i.responsive_image.map(((e,t)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:w(e.url)})},t))),(0,Be.jsx)("img",{className:"wkit-widget-image-content",src:i.image,alt:"featured-img",draggable:!1})]})]})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-card-bottom-part",children:[(0,Be.jsxs)("div",{className:"wkit-widget-title-content",children:[l.includes("widget-browse")&&(wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:i.title})}):(0,Be.jsx)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widgets/${Je(i.title)}/${i.id}`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("span",{children:i.title})})),!l.includes("widget-browse")&&(0,Be.jsx)("div",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:i.title})}),t.existingwidget.includes(i.w_unique)?(0,Be.jsx)(xe,{className:"wkit-widget-download-activity",to:"/widget-listing",children:(0,Be.jsx)("span",{className:"wkit-widget-eye-icon",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 10 11",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)(Fe,{children:1==r&&d==n?(0,Be.jsx)("div",{className:"wkit-widget-download-activity",children:(0,Be.jsx)("div",{className:"plugin-download-icon",children:(0,Be.jsx)("div",{className:"wb-download-loader",style:{display:"flex"},children:(0,Be.jsx)("div",{className:"wb-download-loader-circle"})})})}):(0,Be.jsx)("div",{className:"wkit-widget-download-activity",onClick:e=>{(async(e,i)=>{if(Xe())var s="widget/download";else if(s="import/widget/free","pro"==e.free_pro)return p("/login"),!1;var n=!1;if("pro"==e.free_pro&&"1"==t?.credits?.pro_widget_limit?.meta_value){let a=m(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((0,a.__)("Get Pro Version to Download","wdesignkit"),"","","danger"),!1;let l=e.id;if(c(i),window.location.hash.search("#/share_with_me")>-1)var r={api_type:s,w_uniq:l,u_id:t.userinfo?.id,d_type:"workspace"};else r={api_type:s,w_uniq:l,u_id:t.userinfo?.id};let d={type:"wkit_public_download_widget",widget_info:JSON.stringify(r)};await Ye(d).then((async i=>{i?.success?await(async i=>{let s=JSON.parse(i.json),n=s?.widget_data?.widgetdata?.type,l=JSON.stringify(s?.Editor_data?.html),r=JSON.stringify(s?.Editor_data?.js),d=JSON.stringify(s?.Editor_data?.css),p=i.image;var w=Object.assign({},s.widget_data.widgetdata,{r_id:i.r_id,allow_push:!0});t?.userinfo?.id!=e?.user_id&&(w=Object.assign({},w,{allow_push:!1}));let m=Object.assign({},s.widget_data,{widgetdata:w});i={CardItems:{cardData:s.section_data},WcardData:m,Editor_data:s.Editor_Link,Editor_code:{Editor_codes:[s.Editor_data]}};var g="";if("elementor"===n?g=await Se("public_download",i,l,d,r,"",p).then((e=>e)):"gutenberg"===n?g=await Ze("public_download",i,l,d,r,"",p).then((e=>e)):"bricks"===n&&(g=await Re("public_download",i,l,d,r,"",p).then((e=>e))),g?.api?.success){let i=[...t.existingwidget];i.push(e.w_unique);let s=await Qe();s?.success&&t.wdkit_set_meta(s?.data),t.setexistingwidget(i),t.wdkit_set_toast((0,a.__)("Downloaded Successfully!","wdesignkit"),(0,a.__)("Start using or editing it further.","wdesignkit"),"","success")}o(!1),c(-1)})(i):(await t.wdkit_set_toast(i?.message,i?.description,"","danger"),await o(!1),await c(-1))}))})(i,n),o(!0)},children:(0,Be.jsx)("div",{className:"plugin-download-icon",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)(bt,{avg_rating:t?.widgetData?.avg_rating,total_rating:t?.widgetData?.total_rating}),(0,Be.jsxs)("div",{className:"wkit-widget-info-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:s+"/assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:t?.widgetData?.views?t.widgetData.views:0})]}),(0,Be.jsx)("hr",{className:"wkit-icon-divider-hr"}),(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:s+"/assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:t?.widgetData?.download?t.widgetData.download:0})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-builder-icon",children:[(0,Be.jsx)("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`})(i),draggable:!1}),(0,Be.jsx)("span",{className:"wkit-widget-builder-tooltip",children:m(i)?(0,a.__)(m(i)):(0,a.__)("","wdesignkit")})]})]})]})]})]})},ft=e=>(0,Be.jsxs)("div",{className:"wkit-upload-heading",children:[(0,Be.jsxs)("div",{className:"wkit-share-icon-heading",children:[e.svg,e.loader?(0,Be.jsx)("span",{className:"wkit-upload-heading-skeleton"}):(0,Be.jsx)("span",{className:"wkit-share-heading",children:e.title})]}),e.loader?(0,Be.jsx)("span",{className:"wkit-upload-heading-skeleton"}):e.custom_dropdown&&e.custom_dropdown()]}),jt=t=>{const[a,i]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{t.OpenPopup?i(!0):i(!1)}),[t.OpenPopup]),a)return(0,Be.jsxs)("div",{className:"wkit-plugin-popup-main-content",children:[(0,Be.jsx)("div",{className:"wkit-plugin-popup-outer",onClick:()=>{i(!1),t.closePopup()}}),(0,Be.jsxs)("div",{className:"wkit-plugin-popup-content",children:[(0,Be.jsxs)("div",{className:"wkit-plugin-popup-header",children:[(0,Be.jsx)("span",{children:t.heading}),(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:()=>{i(!1),t.closePopup()},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wkit-plugin-popup-body",children:t.body()})]})]})};wp.wkit_Helper={fetch_api:Ge,form_data:Ye,get_userinfo:Qe,Template_loop:dt,Kits_loop:e=>{let t=e.data;return(0,Be.jsx)("div",{className:"wkit-popup-template-boxed",children:(0,Be.jsxs)("div",{className:"wkit-kit-inner-loop",children:[(0,Be.jsxs)("div",{className:"wkit-popup-top-part",children:[t.post_status&&(0,Be.jsx)("div",{className:"template-status-pin-green",children:"publish"==t.post_status?(0,Be.jsx)("img",{className:"wkit-public-private-temp",src:qe+"assets/images/svg/public.svg",alt:(0,a.__)("public","wdesignkit")}):(0,Be.jsx)("img",{className:"wkit-public-private-temp",src:qe+"assets/images/svg/private.svg",alt:(0,a.__)("private","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wdkit-temp-feature-img",children:[(0,Be.jsx)("img",{src:t.post_image?t.post_image:qe+"assets/images/placeholder.jpg",alt:"featured-img"}),e&&"websitekit"==e.type&&(0,Be.jsxs)(xe,{to:"/my_uploaded/kit/"+t.id,className:"wkit-view",children:[(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("View All","wdesignkit")]})]})]}),(0,Be.jsx)("div",{className:"wkit-popup-boxed-bottom",children:(0,Be.jsx)("div",{className:"wrapper-title",children:e.data.title&&(0,Be.jsx)("div",{className:"title",children:e.data.title})})})]})})},Letter_image:Ke,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 i=t.template_id.pages[0].id;else t.template_id.sections?.length>0&&(i=t.template_id.sections[0].id);let e=t?.template_list?.findIndex((e=>e.id==i));if(e>-1)var s=t?.template_list?.[e]?.title,n=t?.template_list?.[e]?.global_data;else s="",n=""}else if(t.template_id){let e=t.template_id,a=t?.template_list?.findIndex((t=>t.id==e));n=a>-1?t?.template_list?.[a]?.global_data:""}const[r,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)({}),[p,w]=(0,e.useState)({}),[m,g]=(0,e.useState)(),[u,h]=(0,e.useState)({message:"",description:""});(0,e.useEffect)((()=>{_()}),[t.template_id]),wdkitData.WDKIT_URL;const _=async()=>{let e=Xe(),a="";if(e&&e.user_email){a=e.user_email;var i="import_template"}else i="import/template/free";if(t.template_id.pages&&0!=t.template_id.pages.length||t.template_id.sections&&0!=t.template_id.sections.length){if(o(!0),0!=t.template_id.pages.length){let _={type:"import_multi_template",api_type:i,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,builder:t.template_id.builder,page_section:"pages",custom_meta:t.custom_meta_import||!1},C=await Ye(_);if(C?.success&&C.data){let k=C.data?.response?.content?JSON.parse(C.data?.response?.content):[];if(k&&"elementor"==t.template_id.builder&&await gt(k),n&&(n?.typography?.length>0||n?.color?.length>0)&&"elementor"==t.template_id.builder){let x=Ae(k.content,t.global_data);var s=Object.assign({},k,{content:x})}else if(n&&(n?.typography?.length>0||n?.color?.length>0)&&"gutenberg"==t.template_id.builder){let f=We(k.content,t.global_data);s=Object.assign({},k,{content:f})}else s=k;let v=new FormData;v.append("action","get_wdesignkit"),v.append("kit_nonce",wdkitData.kit_nonce),v.append("type","import_page_section"),v.append("args",JSON.stringify(C.data.args)),v.append("temp_data",JSON.stringify(C.data.value)),v.append("template_id",JSON.stringify(C.data.id)),v.append("data",JSON.stringify(s));let b=await l().post(ajaxurl,v).then((e=>e.data));t.wdkit_set_toast(C?.message,C?.description,"","success"),h({message:C?.message,description:C?.description}),delete b.success,c(b),g(!0)}else h({message:C?.message,description:C?.description}),t.wdkit_set_toast(C?.message,C?.description,"","danger")}if(0!=t.template_id.sections.length){let j={type:"import_multi_template",api_type:i,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,builder:t.template_id.builder,page_section:"sections",custom_meta:t.custom_meta_import||!1},y=await Ye(j);if(y?.success&&y.data){let $=y.data?.response?.content?JSON.parse(y.data?.response?.content):[];if($&&"elementor"==t.template_id.builder&&await gt($),n&&(n?.typography?.length>0||n?.color?.length>0)&&"elementor"==t.template_id.builder){let M=Ae($.content,t.global_data);s=Object.assign({},$,{content:M})}else if(n&&(n?.typography?.length>0||n?.color?.length>0)&&"gutenberg"==t.template_id.builder){let H=We($.content,t.global_data);s=Object.assign({},$,{content:H})}else s=$;let N=new FormData;N.append("action","get_wdesignkit"),N.append("kit_nonce",wdkitData.kit_nonce),N.append("type","import_page_section"),N.append("args",JSON.stringify(y.data.args)),N.append("temp_data",JSON.stringify(y.data.value)),N.append("template_id",JSON.stringify(y.data.id)),N.append("data",JSON.stringify(s));let L=await l().post(ajaxurl,N).then((e=>e.data));t.wdkit_set_toast(y?.message,y?.description,"","success"),h({message:y?.message,description:y?.description}),delete L.success,w(L),g(!0)}else t.wdkit_set_toast(y?.message,y?.description,"","danger"),h({message:y?.message,description:y?.description})}o(!1)}else if(t.template_id){o(!0);let V={type:"import_template",api_type:i,email:a,template_id:t.template_id,editor:wdkitData.use_editor,builder:wdkitData.use_editor,custom_meta:t.custom_meta_import||!1},D=await Ye(V);if("elementor"==wdkitData.use_editor){if(D.content){let S=JSON.parse(D.content);await gt(S)}await mt()}if(D?.success){h({message:D?.message,description:D?.description});let Z=JSON.parse(D.content);if(Z&&Z.content&&"gutenberg"==wdkitData.use_editor){if(n&&(n?.typography?.length>0||n?.color?.length>0)&&"gutenberg"==wdkitData.use_editor){let E=We(Z.content,t.global_data);s=Object.assign({},Z,{content:E})}else s=Z;let R=wp.blocks.parse(s.content),B=JSON.stringify(R);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(B)){let O={type:"media_import",email:a,content:B,editor:wdkitData.use_editor},A=await Ye(O);A.data&&A.success&&(R=A.data,wp.data.dispatch("core/block-editor").insertBlocks(R))}else wp.data.dispatch("core/block-editor").insertBlocks(R);return setTimeout((()=>{Ye({type:"scan_nexter_widgets"})}),3e3),o(!1),g(!0),await setTimeout((async()=>{await wp.data.dispatch("core/editor").savePost(),await window.location.reload()}),1e3),()=>{clearTimeout(timeId)}}if(Z&&Z.content&&"elementor"==Z.file_type&&"elementor"==wdkitData.use_editor){if(n&&(n?.typography?.length>0||n?.color?.length>0)&&"elementor"==wdkitData.use_editor){let P=Ae(Z.content,t.global_data);s=Object.assign({},Z,{content:P})}else s=Z;g(!0),h({message:D?.message,description:D?.description});let T=JSON.stringify(s.content);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(T)){let W={type:"media_import",email:a,content:T,editor:wdkitData.use_editor},F=await Ye(W);F.data&&F.success&&(s.content=F.data)}var r=window.elementor,d=$e;if(r){if(void 0!==d){function I(e){return e.forEach((function(e){e.id=elementorCommon.helpers.getUniqueId(),0<e.elements.length&&I(e.elements)})),e}for(var p=0;p<s.content.length;p++){var m={elType:s.content[p].elType,settings:s.content[p].settings};m.elements=I(s.content[p].elements),d.run("document/elements/create",{container:r.getPreviewContainer(),model:m,options:{index:0}})}}else{var u=new Backbone.Model({getTitle:function(){return"Wdesignkit Import"}});for(d.channels.data.trigger("template:before:insert",u),p=0;p<s.content.length;p++)d.getPreviewView().addChildElement(s.content[p],{index:0});d.channels.data.trigger("template:after:insert",{})}return o(!1),()=>{clearTimeout(timeId)}}}else o(!1)}else h({message:D?.message,description:D?.description}),o(!1)}else o(!1)},C=(e,i)=>{var s=(0,Be.jsx)("img",{src:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`});if(t.template_list){let e=t.template_list.findIndex((e=>e.id==i));s=e>-1&&t.template_list[e].post_image?(0,Be.jsx)("img",{src:t.template_list[e].post_image}):(0,Be.jsx)("img",{src:`${wdkitData.wdkit_server_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`})}return(0,Be.jsxs)("div",{className:"wkit-success-list-item",children:[(0,Be.jsxs)("div",{className:"wkit-plugin-img-title-wrapper",children:[" ",s,(0,Be.jsx)("div",{className:"heading",children:e[i].title})]}),(0,Be.jsxs)("a",{href:e[i].view+(wdkitData?.wdkit_white_label?.plugin_news?"":"?wkit_user_review=true"),target:"_blank",className:"wkit-view-temp-btn",rel:"noopener noreferrer",children:[(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,a.__)("View","wdesignkit")]})]})};return"wdkit"!=window.wdkit_editor&&m&&!r&&setTimeout((()=>{var e=window?.WdkitPopup?.getElements("content");e&&(window.WdkitPopupToggle.close(e.get(0)),window.WdkitPopup.destroy());let t=document.querySelector("#wkit-builder-modal");t&&(t.classList.toggle("wkit-open"),window.location.hash="")}),1e3),(0,Be.jsxs)(Fe,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Importing Templates","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-success-body",children:r?(0,Be.jsxs)("div",{className:"import-data-loading",children:[(0,Be.jsxs)("span",{children:[s," ",(0,a.__)("Importing...","wdesignkit")]}),(0,Be.jsx)("div",{className:"wkit-import-progressBar-loader",children:(0,Be.jsx)("div",{className:"wkit-import-data-progressBar-thumb"})})]}):(0,Be.jsxs)("div",{className:"wkit-success-body",children:[(0,Be.jsx)("div",{className:"success-icon-temp",children:m?(0,Be.jsxs)("svg",{className:"wkit-success-icon",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{className:"wkit-template-error",children:(0,Be.jsxs)("svg",{width:"80",height:"80",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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"})]})})}),m?(0,Be.jsxs)("div",{className:"",children:[(0,Be.jsx)("div",{className:"wkit-success-heading wkit-get-success",children:u.message}),(0,Be.jsx)("div",{className:"wkit-desc",children:u.description})]}):(0,Be.jsxs)("div",{className:"",children:[(0,Be.jsx)("div",{className:"wkit-success-heading",children:u.message}),(0,Be.jsx)("div",{className:"wkit-desc",children:(0,Be.jsx)("span",{children:u.description})})]}),0==r&&(Object.keys(d).length>0||Object.keys(p).length>0)&&(0,Be.jsxs)("div",{className:"wkit-success-wrapper",children:[d&&Object.keys(d).length>0&&(0,Be.jsx)(Fe,{children:(0,Be.jsx)("div",{className:"wkit-success-list-content",children:(0,Be.jsxs)("div",{className:"wkit-success-col",children:["wdkit"!=wdkitData.use_editor&&(0,Be.jsx)("div",{className:"wkit-plugin-success-heading",children:(0,a.__)("Pages (")+Object.keys(d).length+")"}),d[t.template_id.pages[0].id]&&C(d,t.template_id.pages[0].id)]})})}),p&&Object.keys(p).length>0&&(0,Be.jsx)(Fe,{children:(0,Be.jsx)("div",{className:"wkit-success-list-content",children:(0,Be.jsxs)("div",{className:"wkit-success-col",children:["wdkit"!=wdkitData.use_editor&&(0,Be.jsx)("div",{className:"wkit-plugin-success-heading",children:(0,a.__)("Sections (")+Object.keys(p).length+")"}),p?.[t.template_id?.sections?.[0]?.id]&&C(p,t.template_id.sections[0].id)]})})})]})]})})]})},Plugin_missing:t=>{var i=wdkitData.WDKIT_URL;if(!t.template_id&&!t.templateData)return"";let s="",n=[];if(Object.values(t.templateData).map((e=>{e.id==Number(t.template_id)?(s=e,n.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)))&&(s=e,n.push(e)),t.template_id.sections.length>0&&t.template_id.sections.some((t=>Number(t.id)==Number(e.id)))&&(s=e,n.push(e)))})),"kit_page"==t.type){var r={color:[],typography:[]};n?.length>0&&n.map((e=>{Object.entries(e.global_data).map((([a,i])=>{e.global_data?.[a]?.length>0&&e.global_data[a].map((e=>{if("gutenberg"==t.kit_builder)var i=r?.[a]?.findIndex((t=>t.id==e.id));else i=r?.[a]?.findIndex((t=>t._id==e._id));-1==i&&r?.[a]?.push(e)}))}))}))}else if("wdkit"!=window.wdkit_editor&&t.template_id){var o=t.template_id;let e=t?.templateData?.findIndex((e=>e.id==o));r=e>-1?t?.templateData?.[e]?.global_data:null}else if(t.template_id.pages||t.template_id.sections){t.template_id.pages?.length>0?o=t.template_id.pages[0].id:t.template_id.sections?.length>0&&(o=t.template_id.sections[0].id);let e=t?.templateData?.findIndex((e=>e.id==o));r=e>-1?t?.templateData?.[e]?.global_data:null}const[d,c]=(0,e.useState)("step-1"),[p,w]=(0,e.useState)([]),[m,g]=(0,e.useState)(!1),[u,h]=(0,e.useState)(!1),[_,C]=(0,e.useState)([]),[k,v]=(0,e.useState)("yes"),[b,x]=(0,e.useState)(!1),[f,j]=(0,e.useState)("default"),[y,$]=(0,e.useState)("false"),[N,L]=(0,e.useState)([]),[M,H]=(0,e.useState)(!1),V=(0,e.useRef)([]);(0,e.useEffect)((()=>{D()}),[t.template_id]),(0,e.useEffect)((()=>{var e=!1;if("elementor"!=t.template_id?.builder&&"elementor"!=t?.kit_builder&&"elementor"!=window.wdkit_editor||"active"==Ie||(e=!0),p.length>0){!p.filter((e=>"active"!==e.status)).length>0&&!e&&("wdkit"==wdkitData?.use_editor?c("step-2"):r&&(r?.color?.length>0||r?.typography?.length>0)?c("global_import"):E(!0))}}),[p]);const D=async()=>{g(!0);let e=[];if(t.pluginData&&n.length>0)if(n.map((a=>{Object.values(t.pluginData).map(((t,i)=>{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 Ye(t);a?.data?.ele_container&&(j(a?.data?.ele_container),Ie=a?.data?.ele_container),a.data&&a.success?(w(a.data.plugins),g(!1),Object.values(a.data.plugins).map(((e,t)=>{e.status&&(_[t]=e.status)})),await C(_),S()):(w([]),g(!1))}else g(!1);else g(!1)},S=()=>{if(0==_.length)$("false");else{var e=0;_.map((t=>{"active"==t&&(e+=1)})),_.length==e?$("true"):$("false")}},Z=(e,t,s)=>{let n={"the-plus-addons-for-block-editor-pro":"https://theplusblocks.com/pricing/",theplus_elementor_addon:"https://theplusaddons.com/pricing/"};return u&&!e||N.includes(t)||M&&"unavailable"==e?(0,Be.jsx)("div",{className:"wkit-loading-check",children:(0,Be.jsx)("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",children:(0,Be.jsx)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#fff",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,Be.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})})}):"active"==e?(0,Be.jsx)("div",{className:"wkit-complete-check",children:(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M1.49554 5.97363L3.98608 8.46417L10.4615 1.98877",stroke:"white",strokeWidth:"1.99243",strokeLinecap:"round",strokeLinejoin:"round"})})}):"inactive"==e||"unavailable"==e?(0,Be.jsx)("a",{className:"",onClick:()=>{L([...V.current,s.p_id]),R("single",s)},children:(0,Be.jsx)("img",{className:"wkit-download-template",src:i+"assets/images/svg/popup-download.svg",alt:"popup-logo-img",draggable:!1})}):"warning"==e?(0,Be.jsxs)("div",{className:"wkit-icon-white-bg",children:[(0,Be.jsxs)("span",{className:"wkit-tooltip",children:[(0,a.__)("Something wen't wrong","wdesignkit")," ",(0,Be.jsx)("a",{href:"#",style:{color:"white",textDecoration:"underline"},children:(0,a.__)("Try Again","wdesignkit")})]}),(0,Be.jsx)("a",{children:(0,Be.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"==e?(0,Be.jsxs)("div",{className:"wkit-icon-orange-bg",children:[(0,Be.jsxs)("span",{className:"wkit-tooltip wkit-pro-manually",children:[(0,a.__)("Install Manually.","wdesignkit"),(0,Be.jsx)("a",{href:n?.[s?.original_slug]?n[s.original_slug]:"#",style:{color:"white",textDecoration:"underline"},children:(0,a.__)("Learn How?","wdesignkit")})]}),(0,Be.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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},R=async(e,t)=>{if("all"==e){let e=Object.values(document.querySelectorAll(".wkit-pro-manually"));e.length>0&&e.map((e=>{"none"!=e.style.display&&""!=e.style.display||(e.style.visibility="visible",setTimeout((()=>{e.style.visibility="hidden"}),2e3))})),p.map((async e=>{"active"!=e.status&&"1"!=e.freepro&&(V.current.length>0?V.current.push(e.p_id):(V.current.push(e.p_id),await H(!0),await L(V.current),await B(e,2),await L([]),await H(!1)))}))}else"single"==e&&(V.current.length>0?V.current.push(t.p_id):(V.current.push(t.p_id),await h(!0),await B(t,2),await h(!1)))},B=async(e,t)=>{if(e&&e.p_id)if("active"!=e.status){let a={type:"install_plugins_depends",plugins:JSON.stringify(e),editor:wdkitData.use_editor},i=await Ye(a);if(null==i?.success||null==i?.p_id){if(Number(t)<3){let a=t?t+1:1;await B(e,a)}}else i?.success&&p&&e.p_id==i.p_id&&(Object.values(p).map(((e,t)=>{e.p_id==i.p_id&&(p[t].status=i.status),e.status&&(_[t]=e.status)})),await C(_),S());if(V.current.splice(0,1),L(V.current),V.current.length>0){let e=V.current[0],t=p.findIndex((t=>t.p_id==e)),a=p?.[t]?p?.[t]:[];await B(a,2)}}else{let t=V.current.findIndex((t=>t==e.p_id));t>-1&&(V.current.splice(t,1),L(V.current))}},E=(e,a)=>{if(e){let e=!1;"yes"==k&&(e=!0),c("step-1"),t.handlerSuccessImport(!0,e,a)}},O=(e,t)=>{var a;a=e[0].post_image&&e[0].post_image.indexOf("wdesignkit")>-1?(0,Be.jsx)("img",{src:e[0].post_image}):i+"assets/images/placeholder.jpg";var s="";e[0].title&&(s=(0,Be.jsx)("span",{className:"wkit-download-temp-title",children:e[0].title}));var n="";if(e[0].wp_post_type!=t.type||void 0!==t.change&&0!=t.change)n="";else{let e="";wdkitData.post_type_list[t.type]&&(e=wdkitData.post_type_list[t.type])}return(0,Be.jsxs)("div",{className:"section-inner-list",children:[a,s,n]})},A=(e=!0)=>{const i=()=>{r&&(r?.color?.length>0||r?.typography?.length>0)?c("global_import"):E(!!e)};"step-1"!=d||"kit_page"!=t.type&&"wdkit"!=t.type?"step-1"==d&&"kit_page"!=t.type&&"wdkit"!=t.type?("active"===f||"elementor"!=t.template_id?.builder&&"elementor"!=t?.kit_builder&&"elementor"!=window.wdkit_editor||1==window.confirm((0,a.__)("Do you want to continue without activating the Elementor container?","wdesignkit")))&&(c("step-3"),i()):"step-2"!=d||0==t.template_id.pages.length&&0==t.template_id.sections.length||(c("step-3"),i()):("active"===f||"elementor"!=t.template_id?.builder&&"elementor"!=t?.kit_builder&&"elementor"!=window.wdkit_editor||1==window.confirm((0,a.__)("Do you want to continue without activating the Elementor container?","wdesignkit")))&&c("step-2")},T=(e,a,i)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("select",{className:"wkit-select",value:e||"page",onChange:e=>{var s,n,l;s=i,n=e.target.value,l=a.id,"pages"==s&&l&&t.template_id.pages.map(((e,a)=>{e.id===l&&(t.template_id.pages[a].wp_post_type=n,t.template_id.pages[a].change=!0)})),"sections"==s&&l&&t.template_id.sections.map(((e,a)=>{e.id===l&&(t.template_id.sections[a].wp_post_type=n,t.template_id.sections[a].change=!0)})),x(!b)},children:wdkitData.post_type_list&&Object.entries(wdkitData.post_type_list).map((([e,t],a)=>(0,Be.jsx)(Fe,{children:(0,Be.jsx)("option",{value:e,children:t})},a)))})}),P=()=>(0,Be.jsx)(Fe,{children:(0,Be.jsxs)("div",{className:"wkit-popup-body wkit-skeleton",children:[(0,Be.jsx)("div",{className:"wkit-pluginMissing-text",children:(0,a.__)("To download this template, you will need to install below listed plugins","wdesignkit")}),(0,Be.jsx)("div",{className:"plugin-wrapper",children:Array.from({length:2}).map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-plugin-list-item",children:[(0,Be.jsxs)("div",{className:"wkit-plugin-img-title-wrapper",children:[(0,Be.jsx)("div",{className:"wkit-plugin-image",children:(0,Be.jsx)("img",{src:i+"assets/images/jpg/wdkit-logo.png",alt:"plugin-icon"})}),(0,Be.jsx)("div",{className:"wkit-plugin-name",children:(0,a.__)("The plus addons for elementor","wdesignkit")})]}),(0,Be.jsx)("span",{className:"wkit-download-skeleton-img",children:(0,Be.jsx)("img",{className:"wkit-download-template",src:i+"assets/images/svg/popup-download.svg",alt:"popup-logo-img",draggable:"false"})})]},t)))}),(0,Be.jsxs)("div",{className:"wkit-button-popup",children:[(0,Be.jsxs)("button",{className:"wkit-download-select",children:[(0,Be.jsx)("span",{children:"Continue Anyway"}),(0,Be.jsx)("div",{className:"wkit-continue-toot-tip",children:(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("button",{className:"wkit-download-all wkit-btn-class",children:(0,a.__)("Install All","wdesignkit")})]})]})});var W="Install Missing Plugin";return p.filter((e=>"active"!=e.status)).length>1&&(W="Install Missing Plugins"),(0,Be.jsxs)("div",{className:"popup-missing",children:["step-1"==d&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:W}),m&&(0,Be.jsx)(P,{}),!m&&(p.length>0&&t.pluginData,(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsx)("div",{className:"wkit-pluginMissing-text",children:(0,a.__)("To download this template, you will need to install below listed plugins","wdesignkit")}),(0,Be.jsxs)("div",{className:p.length>0&&t.pluginData?"plugin-wrapper":"plugin-wrapper no-plugin",children:[p.length>0&&t.pluginData?(0,Be.jsx)(Be.Fragment,{children:Object.values(p).map(((e,t)=>(0,Be.jsx)(Fe,{children:(0,Be.jsxs)("div",{className:"wkit-plugin-list-item",children:[(0,Be.jsxs)("div",{className:"wkit-plugin-img-title-wrapper",children:[(0,Be.jsx)("div",{className:"wkit-plugin-image",children:(0,Be.jsx)("img",{src:e.plugin_icon,alt:"plugin-icon"})}),(0,Be.jsx)("div",{className:"wkit-plugin-name",children:e.plugin_name})]}),Z(e.status||"",e.p_id,e)]})},t)))}):(0,Be.jsxs)("div",{className:"wkit-no-install-plugin",children:[(0,Be.jsx)("img",{src:i+"assets/images/jpg/no-plugin.png",className:"no-plugin-img",alt:"no-plugin"}),(0,Be.jsx)("h6",{className:"no-plugin-title",children:(0,a.__)("No need to install any Plugin.","wdesignkit")}),(0,Be.jsx)("p",{className:"no-plugin-desc",children:(0,a.__)("You have selected design which doesn't need any plugin to install. Press Next.","wdesignkit")})]}),(()=>{let e=Object.values(p)?.length>0?Object.values(p):[],i=e.findIndex((e=>"elementor"==e?.original_slug));return i>-1&&"active"==e?.[i]?.status&&("active"==Ie||"elementor"!=t.template_id?.builder&&"elementor"!=t?.kit_builder&&"elementor"!=window.wdkit_editor?void 0:(0,Be.jsxs)(Fe,{children:["active"==f&&(0,Be.jsx)("div",{className:"wdkit-popup-msg-container wdkit-success-msg",children:(0,Be.jsx)("span",{className:"wdkit-popup-warning",children:(0,Be.jsx)("span",{className:"wdkit-popup-warning-text",children:(0,a.__)("System Container Activated Successfully. Please Refresh to Apply the changes on the site","wdesignkit")})})}),"active"!=f&&(0,Be.jsxs)("div",{className:"wdkit-popup-msg-container",children:[(0,Be.jsxs)("span",{className:"wdkit-popup-warning",children:[(0,Be.jsx)("svg",{className:"wdkit-popup-container-svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M9.00098 0.0078125C4.03867 0.0078125 0.000976562 4.04551 0.000976562 9.00781C0.000976562 13.9701 4.03867 18.0078 9.00098 18.0078C13.9633 18.0078 18.001 13.9701 18.001 9.00781C18.001 4.04551 13.9633 0.0078125 9.00098 0.0078125ZM9.00098 1.80781C10.6621 1.80781 12.1892 2.37864 13.4087 3.32744L3.32061 13.4159C2.37184 12.1965 1.80098 10.6689 1.80098 9.00781C1.80098 5.03779 5.03096 1.80781 9.00098 1.80781ZM9.00098 16.2078C7.33984 16.2078 5.81318 15.637 4.59326 14.6886L14.6818 4.6001C15.6301 5.82002 16.201 7.34668 16.201 9.00781C16.201 12.9778 12.971 16.2078 9.00098 16.2078Z",fill:"#FC4032"})}),(0,Be.jsx)("span",{className:"wdkit-popup-warning-text",children:(0,a.__)("Your system's container is not currently active. To use this design , you need to enable it.","wdesignkit")})]}),"loading"==f?(0,Be.jsx)("span",{className:"wdkit-popup-container-switcher wkit-publish-loader",children:(0,Be.jsx)("span",{className:"wb-loader-circle"})}):(0,Be.jsxs)("span",{className:"wdkit-popup-container-switcher",children:[(0,Be.jsx)("span",{className:"wdkit-popup-toggle-text",children:(0,a.__)("Container","wdesignkit")})," ",(0,Be.jsxs)("label",{children:[(0,Be.jsx)("input",{type:"checkbox",className:"wdkit-popup-toggle-checkbox",checked:"active"==f,onChange:e=>{1==e.target.checked&&(()=>{j("loading");let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","activate_container"),l().post(ajaxurl,e),setTimeout((()=>{j("active")}),1e3)})()}}),(0,Be.jsx)("span",{className:"wdkit-popup-toggle-label"})]})]})]})]}))})()]}),(0,Be.jsx)("div",{className:"wkit-button-popup",children:"false"==y&&p.length>0?(0,Be.jsxs)(Fe,{children:[(0,Be.jsxs)("button",{className:"wkit-download-select",onClick:e=>A(),children:[(0,Be.jsx)("span",{children:(0,a.__)("Continue Anyway","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-continue-toot-tip",children:[(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-continue-toot-tip-text",children:(0,a.__)("It will skip plugin installation and your imported page might not look as expected","wdesignkit")})]})]}),(0,Be.jsx)("button",{className:"wkit-download-all wkit-btn-class",disabled:!!u,onClick:()=>R("all"),children:u?(0,a.__)("Installing","wdesignkit"):(0,a.__)("Install All","wdesignkit")},Math.random().toString())]}):(0,Be.jsx)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{A()},children:(0,a.__)("Next","wdesignkit")})})]}))]}),("kit_page"==t.type||"wdkit"==t.type)&&"step-2"==d&&(0,Be.jsxs)(Fe,{children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Import Templates","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsxs)("div",{className:"kit-type-flex",children:[0!=t.template_id?.pages?.length&&(0,Be.jsxs)("div",{className:"wkit-kit-select-content",children:[(0,Be.jsxs)("span",{className:"wkit-select-count",children:["Pages: ",t.template_id?.pages?.length]}),(0,Be.jsxs)("div",{className:"kit-type-col",children:[(()=>{if(0!=t.template_id.pages.length){let e=Object.entries(t.template_id.pages).map((([e,a],i)=>{let s=t.templateData.filter((e=>a.id==e.id));var n="";return a?.wp_post_type?n=a.wp_post_type:Object.keys(wdkitData.post_type_list).includes(a?.type)&&(n=a.type),Object.keys(wdkitData.post_type_list).includes(n)?(t.template_id.pages[i].wp_post_type=n,t.template_id.pages[i].change=!0):(n="page",t.template_id.pages[i].wp_post_type=n,t.template_id.pages[i].change=!0),(0,Be.jsx)(Fe,{children:(0,Be.jsxs)("li",{className:"kit-page-list",children:[O(s,a),(0,Be.jsx)("span",{className:"section-page-post-type",children:T(n||"page",a,"pages")})]})},i)}));return(0,Be.jsxs)(Fe,{children:["wdkit"!=wdkitData.use_editor&&(0,Be.jsx)("div",{className:"kit-type-heading",children:(0,a.__)("List of Pages ","wdesignkit")+"("+t.template_id.pages.length+")"}),(0,Be.jsx)("ul",{className:"kit-pages-sec-lists",children:e})]})}})()," "]})]}),0!=t.template_id?.sections?.length&&(0,Be.jsxs)("div",{className:"wkit-kit-select-content",children:[(0,Be.jsxs)("span",{className:"wkit-select-count",children:["Sections: ",t.template_id?.sections?.length]}),(0,Be.jsxs)("div",{className:"kit-type-col",children:[" ",(()=>{if(0!=t.template_id.sections.length){let e=Object.entries(t.template_id.sections).map((([e,a],i)=>{let s=t.templateData.filter((e=>a.id==e.id));var n="";return a?.wp_post_type?n=a.wp_post_type:Object.keys(wdkitData.post_type_list).includes(a?.type)&&(n=a.type),Object.keys(wdkitData.post_type_list).includes(n)?(t.template_id.sections[i].wp_post_type=n,t.template_id.sections[i].change=!0):(n="1001"==a?.post_builder?"elementor_library":"post",t.template_id.sections[i].wp_post_type=n,t.template_id.sections[i].change=!0),(0,Be.jsx)(Fe,{children:(0,Be.jsxs)("li",{className:"kit-section-list",children:[O(s,a),(0,Be.jsx)("span",{className:"section-page-post-type",children:T(n||"post",a,"sections")})]})},i)}));return(0,Be.jsxs)(Fe,{children:["wdkit"!=wdkitData.use_editor&&(0,Be.jsx)("div",{className:"kit-type-heading",children:(0,a.__)("List of Sections ","wdesignkit")+"("+t.template_id.sections.length+")"}),(0,Be.jsx)("ul",{className:"kit-pages-sec-lists",children:e})]})}})()," "]})]})]}),(0,Be.jsx)("div",{className:"wkit-next-step-second",children:r&&(r?.color?.length>0||r?.typography?.length>0)?(0,Be.jsx)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{A()},children:(0,a.__)("Next","wdesignkit")}):(0,Be.jsx)("button",{className:"wkit-next-step wkit-btn-class",onClick:e=>{A()},children:(0,a.__)("Import","wdesignkit")})})]})]}),"global_import"==d&&(0,Be.jsxs)(Be.Fragment,{children:[("elementor"==t.template_id?.builder||"elementor"==t?.kit_builder||"elementor"==window.wdkit_editor)&&(0,Be.jsx)(Oe,{template_global:r,import_template:e=>E(!0,e)}),("gutenberg"==t.template_id?.builder||"gutenberg"==t?.kit_builder||"gutenberg"==window.wdkit_editor)&&(0,Be.jsx)(Pe,{template_global:r,import_template:e=>E(!0,e)})]})]})},Popup_body_data:()=>{var e=wdkitData.WDKIT_URL;return(0,Be.jsxs)("div",{className:"popup_option_main",children:[(0,Be.jsxs)("div",{className:"wdesignkit-dropdown",children:[(0,Be.jsx)("div",{className:"wdesign_heading",children:(0,a.__)("Page Builder","wdesignkit")}),(0,Be.jsxs)("button",{className:"wdesignkit-openbtn",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit"),(0,Be.jsx)("img",{src:e+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown-content",children:[(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 2","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 3","wdesignkit")]})]})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown",children:[(0,Be.jsx)("div",{className:"wdesign_heading",children:(0,a.__)("Section","wdesignkit")}),(0,Be.jsxs)("button",{className:"wdesignkit-openbtn",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit"),(0,Be.jsx)("img",{src:e+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown-content",children:[(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 2","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 3","wdesignkit")]})]})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown",children:[(0,Be.jsx)("div",{className:"wdesign_heading",children:(0,a.__)("Page","wdesignkit")}),(0,Be.jsxs)("button",{className:"wdesignkit-openbtn",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit"),(0,Be.jsx)("img",{src:e+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown-content",children:[(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 2","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 3","wdesignkit")]})]})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown",children:[(0,Be.jsx)("div",{className:"wdesign_heading",children:(0,a.__)("Kits","wdesignkit")}),(0,Be.jsxs)("button",{className:"wdesignkit-openbtn",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit"),(0,Be.jsx)("img",{src:e+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown-content",children:[(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 2","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 3","wdesignkit")]})]})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown",children:[(0,Be.jsx)("div",{className:"wdesign_heading",children:(0,a.__)("Plugin Required","wdesignkit")}),(0,Be.jsxs)("button",{className:"wdesignkit-openbtn",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit"),(0,Be.jsx)("img",{src:e+"assets/images/svg/filter_expand_more.svg",alt:"dashborad img",className:"open-icon-drop"})]}),(0,Be.jsxs)("div",{className:"wdesignkit-dropdown-content",children:[(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 1","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 2","wdesignkit")]}),(0,Be.jsxs)("a",{href:"#",children:[(0,Be.jsx)("img",{src:e+"assets/images/svg/elementor.svg",alt:"dashborad img"}),(0,a.__)("Option 3","wdesignkit")]})]})]})]})},Wkit_user_details:t=>{const[i,s]=(0,e.useState)(!1);G();let n=Xe(),l=J(),r=l.pathname.split("/");return(0,Be.jsx)(Fe,{children:!r.includes("login")&&!r.includes("login-api")&&!r.includes("builder")&&(0,Be.jsxs)("div",{className:"wkit-user-details-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-filter-update-btn",children:[(r.includes("browse")||r.includes("widget-browse"))&&!r.includes("kit")&&(0,Be.jsx)("div",{className:"wkit-filter-humber-menu",children:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)(Fe,{children:i?(0,Be.jsx)("a",{className:"wkit-update-latest-btn wkit-pink-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}):(0,Be.jsx)("a",{className:"wkit-update-latest-btn wkit-pink-btn-class",onClick:()=>{(async()=>{s(!0),await Ye({type:"update_latest_plugin"}).then((async e=>{if(e.success){let a=await Qe();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"]);s(!1)}))})()},children:(0,a.__)("Update "+t?.wdkit_meta?.Setting?.plugin_version?.version)})})]}),(0,Be.jsxs)("div",{className:"wkit-user-info",children:[(0,Be.jsx)("div",{className:"wkit-info-data",children:t?.wdkit_meta?.userinfo?(0,Be.jsxs)(Fe,{children:[(0,Be.jsx)("div",{className:"wkit-user-title",children:t?.wdkit_meta?.userinfo?.full_name}),(0,Be.jsx)("div",{className:"wkit-desg",children:t?.wdkit_meta?.userinfo?.user_email})]}):n?(0,Be.jsx)(Fe,{children:(0,Be.jsxs)("div",{className:"wkit-user-title-loading-wrap",children:[(0,Be.jsxs)("div",{className:"wkit-user-title-part",children:[(0,Be.jsx)("div",{className:"wkit-user-title-loading"}),(0,Be.jsx)("div",{className:"wkit-desg-loading"})]}),(0,Be.jsx)("div",{className:"wkit-ex-profile-img"})]})}):(0,Be.jsx)("div",{className:"wdkit-login-signUp-btn",onClick:()=>{t.wdkit_Login_Route(l.pathname)},children:(0,Be.jsx)(xe,{to:"/login",children:(0,Be.jsxs)("button",{children:[" ",(0,a.__)("Login / SignUp","wdesignkit")," "]})})})}),n&&(0,Be.jsxs)("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")}})(),children:[t?.wdkit_meta?.userinfo&&(0,Be.jsx)(Fe,{children:t?.wdkit_meta?.userinfo?.user_profile?(0,Be.jsx)("img",{src:t.wdkit_meta.userinfo.user_profile,alt:"user-profile",style:{objectFit:"cover"}}):(0,Be.jsx)("div",{className:"wkit-ex-profile-img",children:Ke(t?.wdkit_meta?.userinfo?.full_name)})}),t?.wdkit_meta?.userinfo&&(0,Be.jsxs)("ul",{className:"wkit-user-profile-menu",children:[(0,Be.jsx)("div",{className:"wkit-drop-down-outer",style:{zIndex:"99"}}),(0,Be.jsxs)("div",{className:"wkit-profile-dropDown",children:[!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("li",{children:(0,Be.jsxs)("a",{href:`${wdkitData.wdkit_server_url}${t?.wdkit_meta?.userinfo?.user_name}`,target:"_blank",rel:"noopener noreferrer",children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Profile","wdesignkit")]})}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("li",{children:(0,Be.jsxs)("a",{style:{cursor:"pointer"},onClick:e=>{(async()=>{await et(),t.wdkit_set_toast([(0,a.__)("Logged out successfully!","wdesignkit"),(0,a.__)("You're logged out! Remember your login details and sign in again.","wdesignkit"),"","success"]),await Ye({type:"wkit_meta_data",meta_type:"all"}).then((e=>{1==e?.data?.success&&t.wdkit_set_meta(e?.data)}))})(t.wdkit_Login_Route(l.pathname))},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Logout","wdesignkit")]})})]})]})]})]})]})})},checkBuilder:(e,t="all",a)=>{let i=!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,s])=>{s.p_id==Number(e)&&s.original_slug==t&&(i=!0)}))}else{let s=a;s&&Object.entries(s).forEach((([a,s])=>{s.p_id==Number(e)&&s.original_slug==t&&(i=!0)}))}return i},loadingIcon:()=>(0,Be.jsx)("div",{className:"wkit-loading-check",children:(0,Be.jsx)("img",{style:{width:"125px",height:"125px"},src:qe+"assets/images/jpg/wdkit_loader.gif"})}),Add_workspace:t=>{const i=()=>{document.querySelector(".wkit-model-transp.wkit-popup-show")&&document.querySelector(".wkit-model-transp.wkit-popup-show").classList.remove("wkit-popup-show"),t.closePopUp()},[s,n]=(0,e.useState)(""),[l,r]=(0,e.useState)(!1),[o,d]=(0,e.useState)(!1),[c,p]=(0,e.useState)("");return(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{i()},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wdesignkit-model-content",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Add New Workspace","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body wkit-AddWp-popup-body",children:[(0,Be.jsx)("label",{className:"wkit-popup-content-title",children:(0,a.__)("Workspace Name","wdesignkit")}),(0,Be.jsx)("input",{type:"text",name:"workspace-name",className:"wkit-search-share "+c,placeholder:(0,a.__)("Enter Workspace Name","wdesignkit"),value:s,onChange:e=>{(e.target.value.length<=100||(t.Toast(["Limit Reached","Limit Reached","","danger"]),0))&&n(e.target.value)}}),l?(0,Be.jsx)("button",{className:"wkit-add-workspace-btn wkit-btn-class",children:st()}):(0,Be.jsx)("button",{className:"wkit-add-workspace-btn wkit-btn-class",onClick:()=>(async()=>{if("manage"==t.type&&t.setLoading(!0),p(""),s){r(!0);let a={builder:window.wdkit_editor,title:s,wstype:"add"};var e=await ct(a);if(e?.data?.success){let a=await Qe();d(!0),r(!1),t.Toast(e?.data?.message,e?.data?.description,"success");const s=setTimeout((()=>{d(!1),i()}),1e3);return t.UpdateUserData(a),()=>{clearTimeout(s)}}t.Toast(e?.data?.message,e?.data?.description,"danger"),d(!1),r(!1)}else p("wkit-error-red");"manage"==t.type&&t.setLoading(!1)})(),children:(0,a.__)("Next","wdesignkit")})]})]})]})})},Popup_Content:nt,select_WorkSpace:it,manage_WorkSpace_Api:ct,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,i])=>{i.parent===t&&(a[i.term_id]=i)})),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:tt,wkit_set_user_login:e=>{e&&localStorage.setItem("wdkit-login",JSON.stringify(e))},wkit_get_user_login:Xe,wkit_logout:et};const yt=e=>{let t=e?.data?e.data:"";if(t)return(0,Be.jsxs)("div",{className:"wkit-in-login-popup",children:[(0,Be.jsx)("div",{className:"wkit-in-login-popup-outer",onClick:()=>{e.close_popup()}}),(0,Be.jsxs)("div",{className:t?.size?`wkit-in-login-popup-content wkit-${t.size}-popup`:"wkit-in-login-popup-content",children:[(0,Be.jsxs)("div",{className:"wkit-lg-popup-body",children:[(0,Be.jsxs)("div",{className:"wkit-lg-upper-part",children:[t?.icon&&(0,Be.jsx)("div",{className:"wkit-lg-popup-icon",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"31",height:"28",viewBox:"0 0 22 19",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.28978 1.36021L0.819777 15.5002C0.645145 15.8026 0.552743 16.1455 0.551766 16.4947C0.550788 16.8439 0.641268 17.1873 0.814203 17.4907C0.987139 17.7941 1.2365 18.047 1.53748 18.2241C1.83847 18.4012 2.18058 18.4964 2.52978 18.5002H19.4698C19.819 18.4964 20.1611 18.4012 20.4621 18.2241C20.7631 18.047 21.0124 17.7941 21.1854 17.4907C21.3583 17.1873 21.4488 16.8439 21.4478 16.4947C21.4468 16.1455 21.3544 15.8026 21.1798 15.5002L12.7098 1.36021C12.5315 1.06631 12.2805 0.823324 11.981 0.654689C11.6814 0.486053 11.3435 0.397461 10.9998 0.397461C10.656 0.397461 10.3181 0.486053 10.0186 0.654689C9.71906 0.823324 9.46805 1.06631 9.28978 1.36021ZM10.999 5.25C11.6894 5.25 12.249 5.80964 12.249 6.5V10.5C12.249 11.1904 11.6894 11.75 10.999 11.75C10.3087 11.75 9.74902 11.1904 9.74902 10.5V6.5C9.74902 5.80964 10.3087 5.25 10.999 5.25ZM10.999 13.25C10.3087 13.25 9.74902 13.8096 9.74902 14.5C9.74902 15.1904 10.3087 15.75 10.999 15.75H11.009C11.6994 15.75 12.259 15.1904 12.259 14.5C12.259 13.8096 11.6994 13.25 11.009 13.25H10.999Z",fill:"#FF1E1E"})})}),t?.heading&&(0,Be.jsx)("span",{className:"wkit-lg-popup-heading",children:t?.heading}),t?.sub_heading.length>0&&(0,Be.jsx)("div",{className:"wkit-lg-sub-heading",children:t?.sub_heading.map((e=>(0,Be.jsx)("span",{className:`wkit-lg-popup-text wkit-lg-text-${e?.type?e.type:"normal"}`,children:e.text})))})]}),(t?.checkbox_text||t?.note?.length>0)&&(0,Be.jsxs)("div",{className:"wkit-lg-middle-part",children:[t?.note?.length>0&&(0,Be.jsxs)("div",{className:"wkit-lg-note-content",children:[(0,Be.jsxs)("span",{className:"wkit-lg-note-head",children:[" ",(0,a.__)("Note :","wdesignkit")," "]}),t?.note.map((e=>"link"==e?.type?(0,Be.jsx)("a",{href:e.link,className:"wkit-lg-popup-text wkit-lg-text-link",target:"_blank",rel:"noopener noreferrer",children:e.text}):(0,Be.jsx)("span",{className:"wkit-lg-popup-text wkit-lg-text-normal",children:e.text})))]}),t?.checkbox_text&&(0,Be.jsxs)("div",{className:"wkit-lg-checkbox-content",children:[(0,Be.jsx)("input",{className:"wkit-checkbox-inp",type:"checkbox",checked:!0,disabled:!0}),(0,Be.jsx)("span",{className:"wkit-checkbox-text",children:t?.checkbox_text})]})]})]}),(0,Be.jsxs)("div",{className:"wkit-lg-popup-footer",children:[(0,Be.jsxs)("div",{className:"wkit-lg-popup-footer-btns",children:[t?.ft_btn1_text&&(0,Be.jsx)(Be.Fragment,{children:t?.ft_btn1_link?(0,Be.jsx)("a",{href:t?.ft_btn1_link,target:"_blank",rel:"noopener noreferrer",className:"wkit-btn-class",children:t?.ft_btn1_text}):(0,Be.jsx)("div",{className:"wkit-btn-class",onClick:()=>{t?.ft_btn1_fun&&e.btn1_fun()},children:t?.ft_btn1_text})}),t?.ft_btn2_text&&(0,Be.jsx)(Be.Fragment,{children:t?.ft_btn2_link?(0,Be.jsx)("a",{href:t?.ft_btn2_link,target:"_blank",rel:"noopener noreferrer",className:"wkit-outer-btn-class",children:t?.ft_btn2_text}):(0,Be.jsx)("div",{className:"wkit-outer-btn-class",onClick:()=>{t?.ft_btn2_fun&&e.btn2_fun()},children:t?.ft_btn2_text})})]}),t?.ex_link_text&&(0,Be.jsx)("div",{className:"wkit-footer-link",children:t?.ex_link_url?(0,Be.jsx)("a",{className:"wkit-footer-link-txt",href:t?.ex_link_url,target:"_blank",rel:"noopener noreferrer",children:t?.ex_link_text}):(0,Be.jsx)("span",{className:"wkit-footer-link-txt",children:t?.ex_link_text})})]})]})]})},{form_data:$t,wkit_set_user_login:Nt,get_userinfo:Lt,wkit_get_user_login:Mt}=wp.wkit_Helper,Ht=t=>{var i=wdkitData.WDKIT_ASSETS;let s=ze(),n=wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:"WDesignKit",l={icon:!0,heading:(0,a.__)("Incorrect Login Details","wdesignkit"),sub_heading:(0,a.__)(`Are you first time trying to login at ${n} ?`,"wdesignkit"),sub_heading:[{type:"normal",text:(0,a.__)(`Are you first time trying to login at ${n} ?`,"wdesignkit")}],checkbox_text:"",note:"",ft_btn1_text:(0,a.__)("Yes, I am","wdesignkit"),ft_btn1_link:"",ft_btn1_fun:!0,ft_btn2_text:(0,a.__)("No, I forgot password","wdesignkit"),ft_btn2_link:`${wdkitData.wdkit_server_url}password/forgot`,ft_btn2_fun:!1,size:"small"},r={icon:!1,heading:(0,a.__)(`Have you signed up for ${n} Account?`,"wdesignkit"),sub_heading:"  ",sub_heading:[{type:"normal",text:(0,a.__)("You need to signup for ","wdesignkit")},{type:"color",text:(0,a.__)(`${n} account separately`,"wdesignkit")},{type:"normal",text:(0,a.__)(`as it's different from our POSIMYTH Store login. Make sure you signup first and then try to login in ${n}.`,"wdesignkit")}],checkbox_text:(0,a.__)(`I got it, ${n} & POSIMYTH Store account is Different.`,"wdesignkit"),note:"",ft_btn1_text:(0,a.__)(`Signup for ${n}`,"wdesignkit"),ft_btn1_link:`${wdkitData.wdkit_server_url}signup`,ft_btn2_text:(0,a.__)("Forgot Password","wdesignkit"),ft_btn2_link:`${wdkitData.wdkit_server_url}password/forgot`,ex_link_text:(0,a.__)("Want to know more?","wdesignkit"),ex_link_url:`${wdkitData.WDKIT_DOC_URL}docs/difference-between-wdesignkit-account-and-posimyth-store-account/`,size:"large"};const o=G(),[d,c]=(0,e.useState)(),[p,w]=(0,e.useState)(),[m,g]=(0,e.useState)(!1),[u,h]=(0,e.useState)(!1),[_,C]=(0,e.useState)(!1),[k,v]=(0,e.useState)(!1),[b,x]=(0,e.useState)();(0,e.useEffect)((()=>{let e=Mt();e?.success&&o("/my_uploaded")}),[]);const f=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},j=e=>u==e?(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("span",{children:[(0,Be.jsx)("span",{className:"wkit-loader"}),(0,Be.jsx)("span",{className:"wkit-loader"}),(0,Be.jsx)("span",{className:"wkit-loader"})]})}):(0,Be.jsxs)("span",{children:[(0,a.__)("Continue with","wdesignkit")," ",(0,a.__)(e)]});return(0,Be.jsxs)("div",{className:"wkit-login",children:[(0,Be.jsx)("div",{className:"wkit-login-right-side",children:(0,Be.jsxs)("div",{className:"login-right-heading",children:[(0,Be.jsxs)("div",{className:"login-right-h2",children:[(0,a.__)("Extend Your Design Capacity with ","wdesignkit"),wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:(0,Be.jsx)("span",{style:{marginLeft:"7px"},children:(0,Be.jsx)("img",{className:"wkit-logo-img-login",src:i+"images/jpg/Wdesignkit-full-logo-original.png",alt:"Wdesignkit",draggable:"false"})})]}),(0,Be.jsx)("div",{className:"login-right-p",children:(0,a.__)(`No time to design? Get ${wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:"Wdesignkit"} today and jump-start your WordPress websites with Elementor, Gutenberg and Bricks.`,"wdesignkit")}),(0,Be.jsx)("img",{src:i+"images/jpg/carousel-slider.png",alt:"Login",className:"login-right-img",draggable:!1})]})}),(0,Be.jsxs)("div",{className:"wkit-login-left-side",children:[(0,Be.jsxs)("div",{className:"wkit-login-heading",children:[(0,Be.jsxs)("span",{children:[(0,a.__)("Login to ","wdesignkit"),wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:(0,a.__)("WDesignKit","wdesignkit")]}),(0,Be.jsx)("div",{className:"wkit-login-desc",children:(0,a.__)("Explore, Download, or Manage Your Designs and Widgets.","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-wb-btns",children:[(0,Be.jsxs)("button",{className:"wkit-wb-btn",onClick:e=>(async()=>{var e=f();h("Google");var i=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${wdkitData.wdkit_server_url}api/auth/google/callback-plugin&response_type=code&scope=email%20profile&state=${e}`,n=screen.height/2-260,l=screen.width/2-335,r=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+n+",left="+l);const d=async()=>{if(r&&!r.closed)setTimeout(d,100);else{let n={type:"social_login",state:e,login_type:"normal",site_url:s};var i=await $t(n).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i?.data?.success,s="Login successfully",n=i?.data?.token;const l={messages:s,success:a,token:n,user_email:e,login_type:"normal"};n&&e&&await Nt(l);let r=await Lt();t.wdkit_set_meta(r.data),t.wdkit_set_toast([i.messages,i.description,"","success"]),o(t?.LoginRoutes?`${t.LoginRoutes}`:"/my_uploaded")}else t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);h(!1)}};setTimeout(d,100)})(),children:[(0,Be.jsx)("img",{src:i+"images/svg/google.svg",alt:"google",draggable:!1}),j((0,a.__)("Google","wdesignkit"))]}),(0,Be.jsxs)("button",{className:"wkit-wb-btn",onClick:e=>(async()=>{var e=f();h("Facebook");var i=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${encodeURIComponent(`${wdkitData.wdkit_server_url}api/auth/facebook/callback-plugin`)}&response_type=code&scope=email&state=${e}`,n=screen.height/2-260,l=screen.width/2-335,r=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+n+",left="+l);const d=async()=>{if(r&&!r.closed)setTimeout(d,100);else{let n={type:"social_login",state:e,site_url:s};var i=await $t(n).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i.data.success,s="Login successfully",n=i.data.token;const l={messages:s,success:a,token:n,user_email:e,login_type:"normal"};n&&e&&await Nt(l);let r=await Lt();t.wdkit_set_meta(r.data),t.wdkit_set_toast([i.messages,i.description,"","success"]),o(t?.LoginRoutes?`${t.LoginRoutes}`:"/my_uploaded")}else t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);h(!1)}};setTimeout(d,100)})(),children:[(0,Be.jsx)("img",{src:i+"images/svg/facebook.svg",alt:"facebook",draggable:!1}),j((0,a.__)("Facebook","wdesignkit"))]})]}),(0,Be.jsx)("div",{className:"wkit-wb-btn-api",children:(0,Be.jsx)(xe,{to:"/login-api",className:"wkit-wb-login-api-link",children:(0,Be.jsxs)("button",{className:"wkit-wb-apiKey",children:[(0,Be.jsx)("img",{src:i+"images/svg/login-api.svg",alt:"login-api",draggable:!1}),(0,Be.jsx)("span",{children:(0,a.__)("Connect via Login Key","wdesignkit")})]})})}),(0,Be.jsx)("div",{className:"wkit-wb-main-line",children:(0,Be.jsxs)("div",{className:"wkit-wb-sign-email",children:[(0,Be.jsx)("hr",{className:"wkit-wb-line"}),(0,Be.jsx)("a",{className:"wkit-wb-line-text",children:(0,a.__)("Or Sign Up with Email","wdesignkit")}),(0,Be.jsx)("hr",{className:"wkit-wb-line"})]})}),(0,Be.jsxs)("form",{autoComplete:"off",className:"wkit-wb-form",onSubmit:async e=>{if(e.preventDefault(),!d)return void t.wdkit_set_toast([(0,a.__)("Please fill all fields","wdesignkit"),(0,a.__)("Missing information! Complete all fields.","wdesignkit"),"","danger"]);if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(d))return void t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);if(!p)return void t.wdkit_set_toast([(0,a.__)("Please fill all fields","wdesignkit"),(0,a.__)("Missing information! Complete all fields.","wdesignkit"),"","danger"]);if(g(!0),_)var i="normal";else i="session";let n={type:"wkit_login",user_email:d,user_password:p,login_type:i,site_url:s},r=await $t(n).then((e=>e));if(r?.success){Nt(_?Object.assign({},{user_email:d},r,{login_type:"normal"}):Object.assign({},{user_email:d},r,{login_type:"session"}));let e=await Lt();return t.wdkit_set_meta(e.data),r.messages&&t.wdkit_set_toast([r?.messages,r?.description,"","success"]),g(!1),void o(t?.LoginRoutes?`${t.LoginRoutes}`:"/browse")}return wdkitData?.wdkit_white_label?.help_link?t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("The login Details you entered is not correct. Please verify and try again","wdesignkit"),"","danger"]):x(l),void g(!1)},children:[(0,Be.jsxs)("div",{className:"wkit-form-group",children:[(0,Be.jsx)("label",{className:"wkit-label",children:(0,a.__)("Email","wdesignkit")}),(0,Be.jsx)("input",{type:"text",name:"email",placeholder:"Enter Email Address",className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>c(e.target.value)})]}),(0,Be.jsxs)("div",{className:"wkit-form-group wkit-form-password",children:[(0,Be.jsx)("label",{className:"wkit-label",children:(0,a.__)("Password","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-login-password-inp",children:[(0,Be.jsx)("input",{type:k?"text":"password",name:"password",placeholder:"Enter Your Password",className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>w(e.target.value)}),(0,Be.jsx)("div",{className:"wkit-password-eye",children:k?(0,Be.jsxs)("svg",{onClick:()=>{v(!k)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M0.583336 0.583332L13.4167 13.4167",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,Be.jsxs)("svg",{onClick:()=>{v(!k)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-remember-wrapper",children:[(0,Be.jsxs)("label",{htmlFor:"select-1",className:"wkit-remember-text",children:[(0,Be.jsx)("input",{type:"checkbox",id:"select-1",className:"wkit-check-box wkit-styled-checkbox",checked:_,onChange:e=>{C(e.target.checked)}}),(0,Be.jsx)("span",{className:"wkit-login-remember-text",children:(0,a.__)("Remember Me","wdesignkit")})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{className:"wkit-login-desc-text wkit-login-page-link",href:`${wdkitData.wdkit_server_url}password/forgot`,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==m?(0,Be.jsx)("div",{className:"wkit-login-btn",children:(0,Be.jsx)("div",{className:"wkit-wb-loginloader",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",style:{display:m&&"flex"},children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})})}):(0,Be.jsx)("button",{className:"wkit-login-btn",children:"logged"==m?(0,a.__)("Logged in","wdesignkit"):(0,a.__)("Log in","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("div",{className:"wkit-login-desc-text",children:[(0,a.__)("Don't have an account? ","wdesignkit"),(0,Be.jsx)("a",{className:"wkit-login-page-link",href:`${wdkitData.wdkit_server_url}signup`,target:"_blank",style:{color:"#C22076"},children:(0,a.__)("Sign Up","wdesignkit")})]})]})]}),b&&(0,Be.jsx)(yt,{data:b,btn1_fun:()=>{x(r)},close_popup:()=>{x("")}})]})},{form_data:Vt,wkit_set_user_login:Dt,get_userinfo:St,wkit_get_user_login:Zt}=wp.wkit_Helper,Rt=t=>{const i=G();let s=wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:"WDesignKit",n={icon:!0,heading:(0,a.__)("Wrong or Expired Login Key","wdesignkit"),sub_heading:(0,a.__)(`Your login API key seems to be wrong, Ask your webmaster with main ${s} Account access for another Login key.`,"wdesignkit"),sub_heading:[{type:"normal",text:(0,a.__)(`Your login API key seems to be wrong, Ask your webmaster with main ${s} Account access for another Login key.`,"wdesignkit")}],checkbox_text:(0,a.__)("I know Purchase key and Login Key is different.","wdesignkit"),note:[{type:"normal",text:(0,a.__)(`This Login key is not your ${s}'s Pro Licence's Purchase Key. Do you want to know, `,"wdesignkit")},{type:"link",text:(0,a.__)("How to get Login Key?","wdesignkit"),link:wdkitData.WDKIT_DOC_URL+"docs/create-login-key-to-login-to-wdesignkit-account/"}],ft_btn1_text:(0,a.__)("Let me Try again","wdesignkit"),ft_btn1_link:"",ft_btn1_fun:!0,ft_btn2_text:(0,a.__)("I need to recheck Login Key","wdesignkit"),ft_btn2_link:`${wdkitData.wdkit_server_url}admin/licence/apikey`,ft_btn2_fun:!1,ex_link_text:"",ex_link_url:"",size:"small"};var l=wdkitData.WDKIT_ASSETS;const[r,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(!1),[p,w]=(0,e.useState)();(0,e.useEffect)((()=>{let e=Zt();e?.success&&i("/my_uploaded")}),[]);const m=(0,e.useRef)();return(0,Be.jsxs)("div",{className:"wkit-login",children:[(0,Be.jsx)("div",{className:"wkit-login-right-side",children:(0,Be.jsx)("div",{className:"login-right-heading",children:(0,Be.jsx)("img",{src:l+"images/jpg/log-in-api.png",alt:"Login",className:"login-api-right-img",draggable:!1})})}),(0,Be.jsxs)("div",{className:"wkit-login-left-side",children:[(0,Be.jsx)("div",{children:(0,Be.jsxs)("div",{className:"wkit-login-heading",children:[(0,Be.jsx)("span",{children:(0,a.__)("Login With Key","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-login-desc",children:(0,a.__)("Enter your Login Key to get access","wdesignkit")})]})}),(0,Be.jsxs)("div",{className:"wkit-form-group",children:[(0,Be.jsx)("label",{className:"wkit-login-label",children:(0,a.__)("Login Key","wdesignkit")}),(0,Be.jsx)("input",{type:"text",name:"email",ref:m,onChange:e=>{o(e.target.value)},placeholder:"23eaf7f0-f4f7-495e-8b86-fad3261282ac",className:"wkit-input-field",autoComplete:"off",required:!0})]}),1==d?(0,Be.jsx)("div",{className:"wkit-login-btn",children:(0,Be.jsx)("div",{className:"wkit-wb-loginloader",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",style:{display:d&&"flex"},children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})})}):(0,Be.jsx)("button",{className:"wkit-login-btn",onClick:e=>{r?(async()=>{let e=ze();c(!0);let s={type:"api_login",buildertype:window.wdkit_editor,login_type:"session",site_url:e,token:r};var l=await Vt(s).then((e=>e));if(1==l?.data?.success){let e=l.data.user.user_email,a=l.data.success,s="Login successfully",n=l.token;const r={messages:s,user_email:e,login_type:"session",token:n,success:a};n&&e&&await Dt(r);let o=await St();t.wdkit_set_meta(o.data),c(!1),t.wdkit_set_toast([l?.data?.message,l?.data?.description,"","success"]),i("/my_uploaded")}else c(!1),wdkitData?.wdkit_white_label?.help_link?t.wdkit_set_toast([(0,a.__)("Invalid Login Key","wdesignkit"),(0,a.__)("The login key you entered is not valid. Please verify and try again","wdesignkit"),"","danger"]):w(n)})():t.wdkit_set_toast([(0,a.__)("API Key Required","wdesignkit"),(0,a.__)("Please provide an API key to activate Plugin.","wdesignkit"),"","danger"])},children:"logged"==d?(0,a.__)("Logged In","wdesignkit"):(0,a.__)("Login","wdesignkit")}),(0,Be.jsx)(xe,{to:"/login",className:"wkit-wb-backLogin",children:(0,Be.jsxs)("button",{className:"wkit-login-back-btn",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"20",viewBox:"0 0 24 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Back to Login","wdesignkit")})]})}),(0,Be.jsxs)("div",{className:"wkit-login-desc-text",children:[(0,a.__)("You need existing account to use this method. ","wdesignkit"),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{className:"wkit-login-page-link",href:`${wdkitData.wdkit_server_url}signup`,target:"_blank",rel:"noopener noreferrer",style:{color:"#C22076"},children:(0,a.__)("Signup","wdesignkit")})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("div",{className:"wkit-login-desc-text",children:(0,Be.jsx)("a",{className:"wkit-login-page-link",href:wdkitData.WDKIT_DOC_URL+"docs/create-login-key-to-login-to-wdesignkit-account/",style:{color:"#C22076"},target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to get Login Key?","wdesignkit")})})]}),p&&(0,Be.jsx)(yt,{data:p,btn1_fun:()=>{w("")},close_popup:()=>{w("")}})]})};var Bt=s(677),Et=s(764),Ot=s.n(Et);const{Fragment:At}=wp.element,Tt=t=>{const[i,s]=(0,e.useState)(t.filterArgs),[n,l]=(0,e.useState)([]),[r,o]=(0,e.useState)([]),[d,c]=(0,e.useState)([]),[p,w]=(0,e.useState)(""),[m,g]=(0,e.useState)(""),[u,h]=(0,e.useState)([]),[_,C]=(0,e.useState)([]),[k,v]=(0,e.useState)(t?.tag_list),b=G();(0,e.useEffect)((()=>{(()=>{let e=t?.filter_data?.search||"";var a=Object.assign({},t?.filter_data,{search:e});const i=new URLSearchParams((s=a,Object.fromEntries(Object.entries(s).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e&&"buildertype"!==e))))).toString();var s;b(`/browse?${i}`)})(),c(t?.filter_data?.builder?t?.filter_data?.builder:""),l(t?.filter_data?.category?.length>0?JSON.parse(t?.filter_data?.category.replaceAll('"',"")):[]),o(t?.filter_data?.tag?JSON.parse(t?.filter_data?.tag.replaceAll('"',"")):[]),h(t?.filter_data?.free_pro?t?.filter_data?.free_pro:""),g(t?.filter_data?.search?t?.filter_data?.search:""),C(t?.filter_data?.page_type?JSON.parse(t?.filter_data?.page_type):[]),s(t.filter_data)}),[t.filter_data]),(0,e.useEffect)((()=>{v(t?.tag_list?t?.tag_list:[])}),[t?.tag_list]);const x=()=>{document.querySelector(".wkit-mobile-filter-main").classList.remove("wkit-filter-menu-show")},f=(e,t,a)=>{if("category"==t){let t=[...n];if(t.includes(Number(e.target.value))){let a=t.indexOf(Number(e.target.value));t.splice(a,1),l(t),s(Object.assign({},i,{category:JSON.stringify(t)}))}else t.push(Number(e.target.value)),l(t),s(Object.assign({},i,{category:JSON.stringify(t)}))}else if("builder"==t){var d="";e.target.checked&&(d=e.target.value),c(d);let t=Object.assign({},i,{builder:d});s(t)}else if("plugin"==t){let e=i.plugin&&JSON.parse(i.plugin).findIndex((e=>e===a)),t=i.plugin_exclude&&JSON.parse(i.plugin_exclude).findIndex((e=>e===a));if(e&&e>-1||0===e){var p=JSON.parse(i.plugin),w=i.plugin_exclude?JSON.parse(i.plugin_exclude):[],m=p.splice(e,1)[0];m&&w.push(m);var u=p.filter((e=>e!==a)),k=Object.assign({},i,{plugin_exclude:JSON.stringify(w),plugin:JSON.stringify(u)})}else if(t&&t>-1||0===t){var v=JSON.parse(i.plugin_exclude),b=v.filter((e=>e!==v[t]));k=Object.assign({},i,{plugin_exclude:JSON.stringify(b)})}else{var x=i.plugin?JSON.parse(i.plugin):[];x.push(a),k=Object.assign({},i,{plugin:JSON.stringify(x)})}s(k)}else if("tags"==t){let t=[...r];if(t.includes(Number(e.target.value))){let a=t.indexOf(Number(e.target.value));t.splice(a,1),o(t),s(Object.assign({},i,{tag:JSON.stringify(t)}))}else t.push(Number(e.target.value)),o(t),s(Object.assign({},i,{tag:JSON.stringify(t)}))}else if("search"==t){let t=Object.assign({},i,{search:e.target.value},{page:1});g(e.target.value),s(t)}else if("free_pro"===t){var f="";e.target.checked&&(f=e.target.value),h(f),s(Object.assign({},i,{free_pro:f}))}else if("pageType"===t)if(l([]),e.target.checked){let t=[e.target.value];C(t),s(Object.assign({},i,{page_type:JSON.stringify(t),category:JSON.stringify([])}))}else{let e=_?.filter((e=>e!==e.target.value));C(e),s(Object.assign({},i,{page_type:JSON.stringify(e),category:JSON.stringify([])}))}},j=e=>{let t=i?.plugin&&JSON.parse(i?.plugin).findIndex((t=>t===e)),a=i?.plugin_exclude&&JSON.parse(i?.plugin_exclude).findIndex((t=>t===e));return t&&t>-1||0===t?(0,Be.jsxs)("svg",{className:"wkit-filter-plugin-svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M12.1905 0H3.80952C1.70558 0 0 1.70558 0 3.80952V12.1905C0 14.2944 1.70558 16 3.80952 16H12.1905C14.2944 16 16 14.2944 16 12.1905V3.80952C16 1.70558 14.2944 0 12.1905 0Z",fill:"#040483"}),(0,Be.jsx)("path",{d:"M11.5829 4.86283L6.69865 9.74704L4.90497 7.95336C4.88431 7.93263 4.85977 7.91619 4.83275 7.90496C4.80572 7.89374 4.77675 7.88797 4.74749 7.88797C4.71823 7.88797 4.68926 7.89374 4.66224 7.90496C4.63521 7.91619 4.61067 7.93263 4.59002 7.95336L4.06539 8.47799C4.04466 8.49864 4.02822 8.52319 4.017 8.55021C4.00578 8.57723 4 8.60621 4 8.63547C4 8.66473 4.00578 8.69369 4.017 8.72072C4.02822 8.74774 4.04466 8.77228 4.06539 8.79294L6.54118 11.2687C6.56183 11.2895 6.58637 11.3059 6.6134 11.3171C6.64042 11.3283 6.66939 11.3341 6.69865 11.3341C6.72791 11.3341 6.75688 11.3283 6.78391 11.3171C6.81093 11.3059 6.83547 11.2895 6.85612 11.2687L12.4191 5.70578C12.4398 5.68512 12.4562 5.66058 12.4675 5.63356C12.4787 5.60653 12.4845 5.57757 12.4845 5.54831C12.4845 5.51905 12.4787 5.49007 12.4675 5.46305C12.4562 5.43603 12.4398 5.41148 12.4191 5.39083L11.8944 4.8662C11.8533 4.82491 11.7976 4.80142 11.7393 4.80079C11.6811 4.80016 11.6249 4.82244 11.5829 4.86283Z",fill:"white"})]}):a&&a>-1||0===a?(0,Be.jsx)("svg",{className:"wkit-filter-plugin-svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M12.3536 4.35355C12.5488 4.15829 12.5488 3.84171 12.3536 3.64645C12.1583 3.45118 11.8417 3.45118 11.6464 3.64645L8 7.29289L4.35355 3.64645C4.15829 3.45118 3.84171 3.45118 3.64645 3.64645C3.45118 3.84171 3.45118 4.15829 3.64645 4.35355L7.29289 8L3.64645 11.6464C3.45118 11.8417 3.45118 12.1583 3.64645 12.3536C3.84171 12.5488 4.15829 12.5488 4.35355 12.3536L8 8.70711L11.6464 12.3536C11.8417 12.5488 12.1583 12.5488 12.3536 12.3536C12.5488 12.1583 12.5488 11.8417 12.3536 11.6464L8.70711 8L12.3536 4.35355ZM3.36842 0.5H12.6316C14.2158 0.5 15.5 1.78424 15.5 3.36842V12.6316C15.5 14.2158 14.2158 15.5 12.6316 15.5H3.36842C1.78424 15.5 0.5 14.2158 0.5 12.6316V3.36842C0.5 1.78424 1.78424 0.5 3.36842 0.5Z",stroke:"#BFBFBF",strokeLinecap:"round"})}):(0,Be.jsx)("svg",{className:"wkit-filter-plugin-svg",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36842 1H12.6316C13.9396 1 15 2.06038 15 3.36842V12.6316C15 13.9396 13.9396 15 12.6316 15H3.36842C2.06038 15 1 13.9396 1 12.6316V3.36842C1 2.06038 2.06038 1 3.36842 1ZM12.6316 0H3.36842C1.50809 0 0 1.50809 0 3.36842V12.6316C0 14.4919 1.50809 16 3.36842 16H12.6316C14.4919 16 16 14.4919 16 12.6316V3.36842C16 1.50809 14.4919 0 12.6316 0ZM6 4C4.89543 4 4 4.89543 4 6V10C4 11.1046 4.89543 12 6 12H10C11.1046 12 12 11.1046 12 10V6C12 4.89543 11.1046 4 10 4H6Z",fill:"#BFBFBF"})})};return(0,Be.jsxs)("div",{className:"wkit-mobile-filter-main",children:[(0,Be.jsxs)("div",{className:"wkit-mobile-filter-main-content",children:[(0,Be.jsx)("div",{className:"wkit-filter-main-heading",children:(0,a.__)("Filter by","wdesignkit")}),(0,Be.jsx)("div",{className:"close-icon",children:(0,Be.jsx)("a",{className:"close",onClick:()=>x(),children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Search :","wdesignkit")}),(0,Be.jsx)(At,{children:(0,Be.jsx)("div",{className:"wkit-browse-search-inner",children:(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Templates","wdesignkit"),type:"text",value:m,onChange:e=>{f(e,"search")}})})})]}),t.BuilderArray.length>1&&(0,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Page Builder :","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-category-mobile-filter",children:t.builder_list&&t.builder_list.length>0&&t.builder_list.map(((e,a)=>{if(t.BuilderArray.includes(e.p_id))return(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",name:"check1",checked:e.p_id==d,value:e.p_id,className:"wkit-custom-cateogry",id:e.plugin_name,onChange:e=>{f(e,"builder")}}),(0,Be.jsxs)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:e.plugin_name,children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:e.plugin_icon,alt:"section",draggable:!1}),e.plugin_name]})]})},a)}))})]}),(0,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Free / Pro :","wdesignkit")}),(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-category-mobile-filter",children:[(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-custom-cateogry",id:"wkit-free-btn-label-mb",value:"free",onChange:e=>{f(e,"free_pro")},checked:"free"==u}),(0,Be.jsx)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-free-btn-label-mb",children:(0,a.__)("Free","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-custom-cateogry",id:"wkit-pro-btn-label-mb",value:"pro",onChange:e=>{f(e,"free_pro")},checked:"pro"==u}),(0,Be.jsx)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-pro-btn-label-mb",children:(0,a.__)("Pro","wdesignkit")})]})]})})]}),(0,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Type :","wdesignkit")}),(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-category-mobile-filter",children:[(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"radio",value:"pagetemplate",className:"wkit-custom-cateogry",id:"wkit_paget_type_pagetemplate_mb",name:"selectPageType_mb",onChange:e=>f(e,"pageType"),checked:!!_.includes("pagetemplate")}),(0,Be.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate_mb",className:"wkit-check-wrapper",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Full Pages","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"radio",value:"section",className:"wkit-custom-cateogry",id:"wkit_paget_type_section_mb",name:"selectPageType_mb",onChange:e=>f(e,"pageType"),checked:!!_.includes("section")}),(0,Be.jsxs)("label",{htmlFor:"wkit_paget_type_section_mb",className:"wkit-check-wrapper",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 14 14",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Sections","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wdkit"!==wdkitData.use_editor?"wkit-pagetype-disabled wkit-disable-class":"wkit-pagetype-disabled",children:["wdkit"!==wdkitData.use_editor&&(0,Be.jsxs)("span",{className:"wkit-pageType-mobile-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,Be.jsx)("a",{href:"/admin.php?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("click here","wdesignkit")})," ",(0,a.__)("to open the dashboard.","wdesignkit")]}),(0,Be.jsxs)("div",{className:"wdkit"!==wdkitData.use_editor?"wkit-custom-category-wrap wkit-disabled":"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"radio",value:"websitekit",className:"wkit-custom-cateogry",id:"wkit_page_type_websitekit_mb",name:"selectPageType_mb",onChange:e=>f(e,"pageType"),checked:!!_.includes("websitekit")}),(0,Be.jsxs)("label",{htmlFor:"wkit_page_type_websitekit_mb",className:"wkit-check-wrapper",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Page Kits","wdesignkit")})]})]})]})]})})]}),(0,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Plugins :","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-category-mobile-filter",children:t.plugin_list&&t.plugin_list.length>0&&t.plugin_list.map(((e,t)=>(0,Be.jsx)(At,{children:(0,Be.jsx)("div",{className:"wkit-custom-category-wrap",children:(0,Be.jsxs)("span",{className:"wkit-check-wrapper",onClick:t=>{f(t,"plugin",e.p_id)},children:[j(e.p_id),(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:e.plugin_icon,alt:"section",draggable:!1}),e.plugin_name]})})},t)))})]}),(0,Be.jsx)("div",{className:"wkit-filter-by-categorties",children:(y=Object.entries(t.category_list).map(((e,t)=>{var i="";if("wdkit"!==wdkitData.use_editor&&"Website Kits"==e[0]&&(i="Website Kits"),_==e[0].split(" ").join("").toLowerCase().slice(0,-1)){const s=e=>"Website Kits"===e?"Page Kits":e;return(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"Website Kits"===i?"wkit-filter-category wkit-filter-container":"wkit-filter-category",children:["Website Kits"===i&&(0,Be.jsxs)("span",{className:"wkit-pageType-mobile-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,Be.jsx)("a",{href:"/admin.php?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("click here","wdesignkit")})," ",(0,a.__)("to open the dashboard.","wdesignkit")]}),(0,Be.jsxs)("span",{className:"Website Kits"===i?"wkit-filter-accordion-disable":"",children:[s(e[0])," : "]}),"Website Kits"===i?"":(0,Be.jsx)("div",{className:"wkit-filter-category-list",children:Object.values(e[1]).map(((e,t)=>(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",name:"check1",className:"wkit-custom-cateogry",checked:n.includes(e.term_id),value:e.term_id,id:e.term_id,onChange:e=>{f(e,"category")}}),(0,Be.jsx)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:e.term_id,children:e.term_name})]})},t)))})]})},t)}})),(0,Be.jsx)("div",{className:"wkit-category-mobile-filter wkit-template-filter",children:y}))}),(0,Be.jsxs)("div",{className:"wkit-filter-by-categorties",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Tag :","wdesignkit")}),(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-accordion-content wkit-accordion-mobile-content",children:[(0,Be.jsx)("div",{className:"wkit-browse-search-inner",children:(0,Be.jsx)(Bt.DebounceInput,{className:"wkit-browse-search",placeholder:(0,a.__)("Search Tags","wdesignkit"),name:"wkit-search",type:"text",minLength:0,debounceTimeout:500,onChange:e=>{var a;a=e.target.value,w(a),v(a?t?.tag_list?.filter((e=>e.tag_name.toLowerCase().includes(a.toLowerCase()))):t?.tag_list)},value:p})}),Object.values(k).length>0&&(0,Be.jsx)("div",{className:"wkit-browse-tag",children:k&&Object.values(k)?.map(((e,t)=>{if(t<(r?.length?5+r?.length:5))return(0,Be.jsx)(At,{children:(0,Be.jsxs)("div",{className:"wkit-tag-filter-list",children:[(0,Be.jsx)("input",{type:"checkbox",name:"check1",checked:r.includes(Number(e.tag_id)),value:e.tag_id,className:"wkit-tag-checkbox",id:`${e.tag_id}-tag`,onChange:e=>f(e,"tags")}),(0,Be.jsx)("label",{name:"check1",className:"wkit-browse-tag-name wkit-browse-tag-name-mobile",htmlFor:`${e.tag_id}-tag`,children:e.tag_name})]})},t)}))})]})})]})]}),(0,Be.jsx)("div",{className:"wkit-common-btn wkit-pink-btn-class",onClick:e=>{t.setfilter_data(i),t.setcategory_check(n),t.setfreePro_check(u),t.settag_check(r),t.setbuilder_check(d),t.setpageType_check(_),t.setsearch_check(m),x()},children:(0,Be.jsx)("span",{children:(0,a.__)("Visit Site","wdesignkit")})})]});var y},Pt=e=>{var t=wdkitData.WDKIT_URL;const i=e=>Array.from({length:e});return(0,Be.jsxs)(Be.Fragment,{children:[e?.filter&&(0,Be.jsx)("div",{className:"wkit-browse-column",children:(0,Be.jsxs)("div",{className:"wkit-browse-inner-column",children:[(0,Be.jsx)("div",{className:"wkit-expand-filter",children:(0,Be.jsx)("div",{className:"wkit-left-main-title",children:"Filters"})}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Search"})}),(0,Be.jsx)("div",{className:"wkit-search-filter",children:(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:"Search Templates",type:"text"}),(0,Be.jsx)("span",{className:"wkit_search_button wkit-btn-class",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Page Builder"})}),(0,Be.jsx)("div",{className:"wkit-choose-builder-wrap wkit-mt-15 wkit-justify-left",children:i(2).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-wb-widgetType",children:(0,Be.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-builder-radio"}),(0,Be.jsxs)("label",{className:"wkit-builder-label",children:[(0,Be.jsx)("img",{className:"wkit-browse-filter-builder",src:"https://wdesignkit.com/images/uploads/wpdk-admin/builder-list/builder-elementor.svg",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-builder-toolTip",children:"elementor"})]})]})},t)))}),(0,Be.jsxs)("div",{className:"filter-wrapper",children:[(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Free / Pro"})}),(0,Be.jsx)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:i(2).map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp"}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:"Free"})]},t)))}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Type"})}),(0,Be.jsx)("div",{className:"wkit-accordion-content",children:i(3).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-pageType-wrap",children:(0,Be.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-pageType-list",children:[(0,Be.jsx)("input",{type:"radio",className:"wkit-styled-type-radio"}),(0,Be.jsx)("span",{className:"wkit-type-selection",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none",children:(0,Be.jsx)("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.91632Z",fill:"#19191B"})})}),"Page Template"]})},t)))}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Plugins"})}),(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:i(7).map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-plugin-name",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,Be.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,Be.jsx)("img",{src:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-elementor.svg",alt:"tpae-logo",draggable:"false"}),(0,Be.jsx)("span",{children:"Elementor"})]})]},t)))})}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Page Kits"})}),(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:i(7).map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-plugin-name",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,Be.jsx)("span",{children:"WooCommerce"})]},t)))})}),(0,Be.jsx)("hr",{}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Tags"})}),(0,Be.jsxs)("div",{className:"wkit-accordion-content",children:[(0,Be.jsx)("div",{className:"wkit-browse-search-inner",children:(0,Be.jsx)("input",{className:"wkit-browse-search"})}),(0,Be.jsx)("div",{className:"wkit-browse-tag",children:i(5).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-tag-filter-list",children:(0,Be.jsx)("label",{className:"wkit-browse-tag-name",children:"Elementor"})},t)))})]})]})]})}),e?.cards&&(0,Be.jsxs)("div",{className:"wkit-browse-right-column",children:[e?.filterArgs&&(0,Be.jsx)("div",{className:"wkit-free-dropdown-mixed",children:(0,Be.jsxs)("div",{className:"wkit-browse-applied-filter",children:[(0,Be.jsx)("label",{className:"applied-filter-text",children:"Applied Filter :"}),e.filterArgs&&(e=>{let t=Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e&&"buildertype"!==e)));return Object.values(t)})(e.filterArgs).map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:e})}),(0,Be.jsx)("button",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]},t))),(0,Be.jsx)("button",{className:"wdkit-reset-all-filters wkit-btn-class",children:"Clear All"})]})}),(0,Be.jsx)("div",{className:"wdkit-loop",children:(0,Be.jsx)("div",{className:"wdesign-kit-main",children:i(12).map(((e,i)=>(e=>(0,Be.jsx)("div",{className:"wkit-widgetlist-grid-content",children:(0,Be.jsxs)("div",{className:"wkit-widget-card",children:[(0,Be.jsx)("div",{className:"wkit-widget-card-top-part",children:(0,Be.jsx)("div",{children:(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:t+"assets/images/wkit-dummy-bg.png",draggable:"false"})})}),(0,Be.jsxs)("div",{className:"wkit-widget-card-bottom-part",children:[(0,Be.jsxs)("div",{className:"wkit-widget-title-content",children:[(0,Be.jsx)("p",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:(0,a.__)("Modern Hover Post","wdesignkit")})}),(0,Be.jsx)("div",{className:"wkit-widget-download-activity",children:(0,Be.jsx)("div",{className:"plugin-download-icon",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{className:"wdkit-star-rating",style:{width:"50%"},children:(0,Be.jsx)("span",{children:(0,a.__)("1 Review","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wkit-widget-info-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:t+"assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:"800"})]}),(0,Be.jsx)("hr",{className:"wkit-icon-divider-hr"}),(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:t+"assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:"800"})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-builder-icon",children:[(0,Be.jsx)("img",{src:"https://wdesignkit.com/images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-widget-builder-tooltip",children:(0,a.__)("Elementor","wdesignkit")})]})]})]})]})},e))(i)))})})]})]})},{Fragment:Wt}=wp.element,{Template_loop:Ft,Plugin_missing:It,Success_import_template:qt,wkit_getCategoryList:Ut,form_data:zt,wkit_get_user_login:Jt,wkitGetBuilder:Kt,checkBuilder:Gt}=wp.wkit_Helper;let Yt=new AbortController;const Qt=t=>{const i=G();wdkitData.WDKIT_URL;const[s,n]=(0,e.useState)(!1),[r,o]=(0,e.useState)("loading"),[d,c]=(0,e.useState)([]),[p,w]=(0,e.useState)(!0),[m,g]=(0,e.useState)(["free_pro","type","plugins","category-0","tags"]),[u,h]=(0,e.useState)([]),[_,C]=(0,e.useState)(""),[k,v]=(0,e.useState)(""),[b,x]=(0,e.useState)([]),[f,j]=(0,e.useState)(""),[y,$]=(0,e.useState)(""),[N,L]=(0,e.useState)(""),[M,H]=(0,e.useState)(!1),[V,D]=(0,e.useState)(!1),[S,Z]=(0,e.useState)(""),[R,B]=(0,e.useState)(1),[E,O]=(0,e.useState)({}),A=(0,e.useRef)(null),[T,P]=(0,e.useState)([]),[W,F]=(0,e.useState)([]),[I,q]=(0,e.useState)(),[U,z]=(0,e.useState)({type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:12,page:R}),K=J();!Jt()&&Object.values(t).length>0&&t.wdkit_Login_Route("/browse"),(0,e.useEffect)((()=>{if("/browse"!=K?.pathname&&(window.location.hash="#/browse"),""==K.search){if("wdkit"==window.wdkit_editor){let e={type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:12,page:R,page_type:JSON.stringify(["websitekit"])};P(["websitekit"]),z(e);const t=new URLSearchParams(X(e)).toString();i(`/browse?${t}`)}}else{const e=new URLSearchParams(K.search),t={};Array.from(e?.entries()).map((([e,a])=>{t[e]=a})),z((e=>({...e,...t}))),t.search&&(v(t.search),C(t.search)),t.builder&&$(t.builder),t.free_pro&&j(t.free_pro),t.page_type&&P(JSON.parse(t.page_type)),t.category&&x(JSON.parse(t.category)),t.tag&&h(JSON.parse(t.tag))}}),[]);let Y={websitekit:(0,a.__)("Page Kits","wdesignkit"),section:(0,a.__)("Sections","wdesignkit"),pagetemplate:(0,a.__)("Full Pages","wdesignkit")};(0,e.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_template&&e.push(1001),t?.wdkit_meta?.Setting?.gutenberg_template&&e.push(1002),F(e)}),[t?.wdkit_meta?.Setting]),(0,e.useMemo)((()=>{(async()=>{if(n(!0),W.length>0){if("wdkit"==window.wdkit_editor)if(y)var e=Object.assign({},U,{builder:JSON.stringify([y])});else e=Object.assign({},U,{builder:JSON.stringify(W)});else e=Object.assign({},U,{builder:""}),e=T.length<1?Object.assign({},e,{page_type:JSON.stringify(["pagetemplate","section"])}):Object.assign({},e,{page_type:JSON.stringify([T])});Yt&&Yt.abort(),Yt=new AbortController;let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),Object.entries(e).forEach((([e,t])=>{a.append(e,t)}));var t=await l().post(ajaxurl,a,{signal:Yt.signal}).then((e=>(o(e.data),e.data)));""==d&&t?.category&&(c(Ut(t?.category)),0===Object.keys(E).length&&O(t.tags)),n(!1)}})()}),[U,W]);const Q=e=>{if(m?.includes(e)){var t=m.filter((t=>t!==e));g(t)}else g([...m,e])},X=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e&&"buildertype"!==e))),ee=async(e,t="plugins",a)=>{const{value:s,checked:n}=e.target;if("builder"===t)if(n){var l=Object.assign({},U,{builder:s},{page:1});$(s),z(l)}else l=Object.assign({},U,{builder:""},{page:1}),$(""),z(l);if("plugins"===t){let e=U.plugin&&JSON.parse(U.plugin).findIndex((e=>e===a)),t=U.plugin_exclude&&JSON.parse(U.plugin_exclude).findIndex((e=>e===a));if(e&&e>-1||0===e){var r=JSON.parse(U.plugin),o=U.plugin_exclude?JSON.parse(U.plugin_exclude):[],d=r.splice(e,1)[0];d&&o.push(d);var c=r.filter((e=>e!==a));l=Object.assign({},U,{plugin_exclude:JSON.stringify(o),plugin:JSON.stringify(c)})}else if(t&&t>-1||0===t){var p=JSON.parse(U.plugin_exclude),w=p.filter((e=>e!==p[t]));l=Object.assign({},U,{plugin_exclude:JSON.stringify(w)})}else{var m=U.plugin?JSON.parse(U.plugin):[];m.push(a),l=Object.assign({},U,{plugin:JSON.stringify(m)})}}if("tags"===t)if(n){var g=[...u,Number(s)];await h(g),l=Object.assign({},U,{tag:JSON.stringify(g)},{page:1})}else g=u.filter((e=>e!==Number(s))),await h(g),l=Object.assign({},U,{tag:JSON.stringify(g)},{page:1});if("category"===t)if(n){var C=[...b,Number(s)];x(C),l=Object.assign({},U,{category:JSON.stringify(C)},{page:1})}else C=b?.filter((e=>e!==Number(s))),x(C),l=Object.assign({},U,{category:JSON.stringify(C)},{page:1});if("search"===t&&(l=Object.assign({},U,{search:_,page:1})),"free_pro"===t&&(n?(l=Object.assign({},U,{free_pro:s},{page:1}),j(s)):(l=Object.assign({},U,{free_pro:""},{page:1}),j(""))),"pageType"===t){var k=[s];P(s),x([]),l=Object.assign({},U,{page_type:JSON.stringify(k)},{search:_},{category:[]},{page:1})}l=Object.assign({},l,{search:_}),z(l),B(1),v(_);const f=new URLSearchParams(X(l)).toString();i(`/browse?${f}`)},te=e=>{let t=U.plugin&&JSON.parse(U.plugin).findIndex((t=>t===e)),a=U.plugin_exclude&&JSON.parse(U.plugin_exclude).findIndex((t=>t===e));return t&&t>-1||0===t?(0,Be.jsxs)("svg",{className:"wkit-filter-plugin-svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M12.1905 0H3.80952C1.70558 0 0 1.70558 0 3.80952V12.1905C0 14.2944 1.70558 16 3.80952 16H12.1905C14.2944 16 16 14.2944 16 12.1905V3.80952C16 1.70558 14.2944 0 12.1905 0Z",fill:"#040483"}),(0,Be.jsx)("path",{d:"M11.5829 4.86283L6.69865 9.74704L4.90497 7.95336C4.88431 7.93263 4.85977 7.91619 4.83275 7.90496C4.80572 7.89374 4.77675 7.88797 4.74749 7.88797C4.71823 7.88797 4.68926 7.89374 4.66224 7.90496C4.63521 7.91619 4.61067 7.93263 4.59002 7.95336L4.06539 8.47799C4.04466 8.49864 4.02822 8.52319 4.017 8.55021C4.00578 8.57723 4 8.60621 4 8.63547C4 8.66473 4.00578 8.69369 4.017 8.72072C4.02822 8.74774 4.04466 8.77228 4.06539 8.79294L6.54118 11.2687C6.56183 11.2895 6.58637 11.3059 6.6134 11.3171C6.64042 11.3283 6.66939 11.3341 6.69865 11.3341C6.72791 11.3341 6.75688 11.3283 6.78391 11.3171C6.81093 11.3059 6.83547 11.2895 6.85612 11.2687L12.4191 5.70578C12.4398 5.68512 12.4562 5.66058 12.4675 5.63356C12.4787 5.60653 12.4845 5.57757 12.4845 5.54831C12.4845 5.51905 12.4787 5.49007 12.4675 5.46305C12.4562 5.43603 12.4398 5.41148 12.4191 5.39083L11.8944 4.8662C11.8533 4.82491 11.7976 4.80142 11.7393 4.80079C11.6811 4.80016 11.6249 4.82244 11.5829 4.86283Z",fill:"white"})]}):a&&a>-1||0===a?(0,Be.jsx)("svg",{className:"wkit-filter-plugin-svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M12.3536 4.35355C12.5488 4.15829 12.5488 3.84171 12.3536 3.64645C12.1583 3.45118 11.8417 3.45118 11.6464 3.64645L8 7.29289L4.35355 3.64645C4.15829 3.45118 3.84171 3.45118 3.64645 3.64645C3.45118 3.84171 3.45118 4.15829 3.64645 4.35355L7.29289 8L3.64645 11.6464C3.45118 11.8417 3.45118 12.1583 3.64645 12.3536C3.84171 12.5488 4.15829 12.5488 4.35355 12.3536L8 8.70711L11.6464 12.3536C11.8417 12.5488 12.1583 12.5488 12.3536 12.3536C12.5488 12.1583 12.5488 11.8417 12.3536 11.6464L8.70711 8L12.3536 4.35355ZM3.36842 0.5H12.6316C14.2158 0.5 15.5 1.78424 15.5 3.36842V12.6316C15.5 14.2158 14.2158 15.5 12.6316 15.5H3.36842C1.78424 15.5 0.5 14.2158 0.5 12.6316V3.36842C0.5 1.78424 1.78424 0.5 3.36842 0.5Z",stroke:"#BFBFBF",strokeLinecap:"round"})}):(0,Be.jsx)("svg",{className:"wkit-filter-plugin-svg",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.36842 1H12.6316C13.9396 1 15 2.06038 15 3.36842V12.6316C15 13.9396 13.9396 15 12.6316 15H3.36842C2.06038 15 1 13.9396 1 12.6316V3.36842C1 2.06038 2.06038 1 3.36842 1ZM12.6316 0H3.36842C1.50809 0 0 1.50809 0 3.36842V12.6316C0 14.4919 1.50809 16 3.36842 16H12.6316C14.4919 16 16 14.4919 16 12.6316V3.36842C16 1.50809 14.4919 0 12.6316 0ZM6 4C4.89543 4 4 4.89543 4 6V10C4 11.1046 4.89543 12 6 12H10C11.1046 12 12 11.1046 12 10V6C12 4.89543 11.1046 4 10 4H6Z",fill:"#BFBFBF"})})},ae=()=>(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M2 4L5.72241 7.71186L9.44482 4",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"})}),ie=()=>(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M9.44482 7.71191L5.72241 4.00005L2 7.71191",stroke:"#9C9CD1",strokeWidth:"1.11356",strokeLinecap:"round",strokeLinejoin:"round"})}),se=e=>{"Enter"===e.key&&(ee(e,"search"),A.current.blur())},ne=e=>0==e||!!W.includes(e),le=e=>{let t=r?.builder,a=t.findIndex((t=>t.p_id==e));if(a>-1)return t[a].original_slug};return(0,Be.jsx)("div",{className:`wkit-browse-main ${1==s?"wkit-temp-skeleton":""} ${r?.template?"":"wkit-skeleton"}`,children:r?.template?(0,Be.jsxs)(Wt,{children:[(0,Be.jsx)("div",{className:"wkit-browse-column "+(p?"":"wkit-browse-column-collapse"),children:p?(0,Be.jsxs)("div",{className:"wkit-browse-inner-column",children:[(0,Be.jsxs)("div",{className:"wkit-expand-filter",children:[(0,Be.jsx)("div",{className:"wkit-left-main-title",children:(0,a.__)("Filters","wdesignkit")}),(0,Be.jsx)("div",{style:{cursor:"pointer"},onClick:()=>{w(!p)},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)(Wt,{children:[(0,Be.jsx)("div",{className:"wkit-wb-filterTitle",children:(0,a.__)("Search","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-search-filter",children:(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Templates","wdesignkit"),type:"text",value:_,onChange:e=>{C(e.target.value)},onKeyDown:se,ref:A}),(0,Be.jsx)("span",{className:"wkit_search_button wkit-btn-class",onClick:e=>{ee(e,"search")},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})]}),"wdkit"==wdkitData.use_editor&&!(W.length<=1)&&(0,Be.jsxs)(Wt,{children:[(0,Be.jsx)("div",{className:"wkit-wb-filterTitle",children:(0,a.__)("Page Builder","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-choose-builder-wrap wkit-mt-15 wkit-justify-left",children:r?.builder.length>0&&Object.values(r?.builder)?.map(((e,t)=>{if(ne(e.p_id))return(0,Be.jsx)("div",{className:"wkit-wb-widgetType",children:(0,Be.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-builder-radio",id:"select_builder_"+e.original_slug,value:e.p_id,onChange:e=>{ee(e,"builder")},checked:U.builder==e.p_id}),(0,Be.jsxs)("label",{className:"wkit-builder-label",htmlFor:"select_builder_"+e.original_slug,children:[""!=e.plugin_icon&&(0,Be.jsx)("img",{className:"wkit-browse-filter-builder "+(U.builder==e.p_id?"wkit-select-builder":""),src:e.plugin_icon,draggable:!1}),(0,Be.jsx)("span",{className:"wkit-builder-toolTip",children:e.original_slug})]})]})},t)}))})]}),(0,Be.jsxs)("div",{className:"filter-wrapper",children:[(0,Be.jsxs)(Wt,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>Q("free_pro"),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Free / Pro","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-arrow-down",children:m?.includes("free_pro")?ie():ae()})]}),m?.includes("free_pro")&&(0,Be.jsxs)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:[(0,Be.jsxs)("label",{htmlFor:"wkit-free-btn-label",className:"wkit-select-freePro-type",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",onChange:e=>{ee(e,"free_pro")},checked:"free"==U.free_pro}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,Be.jsxs)("label",{htmlFor:"wkit-pro-btn-label",className:"wkit-select-freePro-type",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{ee(e,"free_pro")},checked:"pro"==U.free_pro}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Pro","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{}),(0,Be.jsxs)(Wt,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>Q("type"),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Type","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-arrow-down",children:m?.includes("type")?ie():ae()})]}),m?.includes("type")&&(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsxs)("div",{className:"wkit-pageType-wrap",children:[(0,Be.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-pageType-list",children:[(0,Be.jsx)("input",{type:"radio",value:"pagetemplate",className:"wkit-styled-type-radio",id:"wkit_paget_type_pagetemplate",name:"selectPageType",onChange:e=>ee(e,"pageType"),checked:!!T.includes("pagetemplate")}),(0,Be.jsxs)("span",{className:"wkit-type-selection",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Full Pages","wdesignkit")})]})]}),(0,Be.jsxs)("label",{htmlFor:"wkit_paget_type_section",className:"wkit-pageType-list",children:[(0,Be.jsx)("input",{type:"radio",value:"section",className:"wkit-styled-type-radio",id:"wkit_paget_type_section",name:"selectPageType",onChange:e=>ee(e,"pageType"),checked:!!T.includes("section")}),(0,Be.jsxs)("span",{className:"wkit-type-selection",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 14 14",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Sections","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-pagetype-disabled",children:["wdkit"!==wdkitData.use_editor&&(0,Be.jsxs)("span",{className:"wkit-pageType-list-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,Be.jsx)("a",{href:ze()+"/admin.php?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("click here","wdesignkit")})," ",(0,a.__)("to open the dashboard.","wdesignkit")]}),(0,Be.jsxs)("label",{htmlFor:"wkit_page_type_websitekit",className:"wdkit"!==wdkitData.use_editor?"wkit-pageType-list wkit-pageType-list-disabled":"wkit-pageType-list",children:[(0,Be.jsx)("input",{type:"radio",value:"websitekit",className:"wkit-styled-type-radio",id:"wkit_page_type_websitekit",name:"selectPageType",onChange:e=>{ee(e,"pageType")},checked:!!T.includes("websitekit")}),(0,Be.jsxs)("span",{className:"wkit-type-selection",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"23",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Page Kits","wdesignkit")})]})]})]})]})})]}),(0,Be.jsx)("hr",{}),(0,Be.jsxs)(Wt,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>Q("plugins"),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Plugins","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-arrow-down",children:m?.includes("plugins")?ie():ae()})]}),m?.includes("plugins")&&(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:Object.values(r?.plugin)?.map(((e,t)=>{if("wdkit"!=window.wdkit_editor){if("elementor"==window.wdkit_editor)var a="1001";else a="gutenberg"==window.wdkit_editor?"1002":"0";if(a==e.plugin_builder||0==e.plugin_builder)return(0,Be.jsxs)("div",{className:"wkit-plugin-name",onClick:t=>ee(t,"plugins",e.p_id),children:[te(e.p_id),(0,Be.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,Be.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1}),(0,Be.jsx)("span",{children:e.plugin_name})]})]},t)}else if(ne(e.plugin_builder)&&(U.builder==e.plugin_builder||""==U.builder||0==e.plugin_builder))return(0,Be.jsxs)("div",{className:"wkit-plugin-name",onClick:t=>ee(t,"plugins",e.p_id),children:[te(e.p_id),(0,Be.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,Be.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1}),(0,Be.jsx)("span",{children:e.plugin_name})]})]},t)}))})})]}),(0,Be.jsx)("hr",{}),!(Object.values(d).length<=0)&&(0,Be.jsx)(Wt,{children:Object.entries(d)?.map((([e,t],i)=>{var s="";if("wdkit"!==wdkitData.use_editor&&"Website Kits"==e&&(s="Website Kits"),T==e.split(" ").join("").toLowerCase().slice(0,-1)){const n=e=>"Website Kits"===e?"Page Kits":e;return(0,Be.jsxs)(Wt,{children:[(0,Be.jsxs)("div",{className:"Website Kits"===s?"wkit-filter-container":"",children:["Website Kits"===s&&(0,Be.jsxs)("span",{className:"wkit-pageType-mobile-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,Be.jsx)("a",{href:"/admin.php?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("click here","wdesignkit")})," ",(0,a.__)("to open the dashboard.","wdesignkit")]}),(0,Be.jsxs)("div",{className:"Website Kits"===s?"wkit-filter-accordion wkit-filter-accordion-disable":"wkit-filter-accordion",onClick:()=>Q("category-"+i),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:n(e)}),(0,Be.jsx)("div",{className:"wkit-arrow-down",children:m?.includes("category-"+i)?ie():ae()})]})]}),m?.includes("category-"+i)&&(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:Object.entries(t)?.map((([e,t],a)=>(0,Be.jsxs)("label",{htmlFor:"category_"+e,className:"wkit-plugin-name",children:[(0,Be.jsx)("input",{type:"checkbox",value:e,className:"wkit-check-box wkit-styled-checkbox",id:"category_"+e,name:"selectPlugin",onChange:e=>ee(e,"category"),checked:b.includes(Number(e))?"checked":""}),(0,Be.jsx)("span",{children:t.term_name})]},a)))})}),(0,Be.jsx)("hr",{})]},i)}}))}),(0,Be.jsxs)(Wt,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>Q("tags"),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Tags","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-arrow-down",children:m?.includes("tags")?ie():ae()})]}),m?.includes("tags")&&(0,Be.jsxs)("div",{className:"wkit-accordion-content",children:[(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)(Bt.DebounceInput,{className:"wkit-browse-search",placeholder:(0,a.__)("Search Tags","wdesignkit"),name:"wkit-search",type:"text",minLength:0,debounceTimeout:500,onChange:e=>{var t;t=e.target.value,Z(t),O(t?r?.tags?.filter((e=>e.tag_name.toLowerCase().includes(t.toLowerCase()))):r?.tags)},value:S}),(0,Be.jsx)("button",{type:"submit",className:"wkit_search_button wkit-btn-class",children:(0,Be.jsxs)("svg",{className:"wkit-search-icon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),E&&Object.values(E)?.length>0&&(0,Be.jsxs)("div",{className:"wkit-browse-tag",children:[r.tags.map(((e,t)=>{if(u.includes(e?.tag_id))return(0,Be.jsxs)("div",{className:"wkit-tag-filter-list",children:[(0,Be.jsx)("input",{type:"checkbox",value:e.tag_id,className:"wkit-tag-checkbox",id:"tag_"+e.tag_id,name:"selectTags",onChange:e=>ee(e,"tags"),checked:u.includes(Number(e.tag_id))?"checked":""}),(0,Be.jsxs)("span",{className:"wkit-browse-tag-name wkit-active-tag",children:[e.tag_name,(0,Be.jsx)("label",{htmlFor:"tag_"+e.tag_id,className:"wkit-browse-tag-remove",children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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:"white"})})})]})]},t)})),Object.values(E)?.map(((e,t)=>{if(t<5+u.length&&!u.includes(e?.tag_id))return(0,Be.jsxs)("div",{className:"wkit-tag-filter-list",children:[(0,Be.jsx)("input",{type:"checkbox",value:e.tag_id,className:"wkit-tag-checkbox",id:"tag_"+e.tag_id,name:"selectTags",onChange:e=>ee(e,"tags"),checked:u.includes(Number(e.tag_id))?"checked":""}),(0,Be.jsx)("label",{className:"wkit-browse-tag-name",htmlFor:"tag_"+e.tag_id,children:e.tag_name})]},t)}))]})]})]})]})]}):(0,Be.jsxs)("div",{className:"filter-abosulte",onClick:()=>{w(!p)},children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Filters","wdesignkit")]})}),(0,Be.jsxs)("div",{className:"filter-abosulte wkit-browse-mobile-filter",onClick:()=>{document.querySelector(".wkit-mobile-filter-main")&&document.querySelector(".wkit-mobile-filter-main").classList.add("wkit-filter-menu-show")},children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Filters","wdesignkit")]}),(0,Be.jsx)(Tt,{filter_type:"template",filter_data:U,setfilter_data:e=>{z(e)},setcategory_check:e=>{x(e)},setfreePro_check:e=>{j(e)},settag_check:e=>{h(e)},setbuilder_check:e=>{$(e)},setpageType_check:e=>{P(e)},setsearch_check:e=>{v(e)},category_list:d,searchvalue:k,builder_list:r?.builder,plugin_list:r?.plugin,tag_list:r?.tags,BuilderArray:W}),(0,Be.jsxs)("div",{className:"wkit-browse-right-column",children:[(()=>{let e=U.plugin&&Array.isArray(U.plugin)?U.plugin:U.plugin?JSON.parse(U.plugin):[],t=U.plugin_exclude&&Array.isArray(U.plugin_exclude)?U.plugin_exclude:U.plugin_exclude?JSON.parse(U.plugin_exclude):[];const s=(e,t)=>{let a;if("plugin"==t){let t=JSON.parse(U.plugin).filter((t=>t!==e));a=Object.assign({},U,{plugin:JSON.stringify(t)})}else if("plugin_exclude"==t){let t=JSON.parse(U.plugin_exclude).filter((t=>t!==e));a=Object.assign({},U,{plugin_exclude:JSON.stringify(t)})}else if("category"==t){let t=[...b];t=t.filter((t=>t!==Number(e))),x(t),a=Object.assign({},U,{category:JSON.stringify(t)})}else if("tag"==t){let t=[...u];t=t.filter((t=>t!==Number(e))),h(t),a=Object.assign({},U,{tag:JSON.stringify(t)})}else"page_type"==t?(P([]),a=Object.assign({},U,{page_type:""})):"search"==t?(v(""),C(""),a=Object.assign({},U,{search:""})):"builder"==t?($(""),a=Object.assign({},U,{builder:""})):"free_pro"==t&&(j(""),a=Object.assign({},U,{free_pro:""}));z(a);const s=new URLSearchParams(X(a)).toString();i(`/browse?${s}`)};return(0,Be.jsx)("div",{className:"wkit-free-dropdown-mixed",children:(""!=f||e?.length>0||t?.length>0||b.length>0||u.length>0||""!=k||""!=y||0!=T)&&(0,Be.jsx)("div",{className:"wkit-browse-applied-filter",children:(0,Be.jsxs)(Wt,{children:[(0,Be.jsx)("label",{className:"applied-filter-text",children:(0,a.__)("Applied Filter :","wdesignkit")}),""!=f&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:f})}),(0,Be.jsx)("button",{onClick:e=>s(e,"free_pro"),children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]}),""!=k&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:k})}),(0,Be.jsx)("button",{onClick:e=>s(e,"search"),children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]}),""!=y&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:le(y)})}),(0,Be.jsx)("button",{onClick:e=>s(e,"builder"),children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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(r?.plugin)?.map(((t,a)=>(0,Be.jsx)(Wt,{children:e?.includes(t.p_id)&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[te(t.p_id),(0,Be.jsxs)("label",{children:[(0,Be.jsx)("img",{src:t.plugin_icon?t.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo"}),(0,Be.jsx)("span",{children:t.plugin_name})]}),(0,Be.jsx)("button",{onClick:()=>{s(t.p_id,"plugin")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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))),t.length>0&&Object.values(r?.plugin)?.map(((e,a)=>(0,Be.jsx)(Wt,{children:t?.includes(e.p_id)&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[te(e.p_id),(0,Be.jsxs)("label",{children:[(0,Be.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo"}),(0,Be.jsx)("span",{children:e.plugin_name})]}),(0,Be.jsx)("button",{onClick:()=>{s(e.p_id,"plugin_exclude")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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))),""!=T&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:Y?.[T]})}),(0,Be.jsx)("button",{onClick:e=>s(e,"page_type"),children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]}),b.length>0&&Object.values(r?.category)?.map(((e,t)=>(0,Be.jsx)(Wt,{children:b.includes(e.term_id)&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:e.term_name})}),(0,Be.jsx)("button",{onClick:()=>{s(e.term_id,"category")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]})},t))),u?.length>0&&Object.values(r?.tags)?.map(((e,t)=>(0,Be.jsx)(Wt,{children:u.includes(e?.tag_id)&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:e.tag_name})}),(0,Be.jsx)("button",{onClick:()=>{s(e.tag_id,"tag")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]})},t))),(0,Be.jsx)("button",{className:"wdkit-reset-all-filters wkit-btn-class",onClick:()=>{h([]),x([]),P([]),j(""),v(""),C(""),$(""),z(Object.assign({},U,{type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:12,page_type:"",page:R,category:"",tag:"",search:"",free_pro:"",plugin:"",plugin_exclude:""})),i("/browse")},children:(0,a.__)("Clear All","wdesignkit")})]})})})})(),(0,Be.jsxs)("div",{className:"wdkit-loop",children:[(0,Be.jsx)(Wt,{children:0==s&&r?.template.length>0&&(0,Be.jsx)("div",{className:p?"wdesign-kit-main":"wkit-browse-filter-close wdesign-kit-main",children:Object.values(r.template).map(((e,a)=>(0,Be.jsx)(Wt,{children:("active"==e.is_activated&&"wdkit"==wdkitData.use_editor&&Gt(e.post_builder,"all",r?.builder)||"wdkit"!=wdkitData.use_editor)&&(0,Be.jsx)(Ft,{data:e,builder:r.builder,currentPage:R,credits:t?.wdkit_meta?.credits,handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?Kt(i,s):"",L("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else L(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),r.builder):L(t)},type:"websitekit"==e.type?e.type+"-view":e.type,filter:"browse",width:"24%",wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})},a)))})}),1==s&&(0,Be.jsx)(Pt,{cards:!0}),0==s&&r?.template.length<=0&&(0,Be.jsx)(_t,{page:"template",link:wdkitData.WDKIT_DOC_URL+"docs/export-templates-from-elementor-site-to-cloud"}),(()=>{if(r?.template.length>0&&r?.totalpage>1)return(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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:r.totalpage,marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&(U.page=e.nextSelectedPage+1,z({...U}),B(e.nextSelectedPage+1))},forcePage:R-1,onPageActive:()=>{}})})})()]})]}),N&&(0,Be.jsx)("div",{className:"wkit-myupload-main wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content wkit-import-template",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",L(""))})(e),H(!1),L("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)(qt,{template_id:N,custom_meta_import:V,template_list:r?.template,global_data:I,handlerAfterSuccessImported:()=>{H(!1),L("")},wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}}):(0,Be.jsx)(It,{template_id:N,handlerSuccessImport:(e,t,a)=>{H(e),D(t),q(a)},type:wdkitData?.use_editor,templateData:r?.template,pluginData:r?.plugin,pageNow:"browse",navigation:i})]})})]}):(0,Be.jsx)(Pt,{cards:!0,filter:!0,filterArgs:U})})},{Fragment:Xt}=wp.element,{Success_import_template:ea,Template_loop:ta,Plugin_missing:aa,checkBuilder:ia,wkit_get_user_login:sa,wkitGetBuilder:na}=wp.wkit_Helper,la=t=>{if(!sa())return t.wdkit_Login_Route("/my_uploaded"),(0,Be.jsx)(ce,{to:"/login"});let i=J();const[s,n]=(0,e.useState)("pagetemplate"),[l,r]=(0,e.useState)("loading"),[o,d]=(0,e.useState)(""),[c,p]=(0,e.useState)(!1),[w,m]=(0,e.useState)(!1),[g,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)("all"),[C,k]=(0,e.useState)(!1),[v,b]=(0,e.useState)(),[x,f]=(0,e.useState)([]),[j,y]=(0,e.useState)(1),[$,N]=(0,e.useState)(12),[L,M]=(0,e.useState)(2),[H,V]=(0,e.useState)(),[D,S]=(0,e.useState)();(0,e.useEffect)((()=>{i.search&&""!=i.search?n(i.search.slice(1)):n(s)}),[i.search]);let Z=0;(0,e.useEffect)((()=>{r(t?.wdkit_meta),E()}),[t.wdkit_meta]),(0,e.useEffect)((()=>{(async()=>{if(i.search){let e=i.search.slice(1);await n(e),window.location.hash="/my_uploaded"}})()}),[]),(0,e.useEffect)((()=>{B()}),[s,x,j]);const R=i.state;(0,e.useEffect)((()=>{R&&(y(R),n("websitekit"))}),[R]);const B=async()=>{if(k(!0),x[s]&&t?.wdkit_meta?.template){let t=(j-1)*$,a=t+$;if(await V(t),await S(a),g){var e=0;l?.favoritetemplate?.length>0&&l?.favoritetemplate.map((t=>{(x?.[s]?.length>0&&x?.[s].findIndex((e=>e.id==t)))>-1&&e++})),await M(Math.ceil(e/$))}else await M(Math.ceil(x[s].length/$));setTimeout((()=>{k(!1)}),700)}},E=async()=>{let e=t?.wdkit_meta?.template,a=[],i=[],s=[];await e&&e.map((e=>{e.user_id==t?.wdkit_meta?.userinfo?.id&&("pagetemplate"==e.type?a.push(e):"section"==e.type?i.push(e):"websitekit"==e.type&&s.push(e))}));let n={pagetemplate:[...a],section:[...i],websitekit:[...s]};f(n)},O=e=>{l.favoritetemplate=e,r(l)};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")}));const A=(e,t)=>"disable-btn"===e?0==t[s]?.length?"wkit-disable-btn-class":void 0:"disable-element"===e&&0==t[s]?.length?"wdkit-diabled-element":void 0;return(0,Be.jsxs)("div",{className:"wkit-myupload-main",children:["wdkit"==window.wdkit_editor&&(0,Be.jsx)(ft,{title:(0,a.__)("My Templates","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4 20H20M9.5 15.5V9.5H5L12 2.5L19 9.5H14.5V15.5H9.5Z",stroke:"#040483",strokeWidth:"1.5",strokeLinecap:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-navbar",children:[(0,Be.jsxs)("div",{className:"wkit-navbar-left-btn",children:[(0,Be.jsxs)("button",{className:"pagetemplate"==s?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{y(1),n("pagetemplate")},children:[(0,Be.jsx)("div",{className:"wdkit-img",children:(0,Be.jsx)("svg",{width:"18",height:"22",viewBox:"0 0 18 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Pages","wdesignkit")})]}),(0,Be.jsxs)("button",{className:"section"==s?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{y(1),n("section")},children:[(0,Be.jsx)("div",{className:"wdkit-img",children:(0,Be.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Sections","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wdkit-menu-disable-button",children:["wdkit"!==wdkitData.use_editor&&(0,Be.jsxs)("span",{className:"wdkit-kit-disable-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,Be.jsx)("a",{href:ze()+"/admin.php?page=wdesign-kit#/browse",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("click here","wdesignkit")})," ",(0,a.__)("to open the dashboard.","wdesignkit")]}),(0,Be.jsxs)("button",{className:`${"websitekit"===s?"wdesignkit-menu tab-active":"wdesignkit-menu"} ${"wdkit"!==wdkitData.use_editor?"wdesignkit-menu-disable":""}`,onClick:()=>{y(1),n("websitekit")},children:[(0,Be.jsx)("div",{className:"wdkit-img",children:(0,Be.jsx)("svg",{width:"20",height:"22",viewBox:"0 0 20 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Kits","wdesignkit")})]})]})]}),(0,Be.jsx)("div",{className:`wkit-navbar-right-btn ${A("disable-btn",x)}`,children:(0,Be.jsxs)("div",{className:`wdkit-favourite-btn ${A("disable-element",x)}`,onClick:()=>{(()=>{if(g)M(Math.ceil(x[s].length/$));else{var e=0;l?.favoritetemplate?.length>0&&l?.favoritetemplate.map((t=>{(x?.[s]?.length>0&&x?.[s].findIndex((e=>e.id==t)))>-1&&e++})),M(Math.ceil(e/$))}u(!g)})()},children:[g?(0,Be.jsx)("svg",{className:"wkit-active-favourite-svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("svg",{className:"wkit-svg-hover",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wdkit-favourite-btn-title",children:(0,a.__)("Favourites","wdesignkit")})]})})]}),(0,Be.jsxs)("div",{className:"wdkit-loop",children:[0==C&&x[s]?.length>0&&(0,Be.jsx)("div",{className:"wdesign-kit-main",children:Object.values(x[s]).slice(H,D).map(((e,a)=>{if(e.user_id==t?.wdkit_meta?.userinfo?.id)return Z=""==Z?0:Z,(0,Be.jsx)(Xt,{children:"websitekit"==s?(!g&&e.type===s&&ia(e.post_builder,h)||g&&l.favoritetemplate.includes(Number(e.id))&&ia(e.post_builder,h))&&(Z++,(0,Be.jsx)(ta,{userData:l,userinfo:t?.wdkit_meta?.userinfo,handler:e=>O(e),handlerTempID:e=>d(e),data:e,credits:t?.wdkit_meta?.credits,builder:l.builder,currentPage:j,setLoading:e=>{k(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),favorite:l.favoritetemplate,type:s+"-view",width:"24%",wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})):(!g&&e.type===s&&ia(e.post_builder,h)||g&&l.favoritetemplate.includes(Number(e.id))&&ia(e.post_builder,h))&&(Z++,(0,Be.jsx)(ta,{userData:l,userinfo:t?.wdkit_meta?.userinfo,handler:e=>O(e),credits:t?.wdkit_meta?.credits,handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?na(i,s):"",d("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else d(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),l.builder):d(t)},UpdateUserData:e=>t.wdkit_set_meta(e.data),setLoading:e=>{k(e)},data:e,builder:l.builder,currentPage:j,favorite:l.favoritetemplate,type:s,handlerAfterSuccessImported:()=>{p(!1),d("")},width:"24%",wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}}))},a)}))}),1==C&&(0,Be.jsx)(ht,{}),0==C&&Z<=0&&(0,Be.jsx)(_t,{page:(T=s,"websitekit"===T?"Kit":"Template"),link:"websitekit"===s?`${wdkitData.WDKIT_DOC_URL}docs/create-pagekit-from-sections-and-full-pages-for-elementor-or-gutenberg/`:`${wdkitData.WDKIT_DOC_URL}documents/export-templates-from-your-elementor-site-to-cloud/`})]}),o&&(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content wkit-import-template",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",d(""))})(e),p(!1),d("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)(Xt,{children:(0,Be.jsx)(ea,{template_id:o,custom_meta_import:w,template_list:x[s],global_data:v,handlerAfterSuccessImported:()=>{p(!1),d("")},wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})}):(0,Be.jsx)(aa,{template_id:o,handlerSuccessImport:(e,t,a)=>{p(e),m(t),b(a)},type:wdkitData.use_editor,templateData:l.template,pluginData:l.plugin})]})}),(0,Be.jsx)("div",{className:"wkit-wb-paginatelist",children:L>1&&(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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:L,marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&y(e.nextSelectedPage+1)},forcePages:j-1,onPageActive:()=>{}})})})]});var T},{Fragment:ra}=wp.element,{form_data:oa,Success_import_template:da,Template_loop:ca,Plugin_missing:pa,checkBuilder:wa,loadingIcon:ma,wkit_get_user_login:ga}=wp.wkit_Helper,ua=t=>{const i=Y(),s=J(),n=G(),l=new URLSearchParams(s.search),[r,o]=(l.get("page"),l.get("wsID"),(0,e.useState)("loading")),[d,c]=(0,e.useState)(""),[p,w]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[u,h]=(0,e.useState)({pages:[],sections:[]}),[_,C]=(0,e.useState)(!1),[k,v]=(0,e.useState)(),[b,x]=(0,e.useState)(!1);var f=t.wdkit_meta?.builder?t.wdkit_meta.builder:[];(0,e.useEffect)((()=>{"loading"!==r&&y()}),[r]),(0,e.useEffect)((()=>{x(!0),i&&i.kit_id&&(async e=>{if(!e)return;let t=ga(),a="";t&&t.user_email&&t.user_email;let i={type:"kit_template",builder:window.wdkit_editor};i=Object.assign({},i,e);let s=await oa(i);if(s?.success){let e=Object.entries(s?.kitimages),t=Object.entries(s?.responsive_image),a=s?.template,i=[];a?.length>0&&await a.map((a=>{let s=e.findIndex((e=>e[0]==a.id)),n=t.findIndex((e=>e[0]==a.id));if(s>-1){let l=Object.assign({},a,{post_image:e[s][1],responsive_image:t[n][1]});i.push(l)}else i.push(a)}));var n=Object.assign({},s,{template:i})}else n=[];return await x(!1),n})({template_id:i.kit_id}).then((async e=>{await j(e)}))}),[]);const j=async e=>{let a=e?.template,i=[];a&&a.map((async e=>{("publish"==e.post_status||t?.wdkit_meta?.userinfo?.id&&e.user_id==t?.wdkit_meta?.userinfo?.id)&&i.push(e)}));let s=Object.assign({},e.data,{template:i}),n=Object.assign({},e,{data:s});await o(n)};(0,e.useEffect)((()=>{if(r?.data?.template?.length>0){let e=r?.data?.template?.length,t=u.pages.length+u.sections.length,a=r?.data?.template?.map((e=>e.is_activated)),i=[...a,...Array.isArray(r?.data?.pages)?r?.data?.pages.map((e=>e.is_activated)):[]].filter((e=>"active"==e)).length;g(e==t||i==t)}else g(!1)}),[u]);const y=()=>{const e=u.pages.length+u.sections.length,t=r?.data?.template?.filter((e=>"active"===e.is_activated)).length;if(m||t===e)h({pages:[],sections:[]});else{const e=r?.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)})),h({pages:t,sections:a})}};return(0,Be.jsxs)("div",{className:"wkit-myupload-main",children:[(0,Be.jsxs)("div",{className:"wkit-kit-header",children:[(0,Be.jsxs)("div",{className:"wkit-header-content-inner",children:[(0,Be.jsx)("div",{className:"wkit-kit-header-back",children:(0,Be.jsx)("div",{onClick:()=>{n(window.history.back())},children:(0,Be.jsx)("div",{className:"wkit-kit-header-backbtn",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M19 12H5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12 19L5 12L12 5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})})}),(0,Be.jsx)(ft,{loader:b,title:r?.kitdata?.title,svg:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",style:{width:"28px",minWidth:"22px"},children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-kit-selectAll-btn",children:[(0,Be.jsx)("input",{id:"wkit-selectAll-kitTemp",className:"wkit-selectAll-check-box",type:"checkbox",checked:m,onChange:()=>{y()}}),(0,Be.jsx)("label",{htmlFor:"wkit-selectAll-kitTemp",children:(0,a.__)("Select All","wdesignkit")})]})})]}),0==b&&r?.data?.template?.length>0&&(u?.pages?.length>0||u?.sections?.length>0)&&(0,Be.jsx)("div",{className:"wkit-download-all-temp wkit-btn-class",onClick:()=>{c(u)},children:"Download ( "+(u?.pages?.length+u?.sections?.length)+"/"+(r?.data?.template?.length?r?.data?.template?.length:0)+" )"})]}),(0,Be.jsxs)("div",{className:"wdkit-loop",children:[0==b&&r?.data?.template?.length>0&&f&&(0,Be.jsx)("div",{className:"wdesign-kit-main",children:Object.values(r.data.template).map(((e,a)=>(0,Be.jsx)(ra,{children:wa(e.post_builder,"all",f)&&(0,Be.jsx)(ca,{handler:e=>(e=>{r.data.favorite=e,o(r)})(e),handlerTempID:e=>c(e),credits:t?.wdkit_meta?.credits,data:e,setLoading:e=>{x(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),userinfo:t?.wdkit_meta?.userinfo,builder:t?.wdkit_meta?.builder,checklist:u,favorite:r.data.favorite||[],type:"websitekit",handlerMultiSelect:(e,t)=>{((e,t)=>{e&&"add"==t?"pagetemplate"==e.type?(u.pages.push(e),h({pages:u.pages,sections:u.sections})):"section"==e.type&&(u.sections.push(e),h({pages:u.pages,sections:u.sections})):e&&"remove"==t&&("pagetemplate"==e.type?h({pages:u.pages.filter((t=>t.id!=Number(e.id))),sections:u.sections}):"section"==e.type&&h({pages:u.pages,sections:u.sections.filter((t=>t.id!=Number(e.id)))}))})(e,t)}})},a)))}),1==b&&(0,Be.jsx)(ht,{}),0==b&&(null==r?.data?.template||r?.data?.template?.length<=0)&&(0,Be.jsx)(_t,{page:"template",link:wdkitData.WDKIT_DOC_URL+"documents/create-pagekit-from-sections-and-full-pages-for-elementor-or-gutenberg/"})]}),d&&(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content wkit-import-template",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",c(""),w(!1))})(e),w(!1),c("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})}),p?(0,Be.jsx)(ut,{kit_id:i.kit_id,template_id:u,custom_meta_import:_,global_data:k,template_list:r?.data?.template,meta_data:t?.wdkit_meta,handlerAfterSuccessImported:()=>{w(!1),c("")}}):(0,Be.jsx)(pa,{template_id:d,handlerSuccessImport:(e,t,a)=>{((e,t)=>{c(Object.assign({},d)),C(t),w(e)})(e,t),v(a)},type:"kit_page",templateData:r.data.template,pluginData:t?.wdkit_meta?.plugin,kit_builder:tt(r?.kitdata?.post_builder,f)})]})})]})},{Fragment:ha}=wp.element,{Template_loop:_a,checkBuilder:Ca,Plugin_missing:ka,Success_import_template:va,wkit_get_user_login:ba,wkitGetBuilder:xa}=wp.wkit_Helper,fa=t=>{var i=wdkitData.WDKIT_URL;if(!ba())return t.wdkit_Login_Route("/share_with_me"),(0,Be.jsx)(ce,{to:"/login"});const[s,n]=(0,e.useState)(1),[l,r]=(0,e.useState)(12),[o,d]=(0,e.useState)(0),[c,p]=(0,e.useState)(),[w,m]=(0,e.useState)([]),[g,u]=(0,e.useState)(""),[h,_]=(0,e.useState)(!1),[C,k]=(0,e.useState)(!1),[v,b]=(0,e.useState)("all"),[x,f]=(0,e.useState)(),[j,y]=(0,e.useState)("templates"),[$,N]=(0,e.useState)(!0),[L,M]=(0,e.useState)([]),H=J().state;(0,e.useEffect)((()=>{H&&n(H)}),[H]),(0,e.useEffect)((()=>{t?.wdkit_meta?.userinfo&&p(t?.wdkit_meta)}),[t?.wdkit_meta?.userinfo]),(0,e.useEffect)((()=>{c&&(async()=>{N(!0);let e=Xe();if(e){let a={token:e.token,type:"widgets"==j?"builder":"templates"==j?"template":"",current_page:s,par_page:l,id:c?.userinfo?.id,builder:window.wdkit_editor},i={type:"shared_with_me",api_info:JSON.stringify(a)};await Ye(i).then((async e=>{if(await m(e),"widgets"==j){(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)})),M(a)}})(e?.data?.content)}let a=e?.data?.data?.total?e.data.data.total:0;d(Math.ceil(a/l))}))}N(!1)})()}),[j,s,c]);return(0,Be.jsxs)("div",{className:"wkit-share-with-me",children:[(0,Be.jsx)(ft,{title:(0,a.__)("Shared With Me","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.375 5.875C12.375 3.73489 14.1099 2 16.25 2C18.3901 2 20.125 3.73489 20.125 5.875C20.125 8.01511 18.3901 9.75 16.25 9.75C15.1698 9.75 14.1929 9.30803 13.4901 8.59505L10.4621 10.5004C10.6477 10.9532 10.75 11.449 10.75 11.9687C10.75 12.488 10.6479 12.9834 10.4626 13.436L13.491 15.3416C14.1937 14.6291 15.1703 14.1875 16.25 14.1875C18.3901 14.1875 20.125 15.9224 20.125 18.0625C20.125 20.2026 18.3901 21.9375 16.25 21.9375C14.1099 21.9375 12.375 20.2026 12.375 18.0625C12.375 17.5424 12.4775 17.0462 12.6633 16.593L9.63573 14.6879C8.93292 15.4014 7.95562 15.8437 6.875 15.8437C4.73489 15.8437 3 14.1089 3 11.9687C3 9.82862 4.73489 8.09375 6.875 8.09375C7.95517 8.09375 8.93212 8.53571 9.63486 9.24867L12.6629 7.34334C12.4773 6.89048 12.375 6.39469 12.375 5.875ZM16.25 3.5C14.9383 3.5 13.875 4.56331 13.875 5.875C13.875 7.18669 14.9383 8.25 16.25 8.25C17.5617 8.25 18.625 7.18669 18.625 5.875C18.625 4.56331 17.5617 3.5 16.25 3.5ZM6.875 9.59375C5.56331 9.59375 4.5 10.6571 4.5 11.9687C4.5 13.2804 5.56331 14.3437 6.875 14.3437C8.18669 14.3437 9.25 13.2804 9.25 11.9687C9.25 10.6571 8.18669 9.59375 6.875 9.59375ZM13.875 18.0625C13.875 16.7508 14.9383 15.6875 16.25 15.6875C17.5617 15.6875 18.625 16.7508 18.625 18.0625C18.625 19.3742 17.5617 20.4375 16.25 20.4375C14.9383 20.4375 13.875 19.3742 13.875 18.0625Z",fill:"#040483"})}),custom_dropdown:()=>"wdkit"==window?.wdkit_editor&&(0,Be.jsx)(ha,{children:(0,Be.jsxs)("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"},children:[(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-header wkit-shareWithMe-drop-down",children:["templates"===j&&(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"===j&&(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{style:{textTransform:"capitalize"},children:j}),(0,Be.jsx)("img",{src:i+"assets/images/wb-svg/controller-open.svg",style:{width:"15px"}})]}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-content",children:[(0,Be.jsx)("div",{className:"wkit-drop-down-outer"}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:e=>{y("templates")},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Templates","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:e=>{y("widgets")},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Widgets","wdesignkit")})]})]})]})})}),(0,Be.jsxs)("div",{className:"wdkit-loop",children:[w?.data?.content?.length>0&&t?.wdkit_meta&&!$&&(0,Be.jsx)("div",{className:"wdesign-kit-main wkit-grid-columns",children:Object.values(w.data.content).map(((e,a)=>(0,Be.jsx)(ha,{children:"templates"==j?(0,Be.jsx)(ha,{children:Ca(e.post_builder,v)&&(0,Be.jsx)(_a,{handler:e=>m(w),handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?xa(i,s):"",u("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else u(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),c.builder):u(t)},userinfo:t?.wdkit_meta?.userinfo,data:e,credits:t?.wdkit_meta?.credits,currentPage:s,builder:t?.wdkit_meta?.builder,type:"websitekit"==e.type?e.type+"-view":e.type,width:"24%",wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})}):(0,Be.jsx)(ha,{children:(0,Be.jsx)(xt,{widgetData:e,existingwidget:L,setexistingwidget:e=>{M(e)},widgetbuilder:t.wdkit_meta.widgetbuilder,index:a,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,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})},a)},a)))}),(0==w?.data?.total||"error"==w?.data?.data)&&0==$&&(0,Be.jsx)(_t,{page:j,link:wdkitData.WDKIT_DOC_URL+"documents/add-templates-and-widgets-in-workspace/"}),$&&(0,Be.jsx)("div",{style:{width:"100%"},children:(0,Be.jsx)(ht,{})})]}),g&&(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content wkit-import-template",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",u(""))})(e),_(!1),u("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)(va,{template_id:g,custom_meta_import:C,template_list:w?.data?.content,global_data:x,handlerAfterSuccessImported:()=>{_(!1),u("")},wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}}):(0,Be.jsx)(ka,{template_id:g,handlerSuccessImport:(e,t,a)=>{_(e),k(t),f(a)},type:wdkitData.use_editor,templateData:w?.data?.content,pluginData:t?.wdkit_meta?.plugin,wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})]})}),(0,Be.jsx)("div",{className:"wkit-wb-paginatelist",children:o>1&&(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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)},forcePage:s-1,onPageActive:()=>{}})})})]})},{Fragment:ja}=wp.element,{get_userinfo:ya,Add_workspace:$a,manage_WorkSpace_Api:Na,wkit_get_user_login:La,Letter_image:Ma}=wp.wkit_Helper,Ha=t=>{let i=La();if(!i)return t.wdkit_Login_Route("/manage_workspace"),(0,Be.jsx)(ce,{to:"/login"});const[s,n]=(0,e.useState)("loading"),[l,r]=(0,e.useState)(!1),[o,d]=(0,e.useState)(!1),[c,p]=(0,e.useState)(),[w,m]=(0,e.useState)(!0),[g,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)(-1);(0,e.useEffect)((()=>{m(!0),n(t?.wdkit_meta),t?.wdkit_meta?.workspace&&m(!1)}),[t?.wdkit_meta]),(0,e.useEffect)((()=>{C()}),[s,i?.work_widgets?.length]);const C=async()=>{let e=s?.workspace,t=s?.userinfo?.id,a=0;await e&&e.map((e=>{e.u_id==t&&(a+=1)})),p(a)},k=e=>{let t=e?.share_user[e.u_id]?e?.share_user[e.u_id]:"",i=s?.userinfo?.full_name?s.userinfo.full_name:"",n=s?.userinfo?.user_profile?s.userinfo.user_profile:"",l=s?.userinfo?.id?s.userinfo.id:"";return(0,Be.jsxs)("div",{className:"wkit-avatar-name",children:[(0,Be.jsx)("span",{children:(0,a.__)("by","wdesignkit")}),e.u_id==l&&n?(0,Be.jsx)("img",{src:n,alt:"user-img",style:{borderRadius:"50px"},draggable:"false"}):(0,Be.jsx)("img",{src:t.user_profile,alt:"user-img",style:{borderRadius:"50px"},draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-avatar-main-name",children:e?.u_id==l?i:t.full_name})]})},v=e=>{let t=e.w_id;return(0,Be.jsxs)("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"},children:[(0,Be.jsx)("div",{className:"wkit-ws-card-menu wkit-custom-dropDown-header",children:(0,Be.jsx)("svg",{"data-v-20a7cc98":"",width:"16",height:"4",viewBox:"0 0 16 4",fill:"#19191B",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-custom-dropDown-content",style:{width:"130px"},children:[(0,Be.jsx)("div",{className:"wkit-drop-down-outer"}),(0,Be.jsx)(xe,{to:"/manage_workspace/workspace_template/"+t,children:(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",children:[(0,Be.jsx)("span",{className:"wkit-custom-dropDown-icon",children:(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("View","wdesignkit")})]})}),"admin"==e?.roles&&(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{_(t)},children:[(0,Be.jsx)("span",{className:"wkit-custom-dropDown-icon",children:(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Delete","wdesignkit")})]})]})]})},b=e=>(0,Be.jsxs)("div",{className:"wkit-top-user",children:[(0,Be.jsxs)("div",{className:"wkit-live-user wkit-workspace-detail",children:[(0,Be.jsx)("img",{src:f+"assets/images/svg/user.svg",alt:"user img",draggable:"false"}),(0,Be.jsx)("span",{children:Object.values(e.share_user).length}),(0,Be.jsx)("span",{className:"wkit-workspace-tool-tip",children:(0,a.__)("Users","wdesignkit")})]}),1==t?.wdkit_meta?.Setting?.template&&(0,Be.jsxs)("div",{className:"wkit-workspace-edit-temp wkit-workspace-detail",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:e.work_templates.length}),(0,Be.jsx)("span",{className:"wkit-workspace-tool-tip",children:(0,a.__)("Templates","wdesignkit")})]}),1==t?.wdkit_meta?.Setting?.builder&&(0,Be.jsxs)("div",{className:"wkit-workspace-edit-widget wkit-workspace-detail",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:e.work_widgets.length}),(0,Be.jsx)("span",{className:"wkit-workspace-tool-tip",children:(0,a.__)("Widgets","wdesignkit")})]})]});var x,f=wdkitData.WDKIT_URL;return(0,Be.jsxs)("div",{className:"wkit-manage-main",children:[(0,Be.jsx)(ft,{title:(0,a.__)("Manage Workspace","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M15.6843 6.81612C15.6843 8.67309 14.1299 10.2143 12.1676 10.2143C10.2054 10.2143 8.65098 8.67309 8.65098 6.81612C8.65098 4.95915 10.2054 3.41797 12.1676 3.41797C14.1299 3.41797 15.6843 4.95915 15.6843 6.81612ZM22.0843 17.1865C22.0843 19.0435 20.5299 20.5846 18.5676 20.5846C16.6054 20.5846 15.051 19.0435 15.051 17.1865C15.051 15.3295 16.6054 13.7883 18.5676 13.7883C20.5299 13.7883 22.0843 15.3295 22.0843 17.1865ZM9.28431 17.1865C9.28431 19.0435 7.7299 20.5846 5.76764 20.5846C3.80538 20.5846 2.25098 19.0435 2.25098 17.1865C2.25098 15.3295 3.80539 13.7883 5.76764 13.7883C7.7299 13.7883 9.28431 15.3295 9.28431 17.1865Z",stroke:"#040483",strokeWidth:"1.5"})})}),(0,Be.jsxs)("div",{className:"wkit-workspace-wrapper",children:[s?.workspace&&0==w&&(0,Be.jsxs)("div",{className:"wkit-workspace-wrapper-content",children:[(0,Be.jsx)(ja,{children:Object.values(s.workspace).map(((e,t)=>{let i=e.w_id;return(0,Be.jsx)("div",{className:"wkit-workspace-wraped",children:(0,Be.jsxs)("div",{className:"wkit-workspace-box",children:["active"!=e?.is_activated&&(0,Be.jsxs)(ja,{children:[(0,Be.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Template got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(0,Be.jsx)("span",{className:"wdkit-inner-boxed-remove",children:(0,Be.jsx)("svg",{onClick:()=>{_(i)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-workspace-card-container",children:[(0,Be.jsxs)("div",{className:"wkit-workspace-mixed",children:[e.work_icon?(0,Be.jsx)("img",{src:e.work_icon,alt:"workspace-icon",className:"wkit-profile-back",draggable:"false"}):(0,Be.jsx)("div",{className:"wkit-profile-back wkit-profile-letter",style:{textTransform:"uppercase"},children:Ma(e.work_title)}),b(e)]}),(0,Be.jsx)(xe,{className:"wkit-wp-card-link",to:"/manage_workspace/workspace_template/"+i,children:(0,Be.jsx)("div",{className:"wkit-user-name",children:e.work_title})}),(0,Be.jsxs)("div",{className:"wkit-author-select-wrapper",children:[k(e),v(e)]})]})]})},t)}))}),(x=s?.credits?.workspace_limit?.meta_value?s?.credits?.workspace_limit?.meta_value:1,(0,Be.jsx)(ja,{children:(0,Be.jsx)("div",{className:"wkit-add-new-workspace-wrapperd",children:(0,Be.jsxs)("div",{className:"wkit-add-new-workspace",children:[(0,Be.jsxs)("div",{className:"wkit-add-new-content",children:[(0,Be.jsxs)("div",{className:"wkit-add-new-text",children:[(0,Be.jsx)("span",{className:"wkit-add-new-Title",children:"unlimited"==x||c<x?(0,a.__)("New Workspace ?","wdesignkit"):(0,a.__)("You have Used Free Credit","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-add-new-desc",children:"unlimited"==x||c<x?(0,a.__)("Manage and collaborate with ease.","wdesignkit"):(0,a.__)("You need to purchase now to add more workspace","wdesignkit")})]}),"unlimited"==x||c<x?(0,Be.jsx)("button",{className:"wkit-pink-btn-class",onClick:()=>r(!0),children:(0,a.__)("Create Workspace","wdesignkit")}):!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("div",{children:(0,Be.jsx)("a",{className:"wkit-btn-buy-now wkit-pink-btn-class",href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Buy Now","wdesignkit")})})]}),(0,Be.jsx)("div",{className:"wkit-add-new-workspace-img",children:(0,Be.jsx)("img",{src:"unlimited"==x||c<x?f+"assets/images/jpg/addWorkspace.png":f+"assets/images/jpg/free-credit-full.png",draggable:"false"})})]})})}))]}),1==w&&(0,Be.jsx)(kt,{}),l&&(0,Be.jsx)($a,{type:"manage",closePopUp:()=>{r(!1)},Toast:(e,a,i)=>t.wdkit_set_toast([e,a,"",i]),UpdateUserData:e=>{t.wdkit_set_meta(e.data)},setLoading:e=>{m(e)}})]}),Number(h)>-1&&(0,Be.jsx)(ot,{setdeleteWsID:e=>_(e),removeFunction:()=>{(async e=>{if(m(!0),d(!0),u(!0),!e)return!1;let a={wid:e,wstype:"remove"};var i=await Na(a);if(i?.data?.success){if(0!=t?.wdkit_meta.length&&t?.wdkit_meta.workspace)for(var s=0;s<t?.wdkit_meta.workspace.length;s++)t?.wdkit_meta.workspace[s].w_id===e&&t?.wdkit_meta.workspace.splice(s,1);t.wdkit_set_toast([i?.data?.message,i?.data?.description,"","success"])}let n=await ya();await t.wdkit_set_meta(n.data),await d(!1),m(!1),u(!1),_(-1)})(h)},isLoading:g})]})},Va=()=>(0,Be.jsxs)("div",{children:[(0,Be.jsxs)("div",{className:"wkit-single-workspace-header wkit-workspace-boxed",children:[(0,Be.jsxs)("div",{className:"wkit-single-skeleton-left-side",children:[(0,Be.jsx)("div",{className:"wkit-skeleton-profile-img wkit-main-profile-skeleton",style:{borderRadius:"5px"}}),(0,Be.jsx)("div",{className:"wkit-skeleton-line"}),(0,Be.jsxs)("div",{className:"wkit-workspace-skeleton-btn-wrapper",children:[(0,Be.jsx)("div",{className:"wkit-btn"}),(0,Be.jsx)("div",{className:"wkit-btn"})]})]}),(0,Be.jsxs)("div",{className:"wkit-single-skeleton-right-side",children:[(0,Be.jsx)("div",{children:(0,Be.jsxs)("ul",{className:"wkit-small-img-wrapper",children:[(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-skeleton-profile-img"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-skeleton-profile-img"})}),(0,Be.jsx)("li",{children:(0,Be.jsx)("div",{className:"wkit-skeleton-profile-img"})})]})}),(0,Be.jsx)("div",{className:"template-page-kit-title",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})]})]}),(0,Be.jsx)(ht,{})]}),{Fragment:Da}=wp.element,{Template_loop:Sa,form_data:Za,Plugin_missing:Ra,Success_import_template:Ba,wkit_get_user_login:Ea,wkitGetBuilder:Oa}=wp.wkit_Helper,Aa=t=>{let i=Ea();if(!i)return(0,Be.jsx)(ce,{to:"/login"});const s=Y(),[n,l]=(0,e.useState)("loading"),[r,o]=(0,e.useState)(""),[d,c]=(0,e.useState)("templates"),[p,w]=(0,e.useState)("all"),[m,g]=(0,e.useState)(),[u,h]=(0,e.useState)(""),[_,C]=(0,e.useState)(!1),[k,v]=(0,e.useState)(!1),[b,x]=(0,e.useState)(""),[f,j]=(0,e.useState)(!1),[y,$]=(0,e.useState)(""),[N,L]=(0,e.useState)(!1),[M,H]=(0,e.useState)(-1),[V,D]=(0,e.useState)(!1),[S,Z]=(0,e.useState)([]),[R,B]=(0,e.useState)([]),[E,O]=(0,e.useState)(!1),[A,T]=(0,e.useState)(-1),[P,W]=(0,e.useState)([]),[F,I]=(0,e.useState)(-1),[q,U]=(0,e.useState)([]),[z,J]=(0,e.useState)([]),[K,Q]=(0,e.useState)(),[X,ee]=(0,e.useState)(1),[te,ae]=(0,e.useState)(12),[ie,se]=(0,e.useState)(),[ne,le]=(0,e.useState)(),re=G();var oe=wdkitData.WDKIT_URL;(0,e.useEffect)((()=>{if(t?.wdkit_meta?.workspace){let e=t?.wdkit_meta?.workspace.findIndex((e=>e.w_id==s.id));"active"==t?.wdkit_meta?.workspace?.[e]?.is_activated?(l(t.wdkit_meta),t?.wdkit_meta?.workspace&&Object.values(t?.wdkit_meta?.workspace).map((e=>{""!=s.id&&Number(s.id)===e.w_id&&(g(e),o(e.work_title))})),D(!1)):(re("/manage_workspace"),t.wdkit_set_toast([(0,a.__)("Workspace Deactivated","wdesignkit"),(0,a.__)("This Workspace is Deactivated","wdesignkit"),"","danger"]))}}),[t.wdkit_meta]),(0,e.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,e.useEffect)((()=>{if(D(!0),m){let e=(X-1)*te,t=e+te;se(e),le(t)}setTimeout((()=>{D(!1)}),700)}),[p,d,X]),(0,e.useEffect)((()=>{de(d)}),[m,p,d]);const de=async e=>{let t=[];if("templates"==e){let e=n?.template,a=m?.work_templates;a?.length>0&&a.map((a=>{if("all"==p)var i=e.findIndex((e=>e.id==a));else i=e.findIndex((e=>e.id==a&&e.builder==p));i>-1&&t.push(e[i])}))}else if("widgets"==e){var a=[];if(n?.widgettemplate){const e=e=>{if(n?.widgetbuilder){let t=n?.widgetbuilder,a=t.findIndex((t=>t.w_id==e));if(a>-1)return t[a].builder_name.toLowerCase()}};let t=[...n?.widgettemplate];a=t.filter((t=>{if(n?.Setting[`${e(t.builder)}_builder`])return t}))}let e=m?.work_widgets;e&&e.map((async e=>{if("all"==p)var i=a.findIndex((t=>t.id==e));else i=a.findIndex((t=>t.id==e&&t.builder==p));i>-1&&t.push(a[i])})),ve(t)}Z(t)},pe=async()=>{let e=await Qe().then((async e=>e));await t.wdkit_set_meta(e.data),D(!1)},we=async e=>{if(document.querySelector(".wkit-text-field.wkit-hide"))document.querySelector(".wkit-text-field.wkit-hide").classList.remove("wkit-hide");else{let n=m.work_title||r,l="";i&&i.user_email&&(l=i.user_email),document.querySelector(".wkit-text-field").classList.add("wkit-hide");let o={type:"manage_workspace",email:l,builder:window.wdkit_editor,title:e||r,wid:s.id,wstype:"edit"};var a=await Za(o);a&&a.data&&a.data.success?(m.work_title=e||r,g({...m}),Object.values(t.wdkit_meta.workspace).map(((a,i)=>{""!=s.id&&Number(s.id)===i.w_id&&(t.wdkit_meta.workspace[a].work_title=e||r)})),t.wdkit_set_toast([a?.data?.message,a?.data?.description,"","success"]),pe()):(m.work_title=n,g({...m}),t.wdkit_set_toast([a?.data?.message,a?.data?.description,"","danger"]),pe())}};let me=0;var ge="";m&&m.work_title&&(ge=(ge=(ge=m.work_title).match(/\b(\w)/g)).join("").toUpperCase().substr(0,2));let ue=0;m&&m.total_count&&Object.values(m.total_count).map((e=>{ue=Number(ue)+Number(e.count)}));const he=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`},_e=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")},ke=()=>{document.querySelector(".wkit-model-transp").classList.add("wkit-popup-show")},ve=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)},be=e=>e?.user_id&&m?.share_user?.[e.user_id]?.user_profile?m.share_user[e.user_id].user_profile:void 0,fe=e=>e?.user_id&&m?.share_user?.[e.user_id]?.full_name?m.share_user[e.user_id].full_name:void 0,je=async e=>{let a=[...t.wdkit_meta?.workspace],i=[];await(a?.length)>0&&a.map((t=>{"admin"!==t.roles&&"editor"!==t.roles||t?.work_widgets.includes(e.id)||i.push(t)})),W(i)};return(0,Be.jsxs)("div",{children:[m?(0,Be.jsxs)("div",{className:"wkit-workspace-sigle-page",children:[(0,Be.jsx)("div",{className:"wkit-kit-box-wrapper",children:(0,Be.jsxs)("div",{className:"wkit-work-space",children:[(0,Be.jsxs)("div",{className:"wkit-work-left-column",children:[(0,Be.jsxs)("div",{className:"wkit-img-name-edit",children:[m.work_icon?(0,Be.jsx)("img",{src:m.work_icon,alt:"workspace-profile",className:"wkit-workspace-profile-img"}):(0,Be.jsx)("div",{className:"wkit-profile-back wkit-profile-letter",children:ge}),(0,Be.jsxs)("div",{className:"wkit-ws-name-edit",children:[(0,Be.jsxs)("div",{className:"wkit-workspace-title",children:[(0,Be.jsx)("span",{children:r}),"admin"==m.roles&&(0,Be.jsx)("div",{className:"wkit-workspace-edit-icon",onClick:()=>{we()},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("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"!=m.roles&&(0,Be.jsxs)("div",{className:"wkit-text-field wkit-hide",children:[(0,Be.jsx)("input",{type:"text",className:"btn-input",value:r,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_toast([(0,a.__)("Limit Reached","wdesignkit"),(0,a.__)("Limit Reached","wdesignkit"),"","danger"]),0))&&o(e.target.value)}}),(0,Be.jsx)("button",{className:"wkit-title-update-btn",onClick:()=>{we(r)},children:(0,a.__)("Update","wdesignkit")})]})]})]}),(0,Be.jsx)("div",{className:"wkit-tooltip-dropdown-content",children:0!=t?.wdkit_meta?.Setting?.builder&&(0,Be.jsxs)("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)},children:[(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-header",children:[(0,Be.jsxs)("span",{className:"wdkit-single-workspace-dropdown",children:["templates"==d?(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.04331 0.48585C9.61718 0.0841431 10.381 0.0841441 10.9549 0.485851L17.8986 5.34646C18.8097 5.98426 18.8524 7.31853 17.984 8.0133L17.6387 8.28953L17.8986 8.47146C18.8097 9.10925 18.8524 10.4435 17.984 11.1383L17.6387 11.4145L17.8986 11.5965C18.8097 12.2343 18.8524 13.5685 17.984 14.2633L14.6863 16.9014L12.0814 18.9854C10.864 19.9593 9.13416 19.9593 7.91677 18.9854L5.31184 16.9014L2.01419 14.2633C1.14573 13.5685 1.18845 12.2343 2.09958 11.5965L2.35948 11.4145L2.01419 11.1383C1.14573 10.4435 1.18845 9.10925 2.09958 8.47146L2.35948 8.28953L2.01419 8.0133C1.14572 7.31852 1.18845 5.98425 2.09958 5.34646L3.05535 6.71185L6.35299 9.34997L8.95792 11.4339C9.56662 11.9209 10.4315 11.9209 11.0402 11.4339L13.6452 9.34997L16.9428 6.71185L9.99908 1.85124L10.477 1.16854L9.99908 1.85124L3.05535 6.71185L2.09958 5.34646L9.04331 0.48585ZM3.71577 12.4996L3.05535 12.9618L6.35299 15.6L8.95792 17.6839C9.56662 18.1709 10.4315 18.1709 11.0402 17.6839L13.6452 15.6L16.9428 12.9618L16.2824 12.4996L14.6863 13.7764L12.0814 15.8604C10.864 16.8343 9.13416 16.8343 7.91677 15.8604L5.31184 13.7764L3.71577 12.4996ZM14.6863 10.6514L16.2824 9.37456L16.9428 9.83685L13.6452 12.475L11.0402 14.5589C10.4315 15.0459 9.56662 15.0459 8.95792 14.5589L6.35299 12.475L3.05535 9.83685L3.71577 9.37456L5.31184 10.6514L7.91677 12.7354C9.13416 13.7093 10.864 13.7093 12.0814 12.7354L14.6863 10.6514Z",fill:"#737373"})}),d]}),(0,Be.jsx)("img",{src:oe+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-content",children:[(0,Be.jsx)("div",{className:"wkit-drop-down-outer"}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{c("templates"),w("all")},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Templates","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{c("widgets"),w("all")},children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.04331 0.48585C9.61718 0.0841431 10.381 0.0841441 10.9549 0.485851L17.8986 5.34646C18.8097 5.98426 18.8524 7.31853 17.984 8.0133L17.6387 8.28953L17.8986 8.47146C18.8097 9.10925 18.8524 10.4435 17.984 11.1383L17.6387 11.4145L17.8986 11.5965C18.8097 12.2343 18.8524 13.5685 17.984 14.2633L14.6863 16.9014L12.0814 18.9854C10.864 19.9593 9.13416 19.9593 7.91677 18.9854L5.31184 16.9014L2.01419 14.2633C1.14573 13.5685 1.18845 12.2343 2.09958 11.5965L2.35948 11.4145L2.01419 11.1383C1.14573 10.4435 1.18845 9.10925 2.09958 8.47146L2.35948 8.28953L2.01419 8.0133C1.14572 7.31852 1.18845 5.98425 2.09958 5.34646L3.05535 6.71185L6.35299 9.34997L8.95792 11.4339C9.56662 11.9209 10.4315 11.9209 11.0402 11.4339L13.6452 9.34997L16.9428 6.71185L9.99908 1.85124L10.477 1.16854L9.99908 1.85124L3.05535 6.71185L2.09958 5.34646L9.04331 0.48585ZM3.71577 12.4996L3.05535 12.9618L6.35299 15.6L8.95792 17.6839C9.56662 18.1709 10.4315 18.1709 11.0402 17.6839L13.6452 15.6L16.9428 12.9618L16.2824 12.4996L14.6863 13.7764L12.0814 15.8604C10.864 16.8343 9.13416 16.8343 7.91677 15.8604L5.31184 13.7764L3.71577 12.4996ZM14.6863 10.6514L16.2824 9.37456L16.9428 9.83685L13.6452 12.475L11.0402 14.5589C10.4315 15.0459 9.56662 15.0459 8.95792 14.5589L6.35299 12.475L3.05535 9.83685L3.71577 9.37456L5.31184 10.6514L7.91677 12.7354C9.13416 13.7093 10.864 13.7093 12.0814 12.7354L14.6863 10.6514Z",fill:"#737373"})}),(0,Be.jsx)("span",{children:(0,a.__)("Widgets","wdesignkit")})]})]})]})})]}),(0,Be.jsxs)("div",{className:"wkit-work-right-column",children:[(0,Be.jsxs)("div",{className:"img-group",children:[m.share_user&&(0,Be.jsx)(Be.Fragment,{children:Object.values(m.share_user).map(((e,t)=>{if(t<4&&e.user_profile)return(0,Be.jsx)(Da,{children:(0,Be.jsx)("img",{src:e.user_profile,alt:"ws-member",className:"wkit-roundimg"})},t)}))}),(0,Be.jsx)("div",{className:"wkit-more-user-proflie",children:Object.values(m?.share_user).length})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/workspace/workspacetemplate/${m?.w_id}`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("div",{className:"wkit-manage-member",children:(0,Be.jsx)("span",{children:(0,a.__)("Manage Members","wdesignkit")})})})]})]})}),(0,Be.jsxs)("div",{className:"wdesign-kit-main",children:[0==V&&n?.template&&m?.work_templates&&"templates"==d&&Object.values(n.template).filter((e=>"all"==p||e.post_builder==p?e:void 0)).map(((e,a)=>{if(me=""==me?0:me,m?.work_templates.length>0&&m?.work_templates?.includes(e.id))return me++,(0,Be.jsx)(Sa,{userData:n,data:e,role:m?.roles,userinfo:t?.wdkit_meta?.userinfo,credits:t?.wdkit_meta?.credits,builder:n.builder,favorite:n.favoritetemplate,setloading:e=>{D(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?Oa(i,s):"",h("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else h(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),n.builder):h(t)},type:"websitekit"==e.type?e.type+"-view":e.type,wsRoles:m.roles,width:"25%",wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])},wsID:s.id,currentPage:X},a)})),0==V&&n?.widgettemplate&&m?.work_widgets&&"widgets"==d&&S.slice(ie,ne).map(((e,i)=>{if(me=""==me?0:me,m.work_widgets.includes(e.id))return me++,((e,i)=>{return(0,Be.jsxs)("div",{className:"wkit-widgetlist-grid-content",children:["active"!=e.is_activated&&(0,Be.jsxs)(Da,{children:[(0,Be.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Template got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(0,Be.jsx)("span",{className:"wdkit-inner-boxed-remove",children:(0,Be.jsx)("svg",{onClick:()=>{ke(),setwsID(w_id)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-widget-card",children:[(0,Be.jsxs)("div",{className:"wkit-widget-card-top-part",children:[(0,Be.jsx)("div",{className:"wkit-widget-upper-icons",children:(0,Be.jsxs)("div",{className:"wkit-widget-public-icon",children:["public"==e.status&&(0,Be.jsxs)(Da,{children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:oe+"/assets/images/svg/public.svg",alt:"public",draggable:!1}),(0,Be.jsx)("span",{className:"wkit-widget-icon-tooltip",children:(0,a.__)("Public","wdesignkit")})]}),"private"==e.status&&(0,Be.jsxs)(Da,{children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:oe+"/assets/images/svg/private.svg",alt:"private",draggable:!1}),(0,Be.jsx)("span",{className:"wkit-widget-icon-tooltip",children:(0,a.__)("Private","wdesignkit")})]})]})}),(0,Be.jsxs)("div",{children:[(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:oe+"assets/images/wkit-dummy-bg.png",draggable:!1}),(0,Be.jsxs)("picture",{children:[e?.responsive_image?.length>0&&e?.responsive_image?.map(((e,t)=>{return(0,Be.jsx)(Da,{children:(0,Be.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:(a=e.url,a?a.replace(/\s/g,"%20"):"")})},t);var a})),(0,Be.jsx)("img",{className:"wkit-widget-image-content",src:e.image,alt:"featured-img"})]})]})]}),"pro"==e?.free_pro&&(0,Be.jsxs)("div",{className:"wdkit-card-tag",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-widget-card-bottom-part",children:[(0,Be.jsxs)("div",{className:"wkit-widget-title-content",children:["public"==e.status?wdkitData?.wdkit_white_label?.help_link?(0,Be.jsx)("div",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:e.title})}):(0,Be.jsx)("a",{className:"wkit-widget-title-heading",href:`${wdkitData.wdkit_server_url}widget/${s=e.title,n=s.replace(/\s+/g,"-"),n=(n=n.replace(/[^\w-]+/g,"")).toLowerCase()}/${e.id}`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("span",{children:e.title})}):(0,Be.jsx)("span",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:e.title})}),(0,Be.jsxs)("div",{className:"wkit-widget-activity-icons",children:[(0,Be.jsxs)("div",{className:"wkit-rounding-user",children:[(0,Be.jsx)("img",{className:"wkit-rounding-user-profile",src:be(e),alt:"ws-member"}),(0,Be.jsx)("span",{className:"wkit-rounding-user-tooltip",children:fe(e)})]}),(0,Be.jsx)("div",{className:"wkit-widget-download-activity",children:1==E&&A==i?(0,Be.jsx)("div",{className:"plugin-download-icon",children:(0,Be.jsx)("div",{className:"wb-download-loader",style:{display:"flex"},children:(0,Be.jsx)("div",{className:"wb-download-loader-circle"})})}):R.includes(e.w_unique)?(0,Be.jsx)(xe,{className:"plugin-download-icon",to:"/widget-listing",children:(0,Be.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"plugin-download-icon",onClick:s=>{O(!0),(async(e,i)=>{let s=e.id;T(i),Xe();var n={type:"widget/download",w_uniq:s,d_type:"workspace",u_id:t?.wdkit_meta?.userinfo?.id};let l={type:"wkit_public_download_widget",widget_info:JSON.stringify(n)};await Za(l).then((i=>{i.success?(async i=>{let s=JSON.parse(i.json),n=s?.widget_data?.widgetdata?.type,l=JSON.stringify(s?.Editor_data?.html),r=JSON.stringify(s?.Editor_data?.js),o=JSON.stringify(s?.Editor_data?.css),d=i.image;var c=Object.assign({},s.widget_data.widgetdata,{r_id:i.r_id,allow_push:!0});t?.wdkit_meta?.userinfo?.id!=e?.user_id&&(c=Object.assign({},s.widget_data.widgetdata,{allow_push:!1}));let p=Object.assign({},s.widget_data,{widgetdata:c});i={CardItems:{cardData:s.section_data},WcardData:p,Editor_data:s.Editor_Link,Editor_code:{Editor_codes:[s.Editor_data]}};var w="";if("elementor"==n?w=await Se("private_download",i,l,o,r,"",d).then((e=>e)):"gutenberg"==n?w=await Ze("private_download",i,l,o,r,"",d).then((e=>e)):"bricks"==n&&(w=await Re("private_download",i,l,o,r,"",d).then((e=>e))),1==w?.api?.success){let i=[...R];i.push(e.w_unique),B(i),t.wdkit_set_toast([(0,a.__)("Downloaded Successfully!","wdesignkit"),(0,a.__)("Start using or editing it further.","wdesignkit"),"","success"])}let m=await Qe();m?.success&&t.wdkit_set_meta(m?.data),O(!1),T(-1)})(i):(t.wdkit_set_toast([i.message,i.description,"","danger"]),T(-1))}))})(e,i)},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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"==m.roles||"editor"==m.roles)&&(0,Be.jsxs)("div",{className:"wkit-widget-options",children:[(0,Be.jsx)("div",{className:"wkit-widget-options-icon",onClick:()=>{H(i),j(!0)},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"4",viewBox:"0 0 16 4",fill:"none",children:(0,Be.jsx)("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"})})}),M==i&&(0,Be.jsxs)("div",{className:"wkit-widget-options-content",children:[t.wdkit_meta?.userinfo?.id==e?.user_id&&!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/widgets/edit/${e.id}`,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:(0,Be.jsxs)("div",{className:"wkit-widget-option-item",onClick:()=>{j(!1),H(-1)},children:[(0,Be.jsx)("svg",{width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Edit","wdesignkit")})]})}),(0,Be.jsxs)("div",{className:"wkit-widget-option-item",onClick:()=>{j(!1),H(-1),x("copy"),L(e),je(e)},children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsxs)("g",{clipPath:"url(#clip0_6220_28330)",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"clip0_6220_28330",children:(0,Be.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]}),(0,Be.jsx)("span",{children:(0,a.__)("Copy to Workspace","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-widget-option-item",onClick:()=>{j(!1),H(-1),x("move"),L(e),je(e)},children:[(0,Be.jsx)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Move to Workspace","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-widget-option-item",onClick:()=>{j(!1),H(-1),ke(),I(e)},children:[(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Remove","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-model-transp",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{Ce()},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"popup-missing",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Please Confirm","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsx)("div",{className:"wkit-popup-content-title",children:(0,a.__)("Are you sure want to permanently delete","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,Be.jsx)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>Ce(),children:"No"}),(0,Be.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>(async e=>{if(e){D(!0);let a=Xe();if(a){let i={token:a.token,type:"wd_ws_remove",widget_id:e?.id,wid:m?.w_id},s={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(i)};await Ye(s).then((e=>{1==e?.success?(t.wdkit_set_toast([e?.message,e?.description,"","success"]),pe()):t.wdkit_set_toast([e?.message,e?.description,"","danger"])}))}}I(-1),D(!1)})(F),children:1==V?(0,Be.jsx)(st,{}):(0,Be.jsx)("span",{children:(0,a.__)("Yes","wdesignkit")})})]})]})]})]})})]})]})]}),(0,Be.jsx)(bt,{avg_rating:e?.avg_rating,total_rating:e?.total_rating}),(0,Be.jsxs)("div",{className:"wkit-widget-info-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:oe+"/assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:e?.views?e?.views:0})]}),(0,Be.jsx)("hr",{className:"wkit-icon-divider-hr"}),(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:oe+"/assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:e?.download?e?.download:0})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-builder-icon",children:[(0,Be.jsx)("img",{src:he(e)}),(0,Be.jsx)("span",{className:"wkit-widget-builder-tooltip",children:_e(e)?(0,a.__)(_e(e)):(0,a.__)("")})]})]})]})]})]},i);var s,n})(e,i)})),N&&b&&(ye=(0,a.__)("Copy To WorkSpace","wdesignkit"),"move"===b&&(ye=(0,a.__)("Move To WorkSpace","wdesignkit")),(0,Be.jsxs)(Da,{children:[(0,Be.jsx)("div",{className:"wkit-ws-popup-outerDiv",onClick:()=>{L("")}}),(0,Be.jsxs)("div",{className:"wkit-ws-popup",children:[(0,Be.jsx)("div",{className:"wkit-plugin-popup-close",onClick:()=>{L(""),C(!1),h("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-copy-move-ws-wrap",children:[(0,Be.jsx)("div",{className:"wkit-ws-label-heading",children:ye}),(0,Be.jsxs)("div",{className:"wkit-ws-content dropdown-custom-width",children:[(0,Be.jsxs)("select",{className:"wkit-select-workspace",onChange:e=>{$(e.target.value)},children:[(0,Be.jsx)("option",{value:"",children:(0,a.__)("Select Workspace","wdesignkit")}),P.length>0&&P.map(((e,t)=>(0,Be.jsx)(Da,{children:(0,Be.jsx)("option",{value:e.w_id,children:e.work_title})},t)))]}),(0,Be.jsx)("div",{className:"wkit-copy-wrap",children:"loading"==b?(0,Be.jsx)("button",{className:"btn-workspace-add wkit-pink-btn-class",children:st()}):(0,Be.jsx)("button",{type:"button",className:"btn-workspace-add wkit-pink-btn-class",onClick:()=>{y&&(async e=>{"move"==e&&D(!0);let a=N,i=Xe();if(i){if("copy"==e){x("loading");var s={token:i.token,type:"wd-copy",widget_id:a?.id,current_wid:m?.w_id,wid:y}}else"move"==e&&(x("loading"),s={token:i.token,type:"wd-move",widget_id:a?.id,current_wid:m?.w_id,wid:y});let n={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(s)};await Ye(n).then((async a=>{if(1==a?.success){if("copy"==e){t.wdkit_set_toast([a?.message,a?.description,"","success"]);let e=await Qe().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 Qe().then((async e=>e));t.wdkit_set_meta(e.data)}}else t.wdkit_set_toast([a?.message,a?.description,"","danger"]),x(""),L("")}))}x(""),L(""),D(!1)})(b)},children:b})})]})]})]})]}))]}),0==V&&me<=0&&(0,Be.jsx)("div",{className:"wkit-no-template-data",children:(0,Be.jsx)(_t,{page:d,link:wdkitData.WDKIT_DOC_URL+"documents/add-templates-and-widgets-in-workspace/"})}),1==V&&(0,Be.jsx)(ht,{}),u&&(0,Be.jsx)("div",{className:"wkit-myupload-main wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content wkit-import-template",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{(e=>{e&&(e.currentTarget.closest(".wkit-model-transp.wkit-popup-show").innerHTML="",h(""))})(e),C(!1),h("")},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)(Ba,{template_id:u,custom_meta_import:k,global_data:K,handlerAfterSuccessImported:()=>{C(!1),h("")},wdkit_set_toast:(e,a,i,s)=>{t.wdkit_set_toast([e,a,i,s])}}):(0,Be.jsx)(Ra,{template_id:u,handlerSuccessImport:(e,t,a)=>{C(e),v(t),Q(a)},type:wdkitData.use_editor,templateData:n.template,pluginData:n.plugin})]})}),f&&(0,Be.jsx)("div",{className:"wkit-widget-options-outer",onClick:()=>{j(!1),H(-1)}})]}):(0,Be.jsx)(Va,{}),(0,Be.jsx)("div",{className:"wkit-wb-paginatelist",children:Math.ceil(S.length/te)>1&&(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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/te),marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&ee(e.nextSelectedPage+1)},forcePage:X-1,onPageActive:()=>{}})})})]});var ye},{Fragment:Ta}=wp.element;window.wdkit_editor=wdkitData.use_editor;const Pa=t=>{const[i,s]=(0,e.useState)(!1),[n,l]=(0,e.useState)(!1),[r,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)("/preset/12570");let p=J();G();let w=p.pathname.split("/");var m=wdkitData.WDKIT_URL;let g=t?.wdkit_meta?.notification?.Unread>0?t.wdkit_meta.notification.Unread:"";(0,e.useEffect)((()=>{if(w.includes("preset")){let e=window.location.hash.split("#");c(e[1]),o(!0)}}),[]),(0,e.useEffect)((()=>{let e=[],a=[];s(!1),l(!1),t?.wdkit_meta?.success&&(t?.wdkit_meta?.Setting?.builder&&(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"),e.length>0&&s(!0)),t?.wdkit_meta?.Setting?.template&&(t?.wdkit_meta?.Setting?.elementor_template&&a.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_template&&a.push("Gutenberg"),a.length>0&&l(!0)))}),[t?.wdkit_meta?.Setting]);const u=[{parent_name:(0,a.__)("Presets","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,Be.jsx)("path",{d:"M14 12H20M14 16H20M14 20H20M4 5C4 4.73478 4.10536 4.48043 4.29289 4.29289C4.48043 4.10536 4.73478 4 5 4H19C19.2652 4 19.5196 4.10536 19.7071 4.29289C19.8946 4.48043 20 4.73478 20 5V7C20 7.26522 19.8946 7.51957 19.7071 7.70711C19.5196 7.89464 19.2652 8 19 8H5C4.73478 8 4.48043 7.89464 4.29289 7.70711C4.10536 7.51957 4 7.26522 4 7V5ZM4 13C4 12.7348 4.10536 12.4804 4.29289 12.2929C4.48043 12.1054 4.73478 12 5 12H9C9.26522 12 9.51957 12.1054 9.70711 12.2929C9.89464 12.4804 10 12.7348 10 13V19C10 19.2652 9.89464 19.5196 9.70711 19.7071C9.51957 19.8946 9.26522 20 9 20H5C4.73478 20 4.48043 19.8946 4.29289 19.7071C4.10536 19.5196 4 19.2652 4 19V13Z",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),path_includes:["preset"],parent_link:d,type:"popup"},{parent_name:(0,a.__)("Templates","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),path_includes:["browse","my_uploaded"],parent_link:"/browse",type:"all",dependency:"templates",child_content:[{child_name:(0,a.__)("Browse Templates","wdesignkit"),child_svg:(0,Be.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M2 12H22",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),child_dependency:["browse"],condition:!0,child_link:"/browse"},{child_name:(0,a.__)("My Templates","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4 20H20M9.5 15.5V9.5H5L12 2.5L19 9.5H14.5V15.5H9.5Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round"})}),child_dependency:["my_uploaded"],condition:!0,child_link:"/my_uploaded"}]},{parent_name:(0,a.__)("Widgets","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{width:"22",height:"24",viewBox:"0 0 22 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),path_includes:["widget-browse","widget-listing"],parent_link:"/widget-browse",type:"wdkit",dependency:"builders",child_content:[{child_name:(0,a.__)("Browse Widgets","wdesignkit"),child_svg:(0,Be.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M2 12H22",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12 2C14.5013 4.73835 15.9228 8.29203 16 12C15.9228 15.708 14.5013 19.2616 12 22C9.49872 19.2616 8.07725 15.708 8 12C8.07725 8.29203 9.49872 4.73835 12 2V2Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),child_dependency:["widget-browse"],condition:!0,child_link:"/widget-browse"},{child_name:(0,a.__)("My Widgets","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4 20H20M9.5 15.5V9.5H5L12 2.5L19 9.5H14.5V15.5H9.5Z",stroke:"#020202",strokeWidth:"1.5",strokeLinecap:"round"})}),child_dependency:["widget-listing"],condition:!0,child_link:"/widget-listing"}]},{parent_name:(0,a.__)("Save Template","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M20.625 5.375H4.375V8.625H20.625V5.375ZM4.375 21.625V10.25H12.5V14.8214C12.5 15.6001 13.3679 16.0646 14.0158 15.6327L15.75 14.4765L17.4842 15.6327C18.1321 16.0646 19 15.6001 19 14.8214V10.25H20.625V21.625H4.375ZM17.375 10.25H14.125V13.6068L15.2542 12.854C15.5544 12.6539 15.9456 12.6539 16.2458 12.854L17.375 13.6068V10.25ZM4.375 3.75C3.47754 3.75 2.75 4.47754 2.75 5.375V21.625C2.75 22.5225 3.47754 23.25 4.375 23.25H20.625C21.5225 23.25 22.25 22.5225 22.25 21.625V5.375C22.25 4.47754 21.5225 3.75 20.625 3.75H4.375ZM7.625 7C7.625 7.44873 7.26123 7.8125 6.8125 7.8125C6.36377 7.8125 6 7.44873 6 7C6 6.55127 6.36377 6.1875 6.8125 6.1875C7.26123 6.1875 7.625 6.55127 7.625 7ZM10.0625 7.8125C10.5112 7.8125 10.875 7.44873 10.875 7C10.875 6.55127 10.5112 6.1875 10.0625 6.1875C9.61376 6.1875 9.25 6.55127 9.25 7C9.25 7.44873 9.61376 7.8125 10.0625 7.8125ZM6 14.3125C6 13.8638 6.36377 13.5 6.8125 13.5H8.4375C8.88623 13.5 9.25 13.8638 9.25 14.3125C9.25 14.7612 8.88623 15.125 8.4375 15.125H6.8125C6.36377 15.125 6 14.7612 6 14.3125ZM6.8125 17.5625C6.36377 17.5625 6 17.9263 6 18.375C6 18.8237 6.36377 19.1875 6.8125 19.1875H15.75C16.1987 19.1875 16.5625 18.8237 16.5625 18.375C16.5625 17.9263 16.1987 17.5625 15.75 17.5625H6.8125Z",fill:"white"})}),path_includes:["save_template"],parent_link:"/save_template",type:"popup",dependency:"templates"},{parent_name:(0,a.__)("Workspace","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M16.3503 6.81612C16.3503 8.67309 14.7959 10.2143 12.8337 10.2143C10.8714 10.2143 9.31699 8.67309 9.31699 6.81612C9.31699 4.95915 10.8714 3.41797 12.8337 3.41797C14.7959 3.41797 16.3503 4.95915 16.3503 6.81612ZM22.7503 17.1865C22.7503 19.0435 21.1959 20.5846 19.2337 20.5846C17.2714 20.5846 15.717 19.0435 15.717 17.1865C15.717 15.3295 17.2714 13.7883 19.2337 13.7883C21.1959 13.7883 22.7503 15.3295 22.7503 17.1865ZM9.95033 17.1865C9.95033 19.0435 8.39592 20.5846 6.43366 20.5846C4.4714 20.5846 2.91699 19.0435 2.91699 17.1865C2.91699 15.3295 4.4714 13.7883 6.43366 13.7883C8.39592 13.7883 9.95033 15.3295 9.95033 17.1865Z",stroke:"white",strokeWidth:"1.5"})}),path_includes:["manage_workspace","share_with_me"],parent_link:"/manage_workspace",type:"all",dependency:"all",child_content:[{child_name:(0,a.__)("Manage Workspace","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M15.6843 6.81612C15.6843 8.67309 14.1299 10.2143 12.1676 10.2143C10.2054 10.2143 8.65098 8.67309 8.65098 6.81612C8.65098 4.95915 10.2054 3.41797 12.1676 3.41797C14.1299 3.41797 15.6843 4.95915 15.6843 6.81612ZM22.0843 17.1865C22.0843 19.0435 20.5299 20.5846 18.5676 20.5846C16.6054 20.5846 15.051 19.0435 15.051 17.1865C15.051 15.3295 16.6054 13.7883 18.5676 13.7883C20.5299 13.7883 22.0843 15.3295 22.0843 17.1865ZM9.28431 17.1865C9.28431 19.0435 7.7299 20.5846 5.76764 20.5846C3.80538 20.5846 2.25098 19.0435 2.25098 17.1865C2.25098 15.3295 3.80539 13.7883 5.76764 13.7883C7.7299 13.7883 9.28431 15.3295 9.28431 17.1865Z",stroke:"#020202",strokeWidth:"1.5"})}),child_dependency:["manage_workspace"],condition:!0,child_link:"/manage_workspace"},{child_name:(0,a.__)("Shared with Me","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.375 5.875C12.375 3.73489 14.1099 2 16.25 2C18.3901 2 20.125 3.73489 20.125 5.875C20.125 8.01511 18.3901 9.75 16.25 9.75C15.1698 9.75 14.1929 9.30803 13.4901 8.59505L10.4621 10.5004C10.6477 10.9532 10.75 11.449 10.75 11.9687C10.75 12.488 10.6479 12.9834 10.4626 13.436L13.491 15.3416C14.1937 14.6291 15.1703 14.1875 16.25 14.1875C18.3901 14.1875 20.125 15.9224 20.125 18.0625C20.125 20.2026 18.3901 21.9375 16.25 21.9375C14.1099 21.9375 12.375 20.2026 12.375 18.0625C12.375 17.5424 12.4775 17.0462 12.6633 16.593L9.63573 14.6879C8.93292 15.4014 7.95562 15.8437 6.875 15.8437C4.73489 15.8437 3 14.1089 3 11.9687C3 9.82862 4.73489 8.09375 6.875 8.09375C7.95517 8.09375 8.93212 8.53571 9.63486 9.24867L12.6629 7.34334C12.4773 6.89048 12.375 6.39469 12.375 5.875ZM16.25 3.5C14.9383 3.5 13.875 4.56331 13.875 5.875C13.875 7.18669 14.9383 8.25 16.25 8.25C17.5617 8.25 18.625 7.18669 18.625 5.875C18.625 4.56331 17.5617 3.5 16.25 3.5ZM6.875 9.59375C5.56331 9.59375 4.5 10.6571 4.5 11.9687C4.5 13.2804 5.56331 14.3437 6.875 14.3437C8.18669 14.3437 9.25 13.2804 9.25 11.9687C9.25 10.6571 8.18669 9.59375 6.875 9.59375ZM13.875 18.0625C13.875 16.7508 14.9383 15.6875 16.25 15.6875C17.5617 15.6875 18.625 16.7508 18.625 18.0625C18.625 19.3742 17.5617 20.4375 16.25 20.4375C14.9383 20.4375 13.875 19.3742 13.875 18.0625Z",fill:"#020202"})}),child_dependency:["share_with_me"],condition:!0,child_link:"share_with_me"}]},{parent_name:(0,a.__)("Settings","wdesignkit"),parent_svg:(0,Be.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M12.9098 9.14582C11.2127 9.14582 9.83689 10.5216 9.83689 12.2187C9.83689 13.9158 11.2127 15.2916 12.9098 15.2916C14.6069 15.2916 15.9828 13.9158 15.9828 12.2187C15.9828 10.5216 14.6069 9.14582 12.9098 9.14582ZM21.5349 10.0259L20.7029 10.7108C19.7539 11.4921 19.7539 12.9453 20.7029 13.7266L21.5349 14.4115C21.8298 14.6543 21.9059 15.0746 21.715 15.4053L20.0721 18.2508C19.8811 18.5816 19.4791 18.7258 19.1214 18.5918L18.1123 18.2138C16.9611 17.7825 15.7026 18.5091 15.5005 19.7216L15.3233 20.7846C15.2605 21.1613 14.9346 21.4375 14.5527 21.4375H11.2669C10.8851 21.4375 10.5591 21.1613 10.4964 20.7846L10.3192 19.7216C10.1171 18.5091 8.85853 17.7825 7.7074 18.2138L6.69826 18.5918C6.34061 18.7258 5.93853 18.5816 5.74756 18.2508L4.10471 15.4053C3.91377 15.0746 3.9899 14.6543 4.28475 14.4115L5.11678 13.7266C6.0658 12.9453 6.0658 11.4921 5.11678 10.7108L4.28475 10.0259C3.9899 9.78317 3.91377 9.36285 4.10471 9.03211L5.74756 6.18661C5.93853 5.85586 6.34061 5.71164 6.69826 5.84563L7.7074 6.22367C8.85853 6.65492 10.1171 5.92832 10.3192 4.71578L10.4964 3.65278C10.5591 3.2761 10.8851 3 11.2669 3H14.5527C14.9346 3 15.2605 3.2761 15.3233 3.65278L15.5005 4.71578C15.7026 5.92832 16.9611 6.65492 18.1123 6.22367L19.1214 5.84563C19.4791 5.71164 19.8811 5.85586 20.0721 6.18661L21.715 9.03211C21.9059 9.36285 21.8298 9.78317 21.5349 10.0259Z",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),path_includes:["activate","settings"],parent_link:"/settings",type:"wdkit",child_content:[{child_name:(0,a.__)("Manage Licence","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 8.5C12.646 8.5 13.2347 8.25502 13.6784 7.85289C13.7324 7.79071 13.7907 7.73238 13.8529 7.67836C14.255 7.23469 14.5 6.64595 14.5 6C14.5 4.61929 13.3807 3.5 12 3.5C10.6193 3.5 9.5 4.61929 9.5 6C9.5 6.64595 9.74498 7.23469 10.1471 7.67836C10.2093 7.73238 10.2676 7.79071 10.3216 7.85289C10.7653 8.25502 11.354 8.5 12 8.5ZM12 10C12.4365 10 12.8567 9.93007 13.25 9.80081V11.5394L12.2304 11.2845C12.0791 11.2467 11.9209 11.2467 11.7696 11.2845L10.75 11.5394V9.80081C11.1433 9.93007 11.5635 10 12 10ZM9.21332 8.86957C9.18529 8.84235 9.15765 8.81471 9.13043 8.78668C9.09246 8.76341 9.04779 8.75 9 8.75H4C3.86193 8.75 3.75 8.86193 3.75 9V20C3.75 20.1381 3.86193 20.25 4 20.25H20C20.1381 20.25 20.25 20.1381 20.25 20V9C20.25 8.86193 20.1381 8.75 20 8.75H15C14.9522 8.75 14.9075 8.76341 14.8696 8.78668C14.8423 8.81471 14.8147 8.84235 14.7867 8.86957C14.7634 8.90754 14.75 8.95221 14.75 9V12.2438C14.75 12.8619 14.1692 13.3154 13.5696 13.1655L12 12.7731L10.4304 13.1655C9.83082 13.3154 9.25 12.8619 9.25 12.2438V9C9.25 8.95221 9.23659 8.90754 9.21332 8.86957ZM8 6C8 6.43653 8.06993 6.85673 8.19919 7.25H4C3.0335 7.25 2.25 8.0335 2.25 9V20C2.25 20.9665 3.0335 21.75 4 21.75H20C20.9665 21.75 21.75 20.9665 21.75 20V9C21.75 8.0335 20.9665 7.25 20 7.25H15.8008C15.9301 6.85673 16 6.43653 16 6C16 3.79086 14.2091 2 12 2C9.79086 2 8 3.79086 8 6ZM7 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:"#020202"})}),child_dependency:["activate"],condition:!wdkitData?.wdkit_white_label?.licence_tab,child_link:"/activate"},{child_name:(0,a.__)("General Settings","wdesignkit"),child_svg:(0,Be.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M12.9098 9.14582C11.2127 9.14582 9.83689 10.5216 9.83689 12.2187C9.83689 13.9158 11.2127 15.2916 12.9098 15.2916C14.6069 15.2916 15.9828 13.9158 15.9828 12.2187C15.9828 10.5216 14.6069 9.14582 12.9098 9.14582ZM21.5349 10.0259L20.7029 10.7108C19.7539 11.4921 19.7539 12.9453 20.7029 13.7266L21.5349 14.4115C21.8298 14.6543 21.9059 15.0746 21.715 15.4053L20.0721 18.2508C19.8811 18.5816 19.4791 18.7258 19.1214 18.5918L18.1123 18.2138C16.9611 17.7825 15.7026 18.5091 15.5005 19.7216L15.3233 20.7846C15.2605 21.1613 14.9346 21.4375 14.5527 21.4375H11.2669C10.8851 21.4375 10.5591 21.1613 10.4964 20.7846L10.3192 19.7216C10.1171 18.5091 8.85853 17.7825 7.7074 18.2138L6.69826 18.5918C6.34061 18.7258 5.93853 18.5816 5.74756 18.2508L4.10471 15.4053C3.91377 15.0746 3.9899 14.6543 4.28475 14.4115L5.11678 13.7266C6.0658 12.9453 6.0658 11.4921 5.11678 10.7108L4.28475 10.0259C3.9899 9.78317 3.91377 9.36285 4.10471 9.03211L5.74756 6.18661C5.93853 5.85586 6.34061 5.71164 6.69826 5.84563L7.7074 6.22367C8.85853 6.65492 10.1171 5.92832 10.3192 4.71578L10.4964 3.65278C10.5591 3.2761 10.8851 3 11.2669 3H14.5527C14.9346 3 15.2605 3.2761 15.3233 3.65278L15.5005 4.71578C15.7026 5.92832 16.9611 6.65492 18.1123 6.22367L19.1214 5.84563C19.4791 5.71164 19.8811 5.85586 20.0721 6.18661L21.715 9.03211C21.9059 9.36285 21.8298 9.78317 21.5349 10.0259Z",stroke:"#020202",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),child_dependency:["settings"],condition:!0,child_link:"/settings"}]}],h=()=>{let e=wdkitData?.wdkit_white_label?.website_url||wdkitData?.wdkit_server_url,t=wdkitData?.wdkit_white_label?.plugin_logo||m+"assets/images/jpg/Wdesignkit-logo.png";return(0,Be.jsx)(Ta,{children:(0,Be.jsxs)("div",{className:"wkit-img-logo",children:[(0,Be.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("img",{src:t,alt:"wdesignlogo",className:"wkit-logo",draggable:"false"})}),(0,Be.jsx)("span",{className:"wdkit-version-info",children:"v"+wdkitData.WDKIT_VERSION})]})})},_=e=>"all"==e?!(!n&&!i):"templates"==e?n:"builders"!=e||i;return(0,Be.jsx)(Be.Fragment,{children:w.includes("widget-listing")&&w.includes("builder")||w.includes("download")||w.includes("theplus_popup")?"":(0,Be.jsxs)("div",{className:"wkit-left-side",children:[(0,Be.jsx)(h,{}),(0,Be.jsxs)("div",{className:"wdkit-inner-right-side-menu",children:[Object.values(u).filter((e=>e?.path_includes.includes("preset")?!!r&&e:"all"==e.type||wdkitData.use_editor==e.type||"wdkit"!=wdkitData.use_editor&&"popup"==e.type?e:void 0))?.map(((e,t)=>(0,Be.jsx)("div",{className:"menu-wrapper",children:(0,Be.jsx)("ul",{children:(0,Be.jsxs)("div",{className:"wkit-submenu-container "+(_(e.dependency)?"":"wkit-disable-submenu"),children:[!_(e.dependency)&&(0,Be.jsx)("span",{className:"wkit-disable-menu-tooltip",children:"Feature Disabled. Enable from Settings Panel."}),(0,Be.jsxs)("li",{className:"wkit-menu "+(w.includes(e.path_includes[0])||w.includes(e.path_includes[1])?"active":""),children:[(0,Be.jsxs)(xe,{to:e.parent_link,className:_(e.dependency)?"wkit-menu-dp-header":"wkit-menu-dp-header wkit-disable-menu-feature",children:[e.parent_svg,(0,Be.jsx)("span",{className:"wkit-menu-text-label",children:e.parent_name}),e.child_content&&(0,Be.jsx)("svg",{className:e.disable?"":"wkit-megamenu-dropdown",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"15",viewBox:"0 0 11 10",fill:"none",children:(0,Be.jsx)("path",{d:"M8.96621 3.73047L6.24954 6.44714C5.92871 6.76797 5.40371 6.76797 5.08288 6.44714L2.36621 3.73047",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})]}),"Save Template"!==e?.parent_name&&e?.child_content&&(0,Be.jsx)("div",{className:"wdkit-submenu",children:(0,Be.jsx)("div",{className:"wdkit-submenu-inner-content",children:e?.child_content&&e?.child_content.map(((e,t)=>{if(e.condition)return(0,Be.jsxs)(xe,{className:"wdkit-submenu-link "+(w.includes(e.child_dependency[0])?"wdkit-active-submenu":""),to:e.child_link,children:[e.child_svg,(0,Be.jsx)("span",{children:e.child_name})]},t)}))})})]})]})})},t))),(0,Be.jsx)("hr",{}),Xe()?(0,Be.jsxs)("div",{className:"wkit-login-signup-with-notify",children:[(0,Be.jsxs)("div",{className:"wkit-user-profile-cover",children:[t.wdkit_meta?.userinfo?(0,Be.jsx)("div",{className:"wkit-user-circle-profile",children:(0,Be.jsx)("img",{src:t.wdkit_meta?.userinfo?.user_profile,alt:"profile Pic",className:"wkit-user-profile-img",draggable:"false"})}):(0,Be.jsx)("div",{className:"wkit-inner-logo-skeleton"}),(0,Be.jsx)("div",{className:"wkit-user-dropdown-new",children:(0,Be.jsxs)("div",{className:"wkit-user-dropdown-inner "+(wdkitData?.wdkit_white_label?.help_link?"wkit-wl-use-info":""),children:[(0,Be.jsx)("div",{className:"wkit-top-strip",children:t.wdkit_meta?.userinfo?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit--inner-logo",children:(0,Be.jsx)("img",{src:t.wdkit_meta?.userinfo?.user_profile,alt:"profile Pic",className:"wkit-user-profile-img",draggable:"false"})}),(0,Be.jsxs)("div",{className:"wkit-dropdown-right-side-info",children:[(0,Be.jsx)("span",{children:t.wdkit_meta?.userinfo?.full_name}),(0,Be.jsx)("a",{children:t.wdkit_meta?.userinfo?.user_email})]})]}):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-inner-logo-skeleton"}),(0,Be.jsxs)("div",{className:"wkit-dropdown-right-side-info-skeleton",children:[(0,Be.jsx)("span",{className:"wkit-username-skeleton"}),(0,Be.jsx)("span",{className:"wkit-user-email-skeleton"})]})]})}),(0,Be.jsxs)("div",{className:"wkit-user-dropdown-navs",children:[!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("ul",{className:"wkit-user-dropdown-link-inner",children:[(0,Be.jsx)("li",{className:"wkit-user-dropdown-link",children:(0,Be.jsxs)("a",{href:"https://wdesignkit.com/admin/dashboard",target:"_blank",className:"wkit-user-server-links",children:[(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.44922 3.44525C2.44922 2.89517 2.89517 2.44922 3.44525 2.44922H5.19128C5.74136 2.44922 6.18731 2.89517 6.18731 3.44525V11.8262C6.18731 12.3763 5.74136 12.8222 5.19128 12.8222H3.44525C2.89517 12.8222 2.44922 12.3763 2.44922 11.8262V3.44525ZM3.44525 0.949219C2.06675 0.949219 0.949219 2.06675 0.949219 3.44525V11.8262C0.949219 13.2047 2.06675 14.3222 3.44525 14.3222H5.19128C6.56979 14.3222 7.68731 13.2047 7.68731 11.8262V3.44525C7.68731 2.06675 6.56979 0.949219 5.19128 0.949219H3.44525ZM2.44922 18.8103C2.44922 18.2603 2.89517 17.8143 3.44525 17.8143H11.8262C12.3763 17.8143 12.8222 18.2603 12.8222 18.8103V20.5564C12.8222 21.1064 12.3763 21.5524 11.8262 21.5524H3.44525C2.89517 21.5524 2.44922 21.1064 2.44922 20.5564V18.8103ZM3.44525 16.3143C2.06675 16.3143 0.949219 17.4318 0.949219 18.8103V20.5564C0.949219 21.9349 2.06675 23.0524 3.44525 23.0524H11.8262C13.2047 23.0524 14.3222 21.9349 14.3222 20.5564V18.8103C14.3222 17.4318 13.2047 16.3143 11.8262 16.3143H3.44525ZM18.8103 17.8143C18.2603 17.8143 17.8143 18.2603 17.8143 18.8103V20.5564C17.8143 21.1064 18.2603 21.5524 18.8103 21.5524H20.5564C21.1064 21.5524 21.5524 21.1064 21.5524 20.5564V18.8103C21.5524 18.2603 21.1064 17.8143 20.5564 17.8143H18.8103ZM16.3143 18.8103C16.3143 17.4318 17.4318 16.3143 18.8103 16.3143H20.5564C21.9349 16.3143 23.0524 17.4318 23.0524 18.8103V20.5564C23.0524 21.9349 21.9349 23.0524 20.5564 23.0524H18.8103C17.4318 23.0524 16.3143 21.9349 16.3143 20.5564V18.8103ZM11.1794 3.44525C11.1794 2.89517 11.6253 2.44922 12.1754 2.44922H20.5564C21.1064 2.44922 21.5524 2.89517 21.5524 3.44525V11.8262C21.5524 12.3763 21.1064 12.8222 20.5564 12.8222H12.1754C11.6253 12.8222 11.1794 12.3763 11.1794 11.8262V3.44525ZM12.1754 0.949219C10.7969 0.949219 9.67938 2.06675 9.67938 3.44525V11.8262C9.67938 13.2047 10.7969 14.3222 12.1754 14.3222H20.5564C21.9349 14.3222 23.0524 13.2047 23.0524 11.8262V3.44525C23.0524 2.06675 21.9349 0.949219 20.5564 0.949219H12.1754Z",fill:"#020202"})})}),(0,Be.jsx)("span",{className:"wkit-user-link-name",children:(0,a.__)("Dashboard","wdesignkit")})]})}),(0,Be.jsx)("li",{className:"wkit-user-dropdown-link",children:(0,Be.jsxs)("a",{href:"https://wdesignkit.com/admin/profile",target:"_blank",className:"wkit-user-server-links",children:[(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M5.43626 20.8281C5.78817 17.5143 8.59212 14.9329 11.9992 14.9329C15.4063 14.9329 18.2102 17.5145 18.562 20.8281M23 12C23 18.0751 18.0751 23 12 23C5.92476 23 1 18.0751 1 12C1 5.92476 5.92476 1 12 1C18.0751 1 23 5.92476 23 12ZM16.4006 10.5338C16.4006 12.9639 14.4307 14.9338 12.0006 14.9338C9.57033 14.9338 7.60051 12.9639 7.60051 10.5338C7.60051 8.10384 9.57033 6.13388 12.0006 6.13388C14.4307 6.13388 16.4006 8.10384 16.4006 10.5338Z",stroke:"#020202",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsx)("span",{className:"wkit-user-link-name",children:(0,a.__)("Manage Profile","wdesignkit")})]})})]}),(0,Be.jsx)("button",{className:"wkit-user-logout-link-btn",onClick:e=>{(async()=>{await et(),t.wdkit_set_toast(["Logged out successfully!","You're logged out! Remember your login details and sign in again.","","success"])})()},children:(0,Be.jsx)("span",{className:"wkit-logout-user",children:(0,a.__)("Logout","wdesignkit")})})]})]})})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("div",{className:"wkit-notify-icon-cover",children:(0,Be.jsxs)("a",{className:"wkit-notification-icon",href:"https://wdesignkit.com/admin/notification",target:"_blank",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"22",viewBox:"0 0 21 20",fill:"none",children:(0,Be.jsx)("path",{d:"M16.4068 14.4085L15.3318 13.3335V9.16683C15.3318 6.6085 13.9652 4.46683 11.5818 3.90016V3.3335C11.5818 2.64183 11.0235 2.0835 10.3318 2.0835C9.64016 2.0835 9.08183 2.64183 9.08183 3.3335V3.90016C6.69016 4.46683 5.33183 6.60016 5.33183 9.16683V13.3335L4.25683 14.4085C3.73183 14.9335 4.0985 15.8335 4.84016 15.8335H15.8152C16.5652 15.8335 16.9318 14.9335 16.4068 14.4085ZM13.6652 14.1668H6.9985V9.16683C6.9985 7.10016 8.25683 5.41683 10.3318 5.41683C12.4068 5.41683 13.6652 7.10016 13.6652 9.16683V14.1668ZM10.3318 18.3335C11.2485 18.3335 11.9985 17.5835 11.9985 16.6668H8.66516C8.66516 17.5835 9.40683 18.3335 10.3318 18.3335Z",fill:"white",fillOpacity:"0.5"})}),g&&(0,Be.jsx)("span",{className:"wkit-unread-notification",children:g})]})})]}):(0,Be.jsxs)("div",{className:"wdkit-login-signUp-btn-cover",children:[(0,Be.jsx)(xe,{to:"/login",className:"wdkit-tertiaty-btn",children:(0,a.__)("Login","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:wdkitData.wdkit_server_url,className:"wkit-pink-btn-class wkit-get-started-btn",children:(0,a.__)("Get Started","wdesignkit")})]})]})]})})},Wa=()=>(0,Be.jsxs)("div",{className:"wkit-select-main",children:[(0,Be.jsx)("div",{className:"wkit-skeleton-heading"}),(0,Be.jsxs)("div",{className:"wkit-sekeleton-template",children:[(0,Be.jsxs)("div",{className:"wkit-skeleton-col",children:[(0,Be.jsx)("div",{className:"kit-field-wrap1",children:(0,Be.jsx)("div",{className:"wkit-input-skeleton",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})}),(0,Be.jsx)("div",{className:"kit-field-wrap1",children:(0,Be.jsx)("div",{className:"wkit-input-skeleton",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})})]}),(0,Be.jsxs)("div",{className:"wkit-skeleton-col",children:[(0,Be.jsx)("div",{className:"kit-field-wrap1",children:(0,Be.jsx)("div",{className:"wkit-input-skeleton",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})}),(0,Be.jsx)("div",{className:"kit-field-wrap1",children:(0,Be.jsx)("div",{className:"wkit-input-skeleton",children:(0,Be.jsx)("div",{className:"wkit-skeleton-line"})})})]})]}),(0,Be.jsx)("div",{className:"wkit-skeleton-addBtn"}),(0,Be.jsx)("div",{className:"wkit-skeleton-label"}),(0,Be.jsx)("div",{className:"wkit-save-plugin-wrapper",children:[1,2,3,4].map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-plugin-list",children:(0,Be.jsx)("div",{className:"kit-field-wrap1",children:(0,Be.jsxs)("div",{className:"wkit-plugin-skeleton",children:[(0,Be.jsx)("div",{className:"wkit-small-check-box"}),(0,Be.jsx)("div",{className:"wkit-small-img-box"}),(0,Be.jsx)("div",{className:"wkit-skeleton-line"})]})})},t)))}),(0,Be.jsx)("div",{className:"wkit-btn-right",children:(0,Be.jsx)("button",{className:"wkit-btn-skeleton"})})]}),{Fragment:Fa}=wp.element,{get_userinfo:Ia,form_data:qa,Add_workspace:Ua,loadingIcon:za,select_WorkSpace:Ja,wkit_getCategoryList:Ka,wkit_get_user_login:Ga}=wp.wkit_Helper,Ya=t=>{const i=G();if(!Ga())return t.wdkit_Login_Route("/save_template"),(0,Be.jsx)(ce,{to:"/login"});const s=J();var n=wdkitData.WDKIT_URL;const[r,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)("my_upload"),[p,w]=(0,e.useState)(!1),[m,g]=(0,e.useState)(""),[u,h]=(0,e.useState)(""),[_,C]=(0,e.useState)([]),[k,v]=(0,e.useState)("pagetemplate"),[b,x]=(0,e.useState)(""),[f,j]=(0,e.useState)([]),[y,$]=(0,e.useState)(""),[N,L]=(0,e.useState)(""),[M,H]=(0,e.useState)("loading"),[V,D]=(0,e.useState)(""),[S,Z]=(0,e.useState)([]),[R,B]=(0,e.useState)(!1),[E,O]=(0,e.useState)(!1),[A,T]=(0,e.useState)(!1),[P,W]=(0,e.useState)(!1),[F,I]=(0,e.useState)(""),[q,U]=(0,e.useState)(""),[z,K]=(0,e.useState)(!1),[Y,Q]=(0,e.useState)(!1),[X,ee]=(0,e.useState)(""),[te,ae]=(0,e.useState)(!1),[ie,se]=(0,e.useState)(""),[ne,le]=(0,e.useState)("");(0,e.useEffect)((()=>{s.pathname&&s.pathname.search("save_template")>-1||i("/save_template")}),[]),(0,e.useEffect)((()=>{r&&me()}),[r]),(0,e.useEffect)((()=>{if("elementor"==window.wdkit_editor&&M?.plugin?.length>0){let e=M?.plugin.findIndex((e=>"elementor"==e.original_slug));e>-1&&j([M?.plugin[e].p_id])}}),[window.wdkit_editor,M?.plugin]),(0,e.useEffect)((()=>{s.pathname&&"/save_template/section"==s.pathname?(v("section"),w(!0)):v("pagetemplate")}),[s.pathname]),(0,e.useEffect)((()=>{W(!0),H(t.wdkit_meta),t?.wdkit_meta?.category&&t?.wdkit_meta?.userinfo&&(D(Ka(t.wdkit_meta.category)),W(!1)),Z(Ja(t?.wdkit_meta,"","all"))}),[t.wdkit_meta]);const re=async e=>{let t=[...e.matchAll(/<!--\s*wp:[^\s]+\s*(?:({[\s\S]*?}))?\s*(?:\/-->|-->)/g)].map((e=>{try{return JSON.parse(e[1])}catch(e){return null}})).filter((e=>null!==e)),a={color:[],typo:[]};const i=e=>{Array.isArray(e)?e.map((e=>i(e))):"object"==typeof e&&null!==e&&Object.entries(e).map((([e,t])=>{if("string"==typeof t&&t.startsWith("var(")){let e=t.match(/var\(--tpgb-([A-Z]+)([A-Z0-9]*)\)/i),i=a.color.findIndex((e=>e.fullValue==t));e?-1==i&&a.color.push({fullValue:t,type:e[1],index:e[2]}):-1==i&&a.color.push({fullValue:t})}!e.toLowerCase().includes("global")||"globalTypo"!==e&&"globalShadow"!==e||-1==a.typo.findIndex((e=>e.value==t))&&a.typo.push({key:e,value:t}),i(t)}))};i(t);let s=window?.plusGlobalOpt?.settings?.presets?window.plusGlobalOpt.settings.presets:[],n=window?.plusGlobalOpt?.settings?.active?window.plusGlobalOpt.settings.active:"",l=s?.[n]?s[n]:"",r={color:[],gradient:[],typography:[],boxshadow:[],spacing:[]};return l&&a&&(a?.color?.length>0&&a.color.map((e=>{let t=e?.index?e.index-1:null;if(null!==t)if("C"==e.type){var a=l?.colors?.[t];a=Object.assign({},a,{id:t}),r.color.push(a)}else"GC"==e.type?(a=l?.gradient?.[t],a=Object.assign({},a,{id:t}),r.gradient.push(a)):"S"==e.type&&(a=l?.spacing?.[t],a=Object.assign({},a,{id:t}),r.spacing.push(a))})),a?.typo?.length>0&&a.typo.map((e=>{let t=e?.value?e.value-1:null;if(null!==t)if("globalShadow"==e.key)(a=l?.boxshadow?.[t]?l.boxshadow[t]:"")&&(a=Object.assign({},a,{id:t}),r.boxshadow.push(a));else if("globalTypo"==e.key){var a;(a=l?.typography?.[t]?l.typography[t]:"")&&(a=Object.assign({},a,{id:t}),r.typography.push(a))}}))),r},oe=async e=>{let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","get_global_val"),t.append("builder","elementor");var a=await l().post(ajaxurl,t);if(a?.data?.success){const t=a.data.data;if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return void console.error("Invalid JSON content:",e)}const{typographyIds:i,colorIds:s}=(e=>{const t=new Set,a=new Set;"string"==typeof e&&(e=JSON.parse(e));const i=e=>{Array.isArray(e)?e.map(i):"object"==typeof e&&null!==e&&(e.__globals__&&Object.values(e.__globals__).map((e=>"string"==typeof e?e:null)).filter(Boolean).map((e=>{e.includes("globals/typography")?t.add(e.split("id=")[1]):e.includes("globals/colors")&&a.add(e.split("id=")[1])})),Object.values(e).map(i))};return i(e),{typographyIds:[...t],colorIds:[...a]}})(e);return{typography:t?.typography?.length>0?t.typography.filter((e=>i.includes(e._id))):[],color:t.color?.length>0?t.color.filter((e=>s.includes(e._id))):[]}}return{typography:[],color:[]}},de=async e=>{if($(""),L(""),"new_temp"==e&&!m)return $("wkit-error-red"),void t.wdkit_set_toast([(0,a.__)("Enter Template Name","wdesignkit"),(0,a.__)("Title can not be empty!","wdesignkit"),"","danger"]);if(!d)return void L("wkit-error-red");O(!0);let s="",n={},l={};if("gutenberg"==window.wdkit_editor)s=p?localStorage.getItem("wdkit_section"):await wp.data.select("core/editor").getEditedPostContent(),n={file_type:"wp_block",title:m,content:s};else if("elementor"==window.wdkit_editor){let e="";if(p)s=localStorage.getItem("wdkit_section"),s=[JSON.parse(s)];else{var r,o,c,w,g,u,h=null;if(window&&(r=window)&&r&&(o=r.elementor)&&o&&(c=o.previewView)&&c&&(w=c.el)&&w&&(g=w.firstElementChild)&&g&&(h=g),null!=h&&o&&(u=o.config)&&null!==u&&u.document)if(null!=h&&h.model)s=[h.model.toJSON({remove:["default"]})];else if(s=o.elements.toJSON({remove:["default"]}),window.elementor.documents){var _=window.elementor.documents;if(_.getCurrent()){var C=_.getCurrent();e=C&&C.config&&C.config.type?C.config.type:"",C.container&&C.container.settings&&(l=C.container.settings.toJSON({remove:["default"]}),l.post_status="publish",l.post_title=m)}}}n={file_type:"elementor",title:m,content:s,el_type:e,settings:l}}if(!s||!n)return void t.wdkit_set_toast([(0,a.__)("Page Content is empty","wdesignkit"),(0,a.__)("Page should have some content","wdesignkit"),"","danger"]);if("new_temp"==e){var v={title:m,type_upload:d,template_type:k,wp_post_type:wdkitData.post_type||"page",category:b,data:JSON.stringify(n),plugins:JSON.stringify(f)};if("elementor"==window.wdkit_editor){if(s)var x=await oe(s);else x="";v=Object.assign({},v,{global_data:x?JSON.stringify(x):JSON.stringify([])})}else if("gutenberg"==window.wdkit_editor){let e=await re(s);v=Object.assign({},v,{global_data:e?JSON.stringify(e):JSON.stringify([])})}var j=await(async e=>{if(!e)return;let a="",i=Ga();i&&i.user_email&&(a=i.user_email);const s=new URLSearchParams(window.location.search),n={};Array.from(s?.entries()).map((([e,t])=>{n[e]=t}));let l={type:"save_template",email:a,builder:window.wdkit_editor,post_id:n?.post?n.post:""};return l=Object.assign({},l,e),await qa(l).then((e=>(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),e)))})(v)}else if("replace_temp"==e){let e=X?.title?X.title:"",t=Object.assign({},n,{title:e});return void(j=await pe(JSON.stringify(t)))}let y=j.data&&j.data.id?j.data.id:"",N=j.data&&j.data.editpage?j.data.editpage:"";I(y),U(N),j&&j.success&&(await Ia().then((e=>t.wdkit_set_meta(e.data))),B(!0),setTimeout((()=>{B(!1),i(`/my_uploaded?${k}`)}),5e3)),O(!1)},pe=async e=>{const a=new URLSearchParams(window.location.search),s={};Array.from(a?.entries()).map((([e,t])=>{s[e]=t}));var n={type:"update_template",token:Ga().token,data:e,id:X.id,post_id:s?.post?s.post:""};if("elementor"==window.wdkit_editor){if(JSON.parse(e).content)var l=await oe(JSON.parse(e).content);else l="";n=Object.assign({},n,{global_data:l?JSON.stringify(l):JSON.stringify([])})}else if("gutenberg"==window.wdkit_editor){let t=await re(JSON.parse(e).content);n=Object.assign({},n,{global_data:t?JSON.stringify(t):JSON.stringify([])})}return n=Object.assign({},n),await qa(n).then((e=>e?.data?.success?(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),ae(!1),le(!1),setTimeout((()=>{i("/my_uploaded")}),300),e):(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),ae(!1),le(!1),e)))},we=e=>{const{value:t,checked:a}=e.target;j(a?[...f,t]:f.filter((e=>e!==t)))},me=async()=>{se(u),ee(""),K(!0),Q(!0);let e=Ga(),a={type:"find_template",token:e?.token,u_id:t?.wdkit_meta?.userinfo?.id,search:u,builder:window.wdkit_editor,parpage:12};await qa(a).then((e=>{if(e?.data?.success){let t=e?.data?.posts;return t&&C(e?.data?.posts),e}return e})),K(!1)},ge=()=>(0,Be.jsxs)("div",{className:"wkit-switch-setting-wrap",children:[(0,Be.jsx)("div",{className:"wdkit-switch-text",style:{color:r?"#19191B":"#C22076"},children:(0,a.__)("New Template","wdesignkit")}),(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",checked:r,onChange:()=>o(!r)}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]}),(0,Be.jsx)("div",{className:"wdkit-switch-text",style:{color:r?"#C22076":"#19191B"},children:(0,a.__)("Existing Template","wdesignkit")})]}),ue=()=>(0,Be.jsx)("div",{className:"wkit-model-transp wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:e=>{le(!1)},children:(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"popup-missing",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Please Confirm","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsx)("div",{className:"wkit-popup-content-title",children:(0,a.__)("Are you sure you want to replace this template ?","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,Be.jsx)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>{le(!1)},children:(0,Be.jsx)("span",{children:(0,a.__)("No","wdesignkit")})}),te?(0,Be.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",children:st()}):(0,Be.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>{ae(!0),de("replace_temp")},children:(0,Be.jsx)("span",{children:(0,a.__)("Yes","wdesignkit")})})]})]})]})]})});return(0,Be.jsxs)(Be.Fragment,{children:[P&&(0,Be.jsx)("div",{className:"wkit-save-skeleton",children:(0,Be.jsx)(Wa,{})}),!P&&(0,Be.jsxs)(Fa,{children:[(0,Be.jsxs)("div",{className:"wkit-select-main",children:[(0,Be.jsx)(ge,{}),(0,Be.jsx)("div",{style:{display:r?"":"none"},children:(0,Be.jsxs)(Fa,{children:[(0,Be.jsxs)("div",{className:"wkit-existing-template",children:[(0,Be.jsxs)("div",{className:"wkit-search-template",children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Search Template","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-search-template-input",children:[(0,Be.jsx)("input",{type:"text",placeholder:(0,a.__)("Search Template","wdesignkit"),className:"wkit-existing-temp-search",value:u,onChange:e=>h(e.target.value)}),z?(0,Be.jsx)("button",{className:"wkit-find-template-btn wkit-btn-class",children:st()}):(0,Be.jsx)("button",{type:"submit",className:"wkit-find-template-btn wkit-btn-class",onClick:()=>{me()},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M21.0004 20.9984L16.6504 16.6484",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),Y&&(0,Be.jsx)(Fa,{children:(0,Be.jsx)("div",{className:"wkit-find-temp-list-content",children:(0,Be.jsxs)("ul",{className:"wkit-find-temp-list",children:[(0,Be.jsx)("span",{className:"wkit-Flist-notice",children:ie?`Search "${ie}"`:(0,a.__)("Recently added","wdesignkit")}),0==z?(0,Be.jsx)(Fa,{children:_?.length>0?_.map((e=>(0,Be.jsxs)("li",{className:"kit-page-list",onClick:()=>{(e=>{if(e&&t?.wdkit_meta?.template?.length>0){let i=t?.wdkit_meta?.template,s=i.findIndex((t=>t.id==e));if(s>-1){let e=i[s];ee(e)}else ee(""),t.wdkit_set_toast([(0,a.__)("Template Not Found","wdesignkit"),(0,a.__)("selected Template is Not Found","wdesignkit"),"","danger"])}})(e.id)},children:[(0,Be.jsxs)("div",{className:"wkit-existing-temp-detail",children:[(0,Be.jsx)("img",{src:e.image_url,alt:e.title}),(0,Be.jsx)("span",{className:"section-page-post-type",children:e.title})]}),(0,Be.jsxs)("div",{className:"wkit-existing-temp-meta",children:[(0,Be.jsx)("div",{className:"wkit-temp-meta-content",children:"section"===e.type?(0,Be.jsx)("img",{className:"wkit-temp-meta-content-img",src:n+"assets/images/svg/sections.svg",alt:"section"}):"pagetemplate"===e.type?(0,Be.jsx)("img",{className:"wkit-temp-meta-content-img",src:n+"assets/images/svg/pages.svg",alt:"page"}):(0,Be.jsx)("img",{className:"wkit-temp-meta-content-img",src:n+"assets/images/svg/websitekit.svg",alt:"kit"})}),(0,Be.jsx)("div",{className:"wkit-temp-meta-content",children:"publish"===e.post_status?(0,Be.jsx)("img",{className:"wkit-temp-meta-content-img",src:n+"assets/images/svg/public.svg",alt:"public"}):(0,Be.jsx)("img",{className:"wkit-temp-meta-content-img",src:n+"assets/images/svg/private.svg",alt:"private"})})]})]},e.id))):(0,Be.jsxs)("div",{className:"wkit-no-data",children:[(0,Be.jsx)("img",{src:n+"assets/images/jpg/empty-dog.png",alt:"no-data"}),(0,Be.jsx)("span",{children:(0,a.__)("Search Template can not found","wdesignkit")})]})}):st()]})})})]}),(0,Be.jsx)("div",{className:"wkit-select-template",children:X?(0,Be.jsxs)("div",{className:"wkit-selected-template-content",children:[(0,Be.jsx)("span",{className:"wkit-selected-template-info",children:(0,a.__)("Do you want to replace this?","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-selected-template",children:(()=>{let e=X.post_builder,t=X.type;return(0,Be.jsx)(dt,{data:X,builder:e,currentPage:1,type:"websitekit"==t?t+"-view":t,width:"24%"})})()}),(0,Be.jsx)("div",{className:"wkit-quickedit-note",children:(0,Be.jsxs)("span",{children:[(0,Be.jsx)("b",{children:(0,a.__)("Note : ","wdesignkit")}),(0,a.__)("Replacing the template will erase the current design. This action cannot be undone, and the old design will be permanently lost.","wdesignkit")]})})]}):(0,Be.jsx)("div",{className:"wkit-selected-img",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"39",height:"38",viewBox:"0 0 39 38",fill:"none",children:(0,Be.jsx)("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"})})})})]}),X&&(0,Be.jsx)("div",{className:"wkit-replace-button",children:(0,Be.jsx)("button",{className:"wkit-btn-class",onClick:()=>{le(!0)},children:(0,a.__)("Replace","wdesignkit")})})]})}),(0,Be.jsxs)("div",{className:"wkit-save-temp-content",style:r?{display:"none"}:{},children:[(0,Be.jsx)("div",{className:"wkit-save-heading",children:(0,a.__)("Save Template","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-select-template",children:[(0,Be.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,Be.jsxs)("div",{className:"kit-field-wrap",children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Template Name","wdesignkit")}),(0,Be.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Template Name","wdesignkit"),className:"wkit-input-filed "+y,value:m,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_toast([(0,a.__)("Limit Reached","wdesignkit"),(0,a.__)("Limit Reached","wdesignkit"),"","danger"]),0))&&g(e.target.value)}})]}),(0,Be.jsxs)("div",{className:"kit-field-wrap",children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Select Workspace","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,Be.jsxs)("select",{className:"wkit-select "+N,value:d,onChange:e=>c(e.target.value),children:[(0,Be.jsx)("option",{value:"my_upload",children:(0,a.__)("My Upload","wdesignkit")}),(0,Be.jsx)("optgroup",{label:(0,a.__)("My Workspace","wdesignkit"),children:S&&S.map(((e,t)=>(0,Be.jsx)("option",{value:e.w_id,children:e.title},t)))})]}),(0,Be.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,Be.jsxs)("div",{className:"kit-field-wrap",children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Template Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,Be.jsxs)("select",{className:"wkit-select "+N,value:k,onChange:e=>{v(e.target.value),x("")},children:[(0,Be.jsx)("option",{value:"pagetemplate",children:(0,a.__)("Page Template","wdesignkit")}),(0,Be.jsx)("option",{value:"section",children:(0,a.__)("Section","wdesignkit")})]}),(0,Be.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"kit-field-wrap",children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Category","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,Be.jsxs)("select",{className:"wkit-select",value:b,onChange:e=>x(e.target.value),children:[(0,Be.jsx)("option",{value:"",children:(0,a.__)("Select Category","wdesignkit")}),"pagetemplate"==k&&V&&Object.entries(V["Page Templates"]).map((([e,t],a)=>(0,Be.jsx)("option",{value:t.term_id,children:t.term_name},a))),"section"==k&&V&&Object.entries(V.Sections).map((([e,t],a)=>(0,Be.jsx)("option",{value:t.term_id,children:t.term_name},a)))]}),(0,Be.jsx)("svg",{width:"12",height:"10",viewBox:"0 0 12 8",fill:"#878787",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{style:{display:"flex"},children:(0,Be.jsxs)("a",{className:"wkit-workspace",onClick:()=>T(!A),children:[(0,Be.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 0H6V6H0V8H6V14H8V8H14V6H8V0Z",fill:"#040483"})}),(0,a.__)("Add New Workspace","wdesignkit")]})}),A&&(0,Be.jsx)(Ua,{type:"saveTemp",closePopUp:()=>{T(!1)},UpdateUserData:e=>{t.wdkit_set_meta(e.data)},setLoading:e=>{W(e)},Toast:(e,a,i)=>t.wdkit_set_toast([e,a,"",i])}),M?.plugin?.length>0?(0,Be.jsxs)(Fa,{children:[(0,Be.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Plugins Used","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-save-plugin-wrapper",children:Object.values(M?.plugin).map(((e,t)=>{if("wdkit"==window.wdkit_editor)return(0,Be.jsxs)("div",{className:"wkit-plugin-list",children:[(0,Be.jsx)("input",{type:"checkbox",id:"plugin_"+e.p_id,name:"selectPlugin",className:"save-wkit-check",value:e.p_id,onChange:we}),(0,Be.jsxs)("label",{htmlFor:"plugin_"+e.p_id,children:[(0,Be.jsx)("div",{className:"wkit-plugin-image",children:(0,Be.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})}),(0,Be.jsx)("div",{className:"wkit-plugin-text",children:e.plugin_name})]})]},t);if("elementor"==window.wdkit_editor)var a="1001";else"gutenberg"==window.wdkit_editor&&(a="1002");return a==e.plugin_builder||0==e.plugin_builder?(0,Be.jsxs)("div",{className:"wkit-plugin-list",children:[(0,Be.jsx)("input",{type:"checkbox",id:"plugin_"+e.p_id,name:"selectPlugin",className:"save-wkit-check",value:e.p_id,onChange:we,checked:!!f.includes(e.p_id)||null}),(0,Be.jsxs)("label",{htmlFor:"plugin_"+e.p_id,children:[(0,Be.jsx)("div",{className:"wkit-plugin-image",children:(0,Be.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})}),(0,Be.jsx)("div",{className:"wkit-plugin-text",children:e.plugin_name})]})]},t):void 0}))})]}):0==M?.plugin?.length?(0,Be.jsx)("div",{className:"wkit-no-template-data",children:(0,a.__)("No Plugin List","wdesignkit")}):(0,Be.jsx)("div",{className:"wkit-save-skeleton",children:(0,Be.jsx)(Wa,{})}),(0,Be.jsx)("div",{className:"wkit-btn-right",children:E?(0,Be.jsx)("button",{type:"button",className:"wkit-save-btn wkit-btn-class",children:st()}):(0,Be.jsx)("div",{className:m.trim()?"":"wkit-disable-btn-class",children:(0,Be.jsx)("button",{type:"button",className:"wkit-save-btn wkit-btn-class",disabled:!m.trim(),onClick:()=>de("new_temp"),children:(0,a.__)("Save Template","wdesignkit")})})}),R&&(0,Be.jsx)("div",{className:"wkit-model-transp wkit-sucessfully-save-to-cloud wkit-popup-show",children:(0,Be.jsxs)("div",{className:"wkit-plugin-model-content",children:[(0,Be.jsx)("a",{className:"wkit-plugin-popup-close",onClick:()=>{document.querySelector(".wkit-sucessfully-save-to-cloud.wkit-popup-show").classList.remove("wkit-popup-show"),i("my_upload"==d?`/my_uploaded?${k}`:"/manage_workspace/workspace_template/"+Number(d))},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Upload Template","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-successfully-imported",children:[(0,Be.jsxs)("svg",{className:"wkit-success-icon",xmlns:"http://www.w3.org/2000/svg",width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-text-center",children:[(0,Be.jsx)("div",{className:"wkit-success-heading wkit-get-success",children:(0,a.__)("Successfully Uploaded","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-desc",children:(0,a.__)("To Edit fully visit WdesignKit admin and make it live.","wdesignkit")})]}),F&&(0,Be.jsx)("button",{type:"submit",className:"wkit-save-btn wkit-btn-class",children:(0,Be.jsx)("a",{href:q,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Edit Fully","wdesignkit")})})]})]})})]})]}),ne&&(0,Be.jsx)(ue,{})]})]})};var Qa=s(418),Xa=e,ei=Symbol.for("react-redux-context"),ti="undefined"!=typeof globalThis?globalThis:{};function ai(){if(!Xa.createContext)return{};const e=ti[ei]??(ti[ei]=new Map);let t=e.get(Xa.createContext);return t||(t=Xa.createContext(null),e.set(Xa.createContext,t)),t}var ii=ai(),si=Symbol.for("react.element"),ni=Symbol.for("react.portal"),li=Symbol.for("react.fragment"),ri=Symbol.for("react.strict_mode"),oi=Symbol.for("react.profiler"),di=Symbol.for("react.provider"),ci=Symbol.for("react.context"),pi=Symbol.for("react.server_context"),wi=Symbol.for("react.forward_ref"),mi=Symbol.for("react.suspense"),gi=Symbol.for("react.suspense_list"),ui=Symbol.for("react.memo"),hi=Symbol.for("react.lazy"),_i=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),wi),Ci=ui;function ki(e,t,a,i,{areStatesEqual:s,areOwnPropsEqual:n,areStatePropsEqual:l}){let r,o,d,c,p,w=!1;return function(m,g){return w?function(w,m){const g=!n(m,o),u=!s(w,r,m,o);return r=w,o=m,g&&u?(d=e(r,o),t.dependsOnOwnProps&&(c=t(i,o)),p=a(d,c,o),p):g?(e.dependsOnOwnProps&&(d=e(r,o)),t.dependsOnOwnProps&&(c=t(i,o)),p=a(d,c,o),p):u?function(){const t=e(r,o),i=!l(t,d);return d=t,i&&(p=a(d,c,o)),p}():p}(m,g):(r=m,o=g,d=e(r,o),c=t(i,o),p=a(d,c,o),w=!0,p)}}function vi(e){return function(t){const a=e(t);function i(){return a}return i.dependsOnOwnProps=!1,i}}function bi(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function xi(e,t){return function(t,{displayName:a}){const i=function(e,t){return i.dependsOnOwnProps?i.mapToProps(e,t):i.mapToProps(e,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(t,a){i.mapToProps=e,i.dependsOnOwnProps=bi(e);let s=i(t,a);return"function"==typeof s&&(i.mapToProps=s,i.dependsOnOwnProps=bi(s),s=i(t,a)),s},i}}function fi(e,t){return(a,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function ji(e,t,a){return{...a,...e,...t}}var yi={notify(){},get:()=>[]};function $i(e,t){let a,i=yi,s=0,n=!1;function l(){d.onStateChange&&d.onStateChange()}function r(){s++,a||(a=t?t.addNestedSub(l):e.subscribe(l),i=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let a=e;for(;a;)t.push(a),a=a.next;return t},subscribe(a){let i=!0;const s=t={callback:a,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){i&&null!==e&&(i=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}())}function o(){s--,a&&0===s&&(a(),a=void 0,i.clear(),i=yi)}const d={addNestedSub:function(e){r();const t=i.subscribe(e);let a=!1;return()=>{a||(a=!0,t(),o())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:l,isSubscribed:function(){return n},trySubscribe:function(){n||(n=!0,r())},tryUnsubscribe:function(){n&&(n=!1,o())},getListeners:()=>i};return d}var Ni=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Li="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Mi=Ni||Li?Xa.useLayoutEffect:Xa.useEffect;function Hi(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Vi(e,t){if(Hi(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(let i=0;i<a.length;i++)if(!Object.prototype.hasOwnProperty.call(t,a[i])||!Hi(e[a[i]],t[a[i]]))return!1;return!0}var Di={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Si={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Zi={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ri={[_i]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Ci]:Zi};function Bi(e){return function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case si:{const a=e.type;switch(a){case li:case oi:case ri:case mi:case gi:return a;default:{const e=a&&a.$$typeof;switch(e){case pi:case ci:case wi:case hi:case ui:case di:return e;default:return t}}}}case ni:return t}}}(e)===ui?Zi:Ri[e.$$typeof]||Di}var Ei=Object.defineProperty,Oi=Object.getOwnPropertyNames,Ai=Object.getOwnPropertySymbols,Ti=Object.getOwnPropertyDescriptor,Pi=Object.getPrototypeOf,Wi=Object.prototype;function Fi(e,t){if("string"!=typeof t){if(Wi){const a=Pi(t);a&&a!==Wi&&Fi(e,a)}let a=Oi(t);Ai&&(a=a.concat(Ai(t)));const i=Bi(e),s=Bi(t);for(let n=0;n<a.length;++n){const l=a[n];if(!(Si[l]||s&&s[l]||i&&i[l])){const a=Ti(t,l);try{Ei(e,l,a)}catch(e){}}}}return e}var Ii=()=>{throw new Error("uSES not initialized!")},qi=[null,null];function Ui(e,t,a,i,s,n){e.current=i,a.current=!1,s.current&&(s.current=null,n())}function zi(e,t){return e===t}var Ji=function(e,t,a,{pure:i,areStatesEqual:s=zi,areOwnPropsEqual:n=Vi,areStatePropsEqual:l=Vi,areMergedPropsEqual:r=Vi,forwardRef:o=!1,context:d=ii}={}){const c=d,p=function(e){return e?"function"==typeof e?xi(e):fi(e,"mapStateToProps"):vi((()=>({})))}(e),w=function(e){return e&&"object"==typeof e?vi((t=>function(e,t){const a={};for(const i in e){const s=e[i];"function"==typeof s&&(a[i]=(...e)=>t(s(...e)))}return a}(e,t))):e?"function"==typeof e?xi(e):fi(e,"mapDispatchToProps"):vi((e=>({dispatch:e})))}(t),m=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:a,areMergedPropsEqual:i}){let s,n=!1;return function(t,a,l){const r=e(t,a,l);return n?i(r,s)||(s=r):(n=!0,s=r),s}}}(e):fi(e,"mergeProps"):()=>ji}(a),g=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",a=`Connect(${t})`,i={shouldHandleStateChanges:g,displayName:a,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:w,initMergeProps:m,areStatesEqual:s,areStatePropsEqual:l,areOwnPropsEqual:n,areMergedPropsEqual:r};function d(t){const[a,s,n]=Xa.useMemo((()=>{const{reactReduxForwardedRef:e,...a}=t;return[t.context,e,a]}),[t]),l=Xa.useMemo((()=>c),[a,c]),r=Xa.useContext(l),o=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(r)&&Boolean(r.store),p=o?t.store:r.store,w=d?r.getServerState:p.getState,m=Xa.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:a,initMergeProps:i,...s}){return ki(t(e,s),a(e,s),i(e,s),e,s)}(p.dispatch,i)),[p]),[u,h]=Xa.useMemo((()=>{if(!g)return qi;const e=$i(p,o?void 0:r.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,o,r]),_=Xa.useMemo((()=>o?r:{...r,subscription:u}),[o,r,u]),C=Xa.useRef(void 0),k=Xa.useRef(n),v=Xa.useRef(void 0),b=Xa.useRef(!1),x=Xa.useRef(!1),f=Xa.useRef(void 0);Mi((()=>(x.current=!0,()=>{x.current=!1})),[]);const j=Xa.useMemo((()=>()=>v.current&&n===k.current?v.current:m(p.getState(),n)),[p,n]),y=Xa.useMemo((()=>e=>u?function(e,t,a,i,s,n,l,r,o,d,c){if(!e)return()=>{};let p=!1,w=null;const m=()=>{if(p||!r.current)return;const e=t.getState();let a,m;try{a=i(e,s.current)}catch(e){m=e,w=e}m||(w=null),a===n.current?l.current||d():(n.current=a,o.current=a,l.current=!0,c())};return a.onStateChange=m,a.trySubscribe(),m(),()=>{if(p=!0,a.tryUnsubscribe(),a.onStateChange=null,w)throw w}}(g,p,u,m,k,C,b,x,v,h,e):()=>{}),[u]);var $,N;let L;$=Ui,N=[k,C,b,n,v,h],Mi((()=>$(...N)),undefined);try{L=Ii(y,j,w?()=>m(w(),n):j)}catch(e){throw f.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${f.current.stack}\n\n`),e}Mi((()=>{f.current=void 0,v.current=void 0,C.current=L}));const M=Xa.useMemo((()=>Xa.createElement(e,{...L,ref:s})),[s,e,L]);return Xa.useMemo((()=>g?Xa.createElement(l.Provider,{value:_},M):M),[l,M,_])}const u=Xa.memo(d);if(u.WrappedComponent=e,u.displayName=d.displayName=a,o){const t=Xa.forwardRef((function(e,t){return Xa.createElement(u,{...e,reactReduxForwardedRef:t})}));return t.displayName=a,t.WrappedComponent=e,Fi(t,e)}return Fi(u,e)}},Ki=function({store:e,context:t,children:a,serverState:i,stabilityCheck:s="once",identityFunctionCheck:n="once"}){const l=Xa.useMemo((()=>{const t=$i(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:s,identityFunctionCheck:n}}),[e,i,s,n]),r=Xa.useMemo((()=>e.getState()),[e]);Mi((()=>{const{subscription:t}=l;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),r!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[l,r]);const o=t||ii;return Xa.createElement(o.Provider,{value:l},a)};Qa.useSyncExternalStoreWithSelector,(e=>{Ii=e})(e.useSyncExternalStore);const Gi={text:{type:"text",lable:"Text",name:"text",description:"",placeHolder:"",defaultValue:"",ai_support:!1,showLable:!0,lableBlock:!1,separator:"default",controlClass:"",input_type:"text",dynamic:!1,conditions:!1,sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js",condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},class:""},preview:{type:"preview",lable:"Preview",name:"preview"},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:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},wysiwyg:{type:"wysiwyg",lable:"Wysiwyg",name:"wysiwyg",description:"",defaultValue:"",ai_support:!1,showLable:!0,lableBlock:!0,controlClass:"",separator:"default",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},code:{type:"code",lable:"Code",name:"code",description:"",defaultValue:"",ai_support:!1,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:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js",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:wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png",showLable:!0,lableBlock:!0,separator:"default",controlClass:"",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},media:{type:"media",lable:"Media",name:"media",description:"",defaultValue:wdkitData.WDKIT_URL+"assets/images/jpg/placeholder.png",media_types:[],ai_support:!1,showLable:!0,lableBlock:!0,separator:"default",controlClass:"",conditions:!1,dynamic:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},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:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},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"}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},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"}]}},cpt:{type:"cpt",lable:"Post Type",name:"cpt",description:'Author details aren\'t displayed for the "Product" post type.',select_defaultValue:["select type","Select Type"],options:[{value:"select type",lable:"Select Type"}],fields:[{type:"text",lable:"Include Product(s)",name:"include",description:"",placeHolder:"product_id",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},{type:"text",lable:"Exclude Product(s)",name:"exclude",description:"",placeHolder:"product_id",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},{type:"number",lable:"Max Post",name:"max_post",description:"",placeHolder:"",defaultValue:"10",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:""}]}},{type:"select",lable:"Order",name:"order",description:"",select_defaultValue:["desc","Descending"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"desc",lable:"Descending"},{value:"asc",lable:"Ascending"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},{type:"select",lable:"Order By",name:"order_by",description:"",select_defaultValue:["date","Date"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"",lable:"Select"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},{type:"number",lable:"Max Category",name:"max_cat",description:"",placeHolder:"",defaultValue:"3",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:""}]}},{type:"number",lable:"Max Tag",name:"max_tag",description:"",placeHolder:"",defaultValue:"3",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:""}]}}],showLable:!0,lableBlock:!1,separator:"default"},product_listing:{type:"product_listing",lable:"Product Listing",name:"product_listing",description:"",fields:[{type:"text",lable:"Include Product(s)",name:"include",description:"",placeHolder:"product_id",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},{type:"text",lable:"Exclude Product(s)",name:"exclude",description:"",placeHolder:"product_id",defaultValue:"",showLable:!0,lableBlock:!1,separator:"default",controlClass:"",dynamic:!1,conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]}},{type:"number",lable:"Max Post",name:"max_post",description:"",placeHolder:"",defaultValue:"10",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:""}]}},{type:"select",lable:"Order",name:"order",description:"",select_defaultValue:["desc","Descending"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"desc",lable:"Descending"},{value:"asc",lable:"Ascending"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},{type:"select",lable:"Order By",name:"order_by",description:"",select_defaultValue:["date","Date"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"none",lable:"None"},{value:"id",lable:"ID"},{value:"author",lable:"Author"},{value:"title",lable:"Title"},{value:"name",lable:"Name (slug)"},{value:"date",lable:"Date"},{value:"modified",lable:"Modified"},{value:"rand",lable:"Random"},{value:"comment_count",lable:"Comment Count"},{value:"menu_order",lable:"Default Menu Order"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},{type:"number",lable:"Max Category",name:"max_cat",description:"",placeHolder:"",defaultValue:"3",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:""}]}},{type:"number",lable:"Max Tag",name:"max_tag",description:"",placeHolder:"",defaultValue:"3",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:""}]}}],showLable:!0,lableBlock:!1,separator:"default"},taxonomy:{type:"taxonomy",lable:"Taxonomy",name:"taxonomy",description:"",select_defaultValue:["select type","Select Type"],options:[{value:"select type",lable:"Select Type"}],fields:[{type:"select",lable:"Post Type",name:"post_type",description:"",select_defaultValue:["select type","Select Type"],showLable:!0,lableBlock:!1,separator:"default",controlClass:"",options:[{value:"select type",lable:"Select Type"}],conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:"",svg:"svg-0"}]}},{type:"number",lable:"Max Post",name:"max_post",description:"",placeHolder:"",defaultValue:"10",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:""}]}}],showLable:!0,lableBlock:!1,separator:"default"},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:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},textarea:{type:"textarea",lable:"Textarea",name:"textarea",description:"",placeHolder:"",defaultValue:"",controlClass:"",ai_support:!1,showLable:!0,lableBlock:!1,dynamic:!1,separator:"default",rows:"2",conditions:!1,condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},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:""}]},sanitizer_value:"wdk_senitize_js",sanitizer_dropdown_value:"wdk_senitize_js"},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:""}]}}},Yi={text:Qi("text","2XXLlqlzKkw"),number:Qi("number",""),wysiwyg:Qi("wysiwyg",""),code:Qi("code",""),hidden:Qi("hidden",""),choose:Qi("choose","Kl4Qf1vy4bs"),datetime:Qi("datetime",""),gallery:Qi("gallery",""),media:Qi("media","F4r3cCPy7jA"),iconscontrol:Qi("iconscontrol","T2kJk41q1W0"),background:Qi("background",""),border:Qi("border",""),boxshadow:Qi("boxshadow",""),textshadow:Qi("textshadow",""),color:Qi("color",""),cssfilter:Qi("cssfilter",""),dimension:Qi("dimension","yc6JG9ldy3M"),typography:Qi("typography","N9-0IYLyeho"),repeater:Qi("repeater",""),heading:Qi("heading",""),divider:Qi("divider",""),rawhtml:Qi("rawhtml",""),slider:Qi("slider","xrAdPPeJpYk"),select:Qi("select","YeCPqUMx3Cw"),selecttemplate:Qi("selecttemplate",""),cpt:Qi("cpt",""),product_listing:Qi("product_listing",""),taxonomy:Qi("taxonomy",""),select2:Qi("select2",""),textarea:Qi("textarea",""),url:Qi("url","wOlHlJFb4hk"),switcher:Qi("switcher","mANZ30J5-2w"),popover:Qi("popover",""),normalhover:Qi("normalhover","SFOifoHKlrU"),icon:Qi("icon",""),headingtags:Qi("headingtags",""),gradientcolor:Qi("gradientcolor",""),sortable:Qi("sortable",""),tab:Qi("tab",""),toggle:Qi("toggle",""),alert:Qi("alert",""),notice:Qi("notice",""),deprecatednotice:Qi("deprecatednotice",""),svg:Qi("svg",""),align:Qi("align",""),query:Qi("query","")};function Qi(e,t=""){return{videoLink:t?`https://www.youtube.com/watch?v=${t}`:"",document:`${wdkitData.WDKIT_DOC_URL}/docs/create-custom-elementor-widget-using-free-wdesignkit-widget-builder/#wkit-${e}-controller`}}const Xi={"Font-Awesome":["fab fa-500px","fab fa-accessible-icon","fab fa-accusoft","fab fa-adn","fab fa-adversal","fab fa-affiliatetheme","fab fa-algolia","fab fa-amazon","fab fa-amilia","fab fa-android","fab fa-angellist","fab fa-angrycreative","fab fa-angular","fab fa-app-store","fab fa-app-store-ios","fab fa-apper","fab fa-apple","fab fa-apple-pay","fab fa-asymmetrik","fab fa-audible","fab fa-autoprefixer","fab fa-avianex","fab fa-aviato","fab fa-aws","fab fa-bandcamp","fab fa-behance","fab fa-behance-square","fab fa-bimobject","fab fa-bitbucket","fab fa-bitcoin","fab fa-bity","fab fa-black-tie","fab fa-blackberry","fab fa-blogger","fab fa-blogger-b","fab fa-bluetooth","fab fa-bluetooth-b","fab fa-btc","fab fa-buromobelexperte","fab fa-buysellads","fab fa-cc-amex","fab fa-cc-apple-pay","fab fa-cc-diners-club","fab fa-cc-discover","fab fa-cc-jcb","fab fa-cc-mastercard","fab fa-cc-paypal","fab fa-cc-stripe","fab fa-cc-visa","fab fa-centercode","fab fa-chrome","fab fa-cloudscale","fab fa-cloudsmith","fab fa-cloudversify","fab fa-codepen","fab fa-codiepie","fab fa-connectdevelop","fab fa-contao","fab fa-cpanel","fab fa-creative-commons","fab fa-css3","fab fa-css3-alt","fab fa-cuttlefish","fab fa-d-and-d","fab fa-dashcube","fab fa-delicious","fab fa-deploydog","fab fa-deskpro","fab fa-deviantart","fab fa-digg","fab fa-digital-ocean","fab fa-discord","fab fa-discourse","fab fa-dochub","fab fa-docker","fab fa-draft2digital","fab fa-dribbble","fab fa-dribbble-square","fab fa-dropbox","fab fa-drupal","fab fa-dyalog","fab fa-earlybirds","fab fa-edge","fab fa-ember","fab fa-empire","fab fa-envira","fab fa-erlang","fab fa-etsy","fab fa-expeditedssl","fab fa-facebook","fab fa-facebook-f","fab fa-facebook-messenger","fab fa-facebook-square","fab fa-firefox","fab fa-first-order","fab fa-firstdraft","fab fa-flickr","fab fa-fly","fab fa-font-awesome","fab fa-font-awesome-alt","fab fa-font-awesome-flag","fab fa-fonticons","fab fa-fonticons-fi","fab fa-fort-awesome","fab fa-fort-awesome-alt","fab fa-forumbee","fab fa-foursquare","fab fa-free-code-camp","fab fa-freebsd","fab fa-get-pocket","fab fa-gg","fab fa-gg-circle","fab fa-git","fab fa-git-square","fab fa-github","fab fa-github-alt","fab fa-github-square","fab fa-gitkraken","fab fa-gitlab","fab fa-gitter","fab fa-glide","fab fa-glide-g","fab fa-gofore","fab fa-goodreads","fab fa-goodreads-g","fab fa-google","fab fa-google-drive","fab fa-google-play","fab fa-google-plus","fab fa-google-plus-g","fab fa-google-plus-square","fab fa-google-wallet","fab fa-gratipay","fab fa-grav","fab fa-gripfire","fab fa-grunt","fab fa-gulp","fab fa-hacker-news","fab fa-hacker-news-square","fab fa-hire-a-helper","fab fa-hooli","fab fa-hotjar","fab fa-houzz","fab fa-html5","fab fa-hubspot","fab fa-imdb","fab fa-instagram","fab fa-internet-explorer","fab fa-ioxhost","fab fa-itunes","fab fa-itunes-note","fab fa-jenkins","fab fa-joget","fab fa-joomla","fab fa-js","fab fa-js-square","fab fa-jsfiddle","fab fa-keycdn","fab fa-kickstarter","fab fa-kickstarter-k","fab fa-laravel","fab fa-lastfm","fab fa-lastfm-square","fab fa-leanpub","fab fa-less","fab fa-line","fab fa-linkedin","fab fa-linkedin-in","fab fa-linode","fab fa-linux","fab fa-lyft","fab fa-magento","fab fa-maxcdn","fab fa-medapps","fab fa-medium","fab fa-medium-m","fab fa-medrt","fab fa-meetup","fab fa-microsoft","fab fa-mix","fab fa-mixcloud","fab fa-mizuni","fab fa-modx","fab fa-monero","fab fa-napster","fab fa-nintendo-switch","fab fa-node","fab fa-node-js","fab fa-npm","fab fa-ns8","fab fa-nutritionix","fab fa-odnoklassniki","fab fa-odnoklassniki-square","fab fa-opencart","fab fa-openid","fab fa-opera","fab fa-optin-monster","fab fa-osi","fab fa-page4","fab fa-pagelines","fab fa-palfed","fab fa-patreon","fab fa-paypal","fab fa-periscope","fab fa-phabricator","fab fa-phoenix-framework","fab fa-pied-piper","fab fa-pied-piper-alt","fab fa-pied-piper-pp","fab fa-pinterest","fab fa-pinterest-p","fab fa-pinterest-square","fab fa-playstation","fab fa-product-hunt","fab fa-pushed","fab fa-python","fab fa-qq","fab fa-quora","fab fa-ravelry","fab fa-react","fab fa-rebel","fab fa-red-river","fab fa-reddit","fab fa-reddit-alien","fab fa-reddit-square","fab fa-rendact","fab fa-renren","fab fa-replyd","fab fa-resolving","fab fa-rocketchat","fab fa-rockrms","fab fa-safari","fab fa-sass","fab fa-schlix","fab fa-scribd","fab fa-searchengin","fab fa-sellcast","fab fa-sellsy","fab fa-servicestack","fab fa-shirtsinbulk","fab fa-simplybuilt","fab fa-sistrix","fab fa-skyatlas","fab fa-skype","fab fa-slack","fab fa-slack-hash","fab fa-slideshare","fab fa-snapchat","fab fa-snapchat-ghost","fab fa-snapchat-square","fab fa-soundcloud","fab fa-speakap","fab fa-spotify","fab fa-stack-exchange","fab fa-stack-overflow","fab fa-staylinked","fab fa-steam","fab fa-steam-square","fab fa-steam-symbol","fab fa-sticker-mule","fab fa-strava","fab fa-stripe","fab fa-stripe-s","fab fa-studiovinari","fab fa-stumbleupon","fab fa-stumbleupon-circle","fab fa-superpowers","fab fa-supple","fab fa-telegram","fab fa-telegram-plane","fab fa-tencent-weibo","fab fa-themeisle","fab fa-trello","fab fa-tripadvisor","fab fa-tumblr","fab fa-tumblr-square","fab fa-twitch","fab fa-twitter","fab fa-twitter-square","fab fa-typo3","fab fa-uber","fab fa-uikit","fab fa-uniregistry","fab fa-untappd","fab fa-usb","fab fa-ussunnah","fab fa-vaadin","fab fa-viacoin","fab fa-viadeo","fab fa-viadeo-square","fab fa-viber","fab fa-vimeo","fab fa-vimeo-square","fab fa-vimeo-v","fab fa-vine","fab fa-vk","fab fa-vnv","fab fa-vuejs","fab fa-weibo","fab fa-weixin","fab fa-whatsapp","fab fa-whatsapp-square","fab fa-whmcs","fab fa-wikipedia-w","fab fa-windows","fab fa-wordpress","fab fa-wordpress-simple","fab fa-wpbeginner","fab fa-wpexplorer","fab fa-wpforms","fab fa-xbox","fab fa-xing","fab fa-xing-square","fab fa-y-combinator","fab fa-yahoo","fab fa-yandex","fab fa-yandex-international","fab fa-yelp","fab fa-yoast","fab fa-youtube","fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-barcode","fas fa-bars","fas fa-bath","fas fa-battery-empty","fas fa-battery-full","fas fa-battery-half","fas fa-battery-quarter","fas fa-battery-three-quarters","fas fa-bed","fas fa-beer","fas fa-bell","fas fa-bell-slash","fas fa-bicycle","fas fa-binoculars","fas fa-birthday-cake","fas fa-blind","fas fa-bold","fas fa-bolt","fas fa-bomb","fas fa-book","fas fa-bookmark","fas fa-braille","fas fa-briefcase","fas fa-bug","fas fa-building","fas fa-bullhorn","fas fa-bullseye","fas fa-bus","fas fa-calculator","fas fa-calendar","fas fa-calendar-alt","fas fa-calendar-check","fas fa-calendar-minus","fas fa-calendar-plus","fas fa-calendar-times","fas fa-camera","fas fa-camera-retro","fas fa-car","fas fa-caret-down","fas fa-caret-left","fas fa-caret-right","fas fa-caret-square-down","fas fa-caret-square-left","fas fa-caret-square-right","fas fa-caret-square-up","fas fa-caret-up","fas fa-cart-arrow-down","fas fa-cart-plus","fas fa-certificate","fas fa-chart-area","fas fa-chart-bar","fas fa-chart-line","fas fa-chart-pie","fas fa-check","fas fa-check-circle","fas fa-check-square","fas fa-chevron-circle-down","fas fa-chevron-circle-left","fas fa-chevron-circle-right","fas fa-chevron-circle-up","fas fa-chevron-down","fas fa-chevron-left","fas fa-chevron-right","fas fa-chevron-up","fas fa-child","fas fa-circle","fas fa-circle-notch","fas fa-clipboard","fas fa-clock","fas fa-clone","fas fa-closed-captioning","fas fa-cloud","fas fa-cloud-download-alt","fas fa-cloud-upload-alt","fas fa-code","fas fa-code-branch","fas fa-coffee","fas fa-cog","fas fa-cogs","fas fa-columns","fas fa-comment","fas fa-comment-alt","fas fa-comments","fas fa-compass","fas fa-compress","fas fa-copy","fas fa-copyright","fas fa-credit-card","fas fa-crop","fas fa-crosshairs","fas fa-cube","fas fa-cubes","fas fa-cut","fas fa-database","fas fa-deaf","fas fa-desktop","fas fa-dollar-sign","fas fa-dot-circle","fas fa-download","fas fa-edit","fas fa-eject","fas fa-ellipsis-h","fas fa-ellipsis-v","fas fa-envelope","fas fa-envelope-open","fas fa-envelope-square","fas fa-eraser","fas fa-euro-sign","fas fa-exchange-alt","fas fa-exclamation","fas fa-exclamation-circle","fas fa-exclamation-triangle","fas fa-expand","fas fa-expand-arrows-alt","fas fa-external-link-alt","fas fa-external-link-square-alt","fas fa-eye","fas fa-eye-dropper","fas fa-eye-slash","fas fa-fast-backward","fas fa-fast-forward","fas fa-fax","fas fa-female","fas fa-fighter-jet","fas fa-file","fas fa-file-alt","fas fa-file-archive","fas fa-file-audio","fas fa-file-code","fas fa-file-excel","fas fa-file-image","fas fa-file-pdf","fas fa-file-powerpoint","fas fa-file-video","fas fa-file-word","fas fa-film","fas fa-filter","fas fa-fire","fas fa-fire-extinguisher","fas fa-flag","fas fa-flag-checkered","fas fa-flask","fas fa-folder","fas fa-folder-open","fas fa-font","fas fa-forward","fas fa-frown","fas fa-futbol","fas fa-gamepad","fas fa-gavel","fas fa-gem","fas fa-genderless","fas fa-gift","fas fa-glass-martini","fas fa-globe","fas fa-graduation-cap","fas fa-h-square","fas fa-hand-lizard","fas fa-hand-paper","fas fa-hand-peace","fas fa-hand-point-down","fas fa-hand-point-left","fas fa-hand-point-right","fas fa-hand-point-up","fas fa-hand-pointer","fas fa-hand-rock","fas fa-hand-scissors","fas fa-hand-spock","fas fa-handshake","fas fa-hashtag","fas fa-hdd","fas fa-heading","fas fa-headphones","fas fa-heart","fas fa-heartbeat","fas fa-history","fas fa-home","fas fa-hospital","fas fa-hourglass","fas fa-hourglass-end","fas fa-hourglass-half","fas fa-hourglass-start","fas fa-i-cursor","fas fa-id-badge","fas fa-id-card","fas fa-image","fas fa-images","fas fa-inbox","fas fa-indent","fas fa-industry","fas fa-info","fas fa-info-circle","fas fa-italic","fas fa-key","fas fa-keyboard","fas fa-language","fas fa-laptop","fas fa-leaf","fas fa-lemon","fas fa-level-down-alt","fas fa-level-up-alt","fas fa-life-ring","fas fa-lightbulb","fas fa-link","fas fa-lira-sign","fas fa-list","fas fa-list-alt","fas fa-list-ol","fas fa-list-ul","fas fa-location-arrow","fas fa-lock","fas fa-lock-open","fas fa-long-arrow-alt-down","fas fa-long-arrow-alt-left","fas fa-long-arrow-alt-right","fas fa-long-arrow-alt-up","fas fa-low-vision","fas fa-magic","fas fa-magnet","fas fa-male","fas fa-map","fas fa-map-marker","fas fa-map-marker-alt","fas fa-map-pin","fas fa-map-signs","fas fa-mars","fas fa-mars-double","fas fa-mars-stroke","fas fa-mars-stroke-h","fas fa-mars-stroke-v","fas fa-medkit","fas fa-meh","fas fa-mercury","fas fa-microchip","fas fa-microphone","fas fa-microphone-slash","fas fa-minus","fas fa-minus-circle","fas fa-minus-square","fas fa-mobile","fas fa-mobile-alt","fas fa-money-bill-alt","fas fa-moon","fas fa-motorcycle","fas fa-mouse-pointer","fas fa-music","fas fa-neuter","fas fa-newspaper","fas fa-object-group","fas fa-object-ungroup","fas fa-outdent","fas fa-paint-brush","fas fa-paper-plane","fas fa-paperclip","fas fa-paragraph","fas fa-paste","fas fa-pause","fas fa-pause-circle","fas fa-paw","fas fa-pen-square","fas fa-pencil-alt","fas fa-percent","fas fa-phone","fas fa-phone-square","fas fa-phone-volume","fas fa-plane","fas fa-play","fas fa-play-circle","fas fa-plug","fas fa-plus","fas fa-plus-circle","fas fa-plus-square","fas fa-podcast","fas fa-pound-sign","fas fa-power-off","fas fa-print","fas fa-puzzle-piece","fas fa-qrcode","fas fa-question","fas fa-question-circle","fas fa-quote-left","fas fa-quote-right","fas fa-random","fas fa-recycle","fas fa-redo","fas fa-redo-alt","fas fa-registered","fas fa-reply","fas fa-reply-all","fas fa-retweet","fas fa-road","fas fa-rocket","fas fa-rss","fas fa-rss-square","fas fa-ruble-sign","fas fa-rupee-sign","fas fa-save","fas fa-search","fas fa-search-minus","fas fa-search-plus","fas fa-server","fas fa-share","fas fa-share-alt","fas fa-share-alt-square","fas fa-share-square","fas fa-shekel-sign","fas fa-shield-alt","fas fa-ship","fas fa-shopping-bag","fas fa-shopping-basket","fas fa-shopping-cart","fas fa-shower","fas fa-sign-in-alt","fas fa-sign-language","fas fa-sign-out-alt","fas fa-signal","fas fa-sitemap","fas fa-sliders-h","fas fa-smile","fas fa-snowflake","fas fa-sort","fas fa-sort-alpha-down","fas fa-sort-alpha-up","fas fa-sort-amount-down","fas fa-sort-amount-up","fas fa-sort-down","fas fa-sort-numeric-down","fas fa-sort-numeric-up","fas fa-sort-up","fas fa-space-shuttle","fas fa-spinner","fas fa-square","fas fa-star","fas fa-star-half","fas fa-step-backward","fas fa-step-forward","fas fa-stethoscope","fas fa-sticky-note","fas fa-stop","fas fa-stop-circle","fas fa-street-view","fas fa-strikethrough","fas fa-subscript","fas fa-subway","fas fa-suitcase","fas fa-sun","fas fa-superscript","fas fa-sync","fas fa-sync-alt","fas fa-table","fas fa-tablet","fas fa-tablet-alt","fas fa-tachometer-alt","fas fa-tag","fas fa-tags","fas fa-tasks","fas fa-taxi","fas fa-terminal","fas fa-text-height","fas fa-text-width","fas fa-th","fas fa-th-large","fas fa-th-list","fas fa-thermometer-empty","fas fa-thermometer-full","fas fa-thermometer-half","fas fa-thermometer-quarter","fas fa-thermometer-three-quarters","fas fa-thumbs-down","fas fa-thumbs-up","fas fa-thumbtack","fas fa-ticket-alt","fas fa-times","fas fa-times-circle","fas fa-tint","fas fa-toggle-off","fas fa-toggle-on","fas fa-trademark","fas fa-train","fas fa-transgender","fas fa-transgender-alt","fas fa-trash","fas fa-trash-alt","fas fa-tree","fas fa-trophy","fas fa-truck","fas fa-tty","fas fa-tv","fas fa-umbrella","fas fa-underline","fas fa-undo","fas fa-undo-alt","fas fa-universal-access","fas fa-university","fas fa-unlink","fas fa-unlock","fas fa-unlock-alt","fas fa-upload","fas fa-user","fas fa-user-circle","fas fa-user-md","fas fa-user-plus","fas fa-user-secret","fas fa-user-times","fas fa-users","fas fa-utensil-spoon","fas fa-utensils","fas fa-venus","fas fa-venus-double","fas fa-venus-mars","fas fa-video","fas fa-volume-down","fas fa-volume-off","fas fa-volume-up","fas fa-wheelchair","fas fa-wifi","fas fa-window-close","fas fa-window-maximize","fas fa-window-minimize","fas fa-window-restore","fas fa-won-sign","fas fa-wrench","fas fa-yen-sign","far fa-address-book","far fa-address-card","far fa-arrow-alt-circle-down","far fa-arrow-alt-circle-left","far fa-arrow-alt-circle-right","far fa-arrow-alt-circle-up","far fa-bell","far fa-bell-slash","far fa-bookmark","far fa-building","far fa-calendar","far fa-calendar-alt","far fa-calendar-check","far fa-calendar-minus","far fa-calendar-plus","far fa-calendar-times","far fa-caret-square-down","far fa-caret-square-left","far fa-caret-square-right","far fa-caret-square-up","far fa-chart-bar","far fa-check-circle","far fa-check-square","far fa-circle","far fa-clipboard","far fa-clock","far fa-clone","far fa-closed-captioning","far fa-comment","far fa-comment-alt","far fa-comments","far fa-compass","far fa-copy","far fa-copyright","far fa-credit-card","far fa-dot-circle","far fa-edit","far fa-envelope","far fa-envelope-open","far fa-eye-slash","far fa-file","far fa-file-alt","far fa-file-archive","far fa-file-audio","far fa-file-code","far fa-file-excel","far fa-file-image","far fa-file-pdf","far fa-file-powerpoint","far fa-file-video","far fa-file-word","far fa-flag","far fa-folder","far fa-folder-open","far fa-frown","far fa-futbol","far fa-gem","far fa-hand-lizard","far fa-hand-paper","far fa-hand-peace","far fa-hand-point-down","far fa-hand-point-left","far fa-hand-point-right","far fa-hand-point-up","far fa-hand-pointer","far fa-hand-rock","far fa-hand-scissors","far fa-hand-spock","far fa-handshake","far fa-hdd","far fa-heart","far fa-hospital","far fa-hourglass","far fa-id-badge","far fa-id-card","far fa-image","far fa-images","far fa-keyboard","far fa-lemon","far fa-life-ring","far fa-lightbulb","far fa-list-alt","far fa-map","far fa-meh","far fa-minus-square","far fa-money-bill-alt","far fa-moon","far fa-newspaper","far fa-object-group","far fa-object-ungroup","far fa-paper-plane","far fa-pause-circle","far fa-play-circle","far fa-plus-square","far fa-question-circle","far fa-registered","far fa-save","far fa-share-square","far fa-smile","far fa-snowflake","far fa-square","far fa-star","far fa-star-half","far fa-sticky-note","far fa-stop-circle","far fa-sun","far fa-thumbs-down","far fa-thumbs-up","far fa-times-circle","far fa-trash-alt","far fa-user","far fa-user-circle","far fa-window-close","far fa-window-maximize","far fa-window-restore"],"E-icons":["eicon-editor-link","eicon-editor-unlink","eicon-editor-external-link","eicon-editor-close","eicon-editor-list-ol","eicon-editor-list-ul","eicon-editor-bold","eicon-editor-italic","eicon-editor-underline","eicon-editor-paragraph","eicon-editor-h1","eicon-editor-h2","eicon-editor-h3","eicon-editor-h4","eicon-editor-h5","eicon-editor-h6","eicon-editor-quote","eicon-editor-code","eicon-elementor","eicon-elementor-square","eicon-pojome","eicon-plus","eicon-menu-bar","eicon-apps","eicon-accordion","eicon-alert","eicon-animation-text","eicon-animation","eicon-banner","eicon-blockquote","eicon-button","eicon-call-to-action","eicon-captcha","eicon-carousel","eicon-checkbox","eicon-columns","eicon-countdown","eicon-counter","eicon-date","eicon-divider-shape","eicon-divider","eicon-download-button","eicon-dual-button","eicon-email-field","eicon-facebook-comments","eicon-facebook-like-box","eicon-form-horizontal","eicon-form-vertical","eicon-gallery-grid","eicon-gallery-group","eicon-gallery-justified","eicon-gallery-masonry","eicon-icon-box","eicon-image-before-after","eicon-image-box","eicon-image-hotspot","eicon-image-rollover","eicon-info-box","eicon-inner-section","eicon-mailchimp","eicon-menu-card","eicon-navigation-horizontal","eicon-nav-menu","eicon-navigation-vertical","eicon-number-field","eicon-parallax","eicon-php7","eicon-post-list","eicon-post-slider","eicon-post","eicon-posts-carousel","eicon-posts-grid","eicon-posts-group","eicon-posts-justified","eicon-posts-masonry","eicon-posts-ticker","eicon-price-list","eicon-price-table","eicon-radio","eicon-rtl","eicon-scroll","eicon-search","eicon-select","eicon-share","eicon-sidebar","eicon-skill-bar","eicon-slider-3d","eicon-slider-album","eicon-slider-device","eicon-slider-full-screen","eicon-slider-push","eicon-slider-vertical","eicon-slider-video","eicon-slides","eicon-social-icons","eicon-spacer","eicon-table","eicon-tabs","eicon-tel-field","eicon-text-area","eicon-text-field","eicon-thumbnails-down","eicon-thumbnails-half","eicon-thumbnails-right","eicon-time-line","eicon-toggle","eicon-url","eicon-t-letter","eicon-wordpress","eicon-text","eicon-anchor","eicon-bullet-list","eicon-code","eicon-favorite","eicon-google-maps","eicon-image","eicon-photo-library","eicon-woocommerce","eicon-youtube","eicon-flip-box","eicon-settings","eicon-headphones","eicon-testimonial","eicon-counter-circle","eicon-person","eicon-chevron-right","eicon-chevron-left","eicon-close","eicon-file-download","eicon-save","eicon-zoom-in","eicon-shortcode","eicon-nerd","eicon-device-desktop","eicon-device-tablet","eicon-device-mobile","eicon-document-file","eicon-folder-o","eicon-hypster","eicon-h-align-left","eicon-h-align-right","eicon-h-align-center","eicon-h-align-stretch","eicon-v-align-top","eicon-v-align-bottom","eicon-v-align-middle","eicon-v-align-stretch","eicon-pro-icon","eicon-mail","eicon-lock-user","eicon-testimonial-carousel","eicon-media-carousel","eicon-section","eicon-column","eicon-edit","eicon-clone","eicon-trash","eicon-play","eicon-angle-right","eicon-angle-left","eicon-animated-headline","eicon-menu-toggle","eicon-fb-embed","eicon-fb-feed","eicon-twitter-embed","eicon-twitter-feed","eicon-sync","eicon-import-export","eicon-check-circle","eicon-library-save","eicon-library-download","eicon-insert","eicon-preview-medium","eicon-sort-down","eicon-sort-up","eicon-heading","eicon-logo","eicon-meta-data","eicon-post-content","eicon-post-excerpt","eicon-post-navigation","eicon-yoast","eicon-nerd-chuckle","eicon-nerd-wink","eicon-comments","eicon-download-circle-o","eicon-library-upload","eicon-save-o","eicon-upload-circle-o","eicon-ellipsis-h","eicon-ellipsis-v","eicon-arrow-left","eicon-arrow-right","eicon-arrow-up","eicon-arrow-down","eicon-play-o","eicon-archive-posts","eicon-archive-title","eicon-featured-image","eicon-post-info","eicon-post-title","eicon-site-logo","eicon-site-search","eicon-site-title","eicon-plus-square","eicon-minus-square","eicon-cloud-check","eicon-drag-n-drop","eicon-welcome","eicon-handle","eicon-cart","eicon-product-add-to-cart","eicon-product-breadcrumbs","eicon-product-categories","eicon-product-description","eicon-product-images","eicon-product-info","eicon-product-meta","eicon-product-pages","eicon-product-price","eicon-product-rating","eicon-product-related","eicon-product-stock","eicon-product-tabs","eicon-product-title","eicon-product-upsell","eicon-products","eicon-bag-light","eicon-bag-medium","eicon-bag-solid","eicon-basket-light","eicon-basket-medium","eicon-basket-solid","eicon-cart-light","eicon-cart-medium","eicon-cart-solid","eicon-exchange","eicon-preview-thin","eicon-device-laptop","eicon-collapse","eicon-expand","eicon-navigator","eicon-plug","eicon-dashboard","eicon-typography","eicon-info-circle-o","eicon-integration","eicon-plus-circle-o","eicon-rating","eicon-review","eicon-tools","eicon-loading","eicon-sitemap","eicon-click","eicon-clock","eicon-library-open","eicon-warning","eicon-flow","eicon-cursor-move","eicon-arrow-circle-left","eicon-flash","eicon-redo","eicon-ban","eicon-barcode","eicon-calendar","eicon-caret-left","eicon-caret-right","eicon-caret-up","eicon-chain-broken","eicon-check-circle-o","eicon-check","eicon-chevron-double-left","eicon-chevron-double-right","eicon-undo","eicon-filter","eicon-circle-o","eicon-circle","eicon-clock-o","eicon-cog","eicon-cogs","eicon-commenting-o","eicon-copy","eicon-database","eicon-dot-circle-o","eicon-envelope","eicon-external-link-square","eicon-eyedropper","eicon-folder","eicon-font","eicon-adjust","eicon-lightbox","eicon-heart-o","eicon-history","eicon-image-bold","eicon-info-circle","eicon-link","eicon-long-arrow-left","eicon-long-arrow-right","eicon-caret-down","eicon-paint-brush","eicon-pencil","eicon-plus-circle","eicon-zoom-in-bold","eicon-sort-amount-desc","eicon-sign-out","eicon-spinner","eicon-square","eicon-star-o","eicon-star","eicon-text-align-justify","eicon-text-align-center","eicon-tags","eicon-text-align-left","eicon-text-align-right","eicon-close-circle","eicon-trash-o","eicon-font-awesome","eicon-user-circle-o","eicon-video-camera","eicon-heart","eicon-wrench","eicon-help","eicon-help-o","eicon-zoom-out-bold","eicon-plus-square-o","eicon-minus-square-o","eicon-minus-circle","eicon-minus-circle-o","eicon-code-bold","eicon-cloud-upload","eicon-search-bold","eicon-map-pin","eicon-meetup","eicon-slideshow","eicon-t-letter-bold","eicon-preferences","eicon-table-of-contents","eicon-tv","eicon-upload","eicon-instagram-comments","eicon-instagram-nested-gallery","eicon-instagram-post","eicon-instagram-video","eicon-instagram-gallery","eicon-instagram-likes","eicon-facebook","eicon-twitter","eicon-pinterest","eicon-frame-expand","eicon-frame-minimize","eicon-archive","eicon-colors-typography","eicon-custom","eicon-footer","eicon-header","eicon-layout-settings","eicon-lightbox-expand","eicon-error-404","eicon-theme-style","eicon-search-results","eicon-single-post","eicon-site-identity","eicon-theme-builder","eicon-download-bold","eicon-share-arrow","eicon-global-settings","eicon-user-preferences","eicon-lock","eicon-eye"],Themify:["ti-arrow-up","ti-arrow-right","ti-arrow-left","ti-arrow-down","ti-arrows-vertical","ti-arrows-horizontal","ti-angle-up","ti-angle-right","ti-angle-left","ti-angle-down","ti-angle-double-up","ti-angle-double-right","ti-angle-double-left","ti-angle-double-down","ti-move","ti-fullscreen","ti-arrow-top-right","ti-arrow-top-left","ti-arrow-circle-up","ti-arrow-circle-right","ti-arrow-circle-left","ti-arrow-circle-down","ti-arrows-corner","ti-split-v","ti-split-v-alt","ti-split-h","ti-hand-point-up","ti-hand-point-right","ti-hand-point-left","ti-hand-point-down","ti-back-right","ti-back-left","ti-exchange-vertical","ti-wand","ti-save","ti-save-alt","ti-direction","ti-direction-alt","ti-user","ti-link","ti-unlink","ti-trash","ti-target","ti-tag","ti-desktop","ti-tablet","ti-mobile","ti-email","ti-star","ti-spray","ti-signal","ti-shopping-cart","ti-shopping-cart-full","ti-settings","ti-search","ti-zoom-in","ti-zoom-out","ti-cut","ti-ruler","ti-ruler-alt-2","ti-ruler-pencil","ti-ruler-alt","ti-bookmark","ti-bookmark-alt","ti-reload","ti-plus","ti-minus","ti-close","ti-pin","ti-pencil","ti-pencil-alt","ti-paint-roller","ti-paint-bucket","ti-na","ti-medall","ti-medall-alt","ti-marker","ti-marker-alt","ti-lock","ti-unlock","ti-location-arrow","ti-layout","ti-layers","ti-layers-alt","ti-key","ti-image","ti-heart","ti-heart-broken","ti-hand-stop","ti-hand-open","ti-hand-drag","ti-flag","ti-flag-alt","ti-flag-alt-2","ti-eye","ti-import","ti-export","ti-cup","ti-crown","ti-comments","ti-comment","ti-comment-alt","ti-thought","ti-clip","ti-check","ti-check-box","ti-camera","ti-announcement","ti-brush","ti-brush-alt","ti-palette","ti-briefcase","ti-bolt","ti-bolt-alt","ti-blackboard","ti-bag","ti-world","ti-wheelchair","ti-car","ti-truck","ti-timer","ti-ticket","ti-thumb-up","ti-thumb-down","ti-stats-up","ti-stats-down","ti-shine","ti-shift-right","ti-shift-left","ti-shift-right-alt","ti-shift-left-alt","ti-shield","ti-notepad","ti-server","ti-pulse","ti-printer","ti-power-off","ti-plug","ti-pie-chart","ti-panel","ti-package","ti-music","ti-music-alt","ti-mouse","ti-mouse-alt","ti-money","ti-microphone","ti-menu","ti-menu-alt","ti-map","ti-map-alt","ti-location-pin","ti-light-bulb","ti-info","ti-infinite","ti-id-badge","ti-hummer","ti-home","ti-help","ti-headphone","ti-harddrives","ti-harddrive","ti-gift","ti-game","ti-filter","ti-files","ti-file","ti-zip","ti-folder","ti-envelope","ti-dashboard","ti-cloud","ti-cloud-up","ti-cloud-down","ti-clipboard","ti-calendar","ti-book","ti-bell","ti-basketball","ti-bar-chart","ti-bar-chart-alt","ti-archive","ti-anchor","ti-alert","ti-alarm-clock","ti-agenda","ti-write","ti-wallet","ti-video-clapper","ti-video-camera","ti-vector","ti-support","ti-stamp","ti-slice","ti-shortcode","ti-receipt","ti-pin2","ti-pin-alt","ti-pencil-alt2","ti-eraser","ti-more","ti-more-alt","ti-microphone-alt","ti-magnet","ti-line-double","ti-line-dotted","ti-line-dashed","ti-ink-pen","ti-info-alt","ti-help-alt","ti-headphone-alt","ti-gallery","ti-face-smile","ti-face-sad","ti-credit-card","ti-comments-smiley","ti-time","ti-share","ti-share-alt","ti-rocket","ti-new-window","ti-rss","ti-rss-alt","ti-control-stop","ti-control-shuffle","ti-control-play","ti-control-pause","ti-control-forward","ti-control-backward","ti-volume","ti-control-skip-forward","ti-control-skip-backward","ti-control-record","ti-control-eject","ti-paragraph","ti-uppercase","ti-underline","ti-text","ti-Italic","ti-smallcap","ti-list","ti-list-ol","ti-align-right","ti-align-left","ti-align-justify","ti-align-center","ti-quote-right","ti-quote-left","ti-layout-width-full","ti-layout-width-default","ti-layout-width-default-alt","ti-layout-tab","ti-layout-tab-window","ti-layout-tab-v","ti-layout-tab-min","ti-layout-slider","ti-layout-slider-alt","ti-layout-sidebar-right","ti-layout-sidebar-none","ti-layout-sidebar-left","ti-layout-placeholder","ti-layout-menu","ti-layout-menu-v","ti-layout-menu-separated","ti-layout-menu-full","ti-layout-media-right","ti-layout-media-right-alt","ti-layout-media-overlay","ti-layout-media-overlay-alt","ti-layout-media-overlay-alt-2","ti-layout-media-left","ti-layout-media-left-alt","ti-layout-media-center","ti-layout-media-center-alt","ti-layout-list-thumb","ti-layout-list-thumb-alt","ti-layout-list-post","ti-layout-list-large-image","ti-layout-line-solid","ti-layout-grid4","ti-layout-grid3","ti-layout-grid2","ti-layout-grid2-thumb","ti-layout-cta-right","ti-layout-cta-left","ti-layout-cta-center","ti-layout-cta-btn-right","ti-layout-cta-btn-left","ti-layout-column4","ti-layout-column3","ti-layout-column2","ti-layout-accordion-separated","ti-layout-accordion-merged","ti-layout-accordion-list","ti-widgetized","ti-widget","ti-widget-alt","ti-view-list","ti-view-list-alt","ti-view-grid","ti-upload","ti-download","ti-loop","ti-layout-sidebar-2","ti-layout-grid4-alt","ti-layout-grid3-alt","ti-layout-grid2-alt","ti-layout-column4-alt","ti-layout-column3-alt","ti-layout-column2-alt","ti-flickr","ti-flickr-alt","ti-instagram","ti-google","ti-github","ti-facebook","ti-dropbox","ti-dropbox-alt","ti-dribbble","ti-apple","ti-android","ti-yahoo","ti-trello","ti-stack-overflow","ti-soundcloud","ti-sharethis","ti-sharethis-alt","ti-reddit","ti-microsoft","ti-microsoft-alt","ti-linux","ti-jsfiddle","ti-joomla","ti-html5","ti-css3","ti-drupal","ti-wordpress","ti-tumblr","ti-tumblr-alt","ti-skype","ti-youtube","ti-vimeo","ti-vimeo-alt","ti-twitter","ti-twitter-alt","ti-linkedin","ti-pinterest","ti-pinterest-alt","ti-themify-logo","ti-themify-favicon","ti-themify-favicon-alt"]},{Fragment:es}=wp.element,ts=e=>({type:"ADD_LAYOUT_ARRAY",data:e}),as=e=>({type:"ADD_WIDGET_ARRAY",data:e}),is=e=>({type:"ADD_EDITOR_ARRAY",data:e}),ss=e=>({type:"Editor_code",data:e}),ns=e=>({type:"ADD_CONTROLLER",data:e}),ls=e=>({type:"ADD_SECTION",data:e}),rs=e=>({type:"ADD_SETTING_ARRAY",data:e}),os=e=>({type:"ADD_LOGIN_ROUTE",data:e}),ds=e=>({type:"UPDATE_WDKIT_META",data:e}),cs=e=>({type:"ADD_SETTING_ARRAY",data:e}),ps=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]:""}}),ws=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,widgetdata:e})),(e=>({addTowidgethandler:t=>e(as(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const i=G(),s=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},n={elementor:{defaultValue:"eicon-code",icons:[{label:(0,a.__)("E-icons","wdesignkit"),value:"E-icons"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},bricks:{defaultValue:"ti-shield",icons:[{label:(0,a.__)("Themify","wdesignkit"),value:"Themify"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},gutenberg:{defaultValue:"fas fa-yin-yang",icons:[{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]}},r={"E-icons":"eicon-code",Themify:"ti-shield","Font-Awesome":"fas fa-yin-yang"};let o={elementor:{array:["gradientcolor","align"],info:{gradientcolor:"color",align:"choose"},selector:{"{{PLUS_WRAP}}":"{{WRAPPER}}"}},gutenberg:{array:["wysiwyg","code","divider","align","preview","taxonomy"],info:{wysiwyg:"textarea",align:"choose",code:"",divider:"",preview:"",taxonomy:""},selector:{"{{WRAPPER}}":"{{PLUS_WRAP}}"}},bricks:{array:["wysiwyg","popover","choose","normalhover","divider","dimension","preview","taxonomy"],info:{wysiwyg:"textarea",choose:"align",popover:"",normalhover:"",divider:"",dimension:"",preview:"",taxonomy:""},selector:{"{{WRAPPER}}":"","{{PLUS_WRAP}}":""}}};const d={"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")},[p,w]=(0,e.useState)(wdkitData.WDKIT_URL),[m,g]=(0,e.useState)(wdkitData.WDKIT_URL),[u,h]=(0,e.useState)(""),[_,C]=(0,e.useState)(""),[k,v]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[f,j]=(0,e.useState)("eicon-code"),[y,$]=(0,e.useState)(""),[N,L]=(0,e.useState)(t?.BuilderArray[0]?t?.BuilderArray[0]:""),[M,H]=(0,e.useState)(!0),[V,D]=(0,e.useState)(""),[S,Z]=(0,e.useState)(""),[R,B]=(0,e.useState)(t?.widgetdata?.WcardData?.widgetdata?.widget_version),[E,O]=(0,e.useState)(t.quickeditName),[A,T]=(0,e.useState)([""]),[P,W]=(0,e.useState)(!1),[F,I]=(0,e.useState)("duplicate"),[q,U]=(0,e.useState)(""),[z,J]=(0,e.useState)(""),[K,Y]=(0,e.useState)(!1),[Q,X]=(0,e.useState)("loading"),[ee,te]=(0,e.useState)(n?.[N]?.icons[0]),[ae,ie]=(0,e.useState)(!1),[se,ne]=(0,e.useState)("");let le=s();const re=(0,e.useRef)(""),oe=t.plugin_detail,de=oe.findIndex((e=>e.label===N)),ce=oe.findIndex((e=>e.label===q));let pe=e=>"gutenberg"===e?"nexter":e;(0,e.useEffect)((()=>{"server"==t.quickediteditMeta?D("plugin_server"):D("plugin")}),[t.quickediteditMeta]);const we=(e,t)=>{"upload"==t?e.target.closest(".wkit-remove-widget-img")||document.querySelector("#wb-addwidget-img").click():"remove"==t&&(e.target.closest(".wb-drop-file").style.backgroundImage="",x(""))},me=(e,i)=>{if(i)if(i?.size&&Number(i?.size)/1e6>1)e.preventDefault(),t.wdkit_set_toast([(0,a.__)("Insert valid Image","wdesignkit"),(0,a.__)("Image size must be less tahn 2 mb.","wdesignkit"),"","danger"]);else{e.preventDefault();let s=e.target.closest(".wb-drop-file"),n=i.type.split("/");n.includes("png")||n.includes("jpg")||n.includes("jpeg")?i&&s&&(s.style.backgroundImage="url("+window.URL.createObjectURL(i)+")",x(i)):t.wdkit_set_toast([(0,a.__)("Insert valid Image","wdesignkit"),(0,a.__)('only ".png", ".jpg", ".jpeg" images are allowed.',"wdesignkit"),"","danger"])}},ge=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),ue=e=>e.charAt(0).toUpperCase()+e.slice(1),he=e=>{let i="",s="",l=Xi[ee?.value]?.filter((e=>""===se.trim()||e.toLocaleLowerCase().includes(se.trim().toLocaleLowerCase())));return"convert"===e?(i="wb-version-label",s=q):"create_widget"===e&&(i="wb-add-widget-headings",s=N),(0,Be.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-name-title wkit-icons-data",children:[(0,Be.jsx)("span",{className:i,children:(0,a.__)("Widget Icon","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-dropdown-data",children:[(0,Be.jsxs)("div",{className:"wkit-icon-dropdown",onClick:e=>{ie(!ae)},children:[(0,Be.jsx)("span",{className:"wkit-selected-icons",children:ee?.label}),n?.[s]?.icons?.length>1&&(0,Be.jsx)("img",{className:"wkit-svg "+(ae?"wkit-rotate-svg":""),src:p+"assets/images/wb-svg/controller-open.svg"})]}),n?.[s]?.icons?.length>1&&(0,Be.jsx)("div",{className:"wkit-value-dropdown "+(ae?"wkit-dp-show":""),children:n?.[s]?.icons?.map(((e,t)=>(0,Be.jsx)("span",{className:"wkit-icon-value",onClick:t=>{te(e),j(r[e.value]),ie(!ae)},children:e.label},t)))})]})]}),(0,Be.jsx)("div",{className:"wkit-show-all-icons",children:"Font-Awesome"===ee?.value||Object.keys(t.plugin_status).length>0&&"active"===t.plugin_status[s]?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-search-select",children:[(0,Be.jsxs)("div",{className:"wkit-icon-search",children:[(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12.2504 12.2523L9.71289 9.71484",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("input",{type:"text",className:"wkit-icons-search-box",value:se,onChange:e=>{ne(e.target.value)},placeholder:(0,a.__)("Search for icons","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-selected-text",children:[(0,Be.jsx)("span",{className:"wkit-selected",children:(0,a.__)("Selected","wdesignkit")}),(0,Be.jsx)("span",{className:`wkit-selected-icon ${f}`})]})]}),(0,Be.jsx)("div",{className:"wkit-all-icon-list wkit-wb-popoupScroll",children:l?.length>0?l?.map(((e,t)=>(0,Be.jsx)("span",{className:`wkit-widget-icon-container ${e} ${e===f?"wkit-screened-icon":""}`,onClick:()=>j(e)},t))):(0,Be.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})})]}):(0,Be.jsx)("h4",{className:"wkit-plugin-not-found",children:(0,a.__)("Relevant Plugin/Theme is not Activated.","wdesignkit")})})]})},_e=e=>{let i=de;return"convert"===e&&(i=ce),oe[i]?.link?(0,Be.jsx)("a",{href:oe[i]?.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to Install ?","wdesignkit")}):"loading"===t.plugin_status[oe[i].name]?(0,Be.jsx)("button",{className:"wkit-install-plugin-btn",children:(0,Be.jsx)("span",{className:"wkit-loader"})}):(0,Be.jsx)("button",{className:"wkit-install-plugin-btn",onClick:()=>{(e=>{let i={...t.plugin_status,[e.name]:"loading"};t.setPlugin_status(i);let s={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type};rt(s).then((s=>{s.data.success?(i={...t.plugin_status,[s.data.slug]:s.data.status},t.setPlugin_status(i),"elementor"==e.name&&(e=>{if(!document.querySelector(`link[href="${e}"]`)){let t=document.createElement("link");t.rel="stylesheet",t.href=e+"?v="+(new Date).getTime(),document.head.appendChild(t)}})(wdkitData.WDKIT_SITE_URL+"/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.css")):t.wdkit_set_toast([(0,a.__)("Installation Failed!","wdesignkit"),(0,a.__)("Plugin is not installed","wdesignkit"),"","danger"])}))})(oe[i])},children:(0,a.__)("Install Now","wdesignkit")})};return(0,Be.jsxs)(Be.Fragment,{children:["remove"==t.popup&&(0,Be.jsx)("div",{className:"wkit-remove-popup",id:"open-popup3",children:(0,Be.jsxs)("div",{className:"wkit-remove-popup-content",children:[(0,Be.jsx)("div",{className:"wkit-delete-popup-close",children:(0,Be.jsx)("div",{className:"wkit-close-btn",onClick:()=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Are you sure you want to delete?","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-member-popup",children:[(0,Be.jsx)("h3",{className:"wkit-heading-delete",children:(0,a.__)("Please select an option from below:","wdesignkit")}),Xe()&&"plugin"!=t.quickediteditMeta&&(0,Be.jsxs)("label",{className:"wkit-custom-radio-wrap",children:[(0,Be.jsxs)("span",{className:"wkit-server-heading",id:"wkit-radio1",children:[(0,Be.jsx)("input",{type:"radio",name:"server-1",id:"wkit-radio1",checked:"plugin_server"==V,onChange:e=>{D("plugin_server")}}),(0,a.__)("Permanently Delete","wdesignkit")," "]}),(0,Be.jsx)("span",{className:"wkit-radio-desc",children:(0,a.__)("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.","wdesignkit")})]}),"server"!=t.quickediteditMeta&&(0,Be.jsxs)("label",{className:"wkit-custom-radio-wrap",children:[(0,Be.jsxs)("span",{className:"wkit-server-heading",id:"wkit-radio2",children:[(0,Be.jsx)("input",{type:"radio",name:"server-1",id:"wkit-radio2",checked:"plugin"==V,onChange:e=>{D("plugin")}}),(0,a.__)("Local Delete","wdesignkit")]}),(0,Be.jsx)("span",{className:"wkit-radio-desc",children:(0,a.__)("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.","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-widget-delete-btn-position",children:[1==P&&(0,Be.jsx)("button",{className:"wkit-template-delete wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}),0==P&&(0,Be.jsx)("button",{className:"wkit-template-delete wkit-btn-class",onClick:e=>{(async()=>{W(!0);let e=t.quickeditName,a=t.widget_id,i=t.widget_server_id,s=e.replaceAll(" ","-")+"_"+a,n=t.quickediteditType,r=Xe(),o={token:r?.token,type:"remove",w_unique:a,id:i,delete_type:V,name:s,builder:n},d=new FormData;d.append("action","get_wdesignkit"),d.append("kit_nonce",wdkitData.kit_nonce),d.append("type","wkit_delete_widget"),d.append("info",JSON.stringify(o)),l().post(ajaxurl,d).then((e=>{1==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"])})).catch((e=>console.log(e))),t.ClosePopup(),t.StartLoading(),t.UpdateData(),W(!1)})()},children:(0,Be.jsx)("span",{children:(0,a.__)("Yes, Delete it!","wdesignkit")})})]})]})]})}),"sync"==t.popup&&(0,Be.jsx)("div",{className:"wkit-version-popup-outside",children:(0,Be.jsxs)("div",{className:"wkit-wb-version-popup",children:[(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-version-detail",children:[(0,Be.jsx)("div",{className:"wkit-add-widget-header-container",children:(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Add Sync Details","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wb-version-body wb-add-widget",children:[(0,Be.jsxs)("div",{className:"wb-version-wrap wb-version-current",children:[(0,Be.jsxs)("div",{className:"wb-version-number",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Current Version","wdesignkit")}),(0,Be.jsx)("input",{className:"wb-version-input",type:"text",defaultValue:t?.w_version?t?.w_version:"1.0.0",disabled:!0,style:{cursor:"not-allowed"}})]}),(0,Be.jsxs)("div",{className:"wb-version-details",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Latest Version","wdesignkit")}),(0,Be.jsx)("input",{className:"wb-version-input",value:t?.w_version?R:"1.0.0",type:"text",onChange:e=>{(e=>{const a=e.target.value;if(""==a)Z("");else if(!/^[0-9.]*$/.test(a))return void Z("You can enter only number here");B(t?.w_version?e.target.value:"1.0.0"),Z(t?.w_version>=a?`Version ${a} is already available`:"")})(e)},disabled:!t?.w_version}),(0,Be.jsx)("div",{className:"wb-error-message",children:S})]})]}),(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Changelog","wdesignkit")}),(0,Be.jsx)("div",{className:"wb-version-changes",children:A.map(((e,t)=>(0,Be.jsxs)("div",{className:"wb-version-wrap",children:[(0,Be.jsx)("textarea",{className:"wb-version-detail-input",value:e,placeholder:(0,a.__)("Please enter description","wdesignkit"),rows:"2",onChange:e=>{((e,t)=>{let a=[...A];a[t]=e.target.value,T(a)})(e,t)}}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",viewBox:"0 0 22 23",onClick:()=>{(e=>{let t=[...A];t.length>1?(t.splice(e,1),T(t)):1==t.length&&(t[e]="",T(t))})(t)},fill:"black",children:(0,Be.jsx)("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,Be.jsxs)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[...A];e.push(""),T(e)})()},children:[(0,Be.jsx)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 0.546875H5.5V6.04688H0V7.04688H5.5V12.5469H6.5V7.04688H12V6.04688H6.5V0.546875Z",fill:"#040483"})}),(0,Be.jsx)("label",{children:(0,a.__)("Add more","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,Be.jsx)("div",{className:"wb-add-widget-cancelBtn",children:(0,Be.jsxs)("button",{onClick:e=>{t.ClosePopup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),1==P&&(0,Be.jsx)("button",{className:"wb-version-popup-btn wb-addss-widget-updateBtn wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}),0==P&&(0,Be.jsx)("button",{className:t?.w_version<R||!t?.w_version?"wb-add-widget-link wkit-btn-class":"wb-addss-widget-updateBtn wkit-btn-class",style:{cursor:t?.w_version<R||!t?.w_version?"":"no-drop"},disabled:!(t?.w_version<R||!t?.w_version),onClick:e=>{(async()=>{W(!0);let e=t.quickeditName+"_"+t.widget_id,i=t.quickediteditType,s=e.replaceAll(" ","-"),n=e.replaceAll(" ","_"),l=R||"1.0.0",r=`${wdkitData.WDKIT_SERVER_PATH}/${i}/${s}/${n}.json`,o=await fetch(r).then((e=>e.json())).then((e=>e));if(l&&o){var d=Object.assign({},o.widget_data.widgetdata,{widget_version:l,version_detail:A});let e=JSON.stringify(o.Editor_data.html),s=JSON.stringify(o.Editor_data.js),n=JSON.stringify(o.Editor_data.css),r={CardItems:{cardData:o.section_data},WcardData:{widgetdata:d},Editor_data:{links:o.Editor_Link.links},Editor_code:{Editor_codes:o.Editor_data}};if("elementor"==i)var c=await Se("sync",r,e,n,s,void 0,"").then((e=>e));else"gutenberg"==i?c=await Ze("sync",r,e,n,s,void 0,"").then((e=>e)):"bricks"==i&&(c=await Re("sync",r,e,n,s,void 0,"").then((e=>e)));1==c?.ajax?.data?.success?(t.wdkit_set_toast([(0,a.__)("Widget Pushed","wdesignkit"),(0,a.__)("Widget Pushed Successfully!","wdesignkit"),"","success"]),t.ClosePopup()):(t.wdkit_set_toast([(0,a.__)("Operation fail","wdesignkit"),(0,a.__)("Something went wrong","wdesignkit"),"","danger"]),Z(c?.ajax?.data?.message))}t.StartLoading(),t.UpdateData(),W(!1)})()},children:(0,Be.jsx)("span",{children:(0,a.__)("Update","wdesignkit")})})]})]})]})]})}),"duplicate-widget"==t.popup&&(0,Be.jsx)("div",{className:"wkit-version-popup-outside",children:(0,Be.jsxs)("div",{className:"wkit-wb-version-popup",children:[(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-version-detail",children:[(0,Be.jsx)("div",{className:"wkit-add-widget-header-container",children:(0,Be.jsx)("div",{className:"wb-version-header",children:(0,Be.jsx)("label",{children:(0,a.__)("Duplicate Widget","wdesignkit")})})}),"duplicate"==F&&(0,Be.jsxs)("div",{className:"wb-version-body",children:[(0,Be.jsx)("div",{className:"wb-version-wrap",children:(0,Be.jsxs)("div",{className:"wb-version-number",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Enter New Widget Name","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:m+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-8px"}}),(0,Be.jsx)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip",children:(0,a.__)("Only numbers and alphabet are allowed for this field,Widget name must be smaller then 25 charaters and first letter can't be digit.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-version-input",type:"text",placeholder:(0,a.__)("Enter Widget Name","wdesignkit"),value:E,onChange:e=>{ge(e)&&O(e.target.value)},onBlur:()=>{O(E.trim())}})]})}),(0,Be.jsxs)("div",{className:"wb-quickedit-footer",children:[1==P&&(0,Be.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}),0==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsx)("div",{className:"wkit-quickedit-note",children:(0,Be.jsxs)("span",{children:[(0,Be.jsx)("b",{children:(0,a.__)("Note :","wdesignkit")})," ",(0,a.__)("This new widget will have unique class, So It will work independently from previous widget.","wdesignkit")]})}),(0,Be.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!E,onClick:()=>{(async()=>{t.StartLoading(!0),W(!0);let e=t.quickeditName,i=t.quickediteditType,n=t.widget_id,l=e.replaceAll(" ","-")+"_"+n,r=e.replaceAll(" ","_")+"_"+n,o=s();J(o);let d=`${wdkitData.WDKIT_SERVER_PATH}/${i}/${l}/${r}.json?v=${c()}`,p=await fetch(d).then((e=>e.json())).then((e=>e));if(p){let e=p?.Editor_data?.html?JSON.stringify(p.Editor_data.html):JSON.stringify(""),i=p?.Editor_data?.js?JSON.stringify(p.Editor_data.js):JSON.stringify(""),s=p?.Editor_data?.css?JSON.stringify(p.Editor_data.css):JSON.stringify(""),n=Object.assign({},p.widget_data.widgetdata,{name:E,r_id:0,widget_id:o,widget_version:"",version_detail:[""],allow_push:!0}),l=Object.assign({},p.widget_data,{widgetdata:n});var w={CardItems:{cardData:p.section_data},WcardData:l,Editor_data:p.Editor_Link,Editor_code:{Editor_codes:[p.Editor_data]}};"elementor"==p.widget_data.widgetdata.type?await Se("import",w,e,s,i,"","",p?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast([(0,a.__)("Widget Duplicated","wdesignkit"),(0,a.__)("Widget Duplicated successfully.","wdesignkit"),"","success"]),await t.UpdateData(),W(!1)):W(!1)})):"gutenberg"==p.widget_data.widgetdata.type?await Ze("import",w,e,s,i,"","",p?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast([(0,a.__)("Widget Duplicated","wdesignkit"),(0,a.__)("Widget Duplicated successfully.","wdesignkit"),"","success"]),await t.UpdateData(),W(!1)):W(!1)})):"bricks"==p.widget_data.widgetdata.type&&await Re("import",w,e,s,i,"","",p?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(t.wdkit_set_toast([(0,a.__)("Widget Duplicated","wdesignkit"),(0,a.__)("Widget Duplicated successfully.","wdesignkit"),"","success"]),await t.UpdateData(),W(!1)):W(!1)}))}})(),I("success_duplicate")},children:(0,Be.jsx)("span",{children:(0,a.__)("Duplicate","wdesignkit")})})]})]})]}),"success_duplicate"==F&&(0,Be.jsx)("div",{className:"wb-version-body",children:(0,Be.jsxs)("div",{className:"wkit-success-duplicate-content",children:[(0,Be.jsx)("div",{className:"wkit-duplicate-widget-image",children:(0,Be.jsx)("img",{src:t.widget_image})}),(0,Be.jsxs)("div",{className:"wkit-duplicate-success-content",children:[1==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsxs)("div",{className:"wkit-duplicate-progress",children:[(0,Be.jsxs)("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",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("In Progress","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-duplicate-widget-name",children:[(0,Be.jsx)("div",{className:"wkit-duplicate-widget-oldName",children:t.quickeditName}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"6",viewBox:"0 0 40 6",fill:"none",children:(0,Be.jsx)("path",{d:"M40 3L35 0.113249V5.88675L40 3ZM0 3.5H35.5V2.5H0V3.5Z",fill:"#040483"})}),(0,Be.jsx)("div",{className:"wkit-duplicate-widget-NewName",children:E})]}),(0,Be.jsx)("div",{className:"wkit-duplicate-widget-details",children:(0,a.__)("Transferring all your HTML,CSS and JS to New one","wdesignkit")})]}),0==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsxs)("span",{className:"wkit-duplicate-congratularions",children:[(0,a.__)("Congratulations!","wdesignkit"),(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("span",{className:"wkit-duplicate-success-msg",children:[(0,a.__)("Congratulations! New Widget","wdesignkit")," ",(0,Be.jsx)("b",{children:E})," ",(0,a.__)("created from Widget","wdesignkit")," ",(0,Be.jsx)("b",{children:t.quickeditName})," ",(0,a.__)("Successfully!","wdesignkit")]}),(0,Be.jsx)(xe,{to:"/widget-listing/builder/"+E+"_"+z,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{className:"wb-convert-popup-btn wkit-btn-class",children:(0,Be.jsxs)("span",{children:[(0,a.__)("Edit","wdesignkit")," ",E]})})})]})]})]})})]})]})}),"convert-widget"==t.popup&&(0,Be.jsx)("div",{className:"wkit-version-popup-outside",children:(0,Be.jsxs)("div",{className:"wkit-wb-version-popup",children:[(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-version-detail",children:[(0,Be.jsx)("div",{className:"wkit-add-widget-header-container",children:(0,Be.jsx)("div",{className:"wb-version-header",children:(0,Be.jsx)("label",{children:(0,a.__)("Convert Widget","wdesignkit")})})}),"duplicate"==F&&(0,Be.jsxs)("div",{className:"wb-version-body",children:[(0,Be.jsx)("span",{className:"wb-convert-title",children:E}),(0,Be.jsx)("div",{className:"wb-version-wrap",children:(0,Be.jsxs)("div",{className:"wb-convert-main",children:[(0,Be.jsxs)("div",{className:"wb-convert-widget-group",children:[(0,Be.jsx)("span",{className:"wb-convert-label",children:(0,a.__)("Current Widget","wdesignkit")}),(0,Be.jsxs)("span",{className:"wkit-select-builder-wrap",children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,Be.jsx)("label",{children:ue(pe(t?.quickediteditType))})]})]}),(0,Be.jsx)("div",{className:"wb-convert-icon",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-convert-widget-group",children:[(0,Be.jsx)("span",{className:"wb-convert-label",children:(0,a.__)("Convert to","wdesignkit")}),(0,Be.jsxs)("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)},children:[(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-header",children:[(0,Be.jsxs)("div",{className:"wkit-selected-builder",children:[q&&(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${q}.svg`}),(0,Be.jsx)("span",{children:q&&pe(q)||(0,a.__)("Select Builder","wdesignkit")})]}),(0,Be.jsx)("img",{src:p+"assets/images/wb-svg/controller-open.svg",alt:"Controller Open"})]}),(0,Be.jsx)("div",{className:"wkit-custom-dropDown-content",children:t.BuilderArray.map(((e,a)=>(0,Be.jsx)(es,{children:e!=t?.quickediteditType&&e!=q&&(0,Be.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{U(e),j(n[e].defaultValue)},children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${e}.svg`}),(0,Be.jsx)("span",{children:ue(pe(e))})]},e)},a)))})]})]})]})}),(0,Be.jsxs)("div",{className:"wb-quickedit-footer",children:[1==P&&(0,Be.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}),0==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsx)("div",{className:"wkit-quickedit-note",children:(0,Be.jsxs)("span",{children:[(0,Be.jsx)("b",{children:(0,a.__)("Note :","wdesignkit")})," ",(0,a.__)("This new widget will have have unique class, So It will work independently from previous widget.","wdesignkit")]})}),(0,Be.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:""==q,onClick:()=>{I("widget_infomation"),te(n[q].icons[0])},children:(0,Be.jsx)("span",{children:(0,a.__)("Next","wdesignkit")})})]})]})]}),"widget_infomation"==F&&(0,Be.jsxs)("div",{className:"wb-version-body",onClick:e=>{ae&&ie(!1)},children:[(0,Be.jsxs)("div",{className:"wkit-success-duplicate-content",children:[(0,Be.jsxs)("div",{className:"wb-convert-widget-group",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Widget Name","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:m+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-9px"}}),(0,Be.jsx)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip",children:(0,a.__)("Only numbers and alphabet are allowed for this field,Widget name must be smaller then 25 charaters and first letter can't be digit.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-convert-input-text",type:"text",placeholder:`${t.quickeditName} - Copy`,value:E,onBlur:()=>{O(E.trim())},onChange:e=>{ge(e)&&O(e.target.value)}})]}),(0,Be.jsxs)("div",{className:"wb-convert-widget-main",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,Be.jsx)("label",{className:"wb-version-label",children:(0,a.__)("Featured Image","wdesignkit")}),(0,Be.jsx)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{me(e,e.dataTransfer.files[0])},onClick:()=>{document.querySelector("#wb-addwidget-img").click()},style:{backgroundImage:`url('${t.widget_image}')`},children:(0,Be.jsx)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{me(e,e.target.files[0])},accept:"image/*"})})]}),he("convert")]})]}),"elementor"!==q&&(0,Be.jsxs)("div",{className:"wkit-switch-convert-wrap",children:[(0,Be.jsx)("input",{id:"wkit-convert-load-jquery",type:"checkbox",className:"wkit-convert-input",checked:K,onChange:e=>{Y(e.target.checked)}}),(0,Be.jsx)("label",{htmlFor:"wkit-convert-load-jquery",children:(0,a.__)("Do you want to load jQuery ?","wdesignkit")})]}),Object.keys(t.plugin_status).length>0&&"active"!==t.plugin_status[oe[ce].name]&&(0,Be.jsxs)("div",{className:`wkit-install-dependency ${oe[ce]?.class}`,children:[(0,Be.jsx)("span",{className:"wkit-install-plugin-text",children:oe[ce]?.text}),_e("convert")]}),(0,Be.jsx)("div",{className:"wb-quickedit-footer",children:0==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsx)("div",{className:"wkit-quickedit-note",children:(0,Be.jsxs)("span",{children:[(0,Be.jsx)("b",{children:(0,a.__)("Note :","wdesignkit")})," ",(0,a.__)("This new widget will have have unique class, So It will work independently from previous widget.","wdesignkit")]})}),(0,Be.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!E,onClick:()=>{I("widget_scanner"),(async()=>{let e=t.quickeditName,a=t.quickediteditType,i=t.widget_id,s=e.replaceAll(" ","-")+"_"+i,n=e.replaceAll(" ","_")+"_"+i,r=[],d=new FormData;d.append("action","get_wdesignkit"),d.append("kit_nonce",wdkitData.kit_nonce),d.append("type","wkit_widget_json"),d.append("folder_name",s),d.append("file_name",n),d.append("widget_type",a);var c=await l().post(ajaxurl,d).then((e=>e?.data?.success?e.data.data:[]));["layout","style"].map((e=>{c?.section_data[0]?.[e]?.map((e=>{e.inner_sec?.map((e=>{o?.[q]?.array.includes(e.type)&&!r.includes(e.type)&&r.push(e.type),e?.fields&&e?.fields?.length>0&&e?.fields?.map((e=>{o?.[q]?.array.includes(e.type)&&!r.includes(e.type)&&r.push(e.type)}))}))}))})),X(r)})()},children:(0,Be.jsx)("span",{children:(0,a.__)("Next","wdesignkit")})})]})})]}),"widget_scanner"==F&&(0,Be.jsxs)("div",{className:"wkit-scan-widget",children:[(0,Be.jsx)("div",{className:"wkit-scanner",children:(0,Be.jsx)("span",{className:"wb-scanner-title",children:E})}),(0,Be.jsxs)("div",{className:"wkit-converter-scan",children:[(0,Be.jsxs)("div",{className:"wkit-builder-convert",children:[(0,Be.jsx)("span",{children:(0,a.__)("Current Widget","wdesignkit")}),(0,Be.jsxs)("span",{className:"wkit-builder-identity",children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,Be.jsx)("span",{className:"wkit-scan-label",children:ue(pe(t?.quickediteditType))})]})]}),(0,Be.jsx)("div",{className:"wkit-converter-svg",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-builder-convert",children:[(0,Be.jsx)("span",{children:(0,a.__)("Convert to","wdesignkit")}),(0,Be.jsxs)("span",{className:"wkit-builder-identity",children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${q}.svg`}),(0,Be.jsx)("span",{className:"wkit-scan-label",children:ue(pe(q))})]})]})]}),"loading"!==Q&&Q?.length>0&&(0,Be.jsx)("div",{className:"wkit-scan-ct",children:Q.map(((e,t)=>{var i=(0,a.__)(`${e} controller will be removed since ${q} widget builder doesn't support it.`,"wdesignkit");return o?.[q]?.info?.[e]&&(i=(0,a.__)(`${e} controller will convert to ${o?.[q]?.info?.[e]} controller`,"wdesignkit")),(0,Be.jsxs)("div",{className:"wkit-scan-ct-warning",children:[(0,Be.jsx)("svg",{className:"wkit-scan-warn-svg",width:"20",height:"20",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.96322 1.14568L1.14104 11.2293C1.03587 11.4114 0.980488 11.6179 0.980469 11.8282C0.980449 12.0385 1.03579 12.2451 1.14092 12.4272C1.24606 12.6093 1.39729 12.7605 1.5794 12.8657C1.76151 12.9708 1.9681 13.0262 2.17838 13.0261H13.8218C14.0321 13.0262 14.2387 12.9708 14.4208 12.8657C14.6029 12.7605 14.7541 12.6093 14.8593 12.4272C14.9644 12.2451 15.0197 12.0385 15.0197 11.8282C15.0197 11.6179 14.9643 11.4114 14.8592 11.2293L9.0376 1.14568C8.93248 0.96362 8.78129 0.812436 8.59923 0.707324C8.41716 0.602212 8.21064 0.546875 8.00041 0.546875C7.79018 0.546875 7.58366 0.602212 7.40159 0.707324C7.21953 0.812436 7.06834 0.96362 6.96322 1.14568ZM8.075 4.25391H7.92313C7.54921 4.25391 7.24609 4.55702 7.24609 4.93094V8.16703C7.24609 8.54095 7.54921 8.84406 7.92313 8.84406H8.075C8.44891 8.84406 8.75203 8.54095 8.75203 8.16703V4.93094C8.75203 4.55702 8.44891 4.25391 8.075 4.25391ZM8.75203 10.6592C8.75203 11.0751 8.41492 11.4122 7.99906 11.4122C7.58321 11.4122 7.24609 11.0751 7.24609 10.6592C7.24609 10.2434 7.58321 9.90625 7.99906 9.90625C8.41492 9.90625 8.75203 10.2434 8.75203 10.6592Z",fill:"#EE404C"})}),(0,Be.jsx)("span",{className:"wkit-ct-scan-text",children:i})]},t)}))}),"loading"==Q&&(0,Be.jsxs)("div",{className:"wkit-loader-dots-container",children:[(0,Be.jsx)("span",{className:"wkit-loader-dot"}),(0,Be.jsx)("span",{className:"wkit-loader-dot"}),(0,Be.jsx)("span",{className:"wkit-loader-dot"}),(0,Be.jsx)("span",{className:"wkit-loader-dot"}),(0,Be.jsx)("span",{className:"wkit-loader-dot"})]}),(0,Be.jsxs)("div",{className:"wkit-convert-btn",children:[0==Q?.length&&(0,Be.jsxs)("span",{className:"wkit-scan-widget-success",children:[(0,Be.jsxs)("svg",{className:"wkit-scan-success-svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M9.24735 0.0195866C7.79655 0.156374 6.69379 0.465122 5.48936 1.07089C3.9017 1.86425 2.43135 3.21257 1.46546 4.76021C0.76548 5.87796 0.257115 7.32008 0.0498588 8.7661C-0.0166196 9.22727 -0.0166196 10.7671 0.0498588 11.2283C0.2141 12.3812 0.519118 13.3895 0.996199 14.3548C1.53194 15.4491 2.05985 16.1838 2.92798 17.0554C3.7922 17.9152 4.53911 18.4506 5.59103 18.9665C6.3262 19.326 6.79938 19.5019 7.54628 19.6895C9.50153 20.1819 11.4646 20.0881 13.3729 19.412C13.9595 19.2049 14.9684 18.6968 15.4846 18.3529C16.6656 17.5634 17.7253 16.477 18.4918 15.2732C18.7733 14.8316 19.2269 13.8936 19.4107 13.3739C20.3297 10.7866 20.1694 8.01182 18.961 5.58484C18.4761 4.60779 17.9326 3.83788 17.17 3.05234C16.3332 2.18472 15.4885 1.57114 14.3896 1.0279C13.2321 0.457304 12.1528 0.148558 10.8702 0.031311C10.4713 -0.00386238 9.56801 -0.0116787 9.24735 0.0195866Z",fill:"#14C38E"}),(0,Be.jsx)("path",{d:"M13.8261 6.73158C13.7733 6.75427 12.4461 8.05869 10.8776 9.63534L8.01967 12.4975L6.95643 11.4313C5.80646 10.2819 5.79892 10.2781 5.46712 10.3424C5.28238 10.3764 5.05615 10.6033 5.02222 10.7885C4.95812 11.1288 4.9355 11.1023 6.39087 12.5618C7.84624 14.0212 7.81607 13.9985 8.15918 13.9343C8.28737 13.9116 8.65687 13.5562 11.4432 10.7658C13.7243 8.47837 14.5914 7.58607 14.6216 7.49155C14.7046 7.23822 14.6141 6.966 14.3841 6.79586C14.2672 6.70889 13.9656 6.67487 13.8261 6.73158Z",fill:"white"})]}),(0,a.__)("Widget controllers remain unchanged after scanning","wdesignkit")]}),(0,Be.jsx)("button",{className:"wkit-wb-convert-btn wkit-btn-class",disabled:"loading"==Q,onClick:()=>{(async e=>{t.StartLoading(!0),W(!0);let i=t.quickeditName,n=t.quickediteditType,l=t.widget_id,r=i.replaceAll(" ","-")+"_"+l,p=i.replaceAll(" ","_")+"_"+l,w=`${wdkitData.WDKIT_SERVER_PATH}/${n}/${r}/${p}.json?v=${c()}`,m=t?.quickediteditType,g=await fetch(w).then((e=>e.json())).then((e=>e));const u=(t,a)=>{let i=[];return t?.length>0&&t.map(((t,n)=>{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){i.push(h());let e=Gi?.heading?Gi.heading:"";e=Object.assign({},e,{lable:t.lable,name:e.name+s()}),i.push(e),t?.fields?.length>0&&t?.fields.map((e=>{e?.selectors&&e?.selectors.includes("{{WRAPPER}}")&&(e.selectors=e.selectors.replaceAll("{{WRAPPER}}","").trim()),e?.selectors&&e?.selectors.includes("{{WRAPPER}}")&&(e.selectors=e.selectors.replaceAll("{{WRAPPER}}","").trim()),i.push(e)})),i.push(h())}else if("bricks"==e&&"normalhover"==t.type){var l={};t?.nha_array?.length>0&&t?.nha_array.map((e=>{l=Object.assign({},l,{[e]:[]})})),t?.fields?.length>0&&t?.fields.map((e=>{e?.selectors&&e?.selectors.includes("{{WRAPPER}}")&&(e.selectors=e.selectors.replaceAll("{{WRAPPER}}","").trim()),e?.selectors&&e?.selectors.includes("{{WRAPPER}}")&&(e.selectors=e.selectors.replaceAll("{{WRAPPER}}","").trim()),l?.[e.key]&&l[e.key].push(e)})),i.push(h()),Object.values(l).map(((e,a)=>{let n=Gi?.heading?Gi.heading:"";if(t?.nha_array_lable?.[a])var l=t.nha_array_lable[a];else{let e=t.nha_array[a];l=e?.charAt(0).toUpperCase()+e?.slice(1)}n=Object.assign({},n,{lable:l,name:n.name+s()}),i.push(n),e?.length>0&&e.map((e=>{i.push(e)})),i.push(h())}))}else if("bricks"==e&&"choose"==t.type){let a=o?.[e]?.info?.[t.type]?o[e].info[t.type]:"";if(r=Gi?.[a]?Gi[a]:""){let e=Object.keys(r);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e&&"alignType"!==e?r=Object.assign({},r,{[e]:t[e]}):"alignType"==e&&(r=""==t.selector_value?Object.assign({},r,{alignType:"text-align"}):Object.assign({},r,{alignType:t.selector_value.toLowerCase()}))})),i.push(r)}}else if("bricks"==e&&"dimension"==t.type)if("border-radius"===t.selector_value){let e="heading";(r=Gi?.[e]?Gi[e]:"")&&(r=Object.assign({},r,{lable:"Border-radius is now available in the border controller, so we removed it from the dimension controller."})),i.push(r)}else i.push(t);else if("elementor"!==e&&"gutenberg"!==e||"border"!==t.type||"bricks"!==m)if("elementor"!==e&&"gutenberg"!==e||"align"!==t.type)if(o?.[e]?.array?.length>0&&o?.[e]?.array.includes(t.type)){let a=o?.[e]?.info?.[t.type]?o[e].info[t.type]:"";if(r=Gi?.[a]?Gi[a]:""){let e=Object.keys(r);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e&&(r=Object.assign({},r,{[e]:t[e]}))})),i.push(r)}}else if("bricks"==e&&"repeater"==t.type){r=Object.assign({},t);let e=[];r?.fields?.length>0&&r?.fields.map((t=>{t?.selectors&&t?.selectors.includes("{{WRAPPER}}")&&(t.selectors=t.selectors.replaceAll("{{WRAPPER}}","").trim()),t?.selectors&&t?.selectors.includes("{{WRAPPER}}")&&(t.selectors=t.selectors.replaceAll("{{WRAPPER}}","").trim()),t?.selector&&t?.selector.includes("{{CURRENT_ITEM}}")&&(t.selector=t.selector.replaceAll("{{CURRENT_ITEM}}","").trim()),t?.selectors&&t?.selectors.includes("{{CURRENT_ITEM}}")&&(t.selectors=t.selectors.replaceAll("{{CURRENT_ITEM}}","").trim()),t?.selector&&t?.selector.includes("{{TP_REPEAT_ID}}")&&(t.selector=t.selector.replaceAll("{{TP_REPEAT_ID}}","").trim()),t?.selectors&&t?.selectors.includes("{{TP_REPEAT_ID}}")&&(t.selectors=t.selectors.replaceAll("{{TP_REPEAT_ID}}","").trim()),e.push(t)})),r=Object.assign({},r,{fields:e}),i.push(r)}else i.push(t);else{let a=o?.[e]?.info?.[t.type]?o[e].info[t.type]:"";if(r=Gi?.[a]?Gi[a]:""){let e=Object.keys(r);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e?r=Object.assign({},r,{[e]:t[e]}):("selector_value"===e&&(r=Object.assign({},r,{selector_value:t.alignType.toLowerCase()})),"align_option"===e&&(r=Object.assign({},r,{align_option:d[t.alignType]})))})),i.push(r)}}else(r=Gi?.dimension?Gi.dimension:"")&&(i.push(t),r=Object.assign({},r,{lable:t.lable+" (Radius)",selector_value:"border-radius",selectors:t.selector,name:r.name+"_"+s()}),i.push(r));else if(t.fields.length>0){let e=u(t.fields,a),s=Object.assign({},t,{fields:e});i.push(s)}if("bricks"==e){var r=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)}))}))}})),i},h=()=>{let e=Gi?.divider?Gi.divider:"";return e=Object.assign({},e,{lable:"",name:e.name+s()}),e};if(g){let i=(e=>{var t=e?.section_data[0].layout;let a=e?.section_data[0].style,i=[],s=[],n=[];return t.length>0&&t.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&n.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&n.push(e.name)}))}))})),a.length>0&&a.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&n.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&n.push(e.name)}))}))})),t?.length>0&&t.map(((e,t)=>{var a=e;let s=u(e.inner_sec,n)?u(e.inner_sec,n):[];a=Object.assign({},a,{inner_sec:s}),i.push(a)})),a?.length>0&&a.map(((e,t)=>{var a=e;let i=u(e.inner_sec,n)?u(e.inner_sec,n):[];a=Object.assign({},a,{inner_sec:i}),s.push(a)})),[{layout:i,style:s}]})(g),n=g?.Editor_data?.html?JSON.stringify(g.Editor_data.html):JSON.stringify(""),l=g?.Editor_data?.js?JSON.stringify(g.Editor_data.js):JSON.stringify(""),r=g?.Editor_data?.css?JSON.stringify(g.Editor_data.css):JSON.stringify(""),o=s();J(o);let d=Object.assign({},g.widget_data.widgetdata,{name:E,r_id:0,widget_id:o,w_icon:f,type:e,widget_version:"",version_detail:[""],allow_push:!0}),c=Object.assign({},g.widget_data,{widgetdata:d});var _=g.Editor_Link?.links?.[0]?.external_cdn?[...g.Editor_Link.links[0].external_cdn]:[];K&&(_.includes("jQuery")||_.push("jQuery"));let p=Object.assign({},g.Editor_Link.links[0],{external_cdn:_});var C={CardItems:{cardData:i},WcardData:c,Editor_data:Object.assign({},g.Editor_data,{links:[p]}),Editor_code:{Editor_codes:[g.Editor_data]}};if("elementor"==e)if(b)var k=await Se("import",C,n,r,l,"","",b).then((async e=>e));else k=await Se("import",C,n,r,l,"","",g?.widget_data?.widgetdata?.w_image).then((async e=>e));else"gutenberg"==e?k=b?await Ze("import",C,n,r,l,"",b,"",K).then((async e=>e)):await Ze("import",C,n,r,l,"","",g?.widget_data?.widgetdata?.w_image,K).then((async e=>e)):"bricks"==e&&(k=b?await Re("import",C,n,r,l,"",b,"").then((async e=>e)):await Re("import",C,n,r,l,"","",g?.widget_data?.widgetdata?.w_image).then((async e=>e)));k?.api?.success?(W(!1),t.wdkit_set_toast([(0,a.__)("Widget Converted","wdesignkit"),(0,a.__)("Widget Converted successfully.","wdesignkit"),"","success"]),await t.UpdateData()):(W(!1),t.wdkit_set_toast([(0,a.__)("Widget Conversion Fail!","wdesignkit"),(0,a.__)("Widget not Converted successfully.","wdesignkit"),"","danger"]))}})(q),I("success_duplicate")},children:(0,Be.jsx)("span",{children:(0,a.__)("Convert","wdesignkit")})})]})]}),"success_duplicate"==F&&(0,Be.jsx)("div",{className:"wb-version-body",children:(0,Be.jsxs)("div",{className:"wkit-success-duplicate-content",children:[(0,Be.jsx)("span",{className:"wb-convert-title",children:E}),(0,Be.jsxs)("div",{className:"wkit-duplicate-success-content",children:[1==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsx)("div",{className:"wkit-duplicate-widget-image",children:(0,Be.jsx)("img",{src:b?window.URL.createObjectURL(b):t.widget_image})}),(0,Be.jsxs)("div",{className:"wkit-duplicate-progress",children:[(0,Be.jsxs)("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",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("span",{children:[" ",(0,a.__)("Converting","wdesignkit")," "]})]}),(0,Be.jsxs)("div",{className:"wb-convert-main",children:[(0,Be.jsx)("div",{className:"wb-convert-widget-group",children:(0,Be.jsxs)("span",{className:"wkit-select-builder-wrap",children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,Be.jsx)("span",{className:"wkit-convert-from-label",children:ue(pe(t?.quickediteditType))})]})}),(0,Be.jsx)("div",{className:"wb-convert-icon",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wb-convert-widget-group",children:(0,Be.jsxs)("div",{className:"wkit-select-builder-wrap",children:[(0,Be.jsx)("img",{style:{width:"24px"},src:p+`/assets/images/wb-svg/${q}.svg`}),(0,Be.jsx)("span",{className:"wkit-convert-to-label",children:ue(pe(q))})]})})]}),(0,Be.jsxs)("div",{className:"wkit-duplicate-widget-details",children:[(0,a.__)("Converting your widget","wdesignkit")," ",ue(pe(t?.quickediteditType))," ",(0,a.__)("to","wdesignkit")," ",ue(pe(q))," "]})]}),0==P&&(0,Be.jsxs)(es,{children:[(0,Be.jsx)("div",{className:"wb-convert-widget-img-border",children:(0,Be.jsx)("img",{src:b?window.URL.createObjectURL(b):t.widget_image})}),(0,Be.jsxs)("span",{className:"wkit-duplicate-congratularions",children:[(0,a.__)("Successfully  converted","wdesignkit"),(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[(0,Be.jsx)("rect",{y:"0.640625",width:"24",height:"24",rx:"12",fill:"#00A31B"}),(0,Be.jsx)("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,Be.jsxs)("span",{className:"wkit-duplicate-success-msg",children:[(0,a.__)("Your","wdesignkit")," ",E," ",(0,a.__)("widget has been successfully converted to","wdesignkit")," ",ue(pe(q))," ",(0,a.__)("Builder","wdesignkit")]}),(0,Be.jsx)(xe,{to:"/widget-listing/builder/"+E+"_"+z,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{className:"wb-convert-popup-btn wkit-btn-class",children:(0,Be.jsxs)("span",{children:[(0,a.__)("Edit","wdesignkit")," ",E]})})})]})]})]})})]})]})}),"add-widget"==t.popup&&(0,Be.jsxs)("div",{id:"popup",className:"wb-add-widget addWidget",children:[(0,Be.jsxs)("div",{className:"wkit-add-widget-header-container",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Create Widget","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-popup-content wkit-wb-popoupScroll",onClick:e=>{ae&&ie(!1)},children:[(0,Be.jsxs)("div",{className:"wb-add-widget-body",children:[(0,Be.jsx)("div",{className:"wb-add-widget-name-warpper",children:(0,Be.jsxs)("div",{className:"wb-add-widget-name",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,Be.jsx)("span",{className:"wb-add-widget-headings",children:(0,a.__)("Widget Name","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:m+"assets/images/wb-svg/info.svg",width:"13",style:{marginBottom:"-5px"}}),(0,Be.jsx)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip",children:(0,a.__)("Only numbers and alphabet are allowed for this field, Widget name must be smaller than 25 characters and first letter can't be digit.","wdesignkit")})]})]}),(0,Be.jsx)("input",{type:"text",className:"wb-add-widget-nameinput",name:"wbaddwidgetname",id:"wb-add-widget-name",ref:re,value:u,placeholder:"Enter Widget Name",onChange:e=>{ge(e)&&h(e.target.value)}}),(0,Be.jsx)("div",{className:"wkit-name-Validation",style:{display:0==M?"flex":"none",color:"red"},children:"First character of name must be an alphabet"})]})}),(0,Be.jsxs)("div",{className:"wb-add-widget-image",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,Be.jsx)("span",{className:"wb-add-widget-imageinput wb-add-widget-headings",children:(0,a.__)("Featured Image","wdesignkit")}),(0,Be.jsxs)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{me(e,e.dataTransfer.files[0])},onClick:e=>{we(e,"upload")},children:[(0,Be.jsx)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{me(e,e.target.files[0])},accept:"image/*"}),b?(0,Be.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{we(e,"remove")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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:"white"})})}):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("img",{src:m+"/assets/images/wb-svg/file-upload.svg"}),(0,Be.jsxs)("span",{children:[" ",(0,a.__)("Drag & Drop or Upload Image File Here","wdesignkit")," ",(0,Be.jsx)("br",{}),(0,a.__)("(Only .JPG and .PNG Allowed)","wdesignkit")]})]})]})]}),he("create_widget")]}),t.BuilderArray.length>0&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-select-radio-label",children:(0,Be.jsx)("span",{className:"wb-add-widget-headings",children:(0,a.__)("Choose Page Builder","wdesignkit")})}),(0,Be.jsx)("div",{className:"wb-add-widget-radio-main",children:t.BuilderArray.map(((e,a)=>(0,Be.jsxs)("label",{htmlFor:`wb-add-${e}-radio`,className:`wb-add-widget-radio ${1===t.BuilderArray.length?"wkit-wb-create-widget-radio":""}  ${N==e?"radio-border":""}`,children:[(0,Be.jsx)("input",{type:"radio",name:"wbaddradio",id:`wb-add-${e}-radio`,className:"wb-add-widget-radioinput",value:e,onChange:e=>{L(e.target.value),j(n[e.target.value].defaultValue),te(n?.[e.target.value]?.icons[0])},checked:N==e}),(0,Be.jsx)("img",{src:m+`/assets/images/wb-svg/${e}.svg`}),(0,Be.jsx)("span",{className:N==e?"radio-color":"",children:pe(e)})]},a)))})]}),Object.keys(t.plugin_status).length>0&&"active"!==t.plugin_status[oe[de].name]&&(0,Be.jsxs)("div",{className:`wkit-install-dependency ${oe[de]?.class}`,children:[(0,Be.jsx)("span",{className:"wkit-install-plugin-text",children:oe[de]?.text}),_e("create_widget")]})]}),(0,Be.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,Be.jsx)("div",{className:"wb-add-widget-cancelBtn",children:(0,Be.jsxs)("button",{onClick:e=>{t.ClosePopup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),u&&u.trim()?(0,Be.jsx)(Be.Fragment,{children:1==P?(0,Be.jsx)("div",{className:"wb-add-widget-link wkit-btn-class",children:(0,Be.jsx)("button",{className:"wb-add-widget-updateBtn",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})})}):(0,Be.jsx)("div",{className:"wb-add-widget-link wkit-btn-class",onClick:e=>{(async()=>{if(W(!0),u){let s=JSON.stringify(""),n=JSON.stringify(""),l=JSON.stringify("");JSON.stringify("");var e={CardItems:{cardData:[{layout:[],style:[]}]},WcardData:{widgetdata:{name:u.trim(),description:_,category:"WDesignKit",helper_link:"",type:N,w_icon:f,w_image:"",publish_type:"Publish",key_words:"",css_parent_node:!0,widget_id:le,widget_version:"",version_detail:[]}},Editor_data:{links:[{js:[""],css:[""]}]},Editor_code:{Editor_codes:[{html:"",css:"",js:"",php:""}]}};"elementor"==N?await Se("add",e,s,l,n,"",b).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast([(0,a.__)("Widget Added Successfully","wdesignkit"),(0,a.__)("Widget Added Successfully","wdesignkit"),"","success"]),i(`/widget-listing/builder/${u.trim()}_${le}`)):t.wdkit_set_toast([(0,a.__)("Widget Creation Fail !","wdesignkit"),(0,a.__)("Widget is not created.","wdesignkit"),"","danger"])})):"gutenberg"==N?await Ze("add",e,s,l,n,"",b).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast([(0,a.__)("Widget Added Successfully","wdesignkit"),(0,a.__)("Widget Added Successfully","wdesignkit"),"","success"]),i(`/widget-listing/builder/${u.trim()}_${le}`)):t.wdkit_set_toast([(0,a.__)("Widget Creation Fail !","wdesignkit"),(0,a.__)("Widget is not created.","wdesignkit"),"","danger"])})):"bricks"==N&&await Re("add",e,s,l,n,"",b).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_toast([(0,a.__)("Widget Added Successfully","wdesignkit"),(0,a.__)("Widget Added Successfully","wdesignkit"),"","success"]),i(`/widget-listing/builder/${u.trim()}_${le}`)):t.wdkit_set_toast([(0,a.__)("Widget Creation Fail !","wdesignkit"),(0,a.__)("Widget is not created.","wdesignkit"),"","danger"])})),re.current=""}else re.current.style.border="1px solid red";W(!1)})()},children:(0,Be.jsx)("button",{className:"wb-add-widget-updateBtn",children:(0,Be.jsx)("span",{children:(0,a.__)("Create Widget","wdesignkit")})})})}):(0,Be.jsx)("button",{className:"wb-addss-widget-updateBtn wkit-disable-btn",onClick:()=>{re.current.focus(),re.current.style.border="1px solid red"},children:(0,a.__)("Create Widget","wdesignkit")})]})]})]}),"import-widget"==t.popup&&(0,Be.jsx)("div",{children:(0,Be.jsxs)("div",{id:"popup",className:"wb-add-widget ImportWidget",children:[(0,Be.jsxs)("div",{className:"wkit-add-widget-header-container",children:[(0,Be.jsx)("div",{className:"wkit-popup-header",children:(0,a.__)("Import Widget","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.ClosePopup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-popup-content",style:{height:"max-content"},children:[(0,Be.jsxs)("div",{className:"wb-import-widget-inputs",children:[(0,Be.jsx)("label",{children:(0,a.__)("Select or Drop Your File Here (.ZIP Only)","wdesignkit")}),(0,Be.jsxs)("div",{className:"wb-drop-file-inp",onDragOver:e=>{e.preventDefault()},onDrop:e=>{(e=>{e.preventDefault(),v(e.dataTransfer.files[0]),e.stopImmediatePropagation()})(e)},onClick:e=>{document.querySelector("#wb-import-file").click()},children:[k?(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("img",{src:m+"/assets/images/wb-svg/file-upload.svg"}),(0,Be.jsx)("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];v(t),document.querySelector(".dropFileErrorMessage").style.display="none"}})(e)}}),k?(0,Be.jsx)("span",{children:k?.name}):(0,Be.jsx)("span",{children:(0,a.__)("Drag & Drop or Upload Widget ZIP File Here","wdesignkit")})]}),(0,Be.jsx)("div",{className:"dropFileErrorMessage",children:(0,a.__)("Zip file invalid or Missing. Upload Again!","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,Be.jsx)("div",{className:"wb-add-widget-cancelBtn",children:(0,Be.jsx)("button",{onClick:e=>{t.ClosePopup()},children:(0,a.__)("Close","wdesignkit")})}),k&&(0,Be.jsx)(Be.Fragment,{children:1==P?(0,Be.jsx)("button",{className:"wb-import-widget-updateBtn wkit-btn-class",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}):(0,Be.jsx)("button",{className:"wb-import-widget-updateBtn wkit-btn-class",onClick:e=>{(async()=>{if(!k)return document.querySelector(".dropFileErrorMessage").style.display="block",void(document.querySelector(".dropFileErrorMessage").style.color="red");W(!0),t.StartLoading();var e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";if((document.querySelector(".dropFileErrorMessage").style.display="block")&&(document.querySelector(".dropFileErrorMessage").style.display="none"),e){var i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","wkit_import_widget"),i.append("zipName",k),await l().post(ajaxurl,i,{headers:{"content-type":"application/json"}}).then((e=>{e?.data?.success?((async e=>{if(e){let n=JSON.stringify(e.Editor_data.html),l=JSON.stringify(e.Editor_data.js),r=JSON.stringify(e.Editor_data.css),o=e.widget_data.widgetdata.widget_id,d=e.widget_data.widgetdata.name+"_"+o,c=Object.assign({},e.widget_data.widgetdata,{allow_push:!1}),p=Object.assign({},e.widget_data,{widgetdata:c});var i={CardItems:{cardData:e.section_data},WcardData:p,Editor_data:e.Editor_Link,Editor_code:{Editor_codes:[e.Editor_data]}},s="";"elementor"==e.widget_data.widgetdata.type?s=await Se("import",i,n,r,l,d,"").then((async e=>e)):"gutenberg"==e.widget_data.widgetdata.type?s=Ze("import",i,n,r,l,"","").then((async e=>e)):"bricks"==e.widget_data.widgetdata.type&&(s=Re("import",i,n,r,l,"","").then((async e=>e))),s&&s?.api?.success?(t.wdkit_set_toast([(0,a.__)("Successfully Imported.","wdesignkit"),(0,a.__)("Yay! Your Widget has been successfully imported.","wdesignkit"),"","success"]),await setTimeout((()=>{t.UpdateData()}),1e3)):t.UpdateData()}else t.endLoading(),t.wdkit_set_toast([(0,a.__)("Widget import fail","wdesignkit"),(0,a.__)("Widget import fail! data not get ","wdesignkit"),"","danger"])})(e?.data?.json),t.ClosePopup(),document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),t.wdkit_set_toast([(0,a.__)("Widget imported","wdesignkit"),(0,a.__)("Widget imported Succesfully","wdesignkit"),"","success"])):(t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","danger"]),t.ClosePopup(),t.endLoading())})).catch((e=>console.log(e)))}W(!1)})()},children:(0,Be.jsx)("span",{children:(0,a.__)("Import","wdesignkit")})})}),!k&&(0,Be.jsx)("button",{className:"wkit-imports-widget-updateBtn wkit-disable-btn",children:(0,a.__)("Import","wdesignkit")})]})]})]})})]})})),{Fragment:ms}=wp.element,gs=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(ps(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_meta:t=>e(ds(t))})))((t=>{const[i,s]=(0,e.useState)(wdkitData.WDKIT_URL),[n,r]=(0,e.useState)(""),[o,d]=(0,e.useState)("loading"),[c,p]=(0,e.useState)([]),[w,m]=(0,e.useState)(""),[g,u]=(0,e.useState)(""),[h,_]=(0,e.useState)(""),[C,k]=(0,e.useState)(""),[v,b]=(0,e.useState)(""),[x,f]=(0,e.useState)("add-widget"),[j,y]=(0,e.useState)(!1),[$,N]=(0,e.useState)(!0),[L,M]=(0,e.useState)(!0),[H,V]=(0,e.useState)(12),[D,S]=(0,e.useState)(1),[Z,R]=(0,e.useState)(1),[B,E]=(0,e.useState)(),[O,A]=(0,e.useState)(),[T,P]=(0,e.useState)([]),[W,F]=(0,e.useState)(""),[I,q]=(0,e.useState)("1.0.0"),[U,z]=(0,e.useState)(!1),[J,K]=(0,e.useState)(-1),[G,Y]=(0,e.useState)(""),[Q,X]=(0,e.useState)(!1),ee=(0,e.useRef)(null),[te,ae]=(0,e.useState)([]),[ie,se]=(0,e.useState)([]),ne=[{name:"elementor",label:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0",text:"Elementor Page Builder is Not activate in your system.",class:"wkit-elementor-bg"},{name:"the-plus-addons-for-block-editor",label:"gutenberg",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",type:"plugin",freepro:"0",text:"Nexter Blocks is Not activate in your system.",class:"wkit-nexter-bg"},{name:"bricks",label:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1",text:"Bricks theme is Not activate in your system.",link:"https://academy.bricksbuilder.io/article/installation-activation/",class:"wkit-bricks-bg"}];(0,e.useEffect)((()=>{t.wdkit_meta&&d(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{ce()}),[o]),(0,e.useEffect)((()=>{var e=o.widget_list;U&&c.length>0&&(e=e.filter((e=>{if(c.length>0&&c.includes(e.id))return e}))),G&&(e=e.filter((e=>e.title.toLowerCase().includes(G.toLocaleLowerCase())))),P(e),R(1),S(U?Math.ceil(c?.length/H):Math.ceil(T?.length/H))}),[U,Q]),(0,e.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")})),le("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),lt(ne).then((e=>{if(e?.data?.plugins){let t={},a=e.data.plugins.findIndex((e=>"bricks"==e.name));a>-1&&"active"==e.data.plugins?.[a]?.status&&le(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),e.data.plugins.map((e=>{t[e.name]=e.status})),se(t)}}))}),[]),(0,e.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"),ae(e)}),[t?.wdkit_meta?.Setting]);const le=e=>{if(!document.querySelector(`link[href="${e}"]`)){let t=document.createElement("link");t.rel="stylesheet",t.href=e+"?v="+(new Date).getTime(),document.head.appendChild(t)}},re=async()=>{if(Xe())await Qe().then((async e=>{e.success?(t.wdkit_set_meta(e.data),await d(e.data)):await d(t.wdkit_meta)}));else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await Ye(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}N(!1),M(!1),z(!1)},oe=e=>{let t=e.target.parentElement.querySelectorAll(".wkit-wb-dropdown");t.length>0&&t.forEach((e=>{e.classList.add("wbdropdown-active")}))},de=e=>{let t=T?.findIndex((t=>t.w_unique==e));f("remove"),r(T?.[t]?.title),u(T?.[t]?.builder),_(T?.[t]?.type),k(T?.[t]?.w_unique),T?.[t]?.id&&b(T?.[t]?.id);var a=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";a&&a.classList.add("show")},ce=async()=>{Xe()?(p(o.favoritewidgets),P(o.widget_list)):P(o.widget_list)};return(0,e.useEffect)((()=>{let e=(Z-1)*H,a=e+H;E(e),A(a),S(U?Math.ceil(c?.length/H):Math.ceil(T?.length/H)),setTimeout((()=>{(Xe()&&t?.wdkit_meta?.success||t?.wdkit_meta?.success)&&(N(!1),M(!1))}),800)}),[T,Z,H]),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-widget-main-container",children:[(0,Be.jsx)(ft,{title:(0,a.__)("My Widgets","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4 20H20M9.5 15.5V9.5H5L12 2.5L19 9.5H14.5V15.5H9.5Z",stroke:"#040483",strokeWidth:"1.5",strokeLinecap:"round"})})}),(0,Be.jsxs)("div",{className:"wb-creative-widget-main",children:[(0,Be.jsxs)("div",{className:"wb-creative-row",children:[(0,Be.jsx)(ms,{children:1==L?(0,Be.jsx)("div",{className:"wkit-widget-search-skeleton"}):(0,Be.jsx)("div",{className:"wkit-widget-search-filter",children:o?.widget_list?.length>0&&(0,Be.jsxs)("div",{className:"wkit-widget-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-widget-search-inp",placeholder:(0,a.__)("Search Widgets","wdesignkit"),type:"text",onChange:e=>{Y(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(X(!Q),ee.current.blur())},ref:ee}),(0,Be.jsx)("span",{className:"wkit_search_button wkit-btn-class",onClick:()=>{X(!Q)},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})}),(0,Be.jsxs)("div",{className:"wb-creative-button "+(Xe()?"":"wkit-login-disable"),children:[(0,Be.jsx)(ms,{children:0==L&&(0,Be.jsxs)("div",{className:Xe()?"":"wkit-fav-plugin-link",children:[(0,Be.jsx)("span",{className:"wkit-creative-button-toolTip wkit-fav-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,Be.jsxs)("a",{className:"wkit-plugin-link",onClick:()=>{Xe()&&z(!U)},children:[1==U?(0,Be.jsx)("svg",{className:"wkit-activate-favourites-icon",xmlns:"http://www.w3.org/2000/svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("svg",{className:"wkit-favourites-icon",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Favourites","wdesignkit")]})]})}),(0,Be.jsxs)(ms,{children:[1==L&&(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("button",{className:"wkit-primary-btn-skeleton"}),(0,Be.jsx)("button",{className:"wkit-primary-btn-skeleton"})]}),0==L&&(0,Be.jsxs)(ms,{children:[(0,Be.jsxs)("div",{className:Xe()?"":"wkit-primary-button-container",children:[(0,Be.jsx)("span",{className:"wkit-creative-button-toolTip wkit-primary-button-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-button-primary wkit-outer-btn-class",onClick:e=>{(()=>{f("import-widget");let e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";e&&e.classList.add("show")})(),y(!0)},disabled:!Xe(),children:(0,a.__)("Import Widget","wdesignkit")})]}),(0,Be.jsxs)("div",{className:Xe()?"":"wkit-secondary-button-container",children:[(0,Be.jsx)("span",{className:"wkit-creative-button-toolTip wkit-secondary-button-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-button-secondary wkit-btn-class",onClick:e=>{(()=>{f("add-widget");let e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";e&&e.classList.add("show")})(),y(!0)},disabled:!Xe(),children:(0,a.__)("Create Widget","wdesignkit")})]})]})]})]})]}),1==$&&(0,Be.jsx)("div",{children:(0,Be.jsx)(ht,{})}),T?.length<=0&&0==$&&(0,Be.jsx)(_t,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"documents/create-custom-elementor-widget-using-free-wdesignkit-widget-builder/"}),0==$&&(0,Be.jsx)("div",{className:"wkit-skeleton-row",children:T?.length>0&&T.map(((e,s)=>!!(e&&B<=s&&O>s)&&(0,Be.jsx)(ms,{children:(0,Be.jsxs)("div",{className:"wkit-wb-widget-grid-content",children:["active"!==e.is_activated&&(0,Be.jsxs)(ms,{children:[(0,Be.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",style:{zIndex:"19"},children:[(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,Be.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Widget got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(0,Be.jsx)("span",{className:"wdkit-inner-boxed-remove",style:{zIndex:"29"},children:(0,Be.jsx)("svg",{onClick:t=>{de(e.w_unique),y(!0)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-wb-widget-card-main",children:["server"==e?.type&&(0,Be.jsx)("div",{className:"wkit-wb-widget-download",children:(0,Be.jsxs)("div",{className:"wkit-wb-download-btn",onClick:i=>{(async(e,i)=>{if(K(i),e){const i=async e=>{let i=JSON.parse(e.json),s=i?.widget_data?.widgetdata?.type,n=JSON.stringify(i?.Editor_data?.html),l=JSON.stringify(i?.Editor_data?.js),r=JSON.stringify(i?.Editor_data?.css),o=e.image;e={CardItems:{cardData:i.section_data},WcardData:i.widget_data,Editor_data:i.Editor_Link,Editor_code:{Editor_codes:[i.Editor_data]}};var d="";return"elementor"==s?d=await Se("private_download",e,n,r,l,"",o).then((async e=>e)):"gutenberg"==s?d=await Ze("private_download",e,n,r,l,"",o).then((async e=>e)):"bricks"==s&&(d=await Re("private_download",e,n,r,l,"",o).then((async e=>e))),!(!d||1!=d.api.success||(await re(),await K(-1),t.wdkit_set_toast([(0,a.__)("Widget Successfully Retrived","wdesignkit"),(0,a.__)("Widget Successfully Retrived .","wdesignkit"),"","success"]),0))};let s=Xe();if(s){let a={type:"private_download",w_uniq:e,token:s.token},n={type:"wkit_download_widget",widget_info:JSON.stringify(a)};await Ye(n).then((async e=>{null!=e?.json?(await i(e),e&&t.wdkit_set_toast([e.message,"Widget Successfully Retrived .","","success"])):(t.wdkit_set_toast([e.message,e.description,"","danger"]),K(-1),re())}))}}})(e.w_unique,s)},children:[(0,Be.jsx)("div",{className:"wkit-wb-download-icon",children:(0,Be.jsxs)("svg",{width:"18",height:"17",viewBox:"0 0 21 20",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"})]})}),J==s&&(0,Be.jsx)("div",{className:"wkit-wb-download-loader"})]})}),(0,Be.jsxs)("div",{className:"wkit-wb-upper-icons",style:"server"==e.type||"active"!=e.is_activated?{zIndex:"1"}:{zIndex:"39"},children:["plugin"==e.type&&(0,Be.jsxs)("div",{className:"wdkit-widget-type",children:[(0,Be.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M6.5 15.75H12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M9.5 12.75V15.75",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.__)("Local","wdesignkit")]}),"server"==e.type&&(0,Be.jsxs)("div",{className:"wdkit-widget-type",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("g",{clipPath:"url(#clip0_10782_27626)",children:(0,Be.jsx)("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,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"clip0_10782_27626",children:(0,Be.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]}),(0,a.__)("Remote","wdesignkit")]}),("update"==e.type||"done"==e.type)&&(0,Be.jsxs)("div",{className:"wdkit-widget-type",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("g",{clipPath:"url(#clip0_10782_27626)",children:(0,Be.jsx)("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,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"clip0_10782_27626",children:(0,Be.jsx)("rect",{width:"18",height:"18",fill:"white"})})})]}),(0,Be.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M6.5 15.75H12.5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M9.5 12.75V15.75",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.__)("Local + Remote","wdesignkit")]}),"plugin"!=e.type&&(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("div",{className:"wkit-wb-fav-icon wkit-wb-select-fav",onClick:a=>{(async(e,a)=>{if(e){let i=Xe();if(i){let s={type:"favourite",w_uniq:e,token:i.token},n=o.favoritewidgets;if(n.findIndex((e=>e==a))>-1){let e=n.findIndex((e=>e==a));n.splice(e,1),p([...n])}else n.push(a),p([...n]);let l={type:"wkit_favourite_widget",widget_info:JSON.stringify(s)};await Ye(l).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"])}))}}})(e.w_unique,e.id)},children:c?.length>0&&c?.includes(e.id)?(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("img",{src:i+"/assets/images/wb-svg/fav-icon-selected.svg"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("UnFavourite","wdesignkit")})]}):(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("img",{src:i+"/assets/images/wb-svg/fav-icon.svg"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Favourite","wdesignkit")})]})}),(0,Be.jsx)("div",{className:"wkit-wb-fav-icon",children:"private"==e.status?(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:i+"/assets/images/svg/private.svg",alt:"private"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Private","wdesignkit")})]}):(0,Be.jsxs)(ms,{children:[(0,Be.jsx)("img",{src:i+"/assets/images/svg/public.svg"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Public","wdesignkit")})]})})]})]}),"pro"==e?.free_pro&&(0,Be.jsxs)("div",{className:"wdkit-card-tag",children:[(0,Be.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-wb-widget-image-content",children:Xe()?(0,Be.jsx)(xe,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,Be.jsx)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${e.image}")`}})}):(0,Be.jsx)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${e.image}")`}})}),(0,Be.jsxs)("div",{className:"wkit-wb-card-detail-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-title-content",children:[Xe()?(0,Be.jsx)(xe,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,Be.jsx)("span",{className:"wdkit-widget-title",children:e.title})}):(0,Be.jsx)("span",{className:"wdkit-widget-title",children:e.title}),"server"!=e?.type&&(0,Be.jsx)("div",{className:"wkit-wb-widget-dropDown",children:(0,Be.jsxs)("span",{className:"wkit-wb-3dot-icon","data-widgetid":s,onClick:oe,children:[(0,Be.jsx)("img",{className:"wkit-wb-3dot-click-img",src:i+"assets/images/wb-svg/3-dot.svg",alt:"wb-view-icon","data-widgetid":s}),(0,Be.jsxs)("ul",{className:"wkit-wb-dropdown",children:[Xe()&&(0,Be.jsx)(xe,{className:"wkit-wb-edit-widget-btn",target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,Be.jsxs)("li",{children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Edit in New Tab","wdesignkit")})]})}),(0,Be.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,Be.jsxs)("li",{onClick:t=>{de(e.w_unique),y(!0)},"data-deleteid":s,children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Delete","wdesignkit")})]})}),(0,Be.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,Be.jsxs)("li",{onClick:()=>{var t;t=e,f("duplicate-widget"),y(!0),r(t.title),u(t?.builder),k(t.w_unique),F(t?.image?t.image:"")},children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Duplicate","wdesignkit")})]})}),te.length>1&&"1"==o?.credits?.convert_widget?.meta_value&&(0,Be.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,Be.jsxs)("li",{onClick:()=>{var t;t=e,f("convert-widget"),y(!0),r(t.title),u(t.builder),k(t.w_unique),F(t?.image?t.image:"")},children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"18",viewBox:"0 0 25 24",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Convert","wdesignkit")})]})}),(0,Be.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,Be.jsxs)("li",{className:"wkit-wb-export-widget-btn",onClick:a=>{(async(e,a,i,s)=>{let n=a.replaceAll(" ","_")+"_"+s+".zip",r={widget_name:a+"_"+s,widget_type:i},o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","wkit_export_widget"),o.append("info",JSON.stringify(r)),await l().post(ajaxurl,o).then((async e=>{e?.data?.success&&(await t.wdkit_set_toast([e?.data?.message,e?.data?.description,"","success"]),e?.data?.url&&(location.href=e?.data?.url)),setTimeout((()=>{let e={name:n,builder:i},t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","wkit_delete_widget"),t.append("info",JSON.stringify(e)),l().post(ajaxurl,t).then((e=>{})).catch((e=>console.log(e)))}),3e3)}))})(0,e.title,e.builder,e?.w_unique)},children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("span",{className:"wkit-wb-listmenu-text",children:[(0,a.__)("Download ZIP","wdesignkit")," "]})]})}),Xe()&&null!=e?.allow_push&&0!=e?.allow_push&&(0,Be.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,Be.jsxs)("li",{onClick:t=>{f("sync"),y(!0),r(e.title),u(e.builder),k(e.w_unique),q(e.w_version),_(e.type)},children:[(0,Be.jsx)("span",{className:"wkit-wb-listmenu-svg",children:(0,Be.jsx)("svg",{width:"15",height:"16",viewBox:"0 0 15 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Push Widget","wdesignkit")})]})})]})]})})]}),null!=e?.avg_rating&&null!=e?.total_rating&&(0,Be.jsx)("div",{children:(0,Be.jsx)(bt,{avg_rating:e?.avg_rating,total_rating:e?.total_rating})}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-info",children:[(0,Be.jsx)("div",{className:"wkit-wb-info-icons-content",children:null!=e?.views&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-info-icons",children:[(0,Be.jsx)("img",{src:i+"/assets/images/svg/eye.svg",alt:"wb-view-icon",draggable:!1}),(0,Be.jsx)("span",{children:null!=e?.views?e.views:0})]}),(0,Be.jsx)("hr",{className:"wkit-wb-divider-hr"}),(0,Be.jsxs)("div",{className:"wkit-wb-info-icons",children:[(0,Be.jsx)("img",{src:i+"/assets/images/svg/download-template.svg",alt:"wb-view-icon",draggable:!1}),(0,Be.jsx)("span",{children:null!=e?.download?e.download:0})]})]})}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-category-icon",children:["elementor"==e?.builder&&(0,Be.jsx)("img",{src:i+"/assets/images/wb-svg/elementor.svg",draggable:!1}),"gutenberg"==e?.builder&&(0,Be.jsx)("img",{src:i+"/assets/images/wb-svg/gutenberg-core.svg",draggable:!1}),"bricks"==e?.builder&&(0,Be.jsx)("img",{src:i+"/assets/images/wb-svg/bricks.svg",draggable:!1}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiplist",children:e?.builder})]})]})]})]})]})},s)))}),(0,Be.jsx)("div",{className:"wkit-wb-paginatelist",children:T?.length>H&&D>1&&(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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:D,marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&(N(!0),M(!0),R(e.nextSelectedPage+1))},forcePage:Z-1,onPageActive:()=>{}})})})]})]}),1==j?(0,Be.jsx)("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),children:(0,Be.jsx)("div",{className:`wb-edit-popup wdkit-${x}-popup`,children:(0,Be.jsx)(ws,{quickeditName:n,quickediteditDesc:w,quickediteditType:g,quickediteditMeta:h,w_version:I,plugin_status:ie,setPlugin_status:se,plugin_detail:ne,widget_id:C,widget_image:W,BuilderArray:te,widget_server_id:v,UpdateData:()=>re(),ClosePopup:()=>{y(!1)},StartLoading:()=>{N(!0)},endLoading:()=>{N(!1)},popup:x&&x})})}):""]})})),{Fragment:us}=wp.element,hs=Ji((e=>({cardData:e.CardItems.cardData,controller:e.Active_controller,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData})),(e=>({addToCarthandler:t=>e(ts(t)),addToEditor_code:t=>e(ss(t))})))((t=>{let i=t?.widgetdata?.widgetdata?.type;const s=(0,e.useRef)();var n=wdkitData.WDKIT_URL;let l=["wdk_senitize_js"],r=["text","number","wysiwyg","choose","gallery","media","rawhtml","select","select2","textarea","url"],o="number"==typeof(!t.controller.controller.compo_id&&t.controller.controller.sec_id),d=t.cardData[0]?.[t.controller.controller.array_type]?.[t.controller.controller.sec_id];(0,e.useEffect)((()=>{let e=[...t.cardData];if(r.includes(g?.type)&&(null==g?.sanitizer_value||null==g?.sanitizer_dropdown_value)){var a=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];a.sanitizer_value="wdk_senitize_js",a.sanitizer_dropdown_value="wdk_senitize_js",t.addToCarthandler(e)}}),[]);const c=(e,t="Tab")=>e?e[0].toUpperCase()+e.slice(1):t,p=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e};t?.controller?.controller&&(s.current=t.controller.controller);const w=e=>{var a=[],i=[],s=["layout","style"];return t?.cardData.length>0&&t?.cardData.map((e=>{s.map((t=>{e?.[t]?.length>0&&e?.[t]?.map((e=>{o?i.includes(e.name)||i.push(e.name):e?.inner_sec.length>0&&e?.inner_sec.map((e=>{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=>{a.includes(e.name)||a.push(e.name)})):a.includes(e.name)||a.push(e.name)}))}))}))})),!(!o||i.includes(e)||""==e.trim())||!(o||!/^[a-zA-Z0-9_]+$/.test(e)||a.includes(e))},m=(e,a,i,n)=>{let l=[...t.cardData];if(s.current.repeater)var r=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else r=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if(o){let s=l[0][t.controller.controller.array_type][t.controller.controller.sec_id];"lable"==a?s.section=e.target.value:"conditions"==a?s.condition_value?s[a]=e.target.checked:Object.assign(s,{condition_value:{relation:"or",values:[{name:"",operator:"==",value:""}]},conditions:!0}):"condition_relation"==a?s.condition_value.relation=e.target.value:"conditions_name"==a?s.condition_value.values[i].name=e.target.value:"conditions_value"==a?s.condition_value.values[i].value=e.target.value:"conditions_operator"==a?s.condition_value.values[i].operator=e.target.value:"name"==a&&w(e.target.value)&&(s.name=e.target.value),t.addToCarthandler(l)}else{if("ai_support"==a||"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"==i?e.splice(0,0,'"classic"'):"gradient"==i&&e.splice(1,0,'"gradient"'),r[a]=e}else if(0==e.target.checked){let e=[...r[a]],t=r[a].indexOf(`"${i}"`);e.splice(t,1),r[a]=e}}else if("nha_array"==a){let t=[...r[a]],s=r?.nha_array_lable?[...r.nha_array_lable]:[];1==e.target.checked?(0==i?(t[0]="normal",null==s[0]&&(s[0]="Normal")):1==i?(t[1]="hover",null==s[1]&&(s[1]="Hover")):2==i&&(t[2]="active",null==s?.[2]&&(s[2]="Active")),r[a]=t,r.nha_array_lable=s):0==e.target.checked&&t.length>2&&(t[i]=null,r[a]=t)}else if("nha_array_name"==a){let t=r?.nha_array_lable?[...r.nha_array_lable]:[];0==i?t[0]=e.target.value:1==i?t[1]=e.target.value:2==i&&(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==i?e[0]="Normal":1==i?e[1]="Hover":2==i&&(e[2]="Active"),r.nha_array_lable=e}else if("media_types"==a){if(1==e.target.checked){let e=[...r[a]];"image"==i?e.splice(0,0,'"image"'):"video"==i?e.splice(1,0,'"video"'):"svg"==i&&e.splice(2,0,'"svg"'),r[a]=e}else if(0==e.target.checked){let e=[...r[a]],t=r[a].indexOf(`"${i}"`);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[i])&&r.select2_defaultValue.splice(a,1)}))," "==e.target.value[e.target.value.length-1]){var d=e.target.value.replace(" ","_");let a=Object.assign({},t[i],{value:d});t[i]=a}else{let a=Object.assign({},t[i],{value:e.target.value});t[i]=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[i])&&r.select2_defaultValue.splice(a,1)}));let a=Object.assign({},t[i],{lable:e.target.value});t[i]=a,r.options=t}else if("options_svg"==a){let t=[...r.options],a=Object.assign({},t[i],{svg:e.target.value});t[i]=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],s=Object.assign({},t[i],{[a]:e.target.value});t[i]=s,r.align_option=t}else if("conditions_operator"==a){let t=[...r.condition_value.values],a=Object.assign({},t[i],{operator:e.target.value});t[i]=a;let s=Object.assign({},r.condition_value,{values:t});r.condition_value=s}else if("conditions_name"==a){let t=[...r.condition_value.values],a=Object.assign({},t[i],{name:e.target.value});t[i]=a;let s=Object.assign({},r.condition_value,{values:t});r.condition_value=s}else if("conditions_value"==a){let t=[...r.condition_value.values],a=Object.assign({},t[i],{value:e.target.value});t[i]=a;let s=Object.assign({},r.condition_value,{values:t});r.condition_value=s}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"==i?t[0]=e.target.value:"number"==i&&(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[i],{checked:e.target.checked});t[i]=a}else{let a=Object.assign({},t[i],{[n]:e.target.value});t[i]=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"!=i?t[i]=e.target.value:"isLinked"==i&&(t[i]=!r.dimension_defaultValue[i]),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]=i;else if("name"==a){let i=w(e.target.value),n=g?.name;if(!i)return!1;t?.cardData.length>0&&t?.cardData.map((a=>{a?.layout.length>0&&a?.layout.map(((a,i)=>{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 d=l[0]?.layout?.[i]?.inner_sec?.[s]?.fields?.[r]?.condition_value.values[o];d.name=e.target.value,t.addToCarthandler(l)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,r)=>{if(a.name==n){var o=l[0]?.layout?.[i].inner_sec[s]?.condition_value.values[r];o.name=e.target.value,t.addToCarthandler(l)}}))}))})),a?.style.length>0&&a?.style.map(((a,i)=>{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 d=l[0]?.style?.[i]?.inner_sec?.[s]?.fields?.[r]?.condition_value.values[o];d.name=e.target.value,t.addToCarthandler(l)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,r)=>{if(a.name==n){var o=l[0]?.style?.[i].inner_sec[s]?.condition_value.values[r];o.name=e.target.value,t.addToCarthandler(l)}}))}))}))}));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 c=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});const a=(t,i)=>{var s=c.find(t,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=s&&("loop"==i?c.session.replace(s,`data-${e.target.value}={${e.target.value}}`):"name"==i&&c.session.replace(s,`{{${e.target.value}}}`),a(t,i))};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 p=t.cardData[0][o.array_type][o.sec_id].inner_sec[o.compo_id];"gallery"!=p.type&&"select2"!=p.type&&"repeater"!=p.type||a(`data-${p.name}={${p.name}}`,"loop"),a(`{{${p.name}}}`,"name"),"repeater"!=p.type&&"popover"!=p.type||p.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(i),r[a]=e}else if("remove"==n){let e=[...r[a]];e.splice(i,1),r[a]=e}}else"select_defaultValue"==a?r[a]=i:"show_unit"==a?1==e.target.checked?(r[a]=e.target.checked,r.responsive=!0):r[a]=e.target.checked:"sanitizer_dropdown_value"==a?(r[a]=e.target.value,"custom"==e.target.value||"none"==e.target.value?r.sanitizer_value="":"wdk_sanitizer"==e.target.value?(r.sanitizer_value="wdk_senitize_js",r[a]="wdk_senitize_js"):r.sanitizer_value=e.target.value):r[a]=e.target.value;t.addToCarthandler(l)}};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 g=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else g=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id]}const u=(e,a)=>{let i=[...t.cardData],n=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if(o){if("conditions"==e){let e={name:"",operator:"==",value:""};i[0][t.controller.controller.array_type][t.controller.controller.sec_id].condition_value.values.push(e)}}else if("options"==e)if(null!=s.current.repeater){let e=[...(l=n.fields[s.current.repeater]).options];"styleimage"==g.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),l.options=e}else{let e=[...(l=n).options];"styleimage"==g.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),l.options=e}else if("conditions"==e)if(null!=s.current.repeater){let e=[...(l=n.fields[s.current.repeater]).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},l.condition_value,{values:e});l.condition_value=t}else{let e=[...(l=n).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},l.condition_value,{values:e});l.condition_value=t}else if("align_option"==e)if(null!=s.current.repeater){let e=[...(l=n.fields[s.current.repeater]).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),l.align_option=e}else{var l;let e=[...(l=n).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),l.align_option=e}t.addToCarthandler(i)},h=(e,a)=>{let i=[...t.cardData],n=i[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if(o)var l=i[0][t.controller.controller.array_type][t.controller.controller.sec_id].condition_value.values;else"options"==a?l=null!=s.current.repeater?n.fields[s.current.repeater].options:n.options:"conditions"==a?l=null!=s.current.repeater?n.fields[s.current.repeater].condition_value.values:n.condition_value.values:"repeater"==a?l=n.defaultValue:"align_option"==a&&(l=null!=s.current.repeater?n.fields[s.current.repeater].align_option:n.align_option);l.splice(e,1),t.addToCarthandler(i),0==l.length&&u(a,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"))};return(0,Be.jsx)("div",{className:"wkit-wb-third-part-content show",children:(0,Be.jsx)("div",{className:"wkit-widget-detail",children:(0,Be.jsxs)("div",{className:"wb-block-detail-content",children:[(null!=g?.name||o)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Name","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip wkit-bottom-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The name must be unique and should only contain letters, numbers and underscore (_).","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:o?d.name:g.name,type:"text",onChange:e=>{m(e,"name")},disabled:["cpt","product_listing"].includes(g?.type)||t.controller.controller.cpt_controller})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),!g||null==g.type||"textarea"!=g.type&&"wysiwyg"!=g.type&&"rawhtml"!=g.type&&"code"!=g.type?g&&g.type&&"number"==g.type&&g.number_setting&&g.number_setting.min&&g.number_setting.max&&g.number_setting.step?(0,Be.jsx)("input",{className:"wb-block-text-inp",min:g.number_setting.min,max:g.number_setting.max,step:g.number_setting.step,value:g.defaultValue,type:"number",onChange:e=>{m(e,"defaultValue")}}):g&&g.type&&"color"==g.type?(0,Be.jsx)("div",{className:"wkit-wb-default-color",children:(0,Be.jsx)("input",{className:"wkit-wb-default-color-inp",value:g.defaultValue,type:"color",onChange:e=>{m(e,"defaultValue")}})}):g&&g.type&&"date-time"==g.type?(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.defaultValue,type:"datetime-local",onChange:e=>{m(e,"defaultValue")}}):g&&g.type&&"url"==g.type?(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.defaultValue,type:"url",onChange:e=>{m(e,"defaultValue")}}):g&&g.type&&"datetime"==g.type?(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.defaultValue,type:"datetime-local",onChange:e=>{m(e,"defaultValue")}}):g&&g.type&&"switcher"==g.type?(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.defaultValue,onChange:e=>{m(e,"switcher_defaultValue")}}),(0,Be.jsx)("span",{className:"wb-slider"})]}):(g&&g.type&&g.input_type&&g.type,(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.defaultValue,type:"text",onChange:e=>{m(e,"defaultValue")}})):(0,Be.jsx)("textarea",{className:"wb-block-text-inp",value:g.defaultValue,onChange:e=>{m(e,"defaultValue")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),g?.slider_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-slider-default",children:[g.size_units&&g.slider_defaultValue[0]&&g.size_units.map(((e,t)=>{if(1==e.checked&&e.type==g.slider_defaultValue[0])return(0,Be.jsx)(us,{children:(0,Be.jsx)("input",{type:"number",min:e.min,max:e.max,step:e.step,value:g.slider_defaultValue[1],className:"wb-slider-default-value",onChange:e=>{m(e,"slider_value","number")}})},t)})),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"},onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.slider_defaultValue[0]}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:g.size_units&&g.size_units.map(((e,t)=>{if(1==e.checked)return(0,Be.jsx)(us,{children:(0,Be.jsx)("option",{onClick:e=>{m(e,"slider_value","unit")},children:e.type},t)},t)}))})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.s_template_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{_(e)},children:[(0,Be.jsx)("label",{children:(0,a.__)("Select Template","wdesignkit")}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:(0,Be.jsx)("option",{selected:!0,children:(0,a.__)("Select Template","wdesignkit")})})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.select_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{_(e)},children:[(0,Be.jsx)("label",{children:g.select_defaultValue[1]}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:g.options?.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(us,{children:(0,Be.jsx)("option",{onClick:e=>{m(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.hTags_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{_(e)},children:[(0,Be.jsx)("label",{children:g.hTags_defaultValue}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"h1",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H1","wdesignkit")}),(0,Be.jsx)("option",{value:"h2",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H2","wdesignkit")}),(0,Be.jsx)("option",{value:"h3",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H3","wdesignkit")}),(0,Be.jsx)("option",{value:"h4",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H4","wdesignkit")}),(0,Be.jsx)("option",{value:"h5",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H5","wdesignkit")}),(0,Be.jsx)("option",{value:"h6",onClick:e=>{m(e,"hTags_defaultValue")},children:(0,a.__)("H6","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.align_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wb-icons",children:g.align_option&&g.align_option.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[e.align_lable&&(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[e.align_lable,(0,Be.jsx)("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(e.align_icon)?e.align_value==g.align_defaultValue?(0,Be.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${n}assets/images/wb-svg/${e.align_icon}.svg`,onClick:t=>{m(t,"align_defaultValue",e.align_value)}}):(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${n}assets/images/wb-svg/${e.align_icon}.svg`,onClick:t=>{m(t,"align_defaultValue",e.align_value)}}):e.align_value==g.align_defaultValue?(0,Be.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${n}assets/images/wb-svg/info-white.svg`,onClick:t=>{m(t,"align_defaultValue",e.align_value)}}):(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${n}assets/images/wb-svg/info.svg`,onClick:t=>{m(t,"align_defaultValue",e.align_value)}})]})},t)))})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),g?.options&&null!=g.select2_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{_(e)},children:[g.select2_defaultValue&&g.select2_defaultValue.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wkit-wb-multi-selected",children:[(0,Be.jsx)("div",{className:"wkit-wb-remove-value",onClick:e=>{m(e,"select2_defaultValue",t,"remove")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("label",{children:e.lable})]})},t))),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/plus-icon.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-35*(g.options.length-g.select2_defaultValue.length)+"px"},children:g.options.map(((e,t)=>{let a={value:e.value,lable:e.lable};return(0,Be.jsx)(us,{children:(0,Be.jsx)("div",{className:"wkit-wb-multiSelect-value",children:g.select2_defaultValue.find((e=>e.value==a.value))&&g.select2_defaultValue.find((e=>e.lable==a.lable))?"":(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{m(e,"select2_defaultValue",a,"add")}}),(0,Be.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})})},t)}))})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.dimension_defaultValue&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsx)("div",{className:"wp-block-wrapper",children:(0,Be.jsxs)("div",{className:"wb-dimension_defaultValue",children:[(0,Be.jsxs)("div",{className:"wb-dimension_defaultValue-part",children:[(0,Be.jsxs)("div",{className:"wb-dimension_defaultValue-lable",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-dimension_defaultValue-content",children:[(0,Be.jsx)("input",{className:"wb-dimension-values wkit-top",type:"number",value:g.dimension_defaultValue.top,onChange:e=>{m(e,"dimension_defaultValue","top")}}),(0,Be.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==g.dimension_defaultValue.isLinked?g.dimension_defaultValue.top:g.dimension_defaultValue.right,onChange:e=>{m(e,"dimension_defaultValue",1==g.dimension_defaultValue.isLinked?"top":"right")}}),(0,Be.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==g.dimension_defaultValue.isLinked?g.dimension_defaultValue.top:g.dimension_defaultValue.bottom,onChange:e=>{m(e,"dimension_defaultValue",1==g.dimension_defaultValue.isLinked?"top":"bottom")}}),(0,Be.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==g.dimension_defaultValue.isLinked?g.dimension_defaultValue.top:g.dimension_defaultValue.left,onChange:e=>{m(e,"dimension_defaultValue",1==g.dimension_defaultValue.isLinked?"top":"left")}}),(0,Be.jsx)("div",{className:1==g.dimension_defaultValue.isLinked?"wb-dimension-isLink wkit-wb-dark":"wb-dimension-isLink",onClick:e=>{m(e,"dimension_defaultValue","isLinked")},children:(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/link.svg"})})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"}),(0,Be.jsxs)("div",{className:"wb-dimension-default_unit",children:[(0,Be.jsxs)("div",{className:"wb-dimension_defaultValue-lable",children:[(0,Be.jsx)("span",{children:(0,a.__)("Select Default Unit","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[" ",(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"20%"},onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.dimension_defaultValue.unit}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:g.dimension_units&&g.dimension_units.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsx)("option",{onClick:e=>{m(e,"dimension_defaultValue","unit")},children:e})},t)))})]})]})]})})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),(null!=g?.lable||o)&&("elementor"===i||"bricks"===i&&"heading"!==g?.type||"gutenberg"===i&&"gradient"!==g?.type)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Label","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label that appears above of the field.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:o?d?.section:g?.lable,type:"text",onChange:e=>{m(e,"lable")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.lable&&"bricks"===i&&"heading"===g?.type&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Label","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label that appears above of the field.","wdesignkit")})]})]}),(0,Be.jsx)("textarea",{className:"wb-block-text-inp",value:g.lable,rows:3,onChange:e=>{m(e,"lable")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.showLable&&"bricks"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Show Label","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.showLable,onChange:e=>{m(e,"showLable")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.lableBlock&&1==g?.showLable&&"switcher"!=g?.type&&(C=g?.type,"gutenberg"!=i||!!["text","number","textarea","select","select2","headingtags"].includes(C))&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Label Block","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label in a separate line.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.lableBlock,onChange:e=>{m(e,"lableBlock")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.repeater_type&&"elementor"==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Repeater type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The name must be unique and should only contain letters, numbers and underscore (_).","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.repeater_type}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"Old",onClick:e=>{m(e,"repeater_type")},children:(0,a.__)("Old","wdesignkit")}),(0,Be.jsx)("option",{value:"New",onClick:e=>{m(e,"repeater_type")},children:(0,a.__)("New","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.description&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wb-block-texarea",children:[(0,Be.jsxs)("span",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Description","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The description that appears below the field.","wdesignkit")})]})]}),(0,Be.jsx)("textarea",{className:"wb-block-text-inp",value:g.description,type:"textarea",onChange:e=>{m(e,"description")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.title_field&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Title field","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Field that will be used as the repeater title in the fields list when the item is minimized.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.title_field,type:"text",onChange:e=>{m(e,"title_field")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.placeHolder&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Placeholder","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field placeholder that appears when the field has no values.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.placeHolder,type:"text",onChange:e=>{m(e,"placeHolder")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.alert_type&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Alert Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the type of Alert message.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.alert_type}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"warning",onClick:e=>{m(e,"alert_type")},children:(0,a.__)("Warning","wdesignkit")}),(0,Be.jsx)("option",{value:"info",onClick:e=>{m(e,"alert_type")},children:(0,a.__)("info","wdesignkit")}),(0,Be.jsx)("option",{value:"success",onClick:e=>{m(e,"alert_type")},children:(0,a.__)("Success","wdesignkit")}),(0,Be.jsx)("option",{value:"danger",onClick:e=>{m(e,"alert_type")},children:(0,a.__)("Danger","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.parent_class&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Parent Class","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to select the parent class.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.parent_class,onChange:e=>{m(e,"parent_class")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.notice_type&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Notice Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the type of Noitce message.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.notice_type}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"warning",onClick:e=>{m(e,"notice_type")},children:(0,a.__)("Warning","wdesignkit")}),(0,Be.jsx)("option",{value:"info",onClick:e=>{m(e,"notice_type")},children:(0,a.__)("info","wdesignkit")}),(0,Be.jsx)("option",{value:"success",onClick:e=>{m(e,"notice_type")},children:(0,a.__)("Success","wdesignkit")}),(0,Be.jsx)("option",{value:"danger",onClick:e=>{m(e,"notice_type")},children:(0,a.__)("Danger","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.dismissible&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Dismissible","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to prevent deleting the first notice.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.dismissible,onChange:e=>{m(e,"dismissible")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),g?.deprecatedValue&&"elementor"===i&&(0,Be.jsx)(Be.Fragment,{children:g?.deprecatedValue.map(((e,i)=>(0,Be.jsx)(Be.Fragment,{children:Object.entries(e).map((([e,l])=>(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:e}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15",alt:"info icon"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Enter value for "+e+".","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:l,type:"text",onChange:a=>{((e,a,i,n)=>{let l=[...t.cardData];if(s.current.repeater)var r=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else r=l[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];[...r.deprecatedValue][i][n]=e.target.value,t.addToCarthandler(l)})(a,0,i,e)}})]})},i),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]})))})))}),null!=g?.rows&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Rows","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Number of rows.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-number-inp",min:0,value:g.rows,type:"number",onChange:e=>{m(e,"rows")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.defaultCount&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Default Count","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("default Count of Repeater item.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-number-inp",min:1==g.prevent_empty?1:0,value:g.defaultCount,type:"number",onChange:e=>{m(e,"defaultCount")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.show_unit&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("label",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Show Unit","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of available CSS units like px, em, rem, %, deg, vh or custom.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.show_unit,onChange:e=>{m(e,"show_unit")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.size_units&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsx)("div",{className:"wp-block-wrapper",children:(0,Be.jsxs)("div",{className:"wb-number-setting",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Size Unit & Range","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of ranges for each register size.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-select-unit-label",children:[(0,Be.jsx)("label",{style:{width:"20%"}}),(0,Be.jsxs)("div",{className:"wb-select-unit-content",children:[(0,Be.jsx)("label",{children:(0,a.__)("Min","wdesignkit")}),(0,Be.jsx)("label",{children:(0,a.__)("Max","wdesignkit")}),(0,Be.jsx)("label",{children:(0,a.__)("Step","wdesignkit")})]})]}),g.size_units.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wb-select-unit",children:[(0,Be.jsxs)("div",{className:"wb-select-unit-checkbox",children:[(0,Be.jsx)("input",{className:"wb-select-unit-inp",id:`wb-${e.type}-select`,type:"checkbox",checked:1==e.checked,onChange:e=>{m(e,"size_units",t,"checked")}}),(0,Be.jsx)("label",{style:{opacity:1==e.checked?"1":"0.5"},htmlFor:`wb-${e.type}-select`,children:e.type})]}),(0,Be.jsxs)("div",{className:"wb-unit-range-content",children:[(0,Be.jsx)("div",{className:"wb-num-feild",children:(0,Be.jsx)("input",{className:"wb-num-inp min",disabled:!e.checked,value:e.min,type:"number",onChange:e=>{m(e,"size_units",t,"min")}})}),(0,Be.jsx)("div",{className:"wb-num-feild",children:(0,Be.jsx)("input",{className:"wb-num-inp max",disabled:!e.checked,value:e.max,type:"number",onChange:e=>{m(e,"size_units",t,"max")}})}),(0,Be.jsx)("div",{className:"wb-num-feild",children:(0,Be.jsx)("input",{className:"wb-num-inp step",disabled:!e.checked,value:e.step,type:"number",onChange:e=>{m(e,"size_units",t,"step")}})})]})]})},t)))]})})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.dimension_units&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-dimension-unit",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Size Unit","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of available CSS units like px, em, rem, %, deg, vh or custom.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-dimension-unit",children:[(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"px",type:"checkbox",checked:!!g.dimension_units.includes("px"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"px"})]}),(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"%",type:"checkbox",checked:!!g.dimension_units.includes("%"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"%"})]}),(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"deg",type:"checkbox",checked:!!g.dimension_units.includes("deg"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"deg"})]}),(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"rem",type:"checkbox",checked:!!g.dimension_units.includes("rem"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"rem"})]}),(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"em",type:"checkbox",checked:!!g.dimension_units.includes("em"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"em"})]}),(0,Be.jsxs)("div",{className:"wb-units",children:[(0,Be.jsx)("input",{value:"vh",type:"checkbox",checked:!!g.dimension_units.includes("vh"),onChange:e=>{m(e,"dimension_units")}}),(0,Be.jsx)("label",{children:"vh"})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.label_on&&null!=g.label_off&&"elementor"==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-block-name",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Switcher Label","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label for the “unchecked” state and “checked” state.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-switcher",children:[(0,Be.jsxs)("div",{className:"wb-switcher-lable",children:[(0,Be.jsx)("div",{className:"wb-block-swither-title",children:(0,a.__)("Switch is on","wdesignkit")}),(0,Be.jsx)("input",{className:"wb-switcher-lable-inp",value:g.label_on,type:"text",placeholder:"Yes",onChange:e=>{m(e,"label_on")}})]}),(0,Be.jsxs)("div",{className:"wb-switcher-lable",children:[(0,Be.jsx)("div",{className:"wb-block-swither-title",children:(0,a.__)("Switch is off","wdesignkit")}),(0,Be.jsx)("input",{className:"wb-switcher-lable-inp",value:g.label_off,type:"text",placeholder:"No",onChange:e=>{m(e,"label_off")}})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.url_options&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Options","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Turn on for url_options value.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.url_options,onChange:e=>{m(e,"url_options")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.is_external&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Is External","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to open the url in the same tab or in a new one.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.is_external,onChange:e=>{m(e,"is_external")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.nofollow&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("No Follow","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to add nofollow attribute.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.nofollow,onChange:e=>{m(e,"nofollow")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.custom_attributes&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Attributes","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Custom attributes string that come as a string of comma-delimited key|value pairs.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.custom_attributes,type:"text",onChange:e=>{m(e,"custom_attributes")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),g&&null!=g.return_value&&"bricks"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Return Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The value returned when checked.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.return_value,type:"text",onChange:e=>{m(e,"return_value")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.media_types&&"bricks"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-block-name",children:[(0,Be.jsxs)("div",{className:"wb-block-title wkit-bottom-space",children:[(0,Be.jsx)("span",{children:(0,a.__)("Media Types","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Supported media types. Available values are image, video, and svg.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-option-select",children:[(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==g.media_types.indexOf('"image"'),onChange:e=>{m(e,"media_types","image")}}),(0,Be.jsx)("label",{htmlFor:"select-1",children:"gutenberg"==i?(0,a.__)("Image & Svg","wdesignkit"):(0,a.__)("Image","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==g.media_types.indexOf('"video"'),onChange:e=>{m(e,"media_types","video")}}),(0,Be.jsx)("label",{htmlFor:"select-2",children:(0,a.__)("Video","wdesignkit")})]}),"gutenberg"!==i&&(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:-1!==g.media_types.indexOf('"svg"'),onChange:e=>{m(e,"media_types","svg")}}),(0,Be.jsx)("label",{htmlFor:"select-3",children:(0,a.__)("Svg","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.skin&&"gutenberg"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wb-skin-content",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Types","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("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.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.skin}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"media",onClick:e=>{m(e,"skin")},children:(0,a.__)("Media","wdesignkit")}),(0,Be.jsx)("option",{value:"inline",onClick:e=>{m(e,"skin")},children:(0,a.__)("Inline","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.nha_array&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wb-block-type",children:[(0,Be.jsxs)("div",{className:"wkit-wb-option",children:[(0,Be.jsx)("span",{children:(0,a.__)("Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the NHA type.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-NHA-option-select",children:[(0,Be.jsx)("div",{className:"wb-select-component",children:(0,Be.jsxs)("div",{className:"wb-select-component-content",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:!(!g.nha_array[0]||null===g?.nha_array?.[0]),onChange:e=>{m(e,"nha_array",0)}}),(0,Be.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=g?.nha_array_lable?.[0]?g?.nha_array_lable?.[0]:c(g?.nha_array?.[0],"Normal"),onChange:e=>{m(e,"nha_array_name",0)},onBlur:e=>{g?.nha_array_lable?.[0]||m(e,"nha_null_name",0)}})]})}),(0,Be.jsx)("div",{className:"wb-select-component",children:(0,Be.jsxs)("div",{className:"wb-select-component-content",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:!(!g.nha_array[1]||null===g?.nha_array?.[1]),onChange:e=>{m(e,"nha_array",1)}}),(0,Be.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=g?.nha_array_lable?.[1]?g?.nha_array_lable?.[1]:c(g?.nha_array?.[1],"Hover"),onChange:e=>{m(e,"nha_array_name",1)},onBlur:e=>{g?.nha_array_lable?.[1]||m(e,"nha_null_name",1)}})]})}),(0,Be.jsx)("div",{className:"wb-select-component",children:(0,Be.jsxs)("div",{className:"wb-select-component-content",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:!(!g?.nha_array?.[2]||null===g.nha_array[2]),onChange:e=>{m(e,"nha_array",2)}}),(0,Be.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=g?.nha_array_lable?.[2]?g.nha_array_lable[2]:c(g?.nha_array?.[2],"Active"),onChange:e=>{m(e,"nha_array_name",2)},onBlur:e=>{g?.nha_array_lable?.[2]||m(e,"nha_null_name",2)}})]})})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.types&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wb-block-type",children:[(0,Be.jsxs)("div",{className:"wkit-wb-option wkit-bottom-space",children:[(0,Be.jsx)("span",{children:(0,a.__)("Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The specific background types to use. Available types are classic, gradient and video. Default is an empty array, including all the types.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-option-select",children:["elementor"==i&&(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==g.types.indexOf('"classic"'),onChange:e=>{m(e,"types","classic")}}),(0,Be.jsx)("label",{htmlFor:"select-1",children:(0,a.__)("Classic","wdesignkit")})]}),"gutenberg"==i&&(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==g.types.indexOf('"classic"'),onChange:e=>{m(e,"types","classic")}}),(0,Be.jsx)("label",{htmlFor:"select-1",children:(0,a.__)("Color & Image","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-select-component",children:[(0,Be.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==g.types.indexOf('"gradient"'),onChange:e=>{m(e,"types","gradient")}}),(0,Be.jsx)("label",{htmlFor:"select-2",children:(0,a.__)("Gradient","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.options&&"headingtags"!=g.type&&"cpt"!=g.type&&!t.controller.controller.cpt_controller&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-options-main",children:[(0,Be.jsxs)("div",{className:"wkit-wb-option",children:[(0,Be.jsx)("span",{children:(0,a.__)("Drop Down Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of key => value pairs: [ 'key' => 'value', ... ]","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-options-content",children:[(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Value","wdesignkit")}),(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Options","wdesignkit")}),"styleimage"==g.type&&(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Svg","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-option-feild",children:[g.options.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wb-option",children:[(0,Be.jsx)("input",{className:`wb-options-inp val ${p()}`,type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{m(e,"options_value",t)}}),(0,Be.jsx)("input",{className:`wb-options-inp opt ${p()}`,opt:!0,type:"text",value:e.lable,placeholder:`label-${t}`,onChange:e=>{m(e,"options_lable",t)}}),"styleimage"==g.type&&(0,Be.jsx)("input",{className:`wb-options-inp opt ${p()}`,opt:!0,type:"text",value:e.svg,placeholder:`svg-${t}`,onChange:e=>{m(e,"options_svg",t)}}),(0,Be.jsx)("div",{className:"wb-option-close",onClick:()=>{h(t,"options")},children:(0,Be.jsx)("img",{className:"popup-inp-remove-icon",src:n+"assets/images/wb-svg/popup-remove.svg"})})]})},t))),(0,Be.jsxs)("div",{className:"wb-add-option",onClick:()=>{u("options",g.options.length)},children:[(0,Be.jsx)("svg",{className:"wb-addOption-icon",width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})}),(0,Be.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.align_option&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-options-main",children:[(0,Be.jsxs)("div",{className:"wkit-wb-option",children:[(0,Be.jsx)("span",{children:(0,a.__)("Options","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of key => value pairs: [ 'key' => 'value', ... ]","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-options-content",children:[(0,Be.jsx)("label",{className:"wb-options-lable",style:{width:"25%"},children:(0,a.__)("Label","wdesignkit")}),(0,Be.jsx)("label",{className:"wb-options-lable",style:{width:"25%"},children:(0,a.__)("Value","wdesignkit")}),(0,Be.jsx)("label",{className:"wb-options-lable",style:{width:"45%"},children:(0,a.__)("Icon","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-option-feild",children:[g.align_option.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wb-option wkit-wb-align-options",children:[(0,Be.jsx)("input",{className:`wb-options-inp val-${p()}`,style:{width:"25%"},type:"text",value:e.align_lable,placeholder:`label-${t}`,onChange:e=>{m(e,"align_lable",t)}}),(0,Be.jsx)("input",{className:`wb-options-inp opt-${p()}`,style:{width:"25%"},type:"text",value:e.align_value,placeholder:`value-${t}`,onChange:e=>{m(e,"align_value",t)}}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},style:{minWidth:"40%"},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[["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(e.align_icon)?"align_title"==e.align_icon||"align_svg"==e.align_icon?(0,Be.jsx)("input",{type:"text",className:"wkit-wb-choose-inp",placeholder:e.align_icon,value:e[e.align_icon],onChange:a=>{m(a,e.align_icon,t)},style:{width:"100%"}}):(0,Be.jsx)("label",{className:"wkit-wb-choose-inp",children:e.align_icon}):(0,Be.jsx)("input",{type:"text",className:"wkit-wb-choose-inp",value:e.align_icon,placeholder:"custome-icon",onChange:e=>{m(e,"align_icon",t)},style:{width:"100%"}}),(0,Be.jsx)("img",{className:"wkit-wb-choose-img",src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"eicon-text-align-left",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Align-Left","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-text-align-right",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Align-Right","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-text-align-center",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Align-Center","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-text-align-justify",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Align-Justify","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-arrow-up",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Up-Arrow","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-arrow-down",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Down-Arrow","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-arrow-right",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Right-Arrow","wdesignkit")}),(0,Be.jsx)("option",{value:"eicon-arrow-left",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Left-Arrow","wdesignkit")}),(0,Be.jsx)("option",{value:"",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Custom Icon","wdesignkit")}),"gutenberg"==i&&(0,Be.jsxs)(us,{children:[(0,Be.jsx)("option",{value:"align_title",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Custom Title","wdesignkit")}),(0,Be.jsx)("option",{value:"align_svg",onClick:e=>{m(e,"align_icon",t)},children:(0,a.__)("Custom Svg","wdesignkit")})]})]})]}),(0,Be.jsx)("div",{className:"wb-option-close",onClick:()=>{h(t,"align_option")},children:(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/popup-remove.svg"})})]})},t))),(0,Be.jsxs)("div",{className:"wb-add-option",onClick:()=>{u("align_option",g.align_option.length)},children:[(0,Be.jsx)("svg",{className:"wb-addOption-icon",width:"13",height:"13",viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})}),(0,Be.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.alignType&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Align Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the Align CSS property you want to use.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.alignType}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"text-align",onClick:e=>{m(e,"alignType")},children:(0,a.__)("text-align","wdesignkit")}),(0,Be.jsx)("option",{value:"justify-content",onClick:e=>{m(e,"alignType")},children:(0,a.__)("justify-content","wdesignkit")}),(0,Be.jsx)("option",{value:"align-items",onClick:e=>{m(e,"alignType")},children:(0,a.__)("align-items","wdesignkit")}),(0,Be.jsx)("option",{value:"flex-direction",onClick:e=>{m(e,"alignType")},children:(0,a.__)("flex-direction","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.number_setting&&"gutenberg"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:`wb-block-name ${g.name}`,children:[(0,Be.jsx)("div",{className:"wb-block-title",children:"Number Setting"}),(0,Be.jsxs)("div",{className:"wb-number-setting-content",children:[(0,Be.jsxs)("div",{className:"wb-num-feild",children:[(0,Be.jsxs)("div",{className:"wb-number-setting-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Min","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The minimum number ( only affects the spinners, the user can still type a lower value ).","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:`wb-num-inp ${g.name}`,id:g.name,name:g.name,min:!0,value:g.number_setting.min,type:"number",onChange:e=>{m(e,"num-min")}})]}),(0,Be.jsxs)("div",{className:"wb-num-feild",children:[(0,Be.jsxs)("div",{className:"wb-number-setting-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Max","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext wkit-center-side-tooltip",children:(0,a.__)("The minimum and maximum number (only affects the spinners, the user can still type a lower value).","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-num-inp max",value:g.number_setting.max,type:"number",onChange:e=>{m(e,"num-max")}})]}),(0,Be.jsxs)("div",{className:"wb-num-feild",children:[(0,Be.jsxs)("div",{className:"wb-number-setting-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Step","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info-gray.svg",width:"13"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext wkit-right-side-tooltip",children:(0,a.__)("The intervals value that will be incremented or decremented when using the controls' spinners. Default is empty, the value will be incremented by 1.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-num-inp step",value:g.number_setting.step,type:"number",onChange:e=>{m(e,"num-step")}})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.language&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wb-language-setting",children:[(0,Be.jsx)("div",{className:"wb-block-title",children:(0,Be.jsxs)("div",{className:"wkit-wb-black-division",children:[(0,Be.jsx)("span",{children:(0,a.__)("Code","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label.","wdesignkit")})]})]})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{style:{textTransform:"uppercase"},children:g.language}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"html",onClick:e=>{m(e,"language")},children:(0,a.__)("HTML","wdesignkit")}),(0,Be.jsx)("option",{value:"css",onClick:e=>{m(e,"language")},children:(0,a.__)("CSS","wdesignkit")}),(0,Be.jsx)("option",{value:"javascript",onClick:e=>{m(e,"language")},children:(0,a.__)("JAVASCRIPT","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.exclude_inline_options&&"inline"==g.skin&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Exclude Inline Options","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Used with the inline skin only, to hide an option (Icon Library/SVG) from the inline icon control's buttons.","wdesignkit")})]})]}),(0,Be.jsxs)("select",{className:`wb-category-option ${g.name}`,onChange:e=>{m(e,"exclude_inline_options")},children:[(0,Be.jsx)("option",{value:"none",selected:"none"===g.exclude_inline_options,children:(0,a.__)("None","wdesignkit")}),(0,Be.jsx)("option",{value:"icon",selected:"icon"===g.exclude_inline_options,children:(0,a.__)("Icon","wdesignkit")}),(0,Be.jsx)("option",{value:"svg",selected:"svg"===g.exclude_inline_options,children:(0,a.__)("Svg","wdesignkit")})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.separator&&"bricks"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Separator","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("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.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.separator}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"default",onClick:e=>{m(e,"separator")},children:(0,a.__)("Default","wdesignkit")}),(0,Be.jsx)("option",{value:"before",onClick:e=>{m(e,"separator")},children:(0,a.__)("Before","wdesignkit")}),(0,Be.jsx)("option",{value:"after",onClick:e=>{m(e,"separator")},children:(0,a.__)("After","wdesignkit")})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.selectors&&null!=g.selector_value&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsx)("div",{className:"wp-block-wrapper",children:(0,Be.jsxs)("div",{className:"wb-selector-content wb-selector-value",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Selectors Value","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Enter CSS properties (e.g., color, font-size, background-color) to apply to the selected class or ID.","wdesignkit")})]})]}),(0,Be.jsx)("input",{type:"text",value:g.selector_value,className:"wb-block-text-inp",onChange:e=>{m(e,"selector_value")}})]})})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"}),(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsx)("div",{className:"wp-block-wrapper",children:(0,Be.jsxs)("div",{className:"wb-selector-content wb-selector-class",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[" ",(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Add a CSS class (e.g., .my-class) or ID (e.g., #my-id) to target and style elements.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.selectors,type:"text",onChange:e=>{m(e,"selectors")}})]})})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.selectors&&"align"==g.type&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsx)("div",{className:"wp-block-wrapper",children:(0,Be.jsxs)("div",{className:"wb-selector-content wb-selector-class",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[" ",(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Add a CSS class (e.g., .my-class) or ID (e.g., #my-id) to target and style elements.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.selectors,type:"text",onChange:e=>{m(e,"selectors")}})]})})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.selector&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Add a CSS class (e.g., .my-class) or ID (e.g., #my-id) to target and style elements.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.selector,type:"text",onChange:e=>{m(e,"selector")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.multiple&&"bricks"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Multiple","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to allow multiple value selection.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.multiple,onChange:e=>{m(e,"multiple")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.alpha&&"bricks"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Alpha","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to allow alpha channel.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.alpha,onChange:e=>{m(e,"alpha")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.global&&"bricks"!=i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Global Color","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Default color in RGB, RGBA, or HEX format.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.global,onChange:e=>{m(e,"global")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.prevent_empty&&"bricks"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Prevent Empty","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to prevent deleting the first repeater field. To keep at least one repeater field.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.prevent_empty,onChange:e=>{m(e,"prevent_empty")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.responsive&&("gutenberg"!==i||"number"!==g.type)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("label",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Responsive","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Switch to Mobile, Laptop, Tablet mode","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",style:"slider"==g?.type&&"gutenberg"==i&&1==g?.show_unit?{opacity:"0.5"}:{},children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.responsive,onChange:e=>{m(e,"responsive")},disabled:"slider"==g?.type&&"gutenberg"==i&&1==g?.show_unit}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.sanitizer_value&&"gutenberg"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Sanitize","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to apply the Sanitization.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{className:"wkit-wb-choose-inp",style:{textTransform:"none"},children:l.includes(g?.sanitizer_dropdown_value)?"wdk_sanitizer":g?.sanitizer_dropdown_value}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:["esc_url","esc_attr","esc_html","wp_kses_post","sanitize_text_field","wdk_sanitizer","custom","none"].map(((e,t)=>(0,Be.jsxs)("option",{value:e,onClick:e=>{m(e,"sanitizer_dropdown_value")},children:[(0,a.__)(`${e}`,"wdesignkit")," "]},t)))})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.sanitizer_value&&"gutenberg"!==i&&l.includes(g?.sanitizer_dropdown_value)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsx)("div",{className:"wb-block-title",children:(0,Be.jsx)("span",{children:(0,a.__)("WDK Sanitize","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{className:"wkit-wb-choose-inp",style:{textTransform:"none"},children:g?.sanitizer_dropdown_value}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:l.map(((e,t)=>(0,Be.jsxs)("option",{value:e,onClick:e=>{m(e,"sanitizer_dropdown_value")},children:[(0,a.__)(`${e}`,"wdesignkit")," "]},t)))})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),"custom"==g?.sanitizer_dropdown_value&&"gutenberg"!==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wb-block-texarea",children:[(0,Be.jsxs)("span",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Add Custom Sanitizer","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field for adding Custom Sanitizer.","wdesignkit")})]})]}),(0,Be.jsx)("textarea",{className:"wb-block-text-inp",value:g.sanitizer_value,type:"textarea",onChange:e=>{m(e,"sanitizer_value")}})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),(null!=g?.condition_value?.values||o)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Conditions","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[" ",(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to apply the conditions.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:o?d?.conditions||!1:g?.conditions,onChange:e=>{m(e,"conditions")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(g&&g.conditions&&1==g.conditions||o&&1==d?.conditions)&&(0,Be.jsxs)(Be.Fragment,{children:["bricks"!=i&&(0,Be.jsxs)("div",{className:"wb-condition-relation",children:[(0,Be.jsx)("label",{className:"wb-relation-lable",children:(0,a.__)("Relation of Condition","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{style:{textTransform:"uppercase"},children:o?d?.condition_value?.relation||"OR":g.condition_value.relation}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"or",onClick:e=>{m(e,"condition_relation")},children:(0,a.__)("OR","wdesignkit")}),(0,Be.jsx)("option",{value:"and",onClick:e=>{m(e,"condition_relation")},children:(0,a.__)("AND","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wb-options-main",children:[(0,Be.jsxs)("div",{className:"wb-options-content",children:[(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Name","wdesignkit")}),(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Operator","wdesignkit")}),(0,Be.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Value","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-option-feild",children:[o?d?.condition_value?.values?.map(((e,t)=>{let a=d?.condition_value?.values.length-1===t;return(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wb-option",children:[(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.name,placeholder:`name-${t}`,onChange:e=>{m(e,"conditions_name",t)}})}),(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},style:{width:"100%"},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:e.operator}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content "+(a?"wkit-wb-last-cd":""),children:[(0,Be.jsx)("option",{value:"==",onClick:e=>{m(e,"conditions_operator",t)},children:"=="}),(0,Be.jsx)("option",{value:"!=",onClick:e=>{m(e,"conditions_operator",t)},children:"!="})]})]})}),(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{m(e,"conditions_value",t)}})}),(0,Be.jsx)("div",{className:"wb-option-close",onClick:()=>{h(t,"conditions")},children:(0,Be.jsx)("img",{className:"popup-inp-remove-icon",src:n+"assets/images/wb-svg/popup-remove.svg"})})]})},t)})):g?.condition_value?.values?.map(((e,t)=>(0,Be.jsx)(us,{children:(0,Be.jsxs)("div",{className:"wb-option",children:[(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.name,placeholder:`name-${t}`,onChange:e=>{m(e,"conditions_name",t)}})}),(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},style:{width:"100%"},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:e.operator}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"==",onClick:e=>{m(e,"conditions_operator",t)},children:"=="}),(0,Be.jsx)("option",{value:"!=",onClick:e=>{m(e,"conditions_operator",t)},children:"!="})]})]})}),(0,Be.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,Be.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{m(e,"conditions_value",t)}})}),(0,Be.jsx)("div",{className:"wb-option-close",onClick:()=>{h(t,"conditions")},children:(0,Be.jsx)("img",{className:"popup-inp-remove-icon",src:n+"assets/images/wb-svg/popup-remove.svg"})})]})},t))),(0,Be.jsxs)("div",{className:"wb-add-option",onClick:()=>{u("conditions")},children:[(0,Be.jsx)("svg",{className:"wb-addOption-icon",xmlns:"http://www.w3.org/2000/svg",width:"13",height:"13",viewBox:"0 0 13 13",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04167 1H6.95833V6.04167H12V6.95833H6.95833V12H6.04167V6.95833H1V6.04167H6.04167V1Z"})}),(0,Be.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]})]}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),["text","textarea","wysiwyg","code","media"].includes(g?.type)&&"elementor"==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("AI Support","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Want AI Support or not.","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.ai_support,onChange:e=>{m(e,"ai_support")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.dynamic&&("elementor"===i||"gutenberg"===i&&"slider"!==g.type)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("label",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Dynamic","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[" ",(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Turn on for dynamic value","wdesignkit")})]})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:g.dynamic,onChange:e=>{m(e,"dynamic")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.input_type&&"elementor"==i&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Input Type","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The input field type. Available values are all HTML5 supported types.","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{_(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:g.input_type}),(0,Be.jsx)("img",{src:n+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,Be.jsx)("option",{value:"text",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Text","wdesignkit")}),(0,Be.jsx)("option",{value:"number",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Number","wdesignkit")}),(0,Be.jsx)("option",{value:"color",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Color","wdesignkit")}),(0,Be.jsx)("option",{value:"date",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Date","wdesignkit")}),(0,Be.jsx)("option",{value:"datetime-local",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Datetime-Local","wdesignkit")}),(0,Be.jsx)("option",{value:"month",onClick:e=>{m(e,"input_type")},children:(0,a.__)("Month","wdesignkit")}),(0,Be.jsxs)("option",{value:"time",onClick:e=>{m(e,"input_type")},children:[(0,a.__)("Time","wdesignkit")," "]}),(0,Be.jsxs)("option",{value:"week",onClick:e=>{m(e,"input_type")},children:[(0,a.__)("Week","wdesignkit")," "]})]})]})]})}),(0,Be.jsx)("hr",{className:"wb-controller-hr"})]}),null!=g?.controlClass&&(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)("div",{className:"wb-block-name",children:(0,Be.jsxs)("div",{className:"wp-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wb-block-title",children:[(0,Be.jsx)("span",{children:(0,a.__)("Classes","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,Be.jsxs)("span",{className:"wkit-wb-tooltiptext",children:[(0,a.__)("Add custom classes to control wrapper in the panel. ","wdesignkit"),(0,Be.jsx)("a",{href:"https://learn.wdesignkit.com/docs/use-control-classes-to-style-ui-elements/",className:"wkit-ct-doc-link",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,Be.jsx)("input",{className:"wb-block-text-inp",value:g.controlClass,type:"text",onChange:e=>{m(e,"controlClass")}})]})})}),(e=>{let t=Yi[e?.type];if((t?.videoLink||t?.document)&&!wdkitData?.wdkit_white_label?.help_link)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("hr",{className:"wb-controller-hr"}),(0,Be.jsxs)("div",{className:"wdkit-block-link-container",children:[t?.videoLink&&(0,Be.jsxs)("div",{className:"wdkit-block-cont-link",onClick:()=>window.open(t?.videoLink,"_blank"),children:[(0,Be.jsx)("svg",{className:"wdkit-block-cont-svg",width:"16",height:"16",viewBox:"0 0 14 14",fill:"white",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M11.0924 2.04688H2.90762C1.30178 2.04688 0 3.34866 0 4.9545V9.04601C0 10.6518 1.30178 11.9536 2.90762 11.9536H11.0924C12.6982 11.9536 14 10.6518 14 9.04601V4.9545C14 3.34866 12.6982 2.04688 11.0924 2.04688ZM9.12598 7.19932L5.2977 9.02518C5.19569 9.07383 5.07786 8.99945 5.07786 8.88645V5.12061C5.07786 5.006 5.19879 4.93172 5.30101 4.98353L9.12929 6.92351C9.24311 6.98118 9.24113 7.14441 9.12598 7.19932Z",fill:"red"})}),(0,Be.jsx)("span",{children:(0,a.__)("Watch Video","wdesignkit")})]}),t?.document&&(0,Be.jsxs)("div",{className:"wdkit-block-cont-link",onClick:()=>window.open(t?.document,"_blank"),children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.89844 14H11.1016C11.7801 14 12.332 13.448 12.332 12.7695V4.10156H9.46094C8.78243 4.10156 8.23047 3.5496 8.23047 2.87109V0H2.89844C2.21993 0 1.66797 0.551961 1.66797 1.23047V12.7695C1.66797 13.448 2.21993 14 2.89844 14ZM4.53906 5.76953H9.46094C9.68764 5.76953 9.87109 5.95298 9.87109 6.17969C9.87109 6.40639 9.68764 6.58984 9.46094 6.58984H4.53906C4.31236 6.58984 4.12891 6.40639 4.12891 6.17969C4.12891 5.95298 4.31236 5.76953 4.53906 5.76953ZM4.53906 7.41016H9.46094C9.68764 7.41016 9.87109 7.59361 9.87109 7.82031C9.87109 8.04702 9.68764 8.23047 9.46094 8.23047H4.53906C4.31236 8.23047 4.12891 8.04702 4.12891 7.82031C4.12891 7.59361 4.31236 7.41016 4.53906 7.41016ZM4.53906 9.05078H9.46094C9.68764 9.05078 9.87109 9.23423 9.87109 9.46094C9.87109 9.68764 9.68764 9.87109 9.46094 9.87109H4.53906C4.31236 9.87109 4.12891 9.68764 4.12891 9.46094C4.12891 9.23423 4.31236 9.05078 4.53906 9.05078ZM4.53906 10.6914H7.82031C8.04702 10.6914 8.23047 10.8749 8.23047 11.1016C8.23047 11.3283 8.04702 11.5117 7.82031 11.5117H4.53906C4.31236 11.5117 4.12891 11.3283 4.12891 11.1016C4.12891 10.8749 4.31236 10.6914 4.53906 10.6914Z",fill:"black"}),(0,Be.jsx)("path",{d:"M9.46094 3.28116H12.0917L9.05078 0.240234V2.871C9.05078 3.0973 9.23464 3.28116 9.46094 3.28116Z",fill:"black"})]}),(0,Be.jsx)("span",{children:(0,a.__)("Read Document","wdesignkit")})]})]})]})})(g)]})})});var C})),_s=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["post type","custom post","selecttemplate","posttype","post listing","postlisting"]},{name:"product_listing",label:"Product Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["product listing","product","listing"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{className:"wkit-wb-widget-img",width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4H5V8L7 8V4H9V8V10V14H7V10H5V14H3V10V8V4ZM14 4H16V6H14V14H12V6H10V4H12H14ZM22 10.6667L20 4H18V14H20V10.6667L21 14H23L24 10.6667V14H26V4H24L22 10.6667ZM28 4H30V12H33V14H30H28V12V4Z"}),(0,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]}]}}],Cs=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["post type","custom post","selecttemplate","posttype","post listing","postlisting"]},{name:"selecttemplate",label:"Select Template",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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","select template"]},{name:"product_listing",label:"Product Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["product listing","product","listing"]},{name:"taxonomy",label:"Taxonomy",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["taxonomy","category","tags"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 4H5V8L7 8V4H9V8V10V14H7V10H5V14H3V10V8V4ZM14 4H16V6H14V14H12V6H10V4H12H14ZM22 10.6667L20 4H18V14H20V10.6667L21 14H23L24 10.6667V14H26V4H24L22 10.6667ZM28 4H30V12H33V14H30H28V12V4Z"}),(0,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]},{name:"preview",label:"Preview",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M23.847 11.5326C23.6326 11.2393 18.524 4.35107 11.9994 4.35107C5.4748 4.35107 0.365981 11.2393 0.151809 11.5323C-0.051254 11.8106 -0.051254 12.188 0.151809 12.4662C0.365981 12.7595 5.4748 19.6478 11.9994 19.6478C18.524 19.6478 23.6326 12.7595 23.847 12.4665C24.0503 12.1883 24.0503 11.8106 23.847 11.5326ZM11.9994 18.0654C7.19334 18.0654 3.03078 13.4935 1.79858 11.9989C3.02919 10.503 7.18303 5.93348 11.9994 5.93348C16.8052 5.93348 20.9675 10.5046 22.2002 12C20.9696 13.4958 16.8158 18.0654 11.9994 18.0654Z",fill:"black"}),(0,Be.jsx)("path",{d:"M11.9994 7.25217C9.3818 7.25217 7.25212 9.38185 7.25212 11.9994C7.25212 14.617 9.3818 16.7467 11.9994 16.7467C14.617 16.7467 16.7467 14.617 16.7467 11.9994C16.7467 9.38185 14.617 7.25217 11.9994 7.25217ZM11.9994 15.1643C10.2542 15.1643 8.83458 13.7446 8.83458 11.9994C8.83458 10.2543 10.2543 8.83463 11.9994 8.83463C13.7445 8.83463 15.1642 10.2543 15.1642 11.9994C15.1642 13.7446 13.7446 15.1643 11.9994 15.1643Z",fill:"black"})]}),keyword:["preview"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]}]}}],ks=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["post type","custom post","selecttemplate","posttype","postlisting"]},{name:"product_listing",label:"Product Listing",icon:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",children:[(0,Be.jsx)("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,Be.jsx)("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:["product listing","product","listing"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:(0,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 33L9 3H7V33H9ZM29 33L29 3H27L27 33H29Z"}),(0,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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:vs}=wp.element,bs=Ji((e=>({widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(ts(t)),addToActiveController:t=>e(ns(t)),addToActiveSection:t=>e(ls(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const[i,s]=(0,e.useState)(""),[n,l]=(0,e.useState)("Data Controls");var r=wdkitData.WDKIT_URL,o="";"elementor"==t.widgetdata.type?o=Cs:"gutenberg"==t.widgetdata.type?o=_s:"bricks"==t.widgetdata.type&&(o=ks);const d=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e};var c={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 p=(e,i)=>{var s=t.controller.controller;if(s?.controller_type)if("repeater"==e||"popover"==e||"normalhover"==e||"cpt"==e||"product_listing"==e||"taxonomy"==e)t.wdkit_set_toast([(0,a.__)("Not Valid","wdesignkit"),(0,a.__)("You Can Not put this controller here","wdesignkit"),"","danger"]);else{var n=Gi[e.toLowerCase()],l=Object.assign({},n,{name:e.toLowerCase()+"_"+d()}),r=[...t.cardData],o=r[0][t.array_type][i].inner_sec[s.compo_id]?.fields;if(s?.nha_type){let e=Object.assign({},l,{key:s?.nha_type});o.push(e),t.addToCarthandler(r)}else o.push(l),t.addToCarthandler(r)}else{let a=d();const s=Gi[e.toLowerCase()];let n=[];"cpt"!=e.toLowerCase()&&"product_listing"!=e.toLowerCase()&&"taxonomy"!=e.toLowerCase()||s?.fields.length>0&&s.fields.map((e=>{let t=Object.assign({},e,{name:e.name+"_"+a});n.push(t)}));const l=Object.assign({},s,{name:e.toLowerCase()+"_"+a,unique_id:a,fields:n});let r=[...t.cardData];r?.[0]?.[t.array_type]?.[i]?.inner_sec&&r?.[0]?.[t.array_type]?.[i]?.inner_sec.push(l),t.addToCarthandler(r)}},w=e=>{let a=[...t.cardData];var i=a[0][t.array_type];i.length>0?t.section_id.sec_id>-1?p(e,t.section_id.sec_id):(p(e,i.length-1),t.addToActiveSection({sec_id:Number(i.length-1),array_type:t.array_type})):(i.push(c),p(e,0),t.addToCarthandler(a),t.addToActiveSection({sec_id:0,array_type:t.array_type}))};return(0,Be.jsxs)("div",{className:"wkit-wb-components",children:[(0,Be.jsx)("div",{className:"wkit-wb-search-bar",children:(0,Be.jsx)("input",{className:"wkit-wb-search-input",type:"text",placeholder:"Search",style:{backgroundImage:`url(${r}assets/images/wb-svg/editor-search.svg)`},onChange:e=>{s(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,Be.jsx)("div",{className:"wkit-wb-controllers",children:o.length>0&&Object.values(o[0]).map(((e,t)=>(e.Name&&e.Name,(0,Be.jsxs)(vs,{children:[0!=t&&(0,Be.jsx)("hr",{className:"wkit-wb-horizontal-line"}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-heading",onClick:t=>{var a;a=e.Name,l(n==a?"":a)},children:[(0,Be.jsx)("img",{className:"wb-component-btn "+(n==e.Name?"wkit-wb-rotate-icon":""),src:r+"assets/images/wb-svg/controller-icon.svg",onClick:e=>{e.target.parentElement.click()}}),(0,Be.jsx)("span",{onClick:e=>{e.target.parentElement.click()},children:e.Name})]}),(0,Be.jsx)("div",{className:n==e.Name?"wkit-wb-all-widgets wkit-wb-blockshow":"wkit-wb-all-widgets",children:e.data.filter((e=>""==i||e.keyword.toString().includes(i.toLowerCase())?e:void 0)).map(((e,t)=>{let a=e.label,i=e.name,s=e.icon;return(0,Be.jsx)(vs,{children:(0,Be.jsxs)("div",{className:"wkit-wb-widget",draggable:!0,onDragStart:e=>{e.dataTransfer.setData("controller_id",i.toLowerCase().split(" ").join(""))},onDragEnd:e=>{setTimeout((()=>{e.target.classList.remove("drag")}),500)},onDoubleClick:e=>{w(i)},onTouchEndCapture:e=>{w(i)},"data-component":i.toLowerCase().split(" ").join(""),children:[s,(0,Be.jsx)("span",{className:"wkit-wb-widget-text",children:a})]})},t)}))})]},t))))})]})}));let xs=new AbortController;const fs=t=>{const[i,s]=(0,e.useState)({loader:!1,url:""});var n=wdkitData.WDKIT_URL,r=wdkitData?.wdkit_white_label?.plugin_logo||n+"assets/images/jpg/wdkit_loader.gif";const o=e=>{e.target.closest(".wkit-wb-live-preview")&&!e.target.closest(".wkit-popup-close-icon")||(xs&&xs.abort(),s({loader:!1,url:""}))},d=e=>{const i="active"===Object.values(t.plugin_status)[0],s="Draft"===t?.widget_data?.publish_type;return"tooltip"===e?!i&&s?(0,a.__)("To use live preview, install the required plugin and publish the widget.","wdesignkit"):i?s?(0,a.__)("Live preview is unavailable for draft widgets. Publish the widget to enable live preview.","wdesignkit"):"":(0,a.__)("Live preview requires the relevant plugin. Please install it first.","wdesignkit"):"btn"===e?!i||s:void 0};return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-preview-btn-container",children:[d("btn")&&(0,Be.jsx)("span",{className:"wkit-live-preview-tooltip",children:d("tooltip")}),(0,Be.jsx)("button",{className:"wkit-live-preview-btn "+(d("btn")?"wdkit-disable-preview":""),onClick:()=>{(()=>{let e={...i,loader:!0},a=document.querySelector(".wkit-widget-edit-setting-panel").querySelector(".wkit-wb-publish-btn ");s(e),a.classList.contains("wdkit-saved")&&a.classList.contains("wdkit-disable")||a.click();let n={widget_name:t?.widget_data?.name||!1,widget_id:t?.widget_data?.widget_id||!1,widget_type:t?.widget_data?.type||!1,page_data:"wb-"+t?.widget_data?.widget_id||0};xs=new AbortController;let r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","wkit_widget_preview"),r.append("widget_data",JSON.stringify(n)),l().post(ajaxurl,r,{signal:xs.signal}).then((a=>{if(a.data.success){if(s({...e,url:a.data.preview_url}),e={...e,url:a.data.preview_url},a.data.preview_url&&"elementor"===t?.widget_data?.type){let t=setInterval((()=>{let a=document.querySelector(".wkit-widget-iframe")?.contentWindow?.document;a.querySelector("#elementor-loading")&&(s({...e,loader:!1}),clearInterval(t))}),100)}}else s({...e,loader:!1})}))})()},children:(0,a.__)("Live Preview","wdesignkit")})]}),(i.url||i.loader)&&"bricks"!==t?.widget_data?.type&&(0,Be.jsx)("div",{id:"wkit-wb-popup-open",className:"wkit-overlay wkit-wb-preview-popup",onClick:e=>{o(e)},children:(0,Be.jsxs)("div",{className:"wkit-wb-live-preview",children:[(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{o(e)},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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.loader&&(0,Be.jsx)("div",{className:"wkit-loader-container",children:(0,Be.jsx)("img",{className:"wkit-loader-logo",src:r,alt:(0,a.__)("WDesignKit Logo","wdesignkit")})}),i.url&&(0,Be.jsx)("iframe",{className:"wkit-widget-iframe",referrerPolicy:"no-referrer",src:i.url,onLoad:e=>{(()=>{i?.loader&&s({...i,loader:!1});let e=document.querySelector(".wkit-widget-iframe").contentWindow.document;if("elementor"===t?.widget_data?.type){let t=e.querySelectorAll(".eui-1jjohtx-MuiButtonBase-root-MuiToggleButton-root");t?.forEach((e=>{e.disabled=!0}))}})()}})]})})]})},{Fragment:js}=wp.element,ys=Ji((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(is(t)),addTowidgethandler:t=>e(as(t)),addToActiveController:t=>e(ns(t)),addToEditor_code:t=>e(ss(t))})))((t=>{const[i,s]=(0,e.useState)("html"),[n,r]=(0,e.useState)(!1),[o,d]=(0,e.useState)(!1),[c,p]=(0,e.useState)(!1),[w,m]=(0,e.useState)(0),[g,u]=(0,e.useState)(0),[h,_]=(0,e.useState)(!1),[C,k]=(0,e.useState)(""),[v,b]=(0,e.useState)(""),[x,f]=(0,e.useState)(""),[j,y]=(0,e.useState)(""),[$,N]=(0,e.useState)(""),[L,M]=(0,e.useState)([]),H=(0,e.useRef)(),V=(0,e.useRef)(null),D=(0,e.useRef)(),S=((0,e.useRef)(),(0,e.useRef)());var Z=wdkitData.WDKIT_URL;let R=["align","hidden","switcher","slider","dimension","heading","rawhtml","divider","choose","color","background","border","boxshadow","textshadow","cssfilter","typography","preview","gradientcolor"];const B=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e};(0,e.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(),i=[];t.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{var t={};t[e.name]=e.defaultValue,i.push(t)}))})),i.map((e=>{let t=Object.keys(e);a=a.replaceAll("{{"+t+"}}",e[t])}))}),3e3)}),[]),(0,e.useEffect)((()=>{(async()=>{let e=await l()("https://api.cdnjs.com/libraries").then((e=>e?.data?.results?.length>0?e?.data?.results:[]));M(e)})()}),[]),(0,e.useEffect)((()=>{if(v){let e=[];L.filter((t=>{if(v.trim()&&t.latest?.includes(v.trim().replaceAll(" ","-").toLowerCase())||t.name?.includes(v.trim().replaceAll(" ","-").toLowerCase())){const a=t?.latest?.split(".").pop();C==a&&e.push(t)}})),setTimeout((()=>{y(e)}),300)}if(x){let e=[];L.filter((t=>{if(x.trim()&&t.latest?.includes(x.trim().replaceAll(" ","-").toLowerCase())||t.name?.includes(x.trim().replaceAll(" ","-").toLowerCase())){const a=t?.latest?.split(".").pop();C==a&&e.push(t)}})),setTimeout((()=>{N(e)}),300)}}),[v,x]);const E=e=>{let a=[...t.Editor_data];const i=a[0].css.filter((e=>""!==e));i.length>0?a[0].css=i:a[0].css=[""];const s=a[0].js.filter((e=>""!==e));s.length>0?a[0].js=s:a[0].js=[""],t.addTolinkhandler(a)};(0,e.useEffect)((()=>{var e=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),a=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"});e.session.on("change",(e=>{n(e)})),a.session.on("change",(e=>{n(e)})),s.session.on("change",(e=>{n(e)})),w!=e.getValue().length&&m(e.getValue().length),g!=e.session.getLength()&&u(e.session.getLength());const n=i=>{let n=[...t.Editor_code];(n&&n[0].html!=e.getValue()||n[0].css!=a.getValue()||n[0].js!=s.getValue())&&(n[0].html=e.getValue(),n[0].css=a.getValue(),n[0].js=s.getValue(),t.addToEditor_code(n),setTimeout((()=>{var a=e.getValue(),i=[];t.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{var t={};t[e.name]=e.defaultValue,i.push(t)}))})),i.map((e=>{let t=Object.keys(e);a=a.replaceAll("{{"+t+"}}",e[t])}))}),3e3))};n(),addEventListener("fullscreenchange",(e=>{e.preventDefault(),e.stopImmediatePropagation(),document.fullscreenElement?"wkit-editor-id"==document.fullscreenElement.id?r(!0):"wkit-livePreview-id"==document.fullscreenElement.id&&p(!0):(r(!1),p(!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-"+i&&(e.style.display="block")}))}));const O=(e,a)=>{var i=[...t.Editor_data];"css"==e?(i[0].css.push(""),t.addTolinkhandler(i)):"js"==e?(i[0].js.push(""),t.addTolinkhandler(i)):"search_data"===e&&(1==i[0][C].length&&""==i[0][C][0]?i[0][C][0]=a:i[0][C].push(a),"css"===C?b(""):f(""),t.addTolinkhandler(i))},A=(e,a,i)=>{let s=[...t.Editor_data];"css"==a?(s[0].css[i]=e.target.value,t.addTolinkhandler(s)):"js"==a&&(s[0].js[i]=e.target.value,t.addTolinkhandler(s))},T=(e,a)=>{let i=[...t.Editor_data];"css"==a?i[0].css.length>1?(i[0].css.splice(e,1),t.addTolinkhandler(i)):1==i[0].css.length&&(i[0].css[0]="",t.addTolinkhandler(i)):"js"==a&&(i[0].js.length>1?(i[0].js.splice(e,1),t.addTolinkhandler(i)):1==i[0].js.length&&(i[0].js[0]="",t.addTolinkhandler(i)))},P=e=>{if(e){let t=/\/(\d+\.\d+(\.\d+)?)(\/|\/.*)$/,a=e.match(t);return a?a[1]:null}},W=(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"))?(_(""),k(""),E(),b(""),f("")):"click"==t&&(_(""),k(""))},F=(e,a)=>{let i=[...t.Editor_data];"js"==a?H.current<e?(i[0].js.splice(e+1,0,i[0].js[H.current]),i[0].js.splice(H.current,1),t.addTolinkhandler(i)):H.current>e&&(i[0].js.splice(e,0,i[0].js[H.current]),i[0].js.splice(H.current+1,1),t.addTolinkhandler(i)):"css"==a&&(H.current<e?(i[0].css.splice(e+1,0,i[0].css[H.current]),i[0].css.splice(H.current,1),t.addTolinkhandler(i)):H.current>e&&(i[0].css.splice(e,0,i[0].css[H.current]),i[0].css.splice(H.current+1,1),t.addTolinkhandler(i)))},I=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.classList.remove("wb-show-drop-down")):(t.nextSibling.classList.add("wb-show"),t.classList.add("wb-show-drop-down"))},q=(e,t,a)=>{var s=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"}),l=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});const r=(e,t,a,i)=>{var s;if(null!=a)var n=a;else n=t;let l=(s=e,(new DOMParser).parseFromString(s,"text/html").body).querySelectorAll([`[data-${n}]`]),r=Object.values(l);var o=0;return r.length>0&&(r.map((e=>{if(e?.innerHTML){let t=e?.innerHTML;t.search([i])>-1&&(o+=1)}})),o>0)};if("html"===i){var o=s.getCursorPosition();if("repeater"==t||"gallery"==t||"select2"==t||"cpt"==t||"cpt_cat"==t||"cpt_tag"==t||"taxonomy"==t)if(null!=a){let i=B();s.session.insert(o,i),s.getValue().search([i])>-1&&null!=(d=s.find(i,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(r(s.getValue(),e,a,i)?s.session.replace(d,`\n\n    <div class="{loop-class-${t}}" data-${e}={${e}} >\n        \x3c!-- Enter code here --\x3e\n    </div>\n`):(s.session.replace(d,""),J()))}else s.session.insert(o,`\n\n    <div class="{loop-class-${t}}" data-${e}={${e}} >\n        \x3c!-- Enter code here --\x3e\n    </div>\n`);else if(null!=a){let i=B()+B();var d;s.session.insert(o,i),s.getValue().search([i])>-1&&null!=(d=s.find(i,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0}))&&(r(s.getValue(),a,void 0,i)?t&&"repeater_index"==t?s.session.replace(d,`{{${e}_index}}`):t&&"repeater_UID"==t?s.session.replace(d,`{{${e}_UID}}`):t&&"headingtags"==t?s.session.replace(d,`\n\n    <${e} data-${e}>\n        \x3c!--Enter Heading text here--\x3e\n    </${e}>\n`):!t||"title"!=t&&"description"!=t&&"thumbnail"!=t&&"cat_name"!=t&&"tag_name"!=t&&"cat_url"!=t&&"tag_url"!=t&&"post_link"!=t&&"post_date"!=t&&"auth_name"!=t&&"auth_profile"!=t&&"auth_url"!=t&&"auth_id"!=t&&"auth_email"!=t&&"taxo_link"!=t&&"taxo_slug"!=t&&"taxo_image"!=t?s.session.replace(d,`{{${e}}}`):s.session.replace(d,`{{${t}_${e}}}`):(s.session.replace(d,""),J()))}else"headingtags"==t?s.session.insert(o,`\n\n    <${e} data-${e}>\n        \x3c!--Enter Heading text here--\x3e\n    </${e}>\n`):s.session.insert(o,`{{${e}}}`)}else"js"===i&&"js"==t?(o=l.getCursorPosition(),l.session.insert(o,e)):"css"===i&&(o=n.getCursorPosition(),n.session.insert(o,"{{parent-class}}"))},U=()=>{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}},z=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}},J=()=>{let e=document.querySelector(".wkit-wb-loopError-popup");e&&(e.style.display="flex",setTimeout((()=>{e.style.display="none"}),2e3))},K=(e,a)=>{if(!R.includes(e.type))return"repeater"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Select repeater"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{q(e.name,"repeater",a)},children:"Loop"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{q(e.name,"repeater_index",e.name)},children:"Index"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{q(e.name,"repeater_UID",e.name)},children:"ID"}),e.fields.map(((t,a)=>(0,Be.jsx)(js,{children:K(t,e.name)},a)))]})]}):"cpt"==e.type||"product_listing"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Listing content"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"cpt",a)},children:"Loop"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"title",e.name)},children:"Title"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"description",e.name)},children:"Description"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"thumbnail",e.name)},children:"Thumbnail"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"post_date",e.name)},children:"Post Date"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"post_link",e.name)},children:"Post Link"}),"product_listing"!=e.type&&(0,Be.jsxs)(js,{children:[(0,Be.jsx)("hr",{className:"wkit-wp-editor-hr"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"auth_id",e.name)},children:"Author ID"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"auth_name",e.name)},children:"Author Name"}),"gutenberg"!=t?.widgetdata?.type&&(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"auth_email",e.name)},children:"Author Email"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"auth_profile",e.name)},children:"Author Profile"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"auth_url",e.name)},children:"Author URL"})]}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Category"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name+"_cat","cpt_cat",e.name)},children:"loop"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"cat_name",e.name)},children:"name"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"cat_url",e.name)},children:"URL"})]}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Tag"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name+"_tag","cpt_tag",e.name)},children:"loop"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"tag_name",e.name)},children:"name"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"tag_url",e.name)},children:"URL"})]})]})]}):"taxonomy"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Taxonomy"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"taxonomy",a)},children:"Loop"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"title",e.name)},children:"Name"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"description",e.name)},children:"Description"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"taxo_image",e.name)},children:"Image"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"taxo_slug",e.name)},children:"Slug"}),(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{q(e.name,"taxo_link",e.name)},children:"Link"})]})]}):"url"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:e.name}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(`${e.name}-url`,"",a)},children:"URL"}),(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(`${e.name}-is_external`,"",a)},children:"Is_external"}),(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(`${e.name}-nofollow`,"",a)},children:"Nofollow"}),(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(`${e.name}-Custom_atr`,"",a)},children:"Custom_atr"})]})]}):"gallery"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:e.name}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(e.name,"gallery",a)},children:"Loop"}),(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(e.name,"loop_value",e.name)},children:"URL"})]})]}):"popover"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Select popover"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,Be.jsx)(js,{children:K(e)},t)))})]}):"normalhover"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:"Normal Hover"}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,Be.jsx)(js,{children:K(e)},t)))})]}):"headingtags"==e.type?(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)("div",{className:U()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{q(e.name,"headingtags",a)},children:(0,Be.jsx)("span",{className:"wkit-wb-hover-marquee",children:(0,Be.jsx)("label",{children:"< Htag >"})})})}):"select2"==e.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{I(e)},children:(0,Be.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,Be.jsx)("label",{children:e.name}),(0,Be.jsx)("span",{children:(0,Be.jsx)("svg",{className:"wb-editor-value-dropDown-icon",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 8C1 4.134 4.134 0.999999 8 0.999999C11.866 1 15 4.134 15 8C15 11.866 11.866 15 8 15C4.134 15 1 11.866 1 8ZM6.99382e-07 8C1.08564e-06 3.5817 3.5817 -1.08564e-06 8 -6.99382e-07C12.4183 -3.13124e-07 16 3.5817 16 8C16 12.4183 12.4183 16 8 16C3.5817 16 3.13124e-07 12.4183 6.99382e-07 8ZM5.3536 6.14645C5.1583 5.9512 4.8417 5.9512 4.6464 6.14645C4.4512 6.34171 4.4512 6.65829 4.6464 6.85355L7.69407 9.90117C7.88933 10.0964 8.20591 10.0964 8.40117 9.90117L11.4488 6.85355C11.6441 6.65829 11.6441 6.34171 11.4488 6.14645C11.2535 5.9512 10.937 5.9512 10.7417 6.14645L8.04762 8.84051L5.3536 6.14645Z",fill:"white"})})})]})}),(0,Be.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(e.name,"select2",a)},children:"Loop"}),(0,Be.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{q(e.name,"loop_value",e.name)},children:"Value"})]})]}):(0,Be.jsx)("div",{className:U()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{q(e.name,"",a)},children:(0,Be.jsx)("span",{className:"wkit-wb-hover-marquee",children:"{{"+e.name+"}}"})})};return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-editor",ref:S,id:"wkit-editor-id",children:[(0,Be.jsxs)("div",{className:"wkit-editor-button",children:[(0,Be.jsxs)("div",{className:"wkit-wb-editor-btns",children:[(0,Be.jsx)("button",{className:"html"==i?"wkit-wb-editor-html-btn active-editor":"wkit-wb-editor-html-btn",onClick:e=>{(()=>{if(s("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="",E()}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="",E()}})()},children:(0,Be.jsx)("span",{className:"wkit-wb-editor-btns-label",children:(0,a.__)("HTML","wdesignkit")})}),(0,Be.jsxs)("div",{className:"css"==i?"wkit-wb-editor-css-btn active-editor":"wkit-wb-editor-css-btn",onClick:e=>{(()=>{if(s("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 a=[...t.Editor_data],i=document.querySelector(".wb-editor-js-popup"),s=document.querySelector(".wb-editor-img-js-icon");i.classList.remove("wkit-wb-show"),s.style.transform="";var e=[];a[0].js.map(((t,i)=>{""==t&&a[0].js.length>1&&e.push(i)})),E()}})(),k("css")},children:[(0,Be.jsx)("span",{className:"wkit-wb-editor-btns-label",children:(0,a.__)("CSS","wdesignkit")}),(0,Be.jsx)("svg",{onClick:()=>{_("css")},className:"wb-editor-img-css-icon "+("css"==i?"wkit-wb-show":""),xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 18 18",fill:"#fff",children:(0,Be.jsx)("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,Be.jsx)("label",{className:"wkit-wb-cssInputCount "+("css"==i?"wkit-wb-focus":""),children:(0,Be.jsx)("span",{children:0==z("css")?"":z("css")})})]}),(0,Be.jsxs)("div",{className:"js"==i?"wkit-wb-editor-js-btn active-editor":"wkit-wb-editor-js-btn",onClick:e=>{(()=>{if(s("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="",E()}})(),k("js")},children:[(0,Be.jsx)("span",{className:"wkit-wb-editor-btns-label",children:(0,a.__)("JAVASCRIPT","wdesignkit")}),(0,Be.jsx)("svg",{onClick:()=>{_("js")},className:"wb-editor-img-js-icon "+("js"==i?"wkit-wb-show":""),xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 18 18",fill:"#fff",children:(0,Be.jsx)("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,Be.jsx)("label",{className:"wkit-wb-JsInputCount "+("js"==i?"wkit-wb-focus":""),children:(0,Be.jsx)("span",{children:0==z("js")?"":z("js")})})]})]}),(0,Be.jsx)("div",{className:"wkit-wb-icons",children:(0,Be.jsxs)("div",{className:"wkit-wb-editor-top-ions",children:[0==n&&(0,Be.jsx)("div",{className:"wkit-wb-external-link-popup",children:(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:e=>{k("css"),_("css")},children:(0,Be.jsx)("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,Be.jsx)("div",{className:1==n?"wkit-zoom-icon-box-border wkit-wb-selected-icon":"wkit-zoom-icon-box-border",onClick:()=>{S.current.requestFullscreen?S.current.requestFullscreen():S.current.webkitRequestFullscreen?S.current.webkitRequestFullscreen():S.current.msRequestFullscreen&&S.current.msRequestFullscreen(),document.exitFullscreen&&!0===n?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},children:1==n?(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsxs)("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",children:[(0,Be.jsx)("path",{d:"M1.3335 10.667V14.667H5.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M1.3335 5.3335L1.3335 1.3335L5.3335 1.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M14.667 10.667V14.667H10.667",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M10.667 1.3335L14.667 1.3335L14.667 5.3335",strokeWidth:"1.06667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M1.3335 1.3335L5.3335 5.3335",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M14.667 14.667L10.667 10.667",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M14.667 1.3335L10.667 5.3335",strokeWidth:"1.06667",strokeLinecap:"round"}),(0,Be.jsx)("path",{d:"M1.3335 14.667L5.3335 10.667",strokeWidth:"1.06667",strokeLinecap:"round"})]})}),(0,Be.jsx)("div",{className:"wkit-expand-icon-box-border",ref:D,style:{display:0==n?"flex":"none"},onClick:e=>{(()=>{let e=D.current.closest(".wkit-expand-icon-box-border");d(!o);let t=document.querySelector(".wkit-wb-first-part"),a=document.querySelector(".wkit-wb-second"),i=document.querySelector(".wkit-wb-editor-expand-icon"),s=document.querySelector(".wkit-wb-third");document.querySelector(".wkit-wb-first-part.wb-expand-editor")?(i.classList.remove("wb-rotate-icon"),s.classList.remove("wkit-wb-hide"),t.classList.remove("wb-expand-editor"),a.classList.remove("wb-expand-second"),e.classList.remove("wkit-wb-selected-icon"),a.style.width="20%",t.style.width="60%"):(i.classList.add("wb-rotate-icon"),s.classList.add("wkit-wb-hide"),t.classList.add("wb-expand-editor"),a.classList.add("wb-expand-second"),e.classList.add("wkit-wb-selected-icon"),a.style.width="20%",t.style.width="80%")})()},children:(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-editor",children:[(0,Be.jsxs)("div",{className:"wkit-wb-editor-content",children:[(0,Be.jsx)("div",{id:"editor-html",className:"wkit-wb-editor-class"}),(0,Be.jsxs)("div",{className:"wkit-wb-loopError-popup",style:{display:"none"},children:[(0,Be.jsx)("div",{className:"wkit-wb-loopError-close",children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-wb-loopError-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-loopError-header",children:[(0,Be.jsx)("div",{className:"wkit-wb-loopError-icon",children:(0,Be.jsx)("img",{src:Z+"assets/images/wb-svg/error_info.svg"})}),(0,Be.jsx)("div",{className:"wkit-wb-loopError-headerText",children:(0,a.__)("Perform activity inside the loop","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-wb-loopError-description",children:(0,a.__)("You need to write or perform any of your activity inside the loop","wdesignkit")})]})]}),(0,Be.jsx)("div",{id:"editor-css",className:"wkit-wb-editor-class"}),(0,Be.jsx)("div",{id:"editor-js",className:"wkit-wb-editor-class"})]}),(0,Be.jsx)("div",{className:"wkit-right-portion",children:(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-editor-value-tab",style:"html"==i?{overflow:"auto"}:{},children:["js"==i&&(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-js-val",onClick:()=>{q("$scope[0]","js")},children:"$Scope"})}),t&&t.cardData[0]&&t.cardData[0].layout&&"html"==i&&t.cardData[0].layout.map(((e,t)=>(0,Be.jsx)(js,{children:(0,Be.jsx)("div",{className:"wkit-wb-editor-box",children:e?.inner_sec&&e?.inner_sec?.length>0&&e.inner_sec.map(((e,t)=>(0,Be.jsx)(js,{children:K(e)},t)))})},t))),(0,Be.jsx)("div",{className:"wkit-wb-editor-value-extra"}),"css"==i&&0==t.widgetdata.css_parent_node&&(0,Be.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-css-val",onClick:()=>{q()},children:"css"})]}),"css"==i&&(0,Be.jsx)("div",{className:"wkit-wb-parentClass-swicher-content",children:(0,Be.jsxs)("div",{className:"wkit-wb-parentClass-swicher",children:[(0,Be.jsxs)("div",{className:"wkit-css-editor-toolTip",children:[(0,Be.jsx)("svg",{className:"wkit-wb-toolTip-icon",xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 12 12",fill:"white",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-css-toolTip-text",children:(0,a.__)("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.","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("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,Be.jsx)("span",{className:"wb-slider"})]})]})})]})})]}),(0,Be.jsxs)("div",{className:"wkit-wb-editor-bottom-content wkit-wb-bottom-characters",children:["bricks"!==t?.widgetdata?.type&&!n&&(0,Be.jsx)(fs,{widget_data:t.widgetdata,plugin_status:t.plugin_status}),(0,Be.jsxs)("div",{className:"wkit-wb-characters",children:[(0,Be.jsxs)("span",{className:"wkit-wb-characters-title",children:[w," ",(0,a.__)("Characters","wdesignkit")]}),(0,Be.jsxs)("span",{className:"wkit-wb-characters-title",children:[g," ",(0,a.__)("Line","wdesignkit")]})]})]})]}),"css"==h||"js"==h?(0,Be.jsx)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{W(e)},children:(0,Be.jsx)("div",{className:"wkit-wb-popup-links",children:(0,Be.jsx)("div",{className:"wkit-wb-links-popup",children:(0,Be.jsxs)("div",{className:"wkit-links-main-popup",children:[(0,Be.jsxs)("div",{className:"wb-external-links",children:[(0,Be.jsxs)("div",{className:"wkit-wb-links-content",children:[(0,Be.jsx)("span",{onClick:()=>{k("css")},className:"css"==C?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:(0,a.__)("CSS","wdesignkit")}),(0,Be.jsx)("span",{onClick:()=>{k("js")},className:"js"==C?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:(0,a.__)("JS","wdesignkit")})]}),"css"==C&&(0,Be.jsxs)("div",{className:"wkit-wb-editor-links",children:[(0,Be.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert CSS Library","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of Your External CSS Library, Which You Want to Load in this Widget.","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,Be.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:"Search CDNs",style:{backgroundImage:`url(${Z}assets/images/wb-svg/editor-search.svg)`},value:v,onChange:e=>{b(e.target.value)}}),""!==v.trim()&&(0,Be.jsx)("div",{className:"wkit-cdn-suggestion",children:j.length>0?(0,Be.jsx)("ul",{className:"wkit-custom-cdn-list",children:j?.map(((e,t)=>(0,Be.jsxs)("li",{onClick:t=>{O("search_data",e.latest)},children:[e.name," ",(0,Be.jsx)("span",{children:P(e.latest)})]},t)))}):(0,Be.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,Be.jsxs)("svg",{width:"101",height:"80",viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M78.7067 77.5144C77.7608 78.4913 74.6616 79.502 72.6921 79.502C70.7227 79.502 69.7432 78.4939 68.7973 77.517C67.8852 76.5763 67.0248 75.6875 65.2938 75.6875C63.5628 75.6875 62.6998 76.5763 61.7903 77.5144C60.8418 78.4913 59.8623 79.502 57.8955 79.502C55.9286 79.502 54.9465 78.4939 54.0006 77.517C53.0885 76.5763 52.2282 75.6875 50.4971 75.6875C48.7661 75.6875 47.9032 76.5763 46.9936 77.5144C46.0478 78.4913 45.0656 79.502 43.0988 79.502C41.1319 79.502 40.1524 78.4913 39.204 77.5144C38.2918 76.5763 37.4315 75.6875 35.7005 75.6875C33.9694 75.6875 33.1065 76.5763 32.1969 77.5144C31.2511 78.4913 30.269 79.502 28.3021 79.502C26.3353 79.502 23.236 78.4913 22.2902 77.5144C21.4143 76.6152 24.6224 39.3773 24.6224 39.3773C24.6224 25.0834 36.2084 13.5 50.4997 13.5C57.6467 13.5 64.1173 16.3971 68.7973 21.0797C73.4799 25.7623 76.377 32.2304 76.377 39.3799C76.377 39.3799 79.5851 76.6178 78.7093 77.517L78.7067 77.5144Z",fill:"#878787"}),(0,Be.jsx)("path",{d:"M47.2806 39.4892C47.1201 39.4645 46.9781 39.6034 47.0028 39.7639C47.4782 42.684 49.3395 44.3199 51.5681 44.3199C53.7967 44.3199 55.658 42.684 56.1333 39.7639C56.158 39.6034 56.0161 39.4645 55.8555 39.4892C55.1024 39.6065 53.1794 39.875 51.5681 39.875C49.9568 39.875 48.0338 39.6065 47.2806 39.4892Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M43.1145 35.229C44.8346 35.229 46.229 33.8346 46.229 32.1145C46.229 30.3944 44.8346 29 43.1145 29C41.3944 29 40 30.3944 40 32.1145C40 33.8346 41.3944 35.229 43.1145 35.229Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M59.344 35.229C61.0641 35.229 62.4585 33.8346 62.4585 32.1145C62.4585 30.3944 61.0641 29 59.344 29C57.6239 29 56.2295 30.3944 56.2295 32.1145C56.2295 33.8346 57.6239 35.229 59.344 35.229Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M74.2759 14.644H73.0558C72.9728 14.644 72.9027 14.5765 72.9027 14.4909C72.9027 14.4052 72.9702 14.3377 73.0558 14.3377H74.1227V14.2676C74.1227 14.1845 74.1902 14.1145 74.2759 14.1145C74.3616 14.1145 74.4291 14.182 74.4291 14.2676V14.4883C74.4291 14.5713 74.3616 14.6414 74.2759 14.6414V14.644ZM71.8383 14.644C71.7553 14.644 71.6852 14.5765 71.6852 14.4909V14.2261C71.6852 13.8782 71.7007 13.5537 71.7319 13.2578C71.7397 13.1747 71.8176 13.115 71.9006 13.1228C71.9837 13.1306 72.046 13.2059 72.0356 13.2915C72.0045 13.5771 71.9889 13.8912 71.9889 14.2287V14.4935C71.9889 14.5765 71.9214 14.6466 71.8357 14.6466L71.8383 14.644ZM74.3901 13.2137C74.3901 13.2137 74.3642 13.2137 74.3512 13.2085C74.2707 13.1877 74.2214 13.1046 74.2422 13.0216C74.2785 12.8814 74.3148 12.7931 74.3408 12.7438L74.3564 12.7152C74.4083 12.6036 74.5692 12.3622 75.0677 12.0273C75.1378 11.9806 75.2312 11.9988 75.2779 12.0689C75.3247 12.139 75.3065 12.2324 75.2364 12.2791C74.7717 12.5906 74.6549 12.7905 74.6316 12.845L74.616 12.8788C74.5978 12.9177 74.5692 12.9852 74.5381 13.0994C74.5199 13.1669 74.4576 13.2137 74.3901 13.2137ZM72.1421 12.2402C72.1239 12.2402 72.1083 12.2376 72.0901 12.2298C72.0123 12.2013 71.9707 12.113 71.9993 12.0351C72.046 11.9079 72.0979 11.7833 72.155 11.6691C72.2744 11.4173 72.4354 11.1707 72.6301 10.9396C72.6846 10.8747 72.7806 10.8669 72.8455 10.9215C72.9104 10.976 72.9182 11.072 72.8637 11.1369C72.6846 11.3498 72.5392 11.573 72.4302 11.8041C72.3757 11.9131 72.329 12.0247 72.2874 12.1415C72.2641 12.2038 72.2069 12.2428 72.1446 12.2428L72.1421 12.2402ZM76.1787 11.6483C76.1294 11.6483 76.0801 11.6224 76.0489 11.5782C76.0048 11.5081 76.023 11.4121 76.0957 11.368L76.1372 11.342C76.4747 11.1291 76.7862 10.9007 77.0639 10.6645C77.1262 10.6099 77.2249 10.6177 77.2794 10.68C77.3339 10.7449 77.3261 10.841 77.2638 10.8955C76.9757 11.1447 76.6512 11.3809 76.3033 11.599L76.2644 11.625C76.2384 11.6405 76.2099 11.6483 76.1813 11.6483H76.1787ZM73.6529 10.3789C73.6062 10.3789 73.5568 10.3555 73.5283 10.314C73.479 10.2465 73.4971 10.1505 73.5646 10.1011C73.6996 10.0051 73.845 9.90905 73.9981 9.81819L74.5926 9.43659C74.6627 9.39246 74.7587 9.41063 74.8029 9.48331C74.847 9.5534 74.8288 9.64945 74.7562 9.69358L74.1591 10.0778C74.0085 10.1686 73.8709 10.2595 73.7411 10.353C73.7152 10.3711 73.684 10.3815 73.6529 10.3815V10.3789ZM78.0089 10.057C77.9751 10.057 77.9414 10.0466 77.9128 10.0233C77.8479 9.97135 77.8349 9.8753 77.8894 9.8104C78.1387 9.49629 78.3515 9.15882 78.5203 8.81097C78.5566 8.73568 78.6475 8.70453 78.7227 8.74087C78.798 8.77722 78.8292 8.86807 78.7928 8.94336C78.6163 9.31198 78.3905 9.66762 78.1257 9.9999C78.0945 10.0388 78.0504 10.057 78.0063 10.057H78.0089ZM75.6621 9.00566C75.6206 9.00566 75.5791 8.98749 75.5479 8.95374C75.4908 8.89144 75.496 8.79539 75.5609 8.73828C75.8776 8.45532 76.1216 8.1516 76.2878 7.83749C76.3267 7.76221 76.4201 7.73365 76.4928 7.77259C76.5681 7.81153 76.5967 7.90498 76.5577 7.97767C76.3734 8.32552 76.1086 8.65521 75.7634 8.96412C75.7348 8.99008 75.6985 9.00306 75.6621 9.00306V9.00566ZM79.0498 7.87903C79.0498 7.87903 79.0291 7.87902 79.0187 7.87643C78.9356 7.85826 78.8837 7.77778 78.9019 7.69471C78.9771 7.34167 79.0161 6.97304 79.0161 6.60183V6.51616C79.0161 6.43309 79.0836 6.363 79.1666 6.363C79.2497 6.363 79.3172 6.43049 79.3198 6.51356V6.60183C79.3198 6.99381 79.2783 7.3832 79.1978 7.75702C79.1822 7.82711 79.1199 7.87643 79.0498 7.87643V7.87903ZM68.5856 7.49483C68.5856 7.49483 68.5804 7.49483 68.5778 7.49483L67.3603 7.43772C67.2773 7.43252 67.2124 7.36243 67.215 7.27936C67.2176 7.19889 67.2851 7.13399 67.3681 7.13399C67.3681 7.13399 67.3733 7.13399 67.3759 7.13399L68.5934 7.1911C68.6765 7.19629 68.7414 7.26638 68.7388 7.34945C68.7362 7.42993 68.6687 7.49483 68.5856 7.49483ZM66.1532 7.37801C66.1532 7.37801 66.148 7.37801 66.1454 7.37801C66.0624 7.37282 65.9975 7.30273 66.0001 7.21966C66.0208 6.79133 66.0676 6.37858 66.1429 5.98919C66.1584 5.90612 66.2389 5.8516 66.322 5.86718C66.405 5.88276 66.4596 5.96323 66.444 6.0463C66.3713 6.42011 66.3272 6.81988 66.3064 7.23523C66.3038 7.31571 66.2363 7.3806 66.1532 7.3806V7.37801ZM76.7265 6.89257C76.7265 6.89257 76.7239 6.89257 76.7213 6.89257C76.6382 6.88998 76.5707 6.81989 76.5733 6.73422C76.5733 6.68749 76.5733 6.64336 76.5759 6.59923C76.5759 6.21244 76.5266 5.88016 76.4279 5.58422C76.402 5.50375 76.4435 5.41808 76.524 5.39212C76.6019 5.36616 76.6901 5.4077 76.7161 5.48817C76.8277 5.81526 76.8796 6.17869 76.8796 6.59923C76.8796 6.64596 76.8796 6.69528 76.877 6.7446C76.8744 6.82767 76.8069 6.88997 76.7239 6.88997L76.7265 6.89257ZM68.7621 6.29291C68.7621 6.29291 68.7362 6.29291 68.7232 6.28772C68.6427 6.26695 68.5934 6.18388 68.6142 6.10081C68.731 5.6647 68.9023 5.27531 69.1282 4.94562C69.1749 4.87553 69.2709 4.85736 69.341 4.90668C69.4111 4.95341 69.4267 5.04946 69.38 5.11955C69.1749 5.42068 69.014 5.77632 68.9075 6.17869C68.8893 6.24619 68.827 6.29291 68.7596 6.29291H68.7621ZM79.0317 5.45702C78.9616 5.45702 78.8993 5.4077 78.8837 5.33761C78.798 4.94562 78.6656 4.57181 78.4943 4.22395C78.4579 4.14867 78.4891 4.05781 78.5644 4.01887C78.6397 3.98253 78.7305 4.01368 78.7695 4.08896C78.9512 4.45759 79.0914 4.85477 79.1822 5.27011C79.2004 5.35318 79.1485 5.43366 79.0654 5.45183C79.055 5.45183 79.042 5.45442 79.0317 5.45442V5.45702ZM66.6257 4.99754C66.6075 4.99754 66.5894 4.99495 66.5712 4.98716C66.4933 4.95601 66.4544 4.86774 66.4829 4.78987C66.6361 4.39269 66.8256 4.01888 67.0488 3.67621C67.0956 3.60612 67.189 3.58536 67.2591 3.63208C67.3292 3.67881 67.35 3.77226 67.3032 3.84235C67.093 4.16684 66.9112 4.51989 66.7685 4.89889C66.7451 4.9586 66.688 4.99754 66.6257 4.99754ZM75.9087 4.68862C75.8724 4.68862 75.8361 4.67565 75.8075 4.64969C75.7712 4.61854 75.7348 4.58738 75.6985 4.55623C75.4467 4.35635 75.1481 4.1902 74.8107 4.063C74.7328 4.03445 74.6913 3.94619 74.7224 3.86571C74.751 3.78784 74.8392 3.7463 74.9197 3.77745C75.2857 3.91504 75.6128 4.09675 75.8906 4.31741C75.9321 4.35116 75.9736 4.3849 76.0126 4.42124C76.0749 4.47576 76.0801 4.5744 76.0256 4.63671C75.9944 4.67045 75.9529 4.68862 75.9113 4.68862H75.9087ZM70.1302 4.34856C70.0783 4.34856 70.029 4.3226 70.0004 4.27587C69.9563 4.20319 69.9796 4.10973 70.0497 4.0656C70.3846 3.85793 70.7766 3.70217 71.2205 3.59574C71.301 3.57757 71.384 3.62689 71.4048 3.70996C71.4256 3.79303 71.3737 3.8735 71.2906 3.89427C70.8778 3.99032 70.5144 4.13569 70.2081 4.3252C70.1821 4.34077 70.1562 4.34856 70.1276 4.34856H70.1302ZM73.6814 3.79562C73.6814 3.79562 73.6685 3.79562 73.6633 3.79562C73.2946 3.75149 72.8741 3.73592 72.4717 3.7489C72.3887 3.75149 72.316 3.68659 72.3134 3.60093C72.3108 3.51786 72.3757 3.44517 72.4613 3.44258C72.8767 3.427 73.3154 3.44517 73.7022 3.4919C73.7853 3.50228 73.845 3.57757 73.8346 3.66064C73.8242 3.73852 73.7593 3.79562 73.684 3.79562H73.6814ZM77.9595 3.2998C77.918 3.2998 77.8739 3.28163 77.8453 3.24788C77.6584 3.03242 77.4481 2.83253 77.2171 2.64822C77.1366 2.58332 77.051 2.52102 76.9653 2.46131C76.8978 2.41199 76.8796 2.31854 76.9289 2.24845C76.9783 2.18096 77.0717 2.16278 77.1418 2.21211C77.2327 2.27441 77.3209 2.3419 77.4066 2.4094C77.6506 2.60409 77.8765 2.81696 78.0738 3.0454C78.1283 3.1077 78.1231 3.20375 78.0582 3.26086C78.0296 3.28682 77.9933 3.2972 77.9569 3.2972L77.9595 3.2998ZM67.9522 2.97531C67.9133 2.97531 67.8717 2.95973 67.8432 2.92858C67.7861 2.86888 67.7861 2.77283 67.8484 2.71312L67.9159 2.64822C68.1962 2.38603 68.5077 2.1524 68.84 1.95251C68.9127 1.90838 69.0062 1.93175 69.0477 2.00443C69.0918 2.07712 69.0685 2.17057 68.9958 2.2147C68.6817 2.4042 68.3883 2.62486 68.1235 2.87147L68.0587 2.93378C68.0301 2.96233 67.9912 2.97531 67.9522 2.97531ZM75.9918 1.898C75.9711 1.898 75.9503 1.8928 75.9321 1.88502C75.5817 1.73445 75.2001 1.61245 74.8003 1.51899C74.7172 1.50082 74.6679 1.41775 74.6861 1.33728C74.7042 1.25421 74.7873 1.20489 74.8678 1.22306C75.2857 1.31911 75.6829 1.4489 76.0515 1.60466C76.1294 1.6384 76.1657 1.72667 76.132 1.80454C76.1086 1.86165 76.0515 1.898 75.9918 1.898ZM70.0212 1.72148C69.9589 1.72148 69.8992 1.68254 69.8784 1.62023C69.8498 1.53976 69.894 1.45409 69.9719 1.42554C70.3483 1.29574 70.7532 1.19191 71.1764 1.12182C71.262 1.10884 71.3373 1.16335 71.3529 1.24642C71.3685 1.32949 71.3114 1.40737 71.2283 1.42294C70.8207 1.49044 70.4339 1.58908 70.0731 1.71369C70.0575 1.71888 70.0393 1.72148 70.0238 1.72148H70.0212ZM73.6321 1.33987C73.6321 1.33987 73.6243 1.33987 73.6191 1.33987C73.2349 1.30872 72.8196 1.29834 72.4198 1.30872C72.3264 1.30872 72.2667 1.24642 72.2615 1.16075C72.2615 1.07768 72.3238 1.00759 72.4094 1.005C72.8222 0.992016 73.2505 1.005 73.6451 1.03615C73.7282 1.04394 73.7905 1.11662 73.7853 1.19969C73.7775 1.28016 73.7126 1.33987 73.6347 1.33987H73.6321ZM74.3226 19H73.4089C73.3258 19 73.2557 18.9325 73.2557 18.8468C73.2557 18.7612 73.3232 18.6937 73.4089 18.6937H74.2837C74.3745 18.6677 74.4758 18.7352 74.4758 18.8339V18.8442C74.4758 18.9273 74.4083 18.9974 74.3226 18.9974V19ZM72.4951 19H71.8072C71.7241 19 71.654 18.9325 71.654 18.8468V18.6184C71.654 18.5353 71.7215 18.4652 71.8072 18.4652C71.8928 18.4652 71.9603 18.5327 71.9603 18.6184V18.6937H72.4951C72.5782 18.6937 72.6483 18.7612 72.6483 18.8468C72.6483 18.9325 72.5808 19 72.4951 19ZM74.3226 18.0733C74.2396 18.0733 74.1695 18.0058 74.1695 17.9201V17.0063C74.1695 16.9233 74.237 16.8532 74.3226 16.8532C74.4083 16.8532 74.4758 16.9207 74.4758 17.0063V17.9201C74.4758 18.0032 74.4083 18.0733 74.3226 18.0733ZM71.8072 17.8578C71.7241 17.8578 71.654 17.7903 71.654 17.7046V16.7909C71.654 16.7078 71.7215 16.6377 71.8072 16.6377C71.8928 16.6377 71.9603 16.7052 71.9603 16.7909V17.7046C71.9603 17.7877 71.8928 17.8578 71.8072 17.8578ZM73.6295 16.9388H72.7157C72.6327 16.9388 72.5626 16.8713 72.5626 16.7857C72.5626 16.7 72.6301 16.6325 72.7157 16.6325H73.6295C73.7126 16.6325 73.7827 16.7 73.7827 16.7857C73.7827 16.8713 73.7152 16.9388 73.6295 16.9388Z",fill:"#7D8395"})]}),(0,Be.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")}),(0,Be.jsx)("p",{className:"wkit-cdn-not-found-desc",children:(0,a.__)("Sorry, the cdn you are looking for doesn't exist.","wdesignkit")})]})})]}),(0,Be.jsx)("div",{className:"wkit-wb-links-loop",children:t&&t.Editor_data[0]&&t.Editor_data[0].css&&t.Editor_data[0].css.map(((e,a)=>(0,Be.jsx)(js,{children:(0,Be.jsxs)("div",{draggable:!0,onDragStart:e=>{H.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{F(a,"css")},className:"wb-editor-popup-inp-content",children:[(0,Be.jsxs)("svg",{className:"popup-drag-icon",width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("input",{type:"url",ref:V,value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{A(e,"css",a)}}),""==e?(0,Be.jsxs)("svg",{className:"eye-link-disabled",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("a",{className:"popup-eye-link-content",target:"_blank",href:e,children:(0,Be.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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&&""==e&&0==a?(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsx)("svg",{className:"popup-inp-remove-icon",onClick:e=>{T(a,"css")},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})]})},a)))}),(0,Be.jsx)("div",{className:"wb-popuo-btn-class",children:(0,Be.jsx)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{O("css")},children:(0,Be.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")})})})]}),"js"==C&&(0,Be.jsxs)("div",{className:"wkit-wb-editor-js-links",children:[(0,Be.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert JS Library","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of Your External JS Library, Which You Want to Load in this Widget.","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,Be.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:"Search CDNs",style:{backgroundImage:`url(${Z}assets/images/wb-svg/editor-search.svg)`},value:x,onChange:e=>{f(e.target.value)}}),""!==x.trim()&&(0,Be.jsx)("div",{className:"wkit-cdn-suggestion",children:$.length>0?(0,Be.jsx)("ul",{className:"wkit-custom-cdn-list",children:$?.map(((e,t)=>(0,Be.jsxs)("li",{onClick:t=>{O("search_data",e.latest)},children:[e.name," ",(0,Be.jsx)("span",{children:P(e.latest)})]},t)))}):(0,Be.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,Be.jsxs)("svg",{width:"101",height:"80",viewBox:"0 0 101 80",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M78.7067 77.5144C77.7608 78.4913 74.6616 79.502 72.6921 79.502C70.7227 79.502 69.7432 78.4939 68.7973 77.517C67.8852 76.5763 67.0248 75.6875 65.2938 75.6875C63.5628 75.6875 62.6998 76.5763 61.7903 77.5144C60.8418 78.4913 59.8623 79.502 57.8955 79.502C55.9286 79.502 54.9465 78.4939 54.0006 77.517C53.0885 76.5763 52.2282 75.6875 50.4971 75.6875C48.7661 75.6875 47.9032 76.5763 46.9936 77.5144C46.0478 78.4913 45.0656 79.502 43.0988 79.502C41.1319 79.502 40.1524 78.4913 39.204 77.5144C38.2918 76.5763 37.4315 75.6875 35.7005 75.6875C33.9694 75.6875 33.1065 76.5763 32.1969 77.5144C31.2511 78.4913 30.269 79.502 28.3021 79.502C26.3353 79.502 23.236 78.4913 22.2902 77.5144C21.4143 76.6152 24.6224 39.3773 24.6224 39.3773C24.6224 25.0834 36.2084 13.5 50.4997 13.5C57.6467 13.5 64.1173 16.3971 68.7973 21.0797C73.4799 25.7623 76.377 32.2304 76.377 39.3799C76.377 39.3799 79.5851 76.6178 78.7093 77.517L78.7067 77.5144Z",fill:"#878787"}),(0,Be.jsx)("path",{d:"M47.2806 39.4892C47.1201 39.4645 46.9781 39.6034 47.0028 39.7639C47.4782 42.684 49.3395 44.3199 51.5681 44.3199C53.7967 44.3199 55.658 42.684 56.1333 39.7639C56.158 39.6034 56.0161 39.4645 55.8555 39.4892C55.1024 39.6065 53.1794 39.875 51.5681 39.875C49.9568 39.875 48.0338 39.6065 47.2806 39.4892Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M43.1145 35.229C44.8346 35.229 46.229 33.8346 46.229 32.1145C46.229 30.3944 44.8346 29 43.1145 29C41.3944 29 40 30.3944 40 32.1145C40 33.8346 41.3944 35.229 43.1145 35.229Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M59.344 35.229C61.0641 35.229 62.4585 33.8346 62.4585 32.1145C62.4585 30.3944 61.0641 29 59.344 29C57.6239 29 56.2295 30.3944 56.2295 32.1145C56.2295 33.8346 57.6239 35.229 59.344 35.229Z",fill:"#FAFAFA"}),(0,Be.jsx)("path",{d:"M74.2759 14.644H73.0558C72.9728 14.644 72.9027 14.5765 72.9027 14.4909C72.9027 14.4052 72.9702 14.3377 73.0558 14.3377H74.1227V14.2676C74.1227 14.1845 74.1902 14.1145 74.2759 14.1145C74.3616 14.1145 74.4291 14.182 74.4291 14.2676V14.4883C74.4291 14.5713 74.3616 14.6414 74.2759 14.6414V14.644ZM71.8383 14.644C71.7553 14.644 71.6852 14.5765 71.6852 14.4909V14.2261C71.6852 13.8782 71.7007 13.5537 71.7319 13.2578C71.7397 13.1747 71.8176 13.115 71.9006 13.1228C71.9837 13.1306 72.046 13.2059 72.0356 13.2915C72.0045 13.5771 71.9889 13.8912 71.9889 14.2287V14.4935C71.9889 14.5765 71.9214 14.6466 71.8357 14.6466L71.8383 14.644ZM74.3901 13.2137C74.3901 13.2137 74.3642 13.2137 74.3512 13.2085C74.2707 13.1877 74.2214 13.1046 74.2422 13.0216C74.2785 12.8814 74.3148 12.7931 74.3408 12.7438L74.3564 12.7152C74.4083 12.6036 74.5692 12.3622 75.0677 12.0273C75.1378 11.9806 75.2312 11.9988 75.2779 12.0689C75.3247 12.139 75.3065 12.2324 75.2364 12.2791C74.7717 12.5906 74.6549 12.7905 74.6316 12.845L74.616 12.8788C74.5978 12.9177 74.5692 12.9852 74.5381 13.0994C74.5199 13.1669 74.4576 13.2137 74.3901 13.2137ZM72.1421 12.2402C72.1239 12.2402 72.1083 12.2376 72.0901 12.2298C72.0123 12.2013 71.9707 12.113 71.9993 12.0351C72.046 11.9079 72.0979 11.7833 72.155 11.6691C72.2744 11.4173 72.4354 11.1707 72.6301 10.9396C72.6846 10.8747 72.7806 10.8669 72.8455 10.9215C72.9104 10.976 72.9182 11.072 72.8637 11.1369C72.6846 11.3498 72.5392 11.573 72.4302 11.8041C72.3757 11.9131 72.329 12.0247 72.2874 12.1415C72.2641 12.2038 72.2069 12.2428 72.1446 12.2428L72.1421 12.2402ZM76.1787 11.6483C76.1294 11.6483 76.0801 11.6224 76.0489 11.5782C76.0048 11.5081 76.023 11.4121 76.0957 11.368L76.1372 11.342C76.4747 11.1291 76.7862 10.9007 77.0639 10.6645C77.1262 10.6099 77.2249 10.6177 77.2794 10.68C77.3339 10.7449 77.3261 10.841 77.2638 10.8955C76.9757 11.1447 76.6512 11.3809 76.3033 11.599L76.2644 11.625C76.2384 11.6405 76.2099 11.6483 76.1813 11.6483H76.1787ZM73.6529 10.3789C73.6062 10.3789 73.5568 10.3555 73.5283 10.314C73.479 10.2465 73.4971 10.1505 73.5646 10.1011C73.6996 10.0051 73.845 9.90905 73.9981 9.81819L74.5926 9.43659C74.6627 9.39246 74.7587 9.41063 74.8029 9.48331C74.847 9.5534 74.8288 9.64945 74.7562 9.69358L74.1591 10.0778C74.0085 10.1686 73.8709 10.2595 73.7411 10.353C73.7152 10.3711 73.684 10.3815 73.6529 10.3815V10.3789ZM78.0089 10.057C77.9751 10.057 77.9414 10.0466 77.9128 10.0233C77.8479 9.97135 77.8349 9.8753 77.8894 9.8104C78.1387 9.49629 78.3515 9.15882 78.5203 8.81097C78.5566 8.73568 78.6475 8.70453 78.7227 8.74087C78.798 8.77722 78.8292 8.86807 78.7928 8.94336C78.6163 9.31198 78.3905 9.66762 78.1257 9.9999C78.0945 10.0388 78.0504 10.057 78.0063 10.057H78.0089ZM75.6621 9.00566C75.6206 9.00566 75.5791 8.98749 75.5479 8.95374C75.4908 8.89144 75.496 8.79539 75.5609 8.73828C75.8776 8.45532 76.1216 8.1516 76.2878 7.83749C76.3267 7.76221 76.4201 7.73365 76.4928 7.77259C76.5681 7.81153 76.5967 7.90498 76.5577 7.97767C76.3734 8.32552 76.1086 8.65521 75.7634 8.96412C75.7348 8.99008 75.6985 9.00306 75.6621 9.00306V9.00566ZM79.0498 7.87903C79.0498 7.87903 79.0291 7.87902 79.0187 7.87643C78.9356 7.85826 78.8837 7.77778 78.9019 7.69471C78.9771 7.34167 79.0161 6.97304 79.0161 6.60183V6.51616C79.0161 6.43309 79.0836 6.363 79.1666 6.363C79.2497 6.363 79.3172 6.43049 79.3198 6.51356V6.60183C79.3198 6.99381 79.2783 7.3832 79.1978 7.75702C79.1822 7.82711 79.1199 7.87643 79.0498 7.87643V7.87903ZM68.5856 7.49483C68.5856 7.49483 68.5804 7.49483 68.5778 7.49483L67.3603 7.43772C67.2773 7.43252 67.2124 7.36243 67.215 7.27936C67.2176 7.19889 67.2851 7.13399 67.3681 7.13399C67.3681 7.13399 67.3733 7.13399 67.3759 7.13399L68.5934 7.1911C68.6765 7.19629 68.7414 7.26638 68.7388 7.34945C68.7362 7.42993 68.6687 7.49483 68.5856 7.49483ZM66.1532 7.37801C66.1532 7.37801 66.148 7.37801 66.1454 7.37801C66.0624 7.37282 65.9975 7.30273 66.0001 7.21966C66.0208 6.79133 66.0676 6.37858 66.1429 5.98919C66.1584 5.90612 66.2389 5.8516 66.322 5.86718C66.405 5.88276 66.4596 5.96323 66.444 6.0463C66.3713 6.42011 66.3272 6.81988 66.3064 7.23523C66.3038 7.31571 66.2363 7.3806 66.1532 7.3806V7.37801ZM76.7265 6.89257C76.7265 6.89257 76.7239 6.89257 76.7213 6.89257C76.6382 6.88998 76.5707 6.81989 76.5733 6.73422C76.5733 6.68749 76.5733 6.64336 76.5759 6.59923C76.5759 6.21244 76.5266 5.88016 76.4279 5.58422C76.402 5.50375 76.4435 5.41808 76.524 5.39212C76.6019 5.36616 76.6901 5.4077 76.7161 5.48817C76.8277 5.81526 76.8796 6.17869 76.8796 6.59923C76.8796 6.64596 76.8796 6.69528 76.877 6.7446C76.8744 6.82767 76.8069 6.88997 76.7239 6.88997L76.7265 6.89257ZM68.7621 6.29291C68.7621 6.29291 68.7362 6.29291 68.7232 6.28772C68.6427 6.26695 68.5934 6.18388 68.6142 6.10081C68.731 5.6647 68.9023 5.27531 69.1282 4.94562C69.1749 4.87553 69.2709 4.85736 69.341 4.90668C69.4111 4.95341 69.4267 5.04946 69.38 5.11955C69.1749 5.42068 69.014 5.77632 68.9075 6.17869C68.8893 6.24619 68.827 6.29291 68.7596 6.29291H68.7621ZM79.0317 5.45702C78.9616 5.45702 78.8993 5.4077 78.8837 5.33761C78.798 4.94562 78.6656 4.57181 78.4943 4.22395C78.4579 4.14867 78.4891 4.05781 78.5644 4.01887C78.6397 3.98253 78.7305 4.01368 78.7695 4.08896C78.9512 4.45759 79.0914 4.85477 79.1822 5.27011C79.2004 5.35318 79.1485 5.43366 79.0654 5.45183C79.055 5.45183 79.042 5.45442 79.0317 5.45442V5.45702ZM66.6257 4.99754C66.6075 4.99754 66.5894 4.99495 66.5712 4.98716C66.4933 4.95601 66.4544 4.86774 66.4829 4.78987C66.6361 4.39269 66.8256 4.01888 67.0488 3.67621C67.0956 3.60612 67.189 3.58536 67.2591 3.63208C67.3292 3.67881 67.35 3.77226 67.3032 3.84235C67.093 4.16684 66.9112 4.51989 66.7685 4.89889C66.7451 4.9586 66.688 4.99754 66.6257 4.99754ZM75.9087 4.68862C75.8724 4.68862 75.8361 4.67565 75.8075 4.64969C75.7712 4.61854 75.7348 4.58738 75.6985 4.55623C75.4467 4.35635 75.1481 4.1902 74.8107 4.063C74.7328 4.03445 74.6913 3.94619 74.7224 3.86571C74.751 3.78784 74.8392 3.7463 74.9197 3.77745C75.2857 3.91504 75.6128 4.09675 75.8906 4.31741C75.9321 4.35116 75.9736 4.3849 76.0126 4.42124C76.0749 4.47576 76.0801 4.5744 76.0256 4.63671C75.9944 4.67045 75.9529 4.68862 75.9113 4.68862H75.9087ZM70.1302 4.34856C70.0783 4.34856 70.029 4.3226 70.0004 4.27587C69.9563 4.20319 69.9796 4.10973 70.0497 4.0656C70.3846 3.85793 70.7766 3.70217 71.2205 3.59574C71.301 3.57757 71.384 3.62689 71.4048 3.70996C71.4256 3.79303 71.3737 3.8735 71.2906 3.89427C70.8778 3.99032 70.5144 4.13569 70.2081 4.3252C70.1821 4.34077 70.1562 4.34856 70.1276 4.34856H70.1302ZM73.6814 3.79562C73.6814 3.79562 73.6685 3.79562 73.6633 3.79562C73.2946 3.75149 72.8741 3.73592 72.4717 3.7489C72.3887 3.75149 72.316 3.68659 72.3134 3.60093C72.3108 3.51786 72.3757 3.44517 72.4613 3.44258C72.8767 3.427 73.3154 3.44517 73.7022 3.4919C73.7853 3.50228 73.845 3.57757 73.8346 3.66064C73.8242 3.73852 73.7593 3.79562 73.684 3.79562H73.6814ZM77.9595 3.2998C77.918 3.2998 77.8739 3.28163 77.8453 3.24788C77.6584 3.03242 77.4481 2.83253 77.2171 2.64822C77.1366 2.58332 77.051 2.52102 76.9653 2.46131C76.8978 2.41199 76.8796 2.31854 76.9289 2.24845C76.9783 2.18096 77.0717 2.16278 77.1418 2.21211C77.2327 2.27441 77.3209 2.3419 77.4066 2.4094C77.6506 2.60409 77.8765 2.81696 78.0738 3.0454C78.1283 3.1077 78.1231 3.20375 78.0582 3.26086C78.0296 3.28682 77.9933 3.2972 77.9569 3.2972L77.9595 3.2998ZM67.9522 2.97531C67.9133 2.97531 67.8717 2.95973 67.8432 2.92858C67.7861 2.86888 67.7861 2.77283 67.8484 2.71312L67.9159 2.64822C68.1962 2.38603 68.5077 2.1524 68.84 1.95251C68.9127 1.90838 69.0062 1.93175 69.0477 2.00443C69.0918 2.07712 69.0685 2.17057 68.9958 2.2147C68.6817 2.4042 68.3883 2.62486 68.1235 2.87147L68.0587 2.93378C68.0301 2.96233 67.9912 2.97531 67.9522 2.97531ZM75.9918 1.898C75.9711 1.898 75.9503 1.8928 75.9321 1.88502C75.5817 1.73445 75.2001 1.61245 74.8003 1.51899C74.7172 1.50082 74.6679 1.41775 74.6861 1.33728C74.7042 1.25421 74.7873 1.20489 74.8678 1.22306C75.2857 1.31911 75.6829 1.4489 76.0515 1.60466C76.1294 1.6384 76.1657 1.72667 76.132 1.80454C76.1086 1.86165 76.0515 1.898 75.9918 1.898ZM70.0212 1.72148C69.9589 1.72148 69.8992 1.68254 69.8784 1.62023C69.8498 1.53976 69.894 1.45409 69.9719 1.42554C70.3483 1.29574 70.7532 1.19191 71.1764 1.12182C71.262 1.10884 71.3373 1.16335 71.3529 1.24642C71.3685 1.32949 71.3114 1.40737 71.2283 1.42294C70.8207 1.49044 70.4339 1.58908 70.0731 1.71369C70.0575 1.71888 70.0393 1.72148 70.0238 1.72148H70.0212ZM73.6321 1.33987C73.6321 1.33987 73.6243 1.33987 73.6191 1.33987C73.2349 1.30872 72.8196 1.29834 72.4198 1.30872C72.3264 1.30872 72.2667 1.24642 72.2615 1.16075C72.2615 1.07768 72.3238 1.00759 72.4094 1.005C72.8222 0.992016 73.2505 1.005 73.6451 1.03615C73.7282 1.04394 73.7905 1.11662 73.7853 1.19969C73.7775 1.28016 73.7126 1.33987 73.6347 1.33987H73.6321ZM74.3226 19H73.4089C73.3258 19 73.2557 18.9325 73.2557 18.8468C73.2557 18.7612 73.3232 18.6937 73.4089 18.6937H74.2837C74.3745 18.6677 74.4758 18.7352 74.4758 18.8339V18.8442C74.4758 18.9273 74.4083 18.9974 74.3226 18.9974V19ZM72.4951 19H71.8072C71.7241 19 71.654 18.9325 71.654 18.8468V18.6184C71.654 18.5353 71.7215 18.4652 71.8072 18.4652C71.8928 18.4652 71.9603 18.5327 71.9603 18.6184V18.6937H72.4951C72.5782 18.6937 72.6483 18.7612 72.6483 18.8468C72.6483 18.9325 72.5808 19 72.4951 19ZM74.3226 18.0733C74.2396 18.0733 74.1695 18.0058 74.1695 17.9201V17.0063C74.1695 16.9233 74.237 16.8532 74.3226 16.8532C74.4083 16.8532 74.4758 16.9207 74.4758 17.0063V17.9201C74.4758 18.0032 74.4083 18.0733 74.3226 18.0733ZM71.8072 17.8578C71.7241 17.8578 71.654 17.7903 71.654 17.7046V16.7909C71.654 16.7078 71.7215 16.6377 71.8072 16.6377C71.8928 16.6377 71.9603 16.7052 71.9603 16.7909V17.7046C71.9603 17.7877 71.8928 17.8578 71.8072 17.8578ZM73.6295 16.9388H72.7157C72.6327 16.9388 72.5626 16.8713 72.5626 16.7857C72.5626 16.7 72.6301 16.6325 72.7157 16.6325H73.6295C73.7126 16.6325 73.7827 16.7 73.7827 16.7857C73.7827 16.8713 73.7152 16.9388 73.6295 16.9388Z",fill:"#7D8395"})]}),(0,Be.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")}),(0,Be.jsx)("p",{className:"wkit-cdn-not-found-desc",children:(0,a.__)("Sorry, the cdn you are looking for doesn't exist.","wdesignkit")})]})})]}),(0,Be.jsx)("div",{className:"wkit-wb-links-loop",children:t&&t.Editor_data[0]&&t.Editor_data[0].js&&t.Editor_data[0].js.map(((e,a)=>(0,Be.jsx)(js,{children:(0,Be.jsxs)("div",{draggable:!0,onDragStart:e=>{H.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{F(a,"js")},className:"wb-editor-popup-inp-content",children:[(0,Be.jsxs)("svg",{className:"popup-drag-icon",width:"8",height:"14",viewBox:"0 0 8 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("input",{type:"url",value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{A(e,"js",a)}}),""==e?(0,Be.jsxs)("svg",{className:"eye-link-disabled",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("a",{className:"popup-eye-link-content",target:"_blank",href:e,children:(0,Be.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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&&""==e&&0==a?(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsx)("svg",{className:"popup-inp-remove-icon",onClick:e=>{T(a,"js")},width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})]})},a)))}),(0,Be.jsx)("div",{className:"wb-popuo-btn-class",children:(0,Be.jsx)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{O("js")},children:(0,Be.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")})})})]})]}),(0,Be.jsx)("div",{className:"close-popup-btn",children:(0,Be.jsx)("button",{className:"wkit-wb-close-popup-btn",onClick:e=>{W(e)},children:(0,a.__)("Close","wdesignkit")})})]})})})}):""]})})),{Fragment:$s}=wp.element,Ns=Ji((e=>({widgetdata:e})),(e=>({addTowidgethandler:t=>e(as(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{wdkitData.WDKIT_SITE_URL;var i=wdkitData.WDKIT_URL;const s={elementor:{defaultValue:"eicon-code",icons:[{label:(0,a.__)("E-icons","wdesignkit"),value:"E-icons"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},bricks:{defaultValue:"ti-shield",icons:[{label:(0,a.__)("Themify","wdesignkit"),value:"Themify"},{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]},gutenberg:{defaultValue:"fas fa-yin-yang",icons:[{label:(0,a.__)("Font-Awesome","wdesignkit"),value:"Font-Awesome"}]}},n={"E-icons":"eicon-code",Themify:"ti-shield","Font-Awesome":"fas fa-yin-yang"},[l,r]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name),[o,d]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.category),[c,p]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_icon),[w,m]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.description),[g,u]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.helper_link),[h,_]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.key_words),[C,k]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_image),[v,b]=(0,e.useState)(),[x,f]=(0,e.useState)("none"),[j,y]=(0,e.useState)([]),[$,N]=(0,e.useState)(!1),[L,M]=(0,e.useState)(!1),[H,V]=(0,e.useState)(s?.[t.widgetdata.WcardData.widgetdata.type]?.icons[0]),[D,S]=(0,e.useState)(!1),[Z,R]=(0,e.useState)(""),B=(0,e.useRef)(l),E=(0,e.useRef)(""),O=(0,e.useRef)(""),A=(0,e.useRef)(""),T=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 Ye(a).then((e=>{y(e)})).catch((e=>console.log(e))),N(!1),M(-1)};(0,e.useEffect)((()=>{(async()=>{let e={type:"wkit_manage_widget_category",info:JSON.stringify({manage_type:"get"})};await Ye(e).then((e=>{y(e)}))})()}),[]),(0,e.useEffect)((()=>{if("string"==typeof C&&E&&E.current&&"wkit-wb-widget-icon-drop_zone"==E.current.id&&(E.current.style.backgroundImage=`url('${C}')`),"object"==typeof C){const e=new FileReader;e.readAsDataURL(C),e.onload=()=>{E.current.style.backgroundImage=`url('${e.result}')`}}}));const P=(e,i)=>{if(i?.size&&Number(i?.size)/1e6>2)e.preventDefault(),t.wdkit_set_toast([(0,a.__)("Insert valid Image","wdesignkit"),(0,a.__)("Image size must be less tahn 2 mb.","wdesignkit"),"","danger"]);else{e.preventDefault();let s=i?.type.split("/");s.includes("png")||s.includes("jpg")||s.includes("jpeg")?(b((()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e})()),k(i)):t.wdkit_set_toast([(0,a.__)("Insert valid Image","wdesignkit"),(0,a.__)('only ".png", ".jpg", ".jpeg" images are allowed.',"wdesignkit"),"","danger"])}},W=()=>{O&&O.current&&"wkit-wb-select-category-options"==O.current.className&&(O.current.style.display="flex"),O&&O.current&&"wkit-wb-select-category-options"!=O.current.className&&(O.current.style.display="none")},F=(e,t)=>{"upload"==t?e.target.closest(".wkit-remove-widget-img")||document.querySelector("#drop-zone__input").click():"remove"==t&&(e.target.closest(".drop-zone").style.backgroundImage="",k(""))};return(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("div",{className:"wkit-wb-info-popup",ref:A,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=[...j];do{let t=e.indexOf("");e.splice(t,1)}while(e.indexOf("")>-1);f("none")}})(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-header-popup",children:[(0,Be.jsx)("h2",{className:"wkit-wb-popup-hreader",children:(0,a.__)("Edit Widget Information","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{t.Close_popup()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wkit-wb-content wkit-wb-popoupScroll",onClick:e=>{D&&S(!1)},children:(0,Be.jsx)("div",{className:"wkit-wb-third-part-content show",children:(0,Be.jsxs)("div",{className:"wkit-wb-block-detail",children:[(0,Be.jsxs)("div",{className:"wkit-wb-block-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-wb-block-name",children:[(0,Be.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,Be.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Name","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:i+"assets/images/wb-svg/info.svg",width:"13"}),(0,Be.jsx)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetName-toolTip wkit-wb-name-Tooltip",children:(0,a.__)("Only numbers and alphabet are allowed for this field, Widget name must be smaller then 25 charaters and first letter can't be digit.","wdesignkit")})]})]}),(0,Be.jsx)("input",{className:"wkit-wb-block-text-inp",value:l,type:"text",ref:B,placeholder:(0,a.__)("Enter your Widget Name","wdesignkit"),onChange:e=>{""==B?.current?.value?(B.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),r("")):""!=B?.current?.value&&(B.current.style.border="",/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(B.current.value)?r(B.current.value):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3)))}})]}),(0,Be.jsxs)("div",{className:"wkit-wb-block-category",children:[(0,Be.jsx)("div",{className:"wkit-wb-keyWord-title",children:(0,Be.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Category","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wkit-wb-category",children:[(0,Be.jsxs)("div",{className:"wkit-wb-selected-category-header",children:[(0,Be.jsx)("span",{className:"wkit-wb-selected-category",onClick:e=>{W()},children:o}),(0,Be.jsx)("img",{className:"wkit-wb-edit-category",src:i+"assets/images/wb-svg/pencil.svg",onClick:e=>{f("none"==x?"flex":"none")}})]}),(0,Be.jsx)("div",{style:{display:"none"},ref:O,className:"wkit-wb-select-category-options",children:j&&j.map(((e,t)=>(0,Be.jsx)($s,{children:(0,Be.jsx)("span",{className:"wkit-wb-cat-option",onClick:t=>{d(e),W()},children:e})},t)))})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-category",style:{display:x},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-category-header",children:[(0,Be.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,Be.jsx)("span",{className:"wkit-wb-custom-category-name",children:(0,a.__)("Create New Category","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip",style:{top:"1px"},children:[(0,Be.jsx)("svg",{className:"wkit-wb-toolTip-icon",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"white",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetCategory-toolTip",children:(0,a.__)("Add more categories of Elementor Editor area.","wdesignkit")})]})]}),(0,Be.jsx)("a",{className:"wkit-wb-custom-category-close",onClick:()=>{f("none")},children:"×"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-category-inp_content",children:[(0,Be.jsx)("div",{className:"wkit-custom-category-content",children:(0,Be.jsx)("input",{className:"wkit-wb-custom-category-inp",value:j[0],disabled:!0})}),j&&j.map(((e,t)=>{if(t>0)return(0,Be.jsxs)("div",{className:"wkit-wb-caregory-map",children:[(0,Be.jsxs)("div",{className:"wkit-custom-category-content",children:[(0,Be.jsx)("input",{className:"wkit-wb-custom-category-inp",value:e,onBlur:()=>{T(j),M(t)},onChange:e=>{((e,t)=>{let a=[...j];""==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)),y(a)})(e,t)},disabled:$}),$&&L==t&&(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle wkit-category-loader"})})]}),(0,Be.jsx)("img",{className:"wkit-wb-plus-icon",src:i+"assets/images/wb-svg/trash-2.svg",onClick:e=>{(async(e,t)=>{let a=[...j];await a.splice(t,1),await T(a),await y(a),await M(-1)})(0,t)}})]},t)}))]}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-category-btns",onClick:e=>{(()=>{let e=[...j];e.push(""),y(e)})()},children:[(0,Be.jsx)("img",{src:i+"assets/images/wb-svg/add-section-icon.svg"}),(0,Be.jsx)("label",{children:(0,a.__)("Add More","wdesignkit")})]})]})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-block-feature-img",children:[(0,Be.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,Be.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,Be.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Featured Image","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:i+"assets/images/wb-svg/info.svg",width:"13"}),(0,Be.jsx)("span",{className:"wkit-wb-toolTip-text",children:(0,a.__)("Only .jpg and .png are allowed","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"drop-zone",ref:E,id:"wkit-wb-widget-icon-drop_zone",onDragOver:e=>{e.preventDefault()},onDrop:e=>{P(e,e.dataTransfer.files[0])},onClick:e=>{F(e,"upload")},children:[C?(0,Be.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{F(e,"remove")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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:"white"})})}):(0,Be.jsxs)("div",{className:"drop-zone__prompt",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon",src:i+"assets/images/wb-svg/Union.svg"}),(0,Be.jsx)("div",{className:"wkit-wb-drag-drop-label",children:(0,a.__)("Upload Widget's featured image to show in widget listing. Only .jpg and .png images allowed.","wdesignkit")})]}),(0,Be.jsx)("input",{type:"file",name:"myFile",className:"wkit-file-text",id:"drop-zone__input",accept:"image/*",onChange:e=>{P(e,e.target.files[0])}})]})]}),(()=>{let e=t.widgetdata.WcardData.widgetdata.type,l=Xi[H?.value].filter((e=>""===Z.trim()||e.toLocaleLowerCase().includes(Z.trim().toLocaleLowerCase())));return(0,Be.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,Be.jsxs)("div",{className:"wb-add-widget-name-title wkit-icons-data",children:[(0,Be.jsx)("div",{className:"wkit-wb-keyWord-title",style:{margin:"0"},children:(0,Be.jsx)("span",{className:"wkit-wb-block-label",children:(0,a.__)("Icon","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wkit-dropdown-data",children:[(0,Be.jsxs)("div",{className:"wkit-icon-dropdown",onClick:e=>{S(!D)},children:[(0,Be.jsx)("span",{className:"wkit-selected-icons",children:H?.label}),s?.[e]?.icons?.length>1&&(0,Be.jsx)("img",{className:"wkit-svg "+(D?"wkit-rotate-svg":""),src:i+"assets/images/wb-svg/controller-open.svg"})]}),s?.[e]?.icons?.length>1&&(0,Be.jsx)("div",{className:"wkit-value-dropdown "+(D?"wkit-dp-show":""),children:s?.[e]?.icons?.map(((e,t)=>(0,Be.jsx)("span",{className:"wkit-icon-value",onClick:t=>{V(e),p(n[e?.value]),S(!D)},children:e?.label},t)))})]})]}),(0,Be.jsx)("div",{className:"wkit-show-all-icons",children:"Font-Awesome"===H?.value||Object.keys(t.plugin_status).length>0&&"active"===t.plugin_status[e]?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-search-select",children:[(0,Be.jsxs)("div",{className:"wkit-icon-search",children:[(0,Be.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M6.41667 11.0833C8.994 11.0833 11.0833 8.994 11.0833 6.41667C11.0833 3.83934 8.994 1.75 6.41667 1.75C3.83934 1.75 1.75 3.83934 1.75 6.41667C1.75 8.994 3.83934 11.0833 6.41667 11.0833Z",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12.2504 12.2523L9.71289 9.71484",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("input",{type:"text",className:"wkit-icons-search-box",value:Z,onChange:e=>{R(e.target.value)},placeholder:(0,a.__)("Search for icons","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-selected-text",children:[(0,Be.jsx)("span",{className:"wkit-selected",children:(0,a.__)("Selected","wdesignkit")}),(0,Be.jsx)("span",{className:`wkit-selected-icon ${c}`})]})]}),(0,Be.jsx)("div",{className:"wkit-all-icon-list wkit-wb-popoupScroll",children:l.length>0?l?.map(((e,t)=>(0,Be.jsx)("span",{className:`wkit-widget-icon-container ${e} ${e===c?"wkit-screened-icon":""}`,onClick:()=>p(e)},t))):(0,Be.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})})]}):(0,Be.jsx)("h4",{className:"wkit-plugin-not-found",children:(0,a.__)("Relevant Plugin/Theme is not Activated","wdesignkit")})})]})})()]}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-info",children:[(0,Be.jsxs)("div",{className:"wkit-wb-key-words",children:[(0,Be.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,Be.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Keywords","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:i+"assets/images/wb-svg/info.svg",width:"13"}),(0,Be.jsxs)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetkeyW-toolTip",children:[(0,a.__)("Enter keywords to allow searching in elementor editor.","wdesignkit")," ",(0,Be.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,Be.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. icon box, info box, icon",value:h,type:"text",onChange:e=>{_(e.target.value)}})]}),(0,Be.jsxs)("div",{className:"wkit-wb-helper-link",children:[(0,Be.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,Be.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Help Link","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-wb-toolTip",children:[(0,Be.jsx)("img",{className:"wkit-wb-toolTip-icon",src:i+"assets/images/wb-svg/info.svg",width:"13"}),(0,Be.jsxs)("span",{className:"wkit-wb-toolTip-text wb-wkit-widgetHelper-toolTip",children:[(0,a.__)("Enter URL for users to get more information about this widget.","wdesignkit")," ",(0,Be.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,Be.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. https://xyz.com/help/",value:g,type:"url",onChange:e=>{u(e.target.value)}})]})]}),(0,Be.jsxs)("div",{className:"wkit-wp-btn-center wb-add-widget-footer",children:[(0,Be.jsx)("div",{className:"wb-add-widget-cancelBtn",children:(0,Be.jsxs)("button",{onClick:e=>{t.Close_popup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),(0,Be.jsx)("div",{className:"wkit-wb-block-btn-save",onClick:e=>{f("none"),""!==l&&isNaN(l.charAt(0))&&(()=>{const e=""!==l&&isNaN(l.charAt(0)),a=/^[a-zA-Z0-9, ]*$/.test(h)||""===h,i=/^(ftp|http|https):\/\/[^ "]+$/.test(g)||""===g;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(!i)return document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetHelper-toolTip").style.display="none"}),2e3),!1;let s=[];"string"==typeof h?h.split(",").forEach((e=>{s.push(e.trim())})):s=h;let n=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:l.trim(),category:o,w_image:C,w_icon:c,description:w,helper_link:g,image_id:v,key_words:s});e&&a&&i&&t.Close_popup(),t.addTowidgethandler(n)})()},children:(0,Be.jsx)("a",{className:"wkit-wb-save-btn",children:(0,a.__)("SAVE","wdesignkit")})})]})]})})})]})})})),Ls=Ji((e=>({widgetdata:e,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addTowidgethandler:t=>e(as(t)),wdkit_set_meta:t=>e(Change_wdkit_meta(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const[i,s]=(0,e.useState)(!1),[n,l]=(0,e.useState)("default"),[r,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(!1),[p,w]=(0,e.useState)(!1),[m,g]=(0,e.useState)(""),[u,h]=(0,e.useState)([""]),[_,C]=(0,e.useState)(!1),[k,v]=(0,e.useState)(""),b=(0,e.useRef)(),x=(0,e.useRef)(null),[f,j]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name),[y,$]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name.length),[N,L]=(0,e.useState)(!1),M=G(),H=Y(),V=(0,e.useRef)("");var D=H.id,S=wdkitData.WDKIT_URL;(0,e.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,e.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)?l("change"):"default"!=n&&l("update")}),[t.widgetdata]),(0,e.useEffect)((()=>{window.location.hash.search("#/widget-listing/builder")>-1&&(window.onbeforeunload=function(e){if("change"==n)return"Are you sure you want to leave page"})}));const Z=async(e,a)=>{l("loading");var i=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"}),s=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"});let r=JSON.stringify(i.getValue()),o=JSON.stringify(s.getValue()),d=JSON.stringify(n.getValue());var c="",p="";if(t?.widgetdata?.WcardData?.widgetdata?.w_image){let e=t.widgetdata.WcardData.widgetdata.w_image;"object"==typeof e&&(p=e)}if(t?.widgetdata?.WcardData?.widgetdata?.w_icon){t.widgetdata.WcardData.widgetdata.w_icon}return"elementor"==t.widgetdata.WcardData.widgetdata.type?p?await Se(a,e,r,o,d,D,p).then((e=>{c=e})):await Se(a,e,r,o,d,D,"").then((e=>{c=e})):"gutenberg"==t.widgetdata.WcardData.widgetdata.type?p?await Ze(a,e,r,o,d,D,p).then((e=>{c=e})):await Ze(a,e,r,o,d,D,"").then((e=>{c=e})):"bricks"==t.widgetdata.WcardData.widgetdata.type&&(p?await Re(a,e,r,o,d,D,p).then((e=>{c=e})):await Re(a,e,r,o,d,D,"").then((e=>{c=e}))),setTimeout((()=>{l("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),c},R=e=>{const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{publish_type:e});t.addTowidgethandler(a)},B=(e,t)=>{(e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("overlay")||"click"==t)&&(C(""),v(""))},E=()=>(0,Be.jsx)("svg",{width:"22",height:"21",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),O=()=>(0,Be.jsxs)("svg",{width:"22",height:"21",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-widget-edit-setting-panel",children:[(0,Be.jsx)("div",{className:"wkit-widget-back-btn",children:(0,Be.jsx)("div",{className:"wkit-back-btn-icon",onClick:()=>{("update"==n||"default"==n||confirm("Changes you made may not be saved."))&&M("/widget-listing")},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"28",height:"28",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M19 12H5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M12 19L5 12L12 5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})}),(0,Be.jsxs)("div",{className:"wkit-wb-head-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-wb-left-hand-side",children:[(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-elementor-icon",src:S+"assets/images/wb-svg/elementor.svg",draggable:"false"}),(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-icon",src:S+"assets/images/wb-svg/gutenberg.svg",draggable:"false"}),(0,Be.jsx)("img",{className:"wkit-wb-plus-icon wkit-bricks-icon",src:S+"assets/images/wb-svg/bricks.svg",draggable:"false"}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-title",children:[(0,Be.jsx)("span",{className:"wkit-wb-widgetTitle",style:{display:p&&"none"},children:t.widgetdata.WcardData.widgetdata.name}),(0,Be.jsx)("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){j(e.target.value);const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:e.target.value});t.addTowidgethandler(a)}})(e),$(e.target.value.length)},ref:b,style:{pointerEvents:!p&&"none",display:p&&"flex"},onBlur:e=>{(e=>{let a=e.target.value.trim();if(""==a){x.current;const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:x.current});t.addTowidgethandler(e),j(x.current)}else{const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:a});t.addTowidgethandler(e),j(a)}})(e),w(!p)},onFocus:e=>{(e=>{x.current=e.target.value})(e)}}),!p&&(0,Be.jsx)("a",{children:(0,Be.jsx)("img",{className:"wkit-wb-edit-nameIcon",onClick:e=>{w(!p),setTimeout((()=>{b.current.focus()}),0)},src:S+"assets/images/wb-svg/pencil.svg"})})]})]}),(0,Be.jsxs)("div",{className:"wkit-wb-right-hand-side",children:[(0,Be.jsxs)("div",{className:"wkit-wb-setting-panel-link wkit-wb-dropdown",onClick:()=>{c(!d)},children:["Publish"==t.widgetdata.WcardData.widgetdata.publish_type?(0,Be.jsx)(E,{}):(0,Be.jsx)(O,{}),(0,Be.jsx)("span",{className:"output",children:t.widgetdata.WcardData.widgetdata.publish_type}),(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 12 8",fill:"black",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:1==d?"wkit-wb-dropdown-content wkit-wb-show":"wkit-wb-dropdown-content",id:"mySelect",children:[(0,Be.jsx)("div",{className:"wkit-dropdown-outerContent"}),(0,Be.jsxs)("div",{className:"wkit-dropdown-item",value:"draft",name:"Draft",onClick:()=>{R("Draft")},children:[(0,Be.jsx)(O,{}),(0,Be.jsx)("span",{children:(0,a.__)("Draft","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-dropdown-item",value:"publish",name:"Publish",onClick:()=>R("Publish"),children:[(0,Be.jsx)(E,{}),(0,Be.jsx)("span",{children:(0,a.__)("Publish","wdesignkit")})]})]})]}),(0,Be.jsxs)("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:()=>{C("widget_info")},children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("button",{className:"wkit-wb-sync-btn "+(Xe()?"":"wkit-block-btn"),onClick:()=>{C("version_info")},children:[(0,Be.jsxs)("div",{className:"wkit-wb-sync-btn-tooltip",children:[(0,Be.jsx)("span",{children:(0,a.__)("Push widget on Cloud and Sync it","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-wb-sync-tooltip-icon"})]}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Push","wdesignkit")})]}),(A=(0,a.__)("Save","wdesignkit"),T="",P="","default"==n?(A=(0,a.__)("Save","wdesignkit"),T="",P="wdkit-disable"):"change"==n?(A=(0,a.__)("Save","wdesignkit"),T=(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",className:"wkit-wb-save-icon",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M14.1673 17.8125V11.3125H5.83398V17.8125",stroke:"white",strokeWidth:"0.78125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M5.83398 3.1875V7.25H12.5007",stroke:"white",strokeWidth:"0.78125",strokeLinecap:"round",strokeLinejoin:"round"})]}),P=""):"update"==n?(A=(0,a.__)("Saved","wdesignkit"),T="",P="wdkit-saved"):"loading"==n&&(A="",T=(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})}),P=""),(0,Be.jsxs)("button",{className:`wkit-wb-publish-btn ${P}`,onClick:()=>{Z(t.widgetdata,"update").then((e=>{e.api.success?t.wdkit_set_toast([(0,a.__)("Update Saved Successfully","wdesignkit"),(0,a.__)("Success! Update Saved","wdesignkit"),"","success"]):t.wdkit_set_toast([(0,a.__)("Fail to Save","wdesignkit"),(0,a.__)("Fail! Can not Saved","wdesignkit"),"","danger"])}))},disabled:"change"!=n,children:[T,A]}))]})]})]}),"widget_info"==_?(0,Be.jsx)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{B(e)},children:(0,Be.jsx)("div",{className:"wkit-wb-popup",children:(0,Be.jsx)(Ns,{plugin_status:t.plugin_status,plugin_detail:t.plugin_detail,Close_popup:e=>B(e,"click")})})}):"","version_info"==_?(0,Be.jsx)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{B(e)},children:(0,Be.jsx)("div",{className:"wkit-version-popup-inside",children:(0,Be.jsx)("div",{className:"wkit-wb-version-popup",children:(0,Be.jsxs)("div",{className:"wb-version-detail",children:[(0,Be.jsxs)("div",{className:"wb-version-header",children:[(0,Be.jsx)("label",{children:(0,a.__)("Add Sync Details","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{e.target.closest(".overlay").click()},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-version-body",children:[(0,Be.jsxs)("div",{className:"wb-version-wrap wb-widget-sync-details",children:[(0,Be.jsxs)("div",{className:"wb-version-number",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Current Version","wdesignkit")}),(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-version-detais",children:[(0,Be.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Latest Version","wdesignkit")}),(0,Be.jsx)("input",{className:"wb-version-input",type:"text",value:t?.widgetdata?.WcardData?.widgetdata?.widget_version?m:"1.0.0",onChange:e=>{(e=>{const a=e.target.value;if(""==a)v("");else if(!/^[0-9.]*$/.test(a))return void v("You can enter only number here");g(e.target.value),t?.widgetdata?.WcardData?.widgetdata?.widget_version>=e.target.value?v(`Version ${e.target.value} is already available`):v("")})(e)},disabled:!t?.widgetdata?.WcardData?.widgetdata?.widget_version}),(0,Be.jsx)("p",{className:"wb-error-message",children:k})]})]}),(0,Be.jsx)("span",{className:"wb-version-label wb-label-separate",children:(0,a.__)("Changelog","wdesignkit")}),(0,Be.jsx)("div",{className:"wb-version-changes",children:u.map(((e,t)=>(0,Be.jsxs)("div",{className:"wb-version-wrap",children:[(0,Be.jsx)("textarea",{className:"wb-version-detail-input",value:e,placeholder:"Please enter description",rows:"2",onChange:e=>{((e,t)=>{let a=[...u];a[t]=e.target.value,h(a)})(e,t)}}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"23",viewBox:"0 0 22 23",onClick:()=>{(e=>{let t=[...u];t.length>1?(t.splice(e,1),h(t)):1==t.length&&(t[e]="",h(t))})(t)},fill:"black",children:(0,Be.jsx)("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"})})]},t)))}),(0,Be.jsxs)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[...u];e.push(""),h(e)})()},children:[(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.5 0.546875H5.5V6.04688H0V7.04688H5.5V12.5469H6.5V7.04688H12V6.04688H6.5V0.546875Z"})}),(0,Be.jsx)("label",{children:(0,a.__)("Add more","wdesignkit")})]})]}),(0,Be.jsxs)("div",{className:"wb-quickedit-footer wb-add-widget-footer",children:[(0,Be.jsx)("div",{className:"wb-add-widget-cancelBtn",children:(0,Be.jsxs)("button",{onClick:e=>{e.target.closest(".overlay").click()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),(0,Be.jsxs)("button",{className:"wb-version-popup-btn",style:{cursor:t?.widgetdata?.WcardData?.widgetdata?.widget_version<m||!t?.widgetdata?.WcardData?.widgetdata?.widget_version?"":"no-drop"},disabled:!(t?.widgetdata?.WcardData?.widgetdata?.widget_version<m||!t?.widgetdata?.WcardData?.widgetdata?.widget_version),onClick:e=>{(async()=>{let e=t.wdkit_meta.widgettemplate;if(L(!0),e.length>0){let a=e.findIndex((e=>e.w_unique==t.widgetdata.WcardData.widgetdata.widget_id));if(u.length>1)var i=u;else i=1==u.length&&u[0]?u:[];if(a>-1)var s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:m||"1.0.0",version_detail:i});else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:m||"1.0.0",version_detail:i})}else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:m||"1.0.0",version_detail:i});let n=Object.assign({},t.widgetdata.WcardData,{widgetdata:s}),l=Object.assign({},t.widgetdata,{WcardData:n});var r="";await Z(l,"sync").then((e=>{r=e})),r&&r.ajax&&(1==r?.ajax?.data?.success?(C(""),v(""),t.wdkit_set_toast([(0,a.__)("Widget Pushed","wdesignkit"),(0,a.__)("Widget Pushed Successfully!","wdesignkit"),"","success"])):(t.wdkit_set_toast([(0,a.__)("Operation fail","wdesignkit"),(0,a.__)("Something went wrong","wdesignkit"),"","danger"]),v(r?.ajax?.data?.message)));const o=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:m||"1.0.0"});t.addTowidgethandler(o),h([""]),L(!1)})()},children:[1==N&&(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})}),0==N&&(0,Be.jsx)("span",{children:(0,a.__)("Update","wdesignkit")})]})]})]})})})}):""]});var A,T,P})),{Fragment:Ms}=wp.element;wdkitData.WDKIT_SITE_URL;var Hs=wdkitData.WDKIT_URL;const Vs=Ji((e=>({cardData:e,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata})),(e=>({addToCarthandler:t=>e(ts(t)),addToActiveController:t=>e(ns(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const i=()=>{if("elementor"==t?.widgetdata?.type)var e="#91003b";else"gutenberg"==t?.widgetdata?.type?e="#162D9E":"gutenberg-core"==t?.widgetdata?.type?e="#287CB2":"bricks"==t?.widgetdata?.type&&(e="#FFD64F");return e},[s,n]=(0,e.useState)("Inset"),[l,r]=(0,e.useState)("normal"),[o,d]=(0,e.useState)("normal"),[c,p]=(0,e.useState)(!0),[w,m]=(0,e.useState)(!1),g=(e,a)=>{let i=t?.nha_array.filter((e=>null!==e));if("width"===e){if(i?.length>0){let e=i.length;return 100/Number(e)+"%"}return"100%"}if("border"===e)return Number(i?.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)}},u=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},h=(e,a,i,s)=>{let n=[...t.cardData.CardItems.cardData],l=e.target.closest(".wb-main-component").dataset;if(l.rnp)var r=n[0][l.array_type][l.sec_id].inner_sec[l.compo_id].fields[l.rnp];else r=n[0][l.array_type][l.sec_id].inner_sec[l.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"!=i){var d=Object.assign({},r.dimension_defaultValue,{[i]:e.target.value});o=Object.assign({},r,{dimension_defaultValue:d})}else if("isLinked"==i){let e=r.dimension_defaultValue[i];d=Object.assign({},r.dimension_defaultValue,{[i]:!e}),o=Object.assign({},r,{dimension_defaultValue:d})}}else if("align_defaultValue"==a)o=Object.assign({},r,{align_defaultValue:i});else if("select2_defaultValue"==a){if("add"==s){let e=[...r[a]];e.push(i),o=Object.assign({},r,{[a]:e})}else if("remove"==s){let e=[...r[a]];e.splice(i,1),o=Object.assign({},r,{[a]:e})}}else o="select_defaultValue"==a?Object.assign({},r,{[a]:i}):"nha_type"==a?Object.assign({},r,{[a]:i}):Object.assign({},r,{[a]:e.target.value});l.rnp?n[0][l.array_type][l.sec_id].inner_sec[l.compo_id].fields.splice(l.rnp,1,o):n[0][l.array_type][l.sec_id].inner_sec.splice(l.compo_id,1,o),t.addToCarthandler(n)},_=(e,i,s,n,l)=>{let r=e.dataTransfer.getData("controller_id");if(r)if("repeater"==r||"popover"==r)t.wdkit_set_toast([(0,a.__)("Not Valid","wdesignkit"),(0,a.__)("You Can Not put this controller here","wdesignkit"),"","danger"]);else{const e=Gi[r].name,a=Object.assign({},Gi[r],{name:e+"_"+u()});let o=[...t.cardData.CardItems.cardData];if(null!=l){let e=o[0][n][i].inner_sec[s].fields[l],t=[...e.fields];t.push(a);let r=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s].fields[l]=r}else{let e=o[0][n][i].inner_sec[s],t=[...e.fields];t.push(a);let l=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s]=l}p(!0),t.addToCarthandler(o)}},C=e=>{let a=e.target.closest(".wb-main-component").dataset,i=[...t.cardData.CardItems.cardData];var s=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});let n=s.getValue();const l=(e,t)=>{if(n.search([e])>-1){var a=s.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(s.session.replace(a,t),l(e,t)):(s.session.replace(a,""),l(e)))}},r=e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||l(`data-${e.name}={${e.name}}`),"cpt"!=e.type&&"product_listing"!=e.type||(l(`data-${e.name}={${e.name}}`),l(`data-${e.name}_tag={${e.name}_tag}`),l(`data-${e.name}_cat={${e.name}_cat}`),l(`{{title_${e.name}}}`),l(`{{description_${e.name}}}`),l(`{{thumbnail_${e.name}}}`),l(`{{category_${e.name}}}`),l(`{{cat_name_${e.name}}}`),l(`{{cat_url_${e.name}}}`),l(`{{tag_${e.name}}}`),l(`{{tag_name_${e.name}}}`),l(`{{tag_url_${e.name}}}`),l(`{{post_date_${e.name}}}`),l(`{{post_link_${e.name}}}`),l(`{{auth_name_${e.name}}}`),l(`{{auth_email_${e.name}}}`),l(`{{auth_url_${e.name}}}`),l(`{{auth_id_${e.name}}}`),l(`{{auth_profile_${e.name}}}`)),"taxonomy"==e.type&&(l(`data-${e.name}={${e.name}}`),l(`{{title_${e.name}}}`),l(`{{description_${e.name}}}`),l(`{{taxo_image_${e.name}}}`),l(`{{taxo_slug_${e.name}}}`),l(`{{taxo_link_${e.name}}}`)),"url"==e.type&&(l(`{{${e.name}-url}}`),l(`{{${e.name}-is_external}}`),l(`{{${e.name}-nofollow}}`)),"headingtags"==e.type&&l(e.name,"div"),l(`{{${e.name}}}`)};if(a.rnp){var o=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp];r(o),"repeater"!=o.type&&"popover"!=o.type&&"cpt"!=o.type||o.fields.map((e=>{r(e)}))}else o=i[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?(i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(a.rnp,1),t.addToCarthandler(i)):(i[0][a.array_type][a.sec_id].inner_sec.splice(a.compo_id,1),t.addToCarthandler(i)),t.addToActiveController("")},k=async e=>{let a=e.target.closest(".wb-main-component").dataset,i=[...t.cardData.CardItems.cardData],s=u();if(a.rnp)if("false"!=a.rnp2){let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields[a.rnp2],{name:e+"_"+s}),n=Number(a.rnp2);i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].fields.splice(n+1,0,t)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp].type,t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp],{name:e+"_"+s}),n=Number(a.rnp);i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields.splice(n+1,0,t)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type;if("repeater"==e||"popover"==e||"normalhover"==e){let t=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],n=Object.assign({},t,{name:e+"_"+s}),l=[];t.fields.map((e=>{let t=e.type,a=Object.assign({},e,{name:t+"_"+u()});l.push(a)}));let r=Object.assign({},n,{fields:l}),o=Number(a.compo_id);i[0][a.array_type][a.sec_id].inner_sec.splice(o+1,0,r)}else{let e=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].type,t=Object.assign({},i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],{name:e+"_"+s}),n=Number(a.compo_id);i[0][a.array_type][a.sec_id].inner_sec.splice(n+1,0,t)}}t.addToCarthandler(i)},v=(e,a)=>{document.querySelector(".wkit-expand-icon-box-border.wkit-wb-selected")&&document.querySelector(".wkit-expand-icon-box-border").click();let i=e.target.closest(".wb-main-component");if(!e.target.closest(".duplicate-btn")&&!e.target.closest(".remove-btn"))if(i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type&&i.dataset.rnp){let e={compo_id:i.dataset.compo_id,sec_id:i.dataset.sec_id,array_type:i.dataset.array_type,repeater:i.dataset.rnp};a&&(e=Object.assign({},e,{cpt_controller:!0})),"preview"!==t.cardData.CardItems.cardData[0][i.dataset.array_type][i.dataset.sec_id].inner_sec[i.dataset.compo_id].fields[i.dataset.rnp].type&&t.addToActiveController(e)}else if(i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type){let e={compo_id:i.dataset.compo_id,sec_id:i.dataset.sec_id,array_type:i.dataset.array_type};t.addToActiveController(e)}},b=()=>{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}},x=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=e=>(0,Be.jsxs)("div",{className:"wb-hover-component",children:[!e?.hide_edit&&(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none",children:(0,Be.jsx)("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"})})}),!e?.only_edit&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"9",viewBox:"0 0 8 8",fill:"none",children:(0,Be.jsx)("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,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-append-content wb-main-component "+(b()===t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:!1,className:"tp-sec-edit",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-right-append",children:(0,Be.jsx)("input",{className:"wb-append-inp",value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("preview"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-append-content wb-main-component",draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:!1,className:"tp-sec-edit",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsxs)("div",{className:"wkit-wb-preview-ct",children:[(0,Be.jsx)("p",{className:"wkit-wb-preview-ct-text",children:(0,a.__)("Update changes to page","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-wb-preview-ct-btn",children:(0,a.__)("Apply","wdesignkit")})]})})}),(0,Be.jsx)(f,{hide_edit:!0})]})]});if("number"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-append-content wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",className:"wkit-wb-sec-edit",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-right-append",children:(0,Be.jsx)("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=>{h(e,"defaultValue")}})})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("wysiwyg"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-textarea wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("textarea",{className:"wb-textarea-inp",value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("code"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-textarea wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("choose"==t.type){let e=["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,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-alignment-header",children:(0,Be.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}}),(0,Be.jsx)("div",{className:"wb-icons",style:{justifyContent:1==t.lableBlock?"flex-start":"flex-end"},children:t.align_option&&t.align_option.map(((a,i)=>(0,Be.jsx)(Ms,{children:(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[a.align_lable&&(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[a.align_lable,(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),e.includes(a.align_icon)?a.align_value==t.align_defaultValue?(0,Be.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Hs}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{h(e,"align_defaultValue",a.align_value)}}):(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{h(e,"align_defaultValue",a.align_value)}}):a.align_value==t.align_defaultValue?(0,Be.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Hs}assets/images/wb-svg/info-white.svg`,onClick:e=>{h(e,"align_defaultValue",a.align_value)}}):(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/info.svg`,onClick:e=>{h(e,"align_defaultValue",a.align_value)}})]})},i)))})]})}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]})}if("font"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-select wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("select",{className:"select-dropdown",children:[(0,Be.jsx)("option",{children:(0,a.__)("font-1","wdesignkit")}),(0,Be.jsx)("option",{children:(0,a.__)("font-2","wdesignkit")}),(0,Be.jsx)("option",{children:(0,a.__)("font-3","wdesignkit")})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("datetime"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-date-time wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",className:"tp-sec-edit",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-right-append",style:{width:1==t.lableBlock?"100%":"50%"},children:(0,Be.jsx)("input",{className:"wb-append-inp wb-date-time-w",value:t.defaultValue,type:"datetime-local",placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("gallery"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-gallery wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-gallery-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",style:{width:"60%"},children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"block":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-gallery-image",children:[(0,Be.jsx)("div",{className:"wb-gallery-image-header",children:(0,Be.jsx)("label",{children:(0,a.__)("No Images Selected","wdesignkit")})}),(0,Be.jsx)("div",{className:"wb-gallery-image-content",children:(0,Be.jsx)("div",{className:"wb-gallery-image-backgorund",children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/add-section-icon.svg"})})})]})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("background"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-background wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-background-header",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-icons",children:[(0,Be.jsx)("img",{style:{display:-1==t.types.indexOf('"classic"')?"none":"block"},className:"wb-background-icon left",src:Hs+"assets/images/wb-svg/bg-pencil.svg"}),(0,Be.jsx)("img",{style:{display:-1==t.types.indexOf('"gradient"')?"none":"block"},className:"wb-background-icon",src:Hs+"assets/images/wb-svg/grediant.svg"})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("border"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-border wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-border-header",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-icons",children:[(0,Be.jsx)("img",{className:"wb-border-icon left",src:Hs+"assets/images/wb-svg/border-1.svg"}),(0,Be.jsx)("img",{className:"wb-border-icon",src:Hs+"assets/images/wb-svg/border-2.svg"}),(0,Be.jsx)("img",{className:"wb-border-icon",src:Hs+"assets/images/wb-svg/border-3.svg"}),(0,Be.jsx)("img",{className:"wb-border-icon right",src:Hs+"assets/images/wb-svg/border-4.svg"})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("boxshadow"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,Be.jsx)("div",{className:"wb-box-shadow-header",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,Be.jsxs)("div",{className:"content-1",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,Be.jsx)("img",{className:"wb-color-icon",src:Hs+"assets/images/wb-svg/box.svg"})]}),(0,Be.jsxs)("div",{className:"content-2",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-3",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-4",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-5",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("textshadow"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,Be.jsx)("div",{className:"wb-box-shadow-header",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,Be.jsxs)("div",{className:"content-1",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,Be.jsx)("img",{className:"wb-color-icon",src:Hs+"assets/images/wb-svg/box.svg"})]}),(0,Be.jsxs)("div",{className:"content-2",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-3",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-4",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,Be.jsxs)("div",{className:"content-5",children:[(0,Be.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,Be.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("color"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-color wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-border-color",children:(0,Be.jsxs)("div",{className:"wb-append-inner-color",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}}),(0,Be.jsx)("div",{className:"wb-color-icon",children:(0,Be.jsx)("input",{className:"wb-color-picker",type:"color",value:t.defaultValue,onChange:e=>{h(e,"defaultValue")}})})]})}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("cssfilter"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-css-filter wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-css-filter-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-css-filter-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("dimension"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-dimension wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-right-append",children:t.dimension_defaultValue&&(0,Be.jsxs)("div",{className:"wb-dimension-content",children:[(0,Be.jsxs)("div",{className:"wb-dimension-inp",children:[(0,Be.jsx)("input",{className:"dimension-inp top-inp",value:t.dimension_defaultValue.top,onChange:e=>{h(e,"dimension_defaultValue","top")},type:"number"}),(0,Be.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("TOP","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-dimension-inp",children:[(0,Be.jsx)("input",{className:"dimension-inp right-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.right,onChange:e=>{h(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"right")},type:"number"}),(0,Be.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("RIGHT","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-dimension-inp",children:[(0,Be.jsx)("input",{className:"dimension-inp bottom-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.bottom,onChange:e=>{h(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"bottom")},type:"number"}),(0,Be.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("BOTTOM","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wb-dimension-inp",children:[(0,Be.jsx)("input",{className:"dimension-inp left-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.left,onChange:e=>{h(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"left")},type:"number"}),(0,Be.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("LEFT","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wb-dimension-icon",onClick:e=>{h(e,"dimension_defaultValue","isLinked")},children:(0,Be.jsx)("img",{className:1==t.dimension_defaultValue.isLinked?"dimension-icon wkit-wb-dark":"dimension-icon",src:Hs+"assets/images/wb-svg/link.svg"})})]})})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("typography"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-typography wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-typography-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-typography-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("gradientcolor"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-grediant-color wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-grediant-color-content wb-append-input-field",children:[(0,Be.jsx)("div",{className:"wb-grediant-color-bar",style:{background:`${t.defaultValue}`}}),(0,Be.jsxs)("div",{className:"wb-grediant-color-selector",children:["gutenberg"!=t.widgetdata.type&&(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("select",{className:"gradiant-color-dropDown",children:[(0,Be.jsx)("option",{children:(0,a.__)("Linear","wdesignkit")}),(0,Be.jsx)("option",{children:(0,a.__)("radial","wdesignkit")}),(0,Be.jsx)("option",{children:(0,a.__)("conic","wdesignkit")})]}),(0,Be.jsx)("input",{className:"grediant-color-inp",value:"135",type:"text"})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("heading"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-heading wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-header-content",children:(0,Be.jsx)("div",{className:"wb-append-inner",children:"bricks"==t.widgetdata.type?(0,Be.jsx)("textarea",{className:"wb-textarea-inp wkit-wb-heading-textarea",value:t.lable,rows:3,onChange:e=>{h(e,"lable")}}):(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})})}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("repeater"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-main-component wb-repeater "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-repeater-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-repeater-field",onClick:()=>{p(!c)},children:(0,Be.jsx)("input",{className:"wb-repeater-field-title",value:t.title_field,onChange:e=>{h(e,"title_field")}})}),(0,Be.jsxs)("div",{className:"wb-repeater-options",style:{display:1==c?"block":"none"},children:[t.fields&&t.fields.map(((e,a)=>(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))),(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:`wb-repeater-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),_(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})},children:[(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})}),(0,Be.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]});if("popover"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-popover wb-main-component "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner wkit-wb-popoverLable",children:(0,Be.jsx)("input",{className:"wb-append-label wkit-wb-popoverInput",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-popover-options",children:[t.fields&&t.fields.map(((e,a)=>(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))),(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),_(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})},children:[(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})}),(0,Be.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]});if("normalhover"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-popover wb-main-component "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-popover-options wb-normalHover-options",children:[(0,Be.jsx)("div",{className:"wkit-wb-normalHover",children:t.nha_array.length>0&&t?.nha_array.filter((e=>null!==e)).map(((e,a)=>(0,Be.jsx)("div",{className:"wkit-wb-normalHoverList",style:{backgroundColor:t.nha_type==e?i():"white",color:t.nha_type==e?"#fff":"black",width:g("width"),border:g("border",a)},onClick:t=>{h(t,"nha_type",e||a)},children:g("label",e)})))}),t.fields&&t.fields.map(((e,a)=>{if(e.key==t.nha_type)return(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,nha_id:a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:t.nha_array,nha_type:t.nha_type,nha_array_lable:t.nha_array_lable,alignType:t.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a)})),(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),((e,i,s,n,l)=>{let r=e.dataTransfer.getData("controller_id");if(r)if("normalhover"==r)t.wdkit_set_toast([(0,a.__)("Not Valid","wdesignkit"),(0,a.__)("You Can Not put this controller here","wdesignkit"),"","danger"]);else{const e=Gi[r].name,a=Object.assign({},Gi[r],{name:e+"_"+u(),key:l});let o=[...t.cardData.CardItems.cardData],d=o[0][n][i].inner_sec[s],c=[...d.fields];c.push(a);let w=Object.assign({},d,{fields:c});o[0][n][i].inner_sec[s]=w,p(!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})},children:[(0,Be.jsx)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.25 0H5.25V5.25H0V6.25H5.25V12H6.25V6.25H12V5.25H6.25V0Z",fill:"#888888"})}),(0,Be.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]});if("divider"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-heading wkit-divider-controller wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-header-content",children:(0,Be.jsx)("hr",{})}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("rawhtml"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-heading wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-header-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-right-append",children:(0,Be.jsx)("textarea",{className:"wb-append-inp",style:{width:"100%"},value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("icon"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-icon-list wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-icon-list-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-icon-list-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("hidden"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-icon-list wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-icon-list-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-icon-list-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("media"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-media wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-media-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",style:{display:1==t.showLable?"block":"none"},children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-media-icon",style:{width:1==t.lableBlock?"100%":"65%"},src:Hs+"assets/images/jpg/placeholder.png",draggable:"false"})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("iconscontrol"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-icon-list wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-icon-list-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-icon-list-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("linksearch"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-link-search wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-link-search-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-link-search-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]})]})]});if("multirange"==t.type)return(0,e.useEffect)((()=>{const e=document.getElementById("input-left"),t=document.getElementById("input-right"),a=document.querySelector(".slider > .thumb.left"),i=document.querySelector(".slider > .thumb.right"),s=document.querySelector(".slider > .range");e.addEventListener("input",(()=>{const i=e,[n,l]=[parseInt(i.min),parseInt(i.max)];i.value=Math.min(parseInt(i.value),parseInt(t.value)-1);const r=(i.value-n)/(l-n)*100;a.style.left=r+"%",s.style.left=r+"%"})),t.addEventListener("input",(()=>{const a=t,[n,l]=[parseInt(a.min),parseInt(a.max)];a.value=Math.max(parseInt(a.value),parseInt(e.value)+1);const r=(a.value-n)/(l-n)*100;i.style.right=100-r+"%",s.style.right=100-r+"%"}))})),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-multi-range wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-multi-range-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"middle",children:(0,Be.jsxs)("div",{className:"multi-range-slider",children:[(0,Be.jsx)("input",{type:"range",id:"input-left",min:"0",max:"100",value:"25"}),(0,Be.jsx)("input",{type:"range",id:"input-right",min:"0",max:"100",value:"75"}),(0,Be.jsxs)("div",{className:"slider",children:[(0,Be.jsx)("div",{className:"track"}),(0,Be.jsx)("div",{className:"range"}),(0,Be.jsx)("div",{className:"thumb left"}),(0,Be.jsx)("div",{className:"thumb right"})]})]})})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("notice"==t.type){let e="",i="";return"warning"==t.notice_type&&(e="1px solid #f59e0b",i="#f59e0b"),"info"==t.notice_type&&(e="1px solid #2563eb",i="#2563eb"),"success"==t.notice_type&&(e="1px solid #0a875a",i="#0a875a"),"danger"==t.notice_type&&(e="1px solid #dc2626",i="#dc2626"),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-note wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-note-content",style:{border:e,padding:"5px"},children:[(0,Be.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"},children:[(0,Be.jsx)("div",{className:"wb-notice-svg",children:(0,Be.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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:i,strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wb-notice-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")},style:{fontWeight:"600"}})}),""!==t.description&&(0,Be.jsx)("div",{children:(0,Be.jsx)("textarea",{className:"wb-note-inp",value:t.description,placeholder:(0,a.__)("Write Your Note here....","wdesignkit"),onChange:e=>{h(e,"description")}})})]})]}),1==t.dismissible&&(0,Be.jsx)("div",{className:"wb-notice-close",children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"13",height:"13",children:(0,Be.jsx)("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,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]})}if("radioadvanced"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-radio-advanced wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-radio-advanced-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-radio-color",children:[(0,Be.jsx)("div",{className:"normal"==l?"radio-btn active-ra":"radio-btn",onClick:()=>{r("normal")},children:(0,a.__)("Normal","wdesignkit")}),(0,Be.jsx)("div",{className:"grediant"==l?"radio-btn active-ra":"radio-btn",onClick:()=>{r("grediant")},children:(0,a.__)("grediant","wdesignkit")})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("slider"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-range wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-range-content",children:(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("div",{className:"wb-range-bar wb-right-append",children:t&&t.size_units&&t.slider_defaultValue&&t.slider_defaultValue[0]&&t.size_units.map(((e,a)=>{if(t.slider_defaultValue[0]==e.type)return(0,Be.jsxs)(Ms,{children:[(0,Be.jsx)("input",{className:"wb-range-inp",min:e.min,max:e.max,step:e.step,type:"range",value:t.slider_defaultValue[1],onChange:e=>{h(e,"defaultValue_slider")},style:{background:`linear-gradient(to right, ${i()} 0%, ${i()} ${100*(t.slider_defaultValue[1]-e.min)/(e.max-e.min)}%, #e1e1e1 0%, #e1e1e1 0%)`}}),(0,Be.jsx)("input",{className:"range-inp-val",min:e.min,max:e.max,step:e.step,type:"number",value:t.slider_defaultValue[1],onChange:e=>{h(e,"defaultValue_slider")}})]},a)}))})]})}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("select"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-select wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:t.select_defaultValue[1]}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(Ms,{children:(0,Be.jsx)("option",{value:e.lable,onClick:e=>{h(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("selecttemplate"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-select wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:"Select Template"}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:(0,Be.jsx)("option",{selected:"Select Template",children:(0,a.__)("Select Template","wdesignkit")})})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("align"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-alignment-header",children:(0,Be.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"row"},children:[(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}}),(0,Be.jsxs)("div",{className:"wb-icons",children:["text-align"==t.alignType&&(0,Be.jsxs)(Ms,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Left","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/eicon-text-align-left.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Center","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/eicon-text-align-center.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Right","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/eicon-text-align-right.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Justify","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/eicon-text-align-justify.svg`})]})]}),"justify-content"==t.alignType&&(0,Be.jsxs)(Ms,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Start","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-start.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Center","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-center.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("End","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-end.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Space Between","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-space-between.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Space Around","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-space-around.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Space Evenly","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/justify-content-space-evenly.svg`})]})]}),"align-items"==t.alignType&&(0,Be.jsxs)(Ms,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Start","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-items-start.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Center","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-items-center.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("End","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-items-end.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Stretch","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-items-stretch.svg`})]})]}),"flex-direction"==t.alignType&&(0,Be.jsxs)(Ms,{children:[(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Vertical","wdesignkit"),"(Collumn)",(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-vertical-direction.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Horizontal","wdesignkit"),"(row)",(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-horizontal-direction.svg`})]}),(0,Be.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Row","wdesignkit"),(0,Be.jsx)("div",{className:"wkit-wb-align-icon-tooltip"})]}),(0,Be.jsx)("img",{className:"wkit-wb-align-icon",src:`${Hs}assets/images/wb-svg/align-reverse-direction.svg`})]})]})]})]})}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("headingtags"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-select wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:t.select_defaultValue?.[1]}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options?.length>0&&t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(Ms,{children:(0,Be.jsx)("option",{value:e.lable,onClick:e=>{h(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("select2"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-main-component wb-select2 "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select2-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{x(e)},children:[t.select2_defaultValue&&t.select2_defaultValue.map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-wb-multi-selected",children:[(0,Be.jsx)("div",{className:"wkit-wb-remove-value",onClick:e=>{h(e,"select2_defaultValue",t,"remove")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("label",{children:e.lable})]},t))),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/plus-icon.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-37*(t.options.length-t.select2_defaultValue.length)+"px"},children:t.options.map(((e,a)=>{let i={value:e.value,lable:e.lable};return(0,Be.jsx)("div",{className:"wkit-wb-multiSelect-value",children:t.select2_defaultValue.find((e=>e.value==i.value))&&t.select2_defaultValue.find((e=>e.lable==i.lable))?"":(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{h(e,"select2_defaultValue",i,"add")}}),(0,Be.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})},a)}))})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("textarea"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-textarea wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{h(e,"defaultValue")}})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("switcher"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-toggle wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-toggle-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("input",{className:"wb-append-inner wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}}),(0,Be.jsxs)("label",{className:"wb-switch",children:[(0,Be.jsx)("input",{type:"checkbox",checked:t.defaultValue,onChange:e=>{h(e,"switcher_defaultValue")}}),(0,Be.jsx)("span",{className:"wb-slider"})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("url"==t.type)return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-url wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wb-right-append",children:[(0,Be.jsxs)("div",{className:"wb-url-content",children:[(0,Be.jsx)("input",{className:"wb-url-inp",type:"url",placeholder:t.placeHolder,value:t.defaultValue,onChange:e=>{h(e,"defaultValue")}}),(0,Be.jsx)("img",{className:"inp-url-icon",src:Hs+"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,Be.jsxs)("div",{className:"wb-url-options",children:[(0,Be.jsxs)("div",{className:"url-opt",children:[(0,Be.jsx)("input",{type:"checkbox",checked:t.is_external,onChange:e=>{h(e,"is_external")}}),(0,Be.jsx)("label",{children:(0,a.__)("Open in new window","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"url-opt",children:[(0,Be.jsx)("input",{type:"checkbox",checked:t.nofollow,onChange:e=>{h(e,"nofollow")}}),(0,Be.jsx)("label",{children:(0,a.__)("Add Nofollow","wdesignkit")})]})]})]})]}),t&&t.description.length>=1&&(0,Be.jsx)("p",{className:"wb-append-dec",children:t.description}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]});if("alert"==t.type){let e="",a="";return"warning"==t.alert_type&&(e="2px solid #f59e0b",a="#fffbeb"),"info"==t.alert_type&&(e="2px solid #2563eb",a="#f0f7ff"),"success"==t.alert_type&&(e="2px solid #0a875a",a="#f2fdf5"),"danger"==t.alert_type&&(e="2px solid #dc2626",a="#fef1f4"),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-note wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-note-content",style:{borderLeft:e,background:a,padding:"10px"},children:[(0,Be.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"column"},children:[(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")},style:{background:a}}),(0,Be.jsx)("input",{className:"wb-append-label",value:t.description,onChange:e=>{h(e,"description")},style:{background:a}})]}),(0,Be.jsx)("div",{})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]})}return"deprecatednotice"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-note wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-note-content",style:{borderLeft:"2px solid #f59e0b",background:"#fffbeb",padding:"10px"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("p",{className:"wb-append-label",style:{background:"#fffbeb",height:"180px"},children:(0,a.__)(`The <b>${t.deprecatedValue[0].Widget}</b> widget has been deprecated since ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[1].Since}. It has been replaced by <b>${t.deprecatedValue[4].Replacement}</b>. Note that ${t.deprecatedValue[0].Widget} will be completely removed once ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[2].Last} is released.`,"wdesignkit")})}),(0,Be.jsx)("div",{})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]}):"styleimage"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-select wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:t.select_defaultValue[1]}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(Ms,{children:(0,Be.jsx)("option",{value:e.lable,onClick:e=>{h(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]}):"svg"==t.type||"query"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-icon-list wb-main-component "+(b()==t.name?"wkit-wb-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{v(e)},children:[(0,Be.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsxs)("div",{className:"wb-icon-list-content",children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsx)("img",{className:"wb-icon-list-icon",src:Hs+"assets/images/wb-svg/pana-icon.svg"})]}),(0,Be.jsx)(f,{only_edit:!!t?.only_edit})]})]}):"cpt"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&v(e,"cpt_controller")},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(Ms,{children:(0,Be.jsx)("option",{value:e.lable,onClick:e=>{h(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,Be.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]}):"product_listing"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&v(e,"cpt_controller")},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]}):"taxonomy"==t.type?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("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,Be.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(b()==t.name?"wkit-wb-main-selected":""),draggable:w,onDragEnd:()=>{m(!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,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&v(e,"cpt_controller")},children:[(0,Be.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{m(!0)},onMouseUp:()=>{m(!0)},children:(0,Be.jsx)("img",{draggable:"false",src:Hs+"assets/images/wb-svg/white-drag.svg"})}),(0,Be.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,Be.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,Be.jsx)("div",{className:"wb-append-inner",children:(0,Be.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{h(e,"lable")}})}),(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{x(e)},children:[(0,Be.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,Be.jsx)(Ms,{children:(0,Be.jsx)("option",{value:e.lable,onClick:e=>{h(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,Be.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,Be.jsx)("div",{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.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:a,rnp2_id:null!=t.rnp_id&&a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,select2_defaultValue:e.select2_defaultValue,hTags_defaultValue:e.hTags_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class,only_edit:!0})},a)))}),(0,Be.jsxs)("div",{className:"wb-hover-main-component",children:[(0,Be.jsx)("div",{className:"wb-sec-edit edit-btn",onClick:e=>{v(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-pen.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{k(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-copy2.svg"})}),(0,Be.jsx)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{C(e)},children:(0,Be.jsx)("img",{src:Hs+"assets/images/wb-svg/white-delete.svg"})})]})]})]}):void 0})),{Fragment:Ds}=wp.element,Ss=Ji((e=>({cardData:e.CardItems.cardData,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(ts(t)),addToActiveController:t=>e(ns(t)),addToActiveSection:t=>e(ls(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{var i=wdkitData.WDKIT_URL;const s=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},[n,l]=(0,e.useState)(!1),[r,o]=(0,e.useState)(0),d=(0,e.useRef)(),c=(0,e.useRef)(),p=(0,e.useRef)(),[w,m]=((0,e.useRef)(),(0,e.useState)(0)),[g,u]=(0,e.useState)(""),h=[{slide_img:"https://i.ytimg.com/vi/Bw5IHPxr0Nc/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLDlvdVCQFiMcg2IEXzlqqnb7SUSJg",yt_link:"https://www.youtube.com/watch?v=Bw5IHPxr0Nc"},{slide_img:"https://i.ytimg.com/vi/tuzLhe8cuXM/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAhCZV4OP9MUiwrA_jLPPWlP1AcGQ",yt_link:"https://www.youtube.com/watch?v=tuzLhe8cuXM"},{slide_img:"https://i.ytimg.com/vi/4RhZwuyFd8k/hqdefault.jpg?sqp=-oaymwEmCKgBEF5IWvKriqkDGQgBFQAAiEIYAdgBAeIBCggYEAIYBjgBQAE=&rs=AOn4CLBdHd-boAdQdDe6N1SoY_npGiBagw",yt_link:"https://www.youtube.com/watch?v=4RhZwuyFd8k"}];(0,e.useEffect)((()=>{const e=setInterval((()=>{m((e=>(e+1)%h.length))}),1e4);return()=>{clearInterval(e)}}),[]),(0,e.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(),p.current=e.target.closest(".wb-main-component").dataset)}))}));var i=document.querySelectorAll(".wb-drop");i.length>0&&i.forEach((e=>{e.addEventListener("drop",(e=>{if(e.dataTransfer.getData("controller_id")&&e.target.nextElementSibling.dataset.sec_id){e.stopImmediatePropagation();let n=e.dataTransfer.getData("controller_id"),l=e.target.nextElementSibling.dataset.sec_id,r=e.target.nextElementSibling.dataset.compo_id;const o=Gi[n].name;if(e.target.nextSibling.dataset.nha)var i=Object.assign({},Gi[n],{name:o+"_"+s(),key:e.target.nextSibling.dataset.nha});else i=Object.assign({},Gi[n],{name:o+"_"+s()});let d=[...t.cardData];if(e.target.nextSibling.dataset.editable)return t.wdkit_set_toast([(0,a.__)("Not Valid","wdesignkit"),(0,a.__)("You Can Not put this controller here","wdesignkit"),"","danger"]),e.target.classList.remove("wb_drag-over"),!1;if(e.target.nextSibling.dataset.rnp)if("repeater"==o||"popover"==o||"normalhover"==o||"cpt"==o||"product_listing"==o||"taxonomy"==o)t.wdkit_set_toast([(0,a.__)("Not Valid","wdesignkit"),(0,a.__)("You Can Not put this controller here","wdesignkit"),"","danger"]);else{let a=e.target.nextSibling.dataset.rnp,s=d[0][t.array_type][l].inner_sec[r],n=[...s.fields];n.splice(a,0,i);let o=Object.assign({},s,{fields:n});d[0][t.array_type][l].inner_sec[r]=o}else d[0][t.array_type][l].inner_sec.splice(r,0,i);e.target.classList.remove("wb_drag-over"),t.addToCarthandler(d)}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"),_(t)}}))}))}));const _=e=>{let a=p.current?.sec_id,i=p.current?.compo_id,s=null!=p.current?.rnp?p.current?.rnp:"",n=e?.sec_id,l=e?.compo_id,r=null!=e?.rnp?e?.rnp:"",o=[...t.cardData];if(o?.[0]?.[t?.array_type]?.[a]?.inner_sec[i]){if(s&&r){let e=o[0][t.array_type][a].inner_sec[i].fields[s];o[0][t.array_type][a].inner_sec[i].fields.splice(s,1),s<r?o[0][t.array_type][n].inner_sec[l].fields.splice(r-1,0,e):o[0][t.array_type][n].inner_sec[l].fields.splice(r,0,e)}else if(s&&!r){let e=o[0][t.array_type][a].inner_sec[i].fields[s];o[0][t.array_type][a].inner_sec[i].fields.splice(s,1),"normalhover"==o[0][t.array_type][a].inner_sec[i].type&&null!=e?.key&&delete e.key,o[0][t.array_type][n].inner_sec.splice(l,0,e)}else{let e=o[0][t.array_type][a].inner_sec[i];o[0][t.array_type][a].inner_sec.splice(i,1),i<l?o[0][t.array_type][n].inner_sec.splice(l-1,0,e):o[0][t.array_type][n].inner_sec.splice(l,0,e)}t.addToCarthandler(o),t.addToActiveController("")}},C=(e,a)=>{let i=e.dataTransfer.getData("controller_id");if(i){let e=s();const n=Gi[i];let l=[];"cpt"!=i.toLowerCase()&&"product_listing"!=i.toLowerCase()&&"taxonomy"!=i.toLowerCase()||n?.fields.length>0&&n.fields.map((t=>{let a=Object.assign({},t,{name:t.name+"_"+e});l.push(a)}));const r=Object.assign({},Gi[i],{name:n.name+"_"+e,unique_id:e,fields:l});let o=[...t.cardData];o[0][t.array_type][a].inner_sec.push(r),t.addToCarthandler(o)}},k=(e,a)=>{let i=[...t.cardData];const s=r+1,n=`Section-${s}`;if(i[0][t.array_type].every((e=>e.section!==n))){const l={name:`builder-${s}`,section:n,compo_index:s,inner_sec:[]};if(i[0][t.array_type].push(l),t.addToCarthandler(i),o(s),void 0!==a){let a=i[0][t.array_type].length-1;C(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}else{const n={name:`builder-${s+1}`,section:`Section-${s+1}`,compo_index:s+1,inner_sec:[]};if(i[0][t.array_type].push(n),t.addToCarthandler(i),o(s+1),void 0!==a){let a=i[0][t.array_type].length-1;C(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}},v=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})},b=(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,Be.jsx)("div",{className:"wb-second-layout-container",children:(0,Be.jsxs)("div",{className:"wb-second-layout-content",children:[(0,Be.jsx)("div",{className:"append",children:Object.values(t.cardData[0][t.array_type])?.map(((e,o)=>(0,Be.jsx)(Ds,{children:(0,Be.jsxs)("div",{draggable:n,className:"wb-section",id:`builder-${o}`,"data-index":o,onDragEnd:e=>{c.current=null,d.current=null,l(!1)},onDragEnter:e=>{((e,a)=>{let i=[...t.cardData],s=i[0][t.array_type][c.current];null!==c.current&&void 0!==c.current&&c.current!==a&&(i[0][t.array_type][c.current]=i[0][t.array_type][a],i[0][t.array_type][a]=s,c.current=a,t.addToCarthandler(i)),d.current=a,t.addToActiveSection({sec_id:a,array_type:t.array_type})})(0,o)},onDragStart:e=>{((e,t)=>{c.current=t})(0,o)},children:[(0,Be.jsxs)("div",{className:"wb-section-header","data-sec_index":o,onClick:e=>{!e.target.closest(".wb-section-btns")&&t.section_id.sec_id!=o&&v(o)},children:[(0,Be.jsxs)("div",{className:"wb-section-title",children:[(0,Be.jsx)("div",{onMouseDown:()=>{l(!0)},onMouseUp:()=>{l(!1)},children:(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wb-section-title-text",children:e?.section})]}),(0,Be.jsxs)("div",{className:"wb-section-btns",children:[(0,Be.jsx)("img",{className:"wb-sec-btn",src:i+"assets/images/wb-svg/uparrow.svg",style:{transform:t.section_id.sec_id==o?"":"rotate(180deg)"},onClick:e=>{v(o)}}),(0,Be.jsx)("img",{className:"wb-sec-btn",src:i+"assets/images/wb-svg/edit_section.svg",onClick:e=>{t.addToActiveController({sec_id:o,array_type:t.array_type})}}),(0,Be.jsx)("img",{className:"wb-sec-btn",src:i+"assets/images/wb-svg/copy-icon.svg",onClick:e=>{((e,a)=>{let i=[...t.cardData],n=i[0][t.array_type][a].section,l=e.target.closest(".wb-section-header").dataset.sec_index,o=[...i[0][t.array_type]],d=[];o[l].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+"_"+s()});t.push(a)}));let a=Object.assign({},e,{fields:t}),i=Object.assign({},a,{name:a.type+"_"+s()});d.push(i)}else{let t=Object.assign({},e,{name:e.type+"_"+s()});d.push(t)}}));let c=function(e,t){let a=e,i=2;for(;t.some((e=>e.section===a));)a=e+i,i++;return a}(n+"-copy",i[0][t.array_type]),p=Object.assign({},o[l],{compo_index:r,name:s(),inner_sec:d,section:c}),w=Number(l);i[0][t.array_type].splice(w+1,0,p),t.addToCarthandler(i)})(e,o)}}),(0,Be.jsx)("img",{className:"wb-sec-btn",src:i+"assets/images/wb-svg/trash-2.svg",onClick:e=>{((e,a)=>{var i=ace.edit("editor-html",{theme:"ace/theme/cobalt",mode:"ace/mode/html"});const s=(e,t)=>{var a=i.find(e,{wrap:!0,caseSensitive:!0,wholeWord:!0,regExp:!1,preventScroll:!0});null!=a&&(t?(i?.session?.replace(a,t),s(e,t)):(i?.session?.replace(a,""),s(e)))};let n=[...t.cardData];n[0][t.array_type][a]?.inner_sec?.map((e=>{"repeater"==e?.type||"popover"==e?.type?(s(`data-${e.name}={${e.name}}`),e?.fields?.map((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}}}`)}))):("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}}`)),"cpt"!=e.type&&"product_listing"!=e.type||(s(`data-${e.name}={${e.name}}`),s(`data-${e.name}_cat={${e.name}_cat}`),s(`data-${e.name}_tag={${e.name}_tag}`),s(`{{title_${e.name}}}`),s(`{{description_${e.name}}}`),s(`{{thumbnail_${e.name}}}`),s(`{{category_${e.name}}}`),s(`{{cat_name_${e.name}}}`),s(`{{cat_url_${e.name}}}`),s(`{{tag_${e.name}}}`),s(`{{tag_name_${e.name}}}`),s(`{{tag_url_${e.name}}}`),s(`{{post_date_${e.name}}}`),s(`{{post_link_${e.name}}}`),s(`{{auth_name_${e.name}}}`),s(`{{auth_email_${e.name}}}`),s(`{{auth_url_${e.name}}}`),s(`{{auth_id_${e.name}}}`),s(`{{auth_profile_${e.name}}}`)),"taxonomy"==e.type&&(s(`data-${e.name}={${e.name}}`),s(`{{title_${e.name}}}`),s(`{{description_${e.name}}}`),s(`{{taxo_image_${e.name}}}`),s(`{{taxo_slug_${e.name}}}`),s(`{{taxo_link_${e.name}}}`)),"headingtags"==e?.type&&s(e.name,"div"),s(`{{${e?.name}}}`))})),n[0][t.array_type].splice(a,1),t.addToCarthandler(n),t.addToActiveController("")})(0,o)}})]})]}),(0,Be.jsxs)("div",{className:t.section_id.sec_id==o?"wb-components-settings wb-show":"wb-components-settings",children:[e?.inner_sec.length>0?Object.values(e?.inner_sec)?.map(((e,a)=>(0,Be.jsx)(Ds,{children:(0,Be.jsx)(Vs,{name:e.name,showLable:e.showLable,separator:e.separator,lableBlock:e.lableBlock,placeHolder:e.placeHolder,type:e.type,description:e.description,defaultValue:e.defaultValue,lable:e.lable,sec_index:o,array_type:t.array_type,compo_index:a,types:e.types,number_setting:e.number_setting,title_field:e.title_field,fields:e.fields,return_value:e.return_value,is_external:e.is_external,nofollow:e.nofollow,size_units:e.size_units,options:e.options,rows:e.rows,dimension_defaultValue:e.dimension_defaultValue,align_option:e.align_option,align_defaultValue:e.align_defaultValue,select_defaultValue:e.select_defaultValue,hTags_defaultValue:e.hTags_defaultValue,select2_defaultValue:e.select2_defaultValue,slider_defaultValue:e.slider_defaultValue,nha_array:e.nha_array,nha_type:e.nha_type,nha_array_lable:e.nha_array_lable,alignType:e.alignType,alert_type:e.alert_type,notice_type:e.notice_type,deprecatedValue:e.deprecatedValue,dismissible:e.dismissible,parent_class:e.parent_class})},a))):"",(0,Be.jsx)("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,Be.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":e?.inner_sec.length,"data-sec_id":o,"data-array_type":t.array_type}),(0,Be.jsx)("div",{className:"wb-droped",draggable:!0,onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{b(e,"add")},onDragLeave:e=>{b(e,"remove")},onDrop:e=>{e.preventDefault(),C(e,o),b(e,"remove")},onClick:e=>{t.addToActiveController("")},children:(0,a.__)("Add More","wdesignkit")})]})]},("builder-"+o).toString())},o)))}),(0,Be.jsx)("div",{className:"wb-add-section",onClick:()=>{k()},onDragOver:e=>{e.preventDefault()},onDrop:e=>{k(e,t.array_type)},children:(0,Be.jsxs)("span",{className:"add-section-btn",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.75 0H5.25V5.25H0V6.75H5.25V12H6.75V6.75H12V5.25H6.75V0Z",fill:"black"})}),(0,Be.jsx)("span",{children:(0,a.__)("Add Section","wdesignkit")})]})})]})})})),Zs=Ji((e=>({Editor_code:e.Editor_code,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller})),(e=>({addToEditor_code:t=>e(ss(t)),addToCarthandler:t=>e(ts(t)),addTowidgethandler:t=>e(as(t)),addTolinkhandler:t=>e(is(t)),addToActiveController:t=>e(ns(t))})))((t=>{const i=[{name:"elementor",label:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0",text:(0,a.__)("Oops! Elementor Page Builder is not activated. Please install it now to unlock full functionality.","wdesignkit"),class:"wkit-elementor-bg",color:"#91003B"},{name:"the-plus-addons-for-block-editor",label:"gutenberg",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",type:"plugin",freepro:"0",text:(0,a.__)("Oops! Nexter blocks is not activated. Please install it now to unlock full functionality.","wdesignkit"),class:"wkit-nexter-bg",color:"#162D9E"},{name:"bricks",label:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1",text:(0,a.__)("Oops! Bricks Theme is not activated. Please install it now to unlock full functionality.","wdesignkit"),link:"https://academy.bricksbuilder.io/article/installation-activation/",class:"wkit-bricks-bg",color:"#000000"}],s=i.findIndex((e=>e.label===t.widgetdata.type)),[n,l]=(0,e.useState)("layout"),[r,o]=(0,e.useState)([]),[d,c]=(0,e.useState)(!1);(0,e.useEffect)((()=>{p("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),lt([i[s]]).then((e=>{if(e?.data?.plugins){let t={},a=e.data.plugins.findIndex((e=>"bricks"==e.name));a>-1&&"active"==e.data.plugins?.[a]?.status&&p(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),e.data.plugins.map((e=>{t[e.name]=e.status})),o(t)}}))}),[]),(0,e.useEffect)((()=>{document.body.classList.contains("folded")||document.body.classList.add("folded")}));const p=e=>{if(!document.querySelector(`link[href="${e}"]`)){let t=document.createElement("link");t.rel="stylesheet",t.href=e+"?v="+(new Date).getTime(),document.head.appendChild(t)}};var w="",m=0,g=0;t&&t.widgetdata&&t.widgetdata.type&&"elementor"==t.widgetdata.type?w="wkit-elementor-builder":t&&t.widgetdata&&t.widgetdata.type&&"gutenberg"==t.widgetdata.type?w="wkit-gutenberg-builder":t&&t.widgetdata&&t.widgetdata.type&&"bricks"==t.widgetdata.type&&(w="wkit-bricks-builder");const u=e=>{const t=e.clientX-m;let a=`${g+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,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("div",{className:`wkit-wb-main-builder-page ${w}`,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)},children:[r&&Object.keys(r)?.length>0&&"active"!==r?.[i?.[s]?.name]&&(0,Be.jsxs)("div",{className:`wkit-install-dependency wkit-wb-notice ${i[s]?.class}`,children:[(0,Be.jsxs)("div",{className:"wkit-wb-notice-content",children:[(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"wkit-notice-svg",width:"18",height:"16",viewBox:"0 0 18 16",fill:"none",children:[(0,Be.jsx)("path",{d:"M7.75548 1.47626L0.768852 13.5766C0.642649 13.7951 0.576195 14.043 0.576172 14.2953C0.576149 14.5477 0.642556 14.7956 0.768719 15.0141C0.894882 15.2326 1.07635 15.4141 1.29489 15.5403C1.51343 15.6664 1.76132 15.7328 2.01366 15.7328H15.9858C16.2381 15.7328 16.486 15.6664 16.7046 15.5403C16.9231 15.4141 17.1046 15.2326 17.2307 15.0141C17.3569 14.7956 17.4233 14.5477 17.4233 14.2953C17.4233 14.043 17.3568 13.7951 17.2306 13.5766L10.2447 1.47626C10.1186 1.25778 9.93716 1.07636 9.71868 0.950229C9.50021 0.824095 9.25238 0.75769 9.0001 0.75769C8.74783 0.75769 8.5 0.824095 8.28152 0.950229C8.06304 1.07636 7.88162 1.25778 7.75548 1.47626Z",fill:i[s]?.color}),(0,Be.jsx)("path",{d:"M9.09088 5.20837H8.90863C8.45993 5.20837 8.09619 5.57211 8.09619 6.02081V9.90412C8.09619 10.3528 8.45993 10.7166 8.90863 10.7166H9.09088C9.53958 10.7166 9.90332 10.3528 9.90332 9.90412V6.02081C9.90332 5.57211 9.53958 5.20837 9.09088 5.20837Z",fill:"#FFF7ED"}),(0,Be.jsx)("path",{d:"M8.99975 13.7964C9.49878 13.7964 9.90332 13.3918 9.90332 12.8928C9.90332 12.3938 9.49878 11.9893 8.99975 11.9893C8.50073 11.9893 8.09619 12.3938 8.09619 12.8928C8.09619 13.3918 8.50073 13.7964 8.99975 13.7964Z",fill:"#FFF7ED"})]}),(0,Be.jsx)("span",{className:"wkit-install-plugin-text",children:i[s]?.text})]}),i[s]?.link?(0,Be.jsx)("a",{href:i[s]?.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to Install ?","wdesignkit")}):"loading"===r[i[s].name]?(0,Be.jsx)("button",{className:"wkit-install-plugin-btn",children:(0,Be.jsx)("span",{className:"wkit-loader"})}):(0,Be.jsx)("button",{className:"wkit-install-plugin-btn",onClick:()=>{(async e=>{let a={...r,[e.name]:"loading"};o(a);let i={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type};rt(i).then((i=>{i.data.success?(a={...r,[i.data.slug]:i.data.status},o(a),"elementor"==e.name&&p(wdkitData.WDKIT_SITE_URL+"/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.css")):t.wdkit_set_toast(["Installation Failed!","Plugin is not installed","","danger"])}))})(i[s])},children:(0,a.__)("Install Now","wdesignkit")})]}),(0,Be.jsx)(Ls,{plugin_status:r,plugin_detail:i}),(0,Be.jsxs)("div",{className:"wkit-wb-widget-builder "+(Object.keys(r).length>0&&"active"!==r[i[s].name]?"wkit-wb-rm-height":""),children:[(0,Be.jsxs)("div",{className:"wkit-wb-first-part content",children:[(0,Be.jsx)("div",{className:"wkit-wb-first-part-content",children:(0,Be.jsx)(ys,{plugin_status:r})}),(0,Be.jsx)("div",{className:"wkit-wb-first-second-drag",draggable:!0,onDragStart:e=>{(e=>{m=e.clientX;const t=window.getComputedStyle(e.target.parentElement);g=parseInt(t.width,10)})(e)},onDrag:e=>{u(e)},onDragEnd:e=>{u(e)}})]}),(0,Be.jsxs)("div",{className:"wkit-wb-second content",children:[(0,Be.jsxs)("div",{className:"wb-second-header",children:[(0,Be.jsxs)("div",{className:"layout"==n?"wb-second-header-layout active":"wb-second-header-layout",onClick:()=>l("layout"),children:[(0,Be.jsx)("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wb-layout-text",children:(0,a.__)("Layout","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"style"==n?"wb-second-header-style active":"wb-second-header-style",onClick:()=>l("style"),children:[(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wb-style-text",children:(0,a.__)("Style","wdesignkit")})]})]}),"layout"==n&&(0,Be.jsx)(Ss,{array_type:"layout"}),"style"==n&&(0,Be.jsx)(Ss,{array_type:"style"})]}),(0,Be.jsxs)("div",{className:"wkit-wb-third content",children:[(0,Be.jsxs)("div",{className:"wkit-wb-third-header",children:[(0,Be.jsxs)("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("")},children:[(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Controls","wdesignkit")})]}),(0,Be.jsxs)("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",children:[(0,Be.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Edit","wdesignkit")})]})]}),t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type&&(0,Be.jsx)(hs,{}),(0,Be.jsx)("div",{style:{display:t&&!t.controller||!t.controller.controller||t.controller.controller?.controller_type?"block":"none",height:"100%"},children:(0,Be.jsx)(bs,{array_type:n})}),t&&(!t.controller||!t.controller.controller||t.controller.controller?.controller_type)&&!wdkitData?.wdkit_white_label?.plugin_news&&(0,Be.jsxs)("div",{className:"wkit-wb-yt-link",onClick:()=>c(!0),children:[(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M11.0924 2.04688H2.90762C1.30178 2.04688 0 3.34866 0 4.9545V9.04601C0 10.6518 1.30178 11.9536 2.90762 11.9536H11.0924C12.6982 11.9536 14 10.6518 14 9.04601V4.9545C14 3.34866 12.6982 2.04688 11.0924 2.04688ZM9.12598 7.19932L5.2977 9.02518C5.19569 9.07383 5.07786 8.99945 5.07786 8.88645V5.12061C5.07786 5.006 5.19879 4.93172 5.30101 4.98353L9.12929 6.92351C9.24311 6.98118 9.24113 7.14441 9.12598 7.19932Z",fill:"#fff"})}),(0,Be.jsx)("span",{className:"wkit-wb-yt-link-text",children:(0,a.__)("Watch our YouTube video")})]}),d&&(0,Be.jsx)("div",{id:"wkit-yt-popup-open",className:"wkit-yt-overlay",onClick:e=>{(e=>{Object.values(e?.target?.classList).includes("wkit-wb-yt-popup")&&c(!1)})(e)},children:(0,Be.jsx)("div",{className:"wkit-wb-yt-popup",children:(0,Be.jsx)("div",{className:"wkit-yt-carousel-slide",children:(0,Be.jsx)("iframe",{className:"wkit-wb-yt-carousel-img",src:"https://www.youtube.com/embed/videoseries?list=PLFRO-irWzXaJUu7MKQ8Gv63ATyZENEAPG&showinfo=1&autoplay=1&rel=0",allowFullScreen:!0})})})})]})]})]})})})),Rs=Ji((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(ss(t)),addToCarthandler:t=>e(ts(t)),addTowidgethandler:t=>e(as(t)),addTolinkhandler:t=>e(is(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const[i,s]=(0,e.useState)(!0),[n,l]=(0,e.useState)("");var r=wdkitData.WDKIT_URL;const o=Y(),d=G();(0,e.useEffect)((()=>{Xe()||d("/login")}),[]),(0,e.useEffect)((()=>{null!=t.wdkit_meta.success&&c()}),[t.wdkit_meta]),(0,e.useEffect)((()=>{t?.Editor_code&&t?.Editor_data&&t?.cardData&&t?.widgetdata&&n?.Editor_code&&n?.carddata&&n?.widgetdata&&n?.e_links&&JSON.stringify(t.Editor_code)==JSON.stringify(n.Editor_code)&&JSON.stringify(t.Editor_data)==JSON.stringify(n.e_links)&&JSON.stringify(t.cardData)==JSON.stringify(n.carddata)&&JSON.stringify(t.widgetdata)==JSON.stringify(n.widgetdata)&&s(!1)}),[n]);const c=async()=>{let e=t?.wdkit_meta?.widget_list?.length>0?t?.wdkit_meta?.widget_list:[],i=await e.filter((e=>{if("plugin"==e?.type||"done"==e?.type)return e})),s=o?.id,n=s?s.replaceAll(" ","_"):"",r=i.findIndex((e=>e.title.replaceAll(" ","_")+"_"+e.w_unique==n));if(r>-1){let e=i[r];if("deactive"!=e?.is_activated){let a=e?.title?e.title.replaceAll(" ","_")+"_"+e.w_unique:"",i={type:"wkit_widget_json",folder_name:e?.title?e.title.replaceAll(" ","-")+"_"+e.w_unique:"",file_name:a,widget_type:e.builder};var c=await Ye(i).then((e=>e.success?e.data:[]));let s=[...t.Editor_code];s[0]=c.Editor_data;let n=c.Editor_data,r=c.section_data,o=c.widget_data.widgetdata,d=c.Editor_Link.links,p={Editor_code:[n],carddata:r,widgetdata:o,e_links:d};t.addToEditor_code(s),t.addToCarthandler(r),t.addTowidgethandler(o),t.addTolinkhandler(d),l(p)}else t.wdkit_set_toast([(0,a.__)("Widget Deactivated","wdesignkit"),(0,a.__)("This Widget is Deactivated ","wdesignkit"),"","danger"]),d("/widget-listing")}else t.wdkit_set_toast([(0,a.__)("Widget Not Found","wdesignkit"),(0,a.__)("Widget not found try again later","wdesignkit"),"","danger"]),d("/widget-listing")};if(i){let e=wdkitData?.wdkit_white_label?.plugin_logo||r+"assets/images/jpg/wdkit_loader.gif";return(0,Be.jsx)("div",{className:"wb-loader",style:{display:"flex"},draggable:!1,children:(0,Be.jsx)("img",{style:{width:"150px",height:"150px",marginLeft:"-160px"},src:e,draggable:!1})})}return(0,Be.jsx)(Zs,{})})),{Fragment:Bs}=wp.element,Es=t=>{const[i,s]=(0,e.useState)(t.filterArgs),[n,l]=(0,e.useState)([]),[r,o]=(0,e.useState)([]),[d,c]=(0,e.useState)(""),[p,w]=(0,e.useState)(""),m=G();(0,e.useEffect)((()=>{(()=>{let e=t?.filter_data?.search||"";var a=Object.assign({},t?.filter_data,{search:e});const i=new URLSearchParams((s=a,Object.fromEntries(Object.entries(s).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e))))).toString();var s;m(`/widget-browse?${i}`)})(),o(t?.filter_data?.buildertype?t?.filter_data?.buildertype:""),c(t?.filter_data?.free_pro?t?.filter_data?.free_pro:""),w(t?.filter_data?.search?t?.filter_data?.search:""),l(t?.filter_data?.category?JSON.parse(t?.filter_data?.category.replaceAll('"',"")):[]),s(t.filter_data)}),[t.filter_data]);const g=()=>{document.querySelector(".wkit-mobile-filter-main").classList.remove("wkit-filter-menu-show")},u=(e,t)=>{if("category"===t){let t=[...n];if(t.includes(Number(e.target.value))){let a=t.indexOf(Number(e.target.value));t.splice(a,1),l(t),s(Object.assign({},i,{category:JSON.stringify(t)}))}else t.push(Number(e.target.value)),l(t),s(Object.assign({},i,{category:JSON.stringify(t)}))}else if("builder"===t){var a="";e.target.checked&&(a=e.target.value),o(a);let t=Object.assign({},i,{buildertype:a});s(t)}else if("search"===t){let t=Object.assign({},i,{search:e.target.value,page:1});w(e.target.value),s(t)}else if("free_pro"===t){c(e.target.value);let t=Object.assign({},i,{free_pro:e.target.value,page:1});s(t)}};return(0,Be.jsxs)("div",{className:"wkit-mobile-filter-main",children:[(0,Be.jsxs)("div",{className:"wkit-mobile-filter-main-content",children:[(0,Be.jsx)("div",{className:"wkit-filter-main-heading",children:(0,a.__)("Filter by","wdesignkit")}),(0,Be.jsx)("div",{className:"close-icon",children:(0,Be.jsx)("a",{className:"close",onClick:()=>g(),children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Search :","wdesignkit")}),(0,Be.jsx)(Bs,{children:(0,Be.jsx)("div",{className:"wkit-browse-search-inner",children:(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Widgets","wdesignkit"),type:"text",value:p,onChange:e=>{u(e,"search")}})})})]}),t.BuilderArray.length>1&&(0,Be.jsxs)("div",{className:"wkit-filter-by-page-builder",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Page Builder :","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-category-mobile-filter",children:t.builder_list&&t.builder_list.length>0&&t.builder_list.map(((e,a)=>{if(t.BuilderArray.includes(e.w_id))return(0,Be.jsx)(Bs,{children:(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",name:"check1",checked:e.builder_name.toLowerCase()==r,value:e.builder_name.toLowerCase(),className:"wkit-custom-cateogry",id:e.builder_name,onChange:e=>{u(e,"builder")}}),(0,Be.jsxs)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:e.builder_name,children:[(0,Be.jsx)("img",{className:"wkit-pin-img-temp",src:e.builder_icon,alt:"section",draggable:!1}),e.builder_name]})]})},a)}))})]}),(0,Be.jsxs)("div",{className:"wkit-filter-by-categorties",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Free/Pro :","wdesignkit")}),(0,Be.jsx)(Bs,{children:(0,Be.jsxs)("div",{className:"wkit-category-mobile-filter",children:[(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-free-btn-label",value:"free",onChange:e=>{u(e,"free_pro")},checked:"free"==d}),(0,Be.jsx)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-free-btn-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"radio",className:"wkit-custom-cateogry",id:"wkit-pro-btn-label",value:"pro",onChange:e=>{u(e,"free_pro")},checked:"pro"==d}),(0,Be.jsx)("label",{className:"wkit-check-wrapper",htmlFor:"wkit-pro-btn-label",children:(0,a.__)("Pro","wdesignkit")})]})]})})]}),(0,Be.jsxs)("div",{className:"wkit-filter-by-categorties",children:[(0,Be.jsx)("div",{className:"wkit-browse-filter-heading",children:(0,a.__)("Categories :","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-category-mobile-filter",children:Object.values(t.category_list).map(((e,t)=>(0,Be.jsx)(Bs,{children:(0,Be.jsxs)("div",{className:"wkit-custom-category-wrap",children:[(0,Be.jsx)("input",{type:"checkbox",name:"check1",className:"wkit-custom-cateogry",checked:n.includes(e.term_id),value:e.term_id,id:e.term_id,onChange:e=>{u(e,"category")}}),(0,Be.jsx)("label",{name:"check1",className:"wkit-check-wrapper",htmlFor:e.term_id,children:e.term_name})]})},t)))})]})]}),(0,Be.jsx)("div",{className:"wkit-common-btn wkit-pink-btn-class",onClick:e=>{t.setfilter_data(i),t.setselect_builder(r),t.setcategory_check(n),t.setfree_pro(d),t.setsearch_check(p),g()},children:(0,Be.jsx)("span",{children:(0,a.__)("Visit Site","wdesignkit")})})]})},Os=e=>{var t=wdkitData.WDKIT_URL;const a=e=>Array.from({length:e}),i=e=>{let t=Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e)));return Object.values(t)};return(0,Be.jsxs)(Be.Fragment,{children:[e?.filter&&(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsx)("div",{className:"wkit-browse-widget-column wkit-browse-widget-mobile-hide",children:(0,Be.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,Be.jsx)("div",{className:"wkit-expand-filter",children:(0,Be.jsx)("div",{className:"wkit-left-main-title",children:"Filters"})}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Search"})}),(0,Be.jsx)("div",{className:"wkit-search-filter",children:(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:"Search Widgets",type:"text"}),(0,Be.jsx)("span",{className:"wkit_search_button wkit-btn-class",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Page Builder"})}),(0,Be.jsxs)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left",children:[(0,Be.jsx)("div",{className:"wkit-filter-builder",children:a(2).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-wb-widgetType",children:(0,Be.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-builder-radio"}),(0,Be.jsx)("label",{className:"wkit-builder-label",children:(0,Be.jsx)("img",{className:"wkit-browse-filter-builder wkit-select-builder",src:"https://wdesignkit.com/images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})},t)))}),(0,Be.jsx)("hr",{style:{width:"100%"}}),(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Free / Pro"})}),(0,Be.jsx)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:a(2).map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp"}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:"Free"})]},t)))}),(0,Be.jsx)("hr",{style:{width:"100%"}}),(0,Be.jsxs)("div",{className:"wkit-filter-category",children:[(0,Be.jsx)("div",{className:"wkit-filter-accordion",children:(0,Be.jsx)("div",{className:"wkit-filter-heading",children:"Categories"})}),a(7).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:(0,Be.jsxs)("label",{className:"wkit-plugin-name",children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,Be.jsx)("span",{className:"wkit-widget-category-select",children:"Essential"})]})})},t)))]})]})]})})}),e?.cards&&(0,Be.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[e?.filterArgs&&i(e?.filterArgs).length>0&&(0,Be.jsx)("div",{className:"wkit-free-dropdown-mixed",children:(0,Be.jsxs)("div",{className:"wkit-browse-applied-filter",children:[(0,Be.jsx)("label",{className:"applied-filter-text",children:"Applied Filter :"}),i(e?.filterArgs).map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:e})}),(0,Be.jsx)("button",{children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]},t))),(0,Be.jsx)("button",{className:"wdkit-reset-all-filters wkit-btn-class",children:"Clear All"})]})}),(0,Be.jsx)("div",{className:"wkit-skeleton-row ",children:a(12).map(((e,a)=>{return i=a,(0,Be.jsx)("div",{className:"wkit-widgetlist-grid-content",children:(0,Be.jsxs)("div",{className:"wkit-widget-card",children:[(0,Be.jsx)("div",{className:"wkit-widget-card-top-part",children:(0,Be.jsx)("div",{children:(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:t+"assets/images/wkit-dummy-bg.png",draggable:"false"})})}),(0,Be.jsxs)("div",{className:"wkit-widget-card-bottom-part",children:[(0,Be.jsxs)("div",{className:"wkit-widget-title-content",children:[(0,Be.jsx)("p",{className:"wkit-widget-title-heading",children:(0,Be.jsx)("span",{children:"Modern Hover Post"})}),(0,Be.jsx)("div",{className:"wkit-widget-download-activity",children:(0,Be.jsx)("div",{className:"plugin-download-icon",children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("div",{className:"wdkit-star-rating",style:{width:"50%"},children:(0,Be.jsx)("span",{children:"1 Review"})}),(0,Be.jsxs)("div",{className:"wkit-widget-info-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons-content",children:[(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:t+"assets/images/svg/eye.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:"800"})]}),(0,Be.jsx)("hr",{className:"wkit-icon-divider-hr"}),(0,Be.jsxs)("div",{className:"wkit-widget-info-icons",children:[(0,Be.jsx)("img",{src:t+"assets/images/svg/download-template.svg",alt:"wb-view-icon"}),(0,Be.jsx)("label",{children:"800"})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-builder-icon",children:[(0,Be.jsx)("img",{src:"https://wdesignkit.com/images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-widget-builder-tooltip",children:"Elementor"})]})]})]})]})},i);var i}))})]})]})},{Fragment:As}=wp.element,{wkit_get_user_login:Ts}=wp.wkit_Helper;let Ps=new AbortController;const Ws=t=>{const i=G(),s=J(),[n,r]=(0,e.useState)(1),[o,d]=(0,e.useState)(12),[c,p]=(0,e.useState)("loading"),[w,m]=(0,e.useState)(!0),[g,u]=(0,e.useState)(""),[h,_]=(0,e.useState)(),[C,k]=(0,e.useState)([]),[v,b]=(0,e.useState)(["category","free_pro"]),[x,f]=(0,e.useState)(0),[j,y]=(0,e.useState)(!0),[$,N]=(0,e.useState)(!0),[L,M]=(0,e.useState)([]),[H,V]=(0,e.useState)(""),[D,S]=(0,e.useState)(""),[Z,R]=(0,e.useState)({free_pro:"",type:"widget_browse_page",buildertype:"",perpage:o,page:n}),B=(0,e.useRef)(null),[E,O]=(0,e.useState)([]),A=t?.wdkit_meta?.widgetbuilder?[...t?.wdkit_meta?.widgetbuilder]:[],T=t?.wdkit_meta?.widgetscategory?[...t?.wdkit_meta?.widgetscategory]:[],[P,W]=(0,e.useState)("");Ts()||t.wdkit_Login_Route("/widget-browse"),(0,e.useEffect)((()=>{_(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{if(y(!0),s?.search){const e=new URLSearchParams(s.search),t={};Array.from(e?.entries()).map((([e,a])=>{t[e]=a})),R((e=>({...e,...t}))),t.category&&k(JSON.parse(t.category)),t.buildertype&&u(t.buildertype),t.free_pro&&W(t.free_pro),t.search&&(S(t.search),V(t.search))}}),[]),(0,e.useEffect)((()=>{z(),N(!0)}),[Z,o,n,h]),(0,e.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push(1),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push(2),t?.wdkit_meta?.Setting?.bricks_builder&&e.push(3),O(e)}),[t?.wdkit_meta?.Setting]);const F=e=>{let t=[];return A?.length>0&&e.map((e=>{let a=A.findIndex((t=>t.w_id==e)),i=A[a]?.builder_name;t.push(i)})),t},I=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e))),q=(e,t)=>{if("category"===t){let t=[...C];if(t.includes(Number(e.target.value))){let i=t.indexOf(Number(e.target.value));t.splice(i,1),k(t);var a=Object.assign({},Z,{category:JSON.stringify(t),page:1});r(1)}else t.push(Number(e.target.value)),k(t),a=Object.assign({},Z,{category:JSON.stringify(t),page:1}),r(1)}else if("builder"===t){var s="";e.target.checked&&(s=e.target.value),u(s),a=Object.assign({},Z,{buildertype:s,page:1}),r(1)}else if("search"===t)a=Object.assign({},Z,{page:1}),r(1);else if("free_pro"===t){var n="";e.target.checked&&(n=e.target.value),W(n),a=Object.assign({},Z,{free_pro:n,page:1}),r(1)}a=Object.assign({},a,{search:H}),R(a),S(H);const l=new URLSearchParams(I(a)).toString();i(`/widget-browse?${l}`)},U=e=>{if(C.includes(e))return!0},z=async()=>{if(g)var e=Object.assign({},Z,{buildertype:JSON.stringify([g])});else e=Object.assign({},Z,{buildertype:JSON.stringify(F(E))});if(h?.widgetbuilder?.length>0){Ps&&Ps.abort(),Ps=new AbortController;let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),Object.entries(e).forEach((([e,t])=>{a.append(e,t)})),await l().post(ajaxurl,a,{signal:Ps.signal}).then((async e=>{e?.data?.data?.widgets&&(p(e?.data),f(Math.ceil(e?.data?.data?.widgetscount/o)),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)})),M(a)})(e?.data)),y(!1),N(!1)}))}},K=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,Be.jsxs)("div",{className:`wkit-browse-widget-wrap ${j?"wkit-skeleton":""} ${$?"wkit-widget-skeleton":""}`,children:[(0,Be.jsx)(Es,{filter_type:"widget",filter_data:Z,setfilter_data:e=>{R(e)},setcategory_check:e=>{k(e)},setselect_builder:e=>{u(e)},setfree_pro:e=>{W(e)},setsearch_check:e=>{S(e)},category_list:T,builder_list:A,BuilderArray:E}),(0,Be.jsxs)("div",{className:"wkit-browse-widget-main",children:[0==j&&c?.data?.widgets&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-browse-widget-column wkit-browse-widget-mobile-hide "+(w?"":"wkit-browse-column-collapse"),children:w?(0,Be.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,Be.jsxs)("div",{className:"wkit-expand-filter",children:[(0,Be.jsx)("div",{className:"wkit-left-main-title",children:(0,a.__)("Filters","wdesignkit")}),(0,Be.jsx)("div",{style:{cursor:"pointer"},onClick:()=>{m(!w)},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:"wkit-wb-filterTitle",children:(0,a.__)("Search","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-search-filter",children:(0,Be.jsx)(As,{children:(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Widgets","wdesignkit"),type:"text",value:H,onChange:e=>{V(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(q(e,"search"),B.current.blur())},ref:B}),(0,Be.jsx)("span",{className:"wkit_search_button wkit-btn-class",onClick:e=>{q(e,"search")},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})}),E.length>1&&(0,Be.jsx)("div",{className:"wkit-wb-filterTitle",children:(0,a.__)("Page Builder","wdesignkit")}),"wdkit"==wdkitData.use_editor&&(0,Be.jsxs)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left",children:[(0,Be.jsx)("div",{className:"wkit-filter-builder",children:A.length>0&&E.length>1&&Object.values(A)?.map(((e,t)=>{if(E.includes(e.w_id))return(0,Be.jsx)(As,{children:(0,Be.jsx)("div",{className:"wkit-wb-widgetType",children:(0,Be.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,Be.jsx)("input",{type:"checkbox",id:"select_builder_"+e.builder_name,className:"wkit-builder-radio",value:e.builder_name.toLowerCase(),name:"selectBuilder",onChange:e=>{q(e,"builder")},checked:g.includes(e.builder_name.toLowerCase())}),(0,Be.jsx)("label",{className:"wkit-builder-label",htmlFor:"select_builder_"+e.builder_name,children:""!=e.builder_icon&&(0,Be.jsx)("img",{className:"wkit-browse-filter-builder "+(g==e.builder_name.toLowerCase()?"wkit-select-builder":""),src:e.builder_icon,draggable:!1})}),(0,Be.jsx)("span",{className:"wkit-builder-toolTip",children:e.builder_name})]})})},t)}))}),(0,Be.jsx)("hr",{style:{width:"100%"}}),(0,Be.jsxs)(As,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>K("free_pro"),children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Free / Pro","wdesignkit")}),(0,Be.jsx)("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",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:[(0,Be.jsxs)("label",{htmlFor:"wkit-free-btn-label",className:"wkit-select-freePro-type",children:[(0,Be.jsx)("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"==Z.free_pro}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,Be.jsxs)("label",{htmlFor:"wkit-pro-btn-label",className:"wkit-select-freePro-type",children:[(0,Be.jsx)("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"==Z.free_pro}),(0,Be.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Pro","wdesignkit")})]})]})]}),(0,Be.jsx)("hr",{style:{width:"100%"}}),(0,Be.jsxs)("div",{className:"wkit-filter-category",children:[(0,Be.jsxs)("div",{className:"wkit-filter-accordion",onClick:()=>{K("category")},children:[(0,Be.jsx)("div",{className:"wkit-filter-heading",children:(0,a.__)("Categories","wdesignkit")}),(0,Be.jsx)("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",children:(0,Be.jsx)("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(((e,t)=>(0,Be.jsx)(As,{children:(0,Be.jsx)("div",{className:"wkit-accordion-content",children:(0,Be.jsx)("div",{className:"wkit-plugin-wrap",children:(0,Be.jsxs)("label",{htmlFor:"category_"+e.term_id,className:"wkit-plugin-name",children:[(0,Be.jsx)("input",{type:"checkbox",value:Number(e.term_id),className:"wkit-check-box wkit-styled-checkbox",id:"category_"+e.term_id,name:"selectPlugin",onChange:e=>q(e,"category"),checked:U(e.term_id)}),(0,Be.jsx)("span",{className:"wkit-widget-category-select",children:e.term_name})]})})},t)},t)))]})]})]}):(0,Be.jsxs)("div",{className:"filter-abosulte",onClick:()=>{m(!w)},children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Filters","wdesignkit")]})}),(0,Be.jsxs)("div",{className:"filter-abosulte wkit-browse-mobile-filter",onClick:()=>{document.querySelector(".wkit-mobile-filter-main")&&document.querySelector(".wkit-mobile-filter-main").classList.add("wkit-filter-menu-show")},children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Filters","wdesignkit")]}),(0,Be.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(()=>{const e=(e,t)=>{let a;if("builder"==t)u(""),a=Object.assign({},Z,{buildertype:""}),R(a);else if("category"==t){let t=[...C];t=t.filter((t=>t!==Number(e))),k(t),a=Object.assign({},Z,{category:JSON.stringify(t)}),R(a)}else"free_pro"==t?(W(""),a=Object.assign({},Z,{free_pro:""}),R(a)):"search"==t&&(S(""),V(""),a=Object.assign({},Z,{search:""}),R(a));const s=new URLSearchParams(I(a)).toString();i(`/widget-browse?${s}`)};return(0,Be.jsx)("div",{className:"wkit-free-dropdown-mixed",children:(""!=P||C.length>0||""!=g||""!=D)&&(0,Be.jsx)("div",{className:"wkit-browse-applied-filter",children:(0,Be.jsxs)(As,{children:[(0,Be.jsx)("label",{className:"applied-filter-text",children:(0,a.__)("Applied Filter :")}),""!=g&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:g})}),(0,Be.jsxs)("button",{onClick:t=>e(t,"builder"),children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:D})}),(0,Be.jsx)("button",{onClick:t=>e(t,"search"),children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})})})]}),""!=P&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:P})}),(0,Be.jsxs)("button",{onClick:t=>e(t,"free_pro"),children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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(T)?.map(((t,a)=>(0,Be.jsx)(As,{children:C.includes(t.term_id)&&(0,Be.jsxs)("div",{className:"wkit-applied-list",children:[(0,Be.jsx)("label",{children:(0,Be.jsx)("span",{children:t.term_name})}),(0,Be.jsx)("button",{onClick:()=>{e(t.term_id,"category")},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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))),(0,Be.jsx)("button",{className:"wdkit-reset-all-filters wkit-btn-class",onClick:()=>{k([]),W(""),u(""),S(""),V(""),R(Object.assign({},Z,{free_pro:"",category:JSON.stringify([]),buildertype:"",search:"",perpage:o,page:1})),i("/widget-browse")},children:"Clear All"})]})})})})(),0==$&&c?.data?.widgets.length>0&&(0,Be.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(0,Be.jsx)("div",{className:w?"wkit-skeleton-row":"wkit-widget-browse-filter-close wkit-skeleton-row",children:c?.data?.widgets.map(((e,a)=>{if("active"==e.is_activated)return(0,Be.jsx)(As,{children:(0,Be.jsx)(xt,{widgetData:e,existingwidget:L,setexistingwidget:e=>{M(e)},widgetbuilder:t.wdkit_meta.widgetbuilder,index:a,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,i,s)=>{t.wdkit_set_toast([e,a,i,s])}})},a)}))}),(0,Be.jsx)("div",{className:"wkit-wb-paginatelist",children:x>1&&(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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:x,marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&(r(e.nextSelectedPage+1),Z.page=e.nextSelectedPage+1)},forcePage:n-1,onPageActive:()=>{}})})})]}),0==$&&c?.data?.widgets.length<=0&&(0,Be.jsx)("div",{className:"wkit-post-not-found",children:(0,Be.jsx)(_t,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"documents/manage-versions-of-a-widget/"})}),1==$&&(0,Be.jsx)(Os,{cards:!0})]})]}),!0===j&&(0,Be.jsx)(Os,{filter:!0,cards:!0,filterArgs:Z})]})]})};let Fs=new AbortController;const Is=t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)(""),[o,d]=(0,e.useState)(""),[c,p]=(0,e.useState)(""),[w,m]=(0,e.useState)("Select Version"),[g,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)(!0),[C,k]=(0,e.useState)(!1),[v,b]=(0,e.useState)(!1),x=wdkitData?.wdkit_white_label,[f,j]=(0,e.useState)({plugin_name:x?.plugin_name||"",plugin_desc:x?.plugin_desc||"",developer_name:x?.developer_name||"",website_url:x?.website_url||"",plugin_logo:x?.plugin_logo||"",help_link:x?.help_link||!1,plugin_news:x?.plugin_news||!1,licence_tab:x?.licence_tab||!1,rollback_tab:x?.rollback_tab||!1,force_disable:x?.force_disable||!1});(0,e.useEffect)((()=>{$()}),[]);const y={plugin_name:"WDesignKit",plugin_desc:"Your All-in-One solution for effortless WordPress website creation and collaboration. With over 1,000+ Elementor and WordPress website templates, a library of 50+ pre-made widgets for Elementor, Gutenberg Blocks, and Bricks, along with a cloud workspace for collaboration and more.",developer_name:"POSIMYTH",website_url:"https://wdesignkit.com/",plugin_logo:"",help_link:!1,plugin_news:!1,licence_tab:!1,rollback_tab:!1,force_disable:!1},$=()=>{j(x?{plugin_name:x?.plugin_name||"",plugin_desc:x?.plugin_desc||"",developer_name:x?.developer_name||"",website_url:x?.website_url||"",plugin_logo:x?.plugin_logo||"",help_link:x?.help_link||!1,plugin_news:x?.plugin_news||!1,licence_tab:x?.licence_tab||!1,rollback_tab:x?.rollback_tab||!1,force_disable:x?.force_disable||!1}:y)};t.wdkit_Login_Route("/settings");var N=wdkitData.WDKIT_URL;const L=["studio","lifetime"];var M=!0,H=!0,V=!0,D=!0,S=!0,Z=!0,R=!0,B={remove_entries:!1,all_data:!1,promotion_data:!1,widget_builder_data:!1};if(t?.wdkit_meta?.Setting){var E=t?.wdkit_meta?.Setting;0==E?.elementor_builder&&(M=!1),0==E?.gutenberg_builder&&(H=!1),0==E?.bricks_builder&&(V=!1),0==E?.template&&(D=!1),0==E?.builder&&(S=!1),0==E?.gutenberg_template&&(Z=!1),0==E?.elementor_template&&(R=!1),"on"==t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(B.remove_entries=!0,1==t?.wdkit_meta?.Setting.remove_db?.all_data&&(B.all_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.promotion_data&&(B.promotion_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.widget_builder_data&&(B.widget_builder_data=!0))}const O=e=>{var t="",i="";return"error_handling"==e?(i=(0,a.__)("Error Handling","wdesignkit"),t='<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"==e?(i=(0,a.__)("Performance","wdesignkit"),t='<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>'):"role_manager"==e?(i=(0,a.__)("Role Manager","wdesignkit"),t='<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>'):"white_label"==e&&(i=(0,a.__)("White Label","wdesignkit"),t='<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>'),(0,Be.jsx)("div",{className:"wkit-mange-boxed-inner",children:(0,Be.jsxs)("div",{className:"wkit-settings-boxed",children:[(0,Be.jsxs)("div",{children:[(0,Be.jsx)("div",{className:"wkit-icon-bg",dangerouslySetInnerHTML:{__html:t}}),(0,Be.jsxs)("div",{className:"wkit-setting-card-header",children:[(0,Be.jsx)("h3",{className:"settings-boxed-heading",children:i}),(0,Be.jsx)("span",{className:"wkit-comming-soon-pin",children:(0,a.__)("Coming Soon","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-setting-panel-ed",children:(0,Be.jsx)("button",{type:"submit",className:"wkit-setting-btn-enable-disble btn-opacity",children:(0,a.__)("Enable","wdesignkit")})})]})})},A=e=>{var i="",n="",l="";"builder"==e?(n=(0,a.__)("Widget Builders","wdesignkit"),i=(0,Be.jsxs)("svg",{width:"36",height:"40",viewBox:"0 0 36 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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"==e?(n=(0,a.__)("Features Manager","wdesignkit"),i=(0,Be.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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"==e?(n=(0,a.__)("Design Templates","wdesignkit"),i=(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:(0,Be.jsx)("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"})})):"roll_back"==e?(n=(0,a.__)("Roll Back","wdesignkit"),i=(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M12.375 4.875C12.1761 4.875 11.9853 4.95402 11.8447 5.09467C11.704 5.23532 11.625 5.42609 11.625 5.625V12.375C11.625 12.375 11.625 12.405 11.625 12.4238C11.6235 12.4512 11.6235 12.4788 11.625 12.5062V12.5737C11.6313 12.5979 11.6388 12.6216 11.6475 12.645L11.6775 12.7087L11.7112 12.7725L11.7525 12.8325L11.7975 12.8887L11.8575 12.945L11.8912 12.9788L16.3912 16.3538C16.5504 16.4731 16.7504 16.5243 16.9473 16.4962C17.1442 16.4681 17.3219 16.3629 17.4412 16.2037C17.5606 16.0446 17.6118 15.8446 17.5837 15.6477C17.5556 15.4508 17.4504 15.2731 17.2912 15.1537L13.125 12V5.625C13.125 5.42609 13.046 5.23532 12.9053 5.09467C12.7647 4.95402 12.5739 4.875 12.375 4.875Z",fill:"#040483"}),(0,Be.jsx)("path",{d:"M12.75 0.75C10.0914 0.750035 7.51875 1.6916 5.48824 3.40772C3.45773 5.12384 2.10059 7.50361 1.65749 10.125L1.37249 9.70125C1.2611 9.53615 1.08869 9.42207 0.893183 9.38409C0.697676 9.34611 0.495091 9.38736 0.329994 9.49875C0.164897 9.61014 0.0508112 9.78255 0.0128351 9.97806C-0.025141 10.1736 0.016103 10.3762 0.127494 10.5413L1.62749 12.7913C1.68841 12.8839 1.76911 12.9619 1.86378 13.0196C1.95845 13.0773 2.06474 13.1133 2.17499 13.125H2.24999C2.44859 13.1242 2.63874 13.0446 2.77874 12.9037L4.65374 11.0287C4.79447 10.888 4.87354 10.6971 4.87354 10.4981C4.87354 10.2991 4.79447 10.1082 4.65374 9.9675C4.51301 9.82677 4.32214 9.74771 4.12312 9.74771C3.9241 9.74771 3.73322 9.82677 3.59249 9.9675L3.12749 10.4362C3.42606 8.59876 4.24444 6.88514 5.48589 5.49795C6.72735 4.11075 8.33998 3.10795 10.1332 2.60808C11.9264 2.1082 13.8253 2.13215 15.6053 2.67708C17.3854 3.22201 18.9722 4.26515 20.1783 5.68321C21.3844 7.10127 22.1593 8.83498 22.4114 10.6794C22.6636 12.5239 22.3824 14.4019 21.6012 16.0917C20.82 17.7814 19.5713 19.2122 18.0028 20.2149C16.4343 21.2175 14.6116 21.7502 12.75 21.75C11.264 21.7769 9.79358 21.4446 8.46364 20.7813C7.1337 20.1179 5.98363 19.1432 5.11124 17.94C5.05412 17.8597 4.98174 17.7915 4.89825 17.7392C4.81475 17.6869 4.72177 17.6516 4.62462 17.6352C4.52747 17.6188 4.42804 17.6218 4.33202 17.6438C4.236 17.6659 4.14526 17.7066 4.06499 17.7637C3.98472 17.8209 3.91649 17.8933 3.86419 17.9767C3.81189 18.0602 3.77655 18.1532 3.76018 18.2504C3.74382 18.3475 3.74675 18.447 3.76881 18.543C3.79086 18.639 3.83162 18.7297 3.88874 18.81C4.89901 20.209 6.23226 21.3433 7.77507 22.1163C9.31788 22.8893 11.0246 23.2783 12.75 23.25C15.7337 23.25 18.5952 22.0647 20.7049 19.955C22.8147 17.8452 24 14.9837 24 12C24 9.01631 22.8147 6.15483 20.7049 4.04505C18.5952 1.93526 15.7337 0.75 12.75 0.75Z",fill:"#040483"})]})):"plugin_uninstall"==e?(n=(0,a.__)("Remove Database","wdesignkit"),i=(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:(0,Be.jsx)("path",{d:"M17.6136 21.3956L17.1166 21.3407L17.1166 21.3408L17.6136 21.3956ZM6.38644 21.3956L6.88342 21.3408L6.88342 21.3407L6.38644 21.3956ZM2.625 3.8125H2.125V4.8125H2.625V3.8125ZM21.375 4.8125H21.875V3.8125H21.375V4.8125ZM19.003 4.25762L17.1166 21.3407L18.1105 21.4505L19.997 4.36738L19.003 4.25762ZM17.1166 21.3408C17.0407 22.0278 16.4575 22.5625 15.75 22.5625V23.5625C16.9729 23.5625 17.9794 22.6387 18.1105 21.4505L17.1166 21.3408ZM15.75 22.5625H8.25V23.5625H15.75V22.5625ZM8.25 22.5625C7.54251 22.5625 6.95926 22.0278 6.88342 21.3408L5.88946 21.4505C6.02062 22.6387 7.02709 23.5625 8.25 23.5625V22.5625ZM6.88342 21.3407L4.99698 4.25762L4.00302 4.36738L5.88946 21.4505L6.88342 21.3407ZM2.625 4.8125H21.375V3.8125H2.625V4.8125ZM8.75 4.3125V2.8125H7.75V4.3125H8.75ZM8.75 2.8125C8.75 2.05313 9.36563 1.4375 10.125 1.4375V0.4375C8.81334 0.4375 7.75 1.50084 7.75 2.8125H8.75ZM10.125 1.4375H13.875V0.4375H10.125V1.4375ZM13.875 1.4375C14.6344 1.4375 15.25 2.05313 15.25 2.8125H16.25C16.25 1.50084 15.1867 0.4375 13.875 0.4375V1.4375ZM15.25 2.8125V4.3125H16.25V2.8125H15.25ZM13.375 9V18.375H14.375V9H13.375ZM9.625 9V18.375H10.625V9H9.625Z",fill:"#040483"})})):"white_label"==e&&(n=(0,a.__)("White Label","wdesignkit"),i=(0,Be.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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"}),(0,Be.jsx)("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"})]}));const o=a=>{if(("builder"===e||"template"===e)&&0==t?.wdkit_meta?.Setting?.[e]){if("disable_btn"===a)return"wkit-disable-btn-class";if("disable_element"===a)return"wdkit-diabled-element"}if(!("white_label"!==e||Xe()&&L.includes(t?.wdkit_meta?.credits?.user_type))&&(l=(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"19",viewBox:"0 0 20 19",fill:"none",children:[(0,Be.jsx)("rect",{x:"0.75",y:"0.25",width:"18.5",height:"18.5",rx:"9.25",fill:"#F9B744"}),(0,Be.jsx)("rect",{x:"0.75",y:"0.25",width:"18.5",height:"18.5",rx:"9.25",stroke:"#F9B744",strokeWidth:"0.5"}),(0,Be.jsx)("path",{d:"M5.57415 10.6675C5.38405 9.43188 5.19396 8.19629 5.00387 6.96066C4.96171 6.68676 5.27337 6.49995 5.49505 6.66623C6.0873 7.11041 6.67952 7.55457 7.27177 7.99876C7.46677 8.14501 7.74459 8.09741 7.87977 7.8946L9.35893 5.67585C9.51524 5.44138 9.85974 5.44138 10.0161 5.67585L11.4952 7.8946C11.6304 8.09741 11.9082 8.14498 12.1032 7.99876C12.6955 7.55457 13.2877 7.11041 13.8799 6.66623C14.1016 6.49995 14.4133 6.68676 14.3711 6.96066C14.1811 8.19629 13.991 9.43188 13.8009 10.6675H5.57415Z",fill:"white"}),(0,Be.jsx)("path",{d:"M13.372 12.7241H6.00312C5.76625 12.7241 5.57422 12.5321 5.57422 12.2952V11.353H13.8009V12.2952C13.8009 12.5321 13.6089 12.7241 13.372 12.7241Z",fill:"white"})]}),"wl-pro"===a))return"wkit-setting-btn-enable-disble btn-opacity"};return(0,Be.jsx)("div",{className:`wkit-mange-boxed-inner ${o("disable_btn")}`,children:(0,Be.jsxs)("div",{className:`wkit-settings-boxed ${o("disable_element")}`,children:[(0,Be.jsxs)("div",{children:[(0,Be.jsx)("div",{className:"wkit-icon-bg",children:i}),(0,Be.jsxs)("div",{className:"wkit-card-title",children:[(0,Be.jsxs)("span",{className:"wkit-card-detail",children:["white_label"===e&&!l&&!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("span",{className:"wkit-label-tooltip",children:(0,Be.jsx)("a",{href:"https://learn.wdesignkit.com/docs/white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",className:"wkit-wl-doc-link",children:(0,a.__)("Read Document","wdesignkit")})}),(0,Be.jsx)("h3",{className:"settings-boxed-heading",children:n})]}),l&&(0,Be.jsxs)("div",{className:"wkit-wl-tolltip",children:[l,(0,Be.jsxs)("span",{className:"wkit-wl-user-msg",children:[(0,a.__)("Only lifetime & studio users can access this feature.","wdesignkit"),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{className:"wkit-wl-doc",href:"https://learn.wdesignkit.com/docs/white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)(" Read Document","wdesignkit")})]})]})]})]}),(0,Be.jsx)("div",{className:"wkit-setting-panel-ed",children:(0,Be.jsxs)("button",{type:"submit",disabled:!!l,className:`wkit-setting-icon-bg wkit-btn-class ${o("wl-pro")}`,onClick:()=>{r(e),d(n),s(!0)},children:[(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Customize","wdesignkit")})]})})]})})},T=()=>{const e=[{text:(0,a.__)("Hide all Help Links?","wdesignkit"),key:"help_link"},{text:(0,a.__)("Hide all Plugin Updates related News?","wdesignkit"),key:"plugin_news"},{text:(0,a.__)("Hide Licence Key Tab?","wdesignkit"),key:"licence_tab"},{text:(0,a.__)("Hide Plugin RollBack Tab?","wdesignkit"),key:"rollback_tab"},{text:"<span>Enable Force Disable Options : </span> If you enable this option, It will be completely hidden. If you want it back, You have to deactivate and activate plugin to make it work again.",key:"force_disable"}],i=(e,t)=>{"plugin_name"==e&&b(!1);let a=Object.assign({},f,{[e]:t});j(a)};return(0,Be.jsxs)("div",{className:"wkit-popup-body wkit-whiteLabel-container",children:[(0,Be.jsx)("div",{className:"wkit-inp-container",children:(0,Be.jsxs)("div",{className:"wkit-data-container",children:[(0,Be.jsx)("label",{htmlFor:"wdkit_plugin_name_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Name","wdesignkit")}),(0,Be.jsx)("input",{id:"wdkit_plugin_name_update",className:"wkit-whiteLabel-input "+(v?"wkit-error-border":""),onChange:e=>{i("plugin_name",e.target.value)},value:f?.plugin_name,type:"text",placeholder:(0,a.__)("Enter Plugin Name","wdesignkit")}),v&&(0,Be.jsx)("span",{className:"wkit-wl-tooltip",children:(0,a.__)("Name cannot be empty","wdesignkit")})]})}),(0,Be.jsx)("div",{className:"wkit-inp-container",children:(0,Be.jsxs)("div",{className:"wkit-data-container",children:[(0,Be.jsx)("label",{htmlFor:"wdkit_plugin_desc_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Description","wdesignkit")}),(0,Be.jsx)("textarea",{id:"wdkit_plugin_desc_update",value:f?.plugin_desc,onChange:e=>{i("plugin_desc",e.target.value)},className:"wkit-whiteLabel-input wkit-whiteLabel-textarea",placeholder:(0,a.__)("Enter Plugin Description","wdesignkit"),cols:"5"})]})}),(0,Be.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,Be.jsxs)("div",{className:"wkit-data-container",children:[(0,Be.jsx)("label",{htmlFor:"wdkit_plugin_dname",className:"wkit-whiteLabel-label",children:(0,a.__)("Developer/Agency","wdesignkit")}),(0,Be.jsx)("input",{id:"wdkit_plugin_dname",value:f?.developer_name,onChange:e=>{i("developer_name",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Developer Name","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-data-container",children:[(0,Be.jsx)("label",{htmlFor:"wdkit_plugin_webURL",className:"wkit-whiteLabel-label",children:(0,a.__)("Website URL","wdesignkit")}),(0,Be.jsx)("input",{id:"wdkit_plugin_webURL",value:f?.website_url,onChange:e=>{i("website_url",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Web URL","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-inp-container",children:(0,Be.jsxs)("div",{className:"wkit-data-container",children:[(0,Be.jsx)("label",{className:"wkit-whiteLabel-label",children:(0,a.__)("Plus Icon/Logo","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-wl-logo-content",onClick:e=>{(e=>{e.target.closest(".wkit_wl_remove_img")?i("plugin_logo",""):(()=>{const e=wp?.media({title:(0,a.__)("Select or Upload Media","wdesignkit"),button:{text:(0,a.__)("Use this media","wdesignkit")},multiple:!1,library:{type:"image"}});e.on("select",(()=>{const t=e.state().get("selection").first().toJSON();i("plugin_logo",t.url)})),e.open()})()})(e)},children:f?.plugin_logo?(0,Be.jsxs)("div",{className:"wkit-plugin-icon-upload wkit-wl-img-uploaded",children:[(0,Be.jsxs)("svg",{className:"wkit_wl_remove_img",width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M18.75 6.25L6.25 18.75",stroke:"black",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M6.25 6.25L18.75 18.75",stroke:"black",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("img",{src:f?.plugin_logo})]}):(0,Be.jsxs)("div",{className:"wkit-plugin-icon-upload",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"42",viewBox:"0 0 45 42",fill:"none",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.5 0.75C0.5 0.335786 0.835786 0 1.25 0H2.75C3.16421 0 3.5 0.335786 3.5 0.75V2.25C3.5 2.66421 3.16421 3 2.75 3H1.25C0.835786 3 0.5 2.66421 0.5 2.25V0.75ZM30.5 22.6935C30.5 21.5302 31.7667 20.8097 32.7666 21.4042L44.0634 28.1212C45.1789 28.7845 44.9829 30.4552 43.7442 30.8423L40.2441 31.9361L43.5291 37.6102C43.9396 38.3193 43.7053 39.2265 43.0027 39.648L40.5391 41.1262C39.8209 41.5571 38.8889 41.3164 38.4692 40.5915L35.1917 34.9303L33.009 36.9145C32.0454 37.7905 30.5 37.1068 30.5 35.8046V22.6935ZM43.2968 29.4105L32 22.6935V35.8046L34.1827 33.8203C34.8902 33.1772 36.0108 33.3512 36.4898 34.1787L39.7674 39.8399L42.231 38.3618L38.9459 32.6876C38.4641 31.8554 38.8788 30.7912 39.7967 30.5043L43.2968 29.4105ZM8.75 0C8.33579 0 8 0.335786 8 0.75V2.25C8 2.66421 8.33579 3 8.75 3H10.25C10.6642 3 11 2.66421 11 2.25V0.75C11 0.335786 10.6642 0 10.25 0H8.75ZM15.5 0.75C15.5 0.335786 15.8358 0 16.25 0H17.75C18.1642 0 18.5 0.335786 18.5 0.75V2.25C18.5 2.66421 18.1642 3 17.75 3H16.25C15.8358 3 15.5 2.66421 15.5 2.25V0.75ZM23.75 0C23.3358 0 23 0.335786 23 0.75V2.25C23 2.66421 23.3358 3 23.75 3H25.25C25.6642 3 26 2.66421 26 2.25V0.75C26 0.335786 25.6642 0 25.25 0H23.75ZM23 8.25C23 7.83579 23.3358 7.5 23.75 7.5H25.25C25.6642 7.5 26 7.83579 26 8.25V9.75C26 10.1642 25.6642 10.5 25.25 10.5H23.75C23.3358 10.5 23 10.1642 23 9.75V8.25ZM16.25 12C14.5931 12 13.25 13.3431 13.25 15V36C13.25 37.6569 14.5931 39 16.25 39H26.75V37.5H16.25C15.4216 37.5 14.75 36.8284 14.75 36V15C14.75 14.1716 15.4216 13.5 16.25 13.5H37.25C38.0784 13.5 38.75 14.1716 38.75 15V20.25H40.25V15C40.25 13.3431 38.9069 12 37.25 12H16.25ZM0.5 8.25C0.5 7.83579 0.835786 7.5 1.25 7.5H2.75C3.16421 7.5 3.5 7.83579 3.5 8.25V9.75C3.5 10.1642 3.16421 10.5 2.75 10.5H1.25C0.835786 10.5 0.5 10.1642 0.5 9.75V8.25ZM1.25 15C0.835786 15 0.5 15.3358 0.5 15.75V17.25C0.5 17.6642 0.835786 18 1.25 18H2.75C3.16421 18 3.5 17.6642 3.5 17.25V15.75C3.5 15.3358 3.16421 15 2.75 15H1.25ZM0.5 23.25C0.5 22.8358 0.835786 22.5 1.25 22.5H2.75C3.16421 22.5 3.5 22.8358 3.5 23.25V24.75C3.5 25.1642 3.16421 25.5 2.75 25.5H1.25C0.835786 25.5 0.5 25.1642 0.5 24.75V23.25ZM8.75 22.5C8.33579 22.5 8 22.8358 8 23.25V24.75C8 25.1642 8.33579 25.5 8.75 25.5H10.25C10.6642 25.5 11 25.1642 11 24.75V23.25C11 22.8358 10.6642 22.5 10.25 22.5H8.75Z",fill:"#A1A1A1"})}),(0,Be.jsx)("span",{className:"tpae_select_img_txt",children:(0,a.__)("Upload your Icon File Only .png, .jpg, .svg supported","wdesignkit")})]})})]})}),(0,Be.jsx)("div",{className:"wkit_wl_checkbox_list",children:e.length>0&&e.map(((e,t)=>(0,Be.jsxs)("div",{className:"wkit_check_box_list",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit_"+e.key,className:"wkit-check-box",checked:f?.[e.key],onChange:t=>{i(e.key,t.target.checked)}}),(0,Be.jsx)("label",{className:"wkit_checkbox_label",dangerouslySetInnerHTML:{__html:e.text},htmlFor:"wkit_"+e.key})]},t)))}),(0,Be.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,Be.jsx)("button",{className:"wkit-btn-class",disabled:JSON.stringify(f)==JSON.stringify(y),onClick:()=>{(async()=>{confirm("Are you sure you want to reset the white label?")&&await Ye({type:"wkit_reset_wl"}).then((e=>{e?.success&&window.location.reload()}))})()},children:(0,a.__)("Reset","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-btn-class",onClick:()=>{(async()=>{if(!f?.plugin_name.trim()){b(!0);const e=document.querySelector(".wkit-whiteLabel-container"),t=document.querySelector("#wdkit_plugin_name_update").offsetTop-150;return void e.scrollTo({top:t,behavior:"smooth"})}if(!confirm("Would you like to proceed with the white label update?"))return;let e={type:"wkit_white_label",WhiteLabelData:JSON.stringify(f)};await Ye(e).then((e=>{if(e?.data){let a=Object.assign({},t?.wdkit_meta,{white_label:e?.data});t.wdkit_set_meta(a),window.location.reload()}}))})()},children:(0,a.__)("Save Settings","wdesignkit")})]})]})},P=(e,a,i)=>{if(i){if(a)var s=Object.assign({},t?.wdkit_meta?.Setting?.[i],{[e]:a});else delete t?.wdkit_meta?.Setting?.[i]?.[e],s=t?.wdkit_meta?.Setting?.[i];var n=Object.assign({},t?.wdkit_meta?.Setting,{[i]:s})}else n=Object.assign({},t?.wdkit_meta?.Setting,{[e]:a});let r=Object.assign({},t?.wdkit_meta,{Setting:n});t.wdkit_set_meta(r);let o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","wkit_setting_panel"),o.append("event","set"),o.append("data",JSON.stringify(n)),Fs&&Fs.abort(),Fs=new AbortController,l().post(ajaxurl,o,{signal:Fs.signal}).then((async e=>{if(1==e?.success&&e?.data){let e=Object.assign({},t?.wdkit_meta,{Setting:n});t.wdkit_set_meta(e)}}))};return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(ft,{title:(0,a.__)("General Settings","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"25",height:"24",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M12.9098 9.14582C11.2127 9.14582 9.83689 10.5216 9.83689 12.2187C9.83689 13.9158 11.2127 15.2916 12.9098 15.2916C14.6069 15.2916 15.9828 13.9158 15.9828 12.2187C15.9828 10.5216 14.6069 9.14582 12.9098 9.14582ZM21.5349 10.0259L20.7029 10.7108C19.7539 11.4921 19.7539 12.9453 20.7029 13.7266L21.5349 14.4115C21.8298 14.6543 21.9059 15.0746 21.715 15.4053L20.0721 18.2508C19.8811 18.5816 19.4791 18.7258 19.1214 18.5918L18.1123 18.2138C16.9611 17.7825 15.7026 18.5091 15.5005 19.7216L15.3233 20.7846C15.2605 21.1613 14.9346 21.4375 14.5527 21.4375H11.2669C10.8851 21.4375 10.5591 21.1613 10.4964 20.7846L10.3192 19.7216C10.1171 18.5091 8.85853 17.7825 7.7074 18.2138L6.69826 18.5918C6.34061 18.7258 5.93853 18.5816 5.74756 18.2508L4.10471 15.4053C3.91377 15.0746 3.9899 14.6543 4.28475 14.4115L5.11678 13.7266C6.0658 12.9453 6.0658 11.4921 5.11678 10.7108L4.28475 10.0259C3.9899 9.78317 3.91377 9.36285 4.10471 9.03211L5.74756 6.18661C5.93853 5.85586 6.34061 5.71164 6.69826 5.84563L7.7074 6.22367C8.85853 6.65492 10.1171 5.92832 10.3192 4.71578L10.4964 3.65278C10.5591 3.2761 10.8851 3 11.2669 3H14.5527C14.9346 3 15.2605 3.2761 15.3233 3.65278L15.5005 4.71578C15.7026 5.92832 16.9611 6.65492 18.1123 6.22367L19.1214 5.84563C19.4791 5.71164 19.8811 5.85586 20.0721 6.18661L21.715 9.03211C21.9059 9.36285 21.8298 9.78317 21.5349 10.0259Z",stroke:"#040483",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,Be.jsxs)("div",{className:"wkit-settings-boxed-wrapper",children:[A("features_enable"),A("template"),A("builder"),A("plugin_uninstall"),t?.wdkit_meta?.success&&!x?.rollback_tab&&A("roll_back"),t?.wdkit_meta?.success&&!x?.force_disable&&A("white_label"),O("role_manager"),O("error_handling"),O("performance"),(0,Be.jsx)(jt,{OpenPopup:i,heading:o,closePopup:()=>s(!1),body:()=>{return"builder"==(e=[n])?(0,Be.jsx)("div",{className:"wkit-popup-body wdkit-tooltip",children:(0,Be.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("img",{src:N+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Widget Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor widget builder and all Elementor widgets.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("elementor_builder",e.target.checked),checked:M}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("img",{src:N+"assets/images/wb-svg/gutenberg.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Nexter Widget Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Nexter Widget builder and all Gutenberg Widgets.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"manage-builder-popup-item",children:(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("gutenberg_builder",e.target.checked),checked:H}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})})]}),(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("img",{src:N+"assets/images/wb-svg/bricks.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Bricks Widget Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Bricks Widget builder and all Bricks Widgets.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"manage-builder-popup-item",children:(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("bricks_builder",e.target.checked),checked:V}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]})}):"features_enable"==e?(0,Be.jsx)("div",{className:"wkit-popup-body wdkit-tooltip",children:(0,Be.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("div",{className:"wkit-features-icon-bg",children:(0,Be.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("g",{clipPath:"url(#clip0_8689_45666)",children:(0,Be.jsx)("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,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"clip0_8689_45666",children:(0,Be.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]})}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Design Template","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Our Templates Feature, which includes, Templates Download, Templates Upload, Workspace and everything related to Templates features.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("template",e.target.checked),checked:D}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("div",{className:"wkit-features-icon-bg",children:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Widget Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Widget builder Feature, Which include your No Code Widgets builder, Download/Upload of Widgets for Elementor and Gutenberg.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"manage-builder-popup-item",children:(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("builder",e.target.checked),checked:S}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]})}):"template"==e?(0,Be.jsx)("div",{className:"wkit-popup-body wdkit-tooltip",children:(0,Be.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("img",{src:N+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Page Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor Page builder and all Elementor widgets.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("elementor_template",e.target.checked),checked:R}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsx)("img",{src:N+"assets/images/wb-svg/gutenberg-core.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Gutenberg Page Builder","wdesignkit")}),(0,Be.jsxs)("div",{className:"tooltip-text-hover",children:[(0,Be.jsx)("svg",{width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Gutenberg Page builder and all Gutenberg Widgets.","wdesignkit")})]})]}),(0,Be.jsx)("div",{className:"manage-builder-popup-item",children:(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("gutenberg_template",e.target.checked),checked:Z}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]})}):"roll_back"==e?(c||Ye({type:"get_wkit_version"}).then((e=>{e?.success?p(e?.data):e?.message||(0,a.__)("Operation failed","wdesignkit")})),(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("div",{className:"wkit-rollBack-container",children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick: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-show-versions")?(a.classList.remove("wkit-show-versions"),k(!1)):(a.classList.add("wkit-show-versions"),k(!0)))})(e)},children:[(0,Be.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,Be.jsx)("label",{children:w}),(0,Be.jsx)("img",{className:C?"wkit-rotate-icon":"",src:N+"assets/images/wb-svg/controller-open.svg"})]}),(0,Be.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:c?.length>0?c.sort(((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))).reverse().map(((e,t)=>(0,Be.jsx)("span",{className:"wkit-rollBack-option",onClick:()=>{m(e),h&&_(!1)},children:e},t))):(0,Be.jsx)("span",{className:"wkit-rollback-loader",children:(0,Be.jsx)("span",{className:"wkit-loading"})})})]}),g?(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",children:(0,Be.jsx)("span",{className:"wkit-loading"})}):(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",disabled:!!h,onClick:e=>{(async()=>{if("Select Version"!==w){if(!confirm((0,a.__)(`Are you sure you want to reinstall ${w} version?`,"wdesignkit")))return;u(!0);let e={type:"rollback_wdkit",version:w};await Ye(e).then((async e=>{window.location.reload(!0)}))}})()},children:(0,a.__)("Roll Back","wdesignkit")})]})})):"plugin_uninstall"==e?(()=>{const e=[{text:(0,a.__)("Delete all the WDesignKit promotion related data.","wdesignkit"),id:"remove-promotion",value:"promotion_data",checked:B.promotion_data},{text:(0,a.__)("Delete all the Widget Builder widget data.","wdesignkit"),id:"remove-wl-entry",value:"widget_builder_data",checked:B.widget_builder_data},{text:(0,a.__)("Delete all WDesignKit plugin data (templates/widgets)","wdesignkit"),id:"all-data",value:"all_data",checked:B.all_data}];return(0,Be.jsx)("div",{className:"wkit-popup-body wkit-plugin-uninstall-container",children:(0,Be.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,Be.jsxs)("div",{className:"wkit-builder-items",children:[(0,Be.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,Be.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M2.75 4.5H4.25H16.25",stroke:"#040483",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M14.75 4.5V15C14.75 15.3978 14.592 15.7794 14.3107 16.0607C14.0294 16.342 13.6478 16.5 13.25 16.5H5.75C5.35218 16.5 4.97064 16.342 4.68934 16.0607C4.40804 15.7794 4.25 15.3978 4.25 15V4.5M6.5 4.5V3C6.5 2.60218 6.65804 2.22064 6.93934 1.93934C7.22064 1.65804 7.60218 1.5 8 1.5H11C11.3978 1.5 11.7794 1.65804 12.0607 1.93934C12.342 2.22064 12.5 2.60218 12.5 3V4.5",stroke:"#040483",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M8 8.25V12.75",stroke:"#040483",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M11 8.25V12.75",stroke:"#040483",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Remove Database","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>P("remove_entries",e.target.checked?"on":"off","remove_db"),checked:B.remove_entries}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),"on"===t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-remove-entry-options",children:e.map(((e,t)=>(0,Be.jsxs)("span",{className:"wkit-remove-checkbox",children:[(0,Be.jsx)("input",{type:"checkbox",id:e.id,className:"wkit-check-box",onChange:t=>{P(e.value,t.target.checked,"remove_db")},checked:e.checked}),(0,Be.jsx)("label",{className:"wkit-remove-widgets-text",htmlFor:e.id,children:e.text})]},t)))}),(0,Be.jsxs)("div",{className:"wkit-remove-plugin-notice",children:[(0,Be.jsx)("span",{className:"wkit-bold-text",children:(0,a.__)("Note:","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-notice-text",children:(0,a.__)("Once the selected data is deleted, it cannot be restored.","wdesignkit")})]})]})]})})})():"white_label"==e?T():void 0;var e}})]})]})},qs=()=>{let t=wdkitData.WDKIT_URL;const i=G(),s=J(),[n,l]=(0,e.useState)(),r=["/login","/login-api","/browse","/share_with_me","/manage_workspace","/manage_workspace/workspace_template/:id","/my_uploaded","/:kit_parent/kit/:kit_id","/","/theplus_popup","/download/widget/:w_unique","/widget-listing","/widget-listing/builder/:id","/widget-browse","/activate","/settings","/save_template","/save_template/section"];return(0,e.useEffect)((()=>{let e=s?.pathname;r.includes(e)>-1?l("disable"):(l("error-404"),i("error-404"))}),[]),"disable"==n?(0,Be.jsx)("div",{className:"wkit-post-notFound",children:(0,Be.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,Be.jsx)("img",{src:t+"assets/images/jpg/empty-dog.png",draggable:!1}),(0,Be.jsx)("span",{children:(0,a.__)("Page Disabled","wdesignkit")}),(0,Be.jsx)(xe,{className:"wkit-pink-btn-class",to:"/settings",children:(0,a.__)("Go to Settings","wdesignkit")})]})}):(0,Be.jsx)("div",{className:"wkit-post-notFound",children:(0,Be.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,Be.jsx)("img",{src:t+"assets/images/jpg/empty-dog.png",draggable:!1}),(0,Be.jsx)("span",{children:(0,a.__)("Page not Found","wdesignkit")}),(0,Be.jsx)(xe,{className:"wkit-pink-btn-class",to:"/",children:(0,a.__)("Back to home","wdesignkit")})]})})},Us=window.wp.editPost,{Component:zs,Fragment:Js}=wp.element,Ks=class extends zs{constructor(e){super(e),this.state={copiedCss:{},checkCopyOrNot:!1}}render(){return(0,Be.jsx)(Js,{children:(0,Be.jsx)(Us.PluginBlockSettingsMenuItem,{icon:"wdkit-save-section",label:(0,a.__)("Save in WDesignKit","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 Gs(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 Ys=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Qs=()=>Math.random().toString(36).substring(7).split("").join("."),Xs={INIT:`@@redux/INIT${Qs()}`,REPLACE:`@@redux/REPLACE${Qs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Qs()}`};function en(e,t,a){if("function"!=typeof e)throw new Error(Gs(2));if("function"==typeof t&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(Gs(0));if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error(Gs(1));return a(en)(e,t)}let i=e,s=t,n=new Map,l=n,r=0,o=!1;function d(){l===n&&(l=new Map,n.forEach(((e,t)=>{l.set(t,e)})))}function c(){if(o)throw new Error(Gs(3));return s}function p(e){if("function"!=typeof e)throw new Error(Gs(4));if(o)throw new Error(Gs(5));let t=!0;d();const a=r++;return l.set(a,e),function(){if(t){if(o)throw new Error(Gs(6));t=!1,d(),l.delete(a),n=null}}}function w(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(Gs(7));if(void 0===e.type)throw new Error(Gs(8));if("string"!=typeof e.type)throw new Error(Gs(17));if(o)throw new Error(Gs(9));try{o=!0,s=i(s,e)}finally{o=!1}return(n=l).forEach((e=>{e()})),e}return w({type:Xs.INIT}),{dispatch:w,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Gs(10));i=e,w({type:Xs.REPLACE})},[Ys]:function(){const e=p;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Gs(11));function a(){const e=t;e.next&&e.next(c())}return a(),{unsubscribe:e(a)}},[Ys](){return this}}}}}function tn(e,t,a){return en(e,t,a)}const an={cardData:[{layout:[],style:[]}]},sn={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:[]}},nn={links:[{js:[""],css:[""],external_cdn:[]}]},ln={Editor_codes:[{html:"",css:"",js:""}]},rn={},on={section:{sec_id:"0"}},dn={settingdata:{builder:!0,template:!0,gutenberg_builder:!0,elementor_builder:!0,debugger_mode:!1}},cn={route_history:"/my_uploaded"},pn={wdkitmeta:{plugin:[],builder:[],category:[],tags:[],widgetbuilder:[],widgetscategory:[],Setting:{builder:!0,debugger_mode:!1,elementor_builder:!0,gutenberg_builder:!0,template:!0}}},wn={message_content:{title:"",subTitle:"",icon:"",type:""}},mn=function(e){const t=Object.keys(e),a={};for(let i=0;i<t.length;i++){const s=t[i];"function"==typeof e[s]&&(a[s]=e[s])}const i=Object.keys(a);let s;try{!function(e){Object.keys(e).forEach((t=>{const a=e[t];if(void 0===a(void 0,{type:Xs.INIT}))throw new Error(Gs(12));if(void 0===a(void 0,{type:Xs.PROBE_UNKNOWN_ACTION()}))throw new Error(Gs(13))}))}(a)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const l={};for(let s=0;s<i.length;s++){const r=i[s],o=a[r],d=e[r],c=o(d,t);if(void 0===c)throw t&&t.type,new Error(Gs(14));l[r]=c,n=n||c!==d}return n=n||i.length!==Object.keys(e).length,n?l:e}}({CardItems:function(e=an,t){return"ADD_LAYOUT_ARRAY"===t.type?{...StaticRange,cardData:t.data}:e},WcardData:function(e=sn,t){return"ADD_WIDGET_ARRAY"===t.type?{...StaticRange,widgetdata:t.data}:e},Editor_data:function(e=nn,t){return"ADD_EDITOR_ARRAY"===t.type?{...StaticRange,links:t.data}:e},Editor_code:function(e=ln,t){return"Editor_code"===t.type?{...StaticRange,Editor_codes:t.data}:e},Active_controller:function(e=rn,t){return"ADD_CONTROLLER"===t.type?{...StaticRange,controller:t.data}:e},Active_section:function(e=on,t){return"ADD_SECTION"===t.type?{...StaticRange,section:t.data}:e},wkit_SettingPanel:function(e=dn,t){return"ADD_SETTING_ARRAY"===t.type?{...StaticRange,settingdata:t.data}:e},wdkit_meta_data:function(e=pn,t){return"UPDATE_WDKIT_META"===t.type?{...StaticRange,wdkitmeta:t.data}:e},wkit_Login_route:function(e=cn,t){return"ADD_LOGIN_ROUTE"===t.type?{...StaticRange,route_history:t.data}:e},wkit_Toast_message:function(e=wn,t){return"Show_Toast"===t.type?{...StaticRange,message_content:t.data}:e}}),gn=window.wp.domReady;var un=s.n(gn);const hn=tn(mn);if(window.userData=[],window.wdkit_editor=wdkitData.use_editor,"gutenberg"===wdkitData.use_editor&&"1"===wdkitData.gutenberg_template){wdkitData.WDKIT_URL;const{registerPlugin:e}=wp.plugins,t=wp.blocks,a=(t.serialize,t.parse,t.getBlockAttributes,wp.compose.compose),{withSelect:i}=wp.data;let s,n=wdkitData?.wdkit_white_label?.plugin_logo||wdkitData.WDKIT_URL+"assets/images/jpg/Wdesignkit-logo.png";e("wdkit-save-template-section",{render:a([i((function(e){const{getSelectedBlockCount:t,getSelectedBlock:a,getMultiSelectedBlocks:i}=e("core/block-editor");return{count:t(),block:a(),blocks:i()}}))])(Ks)}),wp.data.subscribe((()=>{clearTimeout(s),s=setTimeout((()=>{setTimeout((function(){!function(){if(document.querySelectorAll(".wkit-gutenber-btn").length>0||null===document.querySelector(".wkit-gutenber-btn")){let i=wp.data.select("core/editor").getCurrentPostType();if(null!==i){i=i.toLowerCase().replace("/(?<= )[^s]|^./g",(function(e){return e.toUpperCase()}));var e=document.querySelector("#editor"),t=document.querySelector(".edit-post-header-toolbar"),a=document.createElement("div");t&&(a.id="wdkit-block-editor-icon",a.innerHTML='<button class="components-button is-primary wkit-gutenber-btn"><img class="wkit-main-logo" src="'+n+'" 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===e.querySelector(".wkit-gutenber-btn")&&(t?.appendChild(a),document.querySelector(".wkit-gutenber-btn")?.addEventListener("click",(function(){const e=document.getElementById("wkit-contentbox-modal"),t=(0,ue.createRoot)(e);e&&setTimeout((()=>{t.render((0,Be.jsx)(Ki,{store:hn,children:(0,Be.jsx)(al,{})}))}),500),document.querySelector(".wkit-builder-modal").classList.toggle("wkit-open")}))))}}}()}),1)}),300)})),un()((()=>{const e=setInterval((()=>{if(window.location.hash.includes("?wdesignkit=open")){const t=document.querySelector("#editor");t&&t.querySelector(".wkit-gutenber-btn")&&(t.querySelector(".wkit-gutenber-btn").click(),setTimeout((()=>{window.location.hash=window.location.hash.replaceAll("?wdesignkit=open","")}),3e3),clearInterval(e))}}),100)}))}const Cn=tn(mn);window.userData=[],window.wdkit_editor=wdkitData.use_editor;let kn=null;window.WdkitPopupToggle={open(e,t){"elementor"===window.wdkit_editor&&t&&setTimeout((()=>{kn||(kn=(0,ue.createRoot)(t)),kn.render((0,Be.jsx)(Ki,{store:Cn,children:(0,Be.jsx)(al,{})}))}),500)},close(e){kn&&(kn.unmount(),kn=null)}},wp.wkit_Pages={Side_menu:Pa,Wdkit_Login:Ht,Wdkit_Login_Api:Rt,Browse:Qt,MyUploaded:la,Kit_Page:ua,Share_with_me:fa,Manage_Workspace:Ha,Workspace_single:Aa,Save_template:Ya,Main_js_container:gs,Loader_container:Rs,Widget_brows:Ws,Wkit_settings:Is,Page_not_found:qs};const vn=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(rs(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t)),wdkit_Login_Route:t=>e(os(t))})))(Pa),bn=Ji((e=>({ToastData:e.wkit_Toast_message.message_content})),(e=>({wdkit_set_toast:t=>e(ps(t))})))((t=>{(0,e.useEffect)((()=>{t?.ToastData?.title&&(setTimeout((async()=>{document.querySelector(".wkit-toast-content.wkit-show-toast")&&document.querySelector(".wkit-toast-content").classList.remove("wkit-show-toast"),setTimeout((()=>{t.wdkit_set_toast("")}),500)}),5e3),document.querySelector(".wkit-toast-content")&&document.querySelector(".wkit-toast-content").classList.add("wkit-show-toast"))}));let a=t.ToastData.title?t.ToastData.title:"",i=t.ToastData.subTitle?t.ToastData.subTitle:"",s=t.ToastData.type?t.ToastData.type:"";if(a)return(0,Be.jsxs)("div",{className:"wkit-toast-content wkit-show-toast",children:[(0,Be.jsx)("div",{className:"wkit-toast-msg-img",children:"success"===s?(0,Be.jsxs)("svg",{width:"39",height:"38",viewBox:"0 0 39 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("svg",{width:"39",height:"38",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-toast-msg-content",children:[(0,Be.jsx)("span",{className:`wkit-toast-text wkit-${s}-msg`,children:a}),(0,Be.jsx)("p",{children:i})]}),(0,Be.jsx)("div",{className:"wkit-toast-close",children:(0,Be.jsx)("span",{onClick:()=>{(async()=>{let e=document.querySelector(".wkit-toast-content");e&&e.classList.remove("wkit-show-toast"),await setTimeout((()=>{t.wdkit_set_toast("")}),500)})()},children:(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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,Be.jsx)("div",{className:`wkit-toast-progress wkit-${s}-msg-progress`})]})})),{Fragment:xn}=wp.element,fn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(cs(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{var i=wdkitData.WDKIT_ASSETS;const[s,n]=(0,e.useState)("1"),[l,r]=(0,e.useState)({elementor:"loading","the-plus-addons-for-block-editor":"loading",bricks:"loading","bricks-child":"loading"}),o=(0,e.useRef)([]),d=(0,e.useRef)({}),[c,p]=(0,e.useState)(!0),[w,m]=(0,e.useState)(!1),[g,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)(!1),C=[{name:"elementor",label:"Elementor",plugin_slug:"elementor/elementor.php",freepro:"0",icon:"images/wb-svg/elementor.svg",type:"plugin",status:"elementorplg"},{name:"the-plus-addons-for-block-editor",label:"Nexter Blocks",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",freepro:"0",icon:"images/jpg/nexter-blocks-logo.png",type:"plugin",status:"tpagplg"},{name:"bricks",label:"Bricks Theme",plugin_slug:"bricks/bricks.php",link:"https://academy.bricksbuilder.io/article/installation-activation/",freepro:"1",icon:"images/wb-svg/bricks.svg",type:"theme",status:"bricksplg"},{name:"bricks-child",label:"Bricks Child Theme",plugin_slug:"bricks/bricks.php",link:"https://academy.bricksbuilder.io/article/installation-activation/",freepro:"1",icon:"images/wb-svg/bricks.svg",type:"theme",status:"brickschildplg"}];(0,e.useEffect)((()=>{(()=>{var e=Object.assign({},l);let t={type:"check_plugins_depends",plugins:JSON.stringify(C),editor:wdkitData.use_editor};Ye(t).then((async t=>{if(t.success){let a=t?.data?.plugins;a?.length>0&&a.map((t=>{e[t.name]&&(e=Object.assign({},e,{[t.name]:t.status}))}))}r(e),d.current=e}))})()}),[]),(0,e.useEffect)((()=>{const e=Object.values(l).every((e=>"loading"!==e));null!=t.wdkit_meta.success&&e&&p(!1)}),[t.wdkit_meta.success,l]);const k=async(e,t)=>{d.current=Object.assign({},d.current,{[e.name]:"loading"}),r(d.current),o.current.filter((e=>"loading"==e.status)).length>0?o.current.push({status:"pending",data:e,type:t}):(o.current.push({status:"loading",data:e,type:t}),await v(e,t).then((async e=>{if(null!=e&&o.current.length>0){let e=o.current.findIndex((e=>"loading"==e.status));if(await o.current.splice(e,1),o.current.length>0){let e=o.current[0].data,t=o.current[0].type;await o.current.splice(0,1),await k(e,t)}}})))},v=async(e,a)=>{let i={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type},s={type:"install_plugins_depends",plugins:JSON.stringify(i),editor:wdkitData.use_editor},n=await Ye(s);if(void 0===n.success)return null==a&&k(e,"repeate"),!1;if(n.success){let a=Object.assign({},d.current,{[e.name]:n.status});d.current=a,r(d.current),t.wdkit_set_toast([n?.message,n?.description,"","success"])}else{let a=Object.assign({},d.current,{[e.name]:"unavailable"});d.current=a,r(d.current),t.wdkit_set_toast([n?.message,n?.description,"","danger"])}return!0},b=(e,a,i)=>{if(null!=i&&!t.wdkit_meta.Setting?.[i])return!1;let s=Object.assign({},t.wdkit_meta.Setting,{[a]:e.target.checked}),n={type:"wkit_setting_panel",event:"set",data:JSON.stringify(s)};t.wdkit_GetSettings_redux(s);let l=Object.assign({},t?.wdkit_meta,{Setting:s});t.wdkit_set_meta(l),Ye(n).then((async e=>{}))};return(0,Be.jsx)(xn,{children:s>0&&(0,Be.jsx)("div",{className:"wdkit-onboarding-main",children:(0,Be.jsxs)("div",{className:"wdkit-onboarding-popup",children:["1"==s?(0,Be.jsxs)("div",{className:"wdkit-onboarding-popup-body",style:c?{height:"100%"}:{},children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-image",children:(0,Be.jsx)("img",{src:i+"images/onbording/ifboth_activated.png",alt:"onboarding-image",draggable:"false"})}),c?(0,Be.jsx)("div",{className:"wkit-loader",children:(0,Be.jsx)("img",{src:i+"images/jpg/wdkit_loader.gif",draggable:"false"})}):(0,Be.jsxs)("div",{className:"wdkit-onboarding-box",children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-header",children:(0,Be.jsx)("span",{children:(0,a.__)("Welcome to WDesignKit","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wdkit-onboarding-box-content",children:[(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder",children:[(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-header",children:[(0,Be.jsx)("span",{children:(0,a.__)("Page Templates","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>{b(e,"template")},checked:t.wdkit_meta.Setting?.template}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.wdkit_meta.Setting?.template?1:.2},children:[(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,Be.jsx)("span",{children:(0,a.__)("Elementor","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-elementor",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit-pageTemplate-elementor",onChange:e=>b(e,"elementor_template","template"),checked:t.wdkit_meta.Setting?.elementor_template}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,Be.jsx)("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,Be.jsx)("hr",{}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/gutenberg-core.svg",alt:"Gutenberg",draggable:"false"}),(0,Be.jsx)("span",{children:(0,a.__)("Gutenberg","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-gutenberg",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit-pageTemplate-gutenberg",onChange:e=>b(e,"gutenberg_template","template"),checked:t.wdkit_meta.Setting?.gutenberg_template}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,Be.jsx)("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,Be.jsx)("hr",{}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,Be.jsx)("span",{children:(0,a.__)("Bricks","wdesignkit")})]}),(0,Be.jsx)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-bricks",children:(0,Be.jsx)("span",{className:"wkit-commign-soon-tag",children:(0,a.__)("Coming Soon","wdesignkit")})})]})]})]}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder",children:[(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-header",children:[(0,Be.jsx)("span",{children:(0,a.__)("Widget Builder","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,Be.jsxs)("label",{className:"wkit-switcher-label",children:[(0,Be.jsx)("input",{type:"checkbox",onChange:e=>{b(e,"builder")},checked:t.wdkit_meta.Setting?.builder}),(0,Be.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.wdkit_meta.Setting?.builder?1:.2},children:[(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,Be.jsx)("span",{children:(0,a.__)("Elementor","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-elementor",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-elementor",onChange:e=>{b(e,"elementor_builder","builder")},checked:t.wdkit_meta.Setting?.elementor_builder}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,Be.jsx)("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,Be.jsx)("hr",{}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/gutenberg.svg",alt:"Gutenberg",draggable:"false"}),(0,Be.jsx)("span",{children:(0,a.__)("Nexter","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-gutenberg",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-gutenberg",onChange:e=>{b(e,"gutenberg_builder","builder")},checked:t.wdkit_meta.Setting?.gutenberg_builder}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,Be.jsx)("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,Be.jsx)("hr",{}),(0,Be.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,Be.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,Be.jsx)("img",{src:i+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,Be.jsx)("span",{children:(0,a.__)("Bricks","wdesignkit")})]}),(0,Be.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-bricks",children:[(0,Be.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-bricks",onChange:e=>{b(e,"bricks_builder","builder")},checked:t.wdkit_meta.Setting?.bricks_builder}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,Be.jsx)("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"==s?(0,Be.jsxs)("div",{className:"wdkit-onboarding-popup-body",onClick:e=>{var t;(t=e)&&!t.target.closest(".wkit-sensitive-data-popup")&&g&&u(!1)},children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-image",children:(0,Be.jsxs)("div",{className:"wkit-onboarding-bg-image",children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-image-content",children:(0,Be.jsx)("img",{src:i+"images/onbording/basic_requirements.png",alt:"Onboarding-Image",draggable:"false"})}),"active"==l?.bricks&&t?.wdkit_meta?.Setting?.bricks_builder&&(0,Be.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-bricks",children:[(0,Be.jsx)("svg",{className:"wkit-image-content-icon",xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Bricks Elements Builder","wdesignkit")})]}),"active"==l?.elementor&&(0,Be.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-elementor",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Elementor Widget Builder","wdesignkit")})]}),"active"==l?.["the-plus-addons-for-block-editor"]&&t?.wdkit_meta?.Setting?.gutenberg_builder&&(0,Be.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-gutenberg",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Gutenberg Blocks Builder","wdesignkit")})]})]})}),(0,Be.jsxs)("div",{className:"wdkit-onboarding-box",children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-header",children:(0,Be.jsx)("span",{children:(0,a.__)("Basic Requirements","wdesignkit")})}),(0,Be.jsx)("div",{className:"wdkit-onboarding-basic",children:C.filter((e=>"bricks"===e.name&&t?.wdkit_meta?.Setting?.bricks_builder||"bricks-child"===e.name&&t?.wdkit_meta?.Setting?.bricks_builder&&"manually"!=l?.[e.name]||"the-plus-addons-for-block-editor"===e.name&&(t?.wdkit_meta?.Setting?.gutenberg_builder||t?.wdkit_meta?.Setting?.gutenberg_template)||"elementor"===e.name&&(t?.wdkit_meta?.Setting?.elementor_builder||t?.wdkit_meta?.Setting?.elementor_template)?e:void 0)).map(((e,t)=>(0,Be.jsxs)("div",{className:"wdkit-onboarding-basic-content",children:[(0,Be.jsxs)("div",{className:`wdkit-onboarding-basic-content-status wkit-${l?.[e.name]}-plugin`,children:["active"==l?.[e.name]?(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,Be.jsx)("path",{d:"M8.33335 2.5L3.75002 7.08333L1.66669 5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"white",children:(0,Be.jsx)("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"})}),(0,Be.jsx)("span",{children:"manually"==l?.[e.name]?"unavailable":l?.[e.name]})]}),(0,Be.jsxs)("div",{className:"wdkit-onboarding-basic-content-body",children:[(0,Be.jsxs)("div",{className:"wdkit-onboarding-basic-content-header",children:[(0,Be.jsx)("span",{children:e.label}),(0,Be.jsx)("img",{src:i+e.icon,alt:"Elementor",draggable:"false"})]}),"active"==l?.[e.name]&&(0,Be.jsx)("div",{className:"wdkit-onboarding-basic-content-installed",children:(0,Be.jsx)("span",{children:"Activated"})}),("inactive"==l?.[e.name]||"unavailable"==l?.[e.name]||"loading"==l?.[e.name])&&(0,Be.jsx)(Be.Fragment,{children:"loading"==l?.[e.name]?(0,Be.jsx)("div",{className:"wdkit-onboarding-basic-content-notInstalled",children:(0,Be.jsx)(st,{})}):(0,Be.jsx)("div",{className:"wdkit-onboarding-basic-content-notInstalled",onClick:()=>{k(e)},children:(0,Be.jsx)("span",{children:"inactive"==l?.[e.name]?(0,a.__)("Activate Now","wdesignkit"):(0,a.__)("Install & Activate","wdesignkit")})})}),"manually"==l?.[e.name]&&(0,Be.jsx)("div",{className:"wdkit-onboarding-install-manually",children:(0,Be.jsx)("a",{href:e.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("span",{children:(0,a.__)("How to Install ?","wdesignkit")})})})]})]},t)))}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("div",{className:"wkit-confirm-terms-content",children:[(0,Be.jsx)("input",{className:"wkit-confirm-terms-inp",checked:h,type:"checkbox",onChange:e=>_(e.target.checked)}),(0,Be.jsxs)("span",{className:"wkit-confirm-terms-text",children:[(0,a.__)("Agree to contribute to make WDesignKit better by sharing non-sensitive details.","wdesignkit"),(0,Be.jsxs)("span",{className:"wkit-confirm-terms-link-text",onClick:()=>{u(!0)},children:[(0,a.__)("See what details are shared","wdesignkit"),g&&(0,Be.jsxs)("div",{class:"wkit-sensitive-data-popup",children:[(0,Be.jsx)("span",{class:"wkit-sensitive-data-txt",children:(0,a.__)("We collect :","wdesignkit")}),(0,Be.jsxs)("ul",{class:"wkit-sensitive-data-list",children:[(0,Be.jsx)("li",{children:(0,a.__)("PHP Version","wdesignkit")}),(0,Be.jsx)("li",{children:(0,a.__)("Server Details","wdesignkit")}),(0,Be.jsx)("li",{children:(0,a.__)("WordPress Version","wdesignkit")}),(0,Be.jsx)("li",{children:(0,a.__)("Plugins & Theme Used","wdesignkit")}),(0,Be.jsx)("li",{children:(0,a.__)("Site Language","wdesignkit")}),(0,Be.jsx)("li",{children:(0,a.__)("Email","wdesignkit")})]}),(0,Be.jsx)("span",{class:"wkit-sensitive-data-txt",children:(0,a.__)("The following details will help us serve you better, and will not be shared with any third-party or used to spam you in anyway.","wdesignkit")})]})]})]})]})]})]}):void 0,!c&&(0,Be.jsxs)("div",{className:"wdkit-onboarding-footer",children:[(0,Be.jsx)("div",{className:"wdkit-onboarding-footer-left"}),(0,Be.jsxs)("div",{className:"wdkit-onboarding-pagination",children:[(0,Be.jsxs)("span",{style:{color:"#040483"},children:["0",s]}),(0,Be.jsx)("span",{children:"/02"})]}),(0,Be.jsxs)("div",{className:"wdkit-onboarding-footer-right",children:[s>1&&(0,Be.jsx)("button",{className:"wdkit-onboarding-back-button",onClick:()=>{n(Number(s)-1)},disabled:w,children:(0,a.__)("Back","wdesignkit")}),2==s?(0,Be.jsx)(Be.Fragment,{children:w?(0,Be.jsx)("button",{className:"wdkit-onboarding-next-button",children:(0,Be.jsx)(st,{})}):(0,Be.jsx)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{(async()=>{m(!0);let e={widget_builder:!0===t?.wdkit_meta?.Setting?.builder?1:0,elementor:!0===t?.wdkit_meta?.Setting?.elementor_builder?1:0,gutenberg:!0===t?.wdkit_meta?.Setting?.gutenberg_builder?1:0,bricks:!0===t?.wdkit_meta?.Setting?.bricks_builder?1:0},a={page_templates:!0===t?.wdkit_meta?.Setting?.template?1:0,elementor:1,gutenberg:1,bricks:0},i={type:"onboarding_handler",page_template:JSON.stringify(a),page_builder:JSON.stringify(e),elementor_plugin:"active"===l?.elementor?1:0,tpag_plugin:"active"===l?.["the-plus-addons-for-block-editor"]?1:0,bricks_theme:"active"===l?.bricks?1:0,info:!!h};await Ye(i),await setTimeout((()=>{n(0),m(!1)}),1e3)})()},disabled:o.current.length>0,children:(0,a.__)("Finish","wdesignkit")})}):t.wdkit_meta.Setting?.template&&(t.wdkit_meta.Setting?.gutenberg_template||t.wdkit_meta.Setting?.elementor_template)||t.wdkit_meta.Setting?.builder&&(t.wdkit_meta.Setting?.bricks_builder||t.wdkit_meta.Setting?.gutenberg_builder||t.wdkit_meta.Setting?.elementor_builder)?(0,Be.jsx)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{n(Number(s)+1)},children:(0,a.__)("Next","wdesignkit")}):(0,Be.jsxs)("div",{className:"wkit-tooltip-onboarding",children:[(0,Be.jsx)("span",{children:(0,a.__)("Enable any one feature to continue!","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-disable-next-btn",disabled:!0,children:(0,a.__)("Next","wdesignkit")})]})]})]})]})})})})),jn=()=>{const[t,i]=(0,e.useState)(!1);let s=J().pathname;const n=(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"16",fill:"none",stroke:"#727272",children:[" ",(0,Be.jsx)("path",{className:"arrow-one",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})," ",(0,Be.jsx)("path",{className:"arrow-two",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})," ",(0,Be.jsx)("path",{className:"arrow-three",d:"M1 15l7-7-7-7",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),l=e=>{e.target.closest(".wkit-dashSupport-content")||i(!t)},r=[{link:"https://store.posimyth.com/helpdesk/",text:(0,a.__)("Get Free Support","wdesignkit")},{link:"https://roadmap.wdesignkit.com/updates",text:(0,a.__)("Whats New?","wdesignkit")},{link:"https://www.facebook.com/wdesignkit",text:(0,a.__)("Join Facebook Community","wdesignkit")},{link:"https://roadmap.wdesignkit.com/boards/feature-requests",text:(0,a.__)("Suggest New Features","wdesignkit")},{link:"https://roadmap.wdesignkit.com/boards/bug-reports",text:(0,a.__)("Report Bug","wdesignkit")},{link:"https://wdesignkit.com/chat",text:(0,a.__)("AI Chat","wdesignkit")}],o=[{title:(0,a.__)("YouTube","wdesignkit"),link:"https://www.youtube.com/c/POSIMYTHInnovations/?sub_confirmation=1",svg:(0,Be.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM20.8613 8.84305C21.1047 9.08822 21.2794 9.39305 21.368 9.727C21.696 10.959 21.697 13.529 21.697 13.529C21.697 13.529 21.697 16.1 21.369 17.332C21.2795 17.6632 21.104 17.9647 20.8602 18.2061C20.6164 18.4474 20.3131 18.6199 19.981 18.706C18.757 19.036 13.849 19.036 13.849 19.036C13.849 19.036 8.94 19.036 7.716 18.706C7.041 18.525 6.508 18.012 6.328 17.332C6 16.099 6 13.529 6 13.529C6 13.529 6 10.959 6.328 9.727C6.41664 9.39293 6.59153 9.08802 6.83513 8.84284C7.07874 8.59765 7.38251 8.4208 7.716 8.33C8.94 8 13.849 8 13.849 8C13.849 8 18.757 8 19.981 8.33C20.3143 8.42095 20.6179 8.59787 20.8613 8.84305ZM12.243 11.196V15.863L16.346 13.529L12.243 11.196Z",fill:"#040483"})})},{title:(0,a.__)("Twitter","wdesignkit"),link:"https://x.com/wdesignkit",svg:(0,Be.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM20.91 6L15.173 12.67L21.413 21.751H16.823L12.621 15.636L7.361 21.751H6.001L12.018 14.757L6 6.001H10.59L14.569 11.792L19.55 6H20.91ZM12.701 13.963L13.311 14.835L17.463 20.774H19.551L14.463 13.496L13.853 12.624L9.939 7.024H7.851L12.701 13.963Z",fill:"#040483"})})},{title:(0,a.__)("Facebook","wdesignkit"),link:"https://www.facebook.com/wdesignkit",svg:(0,Be.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28 14C28 21.732 21.732 28 14 28C6.26801 28 0 21.732 0 14C0 6.26801 6.26801 0 14 0C21.732 0 28 6.26801 28 14ZM15.3273 6.22222L17.3172 6.22567C17.4898 6.22602 17.6296 6.37741 17.6296 6.56401V9.09701C17.6296 9.28378 17.4896 9.43534 17.3169 9.43534L15.9764 9.43586C15.0523 9.43586 14.8832 9.82528 14.8832 10.5924V12.1884H17.2233C17.3064 12.1884 17.3862 12.2242 17.4448 12.2877C17.5034 12.3512 17.5364 12.4372 17.5364 12.5269L17.5354 15.2548C17.5354 15.4418 17.3954 15.5932 17.2225 15.5932H14.8832V22.4765C14.8832 22.6633 14.7432 22.8148 14.5703 22.8148H11.9599C11.787 22.8148 11.647 22.6634 11.647 22.4765V15.5932H9.64623C9.4735 15.5932 9.33333 15.4418 9.33333 15.2548V12.5269C9.33333 12.34 9.47334 12.1884 9.64623 12.1884H11.647V10.3057C11.647 7.82498 13.0917 6.22222 15.3273 6.22222Z",fill:"#040483"})})},{title:(0,a.__)("Instagram","wdesignkit"),link:"https://www.instagram.com/wdesignkit/",svg:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Be.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#040483"}),(0,Be.jsx)("path",{fill:"#ffffff",d:"M13.503 9.962a3.529 3.529 0 0 0-3.534 3.535 3.529 3.529 0 0 0 3.534 3.535 3.529 3.529 0 0 0 3.535-3.535 3.529 3.529 0 0 0-3.535-3.535Zm0 5.833a2.302 2.302 0 0 1-2.297-2.298 2.3 2.3 0 0 1 2.297-2.298 2.3 2.3 0 0 1 2.298 2.298 2.302 2.302 0 0 1-2.298 2.298Zm4.504-5.977c0 .458-.37.824-.825.824a.824.824 0 1 1 .824-.824Zm2.34.837c-.051-1.105-.304-2.083-1.113-2.889-.806-.806-1.784-1.058-2.888-1.114-1.138-.064-4.55-.064-5.688 0-1.101.053-2.08.305-2.889 1.11-.809.807-1.058 1.785-1.113 2.89-.065 1.138-.065 4.55 0 5.687.052 1.105.304 2.083 1.113 2.889.81.806 1.785 1.058 2.889 1.113 1.138.065 4.55.065 5.688 0 1.104-.052 2.082-.304 2.888-1.113.806-.806 1.058-1.784 1.114-2.889.065-1.138.065-4.546 0-5.684Zm-1.47 6.906a2.326 2.326 0 0 1-1.31 1.31c-.907.36-3.06.277-4.064.277-1.002 0-3.159.08-4.063-.277a2.326 2.326 0 0 1-1.31-1.31c-.36-.908-.278-3.061-.278-4.064 0-1.003-.08-3.16.277-4.064a2.326 2.326 0 0 1 1.31-1.31c.908-.36 3.062-.277 4.064-.277 1.003 0 3.16-.08 4.064.277.603.24 1.067.704 1.31 1.31.36.908.277 3.061.277 4.064 0 1.003.083 3.16-.276 4.064Z"})]})},{title:(0,a.__)("Affiliate-Program","wdesignkit"),link:"https://store.posimyth.com/affiliate-program/",svg:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Be.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#040483"}),(0,Be.jsx)("g",{clipPath:"url(#a)",children:(0,Be.jsx)("path",{fill:"#ffffff",d:"M7.687 11.16a.706.706 0 0 0-.748.652.703.703 0 0 0 .656.748c3.519.23 6.612 3.301 6.844 6.843.025.375.332.66.675.66l.047-.002a.703.703 0 0 0 .656-.747c-.249-4.223-3.908-7.882-8.13-8.155Zm.188-4.223a.937.937 0 1 0 0 1.875c5.687 0 10.313 4.626 10.313 10.313a.937.937 0 1 0 1.875 0c0-6.72-5.467-12.188-12.188-12.188Zm.911 9.372c-1.01 0-1.848.841-1.848 1.878 0 1.038.838 1.875 1.848 1.875 1.01 0 1.878-.838 1.878-1.875a1.862 1.862 0 0 0-1.878-1.878Z"})}),(0,Be.jsx)("defs",{children:(0,Be.jsx)("clipPath",{id:"a",children:(0,Be.jsx)("path",{fill:"#fff",d:"M6 6h15v15H6z"})})})]})},{title:(0,a.__)("Earn-Free-WDesignKit-Credits","wdesignkit"),link:"https://wdesignkit.com/earn-free-wdesignkit-credits",svg:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"27",height:"27",fill:"none",viewBox:"0 0 27 27",children:[(0,Be.jsx)("circle",{cx:"13.5",cy:"13.5",r:"13.5",fill:"#040483"}),(0,Be.jsx)("path",{fill:"#ffffff",d:"M13.994 18.135a5.613 5.613 0 0 1-1.633-.22 3.999 3.999 0 0 1-1.386-.804 1.025 1.025 0 0 1-.26-.324.805.805 0 0 1-.09-.363c0-.199.07-.371.207-.518a.719.719 0 0 1 .545-.234c.164 0 .31.052.44.156.329.268.652.47.972.61.328.137.73.206 1.205.206.32 0 .614-.047.882-.142.267-.104.483-.238.648-.402a.826.826 0 0 0 .246-.583.98.98 0 0 0-.234-.66c-.155-.182-.393-.333-.712-.454-.32-.13-.726-.23-1.218-.299a5.687 5.687 0 0 1-1.232-.31 3.126 3.126 0 0 1-.894-.545 2.268 2.268 0 0 1-.531-.777 2.7 2.7 0 0 1-.181-1.011c0-.562.142-1.041.427-1.439.294-.397.687-.7 1.18-.907a4.167 4.167 0 0 1 1.632-.31c.562 0 1.08.086 1.555.258.484.165.877.376 1.18.635.25.2.375.428.375.687 0 .19-.073.363-.22.519a.69.69 0 0 1-.518.233.568.568 0 0 1-.35-.117 2.21 2.21 0 0 0-.557-.337 4.183 4.183 0 0 0-.739-.272 2.762 2.762 0 0 0-1.672.026c-.25.095-.44.225-.57.389a.894.894 0 0 0-.194.57c0 .26.073.475.22.648.155.164.376.298.66.402a8.33 8.33 0 0 0 1.025.259c.518.095.972.207 1.36.337.398.13.726.298.985.505.26.199.454.454.583.765.13.302.195.674.195 1.114 0 .562-.156 1.046-.467 1.452a2.98 2.98 0 0 1-1.23.933 4.08 4.08 0 0 1-1.634.324Zm.933.7c0 .224-.077.41-.233.557a.734.734 0 0 1-.557.233.719.719 0 0 1-.544-.233.755.755 0 0 1-.22-.558V8.416a.776.776 0 0 1 .79-.79c.224-.001.406.077.544.232.147.147.22.333.22.558v10.418Z"})]})}];return s.includes("/widget-listing/builder")?void 0:(0,Be.jsx)("div",{className:"wkit-support-btn",children:(0,Be.jsxs)("div",{className:t?"wkit-plugin-popup-main-content":"",onClick:e=>{l(e)},children:[(0,Be.jsx)("div",{className:"wkit-dashsupport-toggle",onClick:e=>{l(e)},title:(0,a.__)("Need Help?","wdesignkit"),children:t?(0,Be.jsx)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M29 3L3 29M3 3L29 29",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}):(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"37",viewBox:"0 0 24 37",fill:"none",children:[(0,Be.jsx)("path",{d:"M8.16918 0.410471C3.63491 1.94688 0.861886 5.13211 0.262313 9.62891L0 11.54H6.40794L6.67025 10.0411C7.23235 6.78093 9.59317 4.94474 12.666 5.4319C15.3266 5.80663 16.9754 7.56787 16.9754 10.0411C16.9754 11.8024 16.1885 13.0015 13.3405 15.5122C10.0803 18.4351 9.03107 20.4587 8.80623 24.3559L8.61886 27.2788H14.727V25.4426C14.727 22.7071 15.1392 21.9576 18.4743 18.7724C22.4465 14.9876 23.5332 12.8891 23.2709 9.36659C22.9711 5.35695 21.2099 2.84624 17.4251 1.12246C14.8769 -0.0392083 10.53 -0.338995 8.16918 0.410471Z",fill:"white"}),(0,Be.jsx)("path",{d:"M9.06774 30.3142C7.38144 32.1504 7.7187 34.7735 9.85468 36.0102C13.5645 38.2211 17.3493 33.4994 14.389 30.3142C13.4896 29.3774 13.0024 29.1525 11.7283 29.1525C10.4543 29.1525 9.9671 29.3774 9.06774 30.3142Z",fill:"white"})]})}),t&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("a",{href:"https://posimyth.com/",className:"wkit-support-bottom",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Powered by POSIMYTH Innovations","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-dashSupport-content",children:[(0,Be.jsx)("div",{className:"wkit-sup-top",children:(0,Be.jsxs)("h3",{className:"wkit_support_section_heading",children:[" ",(0,a.__)("Quick Support","wdesignkit")]})}),(0,Be.jsxs)("div",{className:"wkit-support-inner",children:[(0,Be.jsx)("div",{className:"wkit-sup-wrap",children:r.map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-support-list",children:(0,Be.jsxs)("a",{href:e.link,target:"_blank",className:"wkit-support-link",rel:"noopener noreferrer",children:[(0,Be.jsx)("span",{className:"wkit-title-wrap",children:e.text}),n]})},t)))}),(0,Be.jsx)("div",{className:"wkit-panel-row",children:o.map(((e,t)=>(0,Be.jsx)("a",{href:e.link,className:"wkit-socialLogo-link",title:e.title,target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("span",{children:e.svg})},t)))}),(0,Be.jsxs)("div",{className:"wkit-panel-row",style:{justifyContent:"center",columnGap:"10px"},children:[(0,Be.jsxs)("span",{className:"wkit-version-info",children:[" ",(0,a.__)("WordPress Version: ","wdesignkit")+wdkitData.wdkit_wp_version," "]}),(0,Be.jsx)("span",{children:"|"}),(0,Be.jsxs)("span",{className:"wkit-version-info",children:[" ",(0,a.__)("Plugin Version: ","wdesignkit")+wdkitData.WDKIT_VERSION," "]})]})]})]}),(0,Be.jsx)("div",{className:"wkit-plugin-popup-outer"})]})]})})},yn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t))})))(Ht),$n=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t))})))(Rt),Nn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(ps(t)),wdkit_Login_Route:t=>e(os(t))})))(Qt),Ln=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(cs(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_toast:t=>e(ps(t))})))(fa),Mn=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(cs(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_set_toast:t=>e(ps(t))})))(Aa),Hn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_toast:t=>e(ps(t))})))(la),Vn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t))})))(ua),Dn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(ps(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t))})))(Ws),Sn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{var i;const[s,n]=(0,e.useState)(!0),r=Y(),o=J(),d=new URLSearchParams(o.search);let c=null!==(i=d.get("builder"))&&void 0!==i?i:"",p=window?.location?.pathname?window.location.pathname:"",w=window.location.origin+p+"?page=theplus_welcome_page#/widgets";return(0,e.useEffect)((()=>{if(t?.wdkit_meta?.success){if(JSON.parse(localStorage.getItem("wdkit-login")))var e="widget/download",a=t?.wdkit_meta?.userinfo?.id,i=r?.w_unique;else e="import/widget/free",i=r?.w_unique;var s={api_type:e,w_uniq:i,u_id:a},o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","wkit_public_download_widget"),o.append("widget_info",JSON.stringify(s)),i&&e&&l().post(ajaxurl,o).then((e=>{(async e=>{let a=JSON.parse(e.json),i=JSON.stringify(a?.Editor_data?.html),s=JSON.stringify(a?.Editor_data?.js),l=JSON.stringify(a?.Editor_data?.css),r=e?.image,o=d.get("type")?d.get("type"):"";var p=Object.assign({},a.widget_data.widgetdata,{r_id:e.r_id,allow_push:!1});o&&(p=Object.assign({},a.widget_data.widgetdata,{publish_type:o}));let m=Object.assign({},a.widget_data,{widgetdata:p});e={CardItems:{cardData:a.section_data},WcardData:m,Editor_data:a.Editor_Link,Editor_code:{Editor_codes:[a.Editor_data]}},"elementor"==at(c,t?.wdkit_meta?.widgetbuilder)?await Se("public_download",e,i,l,s,"",r).then((e=>{if(e?.api?.success)return n(!1),window.parent.postMessage("closePopup",w),e})):"gutenberg"==at(c,t?.wdkit_meta?.widgetbuilder)&&await Ze("public_download",e,i,l,s,"",r).then((e=>{if(e?.api?.success)return n(!1),window.parent.postMessage("closePopup",w),e}))})(e.data)}))}}),[t?.wdkit_meta?.success]),(0,Be.jsx)("div",{className:"wkit-downloading-widget",children:s?(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("p",{className:"wkit-downloading-text",children:(0,a.__)("Widget Downloading","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-downloading-widget-outer",children:(0,Be.jsx)("div",{className:"wkit-downloading-widget-inner"})})]}):(0,Be.jsxs)("div",{className:"wkit-tpae-success-container",children:[(0,Be.jsx)("span",{children:(0,Be.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M40 20C40 31.0457 31.0457 40 20 40C8.95431 40 0 31.0457 0 20C0 8.95431 8.95431 0 20 0C31.0457 0 40 8.95431 40 20Z",fill:"white"}),(0,Be.jsx)("path",{d:"M20.1429 3C10.6907 3 3 10.6907 3 20.1429C3 29.5951 10.6907 37.2857 20.1429 37.2857C29.5951 37.2857 37.2857 29.5951 37.2857 20.1429C37.2857 10.6907 29.5951 3 20.1429 3ZM29.724 15.6316L18.768 26.5016C18.1235 27.1461 17.0924 27.189 16.4049 26.5446L10.6047 21.2599C9.91729 20.6155 9.87433 19.5414 10.4758 18.8539C11.1203 18.1665 12.1944 18.1235 12.8818 18.768L17.4791 22.9785L27.275 13.1826C27.9624 12.4952 29.0365 12.4952 29.724 13.1826C30.4114 13.87 30.4114 14.9441 29.724 15.6316Z",fill:"#C22076"})]})}),(0,Be.jsx)("span",{className:"wkit-widget-downloaded-text",children:(0,Be.jsx)("p",{className:"wkit-tpae-success-text",children:(0,a.__)("Your widget Downloaded Successfully","wdesignkit")})})]})})}));var Zn=wdkitData.WDKIT_URL;const{wkit_get_user_login:Rn,form_data:Bn}=wp.wkit_Helper,En=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{const[i,s]=(0,e.useState)(!1),[n,l]=(0,e.useState)([]),r=(0,e.useRef)(n),[o,d]=(0,e.useState)(),[c,p]=(0,e.useState)(""),[w,m]=(0,e.useState)(!1),[g,u]=(0,e.useState)(!0),[h,_]=(0,e.useState)(!1),[C,k]=(0,e.useState)(!1),[v,b]=(0,e.useState)(),[x,f]=(0,e.useState)(!1),[j,y]=(0,e.useState)("wdkit"),[$,N]=(0,e.useState)("266965"),[L,M]=(0,e.useState)("assets/images/jpg/wdkit-logo.png"),[H,V]=(0,e.useState)(!1),[D,S]=(0,e.useState)([{plugin_name:"The Plus Addons for Elementor",banner_type:"default",image:"assets/images/jpg/tpae-logo.png",value:"tpae"},{plugin_name:"Nexter Blocks",banner_type:"default",image:"assets/images/jpg/nexter-blocks-logo.png",value:"tpag"}]),Z=[{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:"Nexter Blocks",imageSrc:"assets/images/jpg/nexter-blocks-logo.png",alt:"Tpag",value:"tpag"},{text:"UiChemy",imageSrc:"assets/images/jpg/uichemy-logo.png",alt:"uichemy",value:"uichemy"}];(0,e.useEffect)((()=>{null!=o?.credits&&u(!1)}),[o?.credits]),(0,e.useEffect)((()=>{d(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",Loader:!1}),t.wdkit_meta.credits?.tpag_licence&&null!=t.wdkit_meta?.credits?.tpag_licence?.ApiKey&&e.push({Img:"assets/images/jpg/nexter-blocks-logo.png",Plugin:"Nexter Blocks",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",Loader:!1}),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",Loader:!1}),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",Loader:!1}),t.wdkit_meta.credits?.wdkit_licence_extra?.length>0){let a=t.wdkit_meta.credits?.wdkit_licence_extra;a.map(((a,i)=>{null!=a?.ApiKey&&e.push({Img:"assets/images/jpg/wdkit-logo.png",Plugin:"WDesignKit Extra Credits",value:"wdkit_extra",Key:a?.ApiKey,Credits:t.wdkit_meta.credits?.wdkit_credits_extra[i],Status:"valid"==a?.license?"Active":"Expired",Loader:!1})}))}r.current=e,l(e)})()}),[t?.wdkit_meta?.credits]);const R=()=>{f(!x)},B=()=>(0,Be.jsxs)("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",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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"})]}),E=async(e,i,s)=>{if(s>-1&&V(!0),f(!1),!e.trim())return m(!0),void t.wdkit_set_toast([(0,a.__)("Invalid key entered","wdesignkit"),(0,a.__)("Key error, check and fix","wdesignkit"),"","danger"]);{_(!0);const a={type:"active_licence",token:Xe().token,licencekey:e,licencename:i,uichemyid:"uichemy"==i?$:""};await Bn(a).then((async e=>{if(e.success){let a=await Qe();if(a?.data&&t.wdkit_set_meta(a?.data),s>-1){const e={...D[s],banner_type:"success"},t=D.map(((t,a)=>a===s?e:t));S(t)}t.wdkit_set_toast([e?.message,e?.description,"","success"]),_(!1)}else t.wdkit_set_toast([e?.message,e?.description,"","danger"]),_(!1);V(!1)}))}p("")};var O=Array.from({length:100});if(!Rn())return t.wdkit_Login_Route("/activate"),(0,Be.jsx)(ce,{to:"/login"});const A=e=>{if(e)return"*".repeat(e.length-4)+e.slice(-4)},T=e=>{if(e){const[t,a]=e.split("@");return t.slice(0,3)+"*".repeat(t.length-3)+"@"+a}};return(0,Be.jsxs)("div",{className:"wkit-activate-key-wrapper "+(g?"wkit-skeleton":""),children:[(0,Be.jsx)(ft,{title:(0,a.__)("Manage Licence","wdesignkit"),svg:(0,Be.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 8.5C12.646 8.5 13.2347 8.25502 13.6784 7.85289C13.7324 7.79071 13.7907 7.73238 13.8529 7.67836C14.255 7.23469 14.5 6.64595 14.5 6C14.5 4.61929 13.3807 3.5 12 3.5C10.6193 3.5 9.5 4.61929 9.5 6C9.5 6.64595 9.74498 7.23469 10.1471 7.67836C10.2093 7.73238 10.2676 7.79071 10.3216 7.85289C10.7653 8.25502 11.354 8.5 12 8.5ZM12 10C12.4365 10 12.8567 9.93007 13.25 9.80081V11.5394L12.2304 11.2845C12.0791 11.2467 11.9209 11.2467 11.7696 11.2845L10.75 11.5394V9.80081C11.1433 9.93007 11.5635 10 12 10ZM9.21332 8.86957C9.18529 8.84235 9.15765 8.81471 9.13043 8.78668C9.09246 8.76341 9.04779 8.75 9 8.75H4C3.86193 8.75 3.75 8.86193 3.75 9V20C3.75 20.1381 3.86193 20.25 4 20.25H20C20.1381 20.25 20.25 20.1381 20.25 20V9C20.25 8.86193 20.1381 8.75 20 8.75H15C14.9522 8.75 14.9075 8.76341 14.8696 8.78668C14.8423 8.81471 14.8147 8.84235 14.7867 8.86957C14.7634 8.90754 14.75 8.95221 14.75 9V12.2438C14.75 12.8619 14.1692 13.3154 13.5696 13.1655L12 12.7731L10.4304 13.1655C9.83082 13.3154 9.25 12.8619 9.25 12.2438V9C9.25 8.95221 9.23659 8.90754 9.21332 8.86957ZM8 6C8 6.43653 8.06993 6.85673 8.19919 7.25H4C3.0335 7.25 2.25 8.0335 2.25 9V20C2.25 20.9665 3.0335 21.75 4 21.75H20C20.9665 21.75 21.75 20.9665 21.75 20V9C21.75 8.0335 20.9665 7.25 20 7.25H15.8008C15.9301 6.85673 16 6.43653 16 6C16 3.79086 14.2091 2 12 2C9.79086 2 8 3.79086 8 6ZM7 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:"#040483"})})}),(0,Be.jsxs)("div",{className:"wkit-active-content",children:[(0,Be.jsxs)("div",{className:"wkit-credit-detail",children:[(0,Be.jsxs)("div",{className:"wkit-credit-chart",children:[O.map(((e,a)=>{if(a+1<=2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100))var i="#7939eb";else i=2*t.wdkit_meta?.credits?.count_template/(t.wdkit_meta?.credits?.credits_total/100)<a+1&&a+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)<a+1&&a+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,Be.jsxs)("div",{className:"wkit-chart",style:{transform:`rotate(${3.6*a}deg)`},children:[(0,Be.jsx)("span",{className:"wkit-chart-show",style:{backgroundColor:i,zIndex:a}}),(0,Be.jsx)("span",{className:"wkit-chart-hiden"})]},a)})),(0,Be.jsxs)("div",{className:"wkit-center-chart",children:[(0,Be.jsxs)("div",{className:"wkit-center-chart-credits",children:[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,Be.jsx)("div",{className:"wkit-center-chart-tag",children:(0,a.__)("Free","wdesignkit")}):(0,Be.jsxs)("div",{className:"wkit-center-chart-pro-tag",children:[(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"11",viewBox:"0 0 12 11",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wkit-credit-meta",children:[(0,Be.jsx)("div",{className:"wkit-credit-meta-header",children:(0,a.__)("Credits","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-credit-meta-body",children:[(0,Be.jsxs)("div",{className:"wkit-credit-meta-content",children:[(0,Be.jsxs)("div",{className:"wkit-credit-meta-content-top",children:[(0,Be.jsx)("div",{className:"wkit-active-dot wkit-cl-template"}),(0,Be.jsx)("div",{children:(0,a.__)("Templates","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-credit-meta-content-bottom",children:"unlimited"==t.wdkit_meta?.credits?.template_limit?.meta_value?(0,Be.jsxs)("span",{children:[t.wdkit_meta?.credits?.count_template,"/",(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:(0,Be.jsx)("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||"00"}/${t.wdkit_meta?.credits?.template_limit?.meta_value||"00"}`})]}),(0,Be.jsxs)("div",{className:"wkit-credit-meta-content",children:[(0,Be.jsxs)("div",{className:"wkit-credit-meta-content-top",children:[(0,Be.jsx)("div",{className:"wkit-active-dot wkit-cl-widget"}),(0,Be.jsx)("div",{children:(0,a.__)("Widgets","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-credit-meta-content-bottom",children:"unlimited"===t.wdkit_meta?.credits?.widget_limit?.meta_value?(0,Be.jsxs)("span",{children:[t.wdkit_meta?.credits?.count_widget,"/",(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:(0,Be.jsx)("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||"00"}/${t.wdkit_meta?.credits?.widget_limit?.meta_value||"00"}`})]}),(0,Be.jsxs)("div",{className:"wkit-credit-meta-content",children:[(0,Be.jsxs)("div",{className:"wkit-credit-meta-content-top",children:[(0,Be.jsx)("div",{className:"wkit-active-dot wkit-cl-workspace"}),(0,Be.jsx)("div",{children:(0,a.__)("Workspace","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-credit-meta-content-bottom",children:"unlimited"===t.wdkit_meta?.credits?.workspace_limit?.meta_value?(0,Be.jsxs)("span",{children:[t.wdkit_meta?.credits?.count_workspace,"/",(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",children:(0,Be.jsx)("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||"00"}/${t.wdkit_meta?.credits?.workspace_limit?.meta_value||"00"}`})]})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsxs)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:["free"==t.wdkit_meta?.credits?.type&&(0,Be.jsxs)("button",{className:"wkit-credit-meta-btn wkit-goPro-btn wkit-pink-btn-class",children:[(0,Be.jsx)("svg",{width:"22",height:"21",viewBox:"0 0 22 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Go Pro","wdesignkit")]}),"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,Be.jsx)("button",{className:"wkit-credit-meta-btn wkit-goPro-btn wkit-pink-btn-class",children:(0,a.__)("Buy Extra Credits","wdesignkit")})]})]})]}),(0,Be.jsxs)("div",{className:"wkit-apiKey-content",children:[(0,Be.jsxs)("div",{className:"wkit-apiKey-add-content",children:[(0,Be.jsx)("div",{className:"wkit-addKey-header",children:(0,a.__)("Add Licence Key","wdesignkit")}),t?.wdkit_meta?.manage_licence&&D?.map(((e,i)=>{if(-1===n.findIndex((t=>t.value===e.value))||"success"===e?.banner_type){let s=t?.wdkit_meta?.manage_licence[e.value]?.license_key,n=t?.wdkit_meta?.manage_licence[e.value]?.customer_email||t.wdkit_meta?.userinfo?.user_email;if(s)return"default"===e?.banner_type?(0,Be.jsxs)("div",{className:"wkit-theplus-activation",children:[(0,Be.jsxs)("div",{className:"wkit-theplus-text",children:[(0,Be.jsx)("span",{children:(0,a.__)(`We found active ${e?.plugin_name} key on this site.`,"wdesignkit")}),(0,Be.jsxs)("p",{children:[(0,a.__)("Key:","wdesignkit")," ",A(s)]}),(0,Be.jsxs)("p",{children:[(0,a.__)("Email:","wdesignkit")," ",T(n)]})]}),(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-applyKey-btn",disabled:H,onClick:()=>{E(s,e?.value,i)},children:(0,a.__)("Apply Key","wdesignkit")})]},i):(0,Be.jsx)("div",{className:"wkit-theplus-activated",children:(0,Be.jsx)("p",{children:(0,a.__)(`Successfully connected your ${e?.plugin_name} key with your WDesignKit Account.`,"wdesignkit")})},i)}})),(0,Be.jsxs)("div",{className:"wkit-addKey-content",children:[(0,Be.jsx)("span",{children:(0,a.__)("Enter Licence Key","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-addKey-body",children:[(0,Be.jsxs)("div",{className:"wkit-addkey-dropdown-field "+(w?"wkit-empty-key":""),children:[(0,Be.jsxs)("div",{className:"wkit-addkey-dropdown-parent",children:[L&&(0,Be.jsx)("img",{src:Zn+L,alt:"Selected Option Image",onClick:()=>{R()},draggable:!1}),(0,Be.jsx)("input",{className:"wkit-addKey-input",placeholder:"XXXXXXXXX6788",type:"text",value:c,onFocus:()=>f(!0),onChange:e=>{p(e.target.value),m(!1)}}),(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",onClick:()=>{R()},className:"wkit-addkey-dropdown-toggle "+(x?"wdkit-dropdown-open":""),children:(0,Be.jsx)("path",{d:"M6 9.5L12 15.5L18 9.5",stroke:"#999999",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]}),x&&(0,Be.jsx)("div",{className:"wkit-addkey-dropdown-child",children:(0,Be.jsx)("ul",{className:"dropdown-options",children:Z.map((e=>(0,Be.jsxs)("li",{className:e.value==j?"wkit-selected-key":"",onClick:()=>(e=>{const t=Z.find((t=>t.value==e));t&&(y(e),M(t.imageSrc)),f(!1)})(e.value),children:[(0,Be.jsxs)("div",{className:"wkit-activate-key-opt",children:[(0,Be.jsx)("img",{src:Zn+e.imageSrc,alt:e.alt}),e.text]}),e.value==j&&(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 32 32",fill:"none",children:(0,Be.jsx)("path",{d:"M26.6663 8L11.9997 22.6667L5.33301 16",stroke:"#040483",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]},e.text)))})})]}),"uichemy"==j&&(0,Be.jsx)("div",{children:(0,Be.jsx)("select",{className:"wkit-uichemy-dropDown",onChange:e=>N(e.target.value),children:[{value:"266965",text:"All Access"},{value:"266943",text:"Figma to Bricks"},{value:"266948",text:"Figma to Gutenberg"},{value:"226276",text:"Figma to Elementor"}].map((e=>(0,Be.jsx)("option",{value:e.value,children:e.text})))})}),(0,Be.jsx)("div",{className:"wkit-credit-meta-btn wkit-activte-btn wkit-pink-btn-class",onClick:()=>E(c,j),children:1==h?(0,Be.jsx)(st,{}):(0,Be.jsx)("span",{children:(0,a.__)("Activate","wdesignkit")})}),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{className:"wkit-link-hover-effect",href:wdkitData.WDKIT_DOC_URL+"documents/how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to get key?","wdesignkit")})]})]})]}),n.length>0?(0,Be.jsxs)("div",{className:"wkit-apiKey-table-content",children:[(0,Be.jsxs)("div",{className:"wkit-apiKey-table-header",children:[(0,Be.jsx)("span",{children:(0,a.__)("Existing Licence Keys","wdesignkit")}),(0,Be.jsx)("p",{children:(0,a.__)("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.","wdesignkit")})]}),(0,Be.jsx)("div",{className:"wkit-apiKey-table-body",children:(0,Be.jsxs)("table",{children:[(0,Be.jsx)("thead",{children:(0,Be.jsxs)("tr",{className:"wkit-table-hraders",children:[(0,Be.jsx)("th",{className:"wkit-apikey-plugin",children:(0,a.__)("Name","wdesignkit")}),(0,Be.jsx)("th",{children:(0,a.__)("Licence Key","wdesignkit")}),(0,Be.jsx)("th",{children:(0,a.__)("Credits","wdesignkit")}),(0,Be.jsx)("th",{children:(0,a.__)("Status","wdesignkit")})]})}),(0,Be.jsx)("tbody",{children:n.map(((e,a)=>(0,Be.jsxs)("tr",{children:[(0,Be.jsx)("td",{children:(0,Be.jsxs)("div",{className:"wkit-apikey-plugin",children:[(0,Be.jsx)("img",{src:Zn+e.Img,alt:"TPAE image"}),(0,Be.jsx)("span",{children:e.Plugin})]})}),(0,Be.jsx)("td",{children:e.Key}),(0,Be.jsx)("td",{children:(0,Be.jsxs)("div",{className:"wkit-active-table-credits",children:[(0,Be.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("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,Be.jsx)("span",{children:e.Credits})]})}),(0,Be.jsx)("td",{children:(0,Be.jsxs)("div",{className:"wkit-active-table-status-tab",children:[(0,Be.jsx)("span",{className:"wkit-key-status "+("Expired"==e.Status?"wdkit-expired-class":"wdkit-active-class"),children:e.Status}),e.Loader?(0,Be.jsx)("span",{className:"wkit-cloud-icon",children:(0,Be.jsx)(B,{})}):(0,Be.jsx)("span",{className:"wkit-cloud-icon",onClick:()=>{((e,a)=>{let i=[...r.current];i[a]=Object.assign({},r.current[a],{Loader:!0}),r.current[a]=i[a],l(i);const s={type:"sync_licence",token:Xe().token,licencename:e};Bn(s).then((e=>{if(e.success){let i=[...r.current];i[a]=Object.assign({},r.current[a],{Loader:!1}),r.current[a]=i[a],l(i),t.wdkit_set_toast([e?.message,e?.description,"","success"])}else{let i=[...r.current];i[a]=Object.assign({},r.current[a],{Loader:!1}),r.current[a]=i[a],l(i),t.wdkit_set_toast([e?.message,e?.description,"","danger"])}}))})(e.value,a)},children:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,Be.jsx)("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,Be.jsx)("span",{className:"wkit-delete-key-btn",onClick:()=>{s(!0),b(e)},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[(0,Be.jsx)("path",{d:"M2.5 5H4.16667H17.5",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("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,Be.jsx)("path",{d:"M8.33398 9.16797V14.168",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M11.666 9.16797V14.168",stroke:"#B1B1D9",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})]},a)))})]})})]}):(0,Be.jsxs)("div",{className:"wkit-apiKey-nokey",children:[(0,Be.jsx)("img",{src:Zn+"assets/images/jpg/noKey.png",alt:"nokey image",draggable:!1}),(0,Be.jsxs)("span",{children:[(0,a.__)("No licence keys found. Add your WDesignKit, Nexter Blocks, The Plus Addons, UiChemy or other keys to activate and get benefits of pro version.","wdesignkit"),!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)("a",{className:"wkit-link-hover-effect",href:wdkitData.WDKIT_DOC_URL+"documents/how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to get a key?","wdesignkit")})]})]})]})]}),(0,Be.jsx)(jt,{OpenPopup:i,heading:"Please Confirm",closePopup:()=>s(!1),body:()=>(0,Be.jsxs)("div",{className:"wkit-popup-body",children:[(0,Be.jsxs)("div",{className:"wkit-popup-content-title",children:[(0,a.__)("Are you sure you want to deactivate the","wdesignkit")," ",v?.Plugin?v.Plugin:""," ",(0,a.__)("Pro License Key ?","wdesignkit")]}),(0,Be.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,Be.jsx)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>s(!1),children:(0,a.__)("No","wdesignkit")}),(0,Be.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>((e,a)=>{let i=D.findIndex((t=>t.value===e)),n="default"!==D[i]?.banner_type;k(!0);const l={type:"delete_licence",token:Xe().token,licencename:e,apikey:a};Bn(l).then((async e=>{if(e.success){let a=await Qe();if(k(!1),t.wdkit_set_toast([e?.message,e?.description,"","success"]),n){const e={...D[i],banner_type:"default"},t=D.map(((t,a)=>a===i?e:t));S(t)}a?.data&&t.wdkit_set_meta(a?.data)}else k(!1),t.wdkit_set_toast([e?.message,e?.description,"","danger"]);s(!1),b()}))})(v.value,v.Key),children:1==C?(0,Be.jsx)(st,{}):(0,Be.jsx)("span",{children:(0,a.__)("Yes","wdesignkit")})})]})]})})]})})),On=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_GetSettings_redux:t=>e(cs(t)),wdkit_set_toast:t=>e(ps(t)),wdkit_Login_Route:t=>e(os(t))})))(Is),An=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_toast:t=>e(ps(t))})))(Ya),Tn=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(cs(t)),wdkit_set_meta:t=>e(ds(t)),wdkit_Login_Route:t=>e(os(t)),wdkit_set_toast:t=>e(ps(t))})))(Ha),{form_data:Pn,wkit_set_user_login:Wn,get_userinfo:Fn}=wp.wkit_Helper,In=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(ps(t)),wdkit_set_meta:t=>e(ds(t))})))((t=>{const[i,s]=(0,e.useState)(""),[n,r]=(0,e.useState)(""),o=(0,e.useRef)(""),d=(0,e.useRef)("");var c=wdkitData.WDKIT_ASSETS,p=J(),w=G();(0,e.useEffect)((()=>{(async()=>{let e=document.querySelector("#wpadminbar"),t=document.querySelector("#wpbody"),a=document.querySelector(".wp-toolbar"),i=document.querySelector(".wkit-main-menu-dashbord"),s=document.querySelector(".wkit-support-btn"),n=window?.location?.pathname?window.location.pathname:"",l=window.location.origin+n+"?page=theplus_welcome_page#/widgets";a.style.padding=0,i.style.padding=0,t.style.padding=0,e?.remove(),s?.remove(),window.parent.postMessage("openPopup",l)})()}),[]),(0,e.useEffect)((()=>{t.wdkit_meta?.success&&(o.current=t?.wdkit_meta?.credits?.wdkit_licence,m())}),[t.wdkit_meta?.success]);const m=()=>{if(p?.search){const e=new URLSearchParams(p.search).get("id");if(e){let i={free_pro:"",type:"widget_browse_page",perpage:1,page:1,search:e},s=new FormData;s.append("action","get_wdesignkit"),s.append("kit_nonce",wdkitData.kit_nonce),Object.entries(i).forEach((([e,t])=>{s.append(e,t)})),l().post(ajaxurl,s).then((async e=>{if(e?.data?.data?.widgets?.[0]){let t=e.data.data.widgets[0];d.current=t.builder,r(t),g(t)}else t.wdkit_set_toast([(0,a.__)("Widget Not Found","wdesignkit"),(0,a.__)("Can Not Find Widget, Please Try Again Later!","wdesignkit"),"","danger"])}))}}},g=e=>{if(e)if("pro"==e?.free_pro){if(!Xe())return s("login"),!1;o?.current?.success&&"valid"==o?.current?.license?w(`/download/widget/${e.id}?builder=${d?.current}`):s("wdkit_pro")}else w(`/download/widget/${e.id}?builder=${d?.current}`)},u=()=>{const[i,l]=(0,e.useState)(),[r,o]=(0,e.useState)(),[p,m]=(0,e.useState)(!1),[g,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)(!1),[C,k]=(0,e.useState)(!1);let v=ze();const b=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},x=e=>h==e?(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("span",{className:"wkit-main-loader",children:[(0,Be.jsx)("span",{className:"wkit-loader"}),(0,Be.jsx)("span",{className:"wkit-loader"}),(0,Be.jsx)("span",{className:"wkit-loader"})]})}):(0,Be.jsxs)("span",{children:[(0,a.__)("Login with","wdesignkit")," ",e]});return(0,Be.jsxs)("div",{className:"wkit-login-popup",children:[(0,Be.jsx)("div",{children:(0,Be.jsx)("p",{className:"wkit-tpae-login-heading",children:(0,a.__)("Login to use WDesignKit Widgets","wdesignkit")})}),(0,Be.jsxs)("div",{className:"wkit-tpae-login-btns",children:[(0,Be.jsxs)("button",{className:"wkit-tpae-btn",onClick:e=>{(async()=>{var e=b();_("Google");var i=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${wdkitData.wdkit_server_url}api/auth/google/callback-plugin&response_type=code&scope=email%20profile&state=${e}`,l=screen.height/2-260,r=screen.width/2-335,o=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+l+",left="+r);const c=async()=>{if(o&&!o.closed)setTimeout(c,100);else{let l={type:"social_login",state:e,login_type:"normal",site_url:v};var i=await Pn(l).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i?.data?.success,l="Login successfully",r=i?.data?.token;r&&e&&Wn({messages:l,success:a,token:r,user_email:e,login_type:"normal"});let o=await Fn();t.wdkit_set_toast([i.messages,i.description,"","success"]),t.wdkit_set_meta(o.data),o.data.credits.wdkit_licence?.success&&"valid"==o.data.credits.wdkit_licence.license?w(`/download/widget/${n.id}?builder=${d?.current}`):s("wdkit_pro")}else t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);_(!1)}};setTimeout(c,100)})()},children:[(0,Be.jsx)("img",{src:c+"images/svg/google.svg",alt:"google",draggable:!1}),x("Google")]}),(0,Be.jsxs)("button",{className:"wkit-tpae-btn",onClick:e=>{(async()=>{var e=b();_("Facebook");var i=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${encodeURIComponent(`${wdkitData.wdkit_server_url}api/auth/facebook/callback-plugin`)}&response_type=code&scope=email&state=${e}`,l=screen.height/2-260,r=screen.width/2-335,o=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+l+",left="+r);const c=async()=>{if(o&&!o.closed)setTimeout(c,100);else{let l={type:"social_login",state:e,site_url:v};var i=await Pn(l).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i.data.success,l="Login successfully",r=i.data.token;r&&e&&Wn({messages:l,success:a,token:r,user_email:e,login_type:"normal"});let o=await Fn();t.wdkit_set_toast([i.messages,i.description,"","success"]),t.wdkit_set_meta(o.data),o.data.credits.wdkit_licence?.success&&"valid"==o.data.credits.wdkit_licence.license?w(`/download/widget/${n.id}?builder=${d?.current}`):s("wdkit_pro")}else t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);_(!1)}};setTimeout(c,100)})()},children:[(0,Be.jsx)("img",{src:c+"images/svg/facebook.svg",alt:"facebook",draggable:!1}),x("Facebook")]})]}),(0,Be.jsxs)("div",{className:"wkit-tpae-sign-email",children:[(0,Be.jsx)("hr",{className:"wkit-tpae-line"}),(0,Be.jsx)("span",{className:"wkit-tpae-line-text",children:(0,a.__)("OR","wdesignkit")}),(0,Be.jsx)("hr",{className:"wkit-tpae-line"})]}),(0,Be.jsxs)("form",{className:"wkit-tpae-login-form",onSubmit:e=>{(async e=>{if(e.preventDefault(),!i)return void t.wdkit_set_toast([(0,a.__)("Please fill all fields","wdesignkit"),(0,a.__)("Missing information! Complete all fields.","wdesignkit"),"","danger"]);if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(i))return void t.wdkit_set_toast([(0,a.__)("Invalid Login Details","wdesignkit"),(0,a.__)("Login Error: Check your details and try again.","wdesignkit"),"","danger"]);if(!r)return void t.wdkit_set_toast([(0,a.__)("Please fill all fields","wdesignkit"),(0,a.__)("Missing information! Complete all fields.","wdesignkit"),"","danger"]);if(k(!0),g)var l="normal";else l="session";let o={type:"wkit_login",user_email:i,user_password:r,login_type:l,site_url:v},c=await Pn(o).then((e=>e));if(c?.success){Wn(g?Object.assign({},{user_email:i},c,{login_type:"normal"}):Object.assign({},{user_email:i},c,{login_type:"session"}));let e=await Fn();return t.wdkit_set_meta(e.data),c.messages&&t.wdkit_set_toast([c?.messages,c?.description,"","success"]),e.data.credits.wdkit_licence.success&&"valid"==e.data.credits.wdkit_licence.license?w(`/download/widget/${n.id}?builder=${d?.current}`):s("wdkit_pro"),k(!1),void s("wdkit_pro")}t.wdkit_set_toast([c?.message,c?.description,"","danger"]),k(!1)})(e)},children:[(0,Be.jsxs)("div",{className:"wkit-tpae-login-field",children:[(0,Be.jsx)("label",{className:"wkit-tpae-label",htmlFor:"wkit-tpae-mail",children:(0,a.__)("Email","wdesignkit")}),(0,Be.jsx)("input",{type:"email",name:"email",id:"wkit-tpae-mail",placeholder:(0,a.__)("Enter your email","wdesignkit"),className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>{l(e.target.value)}})]}),(0,Be.jsxs)("div",{className:"wkit-tpae-login-field",children:[(0,Be.jsx)("label",{className:"wkit-tpae-label",htmlFor:"wkit-tpae-password",children:(0,a.__)("Password","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-login-password-inp",children:[(0,Be.jsx)("input",{type:p?"text":"password",id:"wkit-tpae-password",name:"password",placeholder:(0,a.__)("Password","wdesignkit"),className:"wkit-input-field",autoComplete:"off",required:!0,onChange:e=>{o(e.target.value)}}),(0,Be.jsx)("span",{className:"wkit-password-eye",children:p?(0,Be.jsxs)("svg",{onClick:()=>{m(!p)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("path",{d:"M0.583336 0.583332L13.4167 13.4167",stroke:"#C0C0E0",strokeWidth:"1.16667",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,Be.jsxs)("svg",{onClick:()=>{m(!p)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none",children:[(0,Be.jsx)("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,Be.jsx)("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,Be.jsxs)("div",{className:"wkit-remember-wrapper",children:[(0,Be.jsxs)("label",{htmlFor:"select-1",className:"wkit-remember-text",children:[(0,Be.jsx)("input",{type:"checkbox",id:"select-1",className:"wkit-check-box wkit-styled-checkbox",checked:g,onChange:e=>{u(e.target.checked)}}),(0,Be.jsx)("span",{className:"wkit-login-remember-text",children:(0,a.__)("Remember Me","wdesignkit")})]}),(0,Be.jsx)("a",{className:"wkit-tpae-page-link",href:`${wdkitData.wdkit_server_url}password/forgot`,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==C?(0,Be.jsx)("div",{className:"wkit-login-btn",children:(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-tpae-login-btn wkit-loader-btn",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",style:{display:C&&"flex"},children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})})}):(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-tpae-login-btn",children:(0,a.__)("Log in","wdesignkit")}),(0,Be.jsxs)("div",{className:"wkit-signup-account",children:[(0,a.__)("Don't have an account?","wdesignkit"),(0,Be.jsxs)("a",{className:"wkit-tpae-page-link",href:`${wdkitData.wdkit_server_url}signup`,target:"_blank",children:[" ",(0,a.__)("Create Account","wdesignkit")]})]})]})]})},h=()=>{const[i,l]=(0,e.useState)(!0);var r=(0,a.__)("Upgrade to WDesignKit Pro for Premium Widgets Access","wdesignkit");return"2"==d?.current&&(r=(0,a.__)("Upgrade to WDesignKit Pro for Premium Blocks Access","wdesignkit")),(0,Be.jsxs)("div",{className:"wkit-pro-popup",children:[(0,Be.jsx)("div",{className:"wkit-text-content",children:(0,Be.jsx)("p",{className:"wkit-buy-pro",children:r})}),(0,Be.jsxs)("div",{className:"wkit-widget-switcher",children:[(0,Be.jsxs)("div",{className:"wkit-widget-detail",children:[(0,Be.jsx)("div",{className:"wkit-widget-tag",children:n.free_pro}),(0,Be.jsx)("div",{className:"wkit-tpae-widget-detail",children:n.title}),(0,Be.jsx)("div",{className:"wkit-tpae-widget-links",children:(0,Be.jsx)("span",{className:"wkit-widget-link",children:(0,a.__)("Live Demo","wdesignkit")})})]}),(0,Be.jsxs)("div",{className:"wkit_block_toggle_btn_cover",children:[(0,Be.jsx)("input",{className:"wkit_toggle_btn",type:"checkbox",disabled:!0}),(0,Be.jsx)("label",{className:"switch-label",htmlFor:"toggle-tp-design-tool",children:(0,Be.jsx)("span",{className:"switch-button"})}),(0,Be.jsx)("img",{className:"wkit_toggle_lock_icon",src:c+"/images/svg/wkit_lock_icon.svg",alt:"Lock Icon"})]})]}),(0,Be.jsxs)("div",{className:"wkit-widget-btn-group",children:[(0,Be.jsx)("a",{href:wdkitData.wdkit_server_url+"pricing",target:"_blank",rel:"noopener noreferrer",children:(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-pro-btn",children:(0,a.__)("Get WDesignKit Pro","wdesignkit")})}),(0,Be.jsx)("button",{className:"wkit-pink-btn-class wkit-pro-btn wkit-transparetn-btn",onClick:()=>{s("activate_license")},children:(0,a.__)("Activate WDesignKit","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-tpae-details-dropdown",children:["elementor"==at(d?.current,t?.wdkit_meta?.widgetbuilder)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-tpae-question "+(i?"wkit-show-question":""),children:[(0,Be.jsx)("span",{children:(0,a.__)("Why Do I Need WDesignKit Pro if I Have The Plus Addons for Elementor Pro?","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-dropdown-svg",onClick:e=>{l(!i)},children:i?(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsxs)("div",{className:"wkit-tpae-answer "+(i?"wkit-show-answer":""),children:[(0,Be.jsx)("span",{children:(0,a.__)("WDesignKit and The Plus Addons for Elementor are two distinct products. The Plus Addons is entirely focused on Elementor, offering essential and advanced widgets specifically designed for Elementor users.","wdesignkit")}),(0,Be.jsx)("span",{children:(0,a.__)("WDesignKit, on the other hand, focuses on unique custom widgets created with its easy-to-use Drag and Drop Widget Builder, Cloud Workspace, and many other added benefits.","wdesignkit")}),(0,Be.jsx)("a",{className:"wkit-dropdown-link",href:wdkitData.WDKIT_DOC_URL+"docs/what-benefits-will-existing-users-of-the-plus-addons-for-elementor-pro-get-with-wdesignkit/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Explore the differences between The Plus Addons and WDesignKit to see what's included in each!","wdesignkit")})]})]}),"gutenberg"==at(d?.current,t?.wdkit_meta?.widgetbuilder)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-tpae-question "+(i?"wkit-show-question":""),children:[(0,Be.jsx)("span",{children:(0,a.__)("Why Do I Need WDesignKit Pro if I Have Nexter Blocks Pro?","wdesignkit")}),(0,Be.jsx)("span",{className:"wkit-dropdown-svg",onClick:e=>{l(!i)},children:i?(0,Be.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsxs)("div",{className:"wkit-tpae-answer "+(i?"wkit-show-answer":""),children:[(0,Be.jsx)("span",{children:(0,a.__)("WDesignKit and Nexter Blocks are two distinct products. nexter Blocks is entirely focused on Gutenberg, offering essential and advanced blocks specifically designed for gutenberg users. WDesignKit, on the other hand, focuses on unique custom blocks created with its easy-to-use Drag and Drop block Builder, Cloud Workspace, and many other added benefits.","wdesignkit")}),(0,Be.jsx)("a",{className:"wkit-dropdown-link",href:wdkitData.WDKIT_DOC_URL+"docs/what-benefits-will-existing-users-of-nexter-blocks-pro-get-with-wdesignkit/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Explore the differences between Nexter Blocks and WDesignKit to see what's included in each!","wdesignkit")})]})]})]})]})},_=()=>{const[i,s]=(0,e.useState)(!1),[l,r]=(0,e.useState)(!1),[o,c]=(0,e.useState)("");return(0,Be.jsxs)("div",{className:"wkit-tpae-activate-license",children:[(0,Be.jsxs)("div",{className:"wkit-text-content",children:[(0,Be.jsx)("p",{className:"wkit-tpae-license-text",children:(0,a.__)("Activate Your Pro License to Access Pro Widgets","wdesignkit")}),(0,Be.jsx)("p",{className:"wkit-tpae-license-notice",children:(0,a.__)("Please activate your WDesignKit Pro license to start using advanced Pro widgets.","wdesignkit")})]}),(0,Be.jsxs)("div",{className:"wkit-activate-license",children:[(0,Be.jsxs)("div",{className:"wkit-enter-key "+(l?"wkit-empty-license":""),children:[(0,Be.jsx)("span",{style:{display:"contents"},children:(0,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("rect",{x:"0.5",width:"14",height:"14",rx:"2.33333",fill:"white"}),(0,Be.jsx)("path",{d:"M12.1667 6.62654L9.18994 9.91671L7.50004 8.46779L5.81012 9.91671L2.83337 6.62654L4.52329 5.17762L6.376 7.2227V4.08337H8.62409V7.2227L10.4768 5.17762L11.5543 6.09824L12.1667 6.62654Z",fill:"#C22076"})]})}),(0,Be.jsx)("input",{className:"wkit-tpae-license-input",type:"text",placeholder:"XXXXXXXXX6788",value:o,onChange:e=>{c(e.target.value),r(!1)}})]}),(0,Be.jsx)("div",{className:"wkit-tpae-active-loader wkit-pink-btn-class",onClick:()=>(async()=>{if(!o.trim())return r(!0),void t.wdkit_set_toast([(0,a.__)("Invalid key entered","wdesignkit"),(0,a.__)("Key error, check and fix","wdesignkit"),"","danger"]);{s(!0);const e={type:"active_licence",token:Xe().token,licencekey:o,licencename:"wdkit"};await Pn(e).then((async e=>{e.success?(e?.data?.wdkit_licence?.success&&"valid"==e?.data?.wdkit_licence?.license&&w(`/download/widget/${n.id}?builder=${d?.current}`),t.wdkit_set_toast([e?.message,e?.description,"","success"]),s(!1)):(t.wdkit_set_toast([e?.message,e?.description,"","danger"]),s(!1))}))}c("")})(),children:1==i?(0,Be.jsx)("div",{className:"wkit-content-loader",children:(0,Be.jsx)("div",{className:"wb-contentLoader-circle"})}):(0,Be.jsx)("span",{children:(0,a.__)("Activate","wdesignkit")})})]})]})};return(0,Be.jsx)("div",{className:"wkit-theplus-popup-parent",children:i?(0,Be.jsxs)(Be.Fragment,{children:["login"==i&&(0,Be.jsx)(u,{}),"wdkit_pro"==i&&(0,Be.jsx)(h,{}),"activate_license"==i&&(0,Be.jsx)(_,{})]}):(0,Be.jsx)("div",{className:"theplus-wkit-loader-content",children:(0,Be.jsx)("div",{className:"theplus-wkit-loader-outer",children:(0,Be.jsx)("div",{className:"theplus-wkit-loader-inner"})})})})}));let qn=new AbortController;const{Fragment:Un}=wp.element,zn=Ji((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_toast:t=>e(ps(t))})))((t=>{const i={elementor:[{name:"Accordion",tag:"freemium"},{name:"Age Gate",id:"16001"},{name:"Audio Player",tag:"pro",id:"16295"},{name:"Blockquote",id:"16317"},{name:"Button",id:"16452"},{name:"Breadcrumbs Bar",id:"17013"},{name:"Chart",id:"12558"},{name:"Count Down",tag:"freemium",id:"12337"},{name:"Coupon Code",tag:"pro",id:"16377"},{name:"Carousel Anything",tag:"freemium",id:"17360"},{name:"Dynamic Categories",tag:"freemium"},{name:"Dark Mode"},{name:"Heading Title",id:"12427"},{name:"Info Box",tag:"freemium",id:"16254"},{name:"Message Box",id:"12363"},{name:"Navigation Menu",tag:"pro"},{name:"Number Counter",tag:"freemium",id:"12570"},{name:"Progress Bar",id:"16111"},{name:"Pricing List",tag:"pro",id:"12454"},{name:"Post Title"},{name:"Pricing Table",tag:"freemium",id:"12387"},{name:"Protected Content",tag:"pro",id:"12523"},{name:"Post Content"},{name:"Post Featured Image"},{name:"Pre Loader",tag:"pro",id:"16575"},{name:"Post Prev/Next"},{name:"Post Author"},{name:"Post Comment"},{name:"Post Meta"},{name:"Row Background",tag:"pro"},{name:"Stylish List",tag:"freemium",id:"16789"},{name:"Syntax Highlighter",tag:"freemium",id:"12518"},{name:"Site Logo",tag:"pro"},{name:"Table",tag:"freemium",id:"16051"},{name:"Table Of Content",tag:"pro"},{name:"Tabs/Tours",tag:"freemium"},{name:"Text Block"},{name:"Google Map",tag:"pro",id:"16989"},{name:"Video Player",id:"16867"},{name:"WP Login & Register",tag:"pro",id:"16013"},{name:"Header Meta Content",tag:"freemium"},{name:"Horizontal Scroll",tag:"pro",id:"16037"},{name:"Creative Image",tag:"pro",id:"17091"},{name:"Mobile Menu",tag:"pro"},{name:"Navigation Menu Lite"},{name:"Page Scroll",tag:"freemium"},{name:"Scroll Sequence",tag:"pro"},{name:"Design Tool",tag:"pro"},{name:"Advanced Buttons",tag:"pro",id:"11908"},{name:"Advanced Typography",tag:"pro",id:"11964"},{name:"Advanced Banner",tag:"pro",id:"12004"},{name:"Advanced Separators",tag:"pro"},{name:"Advanced Service Boxes",tag:"pro"},{name:"Heading Animation",id:"17060"},{name:"Before After",tag:"pro",id:"12153"},{name:"Crousel Remote",tag:"pro",id:"12220"},{name:"Circle Menu",tag:"pro",id:"17173"},{name:"Cascading Image",tag:"pro",id:"17196"},{name:"Draw SVG",tag:"pro",id:"17178"},{name:"Dynamic Device",tag:"pro",id:"12270"},{name:"Flip Box",tag:"freemium",id:"12274"},{name:"Hotspot",tag:"pro",id:"12282"},{name:"Hover Card",id:"17376"},{name:"LottieFiles Animation",tag:"pro",id:"17352"},{name:"Smooth Scroll"},{name:"Morphing Layouts",tag:"pro",id:"17219"},{name:"Mouse Cursor",tag:"pro",id:"17249"},{name:"Popup Builder / Off Canvas",tag:"pro",id:"11802"},{name:"Process Steps",tag:"pro",id:"17271"},{name:"Scroll Navigation",tag:"freemium",id:"17342"},{name:"Switcher",tag:"freemium",id:"17879"},{name:"Timeline",tag:"pro",id:"17287"},{name:"Unfold",tag:"pro",id:"17319"},{name:"Blog Listing",tag:"freemium"},{name:"Clients Listing",tag:"freemium",id:"17761"},{name:"Dynamic Listing",tag:"pro"},{name:"Dynamic Smart Showcase",tag:"pro"},{name:"Gallery Listing",tag:"freemium"},{name:"Product Listing",tag:"pro"},{name:"Team Member Listing",tag:"freemium"},{name:"Testimonial",tag:"freemium"},{name:"Search bar",tag:"pro"},{name:"WP Search Filters",tag:"pro"},{name:"Social Embed"},{name:"Social Feed",tag:"pro"},{name:"Social Icon",tag:"freemium",id:"16804"},{name:"Social Reviews",tag:"pro"},{name:"Social Sharing",tag:"pro",id:"16981"},{name:"Contact Form 7"},{name:"Everest Form"},{name:"Form",id:"17282"},{name:"Gravity Form"},{name:"Mailchimp",tag:"pro"},{name:"Meeting Scheduler"},{name:"Ninja Form"},{name:"WP Forms"},{name:"Woo Cart",tag:"pro"},{name:"Woo Checkout",tag:"pro"},{name:"Woo Compare",tag:"pro"},{name:"Woo Wishlist",tag:"pro"},{name:"WP Quick View",tag:"pro"},{name:"Woo Multi Step",tag:"pro"},{name:"Woo My Account",tag:"pro"},{name:"Woo Order Track",tag:"pro"},{name:"Woo Single Basic",tag:"pro"},{name:"Woo Product Images",tag:"pro"},{name:"Woo Single Pricing",tag:"pro"},{name:"Woo Single Tabs",tag:"pro"},{name:"Woo Thank You",tag:"pro"}],gutenberg:[{name:"Pro Buttons",tag:"pro",id:"12507"},{name:"Audio Player",tag:"pro"},{name:"Blockquote",id:"11763"},{name:"Breadcrumbs",id:"17677"},{name:"Advanced Button",id:"17180"},{name:"Button"},{name:"Code Highlighter"},{name:"Container",id:"11646"},{name:"Coupon Code",tag:"pro"},{name:"Dark Mode",tag:"pro"},{name:"Design Tool",tag:"pro"},{name:"Draw SVG"},{name:"Spacer"},{name:"Flipbox"},{name:"Google Map"},{name:"Heading"},{name:"Icon"},{name:"Image"},{name:"Infobox",id:"11315"},{name:"Login & Signup",tag:"pro"},{name:"Message box"},{name:"Number Counter",id:"12569"},{name:"Pricing Table",id:"11753"},{name:"Pre Loader",tag:"pro",id:"17169"},{name:"Paragraph"},{name:"Progress Bar",id:"17099"},{name:"Progress Tracker"},{name:"Row"},{name:"Stylish List",id:"11494"},{name:"Search Bar"},{name:"Social Icon"},{name:"Smooth Scroll"},{name:"Table of Contents",tag:"pro"},{name:"Video",id:"11501"},{name:"Advanced Typography",tag:"pro",id:"12372"},{name:"Animated Service Boxes",tag:"pro",id:"12557"},{name:"Before After",tag:"pro"},{name:"Carousel Anything",tag:"pro",id:"11427"},{name:"Carousel Remote",tag:"pro"},{name:"Circle Menu",tag:"pro"},{name:"Advanced Image",tag:"freemium"},{name:"Data Table",tag:"freemium",id:"17220"},{name:"Dynamic Device",tag:"pro",id:"12140"},{name:"Expand",tag:"pro"},{name:"Heading Animation",tag:"pro",id:"12234"},{name:"Advanced Heading"},{name:"Hotspot",tag:"pro",id:"11639"},{name:"Hover Card",id:"11375"},{name:"LottieFiles Animation",tag:"pro"},{name:"Mouse Cursor",tag:"pro"},{name:"Pricing List",id:"11716"},{name:"Process Steps",tag:"pro",id:"11691"},{name:"Scroll Navigation",tag:"pro",id:"12210"},{name:"Scroll Sequence",tag:"pro"},{name:"Spline 3D Viewer",tag:"pro"},{name:"Timeline",tag:"pro"},{name:"Accordion",tag:"freemium",id:"11416"},{name:"Interactive Circle Info",id:"12157"},{name:"Switcher",tag:"freemium"},{name:"Tabs Tours",tag:"freemium",id:"17577"},{name:"Social Embed",tag:"freemium"},{name:"Social Feed",tag:"freemium"},{name:"Social Reviews",tag:"freemium"},{name:"Advanced Chart",tag:"pro"},{name:"Countdown",tag:"freemium",id:"17212"},{name:"CTA Banner",tag:"pro",id:"12009"},{name:"External Form Styler"},{name:"Mailchimp",tag:"pro"},{name:"Social Sharing",tag:"pro"},{name:"Media Listing",tag:"pro"},{name:"Post Listing",tag:"freemium"},{name:"Product Listing",tag:"pro"},{name:"Taxonomy Listing",tag:"pro"},{name:"Team Member",tag:"freemium"},{name:"Testimonials",tag:"freemium"},{name:"Mobile Menu",tag:"pro"},{name:"Navigation Menu",tag:"freemium"},{name:"Popup Builder",tag:"pro"},{name:"Post Author"},{name:"Post Comments"},{name:"Post Content"},{name:"Post Image"},{name:"Post Meta Info"},{name:"Post Navigation",tag:"pro"},{name:"Post Title"},{name:"Site Logo"},{name:"Advanced Border Radius",tag:"pro"},{name:"Content Hover Effect",tag:"pro"},{name:"Continuous Animation",tag:"pro"},{name:"Display Rules",tag:"pro"},{name:"Equal Column Height",tag:"pro"},{name:"Global Tooltip",tag:"pro"},{name:"Magic Scroll",tag:"pro"},{name:"Mouse Parallax",tag:"pro"},{name:"On Scroll Animation",tag:"freemium"},{name:"3D Tilt",tag:"pro"}]},s={p_id:1005,plugin_name:"The Plus Addons for Elementor Free",plugin_slug:"the-plus-addons-for-elementor-page-builder/theplus_elementor_addon.php",original_slug:"the-plus-addons-for-elementor-page-builder",plugin_icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-tpae.svg",freepro:0,plugin_builder:1001,type:"plugin",status:"inactive"},n=J(),r=Y(),o=G();var d=wdkitData.WDKIT_URL;const[c,p]=(0,e.useState)(!0),[w,m]=(0,e.useState)(1),[g,u]=(0,e.useState)(-1),[h,_]=(0,e.useState)(!1),[C,k]=(0,e.useState)(i?.[wdkitData.use_editor]),[v,b]=(0,e.useState)({type:"wkit_preset_template",builder:"",plugin:JSON.stringify([]),key_words:JSON.stringify([]),buildertype:window.wdkit_editor,perpage:9,page:1,free_pro:"all",template_id:r?.preset_id}),[x,f]=(0,e.useState)(null),[j,y]=(0,e.useState)([]),[$,N]=(0,e.useState)(!0),[L,M]=(0,e.useState)(!1),[H,V]=(0,e.useState)(""),[D,S]=(0,e.useState)(""),[Z,R]=(0,e.useState)(""),[B,E]=(0,e.useState)(["status","tags","she-effects","plugins"]),[O,A]=(0,e.useState)(!1),[T,P]=(0,e.useState)(-1),[W,F]=(0,e.useState)(!1),[I,q]=(0,e.useState)(""),[U,z]=(0,e.useState)(!1),[K,Q]=(0,e.useState)(""),[X,ee]=(0,e.useState)({preset:null,key:null}),te=(0,e.useRef)([]);let ae=[{label:(0,a.__)("Free","wdesignkit"),value:"Free"},{label:(0,a.__)("Pro","wdesignkit"),value:"Pro"}],ie=(0,Be.jsx)("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M5.5 0C6.15661 -9.78424e-09 6.80679 0.129329 7.41342 0.380602C8.02004 0.631876 8.57124 1.00017 9.03553 1.46447C9.49983 1.92876 9.86812 2.47995 10.1194 3.08658C10.3707 3.69321 10.5 4.34339 10.5 5C10.5 5.65661 10.3707 6.30679 10.1194 6.91342C9.86812 7.52004 9.49983 8.07124 9.03553 8.53553C8.57124 8.99983 8.02004 9.36812 7.41342 9.6194C6.80679 9.87067 6.15661 10 5.5 10C4.17392 10 2.90215 9.47322 1.96447 8.53553C1.02678 7.59785 0.5 6.32608 0.5 5C0.5 3.67392 1.02678 2.40215 1.96447 1.46447C2.90215 0.526784 4.17392 1.97602e-08 5.5 0ZM7.26667 3.47L4.875 5.86833L3.71167 4.705C3.67293 4.66626 3.62694 4.63553 3.57632 4.61456C3.5257 4.5936 3.47145 4.58281 3.41667 4.58281C3.36188 4.58281 3.30763 4.5936 3.25701 4.61456C3.2064 4.63553 3.16041 4.66626 3.12167 4.705C3.08293 4.74374 3.0522 4.78973 3.03123 4.84035C3.01026 4.89096 2.99947 4.94521 2.99947 5C2.99947 5.05479 3.01026 5.10904 3.03123 5.15965C3.0522 5.21027 3.08293 5.25626 3.12167 5.295L4.58 6.75333C4.6187 6.79214 4.66468 6.82292 4.71531 6.84393C4.76593 6.86493 4.82019 6.87574 4.875 6.87574C4.92981 6.87574 4.98407 6.86493 5.03469 6.84393C5.08532 6.82292 5.1313 6.79214 5.17 6.75333L7.85667 4.05833C7.93246 3.97964 7.97432 3.87433 7.97322 3.76508C7.97212 3.65583 7.92815 3.55138 7.85078 3.47423C7.77342 3.39709 7.66884 3.35341 7.55959 3.35262C7.45034 3.35183 7.34514 3.39398 7.26667 3.47Z",fill:"white"})}),se=[{question:(0,a.__)("Why Do I Need to Upgrade to The Plus Addons for Elementor Pro?","wdesignkit"),answer:(0,a.__)("The Plus Addons for Elementor offers both Free and Pro plans. To ensure quality design and better results, our premium plan provides full access to advanced features that make your web design process easier. We promise it's worth it!For any questions, connect with us via our website live chat—we'll get back to you soon.","wdesignkit")}],ne=[{question:(0,a.__)("Why Do I Need to Upgrade to Nexter Blocks Pro?","wdesignkit"),answer:(0,a.__)("Nexter Blocks offers both Free and Pro plans. To ensure quality design and better results, our premium plan provides full access to advanced features that make your web design process easier. We promise it's worth it!For any questions, connect with us via our website live chat—we'll get back to you soon.","wdesignkit")}],le=[{question:(0,a.__)("Why Do I Need The Plus Addons for Elementor?","wdesignkit"),answer:(0,a.__)("The Elementor Free version does not come with a free Navigation Menu widget. Therefore, by installing The Plus Addons, you can create your Header Menu easily.","wdesignkit")}],re=[{question:(0,a.__)("Why do I need Elementor Pro for this Template?","wdesignkit"),answer:(0,a.__)("This sticky header template is built using Elementor Pro's Navigation Menu widget, which is only available with the Pro version. To use this template and unlock its full potential, you'll need to have Elementor Pro installed and activated.","wdesignkit")}];const oe=()=>window.location.href.split("/wp-admin/")[0]+"/wp-admin/";(0,e.useEffect)((()=>{var e=!1;let t=r?.preset_id,a=i?.[wdkitData?.use_editor]?.find((e=>e?.id==t))?.name;a&&V(a),n.search&&(e=new URLSearchParams(n.search).get("she"))&&F(!0),e?(async()=>{let e=await lt([{plugin_name:"Elementor Pro",plugin_slug:"elementor-pro/elementor-pro.php",original_slug:"elementor-pro",status:"inactive",type:"plugin"}]);var t={...v,plugin:JSON.stringify([1014,1003]),free_pro:"free"};"active"==e?.data?.plugins[0].status&&(t={...v,plugin:JSON.stringify([1014,1004])}),b(t),q(!0)})():"gutenberg"===wdkitData?.use_editor?q(tpgb_blocks_load?.nexter_block_pro):"elementor"===wdkitData?.use_editor&&q(tp_wdkit_preview_popup?.tpae_pro)}),[]),(0,e.useEffect)((()=>{de()}),[v]);const de=async()=>{qn&&qn.abort(),qn=new AbortController;let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),Object.entries(v).forEach((([t,a])=>{"free_pro"===t&&"all"===a?e.append(t,""):e.append(t,a)})),await l().post(wdkitData.ajax_url,e,{signal:qn.signal}).then((e=>{if(e?.data){let t=e?.data?.data;y(e?.data?.manage_licence),m(e?.data?.totalpage),f(t),p(!1),N(!1)}else f(null)}))},ce=(e,t)=>{te.current.length>0&&e.plugins_id.includes(te.current[0]?.p_id)?(A(!0),z(!0),Q(te.current[0].original_slug),ee((a=>({...a,preset:e,key:t})))):(A(!1),z(!1),we(e,t))},pe=(e,i)=>{var s=!0,n=!1,l=!1;if("elementor"==window.wdkit_editor&&j?.theplus_elementor_addon&&"1"===I&&(n=!0),"gutenberg"==window.wdkit_editor&&j?.tpag&&"1"===I&&(l=!0),1==W){if(e.plugins_id?.length>0){let a=[];e.plugins_id.map((e=>{if("1003"!=e&&"1014"!=e){let i=t.wdkit_meta?.plugin?.length>0?t.wdkit_meta?.plugin:[],s=i.findIndex((t=>t.p_id==e));if(s>-1){let e=i[s].original_slug;j?.[e]||a.push(i[s])}}})),0==a?.length?s=!1:te.current=a}}else s="free"!=e?.free_pro&&!l&&!n;return s?(0,Be.jsxs)("div",{className:"wkit-preset-download-btn wkit-lock-btn",onClick:()=>{((e,t)=>{1==W?ce(e,t):A(!0)})(e,i)},children:[(0,Be.jsx)("span",{className:"wkit-preset-tooltip",children:(0,a.__)("Click to know more","wdesignkit")}),(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[(0,Be.jsx)("path",{d:"M10.0625 5.25V3.81063C10.0613 3.0324 9.75168 2.28639 9.2014 1.7361C8.65111 1.18582 7.9051 0.876157 7.12688 0.875H6.87313C6.0949 0.876157 5.34889 1.18582 4.7986 1.7361C4.24832 2.28639 3.93866 3.0324 3.9375 3.81063V5.25C3.5894 5.25 3.25556 5.38828 3.00942 5.63442C2.76328 5.88056 2.625 6.2144 2.625 6.5625V10.6312C2.62616 11.2923 2.88926 11.9259 3.35668 12.3933C3.8241 12.8607 4.45772 13.1238 5.11875 13.125H8.88125C9.54228 13.1238 10.1759 12.8607 10.6433 12.3933C11.1107 11.9259 11.3738 11.2923 11.375 10.6312V6.5625C11.375 6.2144 11.2367 5.88056 10.9906 5.63442C10.7444 5.38828 10.4106 5.25 10.0625 5.25ZM4.8125 3.81063C4.8125 3.26411 5.0296 2.73999 5.41604 2.35354C5.80249 1.9671 6.32661 1.75 6.87313 1.75H7.12688C7.67339 1.75 8.19752 1.9671 8.58396 2.35354C8.9704 2.73999 9.1875 3.26411 9.1875 3.81063V5.25H4.8125V3.81063Z",fill:"#727272"}),(0,Be.jsx)("path",{d:"M7.4375 9.0649V10.4999C7.4375 10.6159 7.39141 10.7272 7.30936 10.8093C7.22731 10.8913 7.11603 10.9374 7 10.9374C6.88397 10.9374 6.77269 10.8913 6.69064 10.8093C6.60859 10.7272 6.5625 10.6159 6.5625 10.4999V9.0649C6.39569 8.96859 6.26532 8.81993 6.19161 8.64198C6.11789 8.46402 6.10496 8.26672 6.15482 8.08066C6.20467 7.89461 6.31452 7.7302 6.46733 7.61294C6.62015 7.49569 6.80738 7.43213 7 7.43213C7.19262 7.43213 7.37985 7.49569 7.53267 7.61294C7.68548 7.7302 7.79533 7.89461 7.84519 8.08066C7.89504 8.26672 7.88211 8.46402 7.8084 8.64198C7.73468 8.81993 7.60431 8.96859 7.4375 9.0649Z",fill:"#D1D1D6"})]})]}):g==i?(0,Be.jsx)("div",{className:"wkit-preset-download-btn wkit-loading-preset",children:(0,Be.jsx)("div",{className:"wkit-publish-loader",children:(0,Be.jsx)("div",{className:"wb-loader-circle"})})}):-1!==g?(0,Be.jsx)("div",{className:"wkit-preset-download-btn wkit-disable-btn",children:(0,Be.jsx)("img",{className:"wkit-preset-download-icon",src:d+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:!1})}):1==W?(0,Be.jsx)("div",{className:"wkit-preset-download-btn",onClick:()=>{ce(e,i)},children:(0,Be.jsx)("img",{className:"wkit-preset-download-icon",src:d+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:!1})}):(0,Be.jsx)("div",{className:"wkit-preset-download-btn",onClick:()=>we(e,i),children:(0,Be.jsx)("img",{className:"wkit-preset-download-icon",src:d+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:!1})})},we=async(e,i)=>{u(i),qn&&qn.abort(),qn=new AbortController;let s=new FormData;s.append("action","get_wdesignkit"),s.append("kit_nonce",wdkitData.kit_nonce),s.append("type","wdkit_preset_dwnld_template"),s.append("id",e?.id),s.append("builder",window.wdkit_editor),s.append("free_pro",e?.free_pro),s.append("sheCheck",W),s.append("product_name","");let n=await l().post(wdkitData.ajax_url,s,{signal:qn.signal}).then((e=>e.data));if(n?.success){let w=JSON.parse(n.content);if(w&&w.content&&"gutenberg"==wdkitData.use_editor){let m=wp.blocks.parse(w.content),g=JSON.stringify(m);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(g)){let h={type:"media_import",email:"",content:g,editor:wdkitData.use_editor},_=await Ye(h);_.data&&_.success&&(m=_.data,wp.data.dispatch("core/block-editor").insertBlocks(m))}else wp.data.dispatch("core/block-editor").insertBlocks(m);return t.wdkit_set_toast([(0,a.__)("Widget Preset Imported Successfully!","wdesignkit"),(0,a.__)(" Enjoy customizing your design in Gutenberg!","wdesignkit"),"","success"]),setTimeout((()=>{let e=document.querySelector("#wkit-builder-modal");e&&(e.classList.toggle("wkit-open"),window.location.hash="")}),1500),u(-1),()=>{clearTimeout(timeId)}}if(w&&w.content&&"elementor"==w.file_type&&"elementor"==wdkitData.use_editor){await gt(w),await mt();let C=JSON.stringify(w.content);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(C)){let k={type:"media_import",email:"",content:C,editor:wdkitData.use_editor},v=await Ye(k);v.data&&v.success&&(w.content=v.data)}var r=window.elementor,o=$e;if(r){if(void 0!==o){function b(e){return e.forEach((function(e){e.id=elementorCommon.helpers.getUniqueId(),0<e.elements.length&&b(e.elements)})),e}for(var d=0;d<w.content.length;d++){var c={elType:w.content[d].elType,settings:w.content[d].settings};c.elements=b(w.content[d].elements),o.run("document/elements/create",{container:r.getPreviewContainer(),model:c,options:{index:0}})}}else{var p=new Backbone.Model({getTitle:function(){return"Wdesignkit Import"}});for(o.channels.data.trigger("template:before:insert",p),d=0;d<w.content.length;d++)o.getPreviewView().addChildElement(w.content[d],{index:0});o.channels.data.trigger("template:after:insert",{})}return elementor.saver.update.apply().then((function(){window.location.reload()})),t.wdkit_set_toast([(0,a.__)("Widget Preset Imported Successfully!","wdesignkit"),(0,a.__)(" Enjoy customizing your design in Elementor!","wdesignkit"),"","success"]),setTimeout((()=>{var e=window?.WdkitPopup?.getElements("content");e&&(window.WdkitPopupToggle.close(e.get(0)),window.WdkitPopup.destroy()),e=window?.She_WdkitPopup?.getElements("content"),e&&(window.WdkitPopupToggle.close(e.get(0)),window.She_WdkitPopup.destroy())}),1500),u(-1),()=>{clearTimeout(timeId)}}}else u(-1)}else t.wdkit_set_toast([n.message,n.description,"","danger"]),u(-1)},me=(e,t)=>{if(p(!0),"search"==e)var a=Object.assign({},v,{search:t,page:1});else if("filterItem"==e&&""!=t){var i=t.toLowerCase(),s="all";v.free_pro!==i&&(s=i),a=Object.assign({},v,{free_pro:s,page:1})}else if("filterName"==e)a=Object.assign({},v,{template_id:t.id,page:1}),V(t.presetName),M(1!=L);else if("plugin"==e){let e,i=v?.plugin&&!Array.isArray(v?.plugin)?JSON.parse(v?.plugin):[];W&&!i?.includes(1014)&&i.push(1014),e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...v,plugin:JSON.stringify(e),page:1}}else if("key_words"==e){let e,i=v?.key_words&&!Array.isArray(v?.key_words)?JSON.parse(v?.key_words):[];e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...v,key_words:JSON.stringify(e),page:1}}b(a)},ge=e=>{let t=[...B];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),E(t)},ue=()=>{let e=[{label:(0,a.__)("Header Scroll Distance","wdesignkit"),id:"header-scroll-distance",value:"Header Scroll Distance"},{label:(0,a.__)("Transparent Header Background","wdesignkit"),id:"transparent-header-background",value:"Transparent Header Background"},{label:(0,a.__)("Background Color Change","wdesignkit"),id:"background-color-change",value:"Background Color Change"},{label:(0,a.__)("Bottom Border Styling","wdesignkit"),id:"bottom-border-styling",value:"Bottom Border Styling"},{label:(0,a.__)("Header Shrinking","wdesignkit"),id:"header-shrinking",value:"Header Shrinking"},{label:(0,a.__)("Logo Shrinking","wdesignkit"),id:"logo-shrinking",value:"Logo Shrinking"},{label:(0,a.__)("Logo Color Change","wdesignkit"),id:"logo-color-change",value:"Logo Color Change"},{label:(0,a.__)("Blur Background","wdesignkit"),id:"blur-background",value:"Blur Background"},{label:(0,a.__)("Hide Header on Scroll Down","wdesignkit"),id:"hide-header-on-scroll-down",value:"Hide Header on Scroll Down"},{label:(0,a.__)("Above Header Section","wdesignkit"),id:"above-header-section",value:"Above Header Section"}],t=[{label:(0,a.__)("Elementor","wdesignkit"),id:"elementor",p_id:1003,icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-elementor.svg"},{label:(0,a.__)("Elementor Pro","wdesignkit"),id:"elementor-pro",p_id:1004,icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-elementor-pro.svg"},{label:(0,a.__)("The Plus Addons For Elementor","wdesignkit"),id:"tpae",p_id:1005,icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-tpae.svg"},{label:(0,a.__)("The Plus Addons For Elementor Pro","wdesignkit"),id:"tpae-pro",p_id:1006,icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/plugin-tpae-pro.svg"},{label:(0,a.__)("Sticky Header Effects For Elementor","wdesignkit"),id:"she",p_id:1014,icon:"https://wdesignkit.com/images/uploads/wpdk-admin/plugin-list/sticky-header-effects-for-elementor.svg"}],i=v?.plugin&&!Array.isArray(v?.plugin)?JSON.parse(v?.plugin):[],s=v?.key_words&&!Array.isArray(v?.key_words)?JSON.parse(v?.key_words):[];return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,Be.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ge("she-effects")},children:[(0,Be.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Header Effects","wdesignkit")}),(0,Be.jsx)("svg",{className:"wkit-acc-svg "+(B.includes("she-effects")?"":"wkit-rotate-icon"),width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M10.5 8.75L7 5.25L3.5 8.75",stroke:"#020202",strokeWidth:"0.875",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B?.includes("she-effects")&&(0,Be.jsx)("div",{className:"wkit-preset-effects-container",children:e?.map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-preset-cb-label",htmlFor:e.id,children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box",onChange:()=>me("key_words",e?.value),checked:!!s?.includes(e?.value),id:e.id}),(0,Be.jsx)("span",{className:"wkit-cb-label",children:e.label})]},t)))})]}),(0,Be.jsx)("hr",{className:"wkit-preset-line"}),(0,Be.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,Be.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ge("plugins")},children:[(0,Be.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Plugins","wdesignkit")}),(0,Be.jsx)("svg",{className:"wkit-acc-svg "+(B.includes("plugins")?"":"wkit-rotate-icon"),width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M10.5 8.75L7 5.25L3.5 8.75",stroke:"#020202",strokeWidth:"0.875",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B?.includes("plugins")&&(0,Be.jsx)("div",{className:"wkit-preset-effects-container",children:t?.map(((e,t)=>(0,Be.jsxs)("label",{className:"wkit-preset-cb-label "+(1014===e?.p_id?"wkit-disable-btn-class":""),htmlFor:e.id,children:[(0,Be.jsx)("input",{type:"checkbox",className:"wkit-check-box",checked:!!i?.includes(e?.p_id),disabled:1014===e.p_id,onChange:()=>me("plugin",e?.p_id),id:e.id}),(0,Be.jsx)("img",{className:"wkit-preset-plugin-img",src:e.icon,alt:e.label}),(0,Be.jsx)("span",{className:"wkit-cb-label",children:e.label})]},t)))})]})]})},he=e=>{(e.target.closest(".wkit-overlay")&&!e.target.closest(".tpae-nexter-bg")||e.target.closest(".tpae-model-close"))&&(1==U?(z(!1),A(!1)):A(!1))},_e=()=>(0,Be.jsxs)("div",{className:"wkit-preset-filter-content",style:{minHeight:h?"100%":"auto"},children:[(0,Be.jsxs)("div",{className:"wkit-search-filter-content",children:[(0,Be.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Widget Presets","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-preset-search-template",children:(0,Be.jsx)("div",{className:"wkit-search-filter",children:(0,Be.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search"),type:"text",value:D,onChange:e=>{S(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&me("search",D)}}),(0,Be.jsx)("span",{className:"wkit-search-button wkit-btn-class",onClick:e=>{me("search",D)},children:(0,Be.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",viewBox:"0 0 24 24",fill:"none",children:[(0,Be.jsx)("path",{d:"M14.4299 5.92969L20.4999 11.9997L14.4299 18.0697",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M3.5 12H20.33",stroke:"white",strokeWidth:"1.5",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})]})})]})})})]}),(0,Be.jsx)("hr",{className:"wkit-preset-line"}),("1"!==I||W)&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,Be.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ge("status")},children:[(0,Be.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Status","wdesignkit")}),(0,Be.jsx)("svg",{className:"wkit-acc-svg "+(B.includes("status")?"":"wkit-rotate-icon"),width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M10.5 8.75L7 5.25L3.5 8.75",stroke:"#020202",strokeWidth:"0.875",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B.includes("status")&&(0,Be.jsx)("div",{className:"wkit-preset-free-pro",children:ae.map(((e,t)=>(0,Be.jsxs)("label",{htmlFor:`wkit-preset-${e?.value}`,className:"wkit-preset-freePro",children:[(0,Be.jsx)("input",{className:"wkit-check-box",onChange:t=>me("filterItem",e?.value),type:"checkbox",id:`wkit-preset-${e?.value}`,checked:v?.free_pro===e?.value?.toLowerCase()}),(0,Be.jsx)("span",{children:e.label})]},t)))})]}),(0,Be.jsx)("hr",{className:"wkit-preset-line"})]}),W?ue():(0,Be.jsxs)("div",{className:"wkit-preset-tag-container",children:[(0,Be.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ge("tags")},children:[(0,Be.jsxs)("span",{className:"wkit-preset-heading",children:[wdkitData?.use_editor," ",(0,a.__)("Widgets","wdesignkit")]}),(0,Be.jsx)("svg",{className:"wkit-acc-svg "+(B.includes("tags")?"":"wkit-rotate-icon"),width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{d:"M10.5 8.75L7 5.25L3.5 8.75",stroke:"#020202",strokeWidth:"0.875",strokeLinecap:"round",strokeLinejoin:"round"})})]}),B?.includes("tags")&&(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("div",{className:"wkit-browse-search-inner",children:(0,Be.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search","wdesignkit"),type:"text",value:Z,onChange:e=>{(e=>{if(R(e),""==e.trim())var t=i?.[wdkitData.use_editor];else t=i?.[wdkitData.use_editor]?.filter((t=>t.name.toLowerCase().includes(e.toLocaleLowerCase())));k(t)})(e.target.value)}})}),C?.length>0&&(0,Be.jsx)("div",{className:"wkit-preset-tags",children:C?.map(((e,t)=>{let i=e.name.split(" ").join("-");return(0,Be.jsxs)("div",{className:"wkit-preset-tag-data "+(e.id?"":"wkit-disable-btn-class"),children:[(0,Be.jsxs)("label",{className:"wkit-preset-tag-name "+(e.id?"":"wdkit-diabled-element"),htmlFor:`wkit-preset-${i}`,children:[(0,Be.jsx)("input",{type:"radio",checked:H===e.name,className:"wkit-radio-button",onChange:()=>((e,t)=>{o("/preset/"+e),me("filterName",{id:e,presetName:t})})(e?.id,e.name),id:`wkit-preset-${i}`}),e.name]}),e?.tag&&e?.id&&(0,Be.jsx)("span",{className:"wkit-preset-tag-type "+("pro"===e?.tag?"wkit-preset-pro":""),children:e?.tag}),!e?.id&&(0,Be.jsx)("span",{className:"wkit-preset-tag-type wkit-preset-comingSoon",children:(0,a.__)("Coming Soon","wdesignkit")})]},t)}))})]})]})]});return(0,Be.jsxs)("div",{className:`wkit-preset-container ${c?"wkit-skeleton":""} ${$?"wkit-filter-skeleton":""}`,children:[(0,Be.jsx)("div",{className:"wkit-preset-filter-panel",children:_e()}),(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsxs)("div",{className:"wkit-filter-fixed",onClick:()=>{_(!0)},children:[(0,Be.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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"})}),(0,a.__)("Filters","wdesignkit")]}),h&&(0,Be.jsxs)("div",{className:"wkit-preset-mobile-filter",children:[(0,Be.jsx)("span",{className:"wkit-mobile-filter-close",onClick:()=>{_(!1)},children:(0,Be.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("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()]})]}),(0,Be.jsxs)("div",{className:"wkit-preset-main",style:{display:h?"none":""},children:[(0,Be.jsx)("div",{className:"wdkit-preset-inner-content",children:!1===c&&x?.length<=0?(0,Be.jsx)(_t,{}):(0,Be.jsx)("div",{className:"wkit-preset-grid",children:!0===c?(e=>{if(e)return(0,Be.jsx)(Be.Fragment,{children:(t=e,Array.from({length:t})).map(((e,t)=>(0,Be.jsx)("div",{className:"wkit-preset-card",children:(0,Be.jsxs)("div",{className:"wkit-card-inner",children:[(0,Be.jsx)("div",{className:"wkit-pr-card-top",children:(0,Be.jsx)("div",{className:"wkit-preset-feature-img",children:(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:d+"assets/images/wkit-dummy-bg.png",draggable:"false"})})}),(0,Be.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,Be.jsx)("div",{className:"wkit-pr-card-title",children:"Growth Metrics"}),(0,Be.jsx)("div",{className:"wkit-preset-download-btn",children:(0,Be.jsx)("div",{className:"preset-download-temp",children:(0,Be.jsx)("img",{className:"wkit-preset-download-icon",src:d+"assets/images/svg/popup-download.svg",alt:"view-kit",draggable:"false"})})})]})]})},t)))});var t})(v.perpage):x?.map(((e,t)=>((e,t)=>(0,Be.jsx)("div",{className:"wkit-preset-card",children:(0,Be.jsxs)("div",{className:"wkit-card-inner",children:[(0,Be.jsxs)("div",{className:"wkit-pr-card-top",onClick:()=>window.open(t?.post_url,"_blank"),children:[(0,Be.jsx)("div",{className:"wkit-preset-card-tag",children:(0,Be.jsx)("span",{children:t?.free_pro})}),(0,Be.jsxs)("div",{className:"wkit-preset-feature-img",children:[(0,Be.jsx)("img",{className:"wkit-widget-placeholder-img",src:d+"assets/images/wkit-dummy-bg.png",draggable:"false"}),(0,Be.jsxs)("picture",{children:[t?.responsive_image?.length>0&&t?.responsive_image.map(((e,t)=>{return(0,Be.jsx)(Un,{children:(0,Be.jsx)("source",{media:`(min-width: ${e?.size}px)`,srcSet:(a=e?.url,a?a.replace(/\s/g,"%20"):d+"assets/images/placeholder.jpg")})},t);var a})),(0,Be.jsx)("img",{className:"wkit-temp-image-content",src:t?.post_image,alt:"featured-img",draggable:!1})]}),(0,Be.jsx)("div",{className:"wkit-preset-preview",children:(0,Be.jsx)("div",{className:"wkit-preset-demo-inner",children:(0,Be.jsxs)("div",{className:"wkit-preview-items",children:[(0,Be.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M8.51293 6.58874C8.51293 7.60786 7.6894 8.43139 6.67028 8.43139C5.65117 8.43139 4.82764 7.60786 4.82764 6.58874C4.82764 5.56962 5.65117 4.74609 6.67028 4.74609C7.6894 4.74609 8.51293 5.56962 8.51293 6.58874Z",stroke:"#FFFFFF",strokeWidth:"1.23529",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M6.67019 10.8455C8.4871 10.8455 10.1805 9.77494 11.3592 7.922C11.8224 7.19627 11.8224 5.97641 11.3592 5.25068C10.1805 3.39774 8.4871 2.32715 6.67019 2.32715C4.85328 2.32715 3.15989 3.39774 1.98122 5.25068C1.51798 5.97641 1.51798 7.19627 1.98122 7.922C3.15989 9.77494 4.85328 10.8455 6.67019 10.8455Z",stroke:"#FFFFFF",strokeWidth:"1.23529",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,Be.jsx)("span",{children:(0,a.__)("View Demo","wdesignkit")})]})})})]})]}),(0,Be.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,Be.jsx)("div",{className:"wkit-pr-card-title",children:t?.title}),pe(t,e)]})]})},e))(t,e)))})}),(()=>{if(x?.length>0&&w>1)return(0,Be.jsx)("div",{className:"wkit-pagination-main",children:(0,Be.jsx)(Ot(),{breakLabel:"...",nextLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"7",height:"11",viewBox:"0 0 7 11",fill:"none",children:(0,Be.jsx)("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:w,marginPagesDisplayed:1,previousLabel:(0,Be.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"8",height:"11",viewBox:"0 0 8 11",fill:"none",children:(0,Be.jsx)("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&&(v.page=e.nextSelectedPage+1,b({...v}),p(!0))},forcePage:v.page-1,onPageActive:()=>{}})})})()]}),O&&(0,Be.jsxs)("div",{className:"wkit-overlay wkit-preset-popup",onClick:e=>{he(e)},children:["elementor"===wdkitData?.use_editor&&!U&&(0,Be.jsxs)("div",{className:"tpae-nexter-bg",children:[(0,Be.jsx)("svg",{className:"tpae-model-close",onClick:e=>{he(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"white",fillOpacity:"0.8"})}),(0,Be.jsxs)("div",{className:"tpae-nexter-content",children:[(0,Be.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock all Premium Widget Designs with The Plus Addons for Elementor Pro","wdesignkit")}),(0,Be.jsxs)("ul",{className:"wkit-tpae-ul-list",children:[(0,Be.jsxs)("li",{children:[ie,(0,a.__)("120+ Elementor Widgets","wdesignkit")]}),(0,Be.jsxs)("li",{children:[ie,(0,a.__)("1000+ Elementor Templates","wdesignkit")]}),(0,Be.jsxs)("li",{children:[ie,(0,a.__)("Pre-Designed Widget Styled","wdesignkit")]}),(0,Be.jsxs)("li",{children:[ie,(0,a.__)("Trusted by 150K+ Users","wdesignkit")]})]}),(0,Be.jsxs)("div",{className:"wkit-preset-popup-btns",children:[(0,Be.jsx)("a",{className:"tpae-nexter-btn",href:"https://theplusaddons.com/pricing/?utm_source=wpbackend&utm_medium=dashboard&utm_campaign=plussettings",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Upgrade Pro","wdesignkit")}),(0,Be.jsx)("a",{className:"tpae-nexter-btn wkit-activate-tpae ",href:oe()+"admin.php?page=theplus_welcome_page#/activate_pro",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Already Pro? Activate Now","wdesignkit")})]}),(0,Be.jsx)("div",{className:"tpae-nexter-accordion",children:se?.map(((e,t)=>(0,Be.jsxs)("div",{className:"nexter-accordion-item",children:[(0,Be.jsxs)("div",{className:"nexter-accordio-content "+(T===t?"tpae-content-opan":""),onClick:()=>P(T===t?null:t),children:[(0,Be.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,Be.jsx)("div",{className:"tpae-pm-lable",children:(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T!==t&&(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsx)("div",{className:"tpae-accordion-ans "+(T===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"gutenberg"===wdkitData?.use_editor&&(0,Be.jsxs)("div",{className:"tpae-nexter-bg wkit-nexter-bg",children:[(0,Be.jsx)("svg",{className:"tpae-model-close",onClick:e=>{he(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"white",fillOpacity:"0.8"})}),(0,Be.jsxs)("div",{className:"tpae-nexter-content",children:[(0,Be.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock all Premium Block Designs with Nexter Blocks Pro","wdesignkit")}),(0,Be.jsxs)("ul",{className:"wkit-tpae-ul-list",children:[(0,Be.jsxs)("li",{children:[ie,(0,a.__)("Performance Optimized","wdesignkit")]}),(0,Be.jsxs)("li",{children:[ie,(0,a.__)("90+ WordPress Blocks","wdesignkit")]}),(0,Be.jsxs)("li",{children:[ie,(0,a.__)("1000+ Pre-made Starter Templates","wdesignkit")]})]}),(0,Be.jsxs)("div",{className:"wkit-preset-popup-btns",children:[(0,Be.jsx)("a",{className:"tpae-nexter-btn",href:"https://nexterwp.com/pricing/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Upgrade Pro","wdesignkit")}),(0,Be.jsx)("a",{className:"tpae-nexter-btn wkit-activate-tpae ",href:oe()+"admin.php?page=nexter_welcome_page#/activate_PRO",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Already Pro? Activate Now","wdesignkit")})]}),(0,Be.jsx)("div",{className:"tpae-nexter-accordion",children:ne?.map(((e,t)=>(0,Be.jsxs)("div",{className:"nexter-accordion-item",children:[(0,Be.jsxs)("div",{className:"nexter-accordio-content "+(T===t?"tpae-content-opan":""),onClick:()=>P(T===t?null:t),children:[(0,Be.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,Be.jsx)("div",{className:"tpae-pm-lable",children:(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T!==t&&(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsx)("div",{className:"tpae-accordion-ans "+(T===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"elementor"===wdkitData?.use_editor&&U&&W&&"the-plus-addons-for-elementor-page-builder"==K&&(0,Be.jsxs)("div",{className:"tpae-nexter-bg",children:[(0,Be.jsx)("svg",{className:"tpae-model-close",onClick:e=>{he(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"white",fillOpacity:"0.8"})}),(0,Be.jsxs)("div",{className:"tpae-nexter-content",children:[(0,Be.jsx)("div",{className:"tpae-nexter-title tpae-nexter-popup-title",children:(0,a.__)("Get a Free Elementor Navigation Menu Widget with The Plus Addons for Elementor","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-preset-popup-btns",children:"loading"==U?(0,Be.jsx)("div",{className:"tpae-nexter-sticky-btn",children:(0,Be.jsx)("span",{className:"wkit-loader"})}):(0,Be.jsx)("span",{className:"tpae-nexter-btn",onClick:()=>(z("loading"),void rt(s).then((e=>{if(e?.data?.success){let e=te.current.findIndex((e=>"1005"==e.p_id));if(e>-1){te.current.splice(e,1);let t=Object.assign({},j,{"the-plus-addons-for-elementor-page-builder":!0});y(t),ce(X.preset,X.key)}A(!1),z(!1),we(X?.preset,X?.key),t.wdkit_set_toast([(0,a.__)("Installation Successful!","wdesignkit"),(0,a.__)("Plugin is installed","wdesignkit"),"","success"])}else t.wdkit_set_toast([(0,a.__)("Installation Failed!","wdesignkit"),(0,a.__)("Plugin is not installed","wdesignkit"),"","danger"])}))),children:(0,a.__)("Enable Free Navigation Menu","wdesignkit")})}),(0,Be.jsx)("div",{className:"tpae-nexter-accordion tpae-nexter-popup-accord",children:le?.map(((e,t)=>(0,Be.jsxs)("div",{className:"nexter-accordion-item",children:[(0,Be.jsxs)("div",{className:"nexter-accordio-content "+(T===t?"tpae-content-opan":""),onClick:()=>P(T===t?null:t),children:[(0,Be.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,Be.jsx)("div",{className:"tpae-pm-lable",children:(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T!==t&&(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsx)("div",{className:"tpae-accordion-ans "+(T===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"elementor"===wdkitData?.use_editor&&W&&U&&"elementor-pro"==K&&(0,Be.jsxs)("div",{className:"tpae-nexter-bg wkit-bg-color",children:[(0,Be.jsx)("svg",{className:"tpae-model-close",onClick:e=>{he(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.7071 6.70711C19.0976 6.31658 19.0976 5.68342 18.7071 5.29289C18.3166 4.90237 17.6834 4.90237 17.2929 5.29289L12 10.5858L6.70711 5.29289C6.31658 4.90237 5.68342 4.90237 5.29289 5.29289C4.90237 5.68342 4.90237 6.31658 5.29289 6.70711L10.5858 12L5.29289 17.2929C4.90237 17.6834 4.90237 18.3166 5.29289 18.7071C5.68342 19.0976 6.31658 19.0976 6.70711 18.7071L12 13.4142L17.2929 18.7071C17.6834 19.0976 18.3166 19.0976 18.7071 18.7071C19.0976 18.3166 19.0976 17.6834 18.7071 17.2929L13.4142 12L18.7071 6.70711Z",fill:"white",fillOpacity:"0.8"})}),(0,Be.jsxs)("div",{className:"tpae-nexter-content",children:[(0,Be.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock This Sticky Header Template with Elementor Pro!","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-preset-subTitle",children:(0,a.__)("Access advanced design options like Sticky Headers, available only in Elementor Pro. Take your website's user experience to the next level!","wdesignkit")}),(0,Be.jsx)("div",{className:"wkit-preset-popup-btns",children:(0,Be.jsx)("a",{className:"tpae-nexter-btn",href:"https://elementor.com/pro/?utm_source=StickyHeaderElementor&utm_medium=ElementorProPro&utm_campaign=HeaderTemplates",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Upgrade Elementor Pro Now","wdesignkit")})}),(0,Be.jsx)("div",{className:"tpae-nexter-accordion",children:re?.map(((e,t)=>(0,Be.jsxs)("div",{className:"nexter-accordion-item",children:[(0,Be.jsxs)("div",{className:"nexter-accordio-content "+(T===t?"tpae-content-opan":""),onClick:()=>P(T===t?null:t),children:[(0,Be.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,Be.jsx)("div",{className:"tpae-pm-lable",children:(0,Be.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[T!==t&&(0,Be.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Be.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,Be.jsx)("div",{className:"tpae-accordion-ans "+(T===t?"opan-accordion":""),children:e.answer})]},t)))}),(0,Be.jsxs)("div",{className:"wkit-elementor-notice",children:[(0,Be.jsx)("span",{children:(0,Be.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 12 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Be.jsx)("path",{d:"M6.37305 9.375C6.37305 9.1679 6.20515 9 5.99805 9C5.79095 9 5.62305 9.1679 5.62305 9.375V12.375C5.62305 12.5821 5.79095 12.75 5.99805 12.75C6.20515 12.75 6.37305 12.5821 6.37305 12.375V9.375Z",fill:"white",fillOpacity:"0.7"}),(0,Be.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99805 4.5C3.02952 4.5 0.623047 6.90647 0.623047 9.875C0.623047 12.8435 3.02952 15.25 5.99805 15.25C8.9666 15.25 11.373 12.8435 11.373 9.875C11.373 6.90647 8.9666 4.5 5.99805 4.5ZM1.37305 9.875C1.37305 7.32068 3.44373 5.25 5.99805 5.25C8.55235 5.25 10.623 7.32068 10.623 9.875C10.623 12.4293 8.55235 14.5 5.99805 14.5C3.44373 14.5 1.37305 12.4293 1.37305 9.875Z",fill:"white",fillOpacity:"0.7"}),(0,Be.jsx)("path",{d:"M6.49805 7.875C6.49805 8.15114 6.2742 8.375 5.99805 8.375C5.7219 8.375 5.49805 8.15114 5.49805 7.875C5.49805 7.59886 5.7219 7.375 5.99805 7.375C6.2742 7.375 6.49805 7.59886 6.49805 7.875Z",fill:"white",fillOpacity:"0.7"})]})}),(0,Be.jsx)("span",{className:"wkit-preset-notice-text",children:(0,a.__)("Note :- If you're looking for a Free option, simply select the Filter Free option in Template. You can still import templates made using the Free Navigation Menu Widget from The Plus Addons for Elementor.","wdesignkit")})]})]})]})]})]})})),Jn=[{element:(0,Be.jsx)(yn,{}),path:"/login",condition:!0,setting_panel:["all"]},{element:(0,Be.jsx)($n,{}),path:"/login-api",condition:!0,setting_panel:["all"]},{element:(0,Be.jsx)(Nn,{}),path:"/browse",condition:!0,setting_panel:["template"]},{element:(0,Be.jsx)(Ln,{}),path:"/share_with_me",condition:!0,setting_panel:["template","builder"]},{element:(0,Be.jsx)(Tn,{}),path:"/manage_workspace",condition:!0,setting_panel:["template","builder"]},{element:(0,Be.jsx)(Mn,{}),path:"/manage_workspace/workspace_template/:id",condition:!0,setting_panel:["template","builder"]},{element:(0,Be.jsx)(Hn,{}),path:"/my_uploaded",condition:!0,setting_panel:["template"]},{element:(0,Be.jsx)(Vn,{}),path:"/:kit_parent/kit/:kit_id",condition:!0,setting_panel:["template"]},{element:(0,Be.jsx)(qs,{}),path:"*",condition:!0,setting_panel:["all"]},{element:(0,Be.jsx)(Qt,{}),path:"/",condition:!0,setting_panel:["template"]},{element:(0,Be.jsx)(In,{}),path:"/theplus_popup",condition:!0,setting_panel:["all"]},{element:(0,Be.jsx)(Sn,{}),path:"/download/widget/:w_unique",condition:!0,setting_panel:["all"]},{element:(0,Be.jsx)(gs,{}),path:"/widget-listing",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,Be.jsx)(Rs,{}),path:"/widget-listing/builder/:id",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,Be.jsx)(Dn,{}),path:"/widget-browse",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,Be.jsx)(En,{}),path:"/activate",condition:"wdkit"===window.wdkit_editor&&!wdkitData?.wdkit_white_label?.licence_tab,setting_panel:["all"]},{element:(0,Be.jsx)(On,{}),path:"/settings",condition:"wdkit"===window.wdkit_editor,setting_panel:["all"]},{element:(0,Be.jsx)(An,{}),path:"/save_template",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,Be.jsx)(An,{type:"section"}),path:"/save_template/section",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,Be.jsx)(zn,{}),path:"/preset/:preset_id",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["all"]}],Kn=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_GetSettings_redux:t=>e(rs(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{var i=window.location,s=wdkitData.WDKIT_URL,n=wdkitData?.wdkit_white_label?.plugin_logo||s+"assets/images/jpg/wdkit_loader.gif";const[l,r]=(0,e.useState)(!0);(0,e.useEffect)((()=>{null!=t?.wdkit_meta?.success&&r(!1)}),[t?.wdkit_meta?.success]);const o=e=>"external_popup"==e?!i?.hash?.includes("#/theplus_popup")&&!i?.hash?.includes("#/download/widget"):"widget_builder"==e&&!i?.hash?.includes("/builder");return(0,Be.jsx)(Be.Fragment,{children:(0,Be.jsxs)("div",{className:"wkit-main-menu-dashbord",children:[l?(0,Be.jsx)("div",{className:"wkit-loading-content",style:{display:"flex"},draggable:!1,children:(0,Be.jsx)("div",{className:"wkit-main-loader",children:navigator.onLine?(0,Be.jsx)("img",{style:{width:"150px",height:"150px"},src:n,draggable:!1}):(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)("img",{style:{width:"150px",height:"150px"},src:s+"assets/images/jpg/no-internet-connection.png",draggable:!1}),(0,Be.jsx)("span",{children:(0,a.__)("Unable to connect to the Internet !","wdesignkit")})]})})}):(0,Be.jsxs)(Be.Fragment,{children:[1!=wdkitData.WDKIT_onbording_end&&"wdkit"==window.wdkit_editor&&o("external_popup")&&(0,Be.jsx)(fn,{}),(0,Be.jsxs)(ke,{children:[(0,Be.jsx)(vn,{}),(0,Be.jsxs)("div",{className:"wkit-right-side",children:[(0,Be.jsx)(Ct,{props:t}),"disabled"==t?.wdkit_meta?.login_status&&"pro"==t?.wdkit_meta?.credits?.type&&o("external_popup")&&(0,Be.jsx)(wt,{}),"1"==t?.wdkit_meta?.maintenance_mode?.meta_value&&(0,Be.jsx)(pt,{}),(0,Be.jsx)(me,{children:Jn.map(((e,a)=>{if(e.condition&&(e=>{let a=t.wdkit_meta?.Setting;var i=!1,s=!1;if(a?.template&&(a?.elementor_template||a?.gutenberg_template)&&(i=!0),a?.builder&&(a?.bricks_builder||a?.gutenberg_builder||a?.elementor_builder)&&(s=!0),e){if(e?.includes("all"))return!0;if(e?.includes("template")&&i)return!0;if(e?.includes("builder")&&s)return!0}return!1})(e?.setting_panel))return(0,Be.jsx)(pe,{path:e.path,element:e.element},a)}))})]}),"wdkit"==wdkitData.use_editor&&o("widget_builder")&&!wdkitData?.wdkit_white_label?.help_link&&(0,Be.jsx)(jn,{})]})]}),(0,Be.jsx)(bn,{})]})})})),{Wkit_user_details:Gn,wkit_get_user_login:Yn,form_data:Qn,get_userinfo:Xn}=wp.wkit_Helper,el=Ji((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ds(t)),wdkit_GetSettings_redux:t=>e(rs(t)),wdkit_set_toast:t=>e(ps(t))})))((t=>{(0,e.useEffect)((()=>{a()}),[]);const a=async()=>{if(await Yn()){let e=await Xn();null!=e?.data?.success?"logout"!=e.data.login_status&&e?.data?.success?t.wdkit_set_meta(e?.data):et():navigator.onLine||et()}else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await Qn(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}}}));class tl extends t().Component{constructor(e){super(e)}componentWillUnmount(){"wdkit"!=window.wdkit_editor&&(window.location.hash="")}render(){return(0,Be.jsxs)(Be.Fragment,{children:[(0,Be.jsx)(el,{}),(0,Be.jsx)(Kn,{})]})}}const al=tl,il=tn(mn),sl=document.getElementById("wdesignkit-app");sl&&(0,ue.createRoot)(sl).render((0,Be.jsx)(Ki,{store:il,children:(0,Be.jsx)(al,{})}))})()})();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
inteuuod / inteuuod
0644
index-rtl.css
631.81 KB
June 09 2025 14:50:38
inteuuod / inteuuod
0644
index.asset.php
0.164 KB
June 09 2025 14:50:38
inteuuod / inteuuod
0644
index.css
631.6 KB
June 09 2025 14:50:38
inteuuod / inteuuod
0644
index.js
1.66 MB
June 09 2025 14:50:38
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF