whoami7 - Manager
:
/
home
/
ezdajrnh
/
public_html
/
wp-content
/
plugins
/
wdesignkit
/
build
/
Upload File:
files >> /home/ezdajrnh/public_html/wp-content/plugins/wdesignkit/build/index.js
(()=>{var __webpack_modules__={505:(e,t,a)=>{e.exports=a(15)},592:(e,t,a)=>{"use strict";var i=a(516),s=a(522),n=a(948),r=a(106),l=a(615),o=a(631),d=a(202),c=a(896),p=a(845),m=a(563),u=a(656);e.exports=function(e){return new Promise((function(t,a){var h,g=e.data,w=e.headers,_=e.responseType;function f(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}i.isFormData(g)&&i.isStandardBrowserEnv()&&delete w["Content-Type"];var k=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",x=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(b+":"+x)}var v=l(e.baseURL,e.url);function y(){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),f()}),(function(e){a(e),f()}),n),k=null}}if(k.open(e.method.toUpperCase(),r(v,e.params,e.paramsSerializer),!0),k.timeout=e.timeout,"onloadend"in k?k.onloadend=y:k.onreadystatechange=function(){k&&4===k.readyState&&(0!==k.status||k.responseURL&&0===k.responseURL.indexOf("file:"))&&setTimeout(y)},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(v))&&e.xsrfCookieName?n.read(e.xsrfCookieName):void 0;j&&(w[e.xsrfHeaderName]=j)}"setRequestHeader"in k&&i.forEach(w,(function(e,t){void 0===g&&"content-type"===t.toLowerCase()?delete w[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)&&(h=function(e){k&&(a(!e||e&&e.type?new m:e),k.abort(),k=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),g||(g=null);var N=u(v);N&&-1===["http","https","file"].indexOf(N)?a(new p("Unsupported protocol "+N+":",p.ERR_BAD_REQUEST,e)):k.send(g)}))}},15:(e,t,a)=>{"use strict";var i=a(516),s=a(12),n=a(155),r=a(343),l=function e(t){var a=new n(t),l=s(n.prototype.request,a);return i.extend(l,n.prototype,a),i.extend(l,a),l.create=function(a){return e(r(t,a))},l}(a(412));l.Axios=n,l.CanceledError=a(563),l.CancelToken=a(191),l.isCancel=a(864),l.VERSION=a(641).version,l.toFormData=a(440),l.AxiosError=a(845),l.Cancel=l.CanceledError,l.all=function(e){return Promise.all(e)},l.spread=a(980),l.isAxiosError=a(19),e.exports=l,e.exports.default=l},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),r=a(490),l=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=l(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=[r,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 m=t;i.length;){var u=i.shift(),h=i.shift();try{m=u(m)}catch(e){h(e);break}}try{n=r(m)}catch(e){return Promise.reject(e)}for(;o.length;)n=n.then(o.shift(),o.shift());return n},p.prototype.getUri=function(e){e=l(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(l(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(l(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,r={};["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){r[e]={value:e}})),Object.defineProperties(s,r),Object.defineProperty(n,"isAxiosError",{value:!0}),s.from=function(e,t,a,r,l,o){var d=Object.create(n);return i.toFlatObject(e,d,(function(e){return e!==Error.prototype})),s.call(d,e.message,t,a,r,l),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),r=a(412),l=a(563);function o(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new l}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||r.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 r(e){if(!i.isUndefined(t[e]))return s(void 0,t[e])}function l(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:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,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),r=a(896),l=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:r,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),r=t&&t["Content-Type"];if((a=i.isFileList(e))||n&&"multipart/form-data"===r){var o=this.env&&this.env.FormData;return l(a?{"files[]":e}:e,o&&new o)}return n||"application/json"===r?(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,r=!a&&"json"===this.responseType;if(r||s&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(r){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 r=[];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)),r.push(s(t)+"="+s(e))})))})),n=r.join("&")}if(n){var l=e.indexOf("#");-1!==l&&(e=e.slice(0,l)),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,r){var l=[];l.push(e+"="+encodeURIComponent(t)),i.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),i.isString(s)&&l.push("path="+s),i.isString(n)&&l.push("domain="+n),!0===r&&l.push("secure"),document.cookie=l.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,r={};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(r[t]&&s.indexOf(t)>=0)return;r[t]="set-cookie"===t?(r[t]?r[t]:[]).concat([a]):r[t]?r[t]+", "+a:a}})),r):r}},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,r){if(i.isPlainObject(n)||i.isArray(n)){if(-1!==a.indexOf(n))throw Error("Circular reference detected in "+r);a.push(n),i.forEach(n,(function(a,n){if(!i.isUndefined(a)){var l,o=r?r+"."+n:n;if(a&&!r&&"object"==typeof a)if(i.endsWith(n,"{}"))a=JSON.stringify(a);else if(i.endsWith(n,"[]")&&(l=i.toArray(a)))return void l.forEach((function(e){!i.isUndefined(e)&&t.append(o,s(e))}));e(a,o)}})),a.pop()}else t.append(r,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 r={};n.transitional=function(e,t,a){function n(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(a?". "+a:"")}return function(a,i,l){if(!1===e)throw new s(n(i," has been removed"+(t?" in "+t:"")),s.ERR_DEPRECATED);return t&&!r[i]&&(r[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(a,i,l)}},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 r=i[n],l=t[r];if(l){var o=e[r],d=void 0===o||l(o,r,e);if(!0!==d)throw new s("option "+r+" must be "+d,s.ERR_BAD_OPTION_VALUE)}else if(!0!==a)throw new s("Unknown option "+r,s.ERR_BAD_OPTION)}},validators:n}},516:(e,t,a)=>{"use strict";var i,s=a(12),n=Object.prototype.toString,r=(i=Object.create(null),function(e){var t=n.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function l(e){return e=e.toLowerCase(),function(t){return r(t)===e}}function o(e){return Array.isArray(e)}function d(e){return void 0===e}var c=l("ArrayBuffer");function p(e){return null!==e&&"object"==typeof e}function m(e){if("object"!==r(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var u=l("Date"),h=l("File"),g=l("Blob"),w=l("FileList");function _(e){return"[object Function]"===n.call(e)}var f=l("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 b,x=(b="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});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:m,isUndefined:d,isDate:u,isFile:h,isBlob:g,isFunction:_,isStream:function(e){return p(e)&&_(e.pipe)},isURLSearchParams:f,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){m(t[i])&&m(a)?t[i]=e(t[i],a):m(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,r={};t=t||{};do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)r[n=i[s]]||(t[n]=e[n],r[n]=!0);e=Object.getPrototypeOf(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},kindOf:r,kindOfTest:l,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:x,isFileList:w}},51:function(e,t,a){!function(e,t,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=i(t),n=i(a);function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,i=Array(t);a<t;a++)i[a]=e[a];return i}function l(e,t,a){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var a=e[Symbol.toPrimitive];if(void 0!==a){var i=a.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,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){l(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){if(null==e)return{};var a,i,s=function(e,t){if(null==e)return{};var a={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;a[i]=e[i]}return a}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)a=n[i],t.includes(a)||{}.propertyIsEnumerable.call(e,a)&&(s[a]=e[a])}return s}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i,s,n,r,l=[],o=!0,d=!1;try{if(n=(a=a.call(e)).next,0===t){if(Object(a)!==a)return;o=!1}else for(;!(o=(i=n.call(a)).done)&&(l.push(i.value),l.length!==t);o=!0);}catch(e){d=!0,s=e}finally{try{if(!o&&null!=a.return&&(r=a.return(),Object(r)!==r))return}finally{if(d)throw s}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var a={}.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var m=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],u=function(e,t){var i=e.animationData,r=e.loop,l=e.autoplay,o=e.initialSegment,u=e.onComplete,h=e.onLoopComplete,g=e.onEnterFrame,w=e.onSegmentStart,_=e.onConfigReady,f=e.onDataReady,k=e.onDataFailed,b=e.onLoadedImages,x=e.onDOMLoaded,v=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var y=c(e,m),j=p(a.useState(!1),2),N=j[0],$=j[1],C=a.useRef(),S=a.useRef(null);return a.useEffect((function(){var t=function(){var t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(S.current){null===(t=C.current)||void 0===t||t.destroy();var i=d(d(d({},e),a),{},{container:S.current});return C.current=s.default.loadAnimation(i),$(!!C.current),function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0}}}();return function(){return null==t?void 0:t()}}),[i,r]),a.useEffect((function(){C.current&&(C.current.autoplay=!!l)}),[l]),a.useEffect((function(){C.current&&(o?Array.isArray(o)&&o.length&&((C.current.currentRawFrame<o[0]||C.current.currentRawFrame>o[1])&&(C.current.currentRawFrame=o[0]),C.current.setSegment(o[0],o[1])):C.current.resetSegments(!0))}),[o]),a.useEffect((function(){var e=[{name:"complete",handler:u},{name:"loopComplete",handler:h},{name:"enterFrame",handler:g},{name:"segmentStart",handler:w},{name:"config_ready",handler:_},{name:"data_ready",handler:f},{name:"data_failed",handler:k},{name:"loaded_images",handler:b},{name:"DOMLoaded",handler:x},{name:"destroy",handler:v}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=C.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=C.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[u,h,g,w,_,f,k,b,x,v]),{View:n.default.createElement("div",d({style:t,ref:S},y)),play:function(){var e;null===(e=C.current)||void 0===e||e.play()},stop:function(){var e;null===(e=C.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=C.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=C.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var a;null===(a=C.current)||void 0===a||a.goToAndStop(e,t)},goToAndPlay:function(e,t){var a;null===(a=C.current)||void 0===a||a.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=C.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var a;null===(a=C.current)||void 0===a||a.playSegments(e,t)},setSubframe:function(e){var t;null===(t=C.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=C.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=C.current)||void 0===e||e.destroy(),C.current=void 0},animationContainerRef:S,animationLoaded:N,animationItem:C.current}};var h=function(e){var t=e.wrapperRef,i=e.animationItem,s=e.mode,n=e.actions;a.useEffect((function(){var e,a,r,l,o,d=t.current;if(d&&i&&n.length){i.stop();switch(s){case"scroll":return l=null,o=function(){var e,t,a,s=(t=(e=d.getBoundingClientRect()).top,a=e.height,(window.innerHeight-t)/(window.innerHeight+a)),r=n.find((function(e){var t=e.visibility;return t&&s>=t[0]&&s<=t[1]}));if(r){if("seek"===r.type&&r.visibility&&2===r.frames.length){var o=r.frames[0]+Math.ceil((s-r.visibility[0])/(r.visibility[1]-r.visibility[0])*r.frames[1]);i.goToAndStop(o-i.firstFrame-1,!0)}"loop"===r.type&&(null===l||l!==r.frames||i.isPaused)&&(i.playSegments(r.frames,!0),l=r.frames),"play"===r.type&&i.isPaused&&(i.resetSegments(!0),i.play()),"stop"===r.type&&i.goToAndStop(r.frames[0]-i.firstFrame-1,!0)}},document.addEventListener("scroll",o),function(){document.removeEventListener("scroll",o)};case"cursor":return e=function(_x,e){var t,a,s,r,l=_x,o=e;if(-1!==l&&-1!==o){var c=(t=l,a=o,r=(s=d.getBoundingClientRect()).top,{x:(t-s.left)/s.width,y:(a-r)/s.height});l=c.x,o=c.y}var p=n.find((function(e){var t=e.position;return t&&Array.isArray(t.x)&&Array.isArray(t.y)?l>=t.x[0]&&l<=t.x[1]&&o>=t.y[0]&&o<=t.y[1]:!(!t||Number.isNaN(t.x)||Number.isNaN(t.y))&&l===t.x&&o===t.y}));if(p){if("seek"===p.type&&p.position&&Array.isArray(p.position.x)&&Array.isArray(p.position.y)&&2===p.frames.length){var m=(l-p.position.x[0])/(p.position.x[1]-p.position.x[0]),u=(o-p.position.y[0])/(p.position.y[1]-p.position.y[0]);i.playSegments(p.frames,!0),i.goToAndStop(Math.ceil((m+u)/2*(p.frames[1]-p.frames[0])),!0)}"loop"===p.type&&i.playSegments(p.frames,!0),"play"===p.type&&(i.isPaused&&i.resetSegments(!1),i.playSegments(p.frames)),"stop"===p.type&&i.goToAndStop(p.frames[0],!0)}},a=function(t){e(t.clientX,t.clientY)},r=function(){e(-1,-1)},d.addEventListener("mousemove",a),d.addEventListener("mouseout",r),function(){d.removeEventListener("mousemove",a),d.removeEventListener("mouseout",r)}}}}),[s,i])},g=function(e){var t=e.actions,a=e.mode,i=e.lottieObj,s=i.animationItem,n=i.View,r=i.animationContainerRef;return h({actions:t,animationItem:s,mode:a,wrapperRef:r}),n},w=["style","interactivity"];Object.defineProperty(e,"LottiePlayer",{enumerable:!0,get:function(){return s.default}}),e.default=function(e){var t,i,s,n=e.style,r=e.interactivity,l=c(e,w),o=u(l,n),d=o.View,p=o.play,m=o.stop,h=o.pause,_=o.setSpeed,f=o.goToAndStop,k=o.goToAndPlay,b=o.setDirection,x=o.playSegments,v=o.setSubframe,y=o.getDuration,j=o.destroy,N=o.animationContainerRef,$=o.animationLoaded,C=o.animationItem;return a.useEffect((function(){e.lottieRef&&(e.lottieRef.current={play:p,stop:m,pause:h,setSpeed:_,goToAndPlay:k,goToAndStop:f,setDirection:b,playSegments:x,setSubframe:v,getDuration:y,destroy:j,animationContainerRef:N,animationLoaded:$,animationItem:C})}),[null===(t=e.lottieRef)||void 0===t?void 0:t.current]),g({lottieObj:{View:d,play:p,stop:m,pause:h,setSpeed:_,goToAndStop:f,goToAndPlay:k,setDirection:b,playSegments:x,setSubframe:v,getDuration:y,destroy:j,animationContainerRef:N,animationLoaded:$,animationItem:C},actions:null!==(i=null==r?void 0:r.actions)&&void 0!==i?i:[],mode:null!==(s=null==r?void 0:r.mode)&&void 0!==s?s:"scroll"})},e.useLottie=u,e.useLottieInteractivity=g,Object.defineProperty(e,"__esModule",{value:!0})}(t,a(891),a(609))},891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof document&&"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var a,i,s=e.length;for(a=0;a<s;a+=1)for(var n in i=e[a].prototype)Object.prototype.hasOwnProperty.call(i,n)&&(t.prototype[n]=i[n])}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=function(){function e(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,a=this.audios.length;for(t=0;t<a;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var a,i=0,s=[];switch(e){case"int16":case"uint8c":a=1;break;default:a=1.1}for(i=0;i<t;i+=1)s.push(a);return s}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,a){return"float32"===t?new Float32Array(a):"int16"===t?new Int16Array(a):"uint8c"===t?new Uint8ClampedArray(a):e(t,a)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="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},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var e,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],a=t.length;for(e=0;e<a;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,a=createSizedArray(e.length),i=e.length;for(t=0;t<i;t+=1)a[t]=Math.abs(e[t]);return a}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(e){_shouldRoundValues=!!e}function bmRnd(e){return _shouldRoundValues?Math.round(e):e}function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,a,i){this.type=e,this.currentTime=t,this.totalTime=a,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,a,i){this.type=e,this.currentLoop=a,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,a){this.type=e,this.firstFrame=t,this.totalFrames=a}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}function BMAnimationConfigErrorEvent(e,t){this.type=e,this.nativeError=t}var createElementID=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,a){var i,s,n,r,l,o,d,c;switch(o=a*(1-t),d=a*(1-(l=6*e-(r=Math.floor(6*e)))*t),c=a*(1-(1-l)*t),r%6){case 0:i=a,s=c,n=o;break;case 1:i=d,s=a,n=o;break;case 2:i=o,s=a,n=c;break;case 3:i=o,s=d,n=a;break;case 4:i=c,s=o,n=a;break;case 5:i=a,s=o,n=d}return[i,s,n]}function RGBtoHSV(e,t,a){var i,s=Math.max(e,t,a),n=Math.min(e,t,a),r=s-n,l=0===s?0:r/s,o=s/255;switch(s){case n:i=0;break;case e:i=t-a+r*(t<a?6:0),i/=6*r;break;case t:i=a-e+2*r,i/=6*r;break;case a:i=e-t+4*r,i/=6*r}return[i,l,o]}function addSaturationToRGB(e,t){var a=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return a[1]+=t,a[1]>1?a[1]=1:a[1]<=0&&(a[1]=0),HSVtoRGB(a[0],a[1],a[2])}function addBrightnessToRGB(e,t){var a=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return a[2]+=t,a[2]>1?a[2]=1:a[2]<0&&(a[2]=0),HSVtoRGB(a[0],a[1],a[2])}function addHueToRGB(e,t){var a=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return a[0]+=t/360,a[0]>1?a[0]-=1:a[0]<0&&(a[0]+=1),HSVtoRGB(a[0],a[1],a[2])}var rgbToHex=function(){var e,t,a=[];for(e=0;e<256;e+=1)t=e.toString(16),a[e]=1===t.length?"0"+t:t;return function(e,t,i){return e<0&&(e=0),t<0&&(t=0),i<0&&(i=0),"#"+a[e]+a[t]+a[i]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(e){expressionsInterfaces=e},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,a=1,i=[],s={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){s.onmessage({data:e})}};function r(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var a=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),i=URL.createObjectURL(a);return new Worker(i)}return e=t,s}((function(e){if(n.dataManager||(n.dataManager=function(){function e(s,n){var r,l,o,d,c,p,m,u=s.length;for(l=0;l<u;l+=1)if("ks"in(r=s[l])&&!r.completed){if(r.completed=!0,r.hasMask){var h=r.masksProperties;for(d=h.length,o=0;o<d;o+=1)if(h[o].pt.k.i)i(h[o].pt.k);else for(p=h[o].pt.k.length,c=0;c<p;c+=1)h[o].pt.k[c].s&&i(h[o].pt.k[c].s[0]),h[o].pt.k[c].e&&i(h[o].pt.k[c].e[0])}0===r.ty?(r.layers=t(r.refId,n),e(r.layers,n)):4===r.ty?a(r.shapes):5===r.ty&&(0===(m=r).t.a.length&&m.t.p)}}function t(e,t){var a=function(e,t){for(var a=0,i=t.length;a<i;){if(t[a].id===e)return t[a];a+=1}return null}(e,t);return a?a.layers.__used?JSON.parse(JSON.stringify(a.layers)):(a.layers.__used=!0,a.layers):null}function a(e){var t,s,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)i(e[t].ks.k);else for(n=e[t].ks.k.length,s=0;s<n;s+=1)e[t].ks.k[s].s&&i(e[t].ks.k[s].s[0]),e[t].ks.k[s].e&&i(e[t].ks.k[s].e[0]);else"gr"===e[t].ty&&a(e[t].it)}function i(e){var t,a=e.i.length;for(t=0;t<a;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function s(e,t){var a=t?t.split("."):[100,100,100];return e[0]>a[0]||!(a[0]>e[0])&&(e[1]>a[1]||!(a[1]>e[1])&&(e[2]>a[2]||!(a[2]>e[2])&&null))}var n,r=function(){var e=[4,4,14];function t(e){var t,a,i,s=e.length;for(t=0;t<s;t+=1)5===e[t].ty&&(void 0,i=(a=e[t]).t.d,a.t.d={k:[{s:i,t:0}]})}return function(a){if(s(e,a.v)&&(t(a.layers),a.assets)){var i,n=a.assets.length;for(i=0;i<n;i+=1)a.assets[i].layers&&t(a.assets[i].layers)}}}(),l=(n=[4,7,99],function(e){if(e.chars&&!s(n,e.v)){var t,i=e.chars.length;for(t=0;t<i;t+=1){var r=e.chars[t];r.data&&r.data.shapes&&(a(r.data.shapes),r.data.ip=0,r.data.op=99999,r.data.st=0,r.data.sr=1,r.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(r.data.shapes.push({ty:"no"}),r.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),o=function(){var e=[5,7,15];function t(e){var t,a,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(a=void 0,"number"==typeof(a=e[t].t.p).a&&(a.a={a:0,k:a.a}),"number"==typeof a.p&&(a.p={a:0,k:a.p}),"number"==typeof a.r&&(a.r={a:0,k:a.r}))}return function(a){if(s(e,a.v)&&(t(a.layers),a.assets)){var i,n=a.assets.length;for(i=0;i<n;i+=1)a.assets[i].layers&&t(a.assets[i].layers)}}}(),d=function(){var e=[4,1,9];function t(e){var a,i,s,n=e.length;for(a=0;a<n;a+=1)if("gr"===e[a].ty)t(e[a].it);else if("fl"===e[a].ty||"st"===e[a].ty)if(e[a].c.k&&e[a].c.k[0].i)for(s=e[a].c.k.length,i=0;i<s;i+=1)e[a].c.k[i].s&&(e[a].c.k[i].s[0]/=255,e[a].c.k[i].s[1]/=255,e[a].c.k[i].s[2]/=255,e[a].c.k[i].s[3]/=255),e[a].c.k[i].e&&(e[a].c.k[i].e[0]/=255,e[a].c.k[i].e[1]/=255,e[a].c.k[i].e[2]/=255,e[a].c.k[i].e[3]/=255);else e[a].c.k[0]/=255,e[a].c.k[1]/=255,e[a].c.k[2]/=255,e[a].c.k[3]/=255}function a(e){var a,i=e.length;for(a=0;a<i;a+=1)4===e[a].ty&&t(e[a].shapes)}return function(t){if(s(e,t.v)&&(a(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&a(t.assets[i].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var a,i,s;for(a=e.length-1;a>=0;a-=1)if("sh"===e[a].ty)if(e[a].ks.k.i)e[a].ks.k.c=e[a].closed;else for(s=e[a].ks.k.length,i=0;i<s;i+=1)e[a].ks.k[i].s&&(e[a].ks.k[i].s[0].c=e[a].closed),e[a].ks.k[i].e&&(e[a].ks.k[i].e[0].c=e[a].closed);else"gr"===e[a].ty&&t(e[a].it)}function a(e){var a,i,s,n,r,l,o=e.length;for(i=0;i<o;i+=1){if((a=e[i]).hasMask){var d=a.masksProperties;for(n=d.length,s=0;s<n;s+=1)if(d[s].pt.k.i)d[s].pt.k.c=d[s].cl;else for(l=d[s].pt.k.length,r=0;r<l;r+=1)d[s].pt.k[r].s&&(d[s].pt.k[r].s[0].c=d[s].cl),d[s].pt.k[r].e&&(d[s].pt.k[r].e[0].c=d[s].cl)}4===a.ty&&t(a.shapes)}}return function(t){if(s(e,t.v)&&(a(t.layers),t.assets)){var i,n=t.assets.length;for(i=0;i<n;i+=1)t.assets[i].layers&&a(t.assets[i].layers)}}}();var p={completeData:function(a){a.__complete||(d(a),r(a),l(a),o(a),c(a),e(a.layers,a.assets),function(a,i){if(a){var s=0,n=a.length;for(s=0;s<n;s+=1)1===a[s].t&&(a[s].data.layers=t(a[s].data.refId,i),e(a[s].data.layers,i))}}(a.chars,a.assets),a.__complete=!0)}};return p.checkColors=d,p.checkChars=l,p.checkPathProperties=o,p.checkShapes=c,p.completeLayers=e,p}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,a,i,s){var n,r=new XMLHttpRequest;try{r.responseType="json"}catch(e){}r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status)n=e(r),i(n);else try{n=e(r),i(n)}catch(e){s&&s(e)}};try{r.open(["G","E","T"].join(""),t,!0)}catch(e){r.open(["G","E","T"].join(""),a+"/"+t,!0)}r.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,a=t.id,s=i[a];i[a]=null,"success"===t.status?s.onComplete(t.payload):s.onError&&s.onError()})}function l(e,t){var s="processId_"+(a+=1);return i[s]={onComplete:e,onError:t},s}return{loadAnimation:function(e,a,i){r();var s=l(a,i);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:s})},loadData:function(e,a,i){r();var s=l(a,i);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:s})},completeAnimation:function(e,a,i){r();var s=l(a,i);t.postMessage({type:"complete",animation:e,id:s})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function a(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(e,t,a){var i="";if(e.e)i=e.p;else if(t){var s=e.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),i=t+s}else i=a,i+=e.u?e.u:"",i+=e.p;return i}function s(e){var t=0,a=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(a)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},a=i(e,this.assetsPath,this.path);return dataManager.loadData(a,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function r(){this._imageLoaded=t.bind(this),this._footageLoaded=a.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return r.prototype={loadAssets:function(e,t){var a;this.imagesLoadedCb=t;var i=e.length;for(a=0;a<i;a+=1)e[a].layers||(e[a].t&&"seq"!==e[a].t?3===e[a].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[a]))):(this.totalImages+=1,this.images.push(this._createImageData(e[a]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,a=this.images.length;t<a;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var a=i(t,this.assetsPath,this.path),s=createTag("img");s.crossOrigin="anonymous",s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),s.src=a;var n={img:s,assetData:t};return n},createImageData:function(t){var a=i(t,this.assetsPath,this.path),s=createNS("image");isSafari?this.testImageLoaded(s):s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),s.setAttributeNS("http://www.w3.org/1999/xlink","href",a),this._elementHelper.append?this._elementHelper.append(s):this._elementHelper.appendChild(s);var n={img:s,assetData:t};return n},imageLoaded:t,footageLoaded:a,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},r}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var a=this._cbs[e],i=0;i<a.length;i+=1)a[i](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var a=0,i=this._cbs[e].length;a<i;)this._cbs[e][a]===t&&(this._cbs[e].splice(a,1),a-=1,i-=1),a+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,a=e.split("\r\n"),i={},s=0,n=0;n<a.length;n+=1)2===(t=a[n].split(":")).length&&(i[t[0]]=t[1].trim(),s+=1);if(0===s)throw new Error;return i}return function(t){for(var a=[],i=0;i<t.length;i+=1){var s=t[i],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[i].cm)}catch(a){try{n.payload=e(t[i].cm)}catch(e){n.payload={name:t[i].cm}}}a.push(n)}return a}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,a=this.compositions.length;t<a;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){return _typeof$4="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},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var a=getRenderer(t);this.renderer=new a(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,""===e.loop||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var a={wrapper:e,animationData:t},i=e.attributes;a.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",a.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===s?a.loop=!1:"true"===s?a.loop=!0:""!==s&&(a.loop=parseInt(s,10));var n=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;a.autoplay="false"!==n,a.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(a.prerender=!1),a.path?this.setParams(a):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,a,i=this.animationData.layers,s=i.length,n=e.layers,r=n.length;for(a=0;a<r;a+=1)for(t=0;t<s;){if(i[t].id===n[a].id){i[t]=n[a];break}t+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(s=e.assets.length,t=0;t<s;t+=1)this.animationData.assets.push(e.assets[t]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var t=e.shift();this.timeCompleted=t.time*this.frameRate;var a=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(a,this.includeLayers.bind(this),function(){this.trigger("data_failed")}.bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout(function(){this.trigger("DOMLoaded")}.bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var a="number"==typeof e?e:void 0,i="number"==typeof t?t:void 0;this.renderer.updateContainerSize(a,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,a=0;a<this.markers.length;a+=1)if((t=this.markers[a]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,a){if(!a||this.name===a){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,a){if(!a||this.name===a){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,a);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,a=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(a=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(a=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),a&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var a=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?a=e:this.currentRawFrame+this.firstFrame>t&&(a=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==a&&this.goToAndStop(a,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var a,i=e.length;for(a=0;a<i;a+=1)this.segments.push(e[a])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),e),!0)},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var a=e.p;-1!==a.indexOf("images/")&&(a=a.split("/")[1]),t=this.assetsPath+a}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,a=this.assets.length;t<a;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,a){try{this.renderer.getElementByPath(e).updateDocumentData(t,a)}catch(e){}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=function(){var e={},t=[],a=0,i=0,s=0,n=!0,r=!1;function l(e){for(var a=0,s=e.target;a<i;)t[a].animation===s&&(t.splice(a,1),a-=1,i-=1,s.isPaused||c()),a+=1}function o(e,a){if(!e)return null;for(var s=0;s<i;){if(t[s].elem===e&&null!==t[s].elem)return t[s].animation;s+=1}var n=new AnimationItem;return p(n,e),n.setData(e,a),n}function d(){s+=1,h()}function c(){s-=1}function p(e,a){e.addEventListener("destroy",l),e.addEventListener("_active",d),e.addEventListener("_idle",c),t.push({elem:a,animation:e}),i+=1}function m(e){var l,o=e-a;for(l=0;l<i;l+=1)t[l].animation.advanceTime(o);a=e,s&&!r?window.requestAnimationFrame(m):n=!0}function u(e){a=e,window.requestAnimationFrame(m)}function h(){!r&&s&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=o,e.loadAnimation=function(e){var t=new AnimationItem;return p(t,null),t.setParams(e),t},e.setSpeed=function(e,a){var s;for(s=0;s<i;s+=1)t[s].animation.setSpeed(e,a)},e.setDirection=function(e,a){var s;for(s=0;s<i;s+=1)t[s].animation.setDirection(e,a)},e.play=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.play(e)},e.pause=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.pause(e)},e.stop=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.stop(e)},e.togglePause=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.togglePause(e)},e.searchAnimations=function(e,t,a){var i,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=s.length;for(i=0;i<n;i+=1)a&&s[i].setAttribute("data-bm-type",a),o(s[i],e);if(t&&0===n){a||(a="svg");var r=document.getElementsByTagName("body")[0];r.innerText="";var l=createTag("div");l.style.width="100%",l.style.height="100%",l.setAttribute("data-bm-type",a),r.appendChild(l),o(l,e)}},e.resize=function(){var e;for(e=0;e<i;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,a,s){var n;for(n=0;n<i;n+=1)t[n].animation.goToAndStop(e,a,s)},e.destroy=function(e){var a;for(a=i-1;a>=0;a-=1)t[a].animation.destroy(e)},e.freeze=function(){r=!0},e.unfreeze=function(){r=!1,h()},e.setVolume=function(e,a){var s;for(s=0;s<i;s+=1)t[s].animation.setVolume(e,a)},e.mute=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.mute(e)},e.unmute=function(e){var a;for(a=0;a<i;a+=1)t[a].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,a=t.length,i=[];for(e=0;e<a;e+=1)i.push(t[e].animation);return i},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,a,i,s,n){var r=n||("bez_"+e+"_"+a+"_"+i+"_"+s).replace(/\./g,"p");if(t[r])return t[r];var l=new c([e,a,i,s]);return t[r]=l,l}},t={},a=11,i=1/(a-1),s="function"==typeof Float32Array;function n(e,t){return 1-3*t+3*e}function r(e,t){return 3*t-6*e}function l(e){return 3*e}function o(e,t,a){return((n(t,a)*e+r(t,a))*e+l(t))*e}function d(e,t,a){return 3*n(t,a)*e*e+2*r(t,a)*e+l(t)}function c(e){this._p=e,this._mSampleValues=s?new Float32Array(a):new Array(a),this._precomputed=!1,this.get=this.get.bind(this)}return c.prototype={get:function(e){var t=this._p[0],a=this._p[1],i=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),t===a&&i===s?e:0===e?0:1===e?1:o(this._getTForX(e),a,s)},_precompute:function(){var e=this._p[0],t=this._p[1],a=this._p[2],i=this._p[3];this._precomputed=!0,e===t&&a===i||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],s=0;s<a;++s)this._mSampleValues[s]=o(s*i,e,t)},_getTForX:function(e){for(var t=this._p[0],s=this._p[2],n=this._mSampleValues,r=0,l=1,c=a-1;l!==c&&n[l]<=e;++l)r+=i;var p=r+(e-n[--l])/(n[l+1]-n[l])*i,m=d(p,t,s);return m>=.001?function(e,t,a,i){for(var s=0;s<4;++s){var n=d(t,a,i);if(0===n)return t;t-=(o(t,a,i)-e)/n}return t}(e,p,t,s):0===m?p:function(e,t,a,i,s){var n,r,l=0;do{(n=o(r=t+(a-t)/2,i,s)-e)>0?a=r:t=r}while(Math.abs(n)>1e-7&&++l<10);return r}(e,r,r+i,t,s)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,a){var i=0,s=e,n=createSizedArray(s);return{newElement:function(){return i?n[i-=1]:t()},release:function(e){i===s&&(n=pooling.double(n),s*=2),a&&a(e),n[i]=e,i+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,a=e.lengths.length;for(t=0;t<a;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,a,i,s,n){var r=e*i+t*s+a*n-s*i-n*e-a*t;return r>-.001&&r<.001}var a=function(e,t,a,i){var s,n,r,l,o,d,c=getDefaultCurveSegments(),p=0,m=[],u=[],h=bezierLengthPool.newElement();for(r=a.length,s=0;s<c;s+=1){for(o=s/(c-1),d=0,n=0;n<r;n+=1)l=bmPow(1-o,3)*e[n]+3*bmPow(1-o,2)*o*a[n]+3*(1-o)*bmPow(o,2)*i[n]+bmPow(o,3)*t[n],m[n]=l,null!==u[n]&&(d+=bmPow(m[n]-u[n],2)),u[n]=m[n];d&&(p+=d=bmSqrt(d)),h.percents[s]=o,h.lengths[s]=p}return h.addedLength=p,h};function i(e){this.segmentLength=0,this.points=new Array(e)}function s(e,t){this.partialLength=e,this.point=t}var n,r=(n={},function(e,a,r,l){var o=(e[0]+"_"+e[1]+"_"+a[0]+"_"+a[1]+"_"+r[0]+"_"+r[1]+"_"+l[0]+"_"+l[1]).replace(/\./g,"p");if(!n[o]){var d,c,p,m,u,h,g,w=getDefaultCurveSegments(),_=0,f=null;2===e.length&&(e[0]!==a[0]||e[1]!==a[1])&&t(e[0],e[1],a[0],a[1],e[0]+r[0],e[1]+r[1])&&t(e[0],e[1],a[0],a[1],a[0]+l[0],a[1]+l[1])&&(w=2);var k=new i(w);for(p=r.length,d=0;d<w;d+=1){for(g=createSizedArray(p),u=d/(w-1),h=0,c=0;c<p;c+=1)m=bmPow(1-u,3)*e[c]+3*bmPow(1-u,2)*u*(e[c]+r[c])+3*(1-u)*bmPow(u,2)*(a[c]+l[c])+bmPow(u,3)*a[c],g[c]=m,null!==f&&(h+=bmPow(g[c]-f[c],2));_+=h=bmSqrt(h),k.points[d]=new s(h,g),f=g}k.segmentLength=_,n[o]=k}return n[o]});function l(e,t){var a=t.percents,i=t.lengths,s=a.length,n=bmFloor((s-1)*e),r=e*t.addedLength,l=0;if(n===s-1||0===n||r===i[n])return a[n];for(var o=i[n]>r?-1:1,d=!0;d;)if(i[n]<=r&&i[n+1]>r?(l=(r-i[n])/(i[n+1]-i[n]),d=!1):n+=o,n<0||n>=s-1){if(n===s-1)return a[n];d=!1}return a[n]+(a[n+1]-a[n])*l}var o=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,i=segmentsLengthPool.newElement(),s=e.c,n=e.v,r=e.o,l=e.i,o=e._length,d=i.lengths,c=0;for(t=0;t<o-1;t+=1)d[t]=a(n[t],n[t+1],r[t],l[t+1]),c+=d[t].addedLength;return s&&o&&(d[t]=a(n[t],n[0],r[t],l[0]),c+=d[t].addedLength),i.totalLength=c,i},getNewSegment:function(t,a,i,s,n,r,d){n<0?n=0:n>1&&(n=1);var c,p=l(n,d),m=l(r=r>1?1:r,d),u=t.length,h=1-p,g=1-m,w=h*h*h,_=p*h*h*3,f=p*p*h*3,k=p*p*p,b=h*h*g,x=p*h*g+h*p*g+h*h*m,v=p*p*g+h*p*m+p*h*m,y=p*p*m,j=h*g*g,N=p*g*g+h*m*g+h*g*m,$=p*m*g+h*m*m+p*g*m,C=p*m*m,S=g*g*g,D=m*g*g+g*m*g+g*g*m,E=m*m*g+g*m*m+m*g*m,P=m*m*m;for(c=0;c<u;c+=1)o[4*c]=e.round(1e3*(w*t[c]+_*i[c]+f*s[c]+k*a[c]))/1e3,o[4*c+1]=e.round(1e3*(b*t[c]+x*i[c]+v*s[c]+y*a[c]))/1e3,o[4*c+2]=e.round(1e3*(j*t[c]+N*i[c]+$*s[c]+C*a[c]))/1e3,o[4*c+3]=e.round(1e3*(S*t[c]+D*i[c]+E*s[c]+P*a[c]))/1e3;return o},getPointInSegment:function(t,a,i,s,n,r){var o=l(n,r),d=1-o;return[e.round(1e3*(d*d*d*t[0]+(o*d*d+d*o*d+d*d*o)*i[0]+(o*o*d+d*o*o+o*d*o)*s[0]+o*o*o*a[0]))/1e3,e.round(1e3*(d*d*d*t[1]+(o*d*d+d*o*d+d*d*o)*i[1]+(o*o*d+d*o*o+o*d*o)*s[1]+o*o*o*a[1]))/1e3]},buildBezierData:r,pointOnLine2D:t,pointOnLine3D:function(a,i,s,n,r,l,o,d,c){if(0===s&&0===l&&0===c)return t(a,i,n,r,o,d);var p,m=e.sqrt(e.pow(n-a,2)+e.pow(r-i,2)+e.pow(l-s,2)),u=e.sqrt(e.pow(o-a,2)+e.pow(d-i,2)+e.pow(c-s,2)),h=e.sqrt(e.pow(o-n,2)+e.pow(d-r,2)+e.pow(c-l,2));return(p=m>u?m>h?m-u-h:h-u-m:h>u?h-u-m:u-m-h)>-1e-4&&p<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var a,i=this.offsetTime;"multidimensional"===this.propType&&(a=createTypedArray("float32",this.pv.length));for(var s,n,r,l,o,d,c,p,m,u=t.lastIndex,h=u,g=this.keyframes.length-1,w=!0;w;){if(s=this.keyframes[h],n=this.keyframes[h+1],h===g-1&&e>=n.t-i){s.h&&(s=n),u=0;break}if(n.t-i>e){u=h;break}h<g-1?h+=1:(u=0,w=!1)}r=this.keyframesMetadata[h]||{};var _,f=n.t-i,k=s.t-i;if(s.to){r.bezierData||(r.bezierData=bez.buildBezierData(s.s,n.s||s.e,s.to,s.ti));var b=r.bezierData;if(e>=f||e<k){var x=e>=f?b.points.length-1:0;for(o=b.points[x].point.length,l=0;l<o;l+=1)a[l]=b.points[x].point[l]}else{r.__fnct?m=r.__fnct:(m=BezierFactory.getBezierEasing(s.o.x,s.o.y,s.i.x,s.i.y,s.n).get,r.__fnct=m),d=m((e-k)/(f-k));var v,y=b.segmentLength*d,j=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===h?t._lastPoint:0,w=!0,c=b.points.length;w;){if(j+=b.points[p].partialLength,0===y||0===d||p===b.points.length-1){for(o=b.points[p].point.length,l=0;l<o;l+=1)a[l]=b.points[p].point[l];break}if(y>=j&&y<j+b.points[p+1].partialLength){for(v=(y-j)/b.points[p+1].partialLength,o=b.points[p].point.length,l=0;l<o;l+=1)a[l]=b.points[p].point[l]+(b.points[p+1].point[l]-b.points[p].point[l])*v;break}p<c-1?p+=1:w=!1}t._lastPoint=p,t._lastAddedLength=j-b.points[p].partialLength,t._lastKeyframeIndex=h}}else{var N,$,C,S,D;if(g=s.s.length,_=n.s||s.e,this.sh&&1!==s.h)e>=f?(a[0]=_[0],a[1]=_[1],a[2]=_[2]):e<=k?(a[0]=s.s[0],a[1]=s.s[1],a[2]=s.s[2]):quaternionToEuler(a,slerp(createQuaternion(s.s),createQuaternion(_),(e-k)/(f-k)));else for(h=0;h<g;h+=1)1!==s.h&&(e>=f?d=1:e<k?d=0:(s.o.x.constructor===Array?(r.__fnct||(r.__fnct=[]),r.__fnct[h]?m=r.__fnct[h]:(N=void 0===s.o.x[h]?s.o.x[0]:s.o.x[h],$=void 0===s.o.y[h]?s.o.y[0]:s.o.y[h],C=void 0===s.i.x[h]?s.i.x[0]:s.i.x[h],S=void 0===s.i.y[h]?s.i.y[0]:s.i.y[h],m=BezierFactory.getBezierEasing(N,$,C,S).get,r.__fnct[h]=m)):r.__fnct?m=r.__fnct:(N=s.o.x,$=s.o.y,C=s.i.x,S=s.i.y,m=BezierFactory.getBezierEasing(N,$,C,S).get,s.keyframeMetadata=m),d=m((e-k)/(f-k)))),_=n.s||s.e,D=1===s.h?s.s[h]:s.s[h]+(_[h]-s.s[h])*d,"multidimensional"===this.propType?a[h]=D:a=D}return t.lastIndex=u,a}function slerp(e,t,a){var i,s,n,r,l,o=[],d=e[0],c=e[1],p=e[2],m=e[3],u=t[0],h=t[1],g=t[2],w=t[3];return(s=d*u+c*h+p*g+m*w)<0&&(s=-s,u=-u,h=-h,g=-g,w=-w),1-s>1e-6?(i=Math.acos(s),n=Math.sin(i),r=Math.sin((1-a)*i)/n,l=Math.sin(a*i)/n):(r=1-a,l=a),o[0]=r*d+l*u,o[1]=r*c+l*h,o[2]=r*p+l*g,o[3]=r*m+l*w,o}function quaternionToEuler(e,t){var a=t[0],i=t[1],s=t[2],n=t[3],r=Math.atan2(2*i*n-2*a*s,1-2*i*i-2*s*s),l=Math.asin(2*a*i+2*s*n),o=Math.atan2(2*a*n-2*i*s,1-2*a*a-2*s*s);e[0]=r/degToRads,e[1]=l/degToRads,e[2]=o/degToRads}function createQuaternion(e){var t=e[0]*degToRads,a=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(a/2),r=Math.cos(i/2),l=Math.sin(t/2),o=Math.sin(a/2),d=Math.sin(i/2);return[l*o*r+s*n*d,l*n*r+s*o*d,s*o*r-l*n*d,s*n*r-l*o*d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=a&&e>=a||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if("unidimensional"===this.propType)t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)t=e[a]*this.mult,mathAbs(this.v[a]-t)>1e-5&&(this.v[a]=t,this._mdf=!0),a+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,a=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)a=this.effectsSequence[e](a);this.setVValue(a),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,a,i){this.propType="unidimensional",this.mult=a||1,this.data=t,this.v=a?t.k*a:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,a,i){var s;this.propType="multidimensional",this.mult=a||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,a,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=a||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,a,i){var s;this.propType="multidimensional";var n,r,l,o,d=t.k.length;for(s=0;s<d-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(n=t.k[s].s,r=t.k[s+1].s,l=t.k[s].to,o=t.k[s].ti,(2===n.length&&(n[0]!==r[0]||n[1]!==r[1])&&bez.pointOnLine2D(n[0],n[1],r[0],r[1],n[0]+l[0],n[1]+l[1])&&bez.pointOnLine2D(n[0],n[1],r[0],r[1],r[0]+o[0],r[1]+o[1])||3===n.length&&(n[0]!==r[0]||n[1]!==r[1]||n[2]!==r[2])&&bez.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],n[0]+l[0],n[1]+l[1],n[2]+l[2])&&bez.pointOnLine3D(n[0],n[1],n[2],r[0],r[1],r[2],r[0]+o[0],r[1]+o[1],r[2]+o[2]))&&(t.k[s].to=null,t.k[s].ti=null),n[0]===r[0]&&n[1]===r[1]&&0===l[0]&&0===l[1]&&0===o[0]&&0===o[1]&&(2===n.length||n[2]===r[2]&&0===l[2]&&0===o[2])&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=a||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var c=t.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),s=0;s<c;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}var PropertyFactory={getProp:function(e,t,a,i,s){var n;if(t.sid&&(t=e.globalData.slotManager.getProp(t)),t.k.length)if("number"==typeof t.k[0])n=new MultiDimensionalProperty(e,t,i,s);else switch(a){case 0:n=new KeyframedValueProperty(e,t,i,s);break;case 1:n=new KeyframedMultidimensionalProperty(e,t,i,s)}else n=new ValueProperty(e,t,i,s);return n.effectsSequence.length&&s.addDynamicProperty(n),n}};function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var a=0;a<t;)this.v[a]=pointPool.newElement(),this.o[a]=pointPool.newElement(),this.i[a]=pointPool.newElement(),a+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,a,i,s){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),a){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[]}(!n[i]||n[i]&&!s)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,a,i,s,n,r,l){this.setXYAt(e,t,"v",r,l),this.setXYAt(a,i,"o",r,l),this.setXYAt(s,n,"i",r,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,a=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],a[0][0],a[0][1],0,!1),s=1);var n,r=this._length-1,l=this._length;for(n=s;n<l;n+=1)e.setTripleAt(t[r][0],t[r][1],i[r][0],i[r][1],a[r][0],a[r][1],n,!1),r-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,a=e._length;for(t=0;t<a;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,a=factory.newElement(),i=void 0===e._length?e.v.length:e._length;for(a.setLength(i),a.c=e.c,t=0;t<i;t+=1)a.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return a},factory),factory;function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,a=e._length;for(t=0;t<a;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,a){var i,s,n,r,l,o,d,c,p,m=a.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)i=u[0].s[0],n=!0,m=0;else if(e>=u[u.length-1].t-this.offsetTime)i=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var h,g,w,_=m,f=u.length-1,k=!0;k&&(h=u[_],!((g=u[_+1]).t-this.offsetTime>e));)_<f-1?_+=1:k=!1;if(w=this.keyframesMetadata[_]||{},m=_,!(n=1===h.h)){if(e>=g.t-this.offsetTime)c=1;else if(e<h.t-this.offsetTime)c=0;else{var b;w.__fnct?b=w.__fnct:(b=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y).get,w.__fnct=b),c=b((e-(h.t-this.offsetTime))/(g.t-this.offsetTime-(h.t-this.offsetTime)))}s=g.s?g.s[0]:h.e[0]}i=h.s[0]}for(o=t._length,d=i.i[0].length,a.lastIndex=m,r=0;r<o;r+=1)for(l=0;l<d;l+=1)p=n?i.i[r][l]:i.i[r][l]+(s.i[r][l]-i.i[r][l])*c,t.i[r][l]=p,p=n?i.o[r][l]:i.o[r][l]+(s.o[r][l]-i.o[r][l])*c,t.o[r][l]=p,p=n?i.v[r][l]:i.v[r][l]+(s.v[r][l]-i.v[r][l])*c,t.v[r][l]=p}function a(){var t=this.comp.renderedFrame-this.offsetTime,a=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return s!==e&&(s<a&&t<a||s>i&&t>i)||(this._caching.lastIndex=s<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function i(){this.paths=this.localShapeCollection}function s(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var a,i=e._length;for(a=0;a<i;a+=1)if(e.v[a][0]!==t.v[a][0]||e.v[a][1]!==t.v[a][1]||e.o[a][0]!==t.o[a][0]||e.o[a][1]!==t.o[a][1]||e.i[a][0]!==t.i[a][0]||e.i[a][1]!==t.i[a][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var a=this.effectsSequence.length;for(t=0;t<a;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function r(e,t,a){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var s=3===a?t.pt.k:t.ks.k;this.v=shapePool.clone(s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function l(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function o(t,s,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?s.pt.k:s.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var r=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,r),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[a.bind(this)]}r.prototype.interpolateShape=t,r.prototype.getValue=n,r.prototype.setVValue=s,r.prototype.addEffect=l,o.prototype.getValue=n,o.prototype.interpolateShape=t,o.prototype.setVValue=s,o.prototype.addEffect=l;var d=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],a=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,n=3!==this.d,r=this.v;r.v[0][0]=t,r.v[0][1]=a-s,r.v[1][0]=n?t+i:t-i,r.v[1][1]=a,r.v[2][0]=t,r.v[2][1]=a+s,r.v[3][0]=n?t-i:t+i,r.v[3][1]=a,r.i[0][0]=n?t-i*e:t+i*e,r.i[0][1]=a-s,r.i[1][0]=n?t+i:t-i,r.i[1][1]=a-s*e,r.i[2][0]=n?t+i*e:t-i*e,r.i[2][1]=a+s,r.i[3][0]=n?t-i:t+i,r.i[3][1]=a+s*e,r.o[0][0]=n?t+i*e:t-i*e,r.o[0][1]=a-s,r.o[1][0]=n?t+i:t-i,r.o[1][1]=a+s*e,r.o[2][0]=n?t-i*e:t+i*e,r.o[2][1]=a+s,r.o[3][0]=n?t-i:t+i,r.o[3][1]=a-s*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,a,i,s=2*Math.floor(this.pt.v),n=2*Math.PI/s,r=!0,l=this.or.v,o=this.ir.v,d=this.os.v,c=this.is.v,p=2*Math.PI*l/(2*s),m=2*Math.PI*o/(2*s),u=-Math.PI/2;u+=this.r.v;var h=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<s;e+=1){a=r?d:c,i=r?p:m;var g=(t=r?l:o)*Math.cos(u),w=t*Math.sin(u),_=0===g&&0===w?0:w/Math.sqrt(g*g+w*w),f=0===g&&0===w?0:-g/Math.sqrt(g*g+w*w);g+=+this.p.v[0],w+=+this.p.v[1],this.v.setTripleAt(g,w,g-_*i*a*h,w-f*i*a*h,g+_*i*a*h,w+f*i*a*h,e,!0),r=!r,u+=n*h}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),a=2*Math.PI/t,i=this.or.v,s=this.os.v,n=2*Math.PI*i/(4*t),r=.5*-Math.PI,l=3===this.data.d?-1:1;for(r+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var o=i*Math.cos(r),d=i*Math.sin(r),c=0===o&&0===d?0:d/Math.sqrt(o*o+d*d),p=0===o&&0===d?0:-o/Math.sqrt(o*o+d*d);o+=+this.p.v[0],d+=+this.p.v[1],this.v.setTripleAt(o,d,o-c*n*s*l,d-p*n*s*l,o+c*n*s*l,d+p*n*s*l,e,!0),r+=a*l}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,s=bmMin(a,i,this.r.v),n=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+a,t-i+s,e+a,t-i+s,e+a,t-i+n,0,!0),this.v.setTripleAt(e+a,t+i-s,e+a,t+i-n,e+a,t+i-s,1,!0),0!==s?(this.v.setTripleAt(e+a-s,t+i,e+a-s,t+i,e+a-n,t+i,2,!0),this.v.setTripleAt(e-a+s,t+i,e-a+n,t+i,e-a+s,t+i,3,!0),this.v.setTripleAt(e-a,t+i-s,e-a,t+i-s,e-a,t+i-n,4,!0),this.v.setTripleAt(e-a,t-i+s,e-a,t-i+n,e-a,t-i+s,5,!0),this.v.setTripleAt(e-a+s,t-i,e-a+s,t-i,e-a+n,t-i,6,!0),this.v.setTripleAt(e+a-s,t-i,e+a-n,t-i,e+a-s,t-i,7,!0)):(this.v.setTripleAt(e-a,t+i,e-a+n,t+i,e-a,t+i,2),this.v.setTripleAt(e-a,t-i,e-a,t-i+n,e-a,t-i,3))):(this.v.setTripleAt(e+a,t-i+s,e+a,t-i+n,e+a,t-i+s,0,!0),0!==s?(this.v.setTripleAt(e+a-s,t-i,e+a-s,t-i,e+a-n,t-i,1,!0),this.v.setTripleAt(e-a+s,t-i,e-a+n,t-i,e-a+s,t-i,2,!0),this.v.setTripleAt(e-a,t-i+s,e-a,t-i+s,e-a,t-i+n,3,!0),this.v.setTripleAt(e-a,t+i-s,e-a,t+i-n,e-a,t+i-s,4,!0),this.v.setTripleAt(e-a+s,t+i,e-a+s,t+i,e-a+n,t+i,5,!0),this.v.setTripleAt(e+a-s,t+i,e+a-n,t+i,e+a-s,t+i,6,!0),this.v.setTripleAt(e+a,t+i-s,e+a,t+i-s,e+a,t+i-n,7,!0)):(this.v.setTripleAt(e-a,t-i,e-a+n,t-i,e-a,t-i,1,!0),this.v.setTripleAt(e-a,t+i,e-a,t+i-n,e-a,t+i,2,!0),this.v.setTripleAt(e+a,t+i,e+a-n,t+i,e+a,t+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],e),e}();return{getShapeProp:function(e,t,a){var i;return 3===a||4===a?i=(3===a?t.pt:t.ks).k.length?new o(e,t,a):new r(e,t,a):5===a?i=new p(e,t):6===a?i=new d(e,t):7===a&&(i=new c(e,t)),i.k&&e.addDynamicProperty(i),i},getConstructorFunction:function(){return r},getKeyframedConstructorFunction:function(){return o}}}(),Matrix=function(){var e=Math.cos,t=Math.sin,a=Math.tan,i=Math.round;function s(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function n(a){if(0===a)return this;var i=e(a),s=t(a);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function r(a){if(0===a)return this;var i=e(a),s=t(a);return this._t(1,0,0,0,0,i,-s,0,0,s,i,0,0,0,0,1)}function l(a){if(0===a)return this;var i=e(a),s=t(a);return this._t(i,0,s,0,0,1,0,0,-s,0,i,0,0,0,0,1)}function o(a){if(0===a)return this;var i=e(a),s=t(a);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function d(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(a(e),a(t))}function p(i,s){var n=e(s),r=t(s);return this._t(n,r,0,0,-r,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,a(i),1,0,0,0,0,1,0,0,0,0,1)._t(n,-r,0,0,r,n,0,0,0,0,1,0,0,0,0,1)}function m(e,t,a){return a||0===a||(a=1),1===e&&1===t&&1===a?this:this._t(e,0,0,0,0,t,0,0,0,0,a,0,0,0,0,1)}function u(e,t,a,i,s,n,r,l,o,d,c,p,m,u,h,g){return this.props[0]=e,this.props[1]=t,this.props[2]=a,this.props[3]=i,this.props[4]=s,this.props[5]=n,this.props[6]=r,this.props[7]=l,this.props[8]=o,this.props[9]=d,this.props[10]=c,this.props[11]=p,this.props[12]=m,this.props[13]=u,this.props[14]=h,this.props[15]=g,this}function h(e,t,a){return a=a||0,0!==e||0!==t||0!==a?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,a,1):this}function g(e,t,a,i,s,n,r,l,o,d,c,p,m,u,h,g){var w=this.props;if(1===e&&0===t&&0===a&&0===i&&0===s&&1===n&&0===r&&0===l&&0===o&&0===d&&1===c&&0===p)return w[12]=w[12]*e+w[15]*m,w[13]=w[13]*n+w[15]*u,w[14]=w[14]*c+w[15]*h,w[15]*=g,this._identityCalculated=!1,this;var _=w[0],f=w[1],k=w[2],b=w[3],x=w[4],v=w[5],y=w[6],j=w[7],N=w[8],$=w[9],C=w[10],S=w[11],D=w[12],E=w[13],P=w[14],A=w[15];return w[0]=_*e+f*s+k*o+b*m,w[1]=_*t+f*n+k*d+b*u,w[2]=_*a+f*r+k*c+b*h,w[3]=_*i+f*l+k*p+b*g,w[4]=x*e+v*s+y*o+j*m,w[5]=x*t+v*n+y*d+j*u,w[6]=x*a+v*r+y*c+j*h,w[7]=x*i+v*l+y*p+j*g,w[8]=N*e+$*s+C*o+S*m,w[9]=N*t+$*n+C*d+S*u,w[10]=N*a+$*r+C*c+S*h,w[11]=N*i+$*l+C*p+S*g,w[12]=D*e+E*s+P*o+A*m,w[13]=D*t+E*n+P*d+A*u,w[14]=D*a+E*r+P*c+A*h,w[15]=D*i+E*l+P*p+A*g,this._identityCalculated=!1,this}function w(e){var t=e.props;return this.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function _(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function f(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function k(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,a){return{x:e*this.props[0]+t*this.props[4]+a*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+a*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+a*this.props[10]+this.props[14]}}function v(e,t,a){return e*this.props[0]+t*this.props[4]+a*this.props[8]+this.props[12]}function y(e,t,a){return e*this.props[1]+t*this.props[5]+a*this.props[9]+this.props[13]}function j(e,t,a){return e*this.props[2]+t*this.props[6]+a*this.props[10]+this.props[14]}function N(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,a=-this.props[1]/e,i=-this.props[4]/e,s=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,r=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,l=new Matrix;return l.props[0]=t,l.props[1]=a,l.props[4]=i,l.props[5]=s,l.props[12]=n,l.props[13]=r,l}function $(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function C(e){var t,a=e.length,i=[];for(t=0;t<a;t+=1)i[t]=$(e[t]);return i}function S(e,t,a){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=e[0],i[1]=e[1],i[2]=t[0],i[3]=t[1],i[4]=a[0],i[5]=a[1];else{var s=this.props[0],n=this.props[1],r=this.props[4],l=this.props[5],o=this.props[12],d=this.props[13];i[0]=e[0]*s+e[1]*r+o,i[1]=e[0]*n+e[1]*l+d,i[2]=t[0]*s+t[1]*r+o,i[3]=t[0]*n+t[1]*l+d,i[4]=a[0]*s+a[1]*r+o,i[5]=a[0]*n+a[1]*l+d}return i}function D(e,t,a){return this.isIdentity()?[e,t,a]:[e*this.props[0]+t*this.props[4]+a*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+a*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+a*this.props[10]+this.props[14]]}function E(e,t){if(this.isIdentity())return e+","+t;var a=this.props;return Math.round(100*(e*a[0]+t*a[4]+a[12]))/100+","+Math.round(100*(e*a[1]+t*a[5]+a[13]))/100}function P(){for(var e=0,t=this.props,a="matrix3d(";e<16;)a+=i(1e4*t[e])/1e4,a+=15===e?")":",",e+=1;return a}function A(e){return e<1e-6&&e>0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function T(){var e=this.props;return"matrix("+A(e[0])+","+A(e[1])+","+A(e[4])+","+A(e[5])+","+A(e[12])+","+A(e[13])+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=r,this.rotateY=l,this.rotateZ=o,this.skew=c,this.skewFromAxis=p,this.shear=d,this.scale=m,this.setTransform=u,this.translate=h,this.transform=g,this.multiply=w,this.applyToPoint=x,this.applyToX=v,this.applyToY=y,this.applyToZ=j,this.applyToPointArray=D,this.applyToTriplePoints=S,this.applyToPointStringified=E,this.toCSS=P,this.to2dCSS=T,this.clone=k,this.cloneFromProps=b,this.equals=f,this.inversePoints=C,this.inversePoint=$,this.getInverseMatrix=N,this._t=this.transform,this.isIdentity=_,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),a=0;a<t.length;a+=1){var i=t[a].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,a){t[e]||(t[e]=a)},e.getModifier=function(e,a,i){return new t[e](a,i)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,a,i,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var r,l,o=[],d=n.length;for(r=0;r<d;r+=1){var c,p;(l=n[r]).e*s<i||l.s*s>i+a||(c=l.s*s<=i?0:(l.s*s-i)/a,p=l.e*s>=i+a?1:(l.e*s-i)/a,o.push([c,p]))}return o.length||o.push([0,0]),o},TrimModifier.prototype.releasePathsData=function(e){var t,a=e.length;for(t=0;t<a;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,a,i,s;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(a=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var r=t;t=a,a=r}t=1e-4*Math.round(1e4*t),a=1e-4*Math.round(1e4*a),this.sValue=t,this.eValue=a}else t=this.sValue,a=this.eValue;var l,o,d,c,p,m=this.shapes.length,u=0;if(a===t)for(s=0;s<m;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(1===a&&0===t||0===a&&1===t){if(this._mdf)for(s=0;s<m;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var h,g,w=[];for(s=0;s<m;s+=1)if((h=this.shapes[s]).shape._mdf||this._mdf||e||2===this.m){if(o=(i=h.shape.paths)._length,p=0,!h.shape._mdf&&h.pathsData.length)p=h.totalShapeLength;else{for(d=this.releasePathsData(h.pathsData),l=0;l<o;l+=1)c=bez.getSegmentsLength(i.shapes[l]),d.push(c),p+=c.totalLength;h.totalShapeLength=p,h.pathsData=d}u+=p,h.shape._mdf=!0}else h.shape.paths=h.localShapeCollection;var _,f=t,k=a,b=0;for(s=m-1;s>=0;s-=1)if((h=this.shapes[s]).shape._mdf){for((g=h.localShapeCollection).releaseShapes(),2===this.m&&m>1?(_=this.calculateShapeEdges(t,a,h.totalShapeLength,b,u),b+=h.totalShapeLength):_=[[f,k]],o=_.length,l=0;l<o;l+=1){f=_[l][0],k=_[l][1],w.length=0,k<=1?w.push({s:h.totalShapeLength*f,e:h.totalShapeLength*k}):f>=1?w.push({s:h.totalShapeLength*(f-1),e:h.totalShapeLength*(k-1)}):(w.push({s:h.totalShapeLength*f,e:h.totalShapeLength}),w.push({s:0,e:h.totalShapeLength*(k-1)}));var x=this.addShapes(h,w[0]);if(w[0].s!==w[0].e){if(w.length>1)if(h.shape.paths.shapes[h.shape.paths._length-1].c){var v=x.pop();this.addPaths(x,g),x=this.addShapes(h,w[1],v)}else this.addPaths(x,g),x=this.addShapes(h,w[1]);this.addPaths(x,g)}}h.shape.paths=g}}},TrimModifier.prototype.addPaths=function(e,t){var a,i=e.length;for(a=0;a<i;a+=1)t.addShape(e[a])},TrimModifier.prototype.addSegment=function(e,t,a,i,s,n,r){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(a[0],a[1],"i",n+1),r&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,a,i){t.setXYAt(e[1],e[5],"o",a),t.setXYAt(e[2],e[6],"i",a+1),i&&t.setXYAt(e[0],e[4],"v",a),t.setXYAt(e[3],e[7],"v",a+1)},TrimModifier.prototype.addShapes=function(e,t,a){var i,s,n,r,l,o,d,c,p=e.pathsData,m=e.shape.paths.shapes,u=e.shape.paths._length,h=0,g=[],w=!0;for(a?(l=a._length,c=a._length):(a=shapePool.newElement(),l=0,c=0),g.push(a),i=0;i<u;i+=1){for(o=p[i].lengths,a.c=m[i].c,n=m[i].c?o.length:o.length+1,s=1;s<n;s+=1)if(h+(r=o[s-1]).addedLength<t.s)h+=r.addedLength,a.c=!1;else{if(h>t.e){a.c=!1;break}t.s<=h&&t.e>=h+r.addedLength?(this.addSegment(m[i].v[s-1],m[i].o[s-1],m[i].i[s],m[i].v[s],a,l,w),w=!1):(d=bez.getNewSegment(m[i].v[s-1],m[i].v[s],m[i].o[s-1],m[i].i[s],(t.s-h)/r.addedLength,(t.e-h)/r.addedLength,o[s-1]),this.addSegmentFromArray(d,a,l,w),w=!1,a.c=!1),h+=r.addedLength,l+=1}if(m[i].c&&o.length){if(r=o[s-1],h<=t.e){var _=o[s-1].addedLength;t.s<=h&&t.e>=h+_?(this.addSegment(m[i].v[s-1],m[i].o[s-1],m[i].i[0],m[i].v[0],a,l,w),w=!1):(d=bez.getNewSegment(m[i].v[s-1],m[i].v[0],m[i].o[s-1],m[i].i[0],(t.s-h)/_,(t.e-h)/_,o[s-1]),this.addSegmentFromArray(d,a,l,w),w=!1,a.c=!1)}else a.c=!1;h+=r.addedLength,l+=1}if(a._length&&(a.setXYAt(a.v[c][0],a.v[c][1],"i",c),a.setXYAt(a.v[a._length-1][0],a.v[a._length-1][1],"o",a._length-1)),h>t.e)break;i<u-1&&(a=shapePool.newElement(),w=!0,g.push(a),l=0)}return g},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var a=t/100,i=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=s,i[1]/=s;var r,l,o,d,c,p,m=shapePool.newElement();for(m.c=e.c,n=0;n<s;n+=1)r=e.v[n][0]+(i[0]-e.v[n][0])*a,l=e.v[n][1]+(i[1]-e.v[n][1])*a,o=e.o[n][0]+(i[0]-e.o[n][0])*-a,d=e.o[n][1]+(i[1]-e.o[n][1])*-a,c=e.i[n][0]+(i[0]-e.i[n][0])*-a,p=e.i[n][1]+(i[1]-e.i[n][1])*-a,m.setTripleAt(r,l,o,d,c,p,n);return m},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,a,i,s,n,r,l=this.shapes.length,o=this.amount.v;if(0!==o)for(a=0;a<l;a+=1){if(r=(n=this.shapes[a]).localShapeCollection,n.shape._mdf||this._mdf||e)for(r.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,s=n.shape.paths._length,i=0;i<s;i+=1)r.addShape(this.processPath(t[i],o));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,a){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(a||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var i,s=t.or.k.length;for(i=0;i<s;i+=1)t.or.k[i].to=null,t.or.k[i].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var a;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var i,s;if(a=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/a,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/a,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/a,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/a,0)):(i=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/a,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],s=[];var n=this.px,r=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(i[0]=n.getValueAtTime((n.keyframes[0].t+.01)/a,0),i[1]=r.getValueAtTime((r.keyframes[0].t+.01)/a,0),s[0]=n.getValueAtTime(n.keyframes[0].t/a,0),s[1]=r.getValueAtTime(r.keyframes[0].t/a,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(i[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/a,0),i[1]=r.getValueAtTime(r.keyframes[r.keyframes.length-1].t/a,0),s[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/a,0),s[1]=r.getValueAtTime((r.keyframes[r.keyframes.length-1].t-.01)/a,0)):(i=[n.pv,r.pv],s[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/a,n.offsetTime),s[1]=r.getValueAtTime((r._caching.lastFrame+r.offsetTime-.01)/a,r.offsetTime))}else i=s=e;this.v.rotate(-Math.atan2(i[1]-s[1],i[0]-s[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,a,i){return new t(e,a,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(e,t){return 1e5*Math.abs(e-t)<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,a){return e*(1-a)+t*a}function lerpPoint(e,t,a){return[lerp(e[0],t[0],a),lerp(e[1],t[1],a)]}function quadRoots(e,t,a){if(0===e)return[];var i=t*t-4*e*a;if(i<0)return[];var s=-t/(2*e);if(0===i)return[s];var n=Math.sqrt(i)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,a,i){return[3*t-e-3*a+i,3*e-6*t+3*a,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,a,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(a,i)&&(a=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],a[0],i[0]),r=polynomialCoefficients(e[1],t[1],a[1],i[1]);this.a=[n[0],r[0]],this.b=[n[1],r[1]],this.c=[n[2],r[2]],this.d=[n[3],r[3]],this.points=[e,t,a,i]}function extrema(e,t){var a=e.points[0][t],i=e.points[e.points.length-1][t];if(a>i){var s=i;i=a,a=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),r=0;r<n.length;r+=1)if(n[r]>0&&n[r]<1){var l=e.point(n[r])[t];l<a?a=l:l>i&&(i=l)}return{min:a,max:i}}function intersectData(e,t,a){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+a)/2,t1:t,t2:a}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return 2*Math.abs(e.cx-t.cx)<e.width+t.width&&2*Math.abs(e.cy-t.cy)<e.height+t.height}function intersectsImpl(e,t,a,i,s,n){if(boxIntersect(e,t))if(a>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i)s.push([e.t,t.t]);else{var r=splitData(e),l=splitData(t);intersectsImpl(r[0],l[0],a+1,i,s,n),intersectsImpl(r[0],l[1],a+1,i,s,n),intersectsImpl(r[1],l[0],a+1,i,s,n),intersectsImpl(r[1],l[1],a+1,i,s,n)}}function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,a,i){var s=[e[0],e[1],1],n=[t[0],t[1],1],r=[a[0],a[1],1],l=[i[0],i[1],1],o=crossProduct(crossProduct(s,n),crossProduct(r,l));return floatZero(o[2])?null:[o[0]/o[2],o[1]/o[2]]}function polarOffset(e,t,a){return[e[0]+Math.cos(t)*a,e[1]-Math.sin(t)*a]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}function setPoint(e,t,a,i,s,n,r){var l=a-Math.PI/2,o=a+Math.PI/2,d=t[0]+Math.cos(a)*i*s,c=t[1]-Math.sin(a)*i*s;e.setTripleAt(d,c,d+Math.cos(l)*n,c-Math.sin(l)*n,d+Math.cos(o)*r,c-Math.sin(o)*r,e.length())}function getPerpendicularVector(e,t){var a=[t[0]-e[0],t[1]-e[1]],i=.5*-Math.PI;return[Math.cos(i)*a[0]-Math.sin(i)*a[1],Math.sin(i)*a[0]+Math.cos(i)*a[1]]}function getProjectingAngle(e,t){var a=0===t?e.length()-1:t-1,i=(t+1)%e.length(),s=getPerpendicularVector(e.v[a],e.v[i]);return Math.atan2(0,1)-Math.atan2(s[1],s[0])}function zigZagCorner(e,t,a,i,s,n,r){var l=getProjectingAngle(t,a),o=t.v[a%t._length],d=t.v[0===a?t._length-1:a-1],c=t.v[(a+1)%t._length],p=2===n?Math.sqrt(Math.pow(o[0]-d[0],2)+Math.pow(o[1]-d[1],2)):0,m=2===n?Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)):0;setPoint(e,t.v[a%t._length],l,r,i,m/(2*(s+1)),p/(2*(s+1)),n)}function zigZagSegment(e,t,a,i,s,n){for(var r=0;r<i;r+=1){var l=(r+1)/(i+1),o=2===s?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(l);setPoint(e,t.point(l),d,n,a,o/(2*(i+1)),o/(2*(i+1)),s),n=-n}return n}function linearOffset(e,t,a){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,a),polarOffset(t,i,a)]}function offsetSegment(e,t){var a,i,s,n,r,l,o;a=(o=linearOffset(e.points[0],e.points[1],t))[0],i=o[1],s=(o=linearOffset(e.points[1],e.points[2],t))[0],n=o[1],r=(o=linearOffset(e.points[2],e.points[3],t))[0],l=o[1];var d=lineIntersection(a,i,s,n);null===d&&(d=i);var c=lineIntersection(r,l,s,n);return null===c&&(c=r),new PolynomialBezier(a,d,c,l)}function joinLines(e,t,a,i,s){var n=t.points[3],r=a.points[0];if(3===i)return n;if(pointEqual(n,r))return n;if(2===i){var l=-t.tangentAngle(1),o=-a.tangentAngle(0)+Math.PI,d=lineIntersection(n,polarOffset(n,l+Math.PI/2,100),r,polarOffset(r,l+Math.PI/2,100)),c=d?pointDistance(d,n):pointDistance(n,r)/2,p=polarOffset(n,l,2*c*roundCorner);return e.setXYAt(p[0],p[1],"o",e.length()-1),p=polarOffset(r,o,2*c*roundCorner),e.setTripleAt(r[0],r[1],r[0],r[1],p[0],p[1],e.length()),r}var m=lineIntersection(pointEqual(n,t.points[2])?t.points[0]:t.points[2],n,r,pointEqual(r,a.points[1])?a.points[3]:a.points[1]);return m&&pointDistance(m,n)<s?(e.setTripleAt(m[0],m[1],m[0],m[1],m[0],m[1],e.length()),m):n}function getIntersection(e,t){var a=e.intersections(t);return a.length&&floatEqual(a[0][0],1)&&a.shift(),a.length?a[0]:null}function pruneSegmentIntersection(e,t){var a=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(a[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]))?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[a,i]}function pruneIntersections(e){for(var t,a=1;a<e.length;a+=1)t=pruneSegmentIntersection(e[a-1],e[a]),e[a-1]=t[0],e[a]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var a,i,s,n,r=e.inflectionPoints();if(0===r.length)return[offsetSegment(e,t)];if(1===r.length||floatEqual(r[1],1))return a=(s=e.split(r[0]))[0],i=s[1],[offsetSegment(a,t),offsetSegment(i,t)];a=(s=e.split(r[0]))[0];var l=(r[1]-r[0])/(1-r[0]);return n=(s=s[1].split(l))[0],i=s[1],[offsetSegment(a,t),offsetSegment(n,t),offsetSegment(i,t)]}function OffsetPathModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],a="normal",i="normal",s=t.length,n=0;n<s;n+=1)switch(t[n].toLowerCase()){case"italic":i="italic";break;case"bold":a="700";break;case"black":a="900";break;case"medium":a="500";break;case"regular":case"normal":a="400";break;case"light":case"thin":a="200"}return{style:i,weight:e.fWeight||a}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,a,i,s,n){var r=n?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),o=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*r*s,i.p.v[1]*r*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*r*s),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),a.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),a.scale(n?1/l:l,n?1/o:o),a.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,a,i){for(this.elem=e,this.arr=t,this.pos=a,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[a]);a>0;)a-=1,this._elements.unshift(t[a]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,a=e.length;for(t=0;t<a;t+=1)e[t]._processed=!1,"gr"===e[t].ty&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var a,i=e.length;for(a=0;a<i;a+=1)e[a]._render=t,"gr"===e[a].ty&&this.changeGroupRender(e[a].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,a,i,s,n,r=!1;if(this._mdf||e){var l,o=Math.ceil(this.c.v);if(this._groups.length<o){for(;this._groups.length<o;){var d={it:this.cloneElements(this._elements),ty:"gr"};d.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,d),this._groups.splice(0,0,d),this._currentCopies+=1}this.elem.reloadShapes(),r=!0}for(n=0,i=0;i<=this._groups.length-1;i+=1){if(l=n<o,this._groups[i]._render=l,this.changeGroupRender(this._groups[i].it,l),!l){var c=this.elemsData[i].it,p=c[c.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}n+=1}this._currentCopies=o;var m=this.o.v,u=m%1,h=m>0?Math.floor(m):Math.ceil(m),g=this.pMatrix.props,w=this.rMatrix.props,_=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var f,k,b=0;if(m>0){for(;b<h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),b+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),b+=u)}else if(m<0){for(;b>h;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),b-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),b-=u)}for(i=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,n=this._currentCopies;n;){if(k=(a=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==b){for((0!==i&&1===s||i!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15]),this.matrix.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),f=0;f<k;f+=1)a[f]=this.matrix.props[f];this.matrix.reset()}else for(this.matrix.reset(),f=0;f<k;f+=1)a[f]=this.matrix.props[f];b+=1,n-=1,i+=s}}else for(n=this._currentCopies,i=0,s=1;n;)a=(t=this.elemsData[i].it)[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=s;return r},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var a,i=shapePool.newElement();i.c=e.c;var s,n,r,l,o,d,c,p,m,u,h,g,w=e._length,_=0;for(a=0;a<w;a+=1)s=e.v[a],r=e.o[a],n=e.i[a],s[0]===r[0]&&s[1]===r[1]&&s[0]===n[0]&&s[1]===n[1]?0!==a&&a!==w-1||e.c?(l=0===a?e.v[w-1]:e.v[a-1],d=(o=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)))?Math.min(o/2,t)/o:0,c=h=s[0]+(l[0]-s[0])*d,p=g=s[1]-(s[1]-l[1])*d,m=c-(c-s[0])*roundCorner,u=p-(p-s[1])*roundCorner,i.setTripleAt(c,p,m,u,h,g,_),_+=1,l=a===w-1?e.v[0]:e.v[a+1],d=(o=Math.sqrt(Math.pow(s[0]-l[0],2)+Math.pow(s[1]-l[1],2)))?Math.min(o/2,t)/o:0,c=m=s[0]+(l[0]-s[0])*d,p=u=s[1]+(l[1]-s[1])*d,h=c-(c-s[0])*roundCorner,g=p-(p-s[1])*roundCorner,i.setTripleAt(c,p,m,u,h,g,_),_+=1):(i.setTripleAt(s[0],s[1],r[0],r[1],n[0],n[1],_),_+=1):(i.setTripleAt(e.v[a][0],e.v[a][1],e.o[a][0],e.o[a][1],e.i[a][0],e.i[a][1],_),_+=1);return i},RoundCornersModifier.prototype.processShapes=function(e){var t,a,i,s,n,r,l=this.shapes.length,o=this.rd.v;if(0!==o)for(a=0;a<l;a+=1){if(r=(n=this.shapes[a]).localShapeCollection,n.shape._mdf||this._mdf||e)for(r.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,s=n.shape.paths._length,i=0;i<s;i+=1)r.addShape(this.processPath(t[i],o));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,a=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(a<0)return[];var i=Math.sqrt(a);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter((function(e){return e>0&&e<1}))},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),a=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,a,e),n=lerpPoint(a,i,e),r=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,r,!0),new PolynomialBezier(r,n,i,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}},PolynomialBezier.prototype.intersections=function(e,t,a){void 0===t&&(t=2),void 0===a&&(a=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,a),i},PolynomialBezier.shapeSegment=function(e,t){var a=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[a],e.v[a],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var a=(t+1)%e.length();return new PolynomialBezier(e.v[a],e.i[a],e.o[t],e.v[t],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(e,t,a,i){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),0===s)return n;var r=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,a,i,r);for(var o=0;o<s;o+=1)r=zigZagSegment(n,l,t,a,i,-r),l=o!==s-1||e.c?PolynomialBezier.shapeSegment(e,(o+1)%s):null,zigZagCorner(n,e,o+1,t,a,i,r);return n},ZigZagModifier.prototype.processShapes=function(e){var t,a,i,s,n,r,l=this.shapes.length,o=this.amplitude.v,d=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(0!==o)for(a=0;a<l;a+=1){if(r=(n=this.shapes[a]).localShapeCollection,n.shape._mdf||this._mdf||e)for(r.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,s=n.shape.paths._length,i=0;i<s;i+=1)r.addShape(this.processPath(t[i],o,d,c));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(e,t,a,i){var s=shapePool.newElement();s.c=e.c;var n,r,l,o=e.length();e.c||(o-=1);var d=[];for(n=0;n<o;n+=1)l=PolynomialBezier.shapeSegment(e,n),d.push(offsetSegmentSplit(l,t));if(!e.c)for(n=o-1;n>=0;n-=1)l=PolynomialBezier.shapeSegmentInverted(e,n),d.push(offsetSegmentSplit(l,t));d=pruneIntersections(d);var c=null,p=null;for(n=0;n<d.length;n+=1){var m=d[n];for(p&&(c=joinLines(s,p,m[0],a,i)),p=m[m.length-1],r=0;r<m.length;r+=1)l=m[r],c&&pointEqual(l.points[0],c)?s.setXYAt(l.points[1][0],l.points[1][1],"o",s.length()-1):s.setTripleAt(l.points[0][0],l.points[0][1],l.points[1][0],l.points[1][1],l.points[0][0],l.points[0][1],s.length()),s.setTripleAt(l.points[3][0],l.points[3][1],l.points[3][0],l.points[3][1],l.points[2][0],l.points[2][1],s.length()),c=l.points[3]}return d.length&&joinLines(s,p,d[0][0],a,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,a,i,s,n,r,l=this.shapes.length,o=this.amount.v,d=this.miterLimit.v,c=this.lineJoin;if(0!==o)for(a=0;a<l;a+=1){if(r=(n=this.shapes[a]).localShapeCollection,n.shape._mdf||this._mdf||e)for(r.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,s=n.shape.paths._length,i=0;i<s;i+=1)r.addShape(this.processPath(t[i],o,c,d));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var a=127988,i=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function s(e,t){var a=createTag("span");a.setAttribute("aria-hidden",!0),a.style.fontFamily=t;var i=createTag("span");i.innerText="giItT1WQy@!-/#",a.style.position="absolute",a.style.left="-10000px",a.style.top="-10000px",a.style.fontSize="300px",a.style.fontVariant="normal",a.style.fontStyle="normal",a.style.fontWeight="normal",a.style.letterSpacing="0",a.appendChild(i),document.body.appendChild(a);var s=i.offsetWidth;return i.style.fontFamily=function(e){var t,a=e.split(","),i=a.length,s=[];for(t=0;t<i;t+=1)"sans-serif"!==a[t]&&"monospace"!==a[t]&&s.push(a[t]);return s.join(",")}(e)+", "+t,{node:i,w:s,parent:a}}function n(e,t){var a,i=document.body&&t?"svg":"canvas",s=getFontProperties(e);if("svg"===i){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",s.style),n.setAttribute("font-weight",s.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),a=n}else{var r=new OffscreenCanvas(500,500).getContext("2d");r.font=s.style+" "+s.weight+" 100px "+e.fFamily,a=r}return{measureText:function(e){return"svg"===i?(a.textContent=e,a.getComputedTextLength()):a.measureText(e).width}}}function r(e){var t=0,a=e.charCodeAt(0);if(a>=55296&&a<=56319){var i=e.charCodeAt(1);i>=56320&&i<=57343&&(t=1024*(a-55296)+i-56320+65536)}return t}function l(e){var t=r(e);return t>=127462&&t<=127487}var o=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};o.isModifier=function(e,t){var a=e.toString(16)+t.toString(16);return-1!==i.indexOf(a)},o.isZeroWidthJoiner=function(e){return 8205===e},o.isFlagEmoji=function(e){return l(e.substr(0,2))&&l(e.substr(2,2))},o.isRegionalCode=l,o.isCombinedCharacter=function(e){return-1!==t.indexOf(e)},o.isRegionalFlag=function(e,t){var i=r(e.substr(t,2));if(i!==a)return!1;var s=0;for(t+=2;s<5;){if((i=r(e.substr(t,2)))<917601||i>917626)return!1;s+=1,t+=2}return 917631===r(e.substr(t,2))},o.isVariationSelector=function(e){return 65039===e},o.BLACK_FLAG_CODE_POINT=a;var d={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var a,i,s=e.length,n=this.chars.length;for(t=0;t<s;t+=1){for(a=0,i=!1;a<n;)this.chars[a].style===e[t].style&&this.chars[a].fFamily===e[t].fFamily&&this.chars[a].ch===e[t].ch&&(i=!0),a+=1;i||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var a,i=e.list,r=i.length,l=r;for(a=0;a<r;a+=1){var o,d,c=!0;if(i[a].loaded=!1,i[a].monoCase=s(i[a].fFamily,"monospace"),i[a].sansCase=s(i[a].fFamily,"sans-serif"),i[a].fPath){if("p"===i[a].fOrigin||3===i[a].origin){if((o=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[a].fFamily+'"], style[f-origin="3"][f-family="'+i[a].fFamily+'"]')).length>0&&(c=!1),c){var p=createTag("style");p.setAttribute("f-forigin",i[a].fOrigin),p.setAttribute("f-origin",i[a].origin),p.setAttribute("f-family",i[a].fFamily),p.type="text/css",p.innerText="@font-face {font-family: "+i[a].fFamily+"; font-style: normal; src: url('"+i[a].fPath+"');}",t.appendChild(p)}}else if("g"===i[a].fOrigin||1===i[a].origin){for(o=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),d=0;d<o.length;d+=1)-1!==o[d].href.indexOf(i[a].fPath)&&(c=!1);if(c){var m=createTag("link");m.setAttribute("f-forigin",i[a].fOrigin),m.setAttribute("f-origin",i[a].origin),m.type="text/css",m.rel="stylesheet",m.href=i[a].fPath,document.body.appendChild(m)}}else if("t"===i[a].fOrigin||2===i[a].origin){for(o=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),d=0;d<o.length;d+=1)i[a].fPath===o[d].src&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",i[a].fOrigin),u.setAttribute("f-origin",i[a].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",i[a].fPath),t.appendChild(u)}}}else i[a].loaded=!0,l-=1;i[a].helper=n(i[a],t),i[a].cache={},this.fonts.push(i[a])}0===l?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,a,i){for(var s=0,n=this.chars.length;s<n;){if(this.chars[s].ch===t&&this.chars[s].style===a&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,a,i)),e},getFontByName:function(e){for(var t=0,a=this.fonts.length;t<a;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,a){var i=this.getFontByName(t),s=e;if(!i.cache[s]){var n=i.helper;if(" "===e){var r=n.measureText("|"+e+"|"),l=n.measureText("||");i.cache[s]=(r-l)/100}else i.cache[s]=n.measureText(e)/100}return i.cache[s]*a},checkLoadedFonts:function(){var e,t,a,i=this.fonts.length,s=i;for(e=0;e<i;e+=1)this.fonts[e].loaded?s-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,a=this.fonts[e].monoCase.w,t.offsetWidth!==a?(s-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,a=this.fonts[e].sansCase.w,t.offsetWidth!==a&&(s-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return o.prototype=d,o}();function SlotManager(e){this.animationData=e}function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;function SliderEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,0,0,a)}function AngleEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,0,0,a)}function ColorEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,1,0,a)}function PointEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,1,0,a)}function LayerIndexEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,0,0,a)}function MaskIndexEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,0,0,a)}function CheckboxEffect(e,t,a){this.p=PropertyFactory.getProp(t,e.v,0,0,a)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var a,i=e.ef||[];this.effectElements=[];var s,n=i.length;for(a=0;a<n;a+=1)s=new GroupEffect(i[a],t),this.effectElements.push(s)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function FootageElement(e,t,a){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,a)}function AudioElement(e,t,a){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,a),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var a;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var i,s=this.data.ef.length,n=this.data.ef;for(a=0;a<s;a+=1){switch(i=null,n[a].ty){case 0:i=new SliderEffect(n[a],t,this);break;case 1:i=new AngleEffect(n[a],t,this);break;case 2:i=new ColorEffect(n[a],t,this);break;case 3:i=new PointEffect(n[a],t,this);break;case 4:case 7:i=new CheckboxEffect(n[a],t,this);break;case 10:i=new LayerIndexEffect(n[a],t,this);break;case 11:i=new MaskIndexEffect(n[a],t,this);break;case 5:i=new EffectsManager(n[a],t,this);break;default:i=new NoValueEffect(n[a],t,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){var e=getExpressionInterfaces();if(e){var t=e("layer"),a=e("effects"),i=e("shape"),s=e("text"),n=e("comp");this.layerInterface=t(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var r=a.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(r),0===this.data.ty||this.data.xt?this.compInterface=n(this):4===this.data.ty?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=s(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,a){this.globalData=t,this.comp=a,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var a,i=this.dynamicProperties.length;for(a=0;a<i;a+=1)(t||this._isParent&&"transform"===this.dynamicProperties[a].propType)&&(this.dynamicProperties[a].getValue(),this.dynamicProperties[a]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var a=this._volume*this._volumeMultiplier;this._previousVolume!==a&&(this._previousVolume=a,this.audio.volume(a))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,a,i=this.layers.length;for(this.completeLayers=!0,t=i-1;t>=0;t-=1)this.elements[t]||(a=this.layers[t]).ip-a.st<=e-this.layers[t].st&&a.op-a.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){var t;this.completeLayers=!1;var a,i=e.length,s=this.layers.length;for(t=0;t<i;t+=1)for(a=0;a<s;){if(this.layers[a].id===e[t].id){this.layers[a]=e[t];break}a+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,a){for(var i=this.elements,s=this.layers,n=0,r=s.length;n<r;)s[n].ind==t&&(i[n]&&!0!==i[n]?(a.push(i[n]),i[n].setAsParent(),void 0!==s[n].parent?this.buildElementParenting(e,s[n].parent,a):e.setHierarchy(a)):(this.buildItem(n),this.addPendingElement(e))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,a=e.length;for(t=0;t<a;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,a=this.elements.length;for(t=0;t<a;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t,a=e.shift();if("number"==typeof a)t=this.elements[a];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===a){t=this.elements[i];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(e,t,a){this.data=e,this.element=t,this.globalData=a,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,s,n=this.globalData.defs,r=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(r),this.solidPath="";var l,o,d,c,p,m,u=this.masksProperties,h=0,g=[],w=createElementID(),_="clipPath",f="clip-path";for(i=0;i<r;i+=1)if(("a"!==u[i].mode&&"n"!==u[i].mode||u[i].inv||100!==u[i].o.k||u[i].o.x)&&(_="mask",f="mask"),"s"!==u[i].mode&&"i"!==u[i].mode||0!==h?d=null:((d=createNS("rect")).setAttribute("fill","#ffffff"),d.setAttribute("width",this.element.comp.data.w||0),d.setAttribute("height",this.element.comp.data.h||0),g.push(d)),s=createNS("path"),"n"===u[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:s,lastPath:""},n.appendChild(s);else{var k;if(h+=1,s.setAttribute("fill","s"===u[i].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),0!==u[i].x.k?(_="mask",f="mask",m=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),k=createElementID(),(c=createNS("filter")).setAttribute("id",k),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),n.appendChild(c),s.setAttribute("stroke","s"===u[i].mode?"#000000":"#ffffff")):(p=null,m=null),this.storedData[i]={elem:s,x:m,expan:p,lastPath:"",lastOperator:"",filterId:k,lastRadius:0},"i"===u[i].mode){o=g.length;var b=createNS("g");for(l=0;l<o;l+=1)b.appendChild(g[l]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",w+"_"+h),x.appendChild(s),n.appendChild(x),b.setAttribute("mask","url("+getLocationHref()+"#"+w+"_"+h+")"),g.length=0,g.push(b)}else g.push(s);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:d},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(_),r=g.length,i=0;i<r;i+=1)this.maskElement.appendChild(g[i]);h>0&&(this.maskElement.setAttribute("id",w),this.element.maskedElement.setAttribute(f,"url("+getLocationHref()+"#"+w+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var e=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:e,localMat:e,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,a=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;a<i;){if(this.hierarchy[a].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}a+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),a=0;a<i;a+=1)t.multiply(this.hierarchy[a].finalTransform.mProp.v)}this.localTransforms&&!this.finalTransform._matMdf||(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var e=0,t=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;e<t;)this.localTransforms[e]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[e]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),e+=1;if(this.finalTransform._localMatMdf){var a=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(a),e=1;e<t;e+=1){var i=this.localTransforms[e].matrix;a.multiply(i)}a.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var s=this.finalTransform.localOpacity;for(e=0;e<t;e+=1)s*=.01*this.localTransforms[e].opacity;this.finalTransform.localOpacity=s}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var e=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(e.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var t=0,a=e.length;for(t=0;t<a;t+=1)this.localTransforms.push(e[t])}}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var a,i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&t.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,r=t.length;for(a=0;a<r;a+=1)n=t[a].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,a=this.element.finalTransform.mat,i=this.masksProperties.length;for(t=0;t<i;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",a.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var s=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),s.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,(e+=" h-"+this.globalData.compSize.w)+" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(e,t,a){var i,s,n=" M"+t.v[0][0]+","+t.v[0][1];for(s=t._length,i=1;i<s;i+=1)n+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[i][0]+","+t.i[i][1]+" "+t.v[i][0]+","+t.v[i][1];if(t.c&&s>1&&(n+=" C"+t.o[i-1][0]+","+t.o[i-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),a.lastPath!==n){var r="";a.elem&&(t.c&&(r=e.inv?this.solidPath+n:n),a.elem.setAttribute("d",r)),a.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory={createFilter:function(e,t){var a=createNS("filter");return a.setAttribute("id",e),!0!==t&&(a.setAttribute("filterUnits","objectBoundingBox"),a.setAttribute("x","0%"),a.setAttribute("y","0%"),a.setAttribute("width","100%"),a.setAttribute("height","100%")),a},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}},featureSupport=function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,a,i="SourceGraphic",s=e.data.ef?e.data.ef.length:0,n=createElementID(),r=filtersFactory.createFilter(n,!0),l=0;for(this.filters=[],t=0;t<s;t+=1){a=null;var o=e.data.ef[t].ty;registeredEffects$1[o]&&(a=new(0,registeredEffects$1[o].effect)(r,e.effectsManager.effectElements[t],e,idPrefix+l,i),i=idPrefix+l,registeredEffects$1[o].countsAsEffect&&(l+=1)),a&&this.filters.push(a)}l&&(e.globalData.defs.appendChild(r),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect$1(e,t,a){registeredEffects$1[e]={effect:t,countsAsEffect:a}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,a){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,a),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,a=this.filters.length;for(t=0;t<a;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,a=this.filters.length,i=[];for(t=0;t<a;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var e=null;if(this.data.td){this.matteMasks={};var t=createNS("g");t.setAttribute("id",this.layerId),t.appendChild(this.layerElement),e=t,this.globalData.defs.appendChild(t)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),e=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var a=createNS("clipPath"),i=createNS("path");i.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(a.setAttribute("id",s),a.appendChild(i),this.globalData.defs.appendChild(a),this.checkMasks()){var n=createNS("g");n.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),n.appendChild(this.layerElement),this.transformedElement=n,e?e.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(e){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[e]){var t,a,i,s,n=this.layerId+"_"+e;if(1===e||3===e){var r=createNS("mask");r.setAttribute("id",n),r.setAttribute("mask-type",3===e?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),r.appendChild(i),this.globalData.defs.appendChild(r),featureSupport.maskType||1!==e||(r.setAttribute("mask-type","luminance"),t=createElementID(),a=filtersFactory.createFilter(t),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(s=createNS("g")).appendChild(i),r.appendChild(s),s.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2===e){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type","alpha");var o=createNS("g");l.appendChild(o),t=createElementID(),a=filtersFactory.createFilter(t);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),a.appendChild(d);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),d.appendChild(c),this.globalData.defs.appendChild(a);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),o.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),o.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),featureSupport.maskType||(l.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),s=createNS("g"),o.appendChild(p),s.appendChild(this.layerElement),o.appendChild(s)),this.globalData.defs.appendChild(l)}this.matteMasks[e]=n}return this.matteMasks[e]},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,a){this.initFrame(),this.initBaseData(e,t,a),this.initTransform(e,t,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(e){var t,a=this.shapeModifiers.length;for(t=0;t<a;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,a=0,i=t.length;a<i;){if(t[a].elem===e)return t[a].pos;a+=1}return 0},addProcessedElement:function(e,t){for(var a=this.processedElements,i=a.length;i;)if(a[i-=1].elem===e)return void(a[i].pos=t);a.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,a){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=a,this.lvl=t,this._isAnimated=!!a.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,a,i){var s;this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=a,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var n,r=t.length||0;for(s=0;s<r;s+=1)n=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=n.k||this.k,this.dataProps[s]={n:t[s].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(e,t,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=a,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(e,t,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=a}function SVGNoStyleData(e,t,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=a}function GradientProperty(e,t,a){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var i=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(a),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,a)}function SVGGradientStrokeStyleData(e,t,a){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,a),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,a){this.transform={mProps:e,op:t,container:a},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(e){if((this.elem.globalData.frameId!==this.frameId||e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,a=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),t=0;t<a;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var a=0,i=this.o.length/2;a<i;){if(Math.abs(e[4*a]-e[4*t+2*a])>.01)return!1;a+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,a,i,s=4*this.data.p;for(t=0;t<s;t+=1)a=t%4==0?100:255,i=Math.round(this.prop.v[t]*a),this.c[t]!==i&&(this.c[t]=i,this._cmdf=!e);if(this.o.length)for(s=this.prop.v.length,t=4*this.data.p;t<s;t+=1)a=t%2==0?100:1,i=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==i&&(this.o[t-4*this.data.p]=i,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(e,t,a){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=a,this.stops=[],this.setGradientData(a.pElem,t),this.setGradientOpacity(t,a),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var a=createElementID(),i=createNS(1===t.t?"linearGradient":"radialGradient");i.setAttribute("id",a),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s,n,r,l=[];for(r=4*t.g.p,n=0;n<r;n+=4)s=createNS("stop"),i.appendChild(s),l.push(s);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),this.gf=i,this.cst=l},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var a,i,s,n=createNS("mask"),r=createNS("path");n.appendChild(r);var l=createElementID(),o=createElementID();n.setAttribute("id",o);var d=createNS(1===e.t?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(i=4*e.g.p;i<s;i+=2)(a=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(a),c.push(a);r.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),"gs"===e.ty&&(r.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),r.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&r.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=n,this.ost=c,this.maskId=o,t.msElem=r}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,a,i){if(0===t)return"";var s,n=e.o,r=e.i,l=e.v,o=" M"+i.applyToPointStringified(l[0][0],l[0][1]);for(s=1;s<t;s+=1)o+=" C"+i.applyToPointStringified(n[s-1][0],n[s-1][1])+" "+i.applyToPointStringified(r[s][0],r[s][1])+" "+i.applyToPointStringified(l[s][0],l[s][1]);return a&&t&&(o+=" C"+i.applyToPointStringified(n[s-1][0],n[s-1][1])+" "+i.applyToPointStringified(r[0][0],r[0][1])+" "+i.applyToPointStringified(l[0][0],l[0][1]),o+="z"),o},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function a(e,t,a){(a||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(a||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function i(){}function s(a,i,s){var n,r,l,o,d,c,p,m,u,h,g=i.styles.length,w=i.lvl;for(c=0;c<g;c+=1){if(o=i.sh._mdf||s,i.styles[c].lvl<w){for(m=t.reset(),u=w-i.styles[c].lvl,h=i.transformers.length-1;!o&&u>0;)o=i.transformers[h].mProps._mdf||o,u-=1,h-=1;if(o)for(u=w-i.styles[c].lvl,h=i.transformers.length-1;u>0;)m.multiply(i.transformers[h].mProps.v),u-=1,h-=1}else m=e;if(r=(p=i.sh.paths)._length,o){for(l="",n=0;n<r;n+=1)(d=p.shapes[n])&&d._length&&(l+=buildShapeString(d,d._length,d.c,m));i.caches[c]=l}else l=i.caches[c];i.styles[c].d+=!0===a.hd?"":l,i.styles[c]._mdf=o||i.styles[c]._mdf}}function n(e,t,a){var i=t.style;(t.c._mdf||a)&&i.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||a)&&i.pElem.setAttribute("fill-opacity",t.o.v)}function r(e,t,a){l(e,t,a),o(0,t,a)}function l(e,t,a){var i,s,n,r,l,o=t.gf,d=t.g._hasOpacity,c=t.s.v,p=t.e.v;if(t.o._mdf||a){var m="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(m,t.o.v)}if(t.s._mdf||a){var u=1===e.t?"x1":"cx",h="x1"===u?"y1":"cy";o.setAttribute(u,c[0]),o.setAttribute(h,c[1]),d&&!t.g._collapsable&&(t.of.setAttribute(u,c[0]),t.of.setAttribute(h,c[1]))}if(t.g._cmdf||a){i=t.cst;var g=t.g.c;for(n=i.length,s=0;s<n;s+=1)(r=i[s]).setAttribute("offset",g[4*s]+"%"),r.setAttribute("stop-color","rgb("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+")")}if(d&&(t.g._omdf||a)){var w=t.g.o;for(n=(i=t.g._collapsable?t.cst:t.ost).length,s=0;s<n;s+=1)r=i[s],t.g._collapsable||r.setAttribute("offset",w[2*s]+"%"),r.setAttribute("stop-opacity",w[2*s+1])}if(1===e.t)(t.e._mdf||a)&&(o.setAttribute("x2",p[0]),o.setAttribute("y2",p[1]),d&&!t.g._collapsable&&(t.of.setAttribute("x2",p[0]),t.of.setAttribute("y2",p[1])));else if((t.s._mdf||t.e._mdf||a)&&(l=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)),o.setAttribute("r",l),d&&!t.g._collapsable&&t.of.setAttribute("r",l)),t.s._mdf||t.e._mdf||t.h._mdf||t.a._mdf||a){l||(l=Math.sqrt(Math.pow(c[0]-p[0],2)+Math.pow(c[1]-p[1],2)));var _=Math.atan2(p[1]-c[1],p[0]-c[0]),f=t.h.v;f>=1?f=.99:f<=-1&&(f=-.99);var k=l*f,b=Math.cos(_+t.a.v)*k+c[0],x=Math.sin(_+t.a.v)*k+c[1];o.setAttribute("fx",b),o.setAttribute("fy",x),d&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",x))}}function o(e,t,a){var i=t.style,s=t.d;s&&(s._mdf||a)&&s.dashStr&&(i.pElem.setAttribute("stroke-dasharray",s.dashStr),i.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),t.c&&(t.c._mdf||a)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||a)&&i.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||a)&&(i.pElem.setAttribute("stroke-width",t.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return l;case"gs":return r;case"st":return o;case"sh":case"el":case"rc":case"sr":return s;case"tr":return a;case"no":return i;default:return null}}}}();function SVGShapeElement(e,t,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,a),this.prevViewData=[]}function LetterProps(e,t,a,i,s,n){this.o=e,this.sw=t,this.sc=a,this.fc=i,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!a,fc:!!i,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,a,i,s=this.shapes.length,n=this.stylesList.length,r=[],l=!1;for(a=0;a<n;a+=1){for(i=this.stylesList[a],l=!1,r.length=0,e=0;e<s;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(i)&&(r.push(t),l=t._isAnimated||l);r.length>1&&l&&this.setShapesAsAnimated(r)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,a=e.length;for(t=0;t<a;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var a,i=new SVGStyleData(e,t),s=i.pElem;return"st"===e.ty?a=new SVGStrokeStyleData(this,e,i):"fl"===e.ty?a=new SVGFillStyleData(this,e,i):"gf"===e.ty||"gs"===e.ty?(a=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,i),this.globalData.defs.appendChild(a.gf),a.maskId&&(this.globalData.defs.appendChild(a.ms),this.globalData.defs.appendChild(a.of),s.setAttribute("mask","url("+getLocationHref()+"#"+a.maskId+")"))):"no"===e.ty&&(a=new SVGNoStyleData(this,e,i)),"st"!==e.ty&&"gs"!==e.ty||(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var a=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(a,a.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,a){var i=4;"rc"===e.ty?i=5:"el"===e.ty?i=6:"sr"===e.ty&&(i=7);var s=new SVGShapeData(t,a,ShapePropertyFactory.getShapeProp(this,e,i,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(e,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var a=0,i=this.animatedContents.length;a<i;){if(this.animatedContents[a].element===t)return;a+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t,a=e.styles,i=this.stylesList.length;for(t=0;t<i;t+=1)-1!==a.indexOf(this.stylesList[t])||this.stylesList[t].closed||a.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,a,i,s,n,r){var l,o,d,c,p,m,u=[].concat(n),h=e.length-1,g=[],w=[];for(l=h;l>=0;l-=1){if((m=this.searchProcessedElement(e[l]))?t[l]=a[m-1]:e[l]._render=r,"fl"===e[l].ty||"st"===e[l].ty||"gf"===e[l].ty||"gs"===e[l].ty||"no"===e[l].ty)m?t[l].style.closed=e[l].hd:t[l]=this.createStyleElement(e[l],s),e[l]._render&&t[l].style.pElem.parentNode!==i&&i.appendChild(t[l].style.pElem),g.push(t[l].style);else if("gr"===e[l].ty){if(m)for(d=t[l].it.length,o=0;o<d;o+=1)t[l].prevViewData[o]=t[l].it[o];else t[l]=this.createGroupElement(e[l]);this.searchShapes(e[l].it,t[l].it,t[l].prevViewData,t[l].gr,s+1,u,r),e[l]._render&&t[l].gr.parentNode!==i&&i.appendChild(t[l].gr)}else"tr"===e[l].ty?(m||(t[l]=this.createTransformElement(e[l],i)),c=t[l].transform,u.push(c)):"sh"===e[l].ty||"rc"===e[l].ty||"el"===e[l].ty||"sr"===e[l].ty?(m||(t[l]=this.createShapeElement(e[l],u,s)),this.setElementStyles(t[l])):"tm"===e[l].ty||"rd"===e[l].ty||"ms"===e[l].ty||"pb"===e[l].ty||"zz"===e[l].ty||"op"===e[l].ty?(m?(p=t[l]).closed=!1:((p=ShapeModifiers.getModifier(e[l].ty)).init(this,e[l]),t[l]=p,this.shapeModifiers.push(p)),w.push(p)):"rp"===e[l].ty&&(m?(p=t[l]).closed=!0:(p=ShapeModifiers.getModifier(e[l].ty),t[l]=p,p.init(this,e,l,t),this.shapeModifiers.push(p),r=!1),w.push(p));this.addProcessedElement(e[l],l+1)}for(h=g.length,l=0;l<h;l+=1)g[l].closed=!0;for(h=w.length,l=0;l<h;l+=1)w[l].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t,a=this.animatedContents.length;for(e=0;e<a;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,a,i,s,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var r=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,r=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,r=!0),this.sc!==a&&(this.sc=a,this._mdf.sc=!0,r=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,r=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,r=!0),!n.length||this.p[0]===n[0]&&this.p[1]===n[1]&&this.p[4]===n[4]&&this.p[5]===n[5]&&this.p[12]===n[12]&&this.p[13]===n[13]||(this.p=n,this._mdf.p=!0,r=!0),r},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,a=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)n=a!==this.keysIndex?this.effectsSequence[i](n,n.t):this.effectsSequence[i](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,a=0,i=e.length;a<=i-1&&!(a===i-1||e[a+1].t>t);)a+=1;return this.keysIndex!==a&&(this.keysIndex=a),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,a,i=[],s=0,n=e.length,r=!1,l=!1,o="";s<n;)r=l,l=!1,t=e.charCodeAt(s),o=e.charAt(s),FontManager.isCombinedCharacter(t)?r=!0:t>=55296&&t<=56319?FontManager.isRegionalFlag(e,s)?o=e.substr(s,14):(a=e.charCodeAt(s+1))>=56320&&a<=57343&&(FontManager.isModifier(t,a)?(o=e.substr(s,2),r=!0):o=FontManager.isFlagEmoji(e.substr(s,4))?e.substr(s,4):e.substr(s,2)):t>56319?(a=e.charCodeAt(s+1),FontManager.isVariationSelector(t)&&(r=!0)):FontManager.isZeroWidthJoiner(t)&&(r=!0,l=!0),r?(i[i.length-1]+=o,r=!1):i.push(o),s+=o.length;return i},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,a,i,s,n,r,l,o=this.elem.globalData.fontManager,d=this.data,c=[],p=0,m=d.m.g,u=0,h=0,g=0,w=[],_=0,f=0,k=o.getFontByName(e.f),b=0,x=getFontProperties(k);e.fWeight=x.weight,e.fStyle=x.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var v,y=e.tr/1e3*e.finalSize;if(e.sz)for(var j,N,$=!0,C=e.sz[0],S=e.sz[1];$;){j=0,_=0,a=(N=this.buildFinalText(e.t)).length,y=e.tr/1e3*e.finalSize;var D=-1;for(t=0;t<a;t+=1)v=N[t].charCodeAt(0),i=!1," "===N[t]?D=t:13!==v&&3!==v||(_=0,i=!0,j+=e.finalLineHeight||1.2*e.finalSize),o.chars?(l=o.getCharData(N[t],k.fStyle,k.fFamily),b=i?0:l.w*e.finalSize/100):b=o.measureText(N[t],e.f,e.finalSize),_+b>C&&" "!==N[t]?(-1===D?a+=1:t=D,j+=e.finalLineHeight||1.2*e.finalSize,N.splice(t,D===t?1:0,"\r"),D=-1,_=0):(_+=b,_+=y);j+=k.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&S<j?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=N,a=e.finalText.length,$=!1)}_=-y,b=0;var E,P=0;for(t=0;t<a;t+=1)if(i=!1,13===(v=(E=e.finalText[t]).charCodeAt(0))||3===v?(P=0,w.push(_),f=_>f?_:f,_=-2*y,s="",i=!0,g+=1):s=E,o.chars?(l=o.getCharData(E,k.fStyle,o.getFontByName(e.f).fFamily),b=i?0:l.w*e.finalSize/100):b=o.measureText(s,e.f,e.finalSize)," "===E?P+=b+y:(_+=b+y+P,P=0),c.push({l:b,an:b,add:u,n:i,anIndexes:[],val:s,line:g,animatorJustifyOffset:0}),2==m){if(u+=b,""===s||" "===s||t===a-1){for(""!==s&&" "!==s||(u-=b);h<=t;)c[h].an=u,c[h].ind=p,c[h].extra=b,h+=1;p+=1,u=0}}else if(3==m){if(u+=b,""===s||t===a-1){for(""===s&&(u-=b);h<=t;)c[h].an=u,c[h].ind=p,c[h].extra=b,h+=1;u=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(e.l=c,f=_>f?_:f,w.push(_),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=f,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=w;var A,T,L,M,F=d.a;r=F.length;var I=[];for(n=0;n<r;n+=1){for((A=F[n]).a.sc&&(e.strokeColorAnim=!0),A.a.sw&&(e.strokeWidthAnim=!0),(A.a.fc||A.a.fh||A.a.fs||A.a.fb)&&(e.fillColorAnim=!0),M=0,L=A.s.b,t=0;t<a;t+=1)(T=c[t]).anIndexes[n]=M,(1==L&&""!==T.val||2==L&&""!==T.val&&" "!==T.val||3==L&&(T.n||" "==T.val||t==a-1)||4==L&&(T.n||t==a-1))&&(1===A.s.rn&&I.push(M),M+=1);d.a[n].s.totalChars=M;var B,O=-1;if(1===A.s.rn)for(t=0;t<a;t+=1)O!=(T=c[t]).anIndexes[n]&&(O=T.anIndexes[n],B=I.splice(Math.floor(Math.random()*I.length),1)[0]),T.anIndexes[n]=B}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=k.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?this.keysIndex:t;var a=this.copyData({},this.data.d.k[t].s);a=this.copyData(a,e),this.data.d.k[t].s=a,this.recalculate(t),this.setCurrentData(a),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var e=Math.max,t=Math.min,a=Math.floor;function i(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,n=0,r=1,l=1;this.ne.v>0?s=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?r=1-this.xe.v/100:l=1+this.xe.v/100;var o=BezierFactory.getBezierEasing(s,n,r,l).get,d=0,c=this.finalS,p=this.finalE,m=this.data.sh;if(2===m)d=o(d=p===c?i>=p?1:0:e(0,t(.5/(p-c)+(i-c)/(p-c),1)));else if(3===m)d=o(d=p===c?i>=p?0:1:1-e(0,t(.5/(p-c)+(i-c)/(p-c),1)));else if(4===m)p===c?d=0:(d=e(0,t(.5/(p-c)+(i-c)/(p-c),1)))<.5?d*=2:d=1-2*(d-.5),d=o(d);else if(5===m){if(p===c)d=0;else{var u=p-c,h=-u/2+(i=t(e(0,i+.5-c),p-c)),g=u/2;d=Math.sqrt(1-h*h/(g*g))}d=o(d)}else 6===m?(p===c?d=0:(i=t(e(0,i+.5-c),p-c),d=(1+Math.cos(Math.PI+2*Math.PI*i/(p-c)))/2),d=o(d)):(i>=a(c)&&(d=e(0,t(i-c<0?t(p,1)-(c-i):p-i,1))),d=o(d));if(100!==this.sm.v){var w=.01*this.sm.v;0===w&&(w=1e-8);var _=.5-.5*w;d<_?d=0:(d=(d-_)/w)>1&&(d=1)}return d*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,a=this.o.v/t,i=this.s.v/t+a,s=this.e.v/t+a;if(i>s){var n=i;i=s,s=n}this.finalS=i,this.finalE=s}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(e,t,a){return new i(e,t,a)}}}();function TextAnimatorDataProperty(e,t,a){var i={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,a):i,rx:n.rx?s(e,n.rx,0,degToRads,a):i,ry:n.ry?s(e,n.ry,0,degToRads,a):i,sk:n.sk?s(e,n.sk,0,degToRads,a):i,sa:n.sa?s(e,n.sa,0,degToRads,a):i,s:n.s?s(e,n.s,1,.01,a):i,a:n.a?s(e,n.a,1,0,a):i,o:n.o?s(e,n.o,0,.01,a):i,p:n.p?s(e,n.p,1,0,a):i,sw:n.sw?s(e,n.sw,0,0,a):i,sc:n.sc?s(e,n.sc,1,0,a):i,fc:n.fc?s(e,n.fc,1,0,a):i,fh:n.fh?s(e,n.fh,0,0,a):i,fs:n.fs?s(e,n.fs,0,.01,a):i,fb:n.fb?s(e,n.fb,0,.01,a):i,t:n.t?s(e,n.t,0,0,a):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,a),this.s.t=t.s.t}function TextAnimatorProperty(e,t,a){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=a,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(a)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,a=this._textData.a.length,i=PropertyFactory.getProp;for(e=0;e<a;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,this._mdf||this._isFirstFrame||t||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var a,i,s,n,r,l,o,d,c,p,m,u,h,g,w,_,f,k,b,x=this._moreOptions.alignment.v,v=this._animatorsData,y=this._textData,j=this.mHelper,N=this._renderType,$=this.renderedLetters.length,C=e.l;if(this._hasMaskedPath){if(b=this._pathData.m,!this._pathData.n||this._pathData._mdf){var S,D=b.v;for(this._pathData.r.v&&(D=D.reverse()),r={tLength:0,segments:[]},n=D._length-1,_=0,s=0;s<n;s+=1)S=bez.buildBezierData(D.v[s],D.v[s+1],[D.o[s][0]-D.v[s][0],D.o[s][1]-D.v[s][1]],[D.i[s+1][0]-D.v[s+1][0],D.i[s+1][1]-D.v[s+1][1]]),r.tLength+=S.segmentLength,r.segments.push(S),_+=S.segmentLength;s=n,b.v.c&&(S=bez.buildBezierData(D.v[s],D.v[0],[D.o[s][0]-D.v[s][0],D.o[s][1]-D.v[s][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),r.tLength+=S.segmentLength,r.segments.push(S),_+=S.segmentLength),this._pathData.pi=r}if(r=this._pathData.pi,l=this._pathData.f.v,m=0,p=1,d=0,c=!0,g=r.segments,l<0&&b.v.c)for(r.tLength<Math.abs(l)&&(l=-Math.abs(l)%r.tLength),p=(h=g[m=g.length-1].points).length-1;l<0;)l+=h[p].partialLength,(p-=1)<0&&(p=(h=g[m-=1].points).length-1);u=(h=g[m].points)[p-1],w=(o=h[p]).partialLength}n=C.length,a=0,i=0;var E,P,A,T,L,M=1.2*e.finalSize*.714,F=!0;A=v.length;var I,B,O,R,V,W,q,G,z,H,U,J,K=-1,Z=l,Y=m,X=p,Q=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var ae=0,ie=0,se=2===e.j?-.5:-1,ne=0,re=!0;for(s=0;s<n;s+=1)if(C[s].n){for(ae&&(ae+=ie);ne<s;)C[ne].animatorJustifyOffset=ae,ne+=1;ae=0,re=!0}else{for(P=0;P<A;P+=1)(E=v[P].a).t.propType&&(re&&2===e.j&&(ie+=E.t.v*se),(L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars)).length?ae+=E.t.v*L[0]*se:ae+=E.t.v*L*se);re=!1}for(ae&&(ae+=ie);ne<s;)C[ne].animatorJustifyOffset=ae,ne+=1}for(s=0;s<n;s+=1){if(j.reset(),R=1,C[s].n)a=0,i+=e.yOffset,i+=F?1:0,l=Z,F=!1,this._hasMaskedPath&&(p=X,u=(h=g[m=Y].points)[p-1],w=(o=h[p]).partialLength,d=0),ee="",U="",z="",J="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==C[s].line){switch(e.j){case 1:l+=_-e.lineWidths[C[s].line];break;case 2:l+=(_-e.lineWidths[C[s].line])/2}Q=C[s].line}K!==C[s].ind&&(C[K]&&(l+=C[K].extra),l+=C[s].an/2,K=C[s].ind),l+=x[0]*C[s].an*.005;var le=0;for(P=0;P<A;P+=1)(E=v[P].a).p.propType&&((L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars)).length?le+=E.p.v[0]*L[0]:le+=E.p.v[0]*L),E.a.propType&&((L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars)).length?le+=E.a.v[0]*L[0]:le+=E.a.v[0]*L);for(c=!0,this._pathData.a.v&&(l=.5*C[0].an+(_-this._pathData.f.v-.5*C[0].an-.5*C[C.length-1].an)*K/(n-1),l+=this._pathData.f.v);c;)d+w>=l+le||!h?(f=(l+le-d)/o.partialLength,B=u.point[0]+(o.point[0]-u.point[0])*f,O=u.point[1]+(o.point[1]-u.point[1])*f,j.translate(-x[0]*C[s].an*.005,-x[1]*M*.01),c=!1):h&&(d+=o.partialLength,(p+=1)>=h.length&&(p=0,g[m+=1]?h=g[m].points:b.v.c?(p=0,h=g[m=0].points):(d-=o.partialLength,h=null)),h&&(u=o,w=(o=h[p]).partialLength));I=C[s].an/2-C[s].add,j.translate(-I,0,0)}else I=C[s].an/2-C[s].add,j.translate(-I,0,0),j.translate(-x[0]*C[s].an*.005,-x[1]*M*.01,0);for(P=0;P<A;P+=1)(E=v[P].a).t.propType&&(L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars),0===a&&0===e.j||(this._hasMaskedPath?L.length?l+=E.t.v*L[0]:l+=E.t.v*L:L.length?a+=E.t.v*L[0]:a+=E.t.v*L));for(e.strokeWidthAnim&&(W=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(q=[e.fc[0],e.fc[1],e.fc[2]]),P=0;P<A;P+=1)(E=v[P].a).a.propType&&((L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars)).length?j.translate(-E.a.v[0]*L[0],-E.a.v[1]*L[1],E.a.v[2]*L[2]):j.translate(-E.a.v[0]*L,-E.a.v[1]*L,E.a.v[2]*L));for(P=0;P<A;P+=1)(E=v[P].a).s.propType&&((L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars)).length?j.scale(1+(E.s.v[0]-1)*L[0],1+(E.s.v[1]-1)*L[1],1):j.scale(1+(E.s.v[0]-1)*L,1+(E.s.v[1]-1)*L,1));for(P=0;P<A;P+=1){if(E=v[P].a,L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars),E.sk.propType&&(L.length?j.skewFromAxis(-E.sk.v*L[0],E.sa.v*L[1]):j.skewFromAxis(-E.sk.v*L,E.sa.v*L)),E.r.propType&&(L.length?j.rotateZ(-E.r.v*L[2]):j.rotateZ(-E.r.v*L)),E.ry.propType&&(L.length?j.rotateY(E.ry.v*L[1]):j.rotateY(E.ry.v*L)),E.rx.propType&&(L.length?j.rotateX(E.rx.v*L[0]):j.rotateX(E.rx.v*L)),E.o.propType&&(L.length?R+=(E.o.v*L[0]-R)*L[0]:R+=(E.o.v*L-R)*L),e.strokeWidthAnim&&E.sw.propType&&(L.length?W+=E.sw.v*L[0]:W+=E.sw.v*L),e.strokeColorAnim&&E.sc.propType)for(G=0;G<3;G+=1)L.length?V[G]+=(E.sc.v[G]-V[G])*L[0]:V[G]+=(E.sc.v[G]-V[G])*L;if(e.fillColorAnim&&e.fc){if(E.fc.propType)for(G=0;G<3;G+=1)L.length?q[G]+=(E.fc.v[G]-q[G])*L[0]:q[G]+=(E.fc.v[G]-q[G])*L;E.fh.propType&&(q=L.length?addHueToRGB(q,E.fh.v*L[0]):addHueToRGB(q,E.fh.v*L)),E.fs.propType&&(q=L.length?addSaturationToRGB(q,E.fs.v*L[0]):addSaturationToRGB(q,E.fs.v*L)),E.fb.propType&&(q=L.length?addBrightnessToRGB(q,E.fb.v*L[0]):addBrightnessToRGB(q,E.fb.v*L))}}for(P=0;P<A;P+=1)(E=v[P].a).p.propType&&(L=v[P].s.getMult(C[s].anIndexes[P],y.a[P].s.totalChars),this._hasMaskedPath?L.length?j.translate(0,E.p.v[1]*L[0],-E.p.v[2]*L[1]):j.translate(0,E.p.v[1]*L,-E.p.v[2]*L):L.length?j.translate(E.p.v[0]*L[0],E.p.v[1]*L[1],-E.p.v[2]*L[2]):j.translate(E.p.v[0]*L,E.p.v[1]*L,-E.p.v[2]*L));if(e.strokeWidthAnim&&(z=W<0?0:W),e.strokeColorAnim&&(H="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(U="rgb("+Math.round(255*q[0])+","+Math.round(255*q[1])+","+Math.round(255*q[2])+")"),this._hasMaskedPath){if(j.translate(0,-e.ls),j.translate(0,x[1]*M*.01+i,0),this._pathData.p.v){k=(o.point[1]-u.point[1])/(o.point[0]-u.point[0]);var oe=180*Math.atan(k)/Math.PI;o.point[0]<u.point[0]&&(oe+=180),j.rotate(-oe*Math.PI/180)}j.translate(B,O,0),l-=x[0]*C[s].an*.005,C[s+1]&&K!==C[s+1].ind&&(l+=C[s].an/2,l+=.001*e.tr*e.finalSize)}else{switch(j.translate(a,i,0),e.ps&&j.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:j.translate(C[s].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[s].line]),0,0);break;case 2:j.translate(C[s].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[C[s].line])/2,0,0)}j.translate(0,-e.ls),j.translate(I,0,0),j.translate(x[0]*C[s].an*.005,x[1]*M*.01,0),a+=C[s].l+.001*e.tr*e.finalSize}"html"===N?ee=j.toCSS():"svg"===N?ee=j.to2dCSS():te=[j.props[0],j.props[1],j.props[2],j.props[3],j.props[4],j.props[5],j.props[6],j.props[7],j.props[8],j.props[9],j.props[10],j.props[11],j.props[12],j.props[13],j.props[14],j.props[15]],J=R}$<=s?(T=new LetterProps(J,z,H,U,ee,te),this.renderedLetters.push(T),$+=1,this.lettersChangedFlag=!0):(T=this.renderedLetters[s],this.lettersChangedFlag=T.update(J,z,H,U,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(e,t,a){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,a),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var a,i,s=t.length,n="";for(a=0;a<s;a+=1)"sh"===t[a].ty&&(i=t[a].ks.k,n+=buildShapeString(i,i.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,a,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[a])/2,0,0)}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,a){this.textSpans=[],this.renderType="svg",this.initElement(e,t,a)}function ISolidElement(e,t,a){this.initElement(e,t,a)}function NullElement(e,t,a){this.initFrame(),this.initBaseData(e,t,a),this.initFrame(),this.initTransform(e,t,a),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(e,t,a){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,a),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var a="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),a+=s}if(t&&t.description){var n=createNS("desc"),r=createElementID();n.setAttribute("id",r),n.textContent=t.description,this.svgElement.appendChild(n),a+=" "+r}a&&this.svgElement.setAttribute("aria-labelledby",a);var l=createNS("defs");this.svgElement.appendChild(l);var o=createNS("g");this.svgElement.appendChild(o),this.layerElement=o,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&!1===t.hideOnTransparent),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,a=e.length,i=[],s="";t<a;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var a=e.shapes[0];if(a.it){var i=a.it[a.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var a=this.textProperty.currentData;this.renderedLetters=createSizedArray(a?a.l.length:0),a.fc?this.layerElement.setAttribute("fill",this.buildColor(a.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),a.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(a.sc)),this.layerElement.setAttribute("stroke-width",a.sw)),this.layerElement.setAttribute("font-size",a.finalSize);var i=this.globalData.fontManager.getFontByName(a.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=a.fWeight,n=a.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",a.t);var r,l=a.l||[],o=!!this.globalData.fontManager.chars;t=l.length;var d=this.mHelper,c=this.data.singleShape,p=0,m=0,u=!0,h=.001*a.tr*a.finalSize;if(!c||o||a.sz){var g,w=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!o||!c||0===e){if(r=w>e?this.textSpans[e].span:createNS(o?"g":"text"),w<=e){if(r.setAttribute("stroke-linecap","butt"),r.setAttribute("stroke-linejoin","round"),r.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=r,o){var _=createNS("g");r.appendChild(_),this.textSpans[e].childSpan=_}this.textSpans[e].span=r,this.layerElement.appendChild(r)}r.style.display="inherit"}if(d.reset(),c&&(l[e].n&&(p=-h,m+=a.yOffset,m+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(a,d,l[e].line,p,m),p+=l[e].l||0,p+=h),o){var f;if(1===(g=this.globalData.fontManager.getCharData(a.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(a.f).fFamily)).t)f=new SVGCompElement(g.data,this.globalData,this);else{var k=emptyShapeData;g.data&&g.data.shapes&&(k=this.buildShapeData(g.data,a.finalSize)),f=new SVGShapeElement(k,this.globalData,this)}if(this.textSpans[e].glyph){var b=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(b.layerElement),b.destroy()}this.textSpans[e].glyph=f,f._debug=!0,f.prepareFrame(0),f.renderFrame(),this.textSpans[e].childSpan.appendChild(f.layerElement),1===g.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+a.finalSize/100+","+a.finalSize/100+")")}else c&&r.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),r.textContent=l[e].val,r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&r&&r.setAttribute("d","")}else{var x=this.textContainer,v="start";switch(a.j){case 1:v="end";break;case 2:v="middle";break;default:v="start"}x.setAttribute("text-anchor",v),x.setAttribute("letter-spacing",h);var y=this.buildTextContents(a.finalText);for(t=y.length,m=a.ps?a.ps[1]+a.ascent:0,e=0;e<t;e+=1)(r=this.textSpans[e].span||createNS("tspan")).textContent=y[e],r.setAttribute("x",0),r.setAttribute("y",m),r.style.display="inherit",x.appendChild(r),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=r,m+=a.finalLineHeight;this.layerElement.appendChild(x)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t,a=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<a;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var a,i,s,n=this.textAnimator.renderedLetters,r=this.textProperty.currentData.l;for(t=r.length,e=0;e<t;e+=1)r[e].n||(a=n[e],i=this.textSpans[e].span,(s=this.textSpans[e].glyph)&&s.renderFrame(),a._mdf.m&&i.setAttribute("transform",a.m),a._mdf.o&&i.setAttribute("opacity",a.o),a._mdf.sw&&i.setAttribute("stroke-width",a.sw),a._mdf.sc&&i.setAttribute("stroke",a.sc),a._mdf.fc&&i.setAttribute("fill",a.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)},NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var a=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();a.setAttribute("id",s),a.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(a),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,a=this.layers.length;for(t=0;t<a;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var a=this.createItem(this.layers[e]);if(t[e]=a,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(a),a.initExpressions()),this.appendElementInPos(a,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(-1===i)return;if(this.elements[i]&&!0!==this.elements[i]){var s=t[i].getMatte(this.layers[e].tt);a.setMatte(s)}else this.buildItem(i),this.addPendingElement(a)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,a=this.elements.length;t<a;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i].getMatte(this.layers[t].tt);e.setMatte(s);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var a=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=a-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<a;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var a=e.getBaseElement();if(a){for(var i,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(a,i):this.layerElement.appendChild(a)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,a){this.initFrame(),this.initBaseData(e,t,a),this.initTransform(e,t,a),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&t.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var a,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),a=i-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&(this.elements[a].prepareFrame(this.renderedFrame-this.layers[a].st),this.elements[a]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,a=e.length,i="_";for(t=0;t<a;t+=1)i+=e[t].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(e,t){for(var a=0,i=e.transforms.length,s=t;a<i&&!t;){if(e.transforms[a].transform.mProps._mdf){s=!0;break}a+=1}if(s)for(e.finalTransform.reset(),a=i-1;a>=0;a-=1)e.finalTransform.multiply(e.transforms[a].transform.mProps.v);e._mdf=s},processSequences:function(e){var t,a=this.sequenceList.length;for(t=0;t<a;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var e="__lottie_element_luma_buffer",t=null,a=null,i=null;function s(){var s,n,r;t||(s=createNS("svg"),n=createNS("filter"),r=createNS("feColorMatrix"),n.setAttribute("id",e),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),n.appendChild(r),s.appendChild(n),s.setAttribute("id",e+"_svg"),featureSupport.svgLumaHidden&&(s.style.display="none"),i=s,document.body.appendChild(i),t=createTag("canvas"),(a=t.getContext("2d")).filter="url(#"+e+")",a.fillStyle="rgba(0,0,0,0)",a.fillRect(0,0,1,1))}return{load:s,get:function(i){return t||s(),t.width=i.width,t.height=i.height,a.filter="url(#"+e+")",t}}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var a=createTag("canvas");return a.width=e,a.height=t,a}var assetLoader={loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas},registeredEffects={};function CVEffects(e){var t,a,i=e.data.ef?e.data.ef.length:0;for(this.filters=[],t=0;t<i;t+=1){a=null;var s=e.data.ef[t].ty;registeredEffects[s]&&(a=new(0,registeredEffects[s].effect)(e.effectsManager.effectElements[t],e)),a&&this.filters.push(a)}this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){var a;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,s=!1;for(a=0;a<i;a+=1)"n"!==this.masksProperties[a].mode&&(s=!0),this.viewData[a]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[a],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(e){var t,a=this.filters.length;for(t=0;t<a;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,a=this.filters.length,i=[];for(t=0;t<a;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,a,i,s=this.element.finalTransform.mat,n=this.element.canvasContext,r=this.masksProperties.length;for(n.beginPath(),e=0;e<r;e+=1)if("n"!==this.masksProperties[e].mode){var l;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),i=this.viewData[e].v,t=s.applyToPointArray(i.v[0][0],i.v[0][1],0),n.moveTo(t[0],t[1]);var o=i._length;for(l=1;l<o;l+=1)a=s.applyToTriplePoints(i.o[l-1],i.i[l],i.v[l]),n.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);a=s.applyToTriplePoints(i.o[l-1],i.i[0],i.v[0]),n.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(e,t,a,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var r,l=a.length;for(s=0;s<l;s+=1)a[s].closed||(r={transforms:i.addTransformSequence(a[s].transforms),trNodes:[]},this.styledShapes.push(r),a[s].elements.push(r))}function CVShapeElement(e,t,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,a)}function CVTextElement(e,t,a){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,a)}function CVImageElement(e,t,a){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,a)}function CVSolidElement(e,t,a){this.initElement(e,t,a)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){var e;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,e=0;e<15;e+=1){var t=new CanvasContext;this.stack[e]=t}this._length=15,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(e,t,a){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,a),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(e,t,a){this.initElement(e,t,a)}function HShapeElement(e,t,a){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,a),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(e,t,a){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,a)}function HCameraElement(e,t,a){this.initFrame(),this.initBaseData(e,t,a),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,a){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,a)}function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(e,t,a){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,a),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&!1===t.hideOnTransparent),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||void 0===t.runExpressions||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var e=this.globalData.canvasContext,t=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(t);var a=assetLoader.createCanvas(e.canvas.width,e.canvas.height);this.buffers.push(a),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(e){e.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var e=this.buffers[0].getContext("2d");this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var e=this.buffers[1],t=e.getContext("2d");if(this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas);a.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(e,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(e){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||e)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var t=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(t),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var a={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},i={};if("fl"===e.ty||"st"===e.ty?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(a.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(a.lc=lineCapEnum[e.lc||2],a.lj=lineJoinEnum[e.lj||2],1==e.lj&&(a.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(a.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(a.da=i.d.dashArray,a.do=i.d.dashoffset[0])}}else a.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(a),i.style=a,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,a=this.stylesList.length;for(t=0;t<a;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,a=e.length;for(t=0;t<a;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,a,i,s){var n,r,l,o,d,c,p=e.length-1,m=[],u=[],h=[].concat(s);for(n=p;n>=0;n-=1){if((o=this.searchProcessedElement(e[n]))?t[n]=a[o-1]:e[n]._shouldRender=i,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)o?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],h),m.push(t[n].style);else if("gr"===e[n].ty){if(o)for(l=t[n].it.length,r=0;r<l;r+=1)t[n].prevViewData[r]=t[n].it[r];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,h)}else"tr"===e[n].ty?(o||(c=this.createTransformElement(e[n]),t[n]=c),h.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?o||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty||"zz"===e[n].ty||"op"===e[n].ty?(o?(d=t[n]).closed=!1:((d=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=d,this.shapeModifiers.push(d)),u.push(d)):"rp"===e[n].ty&&(o?(d=t[n]).closed=!0:(d=ShapeModifiers.getModifier(e[n].ty),t[n]=d,d.init(this,e,n,t),this.shapeModifiers.push(d),i=!1),u.push(d));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(m),p=u.length,n=0;n<p;n+=1)u[n].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t,a,i,s,n,r,l,o,d=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(e=0;e<d;e+=1)if(("st"!==(l=(o=this.stylesList[e]).type)&&"gs"!==l||0!==o.wi)&&o.data._shouldRender&&0!==o.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),n=o.elements,"st"===l||"gs"===l?(c.ctxStrokeStyle("st"===l?o.co:o.grd),c.ctxLineWidth(o.wi),c.ctxLineCap(o.lc),c.ctxLineJoin(o.lj),c.ctxMiterLimit(o.ml||0)):c.ctxFillStyle("fl"===l?o.co:o.grd),c.ctxOpacity(o.coOp),"st"!==l&&"gs"!==l&&p.beginPath(),c.ctxTransform(o.preTransforms.finalTransform.props),a=n.length,t=0;t<a;t+=1){for("st"!==l&&"gs"!==l||(p.beginPath(),o.da&&(p.setLineDash(o.da),p.lineDashOffset=o.do)),s=(r=n[t].trNodes).length,i=0;i<s;i+=1)"m"===r[i].t?p.moveTo(r[i].p[0],r[i].p[1]):"c"===r[i].t?p.bezierCurveTo(r[i].pts[0],r[i].pts[1],r[i].pts[2],r[i].pts[3],r[i].pts[4],r[i].pts[5]):p.closePath();"st"!==l&&"gs"!==l||(c.ctxStroke(),o.da&&p.setLineDash(this.dashResetter))}"st"!==l&&"gs"!==l&&this.globalData.renderer.ctxFill(o.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,a,i){var s,n;for(n=e,s=t.length-1;s>=0;s-=1)"tr"===t[s].ty?(n=a[s].transform,this.renderShapeTransform(e,n)):"sh"===t[s].ty||"el"===t[s].ty||"rc"===t[s].ty||"sr"===t[s].ty?this.renderPath(t[s],a[s]):"fl"===t[s].ty?this.renderFill(t[s],a[s],n):"st"===t[s].ty?this.renderStroke(t[s],a[s],n):"gf"===t[s].ty||"gs"===t[s].ty?this.renderGradientFill(t[s],a[s],n):"gr"===t[s].ty?this.renderShape(n,t[s].it,a[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var a,i,s,n=e.trNodes,r=t.paths,l=r._length;n.length=0;var o=e.transforms.finalTransform;for(s=0;s<l;s+=1){var d=r.shapes[s];if(d&&d.v){for(i=d._length,a=1;a<i;a+=1)1===a&&n.push({t:"m",p:o.applyToPointArray(d.v[0][0],d.v[0][1],0)}),n.push({t:"c",pts:o.applyToTriplePoints(d.o[a-1],d.i[a],d.v[a])});1===i&&n.push({t:"m",p:o.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&i&&(n.push({t:"c",pts:o.applyToTriplePoints(d.o[a-1],d.i[0],d.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var a,i=t.styledShapes.length;for(a=0;a<i;a+=1)this.renderStyledShape(t.styledShapes[a],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,a){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||a._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*a.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,a){var i,s=t.style;if(!s.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,r=this.globalData.canvasContext,l=t.s.v,o=t.e.v;if(1===e.t)i=r.createLinearGradient(l[0],l[1],o[0],o[1]);else{var d=Math.sqrt(Math.pow(l[0]-o[0],2)+Math.pow(l[1]-o[1],2)),c=Math.atan2(o[1]-l[1],o[0]-l[0]),p=t.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var m=d*p,u=Math.cos(c+t.a.v)*m+l[0],h=Math.sin(c+t.a.v)*m+l[1];i=r.createRadialGradient(u,h,0,l[0],l[1],d)}var g=e.g.p,w=t.g.c,_=1;for(n=0;n<g;n+=1)t.g._hasOpacity&&t.g._collapsable&&(_=t.g.o[2*n+1]),i.addColorStop(w[4*n]/100,"rgba("+w[4*n+1]+","+w[4*n+2]+","+w[4*n+3]+","+_+")");s.grd=i}s.coOp=t.o.v*a.opacity},CVShapeElement.prototype.renderStroke=function(e,t,a){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||a._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*a.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var a=!1;e.sc&&(a=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i,s,n,r,l,o,d,c,p,m,u,h,g=this.globalData.fontManager.getFontByName(e.f),w=e.l,_=this.mHelper;this.stroke=a,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,s=e.finalText.length;var f=this.data.singleShape,k=.001*e.tr*e.finalSize,b=0,x=0,v=!0,y=0;for(i=0;i<s;i+=1){r=(n=this.globalData.fontManager.getCharData(e.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},_.reset(),f&&w[i].n&&(b=-k,x+=e.yOffset,x+=v?1:0,v=!1),p=(d=r.shapes?r.shapes[0].it:[]).length,_.scale(e.finalSize/100,e.finalSize/100),f&&this.applyTextPropertiesToMatrix(e,_,w[i].line,b,x),u=createSizedArray(p-1);var j=0;for(c=0;c<p;c+=1)if("sh"===d[c].ty){for(o=d[c].ks.k.i.length,m=d[c].ks.k,h=[],l=1;l<o;l+=1)1===l&&h.push(_.applyToX(m.v[0][0],m.v[0][1],0),_.applyToY(m.v[0][0],m.v[0][1],0)),h.push(_.applyToX(m.o[l-1][0],m.o[l-1][1],0),_.applyToY(m.o[l-1][0],m.o[l-1][1],0),_.applyToX(m.i[l][0],m.i[l][1],0),_.applyToY(m.i[l][0],m.i[l][1],0),_.applyToX(m.v[l][0],m.v[l][1],0),_.applyToY(m.v[l][0],m.v[l][1],0));h.push(_.applyToX(m.o[l-1][0],m.o[l-1][1],0),_.applyToY(m.o[l-1][0],m.o[l-1][1],0),_.applyToX(m.i[0][0],m.i[0][1],0),_.applyToY(m.i[0][0],m.i[0][1],0),_.applyToX(m.v[0][0],m.v[0][1],0),_.applyToY(m.v[0][0],m.v[0][1],0)),u[j]=h,j+=1}f&&(b+=w[i].l,b+=k),this.textSpans[y]?this.textSpans[y].elem=u:this.textSpans[y]={elem:u},y+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,a,i,s,n;this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var r,l=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;t=o.length;var d,c,p=null,m=null,u=null,h=this.globalData.renderer;for(e=0;e<t;e+=1)if(!o[e].n){if((r=l[e])&&(h.save(),h.ctxTransform(r.p),h.ctxOpacity(r.o)),this.fill){for(r&&r.fc?p!==r.fc&&(h.ctxFillStyle(r.fc),p=r.fc):p!==this.values.fill&&(p=this.values.fill,h.ctxFillStyle(this.values.fill)),i=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),a=0;a<i;a+=1)for(n=(c=d[a]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),s=2;s<n;s+=6)this.globalData.canvasContext.bezierCurveTo(c[s],c[s+1],c[s+2],c[s+3],c[s+4],c[s+5]);this.globalData.canvasContext.closePath(),h.ctxFill()}if(this.stroke){for(r&&r.sw?u!==r.sw&&(u=r.sw,h.ctxLineWidth(r.sw)):u!==this.values.sWidth&&(u=this.values.sWidth,h.ctxLineWidth(this.values.sWidth)),r&&r.sc?m!==r.sc&&(m=r.sc,h.ctxStrokeStyle(r.sc)):m!==this.values.stroke&&(m=this.values.stroke,h.ctxStrokeStyle(this.values.stroke)),i=(d=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),a=0;a<i;a+=1)for(n=(c=d[a]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),s=2;s<n;s+=6)this.globalData.canvasContext.bezierCurveTo(c[s],c[s+1],c[s+2],c[s+3],c[s+4],c[s+5]);this.globalData.canvasContext.closePath(),h.ctxStroke()}r&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,a,i=e.getContext("2d"),s=this.img.width,n=this.img.height,r=s/n,l=this.assetData.w/this.assetData.h,o=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;r>l&&"xMidYMid slice"===o||r<l&&"xMidYMid slice"!==o?t=(a=n)*l:a=(t=s)/l,i.drawImage(this.img,(s-t)/2,(n-a)/2,t,a,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){1===e[0]&&0===e[1]&&0===e[4]&&1===e[5]&&0===e[12]&&0===e[13]||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,a,i){this.canvasContext.fillRect(e,t,a,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){this.renderConfig.clearCanvas?(e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)):this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var a="0px 0px 0px";t.transformOrigin=a,t.mozTransformOrigin=a,t.webkitTransformOrigin=a,t["-webkit-transform"]=a,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){var a,i,s,n;if(this.reset(),e?(a=e,i=t,this.canvasContext.canvas.width=a,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(a=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(a=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=a*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var r=this.renderConfig.preserveAspectRatio.split(" "),l=r[1]||"meet",o=r[0]||"xMidYMid",d=o.substr(0,4),c=o.substr(4);s=a/i,(n=this.transformCanvas.w/this.transformCanvas.h)>s&&"meet"===l||n<s&&"slice"===l?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=a/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===d&&(n<s&&"meet"===l||n>s&&"slice"===l)?(a-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===d&&(n<s&&"meet"===l||n>s&&"slice"===l)?(a-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(n>s&&"meet"===l||n<s&&"slice"===l)?(i-this.transformCanvas.h*(a/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(n>s&&"meet"===l||n<s&&"slice"===l)?(i-this.transformCanvas.h*(a/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=a/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var a;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var i=this.layers.length;for(this.completeLayers||this.checkLayers(e),a=i-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].prepareFrame(e-this.layers[a].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),a=i-1;a>=0;a-=1)(this.completeLayers||this.elements[a])&&this.elements[a].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var a=this.createItem(this.layers[e],this,this.globalData);t[e]=a,a.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t,a=this.stack[this.cArrPos],i=a.transform,s=this.cTr.props;for(t=0;t<16;t+=1)s[t]=i[t];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13]),(e||-1!==a.opacity&&this.currentOpacity!==a.opacity)&&(this.nativeContext.globalAlpha=a.opacity,this.currentOpacity=a.opacity),this.currentFillStyle=a.fillStyle,this.currentStrokeStyle=a.strokeStyle,this.currentLineWidth=a.lineWidth,this.currentLineCap=a.lineCap,this.currentLineJoin=a.lineJoin,this.currentMiterLimit=a.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var a,i=this.stack[this.cArrPos];for(a=0;a<16;a+=1)i.transform[a]=t[a];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=i.opacity,s.fillStyle=i.fillStyle,s.strokeStyle=i.strokeStyle,s.lineWidth=i.lineWidth,s.lineCap=i.lineCap,s.lineJoin=i.lineJoin,s.miterLimit=i.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var a=t.props;this.nativeContext.setTransform(a[0],a[1],a[4],a[5],a[12],a[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,a,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,a,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var a,i=e.length;for(a=0;a<i;a+=1)t=e[a].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var a,i,s,n,r,l=e.sh.v,o=e.transformers,d=l._length;if(!(d<=1)){for(a=0;a<d-1;a+=1)i=this.getTransformedPoint(o,l.v[a]),s=this.getTransformedPoint(o,l.o[a]),n=this.getTransformedPoint(o,l.i[a+1]),r=this.getTransformedPoint(o,l.v[a+1]),this.checkBounds(i,s,n,r,t);l.c&&(i=this.getTransformedPoint(o,l.v[a]),s=this.getTransformedPoint(o,l.o[a]),n=this.getTransformedPoint(o,l.i[0]),r=this.getTransformedPoint(o,l.v[0]),this.checkBounds(i,s,n,r,t))}},HShapeElement.prototype.checkBounds=function(e,t,a,i,s){this.getBoundsOfCurve(e,t,a,i);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,a,i){for(var s,n,r,l,o,d,c,p=[[e[0],i[0]],[e[1],i[1]]],m=0;m<2;++m)n=6*e[m]-12*t[m]+6*a[m],s=-3*e[m]+9*t[m]-9*a[m]+3*i[m],r=3*t[m]-3*e[m],n|=0,r|=0,0==(s|=0)&&0===n||(0===s?(l=-r/n)>0&&l<1&&p[m].push(this.calculateF(l,e,t,a,i,m)):(o=n*n-4*r*s)>=0&&((d=(-n+bmSqrt(o))/(2*s))>0&&d<1&&p[m].push(this.calculateF(d,e,t,a,i,m)),(c=(-n-bmSqrt(o))/(2*s))>0&&c<1&&p[m].push(this.calculateF(c,e,t,a,i,m))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(e,t,a,i,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*a[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var a,i=e.length;for(a=0;a<i;a+=1)e[a]&&e[a].sh?this.calculateShapeBoundingBox(e[a],t):e[a]&&e[a].it?this.calculateBoundingBox(e[a].it,t):e[a]&&e[a].style&&e[a].w&&this.expandStrokeBoundingBox(e[a].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var a=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>a&&(a=s)}a*=e.mult}else a=e.v*e.mult;t.x-=a,t.xMax+=a,t.y-=a,t.yMax+=a},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var a=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),a=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),a=!0),a||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,a=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=a,t.color=a,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i,s,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var r=e.fWeight,l=e.fStyle;t.fontStyle=l,t.fontWeight=r}var o,d,c,p=e.l;s=p.length;var m,u=this.mHelper,h="",g=0;for(i=0;i<s;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?o=this.textPaths[g]:((o=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),o.setAttribute("stroke-linejoin",lineJoinEnum[2]),o.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(d=this.textSpans[g]).children[0]:((d=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(o),styleDiv(d)))):this.isMasked?o=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(d=this.textSpans[g],o=this.textPaths[g]):(styleDiv(d=createTag("span")),styleDiv(o=createTag("span")),d.appendChild(o)),this.globalData.fontManager.chars){var w,_=this.globalData.fontManager.getCharData(e.finalText[i],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(w=_?_.data:null,u.reset(),w&&w.shapes&&w.shapes.length&&(m=w.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),h=this.createPathShape(u,m),o.setAttribute("d",h)),this.isMasked)this.innerElem.appendChild(o);else{if(this.innerElem.appendChild(d),w&&w.shapes){document.body.appendChild(c);var f=c.getBBox();c.setAttribute("width",f.width+2),c.setAttribute("height",f.height+2),c.setAttribute("viewBox",f.x-1+" "+(f.y-1)+" "+(f.width+2)+" "+(f.height+2));var k=c.style,b="translate("+(f.x-1)+"px,"+(f.y-1)+"px)";k.transform=b,k.webkitTransform=b,p[i].yOffset=f.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);d.appendChild(c)}}else if(o.textContent=p[i].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(o);else{this.innerElem.appendChild(d);var x=o.style,v="translate3d(0,"+-e.finalSize/1.2+"px,0)";x.transform=v,x.webkitTransform=v}this.isMasked?this.textSpans[g]=o:this.textSpans[g]=d,this.textSpans[g].style.display="block",this.textPaths[g]=o,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var e;if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var a,i,s,n,r,l=0,o=this.textAnimator.renderedLetters,d=this.textProperty.currentData.l;for(i=d.length,a=0;a<i;a+=1)d[a].n?l+=1:(n=this.textSpans[a],r=this.textPaths[a],s=o[l],l+=1,s._mdf.m&&(this.isMasked?n.setAttribute("transform",s.m):(n.style.webkitTransform=s.m,n.style.transform=s.m)),n.style.opacity=s.o,s.sw&&s._mdf.sw&&r.setAttribute("stroke-width",s.sw),s.sc&&s._mdf.sc&&r.setAttribute("stroke",s.sc),s.fc&&s._mdf.fc&&(r.setAttribute("fill",s.fc),r.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=p,e.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,a,i,s=this.comp.threeDElements.length;for(e=0;e<s;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){a=t.perspectiveElem.style,i=t.container.style;var n=this.pe.v+"px",r="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.perspective=n,a.webkitPerspective=n,i.transformOrigin=r,i.mozTransformOrigin=r,i.webkitTransformOrigin=r,a.transform=l,a.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,a=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)a=this.hierarchy[e].finalTransform.mProp._mdf||a;if(a||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var i=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var s;s=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),r=[s[0]/n,s[1]/n,s[2]/n],l=Math.sqrt(r[2]*r[2]+r[0]*r[0]),o=Math.atan2(r[1],l),d=Math.atan2(r[0],-r[2]);this.mat.rotateY(d).rotateX(-o)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var p,m,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(p=this.comp.threeDElements[e]).type){if(c){var h=this.mat.toCSS();(u=p.container.style).transform=h,u.webkitTransform=h}this.pe._mdf&&((m=p.perspectiveElem.style).perspective=this.pe.v+"px",m.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var a=e.getBaseElement();if(a){var i=this.layers[t];if(i.ddd&&this.supports3d)this.addTo3dContainer(a,t);else if(this.threeDElements)this.addTo3dContainer(a,t);else{for(var s,n,r=0;r<t;)this.elements[r]&&!0!==this.elements[r]&&this.elements[r].getBaseElement&&(n=this.elements[r],s=(this.layers[r].ddd?this.getThreeDContainerByPos(r):n.getBaseElement())||s),r+=1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(a,s):i.ddd&&this.supports3d||this.layerElement.appendChild(a)}}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,a=this.threeDElements.length;t<a;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var a,i,s=createTag("div");styleDiv(s);var n=createTag("div");if(styleDiv(n),"3d"===t){(a=s.style).width=this.globalData.compSize.w+"px",a.height=this.globalData.compSize.h+"px";var r="50% 50%";a.webkitTransformOrigin=r,a.mozTransformOrigin=r,a.transformOrigin=r;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=n.style).transform=l,i.webkitTransform=l}s.appendChild(n);var o={container:n,perspectiveElem:s,startPos:e,endPos:e,type:t};return this.threeDElements.push(o),o},HybridRendererBase.prototype.build3dContainers=function(){var e,t,a=this.layers.length,i="";for(e=0;e<a;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==i&&(i="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==i&&(i="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(a=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var a=0,i=this.threeDElements.length;a<i;){if(t<=this.threeDElements[a].endPos){for(var s,n=this.threeDElements[a].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(s=this.elements[n].getBaseElement()),n+=1;s?this.threeDElements[a].container.insertBefore(e,s):this.threeDElements[a].container.appendChild(e);break}a+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),a=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),a.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,a,i,s=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,r=s/n;this.globalData.compSize.w/this.globalData.compSize.h>r?(e=s/this.globalData.compSize.w,t=s/this.globalData.compSize.w,a=0,i=(n-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,a=(s-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,i=0);var l=this.resizerElem.style;l.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+a+","+i+",0,1)",l.transform=l.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,a=this.globalData.compSize.h,i=this.threeDElements.length;for(e=0;e<i;e+=1){var s=this.threeDElements[e].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(a,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,a=e.length,i=createTag("div");for(t=0;t<a;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var a,i=0;i<t;)this.elements[i]&&this.elements[i].getBaseElement&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(e,a):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=function(e){function t(t){for(var a=0,i=e.layers.length;a<i;){if(e.layers[a].nm===t||e.layers[a].ind===t)return e.elements[a].layerInterface;a+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t};function _typeof$2(e){return _typeof$2="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},_typeof$2(e)}function seedRandom(e,t){var a=this,i=256,s="random",n=t.pow(i,6),r=t.pow(2,52),l=2*r,o=255;function d(e){var t,a=e.length,s=this,n=0,r=s.i=s.j=0,l=s.S=[];for(a||(e=[a++]);n<i;)l[n]=n++;for(n=0;n<i;n++)l[n]=l[r=o&r+e[n%a]+(t=l[n])],l[r]=t;s.g=function(e){for(var t,a=0,n=s.i,r=s.j,l=s.S;e--;)t=l[n=o&n+1],a=a*i+l[o&(l[n]=l[r=o&r+t])+(l[r]=t)];return s.i=n,s.j=r,a}}function c(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var a,i=[],s=_typeof$2(e);if(t&&"object"==s)for(a in e)try{i.push(p(e[a],t-1))}catch(e){}return i.length?i:"string"==s?e:e+"\0"}function m(e,t){for(var a,i=e+"",s=0;s<i.length;)t[o&s]=o&(a^=19*t[o&s])+i.charCodeAt(s++);return u(t)}function u(e){return String.fromCharCode.apply(0,e)}t["seed"+s]=function(o,h,g){var w=[],_=m(p((h=!0===h?{entropy:!0}:h||{}).entropy?[o,u(e)]:null===o?function(){try{var t=new Uint8Array(i);return(a.crypto||a.msCrypto).getRandomValues(t),u(t)}catch(t){var s=a.navigator,n=s&&s.plugins;return[+new Date,a,n,a.screen,u(e)]}}():o,3),w),f=new d(w),k=function(){for(var e=f.g(6),t=n,a=0;e<r;)e=(e+a)*i,t*=i,a=f.g(1);for(;e>=l;)e/=2,t/=2,a>>>=1;return(e+a)/t};return k.int32=function(){return 0|f.g(4)},k.quick=function(){return f.g(4)/4294967296},k.double=k,m(u(f.S),e),(h.pass||g||function(e,a,i,n){return n&&(n.S&&c(n,f),e.state=function(){return c(f,{})}),i?(t[s]=e,a):e})(k,_,"global"in h?h.global:this==t,h.state)},m(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){return _typeof$1="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},_typeof$1(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||t instanceof Number||"boolean"===e||"string"===e}function $bm_neg(e){var t=_typeof$1(e);if("number"===t||e instanceof Number||"boolean"===t)return-e;if($bm_isInstanceOfArray(e)){var a,i=e.length,s=[];for(a=0;a<i;a+=1)s[a]=-e[a];return s}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var a=_typeof$1(e),i=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(i,t)||"string"===a||"string"===i)return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(a,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,r=t.length,l=[];s<n||s<r;)("number"==typeof e[s]||e[s]instanceof Number)&&("number"==typeof t[s]||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=void 0===t[s]?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var a=_typeof$1(e),i=_typeof$1(t);if(isNumerable(a,e)&&isNumerable(i,t))return"string"===a&&(e=parseInt(e,10)),"string"===i&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(a,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,r=t.length,l=[];s<n||s<r;)("number"==typeof e[s]||e[s]instanceof Number)&&("number"==typeof t[s]||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=void 0===t[s]?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var a,i,s,n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,a=createTypedArray("float32",s),i=0;i<s;i+=1)a[i]=e[i]*t;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,a=createTypedArray("float32",s),i=0;i<s;i+=1)a[i]=e*t[i];return a}return 0}function div(e,t){var a,i,s,n=_typeof$1(e),r=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(r,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(r,t)){for(s=e.length,a=createTypedArray("float32",s),i=0;i<s;i+=1)a[i]=e[i]/t;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(s=t.length,a=createTypedArray("float32",s),i=0;i<s;i+=1)a[i]=e/t[i];return a}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,a){if(t>a){var i=a;a=t,t=i}return Math.min(Math.max(e,t),a)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var a;t||(t=helperLengthArray);var i=Math.min(e.length,t.length),s=0;for(a=0;a<i;a+=1)s+=Math.pow(t[a]-e[a],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,a,i=e[0],s=e[1],n=e[2],r=Math.max(i,s,n),l=Math.min(i,s,n),o=(r+l)/2;if(r===l)t=0,a=0;else{var d=r-l;switch(a=o>.5?d/(2-r-l):d/(r+l),r){case i:t=(s-n)/d+(s<n?6:0);break;case s:t=(n-i)/d+2;break;case n:t=(i-s)/d+4}t/=6}return[t,a,o,e[3]]}function hue2rgb(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+6*(t-e)*a:a<.5?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function hslToRgb(e){var t,a,i,s=e[0],n=e[1],r=e[2];if(0===n)t=r,i=r,a=r;else{var l=r<.5?r*(1+n):r+n-r*n,o=2*r-l;t=hue2rgb(o,l,s+1/3),a=hue2rgb(o,l,s),i=hue2rgb(o,l,s-1/3)}return[t,a,i,e[3]]}function linear(e,t,a,i,s){if(void 0!==i&&void 0!==s||(i=t,s=a,t=0,a=1),a<t){var n=a;a=t,t=n}if(e<=t)return i;if(e>=a)return s;var r,l=a===t?0:(e-t)/(a-t);if(!i.length)return i+(s-i)*l;var o=i.length,d=createTypedArray("float32",o);for(r=0;r<o;r+=1)d[r]=i[r]+(s[r]-i[r])*l;return d}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var a,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),n=BMMath.random();for(a=0;a<i;a+=1)s[a]=e[a]+n*(t[a]-e[a]);return s}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,a,i){var s,n=e.length,r=shapePool.newElement();r.setPathData(!!i,n);var l,o,d=[0,0];for(s=0;s<n;s+=1)l=t&&t[s]?t[s]:d,o=a&&a[s]?a[s]:d,r.setTripleAt(e[s][0],e[s][1],o[0]+e[s][0],o[1]+e[s][1],l[0]+e[s][0],l[1]+e[s][1],s,!0);return r}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var a,i,s=this.pv.length?this.pv.length:1,n=createTypedArray("float32",s),r=Math.floor(5*time);for(a=0,i=0;a<r;){for(i=0;i<s;i+=1)n[i]+=-t+2*t*BMMath.random();a+=1}var l=5*time,o=l-Math.floor(l),d=createTypedArray("float32",s);if(s>1){for(i=0;i<s;i+=1)d[i]=this.pv[i]+n[i]+(-t+2*t*BMMath.random())*o;return d}return this.pv+n[0]+(-t+2*t*BMMath.random())*o}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var a=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(a[0],Math.sqrt(a[1]*a[1]+a[2]*a[2]))/degToRads;return[-Math.atan2(a[1],a[2])/degToRads,i,0]}function easeOut(e,t,a,i,s){return applyEase(easeOutBez,e,t,a,i,s)}function easeIn(e,t,a,i,s){return applyEase(easeInBez,e,t,a,i,s)}function ease(e,t,a,i,s){return applyEase(easeInOutBez,e,t,a,i,s)}function applyEase(e,t,a,i,s,n){void 0===s?(s=a,n=i):t=(t-a)/(i-a),t>1?t=1:t<0&&(t=0);var r=e(t);if($bm_isInstanceOfArray(s)){var l,o=s.length,d=createTypedArray("float32",o);for(l=0;l<o;l+=1)d[l]=(n[l]-s[l])*r+s[l];return d}return(n-s)*r+s}function nearestKey(e){var t,a,i,s=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(a=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)a=1,i=data.k[0].t;else{for(t=0;t<s-1;t+=1){if(e===data.k[t].t){a=t+1,i=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(a=t+2,i=data.k[t+1].t):(a=t+1,i=data.k[t].t);break}}-1===a&&(a=t+1,i=data.k[t].t)}else a=0,i=0;var n={};return n.index=a,n.time=i/elem.comp.globalData.frameRate,n}function key(e){var t,a,i;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,a=0;a<i;a+=1)t[a]=s[a],t.value[a]=s[a];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var e={initExpressions:function(e){var t=0,a=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=a.length;for(e=0;e<t;e+=1)a[e].release();a.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===a.indexOf(e)&&a.push(e)}}};return e.resetFrame=ExpressionManager.resetFrame,e}(),MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(t){var a,i=createSizedArray(t.viewData.length),s=t.viewData.length;for(a=0;a<s;a+=1)i[a]=new e(t.viewData[a],t.masksProperties[a]);return function(e){for(a=0;a<s;){if(t.masksProperties[a].nm===e)return i[a];a+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function a(e,t,a){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(i){if(!e.numKeys)return 0;var s;s="s"in t.keyframes[i-1]?t.keyframes[i-1].s:"e"in t.keyframes[i-2]?t.keyframes[i-2].e:t.keyframes[i-2].s;var n="unidimensional"===a?new Number(s):Object.assign({},s);return n.time=t.keyframes[i-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===a?s[0]:s,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function i(){return e}return function(s){return s?"unidimensional"===s.propType?function(t){t&&"pv"in t||(t=e);var i=1/t.mult,s=t.pv*i,n=new Number(s);return n.value=s,a(n,t,"unidimensional"),function(){return t.k&&t.getValue(),s=t.v*i,n.value!==s&&((n=new Number(s)).value=s,n[0]=s,a(n,t,"unidimensional")),n}}(s):function(e){e&&"pv"in e||(e=t);var i=1/e.mult,s=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",s),r=createTypedArray("float32",s);return n.value=r,a(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<s;t+=1)r[t]=e.v[t]*i,n[t]=r[t];return n}}(s):i}}(),TransformExpressionInterface=function(e){function t(e){switch(e){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}var a,i,s,n;return Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)}),e.p?n=ExpressionPropertyInterface(e.p):(a=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[a(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t},LayerExpressionInterface=function(){function e(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var a=this.getMatrix(t);return a.props[12]=0,a.props[13]=0,a.props[14]=0,this.applyPoint(a,e)}function a(e,t){var a=this.getMatrix(t);return this.applyPoint(a,e)}function i(e,t){var a=this.getMatrix(t);return a.props[12]=0,a.props[13]=0,a.props[14]=0,this.invertPoint(a,e)}function s(e,t){var a=this.getMatrix(t);return this.invertPoint(a,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var a,i=this._elem.hierarchy.length;for(a=0;a<i;a+=1)this._elem.hierarchy[a].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function r(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var a,i=this._elem.hierarchy.length;for(a=0;a<i;a+=1)this._elem.hierarchy[a].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function l(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var a,i=this._elem.hierarchy.length;for(a=0;a<i;a+=1)this._elem.hierarchy[a].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function o(){return[1,1,1,1]}return function(d){var c;function p(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return p.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=e,p.invertPoint=r,p.applyPoint=n,p.toWorld=a,p.toWorldVec=t,p.fromWorld=s,p.fromWorldVec=i,p.toComp=a,p.fromComp=l,p.sampleImage=o,p.sourceRectAtTime=d.sourceRectAtTime.bind(d),p._elem=d;var m=getDescriptor(c=TransformExpressionInterface(d.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:m,anchor_point:m,transform:{get:function(){return c}},active:{get:function(){return d.isInRange}}}),p.startTime=d.data.st,p.index=d.data.ind,p.source=d.data.refId,p.height=0===d.data.ty?d.data.h:100,p.width=0===d.data.ty?d.data.w:100,p.inPoint=d.data.ip/d.comp.globalData.frameRate,p.outPoint=d.data.op/d.comp.globalData.frameRate,p._name=d.data.nm,p.registerMaskInterface=function(e){p.mask=new MaskManagerInterface(e,d)},p.registerEffectsInterface=function(e){p.effect=e},p}}(),propertyGroupFactory=function(e,t){return function(a){return(a=void 0===a?1:a)<=0?e:t(a-1)}},PropertyInterface=function(e,t){var a={_name:e};return function(e){return(e=void 0===e?1:e)<=0?a:t(e-1)}},EffectsExpressionInterface=function(){function e(a,i,s,n){function r(e){for(var t=a.ef,i=0,s=t.length;i<s;){if(e===t[i].nm||e===t[i].mn||e===t[i].ix)return 5===t[i].ty?d[i]:d[i]();i+=1}throw new Error}var l,o=propertyGroupFactory(r,s),d=[],c=a.ef.length;for(l=0;l<c;l+=1)5===a.ef[l].ty?d.push(e(a.ef[l],i.effectElements[l],i.effectElements[l].propertyGroup,n)):d.push(t(i.effectElements[l],a.ef[l].ty,n,o));return"ADBE Color Control"===a.mn&&Object.defineProperty(r,"color",{get:function(){return d[0]()}}),Object.defineProperties(r,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:o}}),r.enabled=0!==a.en,r.active=r.enabled,r}function t(e,t,a,i){var s=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===t?a.comp.compInterface(e.p.v):s()}}return{createEffectsInterface:function(t,a){if(t.effectsManager){var i,s=[],n=t.data.ef,r=t.effectsManager.effectElements.length;for(i=0;i<r;i+=1)s.push(e(n[i],t.effectsManager.effectElements[i],a,t));var l=t.data.ef||[],o=function(e){for(i=0,r=l.length;i<r;){if(e===l[i].nm||e===l[i].mn||e===l[i].ix)return s[i];i+=1}return null};return Object.defineProperty(o,"numProperties",{get:function(){return l.length}}),o}return null}}}(),ShapePathInterface=function(e,t,a){var i=t.sh;function s(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?s.path:null}var n=propertyGroupFactory(s,a);return i.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:a}}),s},ShapeExpressionInterface=function(){function e(e,r,m){var u,h=[],g=e?e.length:0;for(u=0;u<g;u+=1)"gr"===e[u].ty?h.push(t(e[u],r[u],m)):"fl"===e[u].ty?h.push(a(e[u],r[u],m)):"st"===e[u].ty?h.push(s(e[u],r[u],m)):"tm"===e[u].ty?h.push(n(e[u],r[u],m)):"tr"===e[u].ty||("el"===e[u].ty?h.push(l(e[u],r[u],m)):"sr"===e[u].ty?h.push(o(e[u],r[u],m)):"sh"===e[u].ty?h.push(ShapePathInterface(e[u],r[u],m)):"rc"===e[u].ty?h.push(d(e[u],r[u],m)):"rd"===e[u].ty?h.push(c(e[u],r[u],m)):"rp"===e[u].ty?h.push(p(e[u],r[u],m)):"gf"===e[u].ty?h.push(i(e[u],r[u],m)):h.push((e[u],r[u],function(){return null})));return h}function t(t,a,i){var s=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}};s.propertyGroup=propertyGroupFactory(s,i);var n=function(t,a,i){var s,n=function(e){for(var t=0,a=s.length;t<a;){if(s[t]._name===e||s[t].mn===e||s[t].propertyIndex===e||s[t].ix===e||s[t].ind===e)return s[t];t+=1}return"number"==typeof e?s[e-1]:null};n.propertyGroup=propertyGroupFactory(n,i),s=e(t.it,a.it,n.propertyGroup),n.numProperties=s.length;var l=r(t.it[t.it.length-1],a.it[a.it.length-1],n.propertyGroup);return n.transform=l,n.propertyIndex=t.cix,n._name=t.nm,n}(t,a,s.propertyGroup),l=r(t.it[t.it.length-1],a.it[a.it.length-1],s.propertyGroup);return s.content=n,s.transform=l,Object.defineProperty(s,"_name",{get:function(){return t.nm}}),s.numProperties=t.np,s.propertyIndex=t.ix,s.nm=t.nm,s.mn=t.mn,s}function a(e,t,a){function i(e){return"Color"===e||"color"===e?i.color:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",a)),t.o.setGroupProperty(PropertyInterface("Opacity",a)),i}function i(e,t,a){function i(e){return"Start Point"===e||"start point"===e?i.startPoint:"End Point"===e||"end point"===e?i.endPoint:"Opacity"===e||"opacity"===e?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",a)),t.e.setGroupProperty(PropertyInterface("End Point",a)),t.o.setGroupProperty(PropertyInterface("Opacity",a)),i}function s(e,t,a){var i,s=propertyGroupFactory(d,a),n=propertyGroupFactory(o,s);function r(a){Object.defineProperty(o,e.d[a].nm,{get:ExpressionPropertyInterface(t.d.dataProps[a].p)})}var l=e.d?e.d.length:0,o={};for(i=0;i<l;i+=1)r(i),t.d.dataProps[i].p.setGroupProperty(n);function d(e){return"Color"===e||"color"===e?d.color:"Opacity"===e||"opacity"===e?d.opacity:"Stroke Width"===e||"stroke width"===e?d.strokeWidth:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return o}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",s)),t.o.setGroupProperty(PropertyInterface("Opacity",s)),t.w.setGroupProperty(PropertyInterface("Stroke Width",s)),d}function n(e,t,a){function i(t){return t===e.e.ix||"End"===t||"end"===t?i.end:t===e.s.ix?i.start:t===e.o.ix?i.offset:null}var s=propertyGroupFactory(i,a);return i.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",s)),t.e.setGroupProperty(PropertyInterface("End",s)),t.o.setGroupProperty(PropertyInterface("Offset",s)),i.propertyIndex=e.ix,i.propertyGroup=a,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),i.mn=e.mn,i}function r(e,t,a){function i(t){return e.a.ix===t||"Anchor Point"===t?i.anchorPoint:e.o.ix===t||"Opacity"===t?i.opacity:e.p.ix===t||"Position"===t?i.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?i.rotation:e.s.ix===t||"Scale"===t?i.scale:e.sk&&e.sk.ix===t||"Skew"===t?i.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?i.skewAxis:null}var s=propertyGroupFactory(i,a);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),i.ty="tr",i.mn=e.mn,i.propertyGroup=a,i}function l(e,t,a){function i(t){return e.p.ix===t?i.position:e.s.ix===t?i.size:null}var s=propertyGroupFactory(i,a);i.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",s)),n.p.setGroupProperty(PropertyInterface("Position",s)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),i.mn=e.mn,i}function o(e,t,a){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.rotation:e.pt.ix===t?i.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?i.outerRadius:e.os.ix===t?i.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?i.innerRoundness:null:i.innerRadius}var s=propertyGroupFactory(i,a),n="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",s)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",s)),n.pt.setGroupProperty(PropertyInterface("Points",s)),n.p.setGroupProperty(PropertyInterface("Position",s)),n.r.setGroupProperty(PropertyInterface("Rotation",s)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",s)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",s))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),i.mn=e.mn,i}function d(e,t,a){function i(t){return e.p.ix===t?i.position:e.r.ix===t?i.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?i.size:null}var s=propertyGroupFactory(i,a),n="tm"===t.sh.ty?t.sh.prop:t.sh;return i.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",s)),n.s.setGroupProperty(PropertyInterface("Size",s)),n.r.setGroupProperty(PropertyInterface("Rotation",s)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),i.mn=e.mn,i}function c(e,t,a){function i(t){return e.r.ix===t||"Round Corners 1"===t?i.radius:null}var s=propertyGroupFactory(i,a),n=t;return i.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",s)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),i.mn=e.mn,i}function p(e,t,a){function i(t){return e.c.ix===t||"Copies"===t?i.copies:e.o.ix===t||"Offset"===t?i.offset:null}var s=propertyGroupFactory(i,a),n=t;return i.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",s)),n.o.setGroupProperty(PropertyInterface("Offset",s)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),i.mn=e.mn,i}return function(t,a,i){var s;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?i:s[e-1];for(var t=0,a=s.length;t<a;){if(s[t]._name===e)return s[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return i})),s=e(t,a,n.propertyGroup),n.numProperties=s.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t;function a(e){return"ADBE Text Document"===e?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return t&&a===t.value||((t=new String(a)).value=a||new String(a),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),a};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",a=e.getFootageData();function i(e){if(a[e])return t=e,"object"===_typeof(a=a[e])?i:a;var s=e.indexOf(t);if(-1!==s){var n=parseInt(e.substr(s+t.length),10);return"object"===_typeof(a=a[n])?i:a}return""}return function(){return t="",a=e.getFootageData(),i}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers={searchExpressions:function(e,t,a){t.x&&(a.k=!0,a.x=!0,a.initiateExpression=ExpressionManager.initiateExpression,a.effectsSequence.push(a.initiateExpression(e,t,a).bind(a)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),a=this.getValueAtTime(e+-.01),i=0;if(t.length){var s;for(s=0;s<t.length;s+=1)i+=Math.pow(a[s]-t[s],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,a,i=-.001,s=this.getValueAtTime(e),n=this.getValueAtTime(e+i);if(s.length)for(t=createTypedArray("float32",s.length),a=0;a<s.length;a+=1)t[a]=(n[a]-s[a])/i;else t=(n-s)/i;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,a){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var i,s,n,r,l,o=this.comp.renderedFrame,d=this.keyframes,c=d[d.length-1].t;if(o<=c)return this.pv;if(a?s=c-(i=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>d.length-1)&&(t=d.length-1),i=c-(s=d[d.length-1-t].t)),"pingpong"===e){if(Math.floor((o-s)/i)%2!=0)return this.getValueAtTime((i-(o-s)%i+s)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(s/this.comp.globalData.frameRate,0),m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((o-s)%i+s)/this.comp.globalData.frameRate,0),h=Math.floor((o-s)/i);if(this.pv.length){for(r=(l=new Array(p.length)).length,n=0;n<r;n+=1)l[n]=(m[n]-p[n])*h+u[n];return l}return(m-p)*h+u}if("continue"===e){var g=this.getValueAtTime(c/this.comp.globalData.frameRate,0),w=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(r=(l=new Array(g.length)).length,n=0;n<r;n+=1)l[n]=g[n]+(g[n]-w[n])*((o-c)/this.comp.globalData.frameRate)/5e-4;return l}return g+(o-c)/.001*(g-w)}}return this.getValueAtTime(((o-s)%i+s)/this.comp.globalData.frameRate,0)}function t(e,t,a){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var i,s,n,r,l,o=this.comp.renderedFrame,d=this.keyframes,c=d[0].t;if(o>=c)return this.pv;if(a?s=c+(i=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>d.length-1)&&(t=d.length-1),i=(s=d[t].t)-c),"pingpong"===e){if(Math.floor((c-o)/i)%2==0)return this.getValueAtTime(((c-o)%i+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),u=this.getValueAtTime((i-(c-o)%i+c)/this.comp.globalData.frameRate,0),h=Math.floor((c-o)/i)+1;if(this.pv.length){for(r=(l=new Array(p.length)).length,n=0;n<r;n+=1)l[n]=u[n]-(m[n]-p[n])*h;return l}return u-(m-p)*h}if("continue"===e){var g=this.getValueAtTime(c/this.comp.globalData.frameRate,0),w=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(r=(l=new Array(g.length)).length,n=0;n<r;n+=1)l[n]=g[n]+(g[n]-w[n])*(c-o)/.001;return l}return g+(g-w)*(c-o)/.001}}return this.getValueAtTime((i-((c-o)%i+c))/this.comp.globalData.frameRate,0)}function a(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var a,i,s=this.comp.renderedFrame/this.comp.globalData.frameRate,n=s-e,r=t>1?(s+e-n)/(t-1):1,l=0,o=0;for(a=this.pv.length?createTypedArray("float32",this.pv.length):0;l<t;){if(i=this.getValueAtTime(n+l*r),this.pv.length)for(o=0;o<this.pv.length;o+=1)a[o]+=i[o];else a+=i;l+=1}if(this.pv.length)for(o=0;o<this.pv.length;o+=1)a[o]/=t;else a/=t;return a}function i(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var a=this.a.getValueAtTime(e);t.translate(-a[0]*this.a.mult,-a[1]*this.a.mult,a[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(e);t.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var s=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-s*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var r=this.r.getValueAtTime(e);t.rotate(-r*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var l=this.rz.getValueAtTime(e),o=this.ry.getValueAtTime(e),d=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-l*this.rz.mult).rotateY(o*this.ry.mult).rotateX(d*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var p=this.px.getValueAtTime(e),m=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(p*this.px.mult,m*this.py.mult,-u*this.pz.mult)}else t.translate(p*this.px.mult,m*this.py.mult,0)}else{var h=this.p.getValueAtTime(e);t.translate(h[0]*this.p.mult,h[1]*this.p.mult,-h[2]*this.p.mult)}return t}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,a){var r=n(e,t,a);return r.dynamicProperties.length?r.getValueAtTime=i.bind(r):r.getValueAtTime=s.bind(r),r.setGroupProperty=expressionHelpers.setGroupProperty,r};var r=PropertyFactory.getProp;PropertyFactory.getProp=function(i,s,n,l,o){var d=r(i,s,n,l,o);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=e,d.loopIn=t,d.smooth=a,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=1===s.a?s.k.length:0,d.propertyIndex=s.ix;var c=0;return 0!==n&&(c=createTypedArray("float32",1===s.a?s.k[0].s.length:s.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(i,s,d),d.k&&o.addDynamicProperty(d),d};var l=ShapePropertyFactory.getConstructorFunction(),o=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(e,t){this.k&&this.getValue();var a,i=this.v;void 0!==t&&(i=this.getValueAtTime(t,0));var s=i._length,n=i[e],r=i.v,l=createSizedArray(s);for(a=0;a<s;a+=1)l[a]="i"===e||"o"===e?[n[a][0]-r[a][0],n[a][1]-r[a][1]]:[n[a][0],n[a][1]];return l},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(a));for(var i,s=this._segmentsLength,n=s.lengths,r=s.totalLength*e,l=0,o=n.length,d=0;l<o;){if(d+n[l].addedLength>r){var c=l,p=a.c&&l===o-1?0:l+1,m=(r-d)/n[l].addedLength;i=bez.getPointInSegment(a.v[c],a.v[p],a.o[c],a.i[p],m,n[l]);break}d+=n[l].addedLength,l+=1}return i||(i=a.c?[a.v[0][0],a.v[0][1]]:[a.v[a._length-1][0],a.v[a._length-1][1]]),i},vectorOnPath:function(e,t,a){1==e?e=this.v.c:0==e&&(e=.999);var i=this.pointOnPath(e,t),s=this.pointOnPath(e+.001,t),n=s[0]-i[0],r=s[1]-i[1],l=Math.sqrt(Math.pow(n,2)+Math.pow(r,2));return 0===l?[0,0]:"tangent"===a?[n/l,r/l]:[-r/l,n/l]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],l),extendPrototype([d],o),o.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},o.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,a,i,s){var n=c(e,t,a,i,s);return n.propertyIndex=t.ix,n.lock=!1,3===a?expressionHelpers.searchExpressions(e,t.pt,n):4===a&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var a=this.calculateExpression(t);if(e.t!==a){var i={};return this.copyData(i,e),i.t=a.toString(),i.__complete=!1,i}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(e,t){var a,i,s=createNS("feMerge");for(s.setAttribute("result",e),i=0;i<t.length;i+=1)(a=createNS("feMergeNode")).setAttribute("in",t[i]),s.appendChild(a),s.appendChild(a);return s}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,a,i,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",i+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var r=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(r)}function SVGFillFilter(e,t,a,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),e.appendChild(s),this.matrixFilter=s}function SVGStrokeEffect(e,t,a){this.initialized=!1,this.filterManager=t,this.elem=a,this.paths=[]}function SVGTritoneFilter(e,t,a,i){this.filterManager=t;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var r=createNS("feFuncR");r.setAttribute("type","table"),n.appendChild(r),this.feFuncR=r;var l=createNS("feFuncG");l.setAttribute("type","table"),n.appendChild(l),this.feFuncG=l;var o=createNS("feFuncB");o.setAttribute("type","table"),n.appendChild(o),this.feFuncB=o,e.appendChild(n)}function SVGProLevelsFilter(e,t,a,i){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||0!==s[10].p.v||s[11].p.k||1!==s[11].p.v||s[12].p.k||1!==s[12].p.v||s[13].p.k||0!==s[13].p.v||s[14].p.k||1!==s[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||0!==s[17].p.v||s[18].p.k||1!==s[18].p.v||s[19].p.k||1!==s[19].p.v||s[20].p.k||0!==s[20].p.v||s[21].p.k||1!==s[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||0!==s[24].p.v||s[25].p.k||1!==s[25].p.v||s[26].p.k||1!==s[26].p.v||s[27].p.k||0!==s[27].p.v||s[28].p.k||1!==s[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||0!==s[31].p.v||s[32].p.k||1!==s[32].p.v||s[33].p.k||1!==s[33].p.v||s[34].p.k||0!==s[34].p.v||s[35].p.k||1!==s[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||0!==s[3].p.v||s[4].p.k||1!==s[4].p.v||s[5].p.k||1!==s[5].p.v||s[6].p.k||0!==s[6].p.v||s[7].p.k||1!==s[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,a,i,s){var n=t.container.globalData.renderConfig.filterSize,r=t.data.fs||n;e.setAttribute("x",r.x||n.x),e.setAttribute("y",r.y||n.y),e.setAttribute("width",r.width||n.width),e.setAttribute("height",r.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var o=createNS("feOffset");o.setAttribute("dx","25"),o.setAttribute("dy","0"),o.setAttribute("in",i+"_drop_shadow_1"),o.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=o,e.appendChild(o);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(c);var p=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(p)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",a[0]-t[0]+" 0 0 0 "+t[0]+" "+(a[1]-t[1])+" 0 0 0 "+t[1]+" "+(a[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,a=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+a+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,a,i,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,a=0):i=1+(a=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);a<i;a+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:a});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),r=createElementID();n.setAttribute("id",r),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+r+")");s[0];)l.appendChild(s[0]);this.elem.layerElement.appendChild(l),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var a,i,s=this.paths.length;for(t=0;t<s;t+=1)if(-1!==this.paths[t].m&&(a=this.elem.maskManager.viewData[this.paths[t].m],i=this.paths[t].p,(e||this.filterManager._mdf||a.prop._mdf)&&i.setAttribute("d",a.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||a.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var r=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=i.getTotalLength();n="0 0 0 "+o*r+" ";var d,c=o*(l-r),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,m=Math.floor(c/p);for(d=0;d<m;d+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*o+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+a[0]+" "+t[0],n=i[1]+" "+a[1]+" "+t[1],r=i[2]+" "+a[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",r)}},SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var a=createNS(e);return a.setAttribute("type","table"),t.appendChild(a),a},SVGProLevelsFilter.prototype.getTableValue=function(e,t,a,i,s){for(var n,r,l=0,o=Math.min(e,t),d=Math.max(e,t),c=Array.call(null,{length:256}),p=0,m=s-i,u=t-e;l<=256;)r=(n=l/256)<=o?u<0?s:i:n>=d?u<0?i:s:i+m*Math.pow((n-e)/u,1/a),c[p]=r,p+=1,l+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,a=this.filterManager.effectElements;this.feFuncRComposed&&(e||a[3].p._mdf||a[4].p._mdf||a[5].p._mdf||a[6].p._mdf||a[7].p._mdf)&&(t=this.getTableValue(a[3].p.v,a[4].p.v,a[5].p.v,a[6].p.v,a[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||a[10].p._mdf||a[11].p._mdf||a[12].p._mdf||a[13].p._mdf||a[14].p._mdf)&&(t=this.getTableValue(a[10].p.v,a[11].p.v,a[12].p.v,a[13].p.v,a[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||a[17].p._mdf||a[18].p._mdf||a[19].p._mdf||a[20].p._mdf||a[21].p._mdf)&&(t=this.getTableValue(a[17].p.v,a[18].p.v,a[19].p.v,a[20].p.v,a[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||a[24].p._mdf||a[25].p._mdf||a[26].p._mdf||a[27].p._mdf||a[28].p._mdf)&&(t=this.getTableValue(a[24].p.v,a[25].p.v,a[26].p.v,a[27].p.v,a[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||a[31].p._mdf||a[32].p._mdf||a[33].p._mdf||a[34].p._mdf||a[35].p._mdf)&&(t=this.getTableValue(a[31].p.v,a[32].p.v,a[33].p.v,a[34].p.v,a[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var a=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=a*Math.cos(i),n=a*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,a){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=a,a.matteElement=createNS("g"),a.matteElement.appendChild(a.layerElement),a.matteElement.appendChild(a.transformedElement),a.baseElement=a.matteElement}function SVGGaussianBlurEffect(e,t,a,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}function TransformEffect(){}function SVGTransformEffect(e,t){this.init(t)}function CVTransformEffect(e){this.init(e)}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,a=_svgMatteSymbols.length;t<a;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var a=e.layerElement.parentNode;if(a){for(var i,s=a.children,n=0,r=s.length;n<r&&s[n]!==e.layerElement;)n+=1;n<=r-2&&(i=s[n+1]);var l=createNS("use");l.setAttribute("href","#"+t),i?a.insertBefore(l,i):a.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var a=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var n=createNS("symbol");n.setAttribute("id",a),this.replaceInParent(t,a),n.appendChild(t.layerElement),s.appendChild(n);var r=createNS("use");r.setAttribute("href","#"+a),i.appendChild(r),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,a=0,i=t.length;a<i;)t[a]&&t[a].data.ind===e&&this.setElementAsMask(this.elem,t[a]),a+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,a=this.filterManager.effectElements[1].p.v,i=3==a?0:t,s=2==a?0:t;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+s);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,a=t[0].p.v,i=t[1].p.v,s=1===t[2].p.v,n=t[3].p.v,r=s?n:t[4].p.v,l=t[5].p.v,o=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-a[0],-a[1],a[2]),this.matrix.scale(.01*r,.01*n,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-l*degToRads,(o+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie},module.exports=factory())},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,r){if(r!==i){var l=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 l.name="Invariant Violation",l}}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:()=>b});var e=i(98),t=i.n(e),a=i(697),n=i.n(a);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)}var l=function(e){var a=e.pageClassName,i=e.pageLinkClassName,s=e.page,n=e.selected,l=e.activeClassName,o=e.activeLinkClassName,d=e.getEventListener,c=e.pageSelectedHandler,p=e.href,m=e.extraAriaContext,u=e.pageLabelBuilder,h=e.rel,g=e.ariaLabel||"Page "+s+(m?" "+m:""),w=null;return n&&(w="page",g=e.ariaLabel||"Page "+s+" is your current page",a=void 0!==a?a+" "+l:l,void 0!==i?void 0!==o&&(i=i+" "+o):i=o),t().createElement("li",{className:a},t().createElement("a",r({rel:h,role:p?void 0:"button",className:i,href:p,tabIndex:n?"-1":"0","aria-label":g,"aria-current":w,onKeyPress:c},d(c)),u(s)))};l.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=l;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,r=e.breakHandler,l=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:r},l(r)),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 m(e){return null!=e?e:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function h(){return h=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},h.apply(this,arguments)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(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 f(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&&g(e,t)}(l,e);var a,i,s,n,r=(s=l,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"===u(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 l(e){var a,i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),f(w(a=r.call(this,e)),"handlePreviousPage",(function(e){var t=a.state.selected;a.handleClick(e,null,t>0?t-1:void 0,{isPrevious:!0})})),f(w(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})})),f(w(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)})),f(w(a),"handlePageChange",(function(e){a.state.selected!==e&&(a.setState({selected:e}),a.callCallback(e))})),f(w(a),"getEventListener",(function(e){return f({},a.props.eventListener,e)})),f(w(a),"handleClick",(function(e,t,i){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},n=s.isPrevious,r=void 0!==n&&n,l=s.isNext,o=void 0!==l&&l,d=s.isBreak,c=void 0!==d&&d,p=s.isActive,m=void 0!==p&&p;e.preventDefault?e.preventDefault():e.returnValue=!1;var u=a.state.selected,h=a.props.onClick,g=i;if(h){var w=h({index:t,selected:u,nextSelectedPage:i,event:e,isPrevious:r,isNext:o,isBreak:c,isActive:m});if(!1===w)return;Number.isInteger(w)&&(g=w)}void 0!==g&&a.handlePageChange(g)})),f(w(a),"handleBreakClick",(function(e,t){var i=a.state.selected;a.handleClick(t,e,i<e?a.getForwardJump():a.getBackwardJump(),{isBreak:!0})})),f(w(a),"callCallback",(function(e){void 0!==a.props.onPageChange&&"function"==typeof a.props.onPageChange&&a.props.onPageChange({selected:e})})),f(w(a),"callActiveCallback",(function(e){void 0!==a.props.onPageActive&&"function"==typeof a.props.onPageActive&&a.props.onPageActive({selected:e})})),f(w(a),"getElementPageRel",(function(e){var t=a.state.selected,i=a.props,s=i.nextPageRel,n=i.prevPageRel,r=i.selectedPageRel;return t-1===e?n:t===e?r:t+1===e?s:void 0})),f(w(a),"pagination",(function(){var e=[],i=a.props,s=i.pageRangeDisplayed,n=i.pageCount,r=i.marginPagesDisplayed,l=i.breakLabel,o=i.breakClassName,d=i.breakLinkClassName,c=i.breakAriaLabels,m=a.state.selected;if(n<=s)for(var u=0;u<n;u++)e.push(a.getPageElement(u));else{var h=s/2,g=s-h;m>n-s/2?h=s-(g=n-m):m<s/2&&(g=s-(h=m));var w,_,f=function(e){return a.getPageElement(e)},k=[];for(w=0;w<n;w++){var b=w+1;if(b<=r)k.push({type:"page",index:w,display:f(w)});else if(b>n-r)k.push({type:"page",index:w,display:f(w)});else if(w>=m-h&&w<=m+(0===m&&s>1?g-1:g))k.push({type:"page",index:w,display:f(w)});else if(l&&k.length>0&&k[k.length-1].display!==_&&(s>0||r>0)){var x=w<m?c.backward:c.forward;_=t().createElement(p,{key:w,breakAriaLabel:x,breakLabel:l,breakClassName:o,breakLinkClassName:d,breakHandler:a.handleBreakClick.bind(null,w),getEventListener:a.getEventListener}),k.push({type:"break",index:w,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:f(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=l,(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,r=i.activeClassName,l=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:r,activeLinkClassName:l,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,r=a.className,l=a.containerClassName,o=a.previousLabel,d=a.previousClassName,c=a.previousLinkClassName,p=a.previousAriaLabel,u=a.prevRel,g=a.nextLabel,w=a.nextClassName,_=a.nextLinkClassName,f=a.nextAriaLabel,k=a.nextRel,b=this.state.selected,x=0===b,v=b===n-1,y="".concat(m(d)).concat(x?" ".concat(m(i)):""),j="".concat(m(w)).concat(v?" ".concat(m(i)):""),N="".concat(m(c)).concat(x?" ".concat(m(s)):""),$="".concat(m(_)).concat(v?" ".concat(m(s)):""),C=x?"true":"false",S=v?"true":"false";return t().createElement("ul",{className:r||l,role:"navigation","aria-label":"Pagination"},t().createElement("li",{className:y},t().createElement("a",h({className:N,href:this.getElementHref(b-1),tabIndex:x?"-1":"0",role:"button",onKeyPress:this.handlePreviousPage,"aria-disabled":C,"aria-label":p,rel:u},this.getEventListener(this.handlePreviousPage)),o)),this.pagination(),t().createElement("li",{className:j},t().createElement("a",h({className:$,href:this.getElementHref(b+1),tabIndex:v?"-1":"0",role:"button",onKeyPress:this.handleNextPage,"aria-disabled":S,"aria-label":f,rel:k},this.getEventListener(this.handleNextPage)),g)))}}])&&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}),l}(e.Component);f(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}),f(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 b=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,r=i.useRef,l=i.useEffect,o=i.useMemo,d=i.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,a,i,c){var p=r(null);if(null===p.current){var m={hasValue:!1,value:null};p.current=m}else m=p.current;p=o((function(){function e(e){if(!l){if(l=!0,n=e,e=i(e),void 0!==c&&m.hasValue){var t=m.value;if(c(t,e))return r=t}return r=e}if(t=r,s(n,e))return t;var a=i(e);return void 0!==c&&c(t,a)?t:(n=e,r=a)}var n,r,l=!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 u=n(e,p[0],p[1]);return l((function(){m.hasValue=!0,m.value=u}),[u]),d(u),u}},418:(e,t,a)=>{"use strict";e.exports=a(154)},609:e=>{"use strict";e.exports=window.React}},__webpack_module_cache__={},leafPrototypes,getProto;function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var a=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(a.exports,a,a.exports,__webpack_require__),a.exports}__webpack_require__.amdO={},__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},getProto=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,__webpack_require__.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var a=Object.create(null);__webpack_require__.r(a);var i={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var s=2&t&&e;"object"==typeof s&&!~leafPrototypes.indexOf(s);s=getProto(s))Object.getOwnPropertyNames(s).forEach((t=>i[t]=()=>e[t]));return i.default=()=>e,__webpack_require__.d(a,i),a},__webpack_require__.d=(e,t)=>{for(var a in t)__webpack_require__.o(t,a)&&!__webpack_require__.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var e=__webpack_require__(609),t=__webpack_require__.n(e);const a=window.wp.i18n;var i=__webpack_require__(505),s=__webpack_require__.n(i);const n=e=>{let t=e?.workspace?e?.workspace:[];return t=t.filter((e=>"subscriber"!==e?.roles)),t},r=()=>{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},l=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 s().post(ajaxurl,t).then((e=>e))}return!1},o=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 s().post(ajaxurl,t).then((e=>e.data))}return!1},d=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},c=e=>{e&&localStorage.setItem("wdkit-login",JSON.stringify(e))},p=()=>{var e=JSON.parse(localStorage.getItem("wdkit-login"));return e?.token&&e?.user_email?e:(localStorage.removeItem("wdkit-login"),null)},m=async()=>{let e=p();if(e?.user_email){let t={type:"wkit_logout",email:e.user_email,logout_type:e.login_type};await w(t)}window.userData="",localStorage.removeItem("wdkit-login"),window.location.hash="/login"},u=e=>{e&&localStorage.setItem("wdkit-pending-snippet-id",e)},h=()=>localStorage.getItem("wdkit-pending-snippet-id"),g=window.ReactJSXRuntime,w=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)))),(async e=>!!e&&await s().post(ajaxurl,e,{headers:{"content-type":"application/json"}}).then((e=>e.data)).catch((e=>e)))(t)},_=async()=>{let e=r(),t=p(),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 w(s);return window.userData=n,n},f=(e,t)=>{let a="";return e&&t&&Object.entries(t).map((([t,i])=>{Number(i.p_id)===Number(e)&&(a=i.original_slug)})),a||""},k=(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():""},b=()=>(0,g.jsx)("div",{className:"wkit-content-loader",children:(0,g.jsx)("div",{className:"wb-contentLoader-circle"})});wp.wkit_Helper={form_data:w,get_userinfo:_,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},wkitGetBuilder:f};var x,v=__webpack_require__(764),y=__webpack_require__.n(v);function j(){return j=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},j.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(x||(x={}));const N="popstate";function $(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 S(e,t){return{usr:e.state,key:e.key,idx:t}}function D(e,t,a,i){return void 0===a&&(a=null),j({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:a,key:t&&t.key||i||Math.random().toString(36).substr(2,8)})}function E(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 P(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 A;function T(e,t,a){return void 0===a&&(a="/"),function(e,t,a,i){let s=U(("string"==typeof t?P(t):t).pathname||"/",a);if(null==s)return null;let n=L(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 r=null;for(let e=0;null==r&&e<n.length;++e){let t=H(s);r=G(n[e],t,i)}return r}(e,t,a,!1)}function L(e,t,a,i){void 0===t&&(t=[]),void 0===a&&(a=[]),void 0===i&&(i="");let s=(e,s,n)=>{let r={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};r.relativePath.startsWith("/")&&($(r.relativePath.startsWith(i),'Absolute route path "'+r.relativePath+'" nested under path "'+i+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),r.relativePath=r.relativePath.slice(i.length));let l=Y([i,r.relativePath]),o=a.concat(r);e.children&&e.children.length>0&&($(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),L(e.children,t,o,l)),(null!=e.path||e.index)&&t.push({path:l,score:q(l,e.index),routesMeta:o})};return e.forEach(((e,t)=>{var a;if(""!==e.path&&null!=(a=e.path)&&a.includes("?"))for(let a of M(e.path))s(e,t,a);else s(e,t)})),t}function M(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 r=M(i.join("/")),l=[];return l.push(...r.map((e=>""===e?n:[n,e].join("/")))),s&&l.push(...r),l.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(A||(A={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const F=/^:[\w-]+$/,I=3,B=2,O=1,R=10,V=-2,W=e=>"*"===e;function q(e,t){let a=e.split("/"),i=a.length;return a.some(W)&&(i+=V),t&&(i+=B),a.filter((e=>!W(e))).reduce(((e,t)=>e+(F.test(t)?I:""===t?O:R)),i)}function G(e,t,a){void 0===a&&(a=!1);let{routesMeta:i}=e,s={},n="/",r=[];for(let e=0;e<i.length;++e){let l=i[e],o=e===i.length-1,d="/"===n?t:t.slice(n.length)||"/",c=z({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},d),p=l.route;if(!c&&o&&a&&!i[i.length-1].route.index&&(c=z({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!c)return null;Object.assign(s,c.params),r.push({params:s,pathname:Y([n,c.pathname]),pathnameBase:X(Y([n,c.pathnameBase])),route:p}),"/"!==c.pathnameBase&&(n=Y([n,c.pathnameBase]))}return r}function z(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],r=n.replace(/(.)\/+$/,"$1"),l=s.slice(1);return{params:i.reduce(((e,t,a)=>{let{paramName:i,isOptional:s}=t;if("*"===i){let e=l[a]||"";r=n.slice(0,n.length-e.length).replace(/(.)\/+$/,"$1")}const o=l[a];return e[i]=s&&!o?void 0:(o||"").replace(/%2F/g,"/"),e}),{}),pathname:n,pathnameBase:r,pattern:e}}function H(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 U(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 J(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 K(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 Z(e,t,a,i){let s;void 0===i&&(i=!1),"string"==typeof e?s=P(e):(s=j({},e),$(!s.pathname||!s.pathname.includes("?"),J("?","pathname","search",s)),$(!s.pathname||!s.pathname.includes("#"),J("#","pathname","hash",s)),$(!s.search||!s.search.includes("#"),J("#","search","hash",s)));let n,r=""===e||""===s.pathname,l=r?"/":s.pathname;if(null==l)n=a;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}n=e>=0?t[e]:"/"}let o=function(e,t){void 0===t&&(t="/");let{pathname:a,search:i="",hash:s=""}="string"==typeof e?P(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:Q(i),hash:ee(s)}}(s,n),d=l&&"/"!==l&&l.endsWith("/"),c=(r||"."===l)&&a.endsWith("/");return o.pathname.endsWith("/")||!d&&!c||(o.pathname+="/"),o}const Y=e=>e.join("/").replace(/\/\/+/g,"/"),X=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ee=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const te=["post","put","patch","delete"],ae=(new Set(te),["get",...te]);function ie(){return ie=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},ie.apply(this,arguments)}new Set(ae),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const se=e.createContext(null),ne=e.createContext(null),re=e.createContext(null),le=e.createContext(null),oe=e.createContext({outlet:null,matches:[],isDataRoute:!1}),de=e.createContext(null);function ce(){return null!=e.useContext(le)}function pe(){return ce()||$(!1),e.useContext(le).location}function me(t){e.useContext(re).static||e.useLayoutEffect(t)}function ue(){let{isDataRoute:t}=e.useContext(oe);return t?function(){let{router:t}=function(){let t=e.useContext(se);return t||$(!1),t}(xe.UseNavigateStable),a=ye(ve.UseNavigateStable),i=e.useRef(!1);return me((()=>{i.current=!0})),e.useCallback((function(e,s){void 0===s&&(s={}),i.current&&("number"==typeof e?t.navigate(e):t.navigate(e,ie({fromRouteId:a},s)))}),[t,a])}():function(){ce()||$(!1);let t=e.useContext(se),{basename:a,future:i,navigator:s}=e.useContext(re),{matches:n}=e.useContext(oe),{pathname:r}=pe(),l=JSON.stringify(K(n,i.v7_relativeSplatPath)),o=e.useRef(!1);return me((()=>{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=Z(e,JSON.parse(l),r,"path"===i.relative);null==t&&"/"!==a&&(n.pathname="/"===n.pathname?a:Y([a,n.pathname])),(i.replace?s.replace:s.push)(n,i.state,i)}),[a,s,l,r,t])}()}function he(){let{matches:t}=e.useContext(oe),a=t[t.length-1];return a?a.params:{}}function ge(t,a){let{relative:i}=void 0===a?{}:a,{future:s}=e.useContext(re),{matches:n}=e.useContext(oe),{pathname:r}=pe(),l=JSON.stringify(K(n,s.v7_relativeSplatPath));return e.useMemo((()=>Z(t,JSON.parse(l),r,"path"===i)),[t,l,r,i])}function we(t,a,i,s){ce()||$(!1);let{navigator:n}=e.useContext(re),{matches:r}=e.useContext(oe),l=r[r.length-1],o=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,p=pe();if(a){var m;let e="string"==typeof a?P(a):a;"/"===d||(null==(m=e.pathname)?void 0:m.startsWith(d))||$(!1),c=e}else c=p;let u=c.pathname||"/",h=u;if("/"!==d){let e=d.replace(/^\//,"").split("/");h="/"+u.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=T(t,{pathname:h}),w=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 r;if(!i)return null;if(i.errors)t=i.matches;else{if(!(null!=(r=s)&&r.v7_partialHydration&&0===a.length&&!i.initialized&&i.matches.length>0))return null;t=i.matches}}let l=t,o=null==(n=i)?void 0:n.errors;if(null!=o){let e=l.findIndex((e=>e.route.id&&void 0!==(null==o?void 0:o[e.route.id])));e>=0||$(!1),l=l.slice(0,Math.min(l.length,e+1))}let d=!1,c=-1;if(i&&s&&s.v7_partialHydration)for(let e=0;e<l.length;e++){let t=l[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=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){d=!0,l=c>=0?l.slice(0,c+1):[l[0]];break}}}return l.reduceRight(((t,s,n)=>{let r,p=!1,m=null,u=null;var h;i&&(r=o&&s.route.id?o[s.route.id]:void 0,m=s.route.errorElement||fe,d&&(c<0&&0===n?(je[h="route-fallback"]||(je[h]=!0),p=!0,u=null):c===n&&(p=!0,u=s.route.hydrateFallbackElement||null)));let g=a.concat(l.slice(0,n+1)),w=()=>{let a;return a=r?m:p?u:s.route.Component?e.createElement(s.route.Component,null):s.route.element?s.route.element:t,e.createElement(be,{match:s,routeContext:{outlet:t,matches:g,isDataRoute:null!=i},children:a})};return i&&(s.route.ErrorBoundary||s.route.errorElement||0===n)?e.createElement(ke,{location:i.location,revalidation:i.revalidation,component:m,error:r,children:w(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):w()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Y([d,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:Y([d,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),r,i,s);return a&&w?e.createElement(le.Provider,{value:{location:ie({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:x.Pop}},w):w}function _e(){let t=function(){var t;let a=e.useContext(de),i=function(){let t=e.useContext(ne);return t||$(!1),t}(ve.UseRouteError),s=ye(ve.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 fe=e.createElement(_e,null);class ke 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(oe.Provider,{value:this.props.routeContext},e.createElement(de.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function be(t){let{routeContext:a,match:i,children:s}=t,n=e.useContext(se);return n&&n.static&&n.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=i.route.id),e.createElement(oe.Provider,{value:a},s)}var xe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(xe||{}),ve=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}(ve||{});function ye(t){let a=function(){let t=e.useContext(oe);return t||$(!1),t}(),i=a.matches[a.matches.length-1];return i.route.id||$(!1),i.route.id}const je={},Ne={},Ce=(e,t,a)=>{var i;Ne[i="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+a+"."]||(Ne[i]=!0,console.warn(i))};function Se(t){let{to:a,replace:i,state:s,relative:n}=t;ce()||$(!1);let{future:r,static:l}=e.useContext(re),{matches:o}=e.useContext(oe),{pathname:d}=pe(),c=ue(),p=Z(a,K(o,r.v7_relativeSplatPath),d,"path"===n),m=JSON.stringify(p);return e.useEffect((()=>c(JSON.parse(m),{replace:i,state:s,relative:n})),[c,m,n,i,s]),null}function De(e){$(!1)}function Ee(t){let{basename:a="/",children:i=null,location:s,navigationType:n=x.Pop,navigator:r,static:l=!1,future:o}=t;ce()&&$(!1);let d=a.replace(/^\/*/,"/"),c=e.useMemo((()=>({basename:d,navigator:r,static:l,future:ie({v7_relativeSplatPath:!1},o)})),[d,o,r,l]);"string"==typeof s&&(s=P(s));let{pathname:p="/",search:m="",hash:u="",state:h=null,key:g="default"}=s,w=e.useMemo((()=>{let e=U(p,d);return null==e?null:{location:{pathname:e,search:m,hash:u,state:h,key:g},navigationType:n}}),[d,p,m,u,h,g,n]);return null==w?null:e.createElement(re.Provider,{value:c},e.createElement(le.Provider,{children:i,value:w}))}function Pe(e){let{children:t,location:a}=e;return we(Ae(t),a)}function Ae(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,Ae(t.props.children,n));t.type!==De&&$(!1),t.props.index&&t.props.children&&$(!1);let r={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&&(r.children=Ae(t.props.children,n)),i.push(r)})),i}e.startTransition,new Promise((()=>{})),e.Component;const Te=t=>{var i=wdkitData.WDKIT_URL;const s=e=>Array.from({length:e}),[n,r]=(0,e.useState)(!0);return(0,g.jsxs)(g.Fragment,{children:[t?.filter&&(0,g.jsx)("div",{className:"wdkit-browse-column",children:(0,g.jsxs)("div",{className:"wdkit-browse-column-inner",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-b",children:(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b",children:"Filters"})}),(0,g.jsxs)("div",{className:"wdkit-filter-wrapper",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Page Builder"})}),(0,g.jsx)("div",{className:"wdkit-choose-builder-wrap wkit-mt-15 wkit-justify-left",children:s(2).map(((e,t)=>(0,g.jsx)("div",{className:"wdkit-wb-widget-type",children:(0,g.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-builder-radio"}),(0,g.jsxs)("label",{className:"wkit-builder-label",children:[(0,g.jsx)("img",{className:"wkit-browse-filter-builder",src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/builder-list/builder-elementor.svg",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-builder-toolTip",children:"elementor"})]})]})},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Plugins"})}),(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:s(7).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,g.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,g.jsx)("img",{src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/plugin-list/plugin-elementor.svg",alt:"tpae-logo",draggable:"false"}),(0,g.jsx)("span",{children:"Elementor"})]})]},t)))})}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Free / Pro"})}),(0,g.jsx)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:s(2).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp"}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:"Free"})]},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Type"})}),(0,g.jsx)("div",{className:"wdkit-accordion-content wdkit-temp-acc-filter",children:s(3).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-pageType-wrap",children:(0,g.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio"}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"22",viewBox:"0 0 12 14",fill:"none",children:(0,g.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,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Page Kits"})}),(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:s(7).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,g.jsx)("span",{children:"WooCommerce"})]},t)))})}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion",children:(0,g.jsx)("div",{className:"wdkit-filter-heading",children:"Tags"})}),(0,g.jsxs)("div",{className:"wdkit-accordion-content wdkit-tags-accordion",children:[(0,g.jsx)("div",{className:"wkit-browse-search-inner",children:(0,g.jsx)("input",{className:"wkit-browse-search"})}),(0,g.jsx)("div",{className:"wkit-browse-tag",children:s(5).map(((e,t)=>(0,g.jsx)("div",{className:"wdkit-tag-filter-list",children:(0,g.jsx)("label",{className:"wdkit-browse-tag-name",children:"Elementor"})},t)))})]})]})]})}),t?.cards&&(0,g.jsxs)("div",{className:"wdkit-browse-right-column",children:[(0,g.jsx)("div",{className:"wdkit-search-filter"}),(0,g.jsx)("div",{className:"wdkit-loop",children:(0,g.jsx)("div",{className:`wdkit-templates-card-main ${n?"wdkit-grid-3col":"wdkit-grid-4col"} ${n?"":"wkit-browse-filter-close"}`,children:s(12).map(((e,t)=>(e=>(0,g.jsx)("div",{className:"wkit-widgetlist-grid-content",children:(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wdkit-browse-img-cover ",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsx)("div",{className:"wkit-kit-cards",children:(0,g.jsx)("img",{className:"wkit-widget-placeholder-img",src:i+"assets/images/wkit-dummy-bg.png",draggable:"false",style:{opacity:"0"}})})})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-name",children:(0,g.jsx)("p",{className:"wkit-widget-title-heading",children:(0,g.jsx)("span",{children:(0,a.__)("Modern Hover Post","wdesignkit")})})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 13 12",fill:"none",children:[(0,g.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,g.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,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})]})]})},e))(t)))})})]})]})},Le=({title:e,filterToggle:t,setFilterToggle:a})=>(0,g.jsxs)("div",{className:"wdkit-filter-title-b",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b",children:e}),(0,g.jsx)("div",{style:{cursor:"pointer"},onClick:()=>a(!t),children:(0,g.jsx)("i",{className:"wdkit-i-filter-collapse"})})]}),Me=({type:e,searchQuery:t,setSearchQuery:i,handleKeyPress:s,handleFilterChecked:n,inputRef:r})=>(0,g.jsxs)("div",{className:"wdkit-search-wrapper-b",children:[(0,g.jsx)("input",{className:"wkit-search-input-b",id:`wkit-search-input-b-${e}`,placeholder:(0,a.__)("Search...","wdesignkit"),type:"text",autoComplete:"off",value:t,onChange:e=>i(e.target.value),onKeyDown:s,ref:r}),(0,g.jsx)("div",{className:"wdkit-search-icon-b",children:(0,g.jsx)("i",{className:"wdkit-i-search"})}),(0,g.jsx)("span",{className:"wkit-search-button-b",id:"WDkitSearchIcon",onClick:e=>n(e,"search"),children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]}),Fe=({id:e,title:t,accordionToggle:a,onToggle:i})=>{const s=a?.includes(e);return(0,g.jsxs)("div",{className:"wdkit-filter-accordion-b",onClick:()=>{i(e)},children:[(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:t}),(0,g.jsx)("div",{className:"wdkit-accordion-arrow "+(s?"WdkitDropdownClose":""),children:(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})})]})},Ie=({data:e,index:t,filterArgs:a,handleFilterChecked:i})=>{const s=a.builder==e.p_id;return(0,g.jsxs)("div",{className:"wdkit-filter-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",className:"wdkit-builder-builder-radio",id:`select_builder_${e.original_slug}`,value:e.p_id,onChange:e=>i(e,"builder"),checked:s}),(0,g.jsxs)("label",{className:`wdkit-filter-builder-label-b \n ${s?"wkit-active-filter-b":""} `,htmlFor:`select_builder_${e.original_slug}`,children:[""!==e.plugin_icon&&(0,g.jsx)("img",{className:"wkit-browse-filter-builder-b",src:e.plugin_icon,draggable:!1,alt:e.original_slug}),(0,g.jsx)("span",{className:"wdkit-filter-builder-tooltip-b",children:e.original_slug})]})]},t)},Be=t=>{const[a,i]=(0,e.useState)(!1);let n=t?.title?t.title:"",r=t?.desc?t.desc:"";return s().interceptors.request.use((function(e){return i(!0),e}),(function(e){return i(!1),Promise.reject(e)})),s().interceptors.response.use((function(e){return i(!1),e}),(function(e){return i(!1),Promise.reject(e)})),(0,e.useEffect)((()=>{const e=e=>{"Escape"!==e.key||a||t.close_popup()};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}})),(0,g.jsx)("div",{className:"wdkit-popup-outer",onClick:e=>{var i;a||(i=e,i?.target?.closest(".wdkit-popup-content")||t.close_popup())},children:(0,g.jsxs)("div",{className:"wdkit-popup-content",children:[(n||r)&&(0,g.jsxs)("div",{className:"wdkit-popup-header",children:[(0,g.jsx)("span",{className:"wdkit-popup-header-title",children:n}),(0,g.jsx)("span",{className:"wdkit-popup-header-desc",children:r})]}),(0,g.jsx)("div",{className:"wdkit-popup-body",children:t?.body})]})})},{Fragment:Oe}=wp.element,Re=(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:[],r=n.findIndex((e=>e?.temp_id==s));if(r>-1){let t=n[r];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,r=a.replaceAll(s,n);Object.assign(i.__globals__,{[e]:r})}}}else if(a.includes("globals/colors")){let s=a.split("id=")[1],n=t?.color?.length>0?t.color:[],r=n.findIndex((e=>e?.temp_id==s));if(r>-1){let t=n[r];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,r=a.replaceAll(s,n);Object.assign(i.__globals__,{[e]:r})}}}}));for(const e in i)i[e]=a(i[e]);return i}return e};return a(e)},{Fragment:Ve}=wp.element,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 l=s.match(/var\(--tpgb-([A-Z]+)([A-Z0-9]*)\)/i);if(l)if("C"==l[1]){let s=t?.color?.findIndex((e=>Number(e.temp_id)+1==l[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 r=`var(--tpgb-C${l[2]})`;a=a.replaceAll(r,n),s>-1&&Object.assign(i,{[e]:n})}else if("GC"==l[1]){let s=t?.gradient?.findIndex((e=>Number(e.temp_id)+1==l[2])),n=t?.gradient?.[s].data.value;r=`var(--tpgb-GC${l[2]})`,a=a.replaceAll(r,n),s>-1&&Object.assign(i,{[e]:n})}else if("S"==l[1]){let a=t?.spacing?.findIndex((e=>Number(e.temp_id)+1==l[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 l=`${n?.horizontal}px ${n?.vertical}px ${n?.blur}px ${n?.spread}px ${n?.color}`;else l=`inset ${n?.horizontal}px ${n?.vertical}px ${n?.blur}px ${n?.spread}px ${n?.color}`;r=`var(--tpgb-BS${s})`,a=a.replaceAll(r,l),i=n}else if("globalTypo"===e){let e=t.typography.findIndex((e=>Number(e.temp_id)+1==s)),n=t.typography[e],r=n?.data?.value;if("update"==n?.status){if(r?.fontFamily?.family){var o=`var(--tpgb-${s}-font-family)`,d=`var(--tpgb-${n.site_id}-font-family)`;a=a.replaceAll(o,d)}if(r?.fontFamily?.fontWeight){var c=`var(--tpgb-${s}-font-weight)`,p=`var(--tpgb-${n.site_id}-font-weight)`;a=a.replaceAll(c,p)}if(r?.fontStyle){var m=`var(--tpgb-${s}-font-style)`,u=`var(--tpgb-${n.site_id}-font-style)`;a=a.replaceAll(m,u)}if(r?.size?.md&&r?.size?.unit){var h=`var(--tpgb-${s}-font-size)`,g=`var(--tpgb-${n.site_id}-font-size)`;a=a.replaceAll(h,g)}if(r?.height?.md&&r?.height?.unit){var w=`var(--tpgb-${s}-line-height)`,_=`var(--tpgb-${n.site_id}-line-height)`;a=a.replaceAll(w,_)}if(r?.spacing?.md&&r?.spacing?.unit){var f=`var(--tpgb-${s}-letter-spacing)`,k=`var(--tpgb-${n.site_id}-letter-spacing)`;a=a.replaceAll(f,k)}if(r?.textTransform){var b=`var(--tpgb-${s}-text-transform)`,x=`var(--tpgb-${n.site_id}-text-transform)`;a=a.replaceAll(b,x)}if(r?.textDecoration){var v=`var(--tpgb-${s}-text-decoration)`,y=`var(--tpgb-${n.site_id}-text-decoration)`;a=a.replaceAll(v,y)}Object.assign(r,{globalTypo:n.site_id})}else"remove"==n?.status&&(r?.fontFamily?.family&&(o=`var(--tpgb-${s}-font-family)`,a=a.replaceAll(o,r.fontFamily.family)),r?.fontFamily?.fontWeight&&(c=`var(--tpgb-${s}-font-weight)`,a=a.replaceAll(c,r.fontFamily.fontWeight)),r?.fontStyle&&(m=`var(--tpgb-${s}-font-style)`,a=a.replaceAll(m,r.fontStyle)),r?.size?.md&&r?.size?.unit&&(h=`var(--tpgb-${s}-font-size)`,a=a.replaceAll(h,r.size.md+r.size.unit)),r?.height?.md&&r?.height?.unit&&(w=`var(--tpgb-${s}-line-height)`,a=a.replaceAll(w,r.height.md+r.height.unit)),r?.spacing?.md&&r?.spacing?.unit&&(f=`var(--tpgb-${s}-letter-spacing)`,a=a.replaceAll(f,r.spacing.md+r.spacing.unit)),r?.textTransform&&(b=`var(--tpgb-${s}-text-transform)`,a=a.replaceAll(b,r.textTransform)),r?.textDecoration&&(v=`var(--tpgb-${s}-text-decoration)`,a=a.replaceAll(v,r.textDecoration)));i=r}}));for(const e in i)i[e]=n(i[e]);return i}return e};let r=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=r?.[t]?.block_id?r?.[t]?.block_id:"";if(s)if(n&&s==n){let i=r?.[t]?r?.[t]:"",s=e[1];a=a.replace(s,JSON.stringify(i))}else{let t=r.findIndex((e=>e.block_id==s));if(t>-1){let i=r?.[t]?r?.[t]:"",s=e[1];a=a.replace(s,JSON.stringify(i))}}})),a},qe=async e=>{let t=e?.data?.plugins_id?e.data.plugins_id:[],a=[],i={p_id:3001,original_slug:"nexter",plugin_name:"Nexter",freepro:"0",type:"theme"},n={p_id:2004,plugin_name:"Nexter Extension – Site Enhancements Toolkit",plugin_slug:"nexter-extension/nexter-extension.php",original_slug:"nexter-extension",freepro:0,plugin_builder:"",type:"plugin"};if(t.length>0){let s=e?.wdkit_meta?.plugin?.length>0?e.wdkit_meta.plugin:[];t.map((e=>{let t=s.findIndex((t=>t.p_id==e));t>-1&&a.push(s[t])})),"nxt_builder"==e.data.wp_post_type&&a.push(n),a.push(i)}if(a?.length>0){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_plugins_depends"),e.append("plugins",JSON.stringify(a)),e.append("editor",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((async e=>await e.data));if(t?.success){let e=t?.data?.plugins?t?.data?.plugins:[],a=t?.data?.theme?t?.data?.theme:[];return{install_plg:e.filter((e=>"active"!=e.status)),pro_plugin:e.filter((e=>"active"!=e.status&&"1"==e.freepro)),theme:a}}}},Ge=async e=>{if("plugin"==e)(t=new FormData).append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","update_plugin_setting"),t.append("plugin_type","elementor");else if("theme"==e){var t;(t=new FormData).append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","update_theme_setting")}return await s().post(ajaxurl,t).then((e=>e.data))},ze=e=>{var t=e?.content;let a=t.search("postCategory"),i=t.search("postTag");if(!(a>-1||i>-1))return e;let s=[...t.matchAll(/<!--\s*wp:[^\s]+\s*(?:({[\s\S]*?}))?\s*(?:\/-->|-->)/g)];var n;return n=s.map((e=>{try{return JSON.parse(e[1])}catch(e){return null}})),Array.isArray(n)&&n.map(((e,a)=>{"object"==typeof e&&null!==e&&Object.entries(e).map((([i,n])=>{if("postCategory"===i||"postTag"===i){delete e[i];let n=s[a][0].replace([s[a][1]],JSON.stringify(e));t=t.replace(s[a][0],n)}}))})),Object.assign({},e,{content:t})},He=async e=>{var t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","wdkit_nxt_thembuilder_reset"),t.append("post_id",e),await s().post(ajaxurl,t).then((e=>e.data))},Ue=async(e,t)=>{let a="pagetemplate"==t.type?"pages":"sections",i=p(),n="";if(window.location.hash.search("#/browse")>-1)var r="import/template/free";else n=i.user_email,r="import_template";var l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("api_type",r),l.append("email",n),l.append("custom_meta",!0),"wdkit"!=wdkitData.use_editor?(l.append("type","import_template"),l.append("template_id",e.id),l.append("editor",wdkitData.use_editor),l.append("builder",wdkitData.use_editor),l.append("page_section",a)):(l.append("type","import_multi_template"),l.append("template_ids",JSON.stringify(e)),l.append("editor","wdkit"==wdkitData.use_editor&&e.builder?e.builder:wdkitData.use_editor),l.append("builder",e.builder),l.append("page_section",a));let o=await s().post(ajaxurl,l).then((e=>e.data));if(o?.success)return o?.data?o.data:o},Je=async(e,t)=>{e?.value?.builder&&"gutenberg"==e.value.builder&&(t=ze(JSON.parse(t)),t=JSON.stringify(t));let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","import_page_section"),a.append("args",JSON.stringify(e?.args||{})),a.append("temp_data",JSON.stringify(e?.value||{})),a.append("template_id",JSON.stringify(e?.id||"")),a.append("data",t);let i=await s().post(ajaxurl,a).then((e=>e.data));if(i.success)return i},Ke=async(e,t="")=>{if("gutenberg"==wdkitData.use_editor){let o=wp.blocks.parse(e.content),d=JSON.stringify(o);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(d)){let p={type:"media_import",content:d,editor:wdkitData.use_editor},m=await w(p);m.data&&m.success&&(o=m.data,wp.data.dispatch("core/block-editor").insertBlocks(o))}else wp.data.dispatch("core/block-editor").insertBlocks(o);setTimeout((()=>{w({type:"scan_nexter_widgets"})}),3e3),await setTimeout((async()=>{await wp.data.dispatch("core/editor").savePost(),await window.location.reload()}),1e3);let c=document.querySelector("#wkit-builder-modal");return c&&(c.classList.toggle("wkit-open"),window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search)),()=>{clearTimeout(timeId)}}if("elementor"==wdkitData.use_editor){let u=JSON.stringify(e.content);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(u)){let h={type:"media_import",content:u,editor:wdkitData.use_editor},g=await w(h);g.data&&g.success&&(e.content=g.data)}var a=window.elementor,i=$e;if(a){if(void 0!==i){function _(e){return e.forEach((function(e){e.id=elementorCommon.helpers.getUniqueId(),0<e.elements.length&&_(e.elements)})),e}for(var s=0;s<e.content.length;s++){var n={elType:e.content[s].elType,settings:e.content[s].settings};n.elements=_(e.content[s].elements),i.run("document/elements/create",{container:a.getPreviewContainer(),model:n,options:{index:0}})}}else{var r=new Backbone.Model({getTitle:function(){return"Wdesignkit Import"}});for(i.channels.data.trigger("template:before:insert",r),s=0;s<e.content.length;s++)i.getPreviewView().addChildElement(e.content[s],{index:0});i.channels.data.trigger("template:after:insert",{})}"preset"==t&&await elementor.saver.update.apply().then((function(){window.location.hash&&!window.location.href.includes("nxt_code_snippets")&&window.history.replaceState(null,null,window.location.pathname+window.location.search),window.location.reload()}));var l=window?.WdkitPopup?.getElements("content");return l&&(window.WdkitPopupToggle.close(l.get(0)),window.WdkitPopup.destroy()),()=>{clearTimeout(timeId)}}}},Ze=async(e,t,a)=>{let i=((e,t)=>{let a=e?.color?.length>0?e.color:[],i=e?.typography?.length>0?e.typography:[],s=[],n=[];return a.map((e=>{if("elementor"==t)var a={status:"remove",temp_id:e?._id,data:e};else"gutenberg"==t&&(a={status:"remove",temp_id:e?.id,data:e});s.push(a)})),i.map((e=>{if("elementor"==t)var a={status:"remove",temp_id:e?._id,data:e};else"gutenberg"==t&&(a={status:"remove",temp_id:e?.id,data:e});n.push(a)})),{color:s,typography:n}})(t.global_data,a),s=JSON.parse(e)?.content;if("elementor"==a)var n=await Re(s,i);else"gutenberg"==a&&(n=await We(s,i));let r=Object.assign({},JSON.parse(e),{content:n});return JSON.stringify(r)};var Ye=["tp-navigation-builder"];const Xe=async e=>{const t=/<!--\s*wp:([a-zA-Z0-9\/\-]+)\b/g;let a;for(;null!==(a=t.exec(e));){let e=a[1];e.startsWith("tpgb/")&&(e=e.replace("tpgb/","")),Ye.push(e)}if((Ye=[...new Set(Ye)]).length>0){let e=new FormData;return e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","scan_nexter_widgets"),e.append("blockNames",JSON.stringify(Ye)),await s().post(ajaxurl,e).then((e=>e)),Ye}return!1},Qe=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&&Array.isArray(e)){e.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 s().post(ajaxurl,i).then((e=>e)),a}return!1},et=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)},{Fragment:tt}=wp.element,at=t=>{let i=[{name:"install_plugin",label:"Installing Plugins and Theme",status:"pending"},{name:"plugin_setting",label:"Plugin Setting",status:"pending"},{name:"theme_setting",label:"Theme Setting",status:"pending"},{name:"import_json",label:"Import Template",status:"pending"}];const r=ue(),[l,o]=(0,e.useState)(!0),[d,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(!1),[k,x]=(0,e.useState)(!1),[v,y]=(0,e.useState)(),[j,N]=(0,e.useState)(),[$,C]=(0,e.useState)(),[S,D]=(0,e.useState)(-1),[E,P]=(0,e.useState)(""),[A,T]=(0,e.useState)(!1);p();const L=he(),M=pe();let F="",I="",B="",O=wdkitData.WDKIT_URL;t.builder&&t.data.post_builder&&Object.entries(t.builder).forEach((([e,a])=>{a.p_id==Number(t.data.post_builder)&&(F=a.plugin_icon,I=a.plugin_name,B=a.original_slug)})),(0,e.useEffect)((()=>{(t?.wdkit_meta?.favoritetemplate?.length>0?t.wdkit_meta.favoritetemplate:[]).includes(Number(t?.data.id))&&u(!0)}),[t?.wdkit_meta?.favoritetemplate]),document.addEventListener("click",(e=>{var t=e.target.closest(".w-designkit-hover-select"),a=document.querySelectorAll(".wkit-dropdown-content");null==t&&a.length>0&&c(!1)}));const R=e=>{o(!1),e.currentTarget.classList.remove("wdkit-browse-effect-remove"),setTimeout((()=>{o(!0)}),500)},V=e=>{l&&e.currentTarget.classList.add("wdkit-browse-effect-remove")},W=e=>{var a=!1;let i=t?.wdkit_meta?.credits?t.wdkit_meta.credits:"",s=t?.manage_licence?t?.manage_licence:"";if("active"==e.data.is_activated&&(a=!1,"pro"==e.data.free_pro)){let e=I.toLowerCase();"elementor"===e?(s?.theplus_elementor_addon||"1"==i?.access_elementor?.meta_value)&&(a=!0):"gutenberg"===e?(s?.tpag||"1"==i?.access_gutenburg?.meta_value)&&(a=!0):"bricks"===e&&"1"==i?.access_bricks?.meta_value&&(a=!0)}return a},q=async()=>{if("websitekit"==t?.data?.type)((e,i)=>{if("pro"==e.data.free_pro&&!W(e)){let e=f(t.data.post_builder,t.builder);return"elementor"==e?t.wdkit_set_notification({title:(0,a.__)("The Plus Addons for Elementor Pro Plugin Required","wdesignkit"),desc:"To unlock Elementor Pro templates, please install and activate The Plus Addons for Elementor Pro."}):"gutenberg"==e?t.wdkit_set_notification({title:(0,a.__)("Nexter Blocks Pro Plugin Required","wdesignkit"),desc:"To unlock Gutenberg Pro templates, please install and activate Nexter Blocks Pro."}):t.wdkit_set_notification({title:(0,a.__)("Get Pro Version to Download","wdesignkit"),desc:"This feature is available in Pro only."}),!1}{let e=window.location?.hash?window.location.hash:"";e.startsWith("#")&&(e=e.substring(1)),window.location.hash.search("#/browse")>-1?r(`/import-kit/${i}`,{state:{type:"browse",hash_route:e}}):r(`/import-kit/${i}`,{state:{hash_route:e}})}})(t,t?.data.id);else{if(T(!0),!W(t)&&"pro"==t.data.free_pro){let e=f(t.data.post_builder,t.builder);return"elementor"==e?t.wdkit_set_notification({title:(0,a.__)("The Plus Addons for Elementor Pro Plugin Required","wdesignkit"),desc:"To unlock Elementor Pro templates, please install and activate The Plus Addons for Elementor Pro."}):"gutenberg"==e?t.wdkit_set_notification({title:(0,a.__)("Nexter Blocks Pro Plugin Required","wdesignkit"),desc:"To unlock Gutenberg Pro templates, please install and activate Nexter Blocks Pro."}):t.wdkit_set_notification({title:(0,a.__)("Get Pro Version to Download","wdesignkit"),desc:"This feature is available in Pro only."}),T(!1),!1}w(!0),y({title:"",desc:"",body:"loading"});var e=await qe(t);N(e),e?.pro_plugin?.length>0?(y({title:"Plugins Needed for This Template",desc:"This template works best with the following plugins. Please install them to continue.",body:"requre_pro_plugin"}),T(!1)):y({title:"Setting Up Your Template",desc:"We’re getting everything ready. Please wait while we install the required plugins and import your template.",body:"import_template"})}},G=e=>{C(e),"move"==e?y({title:"Move to Workspace",desc:"Choose a workspace to move your item to.",body:"move_workspace"}):"copy"==e&&y({title:"Copy to Workspace",desc:"Select a workspace where you want to copy this item.",body:"copy_workspace"}),w(!0),c(!1)},z=()=>{const[i,r]=(0,e.useState)([]),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(!1),[p,m]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=n(t?.wdkit_meta);r(e)}),[]);return(0,g.jsxs)("div",{className:"wkit-workspace-act-popup",onClick:e=>{e.target.closest(".wkit-workspace-act-drp")||1!=p||m(!1)},children:[(0,g.jsx)("span",{className:"wkit-workspace-act-title",children:(0,a.__)("Select Workspace","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-workspace-act-drp",children:[(0,g.jsxs)("div",{className:"wkit-workspace-drp-header",onClick:()=>{m(!p)},children:[(0,g.jsx)("span",{children:(()=>{let e=i.findIndex((e=>e.w_id==l));return e>-1?i[e].work_title:(0,a.__)("Select Workspace","wdesignkit")})()}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),p&&(0,g.jsx)("div",{className:"wkit-workspace-drp-body",children:i.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-workspace-drp-opt",onClick:()=>{o(e?.w_id),m(!1)},children:e.work_title},t)))})]}),(0,g.jsxs)("div",{className:"wkit-workspace-act-footer",children:[(0,g.jsx)("button",{className:"wkit-workspace-act-cancel wdkit-trsprnt-btn",onClick:()=>{w(!1)},children:(0,a.__)("Cancel","wdesignkit")}),d?(0,g.jsx)("button",{className:"wkit-workspace-act-submit wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-workspace-act-submit wkit-btn-class",onClick:()=>{(async()=>{let e=L?.id?L.id:"",a=t?.data?.id?t.data.id:"",i=t?.wdkit_meta?.userinfo?.user_email?t.wdkit_meta.userinfo.user_email:"";c(!0);let n=await(async(e,t,a,i,n)=>{let r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","manage_workspace"),r.append("email",a),r.append("template_id",e),r.append("current_wid",n),r.append("wstype",i),r.append("wid",t);let l=await s().post(ajaxurl,r).then((async e=>await e.data));if(l.success)return l.data})(a,l,i,$,e);c(!1);let r={title:n?.message?n.message:"",desc:n?.description?n.description:""};if(t.wdkit_set_notification(r),w(!1),n?.success){t?.skeleton&&t.skeleton(!0);let e=await _();await t.wdkit_set_meta(e.data),t?.skeleton&&t.skeleton(!1)}})()},children:(0,a.__)(" Create ","wdesignkit")+$})]})]})},H=()=>{const[i,n]=(0,e.useState)(!1);return(0,g.jsxs)("div",{className:"wkit-delete-temp-popup",children:[(0,g.jsx)("button",{className:"wkit-delete-temp-cancel wdkit-trsprnt-btn",onClick:()=>{w(!1)},children:(0,a.__)("Cancel","wdesignkit")}),i?(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",onClick:()=>{(async()=>{n(!0);let e=await(async(e,t)=>{let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","template_remove"),a.append("email",t),a.append("template_id",e);let i=await s().post(ajaxurl,a).then((async e=>await e.data));if(i.success)return i})(t.data.id,t.wdkit_meta.userinfo.user_email);if(e.success){let e=await _();await t.wdkit_set_meta(e.data)}let a={title:e?.message?e.message:"",desc:e?.description?e.description:""};await t.wdkit_set_notification(a),n(!1),w(!1)})()},children:(0,a.__)("Delete","wdesignkit")})]})},U=()=>{const[i,n]=(0,e.useState)(!1);return(0,g.jsxs)("div",{className:"wkit-delete-temp-popup",children:[(0,g.jsx)("button",{className:"wkit-delete-temp-cancel wdkit-trsprnt-btn",onClick:()=>{w(!1)},children:(0,a.__)("Cancel","wdesignkit")}),i?(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",onClick:()=>{(async()=>{n(!0);let e=await(async(e,t,a)=>{let i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","manage_workspace"),i.append("wid",a),i.append("email",t),i.append("template_id",e),i.append("wstype","temp_remove");let n=await s().post(ajaxurl,i).then((async e=>await e.data));if(n.success)return n.data})(t.data.id,t.wdkit_meta.userinfo.user_email,L?.id),a={title:e?.message?e.message:"",desc:e?.description?e.description:""};if(await t.wdkit_set_notification(a),e.success){t?.skeleton&&t.skeleton(!0);let e=await _();await t.wdkit_set_meta(e.data),t?.skeleton&&t.skeleton(!1)}n(!1),w(!1)})()},children:(0,a.__)("Remove","wdesignkit")})]})},J=async()=>{x(!0);let e=t?.data?.id,a=t?.wdkit_meta?.userinfo?.user_email?t.wdkit_meta.userinfo.user_email:"";if(e){let i=await(async(e,t)=>{let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","manage_favorite"),a.append("email",t),a.append("template_id",e);let i=await s().post(ajaxurl,a).then((async e=>await e.data));if(i.success)return i})(e,a),n=t?.wdkit_meta?.favoritetemplate?.length>0?t?.wdkit_meta?.favoritetemplate:[];if(i?.success){if(u(!m),n.includes(e)){let t=n.findIndex((t=>t==e));n.splice(t,1)}else n.push(e);let a=Object.assign({},t?.wdkit_meta,{favoritetemplate:n});t.wdkit_set_meta(a);let s={title:i?.message?i.message:"",desc:i?.description?i.description:""};t.wdkit_set_notification(s),x(!1)}}},K=e=>"parent_loader"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}):"loading"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"done"==e||"active"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"done_parent"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-parent",style:{fontSize:"20px"}}):"pending"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"}):"parent_fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}):void 0,Z=()=>{const[a,n]=(0,e.useState)(i),[r,l]=(0,e.useState)([]),o=(0,e.useRef)([]),d=(0,e.useRef)([]);(0,e.useEffect)((()=>{m("install_plugin")}),[]);const c=(e,t)=>{let i=[...a],s=i.findIndex((t=>t.name==e));s>-1&&(i[s].status=t,"install_plugin"===e&&("loading"===t?i[s].label="Installing Plugins and Theme":"done"===t?i[s].label="Installed Plugins and Theme":"fail"===t&&(i[s].label="Installation Failed"))),n(i)},p=async e=>{if(d.current.findIndex((e=>"loading"==e.status))>-1)o.current.push(e);else{let t=Object.assign({},e,{status:"loading"});d.current.push(t),l([...d.current]),await(async e=>{let t=new FormData;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);var a=await s().post(ajaxurl,t).then((e=>e.data));if(a?.success){let e=d.current.findIndex((e=>e.p_id==a.p_id));d.current[e].status=a.status,l([...d.current])}let i=o.current.findIndex((e=>e.p_id==a.p_id));i>-1&&o.current.splice(i,1),o.current.length>0?p(o.current[0]):(await c("install_plugin","done"),m("plugin_setting"))})(e)}},m=async e=>{if("install_plugin"==e)await c(e,"loading"),j?.install_plg?.length>0?await Promise.all(j.install_plg.map((async e=>{await p(e)}))):(await c("install_plugin","done"),m("plugin_setting"));else if("plugin_setting"==e){await c(e,"loading"),await Ge("plugin");let t=j?.theme?j.theme:[],a=t.findIndex((e=>"nexter"==e.original_slug));a>-1&&"active"==t[a].status?m("theme_setting"):(m("import_json"),await c("theme_setting","done")),await c(e,"done")}else if("theme_setting"==e)await c(e,"loading"),await Ge("theme"),await c(e,"done"),m("import_json");else if("import_json"==e){await c(e,"loading");let i="pagetemplate"==t?.data?.type?"page":"section",s=t?.data?.id,n={id:s,type:i,wp_post_type:t.data.wp_post_type,builder:B},r=await Ue(n,t?.data);if("wdkit"!=wdkitData.use_editor)var a=r?.content;else a=r?.response?.content;a&&"elementor"==B?(await Qe(JSON.parse(a).content),await et()):a&&"gutenberg"==B&&await Xe(JSON.parse(a).content);let l=await Ze(a,t.data,B);if("wdkit"!=wdkitData.use_editor)await Ke(JSON.parse(l));else{let e=await Je(r,l),t=e.inserted_id;"nxt_builder"==r.value.wp_post_type&&await He(t);let a=e[s];y({title:"",desc:"",body:"import_complete"}),P(a)}await c(e,"done")}};return(0,g.jsx)("div",{className:"wkit-import-temp-process",children:(0,g.jsx)("div",{className:"wkit-import-process-container",children:a.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-temp-process-step",children:[(0,g.jsxs)("div",{className:`wkit-import-temp-process-parent wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:K(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.label})]}),r.length>0&&"install_plugin"==e.name&&d.current.map((t=>(0,g.jsxs)("div",{className:`wkit-import-temp-process-child wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:K(t.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:t.plugin_name})]},t.p_id)))]},t)))})})},Y=()=>(T(!1),(0,g.jsxs)("div",{className:"wkit-import-temp-success",children:[(0,g.jsx)("img",{className:"wkit-import-temp-success-gif",src:O+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wkit-import-temp-success-title",children:(0,a.__)("Template Imported Successfully","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-temp-success-desc",children:(0,a.__)("Your selected template is ready. Start customizing and building your page right away.","wdesignkit")}),(0,g.jsx)("a",{href:E.view,className:"wkit-import-temp-success-btn wkit-btn-class",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("view template","wdesignkit")})]})),X=e=>"loading"==e?(()=>{let e=wdkitData?.wdkit_white_label?.plugin_logo||O+"assets/images/jpg/wdkit_loader.gif";return(0,g.jsx)("img",{className:"wkit-card-loader-gif",src:e,draggable:!1})})():"import_template"==e?(0,g.jsx)(Z,{}):"import_complete"==e?(0,g.jsx)(Y,{}):"requre_pro_plugin"==e?(e=>{const t={1004:{name:"elementor-pro",link:"https://elementor.com/pricing-plugin/",lable:"Elementor Pro",desc:"This Template uses Pro widgets from Elementor Pro. Upgrade to Pro to unlock and import the full design."},1006:{name:"theplus_elementor_addon",link:"https://theplusaddons.com/pricing/",lable:"The Plus Addons for Elementor Pro",desc:"This Template uses Pro widgets from The Plus Addons for Elementor Pro. Upgrade to Pro to unlock and import the full design."},1008:{name:"the-plus-addons-for-block-editor-pro",link:"https://nexterwp.com/pricing/",lable:"Nexter Blocks Pro",desc:"This template uses Pro widgets from Nexter Blocks Pro. Upgrade to Pro to unlock and import the full design."}};return(0,g.jsx)("div",{className:"wkit-popup-pro-plugin",children:e.length>0&&e.map((e=>{let a=t?.[e.p_id]?.link?t[e.p_id].link:"";return(0,g.jsxs)("div",{className:"wkit-pro-plugin-list",children:[(0,g.jsxs)("div",{className:"wkit-pro-plugin-cont",children:[(0,g.jsx)("img",{className:"wkit-pro-plugin-icon",src:e?.plugin_icon}),(0,g.jsx)("span",{className:"wkit-pro-plugin-txt",children:e?.plugin_name})]}),(0,g.jsx)("a",{className:"wkit-pro-plugin-link",href:a,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-link-square wkit-pro-link-icon"})})]},e.p_id)}))})})(j?.pro_plugin):"copy_workspace"==e||"move_workspace"==e?(0,g.jsx)(z,{}):"delete_template"==e?(0,g.jsx)(H,{}):"remove_template"==e?(0,g.jsx)(U,{}):void 0;return(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[h&&(0,g.jsx)(Be,{title:v?.title,desc:v?.desc,body:X(v?.body),close_popup:()=>{w(!1)}}),(0,g.jsxs)("div",{className:"wdkit-browse-card-badges",children:["/my_uploaded"==M?.pathname&&(k?(0,g.jsx)("span",{className:"wdkit-browse-card-badge",children:(0,g.jsx)("span",{className:"wdkit-fav-sm-icon",children:(0,g.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,g.jsx)("circle",{cx:"50",cy:"50",fill:"none",strokeWidth:"6",r:"44",strokeDasharray:"207.34511513692632 71.11503837897544",children:(0,g.jsx)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.8518518518518516s",values:"0 50 50;360 50 50",keyTimes:"0;1"})})})})}):m?(0,g.jsxs)("span",{className:"wdkit-browse-card-badge",onClick:()=>{J(t.data.id)},children:[(0,g.jsx)("span",{className:"wdkit-fav-sm-icon",children:(0,g.jsx)("i",{className:"wdkit-i-filled-heart"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Unfavorite","wdesignkit")})]}):(0,g.jsxs)("span",{className:"wdkit-browse-card-badge",onClick:()=>{J(t.data.id)},children:[(0,g.jsx)("span",{className:"wdkit-fav-sm-icon",children:(0,g.jsx)("i",{className:"wdkit-i-heart"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Favorite","wdesignkit")})]})),(()=>{if("/my_uploaded"==M?.pathname){var e="wdkit-i-globe",i=(0,a.__)("Public","wdesignkit");return"private"==t.data?.post_status&&(e="wdkit-i-lock",i=(0,a.__)("Private","wdesignkit")),(0,g.jsxs)("div",{className:"wdkit-browse-card-badge",children:[(0,g.jsx)("span",{className:"wdkit-inner-icon",children:(0,g.jsx)("i",{className:e})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:i})]})}})()]}),"pro"==t.data.free_pro&&(0,g.jsx)("div",{className:"wdkit-card-tag wdkit-pro-crd",children:(0,g.jsx)("span",{children:t.data.free_pro})}),(0,g.jsx)("div",{className:"wdkit-temp-card-container",onClick:()=>{q()},children:(()=>{const e=e=>e?e.replace(/\s/g,"%20"):"";return"websitekit"==t?.data?.type?(0,g.jsx)("div",{className:"wdkit-browse-img-cover",onMouseEnter:R,onMouseLeave:V,children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsxs)("div",{className:"wkit-kit-cards",children:[(0,g.jsxs)("picture",{className:"wdkit-kit-card-picture",children:[t?.data&&t?.data.responsive_image&&t?.data.responsive_image.map(((t,a)=>(0,g.jsx)("source",{media:`(min-width: ${t.size}px)`,srcSet:e(t.url)},a))),(0,g.jsx)("img",{className:"wdkit-browse-card-img",src:t?.data?.post_image,alt:"featured-img",draggable:!1})]}),Array.isArray(t?.data?.kit_responsive_image)&&t?.data?.kit_responsive_image?.map(((a,i)=>(0,g.jsxs)("picture",{className:"wdkit-kit-card-picture",children:[a&&a.map(((t,a)=>(0,g.jsx)("source",{media:`(min-width: ${t.size}px)`,srcSet:e(t.url)},a))),(0,g.jsx)("img",{className:"wdkit-browse-card-img",src:t?.data?.kit_images[i],alt:"featured-img",draggable:!1})]},i)))]})})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wdkit-browse-img-cover",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsxs)("picture",{className:"wdkit-template-picture",children:[t?.data&&t?.data.responsive_image&&t?.data.responsive_image.map(((t,a)=>(0,g.jsx)("source",{media:`(min-width: ${t.size}px)`,srcSet:e(t.url)},a))),(0,g.jsx)("img",{className:"wdkit-card-template-img",src:t?.data?.post_image,alt:"featured-img",draggable:!1})]})})})})})()}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(ae="#","/my_uploaded"==M?.pathname?ae=`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`:"/browse"==M?.pathname&&(ae=`${wdkitData.wdkit_server_url}templates/${Q=t.data,"pagetemplate"==Q.type?"page":"websitekit"==Q.type?"kit":Q.type}/${ee=t.data.title,te=ee.replace(/\s+/g,"-"),(te=te.replace(/[^\w-]+/g,"")).toLowerCase()}/${t.data.id}`),wdkitData?.wdkit_white_label?.help_link||"/browse"!==M?.pathname&&"/my_uploaded"!==M?.pathname?(0,g.jsx)("span",{className:"wdkit-browse-card-name",children:t?.data?.title}):(0,g.jsx)("a",{href:ae,rel:"noopener noreferrer",target:"_blank",className:"wdkit-browse-card-name",children:t?.data?.title})),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",onClick:()=>{q()},children:A&&"websitekit"!==t?.data?.type?(0,g.jsx)("div",{className:"wdkit-widget-downloading"}):(0,g.jsx)("i",{className:"wdkit-i-download"})}),(!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,g.jsxs)("div",{className:"w-designkit-hover-select","data-id":t.data.id,children:[(0,g.jsx)("div",{className:"wkit-select-img",children:(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu",onClick:e=>{c(!d)}})}),(()=>{var e="";let i=L?.id?L.id:"",s=t?.wdkit_meta?.workspace?.length>0?t.wdkit_meta.workspace:[],n=s.findIndex((e=>e?.w_id==i));if(n>-1&&(e=s?.[n]?.roles?s[n].roles:""),d)return(0,g.jsx)("div",{style:{display:"block"},className:"wkit-dropdown-content",children:(0,g.jsx)("div",{className:"wkit-select-menu-wrapper",children:(!e||"subscriber"!=e)&&(0,g.jsxs)(tt,{children:["/my_uploaded"==M?.pathname&&!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/packs/view/${t.data.id}`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{className:"wkit-design-item",children:(0,a.__)("Edit","wdesignkit")})}),(0,g.jsxs)("button",{className:"wkit-design-item",onClick:()=>{G("copy")},children:[" ",(0,a.__)("Copy to Workspace","wdesignkit")," "]}),!(window.location.hash.search("/kit/")>-1)&&!(window.location.hash.search("#/manage_workspace")>-1)&&(0,g.jsxs)("button",{className:"wkit-design-item",onClick:()=>{y({title:"Are You Sure?",desc:"This will permanently delete the template. This action cannot be undone.",body:"delete_template"}),w(!0),c(!1)},children:[" ",(0,a.__)("Delete","wdesignkit")," "]}),("admin"==e||"editor"==e)&&(0,g.jsxs)(tt,{children:[(0,g.jsx)("button",{className:"wkit-design-item",onClick:()=>{G("move")},children:(0,a.__)("Move to Workspace","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-design-item",onClick:()=>{y({title:"Template Remove",desc:"Are you sure want to Remove this Template from Workspace?.",body:"remove_template"}),w(!0),c(!1)},children:(0,a.__)("Remove","wdesignkit")})]})]})})})})()]}),(0,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:t?.data?.builderUrl||F,alt:"builder-icon"})})]}),S>-1&&(0,g.jsx)(Be,{title:"Remove template",desc:"Remove template permenently",body:X("delete_temp"),close_popup:()=>{D(-1)}})]})]});var Q,ee,te,ae},it=e=>{var t=wdkitData.WDKIT_URL;return e?.link&&e.link,(0,g.jsxs)("div",{className:"wkit-content-not-availble",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:t+"assets/images/jpg/not-found-bell.gif",alt:"section"}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)("p",{children:(0,a.__)("The page you're looking for doesn't exist or has been moved from here.","wdesignkit")})]})},st=({showCount:e,totalCount:t,typeText:i})=>(0,g.jsxs)("span",{className:"wdkit-pagination-count",children:[(0,a.__)("Showing","wdesignkit")," ",e," ",(0,a.__)("of","wdesignkit")," ",t," ",i]}),{Fragment:nt}=wp.element,{wkitGetBuilder:rt,checkBuilder:lt}=wp.wkit_Helper,ot=t=>{const i=ue();wdkitData.WDKIT_URL;const[n,l]=(0,e.useState)(!1),[o,c]=(0,e.useState)("loading"),[m,u]=(0,e.useState)([]),[h,w]=(0,e.useState)(!0),[_,f]=(0,e.useState)(),[k,b]=(0,e.useState)(["page_builders","plugins","free_pro","type","category-0","category-1","category-2","tags"]),[x,v]=(0,e.useState)([]),[j,N]=(0,e.useState)(""),[$,C]=(0,e.useState)(""),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(""),[A,T]=(0,e.useState)(""),[L,M]=(0,e.useState)(""),[F,I]=(0,e.useState)(!1),[B,O]=(0,e.useState)(!1),[R,V]=(0,e.useState)(""),[W,q]=(0,e.useState)(1),[G,z]=(0,e.useState)({}),H=(0,e.useRef)(null),[U,J]=(0,e.useState)([]),[K,Z]=(0,e.useState)([]),[Y,X]=(0,e.useState)(),[Q,ee]=(0,e.useState)({type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:24,page:W}),[te,ae]=(0,e.useState)(window.innerWidth<991),ie=pe();!p()&&Object.values(t).length>0&&t.wdkit_Login_Route("/browse");const se=(0,e.useRef)(null);(0,e.useEffect)((()=>{if("/browse"!=ie?.pathname&&(window.location.hash="#/browse"),""==ie.search){var e=JSON.stringify(["websitekit"]),t=JSON.stringify([]);"wdkit"!==wdkitData.use_editor&&(e=JSON.stringify(["pagetemplate"]),t=JSON.stringify([1004]));let a={type:"browse_page",builder:"",buildertype:window.wdkit_editor,perpage:24,page:W,page_type:e,category:t};"wdkit"!==wdkitData.use_editor?(J(["pagetemplate"]),D([1004])):J(["websitekit"]),ee(a);const s=new URLSearchParams(re(a)).toString();i(`/browse?${s}`)}else{const e=new URLSearchParams(ie.search),t={};if(Array.from(e?.entries()).map((([e,a])=>{t[e]=a})),ee((e=>({...e,...t}))),t.search&&(C(t.search),N(t.search)),t.builder&&T(t.builder),t.free_pro&&P(t.free_pro),t.page_type&&J(JSON.parse(t.page_type)),t.category&&D(JSON.parse(t.category)),t.tag&&v(JSON.parse(t.tag)),t.page){const e=parseInt(t.page);e>0&&q(e)}}}),[]),(0,e.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_template&&e.push(1001),t?.wdkit_meta?.Setting?.gutenberg_template&&e.push(1002),Z(e)}),[t?.wdkit_meta?.Setting]),(0,e.useEffect)((()=>{const e=()=>{ae(window.innerWidth<992)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,e.useEffect)((()=>()=>{se.current&&se.current.abort()}),[]),(0,e.useEffect)((()=>{t?.wdkit_meta?.success&&(async()=>{if(l(!0),K.length>0){if("wdkit"==window.wdkit_editor)if(A)var e=Object.assign({},Q,{builder:JSON.stringify([A])});else e=Object.assign({},Q,{builder:JSON.stringify(K)});else e=Object.assign({},Q,{builder:""}),e=U.length<1?Object.assign({},e,{page_type:JSON.stringify(["pagetemplate","section"])}):Object.assign({},e,{page_type:JSON.stringify([U])});se.current&&se.current.abort(),se.current=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 s().post(ajaxurl,a,{signal:se.current.signal}).then((e=>(c(e.data),e.data))).catch((e=>{s().isCancel(e)}));t?.manage_licence&&f(t?.manage_licence),""==m&&t?.category&&(u(d(t?.category)),0===Object.keys(G).length&&z(t.tags)),l(!1)}})()}),[Q,K]);const ne=e=>{if(k?.includes(e)){var t=k.filter((t=>t!==e));b(t)}else b([...k,e])},re=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>"page"===e&&parseInt(t)>1||t.length>1&&"[]"!==t&&"type"!==e&&"perpage"!==e&&"buildertype"!==e&&"page"!==e))),le=async(e,t="plugins",a)=>{const{value:s,checked:n}=e.target;if("builder"===t)if(n){var r=Object.assign({},Q,{builder:s},{page:1});T(s),ee(r)}else r=Object.assign({},Q,{builder:""},{page:1}),T(""),ee(r);if("plugins"===t){let e=Q.plugin&&JSON.parse(Q.plugin).findIndex((e=>e===a)),t=Q.plugin_exclude&&JSON.parse(Q.plugin_exclude).findIndex((e=>e===a));if(e&&e>-1||0===e){var l=JSON.parse(Q.plugin),o=Q.plugin_exclude?JSON.parse(Q.plugin_exclude):[],d=l.splice(e,1)[0];d&&o.push(d);var c=l.filter((e=>e!==a));r=Object.assign({},Q,{plugin_exclude:JSON.stringify(o),plugin:JSON.stringify(c)})}else if(t&&t>-1||0===t){var p=JSON.parse(Q.plugin_exclude),m=p.filter((e=>e!==p[t]));r=Object.assign({},Q,{plugin_exclude:JSON.stringify(m)})}else{var u=Q.plugin?JSON.parse(Q.plugin):[];u.push(a),r=Object.assign({},Q,{plugin:JSON.stringify(u)})}}if("tags"===t)if(n){var h=[...x,Number(s)];await v(h),r=Object.assign({},Q,{tag:JSON.stringify(h)},{page:1})}else h=x.filter((e=>e!==Number(s))),await v(h),r=Object.assign({},Q,{tag:JSON.stringify(h)},{page:1});if("category"===t)if(n){var g=[...S,Number(s)];D(g),r=Object.assign({},Q,{category:JSON.stringify(g)},{page:1})}else g=S?.filter((e=>e!==Number(s))),D(g),r=Object.assign({},Q,{category:JSON.stringify(g)},{page:1});if("search"===t&&(r=Object.assign({},Q,{search:j,page:1})),"free_pro"===t&&(n?(r=Object.assign({},Q,{free_pro:s},{page:1}),P(s)):(r=Object.assign({},Q,{free_pro:""},{page:1}),P(""))),"pageType"===t){var w=[s];s?J(s):(w=[],J("")),D([]),r=Object.assign({},Q,{page_type:JSON.stringify(w)},{search:j},{category:[]},{page:1})}r=Object.assign({},r,{search:j}),ee(r),q(1),C(j);const _=new URLSearchParams(re(r)).toString();i(`/browse?${_}`)},oe=e=>{let t=Q.plugin&&JSON.parse(Q.plugin).findIndex((t=>t===e)),a=Q.plugin_exclude&&JSON.parse(Q.plugin_exclude).findIndex((t=>t===e));return t&&t>-1||0===t?(0,g.jsxs)("i",{className:"wdkit-i-checkbox-checked",children:[(0,g.jsx)("span",{className:"path1"}),(0,g.jsx)("span",{className:"path2"})]}):a&&a>-1||0===a?(0,g.jsxs)("i",{className:"wdkit-i-checkbox-cross",children:[(0,g.jsx)("span",{className:"path1"}),(0,g.jsx)("span",{className:"path2"})]}):(0,g.jsx)("i",{className:"wdkit-i-checkbox-filled"})},de=e=>0==e||!!K.includes(e),ce=async e=>{let t=document.querySelector(".wdkit-browse-column");e?(t.classList.add("wdkit-browse-column-collapse"),w(!0),setTimeout((()=>{t.classList.remove("wdkit-browse-column-collapse")}),50)):(t.classList.add("wdkit-browse-column-collapse"),setTimeout((()=>{w(!1)}),150))};return(0,g.jsxs)("div",{className:"wdkit-browse-templates",children:[h&&te&&(0,g.jsx)("div",{className:"wdkit-filter-overlay",onClick:()=>ce(!1)}),(0,g.jsx)("div",{className:`wdkit-browse-main ${1==n?"wkit-temp-skeleton":""} ${o?.template?"":"wkit-skeleton"}`,children:o?.template?(0,g.jsxs)(nt,{children:[(0,g.jsx)("div",{className:"wdkit-browse-column",style:h?{display:"block"}:{display:"none"},children:(0,g.jsxs)("div",{className:"wdkit-browse-column-inner",children:[(0,g.jsx)(Le,{title:(0,a.__)("Filters","wdesignkit"),filterToggle:h,setFilterToggle:ce}),(0,g.jsxs)("div",{className:"wdkit-filter-wrapper",children:["wdkit"==wdkitData.use_editor&&!(K.length<=1)&&(0,g.jsxs)(nt,{children:[(0,g.jsx)(Fe,{id:"page_builders",title:(0,a.__)("Page Builder","wdesignkit"),accordionToggle:k,onToggle:ne}),k?.includes("page_builders")&&(0,g.jsx)("div",{className:"wdkit-choose-builder-wrap",children:o?.builder.length>0&&Object.values(o?.builder)?.map(((e,t)=>{if(de(e.p_id))return(0,g.jsx)(Ie,{index:t,data:e,filterArgs:Q,handleFilterChecked:le},t)}))}),(0,g.jsx)("hr",{})]}),(0,g.jsxs)(nt,{children:[(0,g.jsx)(Fe,{id:"free_pro",title:(0,a.__)("Free/Pro","wdesignkit"),accordionToggle:k,onToggle:ne}),k?.includes("free_pro")&&(0,g.jsxs)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:[(0,g.jsxs)("label",{htmlFor:"wkit-free-all-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-all-btn-label",value:"",name:"FreeProFilter",onChange:e=>{le(e,"free_pro")},checked:!Q.free_pro||""==Q.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("All","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-free-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",name:"FreeProFilter",onChange:e=>{le(e,"free_pro")},checked:"free"==Q.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-pro-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",name:"FreeProFilter",onChange:e=>{le(e,"free_pro")},checked:"pro"==Q.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Pro","wdesignkit")})]})]}),(0,g.jsx)("hr",{})]}),(0,g.jsxs)(nt,{children:[(0,g.jsx)(Fe,{id:"type",title:(0,a.__)("Template Type","wdesignkit"),accordionToggle:k,onToggle:ne}),k?.includes("type")&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:"wdkit"==wdkitData.use_editor?(0,g.jsxs)("div",{className:"wkit-pageType-wrap",children:[(0,g.jsxs)("label",{htmlFor:"wkit_page_type_websitekit",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"websitekit",className:"wkit-styled-type-radio",id:"wkit_page_type_websitekit",name:"selectPageType",onChange:e=>{le(e,"pageType")},checked:!!U.includes("websitekit")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Page Kits","wdesignkit")})})]}),(0,g.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"pagetemplate",className:"wkit-styled-type-radio",id:"wkit_paget_type_pagetemplate",name:"selectPageType",onChange:e=>le(e,"pageType"),checked:!!U.includes("pagetemplate")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Full Pages","wdesignkit")})})]}),(0,g.jsxs)("label",{htmlFor:"wkit_paget_type_section",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"section",className:"wkit-styled-type-radio",id:"wkit_paget_type_section",name:"selectPageType",onChange:e=>le(e,"pageType"),checked:!!U.includes("section")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Sections","wdesignkit")})})]})]}):(0,g.jsxs)("div",{className:"wkit-pageType-wrap",children:[(0,g.jsxs)("label",{htmlFor:"wkit_paget_type_pagetemplate",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"pagetemplate",className:"wkit-styled-type-radio",id:"wkit_paget_type_pagetemplate",name:"selectPageType",onChange:e=>le(e,"pageType"),checked:!!U.includes("pagetemplate")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Full Pages","wdesignkit")})})]}),(0,g.jsxs)("label",{htmlFor:"wkit_paget_type_section",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"section",className:"wkit-styled-type-radio",id:"wkit_paget_type_section",name:"selectPageType",onChange:e=>le(e,"pageType"),checked:!!U.includes("section")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Sections","wdesignkit")})})]}),(0,g.jsxs)("div",{className:"wkit-pagetype-disabled",children:[(0,g.jsxs)("span",{className:"wkit-pageType-list-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,g.jsx)("a",{href:r()+"/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,g.jsxs)("label",{htmlFor:"wkit_page_type_websitekit",className:"wkit-pageType-list wkit-pageType-list-disabled",children:[(0,g.jsx)("input",{type:"radio",value:"websitekit",className:"wkit-styled-type-radio",id:"wkit_page_type_websitekit",name:"selectPageType",onChange:e=>{le(e,"pageType")},checked:!!U.includes("websitekit")}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Page Kits","wdesignkit")})})]})]})]})}),(0,g.jsx)("hr",{})]}),(()=>{if(Object.values(m).length<=0)return!1;const e=e=>"Website Kits"===e?(0,a.__)("Page Kits","wdesignkit"):"Page Templates"===e?(0,a.__)("Full Pages","wdesignkit"):e,t=e=>"wdkit"!==wdkitData.use_editor&&"Website Kits"==e;return Object.entries(m)?.filter((([e,a])=>(U==e.split(" ").join("").toLowerCase().slice(0,-1)||""==U)&&!t(e))),Object.entries(m)?.map((([i,s],n)=>{if((U==i.split(" ").join("").toLowerCase().slice(0,-1)||""==U)&&!t(i))return(0,g.jsxs)(nt,{children:[(0,g.jsxs)("div",{className:t(i)?"wkit-filter-container":"",children:[t(i)&&(0,g.jsxs)("span",{className:"wkit-pageType-mobile-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,g.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,g.jsx)(Fe,{id:`category-${n}`,title:e(i),accordionToggle:k,onToggle:ne})]}),k?.includes("category-"+n)&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:Object.entries(s)?.map((([e,t],a)=>(0,g.jsxs)("label",{htmlFor:"category_"+e,className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",value:e,className:"wkit-check-box",id:"category_"+e,name:"selectPlugin",onChange:e=>le(e,"category"),checked:S.includes(Number(e))?"checked":""}),(0,g.jsx)("span",{children:t.term_name})]},a)))})}),(0,g.jsx)("hr",{})]},n)}))})(),(0,g.jsxs)(nt,{children:[(0,g.jsx)(Fe,{id:"plugins",title:(0,a.__)("Plugins","wdesignkit"),accordionToggle:k,onToggle:ne}),k?.includes("plugins")&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:Object.values(o?.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,g.jsxs)("div",{className:"wkit-plugin-name",onClick:t=>le(t,"plugins",e.p_id),children:[oe(e.p_id),(0,g.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,g.jsx)("div",{className:"wdkit-plug-filterlogo",children:(0,g.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1})}),(0,g.jsx)("span",{children:e.plugin_name})]})]},t)}else if(de(e.plugin_builder)&&(Q.builder==e.plugin_builder||""==Q.builder||0==e.plugin_builder))return(0,g.jsxs)("div",{className:"wkit-plugin-name",onClick:t=>le(t,"plugins",e.p_id),children:[oe(e.p_id),(0,g.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,g.jsx)("div",{className:"wdkit-plug-filterlogo",children:(0,g.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1})}),(0,g.jsx)("span",{children:e.plugin_name})]})]},t)}))})})]}),!1]})]})}),(0,g.jsxs)("div",{className:"wdkit-browse-right-column",children:[(0,g.jsx)(nt,{children:(0,g.jsxs)("div",{className:"wdkit-search-filter",children:[!h&&(0,g.jsx)("div",{className:"wdkit-filter-btn",onClick:()=>{ce(!h)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Me,{type:"browse-templates",searchQuery:j,setSearchQuery:N,handleKeyPress:e=>{"Enter"===e.key&&(le(e,"search"),H.current.blur())},handleFilterChecked:le,inputRef:H})]})}),(0,g.jsxs)("div",{className:"wdkit-loop",children:[n?(0,g.jsx)(Te,{cards:!0}):o?.template.length>0?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:`wdkit-templates-card-main ${h?"wdkit-grid-3col":"wdkit-grid-4col"} ${h?"":"wkit-browse-filter-close"}`,children:Object.values(o.template).map(((e,a)=>(0,g.jsx)(nt,{children:("active"==e.is_activated&&"wdkit"==wdkitData.use_editor&<(e.post_builder,"all",o?.builder)||"wdkit"!=wdkitData.use_editor)&&(0,g.jsx)(at,{data:e,handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?rt(i,s):"",M("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else M(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),o.builder):M(t)},wdkit_dark_mode:t?.wdkit_dark_mode,manage_licence:_,builder:o.builder,filter:"browse",wdkit_meta:t?.wdkit_meta,currentPage:W,wdkit_set_notification:e=>t.wdkit_set_notification(e)})},a)))})}):(0,g.jsx)(it,{page:"template",link:wdkitData.WDKIT_DOC_URL+"export-templates-from-your-elementor-site-to-cloud/"}),(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[o.showcount>0&&o.totalcount>0&&(0,g.jsx)(st,{showCount:o.showcount,totalCount:o.totalcount,typeText:(0,a.__)("Templates","wdesignkit")}),o?.template.length>0&&o?.totalpage>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:o.totalpage,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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=>{if(window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage){const t=e.nextSelectedPage+1,a={...Q,page:t};ee(a),q(t);const s=new URLSearchParams(re(a)).toString();i(`/browse?${s}`)}},forcePage:W-1,onPageActive:()=>{}})]})]})]})]}):(0,g.jsx)(Te,{cards:!0,filter:!0,filterArgs:Q})})]})},dt=()=>{var e=wdkitData.WDKIT_URL;return(0,g.jsx)("div",{className:"wkit-temp-card-skeleton wkit-skeleton-row",children:Array.from({length:12}).map(((t,a)=>(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wdkit-browse-img-cover",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsx)("div",{className:"wdkit-template-picture",children:(0,g.jsx)("img",{className:"wdkit-card-template-img wkit-widget-placeholder-img",src:e+"assets/images/wkit-dummy-bg.png",draggable:"false",style:{opacity:"0"}})})})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(0,g.jsx)("p",{className:"wdkit-browse-card-name",children:(0,g.jsx)("span",{children:"Modern Hover Post"})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("i",{className:"wdkit-i-download"})}),(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})]})]})]},a)))})},{Fragment:ct}=wp.element,{checkBuilder:pt,wkitGetBuilder:mt}=wp.wkit_Helper,ut=t=>{if(!p())return t.wdkit_Login_Route("/my_uploaded"),(0,g.jsx)(Se,{to:"/login"});let i=pe();const[s,n]=(0,e.useState)(""),[l,o]=(0,e.useState)("loading"),[d,c]=(0,e.useState)(""),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(!1),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)("all"),[x,v]=(0,e.useState)(!1),[j,N]=(0,e.useState)(),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(1),[A,T]=(0,e.useState)(0),[L,M]=(0,e.useState)(),[F,I]=(0,e.useState)(),[B,O]=(0,e.useState)(""),[R,V]=(0,e.useState)(""),W=(0,e.useRef)(null),q=(0,e.useRef)(-1),G=24;(0,e.useEffect)((()=>{i.search&&""!=i.search?n(i.search.slice(1)):n(s)}),[i.search]);let z=0;(0,e.useEffect)((()=>{t?.wdkit_temp_meta?.temp_meta?.template_tab?n(t?.wdkit_temp_meta?.temp_meta?.template_tab):-1!=q.current||""!=s&&0!=S[s]?.length?n("pagetemplate"):["pagetemplate","section","websitekit"].map(((e,t)=>{S[e]&&S[e]?.length>0&&-1==q.current?(q.current=t,n(e)):n("pagetemplate")}))}),[$]),(0,e.useEffect)((()=>{o(t?.wdkit_meta),J()}),[t.wdkit_meta]),(0,e.useEffect)((()=>{U()}),[s,$,E]);const H=i.state;(0,e.useEffect)((()=>{H&&(P(H),n("websitekit"))}),[H]);const U=async()=>{if(v(!0),S[s]&&t?.wdkit_meta?.template){let t=(E-1)*G,a=t+G;if(M(t),I(a),_){var e=0;l?.favoritetemplate?.length>0&&l?.favoritetemplate.map((t=>{(S?.[s]?.length>0&&S?.[s].findIndex((e=>e.id==t)))>-1&&e++})),T(Math.ceil(e/G))}else T(Math.ceil(S[s].length/G));Z("","search")}setTimeout((()=>{v(!1)}),700)},J=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]};C(n),D(n)};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 K=(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,Z=(e,t)=>{if("search"===t){v(!0);let e=[...$[s]];if(""!=B.trim()){let t=e.filter((e=>e?.title?.toLowerCase().includes(B?.trim()?.toLowerCase()))),a={...$,[s]:t};T(Math.ceil(t.length/G)),D(a)}else{let t={...$,[s]:e};T(Math.ceil(e.length/G)),D(t)}setTimeout((()=>{v(!1)}),800)}};return(0,g.jsxs)("div",{className:"wkit-myupload-main",children:[(0,g.jsxs)("div",{className:"wkit-navbar",children:[(0,g.jsx)(ct,{children:(0,g.jsx)("div",{className:"wdkit-search-filter",children:(0,g.jsx)(Me,{type:"my-uploaded-templates",searchQuery:B,setSearchQuery:O,handleKeyPress:e=>{"Enter"===e.key&&(Z(e,"search"),W.current.blur())},handleFilterChecked:Z,inputRef:W})})}),(0,g.jsx)("div",{className:`wkit-navbar-right-btn ${K("disable-btn",$)}`,children:(0,g.jsx)("div",{className:`wdkit-favourite-btn ${K("disable-element",$)}`,onClick:()=>{(()=>{if(_)T(Math.ceil(S[s].length/G));else{var e=0;l?.favoritetemplate?.length>0&&l?.favoritetemplate.map((t=>{(S?.[s]?.length>0&&S?.[s].findIndex((e=>e.id==t)))>-1&&e++})),T(Math.ceil(e/G))}f(!_)})()},children:(0,g.jsx)("div",{className:"wdkit-favourite-btn-title",children:_?(0,g.jsx)("div",{className:"wdkit-fav-btn-inner",children:(0,g.jsx)("i",{className:"wdkit-i-filled-heart"})}):(0,g.jsxs)("div",{className:"wdkit-fav-btn-inner",children:[(0,g.jsx)("i",{className:"wdkit-i-heart"})," "]})})})}),(0,g.jsxs)("div",{className:"wkit-navbar-left-btn",children:[(0,g.jsx)("button",{className:"pagetemplate"==s?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{P(1),n("pagetemplate")},children:(0,g.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Pages","wdesignkit")})}),(0,g.jsx)("button",{className:"section"==s?"wdesignkit-menu tab-active":"wdesignkit-menu",onClick:()=>{P(1),n("section")},children:(0,g.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Sections","wdesignkit")})}),(0,g.jsxs)("div",{className:"wdkit-menu-disable-button",children:["wdkit"!==wdkitData.use_editor&&(0,g.jsxs)("span",{className:"wdkit-kit-disable-tooltip",children:[(0,a.__)("Our Pagekits can only be imported from the plugin dashboard,","wdesignkit")," ",(0,g.jsx)("a",{href:r()+"/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,g.jsx)("button",{className:`${"websitekit"===s?"wdesignkit-menu tab-active":"wdesignkit-menu"} ${"wdkit"!==wdkitData.use_editor?"wdesignkit-menu-disable":""}`,onClick:()=>{P(1),n("websitekit")},children:(0,g.jsx)("div",{className:"wdkit-filter-title",children:(0,a.__)("Kits","wdesignkit")})})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-loop",children:[0==x&&S[s]?.length>0&&(0,g.jsx)("div",{className:"wdesign-kit-main",children:Object.values(S[s]).slice(L,F).map(((e,a)=>{if(e.user_id==t?.wdkit_meta?.userinfo?.id)return z=""==z?0:z,(0,g.jsx)(ct,{children:(!_&&e.type===s&&pt(e.post_builder,k)||_&&l.favoritetemplate.includes(Number(e.id))&&pt(e.post_builder,k))&&(z++,(0,g.jsx)(at,{data:e,handlerTempID:t=>{"wdkit"==wdkitData.use_editor?((e,t,a,i,s)=>{if(e&&t&&i){let n=[{id:e,type:t}];i=s&&i?mt(i,s):"",c("section"==a?{pages:[],sections:n,builder:i}:{pages:n,sections:[],builder:i})}else c(e)})(t,e.wp_post_type,e.type,Number(e.post_builder),browseData.builder):c(t)},wdkit_dark_mode:t?.wdkit_dark_mode,builder:t?.wdkit_meta.builder,wdkit_meta:t?.wdkit_meta,currentPage:E,wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_set_notification:e=>t.wdkit_set_notification(e)}))},a)}))}),1==x&&(0,g.jsx)(dt,{}),0==x&&z<=0&&(0,g.jsx)(it,{page:(Y=s,"websitekit"===Y?"Kit":"Template"),link:"websitekit"===s?`${wdkitData.WDKIT_DOC_URL}create-pagekit-from-sections-and-full-pages-for-elementor-or-gutenberg/`:`${wdkitData.WDKIT_DOC_URL}export-templates-from-your-elementor-site-to-cloud/`})]}),(0,g.jsx)("div",{className:"wkit-wb-paginatelist",children:A>1&&(0,g.jsx)("div",{className:"wkit-pagination-main",children:(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:A,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&P(e.nextSelectedPage+1)},forcePages:E-1,onPageActive:()=>{}})})})]});var Y},{Fragment:ht}=wp.element,{form_data:gt,checkBuilder:wt}=wp.wkit_Helper,_t=t=>{const a=he(),i=pe(),s=ue(),n=new URLSearchParams(i.search),[r,l]=(n.get("page"),n.get("wsID"),(0,e.useState)("loading")),[o,d]=(0,e.useState)(""),[c,m]=(0,e.useState)(!1),[u,h]=(0,e.useState)(!1),[w,_]=(0,e.useState)({pages:[],sections:[]}),[f,k]=(0,e.useState)(!1),[b,x]=(0,e.useState)(),[v,y]=(0,e.useState)(!1);var j=t.wdkit_meta?.builder?t.wdkit_meta.builder:[];(0,e.useEffect)((()=>{"loading"!==r&&$()}),[r]),(0,e.useEffect)((()=>{y(!0),a&&a.kit_id&&(async e=>{if(!e)return;let t=p(),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 gt(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 r=Object.assign({},a,{post_image:e[s][1],responsive_image:t[n][1]});i.push(r)}else i.push(a)}));var n=Object.assign({},s,{template:i})}else n=[];return await y(!1),n})({template_id:a.kit_id}).then((async e=>{await N(e)}))}),[]);const N=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 l(n)};(0,e.useEffect)((()=>{if(r?.data?.template?.length>0){let e=r?.data?.template?.length,t=w.pages.length+w.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;h(e==t||i==t)}else h(!1)}),[w]);const $=()=>{const e=w.pages.length+w.sections.length,t=r?.data?.template?.filter((e=>"active"===e.is_activated)).length;if(u||t===e)_({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)})),_({pages:t,sections:a})}};return(0,g.jsxs)("div",{className:"wkit-myupload-main",children:[(0,g.jsxs)("div",{className:"wkit-kit-header",children:[(0,g.jsx)("div",{className:"wkit-header-content-inner",children:(0,g.jsx)("div",{className:"wkit-kit-header-back",children:(0,g.jsx)("div",{onClick:()=>{s(window.history.back())},children:(0,g.jsx)("div",{className:"wkit-kit-header-backbtn",children:(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[(0,g.jsx)("path",{d:"M19 12H5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M12 19L5 12L12 5",stroke:"#C22076",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]})})})})}),0==v&&r?.data?.template?.length>0&&(w?.pages?.length>0||w?.sections?.length>0)&&(0,g.jsx)("div",{className:"wkit-download-all-temp wkit-btn-class",onClick:()=>{d(w)},children:"Download ( "+(w?.pages?.length+w?.sections?.length)+"/"+(r?.data?.template?.length?r?.data?.template?.length:0)+" )"})]}),(0,g.jsxs)("div",{className:"wdkit-loop",children:[0==v&&r?.data?.template?.length>0&&j&&(0,g.jsx)("div",{className:"wdesign-kit-main",children:Object.values(r.data.template).map(((e,a)=>(0,g.jsx)(ht,{children:wt(e.post_builder,"all",j)&&(0,g.jsx)(at,{handler:e=>(e=>{r.data.favorite=e,l(r)})(e),handlerTempID:e=>d(e),credits:t?.wdkit_meta?.credits,data:e,wdkit_dark_mode:t?.wdkit_dark_mode,setLoading:e=>{y(e)},UpdateUserData:e=>t.wdkit_set_meta(e.data),userinfo:t?.wdkit_meta?.userinfo,builder:t?.wdkit_meta?.builder,checklist:w,favorite:r.data.favorite||[],type:"websitekit",handlerMultiSelect:(e,t)=>{((e,t)=>{e&&"add"==t?"pagetemplate"==e.type?(w.pages.push(e),_({pages:w.pages,sections:w.sections})):"section"==e.type&&(w.sections.push(e),_({pages:w.pages,sections:w.sections})):e&&"remove"==t&&("pagetemplate"==e.type?_({pages:w.pages.filter((t=>t.id!=Number(e.id))),sections:w.sections}):"section"==e.type&&_({pages:w.pages,sections:w.sections.filter((t=>t.id!=Number(e.id)))}))})(e,t)}})},a)))}),1==v&&(0,g.jsx)(dt,{}),0==v&&(null==r?.data?.template||r?.data?.template?.length<=0)&&(0,g.jsx)(it,{page:"template",link:wdkitData.WDKIT_DOC_URL+"create-pagekit-from-sections-and-full-pages-for-elementor-or-gutenberg/"})]})]})},ft=window.ReactDOM;function kt(){return kt=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},kt.apply(this,arguments)}function bt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,a)=>{let i=e[a];return t.concat(Array.isArray(i)?i.map((e=>[a,e])):[[a,i]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const xt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}new Map;const vt=e.startTransition;function yt(t){let{basename:a,children:i,future:s,window:n}=t,r=e.useRef();var l;null==r.current&&(r.current=(void 0===(l={window:n,v5Compat:!0})&&(l={}),function(e,t,a,i){void 0===i&&(i={});let{window:s=document.defaultView,v5Compat:n=!1}=i,r=s.history,l=x.Pop,o=null,d=c();function c(){return(r.state||{idx:null}).idx}function p(){l=x.Pop;let e=c(),t=null==e?null:e-d;d=e,o&&o({action:l,location:u.location,delta:t})}function m(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,a="string"==typeof e?e:E(e);return a=a.replace(/ $/,"%20"),$(t,"No window.location.(origin|href) available to create URL for href: "+a),new URL(a,t)}null==d&&(d=0,r.replaceState(j({},r.state,{idx:d}),""));let u={get action(){return l},get location(){return e(s,r)},listen(e){if(o)throw new Error("A history only accepts one active listener");return s.addEventListener(N,p),o=e,()=>{s.removeEventListener(N,p),o=null}},createHref:e=>t(s,e),createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=x.Push;let i=D(u.location,e,t);a&&a(i,e),d=c()+1;let p=S(i,d),m=u.createHref(i);try{r.pushState(p,"",m)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;s.location.assign(m)}n&&o&&o({action:l,location:u.location,delta:1})},replace:function(e,t){l=x.Replace;let i=D(u.location,e,t);a&&a(i,e),d=c();let s=S(i,d),p=u.createHref(i);r.replaceState(s,"",p),n&&o&&o({action:l,location:u.location,delta:0})},go:e=>r.go(e)};return u}((function(e,t){let{pathname:a="/",search:i="",hash:s=""}=P(e.location.hash.substr(1));return a.startsWith("/")||a.startsWith(".")||(a="/"+a),D("",{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:E(t))}),(function(e,t){C("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),l)));let o=r.current,[d,c]=e.useState({action:o.action,location:o.location}),{v7_startTransition:p}=s||{},m=e.useCallback((e=>{p&&vt?vt((()=>c(e))):c(e)}),[c,p]);return e.useLayoutEffect((()=>o.listen(m)),[o,m]),e.useEffect((()=>{return null!=(e=s)&&e.v7_startTransition||Ce("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||Ce("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||Ce("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),t.v7_normalizeFormMethod||Ce("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),t.v7_partialHydration||Ce("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),t.v7_skipActionErrorRevalidation||Ce("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}),[s]),e.createElement(Ee,{basename:a,children:i,location:d.location,navigationType:d.action,navigator:o,future:s})}ft.flushSync,e.useId;const jt="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$t=e.forwardRef((function(t,a){let i,{onClick:s,relative:n,reloadDocument:r,replace:l,state:o,target:d,to:c,preventScrollReset:p,viewTransition:m}=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,xt),{basename:h}=e.useContext(re),g=!1;if("string"==typeof c&&Nt.test(c)&&(i=c,jt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),a=U(t.pathname,h);t.origin===e.origin&&null!=a?c=a+t.search+t.hash:g=!0}catch(e){}let w=function(t,a){let{relative:i}=void 0===a?{}:a;ce()||$(!1);let{basename:s,navigator:n}=e.useContext(re),{hash:r,pathname:l,search:o}=ge(t,{relative:i}),d=l;return"/"!==s&&(d="/"===l?s:Y([s,l])),n.createHref({pathname:d,search:o,hash:r})}(c,{relative:n}),_=function(t,a){let{target:i,replace:s,state:n,preventScrollReset:r,relative:l,viewTransition:o}=void 0===a?{}:a,d=ue(),c=pe(),p=ge(t,{relative:l});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:E(c)===E(p);d(t,{replace:a,state:n,preventScrollReset:r,relative:l,viewTransition:o})}}),[c,d,p,s,n,i,t,r,l,o])}(c,{replace:l,state:o,target:d,preventScrollReset:p,relative:n,viewTransition:m});return e.createElement("a",kt({},u,{href:i||w,onClick:g||r?s:function(e){s&&s(e),e.defaultPrevented||_(e)},ref:a,target:d}))}));var Ct,St;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ct||(Ct={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(St||(St={}));var Dt="wdesignkit";const Et=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},Pt=e=>"string"==typeof e?e.replaceAll("'","\\'"):e,At=(e,t="")=>{const a=!e||""===e||"string"==typeof e&&""===e.trim();if(a&&t)return`'css' => [\n [\n 'property' => '${Pt(t)}',\n ],\n ],`;if(a||"string"!=typeof e)return"";const i=e.split(",").map((e=>e.trim())).filter((e=>e.length>0));if(0===i.length)return"";if(1===i.length)return t?`'css' => [\n [\n 'property' => '${Pt(t)}',\n 'selector' => '${Pt(i[0])}',\n ],\n ],`:`'css' => [\n [\n 'selector' => '${Pt(i[0])}',\n ],\n ],`;let s="";return i.forEach((e=>{s+=t?`[\n 'property' => '${Pt(t)}',\n 'selector' => '${Pt(e)}',\n ],\n `:`[\n 'selector' => '${Pt(e)}',\n ],\n `})),`'css' => [\n ${s}\n ],`},Tt=(e,t)=>{if("select"==e.type)return`'${e.name}' => '${Pt(e.select_defaultValue[0])}',\n`;if("choose"==e.type)return`'${e.name}' => '${Pt(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' => '${Pt(e.value)}', 'label' => '${Pt(e.lable)}'],`})),a+="),"):a=`'${e.name}' => ['value' => '${Pt(e.select2_defaultValue[0].value)}', 'label' => '${Pt(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}' => ${!!Pt(e.defaultValue)&&Pt(e.defaultValue)},\n`;if("media"==e.type)return"gutenberg"==t?`'${e.name}' => array(\n 'url' => '${Pt(e.defaultValue)}',\n 'Id' => '',\n ),`:"bricks"==t?`'${e.name}' => array(\n 'id' => '0',\n 'url' => '${Pt(e.defaultValue)}',\n ),`:`'${e.name}' => '${Pt(e.defaultValue)}', \n`;if("gallery"==e.type)return"gutenberg"==t?`'${e.name}' => array(\n (object) array('url' => '${e.defaultValue?Pt(e.defaultValue):""}', 'Id' => ''),\n ),`:"bricks"==t?`'${e.name}' => array(\n 'images' => [\n array( 'url' => '${Pt(e.defaultValue)}' )\n ]),`:`'${e.name}' => array(\n [\n 'id' => '',\n 'url' => '${Pt(e.defaultValue)}'\n ]\n ), \n`;if("url"==e.type&&"gutenberg"==t)return`'${e.name}' => array(\n 'url' => '${Pt(e.defaultValue)}',\n ${e.is_external?"'target' => true,":""}\n ${e.nofollow?"'nofollow' => 'no-follow'":""}\n ),`;if("url"==e.type&&"bricks"==t)return`'${e.name}' => array(\n 'type' => 'external',\n 'url' => '${Pt(e.defaultValue)}',\n 'newTab' => ${e.is_external}\n ),`;if("iconscontrol"==e.type&&"bricks"==t)return`'${e.name}' => array(\n 'library' => 'fontawesomeRegular',\n 'icon' => '${Pt(e.defaultValue)}',\n ), \n`;if("headingtags"==e.type){let t=Pt(e.select_defaultValue[0])?Pt(e.select_defaultValue[0]):"";return`'${e.name}' => esc_html__('${t}', '${Dt}'), \n`}{let t=Pt(e.defaultValue)?Pt(e.defaultValue):"";return["text","textarea","number","headingtags","heading"].includes(e.type)?`'${e.name}' => esc_html__('${t}', '${Dt}'), \n`:`'${e.name}' => '${t}', \n`}},Lt=(e,t,a,i,s,n,r)=>{var l="",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);l+=`${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' => '${Pt(e.defaultValue)}'\n ),\n`}else if("url"==e.type){let t=d(e.conditions,e.condition_value);l+=`${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' => '${Pt(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);l+=`${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' => '${Pt(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);l+=`${s} React.createElement(Pmgc_Select, {\n ${e?.showLable&&e.lable?`label: __(\`${e.lable}\`),`:""}\n options:${r||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' => '${Pt(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' => '${Pt(e.value)}', 'label' => '${Pt(e.lable)}']`)})):c=`'value' => '${Pt(e.select2_defaultValue[0].value)}', 'label' => '${Pt(e.select2_defaultValue[0].lable)}'`);let s=d(e.conditions,e.condition_value);l+=`${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);l+=`${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' => '${Pt(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}',`})),l+=`${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);l+=`${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' => '${Pt(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);l+=`${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' => '${Pt(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);l+=`${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);l+=`${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);l+=`${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);l+=`${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);l+=`${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)})),l+=`${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);l+=`${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);l+=`${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);l+=`${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' => '${Pt(e.defaultValue)}',\n 'Id' => '',\n ),\n ), \n`}else if("gallery"==e.type){let t=d(e.conditions,e.condition_value);l+=`${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?Pt(e.defaultValue):""}', 'Id' => ''),\n ),\n ), \n`}else if("iconscontrol"==e.type){let t=d(e.conditions,e.condition_value);l+=`${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'=> '${Pt(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);l+=`${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 m="";e.align_option.length>0&&(m="",m+="[",e.align_option.map((e=>{var t;t="align_svg"==e.align_icon||"align_title"==e.align_icon?"":e.align_icon,m+=`{ label: __('${e.align_lable}'), value: '${e.align_value}', title: __('${e.align_title?e.align_title:e.align_lable}'), icon: '${t}', svg: '${e.align_svg?e.align_svg:""}' }, \n`})),m+="]"),l+=`${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 : ${m},\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="",r="";e.fields.map((t=>{a+=Lt(t,"js",e.name,"",s)})),e.fields.map((e=>{n+=Lt(e,"php")})),e.fields&&e.fields.length>0&&(r+="[",e.fields.map((e=>{r+=Tt(e,"gutenberg")})),r+="]\n"),l+=`${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' => ${r||"[]"},\n ), \n`}else if("normalhover"==e.type){let t=d(e.conditions,e.condition_value),a="";l+=`${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}`;l+=`React.createElement(Pmgc_Tab, {\n tabTitle: __('${n}')\n }, `,e.fields.map((e=>{e.key==t&&(l+=Lt(e,"js","","",s),a+=Lt(e,"php",""))})),l+="), \n"}})),l+="), \n",o+=`${a}\n`}else if("repeater"==e.type){let t=d(e.conditions,e.condition_value),a="",n="";var u="";e.fields.map((t=>{a+=Lt(t,"js",e.name,"",s)})),e.fields.map((e=>{n+=Lt(e,"php")})),e.fields.length>0&&(u+="array(\n '_key' => '0', \n",e.fields.map((e=>{u+=Tt(e,"gutenberg")})),u+="),"),l+=`${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(${u}),\n ), \n`}else if("rawhtml"==e.type){let t=d(e.conditions,e.condition_value);l+=`${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);l+=`${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);l+=`${a} React.createElement(Pmgc_Styles, {\n ${e?.showLable&&e.lable?`label: __("${e.lable}"),`:""}\n columns: '${e.columns}',\n ${e?.description?`help: '${Pt(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' => '${Pt(e.select_defaultValue[0])}',\n ),\n`}else if("datetime"==e.type){let t=d(e.conditions,e.condition_value);l+=`${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+=Lt(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`,"wdkit_post_type?.order_by ? wdkit_post_type.order_by : []"):t+=Lt(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`),n+=Lt(a,"php","","",s,`, ${e.name}_fun()`)}}));let r=d(e.conditions,e.condition_value);l+=`${r} 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+=Lt(i,"js","","",s,`, ${e.name}_fun(value, '${n}')`,"wdkit_post_type?.order_by ? wdkit_post_type.order_by : []"):t+=Lt(i,"js","","",s,`, ${e.name}_fun(value, '${n}')`),a+=Lt(i,"php","","",s,`, ${e.name}_fun()`)}})),d(e.conditions,e.condition_value),l+=`${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+=Lt(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`,"wdkit_post_type?.post_list ? wdkit_post_type.post_list : []"):t+=Lt(a,"js","","",s,`, ${e.name}_fun(value, '${i}')`),n+=Lt(a,"php","","",s,`, ${e.name}_fun()`)}));let r=d(e.conditions,e.condition_value);l+=`${r} 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?l:void 0},Mt=(e,t,a)=>{const i=e=>{var t="";return 1==e.conditions&&(e.condition_value.values.map((e=>{""==e.name||""==e.operator||(r+=`array('name' => '${Pt(e.name)}', 'operator' => '${e.operator}', 'value' => '${Pt(e.value)}'),\n`)})),""==r?t="":t+=`'conditions' => array(\n 'relation' => '${e.condition_value.relation}',\n 'terms' => [${r}],\n ),`),t};var s="wdesignkit",n="",r="",l=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::TEXT,\n ${1!=e?.ai_support?"'ai' => [ 'active' => false ],":""}\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${s}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(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("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="",r=e?.number_setting?.min,l=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__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::NUMBER,\n 'min' => ${null!=r&&""!=r?r:'""'},\n 'max' => ${null!=l&&""!=l?l:'""'},\n 'step' => ${null!=d&&""!=d?d:'""'},\n 'default' => ${null!=e.defaultValue&&""!=e.defaultValue?e.defaultValue:'""'},\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(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="",m="",u="";if(""==t&&null!=t&&(c=`'name' => '${e.name}',`),"Old"==e.repeater_type?p+=`repeater_${Et()}`:"New"==e.repeater_type&&(p=""),e.fields){u+="array(";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(u+="array(",u+=`'_id'=>uniqid('Wkit-${Et()}'),\n`,e.fields.map((e=>{u+=Tt(e,"elementor")})),u+="),\n");u+=")"}e.fields.length>0&&("Old"==e.repeater_type?d+=`$${p}->get_controls(),`:"New"==e.repeater_type&&(d+="array(",e.fields.map((e=>{l.includes(e.type)||(d+=`${Mt(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__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.title_field)}',`:""}\n\t\t\t\t'fields' => ${d||"array(),"}\n ${u?`'default' => ${u},`:""}\n ${e.controlClass?`'classes' => '${Pt(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=>{m+=Mt(e,p)})),n+=`$${p} = new \\Elementor\\Repeater();\n\n ${m}\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 h="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),e.fields&&(t&&null!=t?(h+=`$${t}->start_popover();\n`,e.fields.map((e=>{h+=Mt(e,t)})),h+=`$${t}->end_popover();\n`):(h+="$this->start_popover();\n",e.fields.map((e=>{h+=Mt(e)})),h+="$this->end_popover();\n"));let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::POPOVER_TOGGLE,\n ${e.return_value?`'return_value' => '${Pt(e.return_value)}',`:""}\n 'default' => 'yes',\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(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 ${h}\n`:`$this->${1==e.responsive?"add_responsive_control":"add_control"}('${e.name}',\n ${r}\n );\n ${h}\n`}else if("normalhover"==e.type){let a="";h="",""==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}`;h+=`$${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=>{h+=Mt(e,t)})),h+=`$${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}`;h+=`$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=>{h+=Mt(e)})),h+="$this->end_controls_tab();\n"}})));let r=`array(\n ${a}\n ${i(e)}\n )`;n+=null!=t&&""==t?r:t&&null!=t?`$${t}->start_controls_tabs('${e.name}',\n ${r}\n );\n ${h}\n\n $this->end_controls_tabs();`:`$this->start_controls_tabs('${e.name}',\n ${r}\n );\n ${h}\n\n $this->end_controls_tabs();`}else if("wysiwyg"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(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__( '${Pt(e.defaultValue)}', '${s}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(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("code"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n 'type' => Controls_Manager::CODE,\n ${1!=e?.ai_support?"'ai' => [ 'active' => false ],":""}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.defaultValue)}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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("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 g="";g+="'options' => array(",e.align_option.map((e=>{g+=`\n '${e.align_value}' => array(\n 'title' => esc_html__( '${Pt(e.align_lable)}', '${s}' ),\n 'icon' => '${Pt(e.align_icon)}',\n ),\n `})),g+="),"}let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n 'type' => Controls_Manager::CHOOSE,\n ${g}\n ${e.align_defaultValue?`'default' => '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${i(e)}\n ${o}\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("datetime"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::DATE_TIME,\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\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("gallery"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n 'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),\n 'type' => Controls_Manager::GALLERY,\n ${e.defaultValue?`\n 'default' => array(\n [\n 'id' => '',\n 'url' => '${Pt(e.defaultValue)}'\n ]\n ),\n `:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\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("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__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'types' => [${e.types}],\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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="",r="",l="";""==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=>{r+=`'${e}',`})),e.dimension_defaultValue&&(1==e.dimension_defaultValue.isLinked?l=`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&&(l=`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__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::DIMENSIONS,\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${!0===e.showLable?"":`'show_label' => ${e.showLable},`}\n ${!1===e.lableBlock?"":`'label_block' => ${e.lableBlock},`}\n 'size_units' => array(${r}),\n ${l?`'default' => ${l},`:""}\n ${1==e.responsive?`'tablet_default' => ${l},\n 'mobile_default' => ${l},\n 'widescreen_default' => ${l},`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(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 r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.defaultValue)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${e.controlClass?`'classes' => '${Pt(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?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("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' => '${Pt(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__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::HIDDEN,\n ${e.defaultValue?`'default' => '${Pt(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 r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::MEDIA,\n ${1!=e?.ai_support?"'ai' => [ 'active' => false ],":""}\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\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("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' => '${Pt(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 r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::HEADING,\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n ${e.controlClass?`'classes' => '${Pt(e.controlClass)}',`:""}\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("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 r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::RAW_HTML,\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${e.defaultValue?`'raw' => wp_kses_post( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\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("iconscontrol"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::ICONS,\n 'fa4compatibility' => 'icon',\n ${e?.description?`'description' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e.defaultValue?`'default' => array(\n 'value' => '${Pt(e.defaultValue)}',\n 'library' => 'fa-solid',\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("slider"==e.type){o="";var w="",_="",f="";let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`),""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(w+=`"${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),`)})),w&&_?(w=`'size_units' => array( ${w} ),`,_=`'range' => array(${_}),`):(w="",_="")),""!=e.slider_defaultValue&&null!=e.slider_defaultValue&&(f+=w?`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&&w?o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}}{{UNIT}};',)`:o+=`'{{WRAPPER}} ${e.selectors}' => '${e.selector_value}: {{SIZE}};',)`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::SLIDER,\n ${w}\n ${e.controlClass?`'classes' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${_}\n ${f?`'default' => ${f},`:""}\n ${1==e.responsive?`'tablet_default' => ${f},\n 'mobile_default' => ${f},\n 'widescreen_default' => ${f},`:""}\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?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("select"==e.type){let r=e.options;var k="";let l="";""==t&&null!=t&&(l=`'name' => '${e.name}',`),r.map((e=>{k+=`'${e.value}' => esc_html__( '${e.lable}', '${s}' ),`}));let o=`array(\n ${l}\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${e.select_defaultValue[0]?`'default' => '${Pt(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 r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n 'default' => '0',\n ${i(e)}\n 'options' => Wdkit_Wb_Elementor_Controller::wdkit_get_templates(),\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("select2"==e.type){let a=e.options;k="";let r="";var b=[];""==t&&null!=t&&(r=`'name' => '${e.name}',`),a.map((e=>{k+=`'${Pt(e.value)}' => esc_html__( '${Pt(e.lable)}', '${s}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{b.push("'"+Pt(e.value)+"'")}));let l=`array(\n ${r}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::SELECT2,\n ${e?.description?`'description' => esc_html__( '${Pt(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(${b}),\n ${!0===e.multiple?`'multiple' => ${e.multiple},`:""}\n ${e.controlClass?`'classes' => '${Pt(e.controlClass)}',`:""}\n\n 'options' => array( ${k} ),\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("textarea"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n 'type' => Controls_Manager::TEXTAREA,\n ${1!=e?.ai_support?"'ai' => [ 'active' => false ],":""}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(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__( '${Pt(e.placeHolder)}', '${s}' ),`:""}\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${s}' ),`:""}\n ${e.controlClass?`'classes' => '${Pt(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("switcher"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::SWITCHER,\n 'label_on' => esc_html__( '${Pt(e.label_on)}', '${s}' ),\n 'label_off' => esc_html__( '${Pt(e.label_off)}', '${s}' ),\n ${e?.description?`'description' => esc_html__( '${e.description}', '${s}' ),`:""}\n 'return_value' => '${Pt(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' => '${Pt(e.controlClass)}',`:""}\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("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 r="";""==t&&null!=t&&(r=`'name' => '${e.name}',`),a.map((e=>{k+=`'${e.value}' => esc_html__( '${e.lable}', '${s}' ),`}));let l=`array(\n ${r}\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${e.select_defaultValue[0]?`'default' => '${Pt(e.select_defaultValue[0])}',`:""}\n ${i(e)}\n 'options' => array( ${k} ),\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("url"==e.type){let a="",r=[];""==t&&null!=t&&(a=`'name' => '${e.name}',`),e.url_options&&1==e.url_options&&e.url_options_array?(r+="array(",e.url_options_array.map((e=>{r+=`'${e}',`})),r+=")"):r=!1;let l=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::URL,\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${s}' ),`:""}\n 'options' => ${r},\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' => '${Pt(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("alert"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'heading' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::ALERT,\n ${e?.description?`'content' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${"default"!==e.separator?`'separator' => '${e.separator}',`:""}\n 'alert_type' => '${e.alert_type}',\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("notice"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'heading' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n 'type' => Controls_Manager::NOTICE,\n ${e?.description?`'content' => esc_html__( '${Pt(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?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("deprecatednotice"==e.type){let a="";""==t&&null!=t&&(a=`'name' => '${e.name}',`);let r=`array(\n ${a}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${s}' ),`:""}\n ${e?.description?`'content' => esc_html__( '${Pt(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' => '${Pt(e.deprecatedValue[0].Widget)}',\n 'since' => '${Pt(e.deprecatedValue[1].Since)}',\n 'last' => '${Pt(e.deprecatedValue[2].Last)}',\n 'plugin' => '${Pt(e.deprecatedValue[3].Plugin)}',\n 'replacement' => '${Pt(e.deprecatedValue[4].Replacement)}',\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("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+=Mt(i,t,'$this->set_options("order_by")'):a+=Mt(i))}));let r=`array(\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${i(e)}\n )`;n+=`$this->${1==e.responsive?"add_responsive_control":"add_control"}('post_type_${e.unique_id}',\n ${r}\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+=Mt(i,t,'$this->set_options("order_by")'):a+=Mt(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+=Mt(i,t,'$this->set_options("post_list")'):a+=Mt(i)})),n+=`\n $this->add_control('taxonomy_${e.unique_id}',\n array(\n ${e.lable?`'label' => esc_html__( '${Pt(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' => '${Pt(e.controlClass)}',`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${s}' ),`:""}\n ${i(e)}\n )\n );\n\n \n ${a}`}return n},Ft=(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+=`['${Pt(e.name)}','${"=="==e.operator?"=":e.operator}', ${1==e.value||0==e.value||"true"==e.value||"false"==e.value?e.value:`'${Pt(e.value)}'`}],\n`)})),""==o?t="":t+=`'required' => [${o}],`),t};var r="wdesignkit",l="",o="",d=["typography","textshadow","boxshadow","textstrocke","border","background","imagesize","cssfilter"];if("text"==e.type){let s=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'text',\n 'spellcheck' => true,\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${r}' ),`:""}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\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__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${!1===e.lableBlock?"":`'inline' =>${e.lableBlock},`}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n ${e.selector_value||e.selectors?At(e.selectors||"",e.selector_value||""):""}\n `;l+=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?Et():e.repeater_type,e.fields){p+="[";for(let t=0;t<e.defaultCount;t++)e.fields.length>0&&(p+="[",e.fields.map((e=>{p+=Tt(e,"bricks")})),p+="],\n");p+="]"}e.fields.length>0&&(c+="[",e.fields.forEach((e=>{d.includes(e.type)||(c+=`\n ${Ft(e,"","repeater")}`)})),c+="],"),l+=`\n $this->controls['${e.name}'] = [\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n\t\t\t\t'type' => 'repeater',\n ${e.title_field?`'titleProperty' => '${Pt(e.title_field)}',`:""}\n ${p?`'default' => ${p},`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n 'inline' => false,\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n 'fields' => ${c||"[]"}\n ${n(e)}\n ];\n `}else if("textarea"==e.type){let s=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'textarea',\n 'rows' => '${e.rows}',\n 'spellcheck' => true,\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n ${e.defaultValue?`'default' => '${Pt(e.defaultValue)}',`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'color',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.selector_value||e.selectors?At(e.selectors||"",e.selector_value||""):""} \n ${e.defaultValue?`'default' => [\n 'hex' => '${Pt(e.defaultValue)}',\n ],`:""}\n ${n(e)}\n `;l+=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 m="";o.map((e=>{m+=`'${e.value}' => esc_html__( '${e.lable}', '${r}' ),`}));let d=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'select',\n ${s?`'options' => ${s},`:`'options' => array( ${m} ),`}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n 'multiple' => false, \n 'searchable' => true,\n 'clearable' => true,\n ${e.select_defaultValue[0]?`'default' => '${Pt(e.select_defaultValue[0])}',`:""}\n ${n(e)}\n `;l+=a?`'${e.name}' => [\n ${d}\n ],`:`$this->controls['${e.name}'] = [\n ${d}\n ]\n ;\n`}else if("select2"==e.type){let s=e.options;m="";var u=[];s.map((e=>{m+=`'${Pt(e.value)}' => esc_html__( '${Pt(e.lable)}', '${r}' ),`})),e&&e.select2_defaultValue&&e.select2_defaultValue.map((e=>{u.push("'"+Pt(e.value)+"'")}));let o=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'select',\n 'options' => [ ${m} ],\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n 'multiple' => true, \n 'searchable' => true,\n 'clearable' => true,\n ${u?`'default' => array(${u}),`:""}\n ${n(e)}\n\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n 'type' => 'link',\n 'default' => array(\n 'type' => 'external',\n 'url' => '${Pt(e.defaultValue)}',\n 'newTab' => ${e.is_external}\n ),\n 'pasteStyles' => false,\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n 'type' => 'image',\n ${e.defaultValue?`\n 'default' => [\n 'url' => '${Pt(e.defaultValue)}',\n ],\n `:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'icon',\n 'default' => [\n 'library' => 'fontawesomeRegular',\n 'icon' => '${Pt(e.defaultValue)}',\n ],\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${e.selectors?At(e.selectors):""}\n `;l+=a?`'${e.name}' => [\n ${s}\n ],`:`$this->controls['${e.name}'] = [\n ${s}\n ]\n ;\n`}else if("slider"==e.type){var h="",g="";""!=e.size_units&&null!=e.size_units&&(e.size_units.map((e=>{1==e.checked&&(h+=`"${e.type}",`,g+=`'${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],`)})),h&&g?(h=`'size_units' => [ ${h} ],`,g=`'units' => [${g}],`):(h="",g=""));let s=`\n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'slider',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.selector_value||e.selectors?At(e.selectors||"",e.selector_value||""):""}\n ${g}\n \n 'default' => '${e.slider_defaultValue[1]}${Pt(e.slider_defaultValue[0])}',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'dimensions',\n ${e.selector_value||e.selectors?At(e.selectors||"",e.selector_value||""):""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${s?`'default' => ${s},`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'background',\n ${e.selector?At(e.selector,"background"):""}\n 'exclude' => [\n 'videoUrl',\n 'videoScale',\n ],\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}`;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'border',\n ${e.selector?At(e.selector,"border"):""}\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'typography',\n ${e.selector?At(e.selector,"typography"):""}\n 'inline' => true,\n ${n(e)}\n 'popup' => true, \n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'text-shadow',\n ${e.selector?At(e.selector,"text-shadow"):""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'box-shadow',\n ${e.selector?At(e.selector,"box-shadow"):""}\n 'small' => true,\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'filters',\n ${e.selector?At(e.selector,"filter"):""}\n 'inline' => true,\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n 'type' => 'svg',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'datepicker',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${r}' ),`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'code',\n 'mode' => '${e.language}',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => '${Pt(e.defaultValue)}',`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'image-gallery',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n 'inline' => false,\n ${e.defaultValue?`\n 'default' => array(\n 'images' => [\n array(\n 'url' => '${Pt(e.defaultValue)}'\n )\n ]\n ),\n `:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\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__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n ${s||e.selectors?At(e.selectors||"",e.alignType.trim()):""}\n \n `;l+=a?`'${e.name}' => [\n ${o}\n ],`:`$this->controls['${e.name}'] = [\n ${o}\n ]\n ;\n`}else if("headingtags"==e.type){m="",[{value:"h1",lable:"H1"},{value:"h2",lable:"H2"},{value:"h3",lable:"H3"},{value:"h4",lable:"H4"},{value:"h5",lable:"H5"},{value:"h6",lable:"H6"}].map((e=>{m+=`'${e.value}' => esc_html__( '${e.lable}', '${r}' ),`}));let s=`\n \n 'tab' => '${t}',\n ${a?"":`'group' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'select',\n 'options' => [ ${m} ],\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n 'multiple' => false, \n 'searchable' => false,\n 'clearable' => false,\n ${e.select_defaultValue[0]?`'default' => '${Pt(e.select_defaultValue[0])}',`:""}\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?"rawhtml"===(e.headingType||"normal")?`'content' => '${Pt(e.lable)}',`:`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'info',\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'checkbox',\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => ${e.defaultValue},`:""}\n ${n(e)}\n\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'editor',\n 'inlineEditing' => [\n 'selector' => '.text-editor',\n 'toolbar' => true,\n ],\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.defaultValue?`'default' => esc_html__( '${Pt(e.defaultValue)}', '${r}' ),`:""} \n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'query',\n 'default' => [\n 'post_type' => 'post',\n ],\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${n(e)}\n\n `;l+=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' => '${Pt(i?.section)}',`}\n 'type' => 'separator',\n ${n(e)}\n `;l+=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' => '${Pt(i?.section)}',`}\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'gradient',\n ${e.selectors?At(e.selectors||"","background-image"):""}\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n 'inline' => false,\n ${n(e)}\n `;l+=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+=Ft(s,t,void 0,i,'$this->set_options("order_by")'):a+=Ft(s,t,void 0,i))}));let s=`\n 'tab' => '${t}',\n 'group' => '${Pt(i?.section)}',\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'type' => 'select',\n 'options' => $this->set_options("post_list"),\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n 'multiple' => false, \n 'default' => 'post',\n ${n(e)}\n `;l+=`$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+=Ft(s,t,void 0,i,'$this->set_options("order_by")'):a+=Ft(s,t,void 0,i))})),l+=a}else if("taxonomy"==e.type){let a="";e?.fields?.length&&e?.fields.map((s=>{s.name=="post_type_"+e.unique_id?a+=Ft(s,t,void 0,i,'$this->set_options("post_listing")'):a+=Ft(s,t,void 0,i)})),l+=`$this->controls['${e.name}'] = [\n 'tab' => '${t}',\n ${e.lable?`'label' => esc_html__( '${Pt(e.lable)}', '${r}' ),`:""}\n 'group' => '${Pt(i?.section)}',\n 'type' => 'select',\n 'options' => get_taxonomies(),\n ${e?.description?`'description' => esc_html__( '${Pt(e.description)}', '${r}' ),`:""}\n ${null==e.lableBlock||e.lableBlock?"":"'inline' => true,"}\n ${e.placeHolder?`'placeholder' => esc_html__( '${Pt(e.placeHolder)}', '${r}' ),`:""}\n 'multiple' => false, \n 'searchable' => true,\n 'clearable' => true,\n 'default' => 'category',\n ${n(e)}\n ]\n ;\n\n \n ${a}`}return l},It=async(e,t,a,i,n,r,l,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,m=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 u="",h=wdkitData.WDKIT_SERVER_PATH,g="",_={},f="",k="wdesignkit",b=[],x=[],v="",y={api:"",ajax:""},j=[],N=t.Editor_code?.Editor_codes?.[0]?.php,$=d(),C=[],S=d(),D=[],E=!1,P=t?.Editor_data?.links?.[0]?.external_cdn?[...t?.Editor_data?.links?.[0]?.external_cdn]:[];const A=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,2)+e},T=()=>Math.floor(1e6*Math.random()),L=e=>{let a=`${h}/bricks/${B("folder")}/${B("file")}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:a,img_ext:e})}},M=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!l||!l.type){if(r){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];return a?L(a):t.WcardData}if(o){let e=o.split("."),a=e[e.length-1];return a?L(a):t.WcardData}return t.WcardData}{let a=l.type;var e="";if(a.search("jpeg")>-1)e="jpg";else if(a.search("jpg")>-1)e="jpg";else{if(!(a.search("png")>-1))return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:"",img_ext:e})};e="png"}if(e)return L(e)}},F=function(e){return(new DOMParser).parseFromString(e,"text/html")};var I=(e=>{let t=F(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},O=e=>{let t=[],a=F(I),i=a.querySelectorAll(`[data-${e}]`);if(i.length>0)return I=a.head.innerHTML+a.body.innerHTML,Object.values(i).map((e=>{t.push(e.outerHTML)})),t};(()=>{if("update"===e||"sync"===e&&null!=r){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 R=(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&&(E=!0),`${a}(${t})`):t},V=async e=>{if(e){let t=O(e);t?.length>0&&t?.map(((t,a)=>{if(t){var i=F(t);j.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&V(t.name)}));let a=O(e);if(!(a.length>0))return!1;{let t=j.findIndex((t=>t.name==e)),i=j[t];if("repeater"==i.type){let e=A(),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 ${_?.[i.name]?_?.[i.name]:""}\n ${t}\n }\n }`,I=I.replace(a[0],`'.$${i.name+"_"+e}.'`)}else if("cpt"==i.type){let e=A(),t=a[0],s=F(t),n=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";if(n?.length>0){let e="",a="";n.map((i=>{let s=A();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),l+=`\n ${a}\n if( !empty ($p_item['categories']) ){\n foreach( $p_item['categories'] as $cat){\n ${e}\n }\n }`}let o="";if(r?.length>0){let e="",a="";r.map((i=>{let s=A();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 ${l}\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 }`,I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("product_listing"==i.type){let e=A(),t=a[0],s=F(t),n=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";if(n?.length>0){let e="",a="";n.map((i=>{let s=A();a+=`$${"catList_"+s} = '';\n`,t=t.replace([i],`'.$${"catList_"+s}.'`),e+=`$${"catList_"+s} .= '${i}';\n`})),l+=`\n ${a}\n if( !empty ($p_item['categories']) ){\n foreach( $p_item['categories'] as $cat){\n ${e}\n }\n }`}let o="";if(r?.length>0){let e="",a="";r.map((i=>{let s=A();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 ${l}\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 }`,I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("gallery"===i.type){let e=A();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} = ${R(i,"$image['url']")};\n $${i.name+"_"+e} .= '${a[0]}';\n }\n }`;_?.[i?.repeater]&&(s=_?.[i?.repeater]+s),_=Object.assign({},_,{[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} = ${R(i,"$image['url']")};\n $${i.name+"_"+e} .= '${a[0]}';\n }\n }`;I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("select2"===i.type){let e=A();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 }`,_?.[i?.repeater]&&(s=_?.[i?.repeater]+s),_=Object.assign({},_,{[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 }`,I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("headingtags"===i.type){let e=A();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 }`,_?.[i?.repeater]&&(s=_?.[i?.repeater]+s),_=Object.assign({},_,{[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 }`}I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}else if("taxonomy"==i.type){let e=A(),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 }`,I=I.replace([a[0]],`'.$${i.name+"_"+e}.'`)}}}}))}},W=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((i,s)=>{i.name&&i.operator&&(C.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}) `:""},q=(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']) ${W(e,t)} ? '_blank' : '';\n`;a+=`$${e.name}_url = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${W(e,t)} ? ${R(e,`$r_item['${e.name}']['url']`)} : '';\n`,a+=`$${e.name}_nofollow = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['rel']) ${W(e,t)} ? $r_item['${e.name}']['rel'] : '';\n`,a+=`$${e.name}_arialabel = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['ariaLabel']) ${W(e,t)} ? 'ariaLabel="'.$r_item['${e.name}']['ariaLabel'].'"' : '';\n`,a+=`$${e.name}_title = isset( $r_item['${e.name}']) && !empty( $r_item['${e.name}']['title']) ${W(e,t)} ? 'title="'.$r_item['${e.name}']['title'].'"' : '';\n`,_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name}_is_external = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['newTab']) ${W(e)} ? '_blank' : '';\n`,g+=`$${e.name}_url = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['url']) ${W(e)} ? ${R(e,`$this->settings['${e.name}']['url']`)} : '';\n`,g+=`$${e.name}_nofollow = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['rel']) ${W(e)}? $this->settings['${e.name}']['rel'] : '';\n`,g+=`$${e.name}_arialabel = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['ariaLabel']) ${W(e)} ? 'ariaLabel="'.$this->settings['${e.name}']['ariaLabel'].'"' : '';\n`,g+=`$${e.name}_title = isset( $this->settings['${e.name}']) && !empty( $this->settings['${e.name}']['title']) ${W(e)} ? 'title="'.$this->settings['${e.name}']['title'].'"' : '';\n`;I=(I=(I=(I=I.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(I.search(e.name)>=1){if(t){let a=`$${e.name} = isset($r_item['${e.name}']) && !empty($r_item['${e.name}']['url']) ${W(e,t)} ? ${R(e,`$r_item['${e.name}']['url']`)} : '';\n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name} = isset($this->settings['${e.name}']) && !empty($this->settings['${e.name}']['url']) ${W(e)} ? ${R(e,`$this->settings['${e.name}']['url']`)} : '';\n`;I=I.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){j.push({type:e.type,name:e.name,repeater:t,condition:W(e,t)});let i=O(e.name);i&&i.map(((t,i)=>{let s=t;_[e.name]="",e.fields.map((n=>{if(a+=q(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=function(e){return(new DOMParser).parseFromString(e,"text/html").body}(s);if(e.querySelector(`[data-${n.name}]`)&&e.querySelector(`[data-${n.name}]`).outerHTML){let t=e.querySelector(`[data-${n.name}]`).outerHTML;I=I.replaceAll(t,`'.$${n.name+i}.'`)}}else I="media"==n.type||"iconscontrol"==n.type?I.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):"url"==n.type?(I=(I=I.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?I.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):I.replaceAll(`{{${n.name}}}`,`' . $r_item['${n.name}'] . '`);I=(I=(I=(I=I.replaceAll("{loop-class-repeater}","bricks-repeater-item-' .(!empty($r_item['id']) ? esc_attr($r_item['id']) : '') . ' repeater-item")).replaceAll(`{{${e.name}_index}}`,"'.$key.'")).replaceAll(`{{${e.name}_UID}}`,"'.(!empty($r_item['id']) ? esc_attr($r_item['id']) : '') .'")).replaceAll(`{{${e.name}-custom_atr}}=""`,`'.$${e.name}_arialabel.' '.$${e.name}_title.'`)}}))}))}else if("cpt"==e.type){j.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=O(e.name);a&&a.map(((t,a)=>{t&&(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=I.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){j.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=O(e.name);a&&a.map(((t,a)=>{t&&(I=(I=(I=(I=(I=I.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){j.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=O(e.name);a&&a.map(((t,a)=>{t&&(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=(I=I.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){j.push({type:e.type,name:e.name,repeater:t,sanitizer_value:e?.sanitizer_value,sanitizer_dropdown_value:e?.sanitizer_dropdown_value,condition:W(e,t)});let a=O(e.name);a&&a.map(((t,a)=>{t&&(I=I.replaceAll("{{"+e.name+"}}",`' . $${e.name} . '`))}))}else if("select2"==e.type){j.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:W(e,t)});let a=O(e.name);a&&a.map(((t,a)=>{t&&(I=e.multiple?I.replaceAll("{{"+e.name+"}}",`' .${R(e,"$s_item")}. '`):I.replaceAll("{{"+e.name+"}}",`' .${R(e,`$settings['${e.name}']`)}. '`))}))}else if("iconscontrol"==e.type){if(I.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}'] ) ? ( ! empty( $r_item['${e.name}']['icon'] ) && ( $r_item['${e.name}']['library'] != 'svg' ) ? '${i}' : ( method_exists( '\\Bricks\\Element', 'render_icon' ) ? '<span class="tp-title-icon">' . \\Bricks\\Element::render_icon( $r_item['${e.name}'], [] ) . '</span>' : '' ) ) : ''; \n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[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}'] ) && ! empty( $this->settings['${e.name}'] ) ? ( ! empty( $this->settings['${e.name}']['icon'] ) && ( $this->settings['${e.name}']['library'] != 'svg' ) ? '${i}' : ( method_exists( '\\Bricks\\Element', 'render_icon' ) ? '<span class="tp-title-icon">' . \\Bricks\\Element::render_icon( $this->settings['${e.name}'], [] ) . '</span>' : '' ) ) : ''; \n`;I=I.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("svg"==e.type)if(t){let a=`$${e.name} = isset( $r_item['${e.name}']['url'] ) ${W(e,t)} ? file_get_contents( esc_url( $r_item['${e.name}']['url'] ) ) : '';\n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name} =\n isset( $this->settings['${e.name}']['url'] ) ${W(e)} ? file_get_contents( esc_url( $this->settings['${e.name}']['url'] ) ) : '';\n`,I=I.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if("headingtags"==e.type)j.push({type:e.type,name:e.name,repeater:t,condition:W(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`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[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`;I=I.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("color"==e.type)if(t){I=I.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']['hex']) ${W(e,t)} ? $r_item['${e.name}']['hex'] : '';\n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name} =\n isset( $this->settings['${e.name}']['hex'] ) ${W(e)} ? $this->settings['${e.name}']['hex'] : '';\n`,I=I.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){I=I.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']) ${W(e,t)} ? ${R(e,`$r_item['${e.name}']`)} : '';\n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${W(e)} ? ${R(e,`$this->settings['${e.name}']`)} : '';\n`,I=I.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`);else if(t){I=I.replaceAll(`{{${e.name}}}`,`' . $${e.name} . '`);let a=`$${e.name} = !empty($r_item['${e.name}']) ${W(e,t)} ? $r_item['${e.name}'] : '';\n`;_?.[t]&&(a=_?.[t]+a),_=Object.assign({},_,{[t]:a})}else g+=`$${e.name} = isset( $this->settings['${e.name}'] ) ${W(e)} ? $this->settings['${e.name}'] : '';\n`,I=I.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&&(b+=`wp_enqueue_script( 'my_child_script_${d()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${T()}', 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_${d()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${T()}', 'all' );\n`)})),t.CardItems.cardData[0].layout.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&C.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&C.push(e.name)}))}))})),t.CardItems.cardData[0].style.map((e=>{e?.inner_sec?.length>0&&e.inner_sec.map((e=>{"switcher"==e.type&&C.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&C.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||D.includes(e.type)||D.push(e.type),N&&(N=N.replaceAll(`{{${e.name}}}`,e.name)),v+=q(e)}))})),t.CardItems?.cardData?.[0].style.map((e=>{e.inner_sec.map((e=>{"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||D.includes(e.type)||D(e.type),N&&(N=N.replaceAll(`{{${e.name}}}`,e.name)),v+=q(e)}))})),j.length>0&&j.map((e=>{V(e.name)})),t.CardItems?.cardData?.[0].layout.map((e=>{f+=`$this->control_groups['${e.section}'] =\n [\n 'title' => esc_html__( '${e.section}', '${k}' ),\n 'tab' => 'content',\n ${e?.conditions?m(e):""}\n ];\n \n`,e.inner_sec.map((t=>{u+=Ft(t,"content",void 0,e)}))})),t.CardItems?.cardData?.[0].style.map((e=>{f+=`$this->control_groups['${e.section}'] =\n [\n 'title' => esc_html__( '${e.section}', '${k}' ),\n 'tab' => 'style',\n ${e?.conditions?m(e):""}\n ];\n \n`,e.inner_sec.map((t=>{u+=Ft(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 G=P.includes("jQuery")?"array('jquery')":"[]";var z=P.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_${S}(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_${S}([element])\n });\n }, 800);`,H='""'!=n?`class MyClass_${S} {\n constructor() {\n this.initialize();\n this.observeMutations();\n }\n\n initialize() {\n ${z}\n }\n\n main_function_${S}($scope) {\n let is_editable = window.location.search.includes('bricks=run');\n ${JSON.parse(n)}\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_${S}();`:"",U=`${(()=>{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})()}`,J=`<?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} tpae-wdkit-logo'; // Themify icon font class\n public $css_selector = '.wkit-wb-Widget_${t?.WcardData?.widgetdata?.widget_id}'; // Default CSS selector\n public $scripts = ${H?"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 ${D.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 ${E?"/**\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 ${D.includes("cpt")||D.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 ${D.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 ${f}\n }\n \n // Set builder controls.\n public function set_controls() {\n ${u}\n }\n public function enqueue_scripts() {\n\n ${b}\n ${H?`wp_enqueue_script( 'wkit_child_script_${$}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${B("folder")}/${B("file")}.js', ${G}, '${wdkitData.WDKIT_VERSION}.${T()}', true );`:""}\n \n ${x}\n ${U?`wp_enqueue_style( 'wkit_child_script_${$}', wp_upload_dir()['baseurl'].'/wdesignkit/bricks/${B("folder")}/${B("file")}.css', [], '${wdkitData.WDKIT_VERSION}.${T()}', 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 ${N||` \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 .= '${I}';\n $output .= '</div>';\n echo $output; `}\n }\n }\n }`;let K=M().widgetdata.name.trim(),Z={widgetdata:Object.assign({},M().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:K})};var Y=`{\n "section_data":${JSON.stringify(t.CardItems.cardData)},\n "widget_data":${JSON.stringify(Z)},\n "Editor_Link":${JSON.stringify(t.Editor_data)},\n "Editor_data":{\n "html":${a},\n "css":${i},\n "js":${n}\n }\n }`;if(null==r)var X="";else X=r;var Q,ee={old_folder:X,file_name:B("file"),folder_name:B("folder"),description:t.WcardData.widgetdata.description,bricks_php_file:J,bricks_js:H,bricks_css:U,json_file:Y,plugin:"bricks",d_image:o||"",call:e},te=new FormData;te.append("action","get_wdesignkit"),te.append("kit_nonce",wdkitData.kit_nonce),te.append("image",l),te.append("type","wkit_create_widget"),te.append("value",(Q=JSON.stringify(ee),btoa(unescape(encodeURIComponent(Q))))),await s().post(ajaxurl,te,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),y.api=e.data)})).catch((e=>console.error(e)));var ae=t.WcardData.widgetdata.w_image,ie=t.WcardData.widgetdata.img_ext;let se=p();if(se&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/bricks/${B("folder")}/${B("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(ae=t?.widget_data?.widgetdata?.w_image,ie=t?.widget_data?.widgetdata?.img_ext)})();let e={token:se.token,type:"add",title:B(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:Y,w_uniq:t.WcardData.widgetdata.widget_id,w_image:ae,w_imgext:ie,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 w(a).then((e=>{y.ajax={data:e}}))}return y},Bt=async(e,t,a,i,n,r,l,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},m=()=>Math.floor(1e6*Math.random()),u=function(e){return(new DOMParser).parseFromString(e,"text/html")},h=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' => '${h(e.name)}', 'operator' => '${e.operator}', 'value' => '${h(e.value)}'],\n`)})),""!=a&&(t+=`'conditions' => array(\n 'relation' => '${e.condition_value.relation}',\n 'terms' => [${a}],\n ),`)),t};wdkitData.WDKIT_SITE_URL;var _=wdkitData.WDKIT_SERVER_PATH,f="wdesignkit",k=(e=>{let t=JSON.parse(e),a=u(t);return(a.head.innerHTML+a.body.innerHTML).replaceAll("'","\\'")})(a),b=[],x=[],v="",y={},j="",N="",$="",C=d(),S=d(),D=[],E={ajax:"",api:""},P=[],A=[],T=!1,L={selecttemplate:"use wdkit\\wdkit_wbcontroller\\Wdkit_Wb_Elementor_Controller;"};const M=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},F=e=>{let t=[],a=u(k);if(a.querySelectorAll(`[data-${e}]`).length>0){k=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!=r){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 I=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!l||!l.type){if(r){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=M("folder"),i=M("file"),s=`${_}/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=M("folder"),i=M("file"),s=`${_}/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=l.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=M("folder"),i=M("file"),s=`${_}/elementor/${a}/${i}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:e})}}}},B=async e=>{if(e){let t=F(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var i=u(t);D.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&B(t.name)}));let n=F(e);if(n.length>0){let t=D.findIndex((t=>t.name==e)),i=D[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 ${y?.[i.name]?y?.[i.name]:""}\n ${t}\n }\n }`,k=k.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 }`;y?.[i?.repeater]&&(s=y?.[i?.repeater]+s),y=Object.assign({},y,{[i?.repeater]:s})}else j+=`$${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 }`;k=k.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("cpt"==i.type){let e=c(),t=n[0],a=u(t),s=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";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`})),l+=`\n ${a}\n if( !empty ($p_item['categories']) ){\n foreach( $p_item['categories'] as $cat){\n ${e}\n }\n }`}let o="";if(r?.length>0){let e="",a="";r.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 }`}j+=`$${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 ${l}\n ${o}\n $${i.name+"_"+e} .= '${t}';\n }\n }`,k=k.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("product_listing"==i.type){let e=c(),t=n[0],a=u(t),s=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";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`})),l+=`\n ${a}\n if( !empty ($p_item['categories']) ){\n foreach( $p_item['categories'] as $cat){\n ${e}\n }\n }`}let o="";if(r?.length>0){let e="",a="";r.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 }`}j+=`$${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 ${l}\n ${o}\n $${i.name+"_"+e} .= '${t}';\n }`,k=k.replace([n[0]],`'.$${i.name+"_"+e}.'`)}else if("taxonomy"==i.type){let e=c(),t=n[0];j+=`$${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 }`,k=k.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 }`,y?.[i?.repeater]&&(s=y?.[i?.repeater]+s),y=Object.assign({},y,{[i?.repeater]:s})):j+=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 }`,k=k.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 }`,y?.[i?.repeater]&&(s=y?.[i?.repeater]+s),y=Object.assign({},y,{[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}`),j+=`$${i.name+"_"+e} = '';\n if($settings['${i.name}']){\n $${i.name+"_"+e} = '${t}';\n }`}k=k.replace([n[0]],`'.$${i.name+"_"+e}.'`)}}}}))}},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&&(T=!0),`${a}(${t})`):t},R=(e,t)=>{P.includes(e.type)||P.push(e.type);var a="";if("icon"==e.type||"iconscontrol"==e.type){if(k.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`;y?.[t]&&(a=y?.[t]+a),y=Object.assign({},y,{[t]:a})}else j+=`$${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`;k=k.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?k=k.replaceAll(`{{${e.name}}}`,`' . ${O(e,`$r_item['${e.name}']`)} . '`):(j+=`$${e.name} = !empty($settings['${e.name}']) ? ${O(e,`$settings['${e.name}']`)} : '';\n`,k=k.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`));else if("media"==e.type){if(k.search(e.name)>=1){if(null!=t){let a=`$${e.name} = !empty($r_item['${e.name}']['url']) ? ${O(e,`$r_item['${e.name}']['url']`)} : '';\n`;y?.[t]&&(a=y?.[t]+a),y=Object.assign({},y,{[t]:a})}else j+=`$${e.name} = !empty($settings['${e.name}']['url']) ? ${O(e,`$settings['${e.name}']['url']`)} : '';\n`;k=k.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}}else if("repeater"==e.type){D.push({type:e.type,name:e.name,repeater:t});let i=F(e.name);i?i.map(((t,i)=>{let s=t;y[e.name]="",e.fields.map((n=>{if(a+=R(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=function(e){return(new DOMParser).parseFromString(e,"text/html").body}(s);if(e.querySelector(`[data-${n.name}]`)&&e.querySelector(`[data-${n.name}]`).outerHTML){let t=e.querySelector(`[data-${n.name}]`).outerHTML;k=k.replaceAll(t,`'.$${n.name+i}.'`)}}else k="media"==n.type||"iconscontrol"==n.type?k.replaceAll(`{{${n.name}}}`,`' . $${n.name} . '`):"url"==n.type?(k=(k=k.replaceAll(`{{${n.name}-url}}`,`' . $${n.name}_url . '`)).replaceAll(`{{${n.name}-is_external}}`,`' . $${n.name}_is_external . '`)).replaceAll(`{{${n.name}-nofollow}}`,`' . $${n.name}_nofollow . '`):k.replaceAll(`{{${n.name}}}`,`' . $r_item['${n.name}'] . '`);k=(k=(k=k.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']).'")}}))})):e.fields.map((t=>{a+=R(t,e.name)}))}else if("gallery"==e.type){D.push({type:e.type,name:e.name,repeater:t});let a=F(e.name);a&&a.map(((t,a)=>{t&&(k=k.replaceAll("{{"+e.name+"}}",`'.${O(e,"$image['url']")}.'`))}))}else if("select2"==e.type){D.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple});let a=F(e.name);a&&a.map(((t,a)=>{t&&(k=e.multiple?k.replaceAll("{{"+e.name+"}}",`' .${O(e,"$s_item")} . '`):k.replaceAll("{{"+e.name+"}}",`' .${O(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'])? ${O(e,`$r_item['${e.name}']['url']`)} : '';\n`,a+=`$${e.name}_nofollow = !empty($r_item['${e.name}']) && !empty($r_item['${e.name}']['nofollow'])? 'nofollow' : '';\n`,y?.[t]&&(a=y?.[t]+a),y=Object.assign({},y,{[t]:a})}else j+=`$${e.name}_url = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['url']) ? ${O(e,`$settings['${e.name}']['url']`)} : '';\n`,j+=`$${e.name}_is_external = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['is_external']) ? '_blank' : '';\n`,j+=`$${e.name}_nofollow = !empty($settings['${e.name}']) && !empty($settings['${e.name}']['nofollow']) ? 'nofollow' : '';\n`,j+=`$${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 }`;k=(k=(k=(k=k.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`;y?.[t]&&(a=y?.[t]+a),y=Object.assign({},y,{[t]:a})}else j+=`$${e.name} = !empty($settings['${e.name}']) ? Wdkit_Wb_Elementor_Controller::wdkit_elementor()->frontend->get_builder_content_for_display( $settings['${e.name}'] ) : '';\n`;k=k.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("popover"==e.type)e.fields&&e.fields.map((e=>{a+=R(e)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{a+=R(e)}));else if("number"==e.type){if(null!=t){let a=`$${e.name} = isset($r_item['${e.name}']) ? ${O(e,`$r_item['${e.name}']`)} : '';\n`;y?.[t]&&(a=y?.[t]+a),y=Object.assign({},y,{[t]:a})}else j+=`$${e.name} = isset($settings['${e.name}']) ? ${O(e,`$settings['${e.name}']`)} : '';\n`;k=k.replaceAll(`{{${e.name}}}`,`'.$${e.name}.'`)}else if("headingtags"==e.type)D.push({type:e.type,name:e.name,repeater:t});else if("cpt"==e.type){D.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=F(e.name);a&&a.map(((t,a)=>{t&&(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=k.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){D.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=F(e.name);a&&a.map(((t,a)=>{t&&(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=(k=k.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){D.push({type:e.type,name:e.name,repeater:t,unique_id:e.unique_id});let a=F(e.name);a&&a.map(((t,a)=>{t&&(k=(k=(k=(k=(k=k.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?k=k.replaceAll(`{{${e.name}}}`,`' . $r_item['${e.name}'] . '`):(j+=`$${e.name} = !empty($settings['${e.name}']) ? $settings['${e.name}'] : '';\n`,k=k.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&&(b+=`wp_enqueue_script( 'wd_ex_script_${d()}', '${e}', array(), '${wdkitData.WDKIT_VERSION}.${m()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(x+=`wp_enqueue_style( 'wd_css_ex_1_${d()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${m()}', 'all' );\n`)})),t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{v+=R(e)}))})),D.length>0&&D.map((e=>{B(e.name)})),t.CardItems.cardData[0].layout.map((e=>{N+=`$this->start_controls_section('${e.section}_tab_content',\n [\n 'label' => esc_html__( '${e.section}', '${f}' ),\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||A.includes(e.type)||A.push(e.type),N+=Mt(e)})),N+="$this->end_controls_section();"})),t.CardItems.cardData[0].style.map((e=>{$+=`$this->start_controls_section(\n '${e.section}_style_secdddtion',\n [\n 'label' => esc_html__( '${e.section}', '${f}' ),\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||A.includes(e.type)||A.push(e.type),$+=Mt(e)})),$+="$this->end_controls_section();"})),j=j.replaceAll("wdk_senitize_js","$this->wdk_senitize_js"),v=v.replaceAll("wdk_senitize_js","$this->wdk_senitize_js");var V,W='""'!=n?`(function ($) {\n "use strict";\n var WidgetScrollSequenceHandler = function($scope, $) { \n let is_editable = elementorFrontend?.isEditMode();\n ${JSON.parse(n)} \n };\t\n $(window).on('elementor/frontend/init', function () {\n elementorFrontend.hooks.addAction('frontend/element_ready/wb-${t.WcardData.widgetdata.widget_id}.default', WidgetScrollSequenceHandler);\n });\n })(jQuery);`:"",q=`${(()=>{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})()}`,G=`<?php\n/*\n * Widget Name: ${M()}\n * Author: POSIMYTH\n * Author URI: https://posimyth.com\n * \n * @package wdesignkit\n */\n\n${V="",P?.length>0&&P.map((e=>{L?.[e]&&(V+=L?.[e])})),V}\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_${M("file").replaceAll("-","_")}\n */\nclass Wdkit_${M("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__('${M()}', '${f}');\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} tpae-wdkit-logo';\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 ${A.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 ${T?"/**\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 ${A.includes("cpt")||A.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 ${A.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!=b?.length||W?`/**\n * Get Widget Scripts\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_script_depends() {\n \n /**External js enqueue*/\n ${b}\n\n ${W?`wp_enqueue_script( 'wkit_child_script_${C}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${M("folder")}/${M("file")}.js', array(), '${wdkitData.WDKIT_VERSION}.${m()}', true );`:""}\n\n return [ 'wkit_child_script_${C}' ];\n }`:""}\n\n ${0!=x?.length||q?`/**\n * Get Widget Styles\n *\n * @since ${wdkitData.WDKIT_VERSION}\n */\n public function get_style_depends() {\n \n /**External Css enqueue*/\n ${x}\n\n ${q?`wp_enqueue_style( 'wkit_css_1_${S}', wp_upload_dir()['baseurl'].'/wdesignkit/elementor/${M("folder")}/${M("file")}.css', false, '${wdkitData.WDKIT_VERSION}.${m()}', 'all' );`:""}\n\n return [ 'wkit_css_1_${S}' ];\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 ${N||$?`protected function register_controls() {\n\n ${N}\n\n ${$}\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 ${j}\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 .= '${k}';\n $output .= '</div>';\n \n echo $output;\n }\n}`;let z=I().widgetdata.name.trim(),H={widgetdata:Object.assign({},I().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:z})};var U=`{\n "section_data":${JSON.stringify(t.CardItems.cardData)},\n "widget_data":${JSON.stringify(H)},\n "Editor_Link":${JSON.stringify(t.Editor_data)},\n "Editor_data":{\n "html":${a},\n "css":${i},\n "js":${n}\n } \n }`;if(null==r)var J="";else J=r;var K,Z={old_folder:J,file_name:M("file"),folder_name:M("folder"),description:t.WcardData.widgetdata.description,elementor_php_file:G,elementor_js:W,elementor_css:q,json_file:U,plugin:"elementor",d_image:o||"",call:e},Y=new FormData;Y.append("action","get_wdesignkit"),Y.append("kit_nonce",wdkitData.kit_nonce),Y.append("image",l),Y.append("type","wkit_create_widget"),Y.append("value",(K=JSON.stringify(Z),btoa(unescape(encodeURIComponent(K))))),await s().post(ajaxurl,Y,{headers:{"content-type":"application/json"}}).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),E.api=e.data)})).catch((e=>console.error(e)));var X=t.WcardData.widgetdata.w_image,Q=t.WcardData.widgetdata.img_ext;let ee=p();if(ee&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/elementor/${M("folder")}/${M("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(X=t?.widget_data?.widgetdata?.w_image,Q=t?.widget_data?.widgetdata?.img_ext)})();let e={token:ee.token,type:"add",title:M(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:U,w_uniq:t.WcardData.widgetdata.widget_id,w_image:X,w_imgext:Q,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 w(a).then((e=>{E.ajax={data:e}}))}return E},Ot=async(e,t,a,i,n,r,l,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},m=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,2)+e},u=()=>Math.floor(1e6*Math.random()),h=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:"(",I?.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 _=wdkitData.WDKIT_SERVER_PATH,f="",k="",b="",x="",v=(e=>{var t;return(e=>{let t=h(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),y=[],j=[],N=[],$={},C=[],S=[],D=[],E=c(),P="",A="",T="",L="",M={ajax:"",api:""},F="",I=[],B=[],O=[],R=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&&(y+=`wp_enqueue_script( 'wd_ex_script_${c()}', '${e}', [], '${wdkitData.WDKIT_VERSION}.${u()}', true );\n`)})),t.Editor_data?.links[0]?.css?.length>0&&t.Editor_data.links[0].css.map((function(e){e&&(j+=`wp_enqueue_style( 'wd_css_ex_1_${c()}', '${e}', false, '${wdkitData.WDKIT_VERSION}.${u()}', 'all' );\n`)}));const V=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},W=e=>{let t=[],a=h(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}},q=()=>{if(t?.WcardData?.widgetdata?.image_id&&delete t?.WcardData?.widgetdata?.image_id,!l||!l.type){if(r){let e=t.WcardData.widgetdata.w_image.split("."),a=e[e.length-1];if(a){let e=V("folder"),i=V("file"),s=`${_}/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=V("folder"),i=V("file"),s=`${_}/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=l.type;var e="";if(a.search("jpeg")>-1)e="jpg";else if(a.search("jpg")>-1)e="jpg";else{if(!(a.search("png")>-1))return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:"",img_ext:e})};e="png"}if(e){let a=V("folder"),i=V("file"),s=`${_}/gutenberg/${a}/${i}.${e}`;return{widgetdata:Object.assign({},t.WcardData.widgetdata,{w_image:s,img_ext:e})}}}};(()=>{if("update"==e&&null!=r){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 G=async(e,t)=>{if(e){let t=W(e);t?.length>0&&t?.map(((t,a)=>{if(!t)return!1;{var i=h(t);S.map((t=>{t.name!=e&&i.querySelectorAll(`[data-${t.name}]`).length>0&&G(t.name)}));let a=W(e);if(a.length>0){let t=S.findIndex((t=>t.name==e)),i=S[t];if("repeater"==i.type){let e=m(),t=`${i.name+"_"+e} += \`${a[0]}\`;`;x+=`\nlet ${i.name+"_"+e} = "";\n \n${i.name} ${i?.condition?i.condition:""} && ${i.name}.map((r_item, index) => {\n ${$?.[i.name]?$?.[i.name]:""}\n ${t}\n })`,v=v.replace(a[0],"${"+i.name+"_"+e+"}")}else if("gallery"==i.type){let e=m();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 })`;$?.[i?.repeater]&&(s=$?.[i?.repeater]+s),$=Object.assign({},$,{[i?.repeater]:s})}else F+=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=m();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]}\`;`;$?.[i?.repeater]&&(s=$?.[i?.repeater]+s),$=Object.assign({},$,{[i?.repeater]:s})}else null!=i?.popover?i.multiple?F+=`\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 })`:F+=`\nlet ${i.name+"_"+e} = '';\n ${i.name+"_"+e} ${i?.condition?i.condition:""} += \`${a[0]}\`;`:i.multiple?F+=`\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 })`:F+=`\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=m();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 }`,$?.[i?.repeater]&&(s=$?.[i?.repeater]+s),$=Object.assign({},$,{[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}`),F+=`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}`),F+=`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=m(),t=a[0],s=h(t),n=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";if(n?.length>0){let e="",a="";n.map((i=>{let s=m();a+=`let ${"catList_"+s} = '';\n`,t=t.replace([i],"${catList_"+s+"}"),e+=`catList_${s} += \`${i}\`;\n`})),l+=`\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(r?.length>0){let e="",a="";r.map((i=>{let s=m();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 })`}x+=`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 ${l}\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=m(),t=a[0],s=h(t),n=[],r=[];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=>{r.push(e.outerHTML)}))}let l="";if(n?.length>0){let e="",a="";n.map((i=>{let s=m();a+=`let ${"catList_"+s} = '';\n`,t=t.replace([i],"${catList_"+s+"}"),e+=`catList_${s} += \`${i}\`;\n`})),l+=`\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(r?.length>0){let e="",a="";r.map((i=>{let s=m();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 })`}x+=`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 ${l}\n ${o}\n ${i.name+"_"+e} += \`${t}\`;\n });`,v=v.replace(a[0],"${"+i.name+"_"+e+"}")}else if("taxonomy"==i.type){let e=m(),t=a[0];x+=`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+"}")}}}}))}},z=(e,t)=>{var a="";return e?.conditions&&e?.condition_value?.values?.length>0&&e.condition_value.values.map(((i,s)=>{i.name&&i.operator&&(I.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} )`:""},H=(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 ${z(e,"r_item")} ? '${s}' : '';\n`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[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 ${z(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 ${z(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}"),$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[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 : "";`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[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 : "";`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[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 }`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[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 ${z(e,"r_item")} ? r_item?.${e.name}.url : "";`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name}?.url != undefined ${z(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 ${z(e)} ? ${e.name}.url : "";`);else if("popover"==e.type)e.fields&&e.fields.map((t=>{i+=H(t,"",e.name)}));else if("normalhover"==e.type)e.fields&&e.fields.map((e=>{i+=H(e)}));else if("repeater"==e.type){S.push({type:e.type,name:e.name,repeater:t,condition:z(e,t)});let a=W(e.name);a?a.map(((t,a)=>{$[e.name]="";let s=t;e.fields.map((n=>{if(i+=H(n,e.name),s){if(t.search(`data-${n.name}="{${n.name}}"`)>-1){let e=function(e){return(new DOMParser).parseFromString(e,"text/html").body}(s);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}")}}))})):e.fields.map((t=>{i+=H(t,e.name)}))}else if("gallery"==e.type){a?S.push({type:e.type,name:e.name,popover:a,condition:z(e,t)}):S.push({type:e.type,name:e.name,repeater:t,condition:z(e,t)});let i=W(e.name);i&&i.map(((t,a)=>{t&&(v=v.replaceAll("{{"+e.name+"}}","${g_image.url}"))}))}else if("select2"==e.type){a?S.push({type:e.type,name:e.name,popover:a,multiple:e.multiple,condition:z(e,t)}):S.push({type:e.type,name:e.name,repeater:t,multiple:e.multiple,condition:z(e,t)});let i=W(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`})),P+=`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?S.push({type:e.type,name:e.name,popover:a,condition:z(e,t)}):S.push({type:e.type,name:e.name,repeater:t,condition:z(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} ${z(e,"r_item")} ? '${e.return_value}' : "";`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${z(e,a)} ? '${e.return_value}' : "";`):(v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} && ${e.name} != undefined ${z(e)} ? '${e.return_value}' : "";`);else if("cpt"==e.type){S.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),A+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,P+=`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`,L+=`${e.name}_fun(${e.name});`,T+=`\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=W(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){S.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),A+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,P+=`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`,L+=`${e.name}_fun(${e.name});`,T+=`\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=W(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){S.push({type:e.type,name:e.name,popover:a,unique_id:e.unique_id}),A+=`const [${e.name}_st, set${e.name}_st] = useState([]);`,P+=`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`,L+=`${e.name}_fun(${e.name});`,T+=`\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=W(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} ${z(e,"r_item")} ? r_item.${e.name} : "";`;$?.[t]&&(a=$?.[t]+a),$=Object.assign({},$,{[t]:a})}else a?(v=v.replaceAll(`{{${e.name}}}`,"${pop_"+e.name+"}"),i+=`\nlet pop_${e.name} = ${a}?.${e.name} != undefined ${z(e,a)} ? ${a}.${e.name} : "";`):(v=v.replaceAll(`{{${e.name}}}`,"${g_"+e.name+"}"),i+=`\nlet g_${e.name} = ${e.name} && ${e.name} != undefined ${z(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),O.includes(e.type)||O.push(e.type)),"switcher"==e.type&&I.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&I.push(e.name)}))}))})),t.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),O.includes(e.type)||O.push(e.type)),"switcher"==e.type&&I.push(e.name),"repeater"!=e.type&&"normalhover"!=e.type&&"popover"!=e.type||e.fields.map((e=>{"switcher"==e.type&&I.push(e.name)}))}))})),t.CardItems.cardData[0].layout.map((e=>{e.inner_sec.map((e=>{F+=H(e)}))})),t.CardItems.cardData[0].style.map((e=>{e.inner_sec.map((e=>{F+=H(e)}))})),S.length>0&&S.map((e=>{G(e.name)}));let U={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);f+=`${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=>{C.includes(U.pmgc[t.type])||U?.pmgc?.[t.type]&&C.push(U.pmgc[t.type]),"datetime"==t.type&&(N.includes("DateTimePicker")||N.push("DateTimePicker")),"normalhover"!=e.type&&"cpt"!=e.type&&"product_listing"!=e.type&&"taxonomy"!=e.type||D.push(t.name)})),C.includes(U.pmgc[e.type])||("datetime"==e.type&&(N.includes("DateTimePicker")||N.push("DateTimePicker")),U?.pmgc?.[e.type]&&C.push(U.pmgc[e.type])),D.includes(e.name)||D.push(e.name),f+=Lt(e,"js","","",I),b+=Lt(e,"php")})),f+="),"})),t.CardItems.cardData[0].style.map(((e,t)=>{let a=g(e.conditions,e.condition_value);k+=`${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=>{C.includes(U.pmgc[t.type])||C.push(U.pmgc[t.type]),"normalhover"==e.type&&D.push(t.name)})),C.includes(U.pmgc[e.type])||C.push(U.pmgc[e.type]),D.includes(e.name)||D.push(e.name),k+=Lt(e,"js","","",I),b+=Lt(e,"php")})),k+="),"})),C.map((e=>{}));var J="";D.map((e=>{J+=`${e},\n`}));let K=q().widgetdata.name.trim(),Z={widgetdata:Object.assign({},q().widgetdata,{"wkit-version":wdkitData.WDKIT_VERSION,name:K})};var Y=JSON.stringify(t.CardItems.cardData),X=JSON.stringify(Z),Q=JSON.stringify(t.Editor_data);let ee=c();var te=`\n class ${V("file").replaceAll("-","_")} {\n constructor() {\n this.${V("file").replaceAll("-","_")}_${ee}();\n }\n \n ${V("file").replaceAll("-","_")}_${ee}() {\n const { useState, useEffect } = wp.element;\n const { __ } = wp.i18n;\n const { registerBlockType } = wp.blocks;\n \n const {\n PanelBody,\n ${N}\n } = wp.components;\n\n ${O.length>0?"\n const {\n select,\n resolveSelect,\n } = wp.data;":""}\n \n const {\n Pmgc_PanelTabs,\n Pmgc_Tab,\n ${C?.length>0?C+",":""}\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: __('${V()}'), // Block title.\n description: __('${t.WcardData.widgetdata.description}'),\n icon: React.createElement("i", {\n class: "${t.WcardData.widgetdata.w_icon} tpae-wdkit-logo",\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 ${A}\n\n ${O.length>0?`\n useEffect(() => {\n ${L}\n }, [])`:""}\n\n ${O.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 ${P}\n \n const {\n isSelected,\n attributes,\n setAttributes,\n } = props;\n \n const {\n ${J}\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(n)}\n }\n \n const inspectorControls = (isSelected && (React.createElement(InspectorControls, null,\n React.createElement(Fragment, null,\n React.createElement(Pmgc_PanelTabs, null,\n React.createElement(Pmgc_Tab, { tabTitle: __("Layout") },\n ${f}\n ),\n React.createElement(Pmgc_Tab, { tabTitle: __("Style") },\n ${k}\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 ${F}\n ${x}\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 ${J}\n block_id,\n } = attributes;\n\n ${O.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 ${T}\n\n ${F}\n ${x}\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 ${V("file").replaceAll("-","_")}();`,ae=R.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_${E}(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_${E}([element])\n });\n }, 800);`,ie='""'!=n?`class MyClass_${E} {\n\n constructor() {\n window.addEventListener('DOMContentLoaded', (event) => {\n ${ae}\n });\n }\n\n main_function_${E}($scope) {\n let is_editable = wp?.blocks ? true : false;\n ${JSON.parse(n)} \n }\n }\n\n new MyClass_${E}();`:"",se=`${(()=>{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 ne=c(),re=c(),le=c(),oe=R.includes("jQuery")?"array('jquery')":"[]";var de=`<?php\n function wb_${V("file").replaceAll("-","_")}() { \n\n ${y||ie||j?`if ( ( !empty( $_GET['action'] ) && 'edit' === $_GET['action'] ) || empty( $_GET['action'] ) && strpos( $_SERVER['REQUEST_URI'], '/wp-admin/post-new.php' ) !== false || ! is_admin() ){\n ${y}\n \n\n ${ie?`if ( ! is_admin() ) { wp_enqueue_script("wbuilder-cgb-block_external${ne}-js", WDKIT_SERVER_PATH . '/gutenberg/${V("folder")}/index.js', ${oe},'${wdkitData.WDKIT_VERSION}.${u()}', true);}`:""}\n\n ${j}\n }`:""}\n\n wp_register_script('wbuilder-cgb-block_${ne}-js', WDKIT_SERVER_PATH .'/gutenberg/${V("folder")}/${V("file")}.js',\n array( 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-editor', 'wkit-editor-block-pmgc' ), '${wdkitData.WDKIT_VERSION}.${u()}', true\n );\n\n ${O.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_${ne}-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 ${O.includes("taxonomy")>0?`/**\n * Get post type list.\n *\n * @since 1.0.38\n */ \n wp_localize_script(\n 'wbuilder-cgb-block_${ne}-js',\n 'wdkit_taxonomy', // The object name that will be available in JavaScript\n get_taxonomies(),\n );`:""}\n \n ${se?`wp_register_style('wbuilder-cgb-style_${re}-css', WDKIT_SERVER_PATH .'/gutenberg/${V("folder")}/${V("file")}.css', is_admin() ? array( 'wp-editor' ) : null, '${wdkitData.WDKIT_VERSION}.${u()}', 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 ${b}\n \n ],\n ${se?`'style' => 'wbuilder-cgb-style_${re}-css',`:""}\n 'editor_script' => 'wbuilder-cgb-block_${ne}-js',\n 'render_callback' => 'wkit_render_callback_${le}'\n )\n );\n \n }\n add_action( 'init', 'wb_${V("file").replaceAll("-","_")}' );\n \n function wkit_render_callback_${le}($atr, $cnt) { \n $output = $cnt;\n \n return $output;\n }`,ce=`{\n "section_data": ${Y},\n "widget_data":${X},\n "Editor_Link":${Q},\n "Editor_data": {\n "html":${a},\n "css":${i},\n "js":${n}\n }\n }`;if(null==r)var pe="";else pe=r;var me,ue={old_folder:pe,file_name:V("file"),folder_name:V("folder"),description:t.WcardData.widgetdata.description,gutenberg_js:te,gutenberg_php_file:de,gutenberg_css:se,external_js_file:ie,json_file:ce,plugin:"gutenberg",d_image:o||"",call:e},he=new FormData;he.append("action","get_wdesignkit"),he.append("kit_nonce",wdkitData.kit_nonce),he.append("type","wkit_create_widget"),he.append("image",l),he.append("value",(me=JSON.stringify(ue),btoa(unescape(encodeURIComponent(me))))),await s().post(ajaxurl,he).then((e=>{200==e.status&&(document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),M.api=e.data)})).catch((e=>console.log(e)));var ge=t.WcardData.widgetdata.w_image,we=t.WcardData.widgetdata.img_ext;let _e=p();if(_e&&"sync"==e){await(async()=>{let e=`${wdkitData.WDKIT_SERVER_PATH}/gutenberg/${V("folder")}/${V("file")}.json`,t=await s().get(e).then((async e=>await(e?.data)));t?.widget_data?.widgetdata?.w_image&&(ge=t?.widget_data?.widgetdata?.w_image,we=t?.widget_data?.widgetdata?.img_ext)})();let e={token:_e.token,type:"add",title:V(),content:t.WcardData.widgetdata.description,builder:t.WcardData.widgetdata.type,w_data:ce,w_uniq:t.WcardData.widgetdata.widget_id,w_image:ge,w_imgext:we,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 w(a).then((e=>{M.ajax={data:e}}))}return M},Rt=async(e,t)=>{let a=t.filter((t=>t.label==e));return await o(a).then((t=>{let a=Array.isArray(t?.data?.plugins)&&Array.isArray(t?.data?.theme)?[...t?.data?.plugins,...t?.data?.theme]:[];return"active"==a[0]?.status?a[0]:"bricks"!==e?l(a[0]).then((e=>e.data)):void 0}))},Vt=t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)(!1),[l,o]=(0,e.useState)({title:"",desc:"",body:""}),[d,c]=(0,e.useState)({plugin_download:"installing",widget_download:"installing"}),m=ue(),u=pe(),h=wdkitData.WDKIT_URL;let f=k(t?.widgetData.builder,t?.widgetbuilder);const b=[{name:"elementor",label:"elementor",original_slug:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0"},{name:"the-plus-addons-for-block-editor",label:"gutenberg",original_slug:"the-plus-addons-for-block-editor",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",type:"plugin",freepro:"0"},{name:"bricks",label:"bricks",original_slug:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1"}];(0,e.useEffect)((()=>{var e;e="installing"==d.widget_download?{title:"Setting Up Your Widget",desc:"We're getting everything ready. Please wait while we install the required plugins and import your widget.",body:(0,g.jsx)(v,{})}:"failed"==d.plugin_download?{title:"Require "+("bricks"==f?"Theme":"Plugin"),desc:"To download this widget, you will nedd to install below listed requirments.",body:(0,g.jsx)(y,{})}:{title:"",desc:"",body:(0,g.jsx)(j,{})},o(e)}),[i,d,n]);const x=async e=>{if(p())var i="widget/download";else if(i="import/widget/free","pro"==e.free_pro)return m("/login"),!1;var n=!1;if("pro"==e.free_pro&&"1"==t?.credits?.pro_widget_limit?.meta_value){let a=((e,t)=>{let a=e.findIndex((e=>e.w_id==t.builder));if(a>-1&&e[a]?.builder_name)return e[a].builder_name})(t.widgetbuilder,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_notification({title:(0,a.__)("Pro Access Needed","wdesignkit"),desc:"Upgrade to WDesignKit Pro to access this feature."}),!1;let l=e.id;s(!0),c((e=>({...e,plugin_download:"installing",widget_download:"installing"}))),r(!0);if(window.location.hash.search("#/share_with_me")>-1)var o={api_type:i,w_uniq:l,u_id:t.userinfo?.id,d_type:"workspace"};else o={api_type:i,w_uniq:l,u_id:t.userinfo?.id};let d={type:"wkit_public_download_widget",widget_info:JSON.stringify(o)};Rt(f,b).then((a=>{"active"==a?.status?(c((e=>({...e,plugin_download:"active"}))),(async a=>{await w(a).then((async a=>{a?.success?(async a=>{let i=JSON.parse(a.json),n=i?.widget_data?.widgetdata?.type,r=JSON.stringify(i?.Editor_data?.html),l=JSON.stringify(i?.Editor_data?.js),o=JSON.stringify(i?.Editor_data?.css),d=a.image;var p=Object.assign({},i.widget_data.widgetdata,{r_id:a.r_id,allow_push:!0});t?.userinfo?.id!=e?.user_id&&(p=Object.assign({},p,{allow_push:!1}));let m=Object.assign({},i.widget_data,{widgetdata:p});a={CardItems:{cardData:i.section_data},WcardData:m,Editor_data:i.Editor_Link,Editor_code:{Editor_codes:[i.Editor_data]}};var u="";"elementor"===n?u=await Bt("public_download",a,r,o,l,"",d).then((e=>e)):"gutenberg"===n?u=await Ot("public_download",a,r,o,l,"",d).then((e=>e)):"bricks"===n&&(u=await It("public_download",a,r,o,l,"",d).then((e=>e))),u?.api?.success&&(c((e=>({...e,widget_download:"active"}))),setTimeout((()=>{(async e=>{let a=[...t.existingwidget];a.push(e.w_unique);let i=await _();i?.success&&t.wdkit_set_meta(i?.data),t.setexistingwidget(a)})(e)}),3e3)),s(!1)})(a):(t.wdkit_set_notification({title:a?.message,desc:a?.description}),r(!1),s(!1))}))})(d)):(c((e=>({...e,plugin_download:"failed",widget_download:"failed"}))),s(!1))}))},v=()=>{const e=e=>"installing"==d?.[e]?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"active"==d?.[e]?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"});return(0,g.jsxs)("div",{className:"wdkit-installing-widget-details",children:[(0,g.jsxs)("span",{className:"wdkit-installing-text",children:[e("plugin_download"),"elementor"==f?"installing"==d.plugin_download?(0,a.__)("Installing Elementor Plugin","wdesignkit"):"active"==d.plugin_download?(0,a.__)("Installed Elementor Plugin","wdesignkit"):(0,a.__)("Installation failed for Elementor Plugin","wdesignkit"):"gutenberg"==f?"installing"==d.plugin_download?(0,a.__)("Installing Nexter Blocks Plugin","wdesignkit"):"active"==d.plugin_download?(0,a.__)("Installed Nexter Blocks Plugin","wdesignkit"):(0,a.__)("Installation failed for Nexter Blocks Plugin","wdesignkit"):"installing"==d.plugin_download?(0,a.__)("Installing Bricks Theme","wdesignkit"):"active"==d.plugin_download?(0,a.__)("Installed Bricks Theme","wdesignkit"):(0,a.__)("Installation failed for Bricks Theme","wdesignkit")]}),(0,g.jsxs)("span",{className:"wdkit-installing-text",children:[e("widget_download"),i?(0,a.__)("Downloading Widget","wdesignkit"):(0,a.__)("Download Completed","wdesignkit")]})]})},y=()=>(0,g.jsxs)("div",{className:"wdkit-install-widget-requirments",children:[(0,g.jsxs)("div",{className:"wdkit-install-req-container",children:[(0,g.jsx)("img",{className:"wdkit-install-req-img",src:"elementor"==f?h+"/assets/images/wb-svg/elementor.svg":"gutenberg"==f?h+"/assets/images/wb-svg/gutenberg-core.svg":h+"/assets/images/wb-svg/bricks.svg",alt:"builder img",draggable:!1}),(0,g.jsx)("span",{className:"wdkit-install-req-text",children:"elementor"==f?(0,a.__)("Elementor Plugin","wdesignkit"):"gutenberg"==f?(0,a.__)("Nexter Blocks Plugin","wdesignkit"):(0,a.__)("Bricks Theme","wdesignkit")})]}),(0,g.jsx)("a",{href:"https://academy.bricksbuilder.io/article/installation-activation/",className:"wdkit-install-req-link",target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-link-square"})})]}),j=()=>(0,g.jsxs)("div",{className:"wkit-import-widget-success",children:[(0,g.jsx)("img",{className:"wkit-import-widget-success-gif",src:h+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wkit-import-widget-success-title",children:(0,a.__)("Widget Downloaded Successfully","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-widget-success-desc",children:(0,a.__)("Your selected widget is ready. Start customizing and building your page right away.","wdesignkit")}),(0,g.jsx)($t,{to:"/widget-listing",className:"wkit-btn-class",children:(0,a.__)("view widget","wdesignkit")})]});return(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wdkit-browse-img-cover wdkit-browse-img-cover-listing",onClick:()=>{t.existingwidget.includes(t?.widgetData.w_unique)?m("/widget-listing"):x(t?.widgetData)},children:(0,g.jsxs)("div",{className:"wdkit-browse-img-container",children:["pro"===t?.widgetData?.free_pro&&(0,g.jsx)("div",{className:"wdkit-card-tag wdkit-pro-crd",children:(0,g.jsxs)("span",{children:[" ",(0,a.__)("PRO","wdesignkit")]})}),(0,g.jsxs)("picture",{className:"wdkit-template-picture",children:[t?.widgetData&&t?.widgetData.responsive_image&&t?.widgetData.responsive_image.map(((e,t)=>{return(0,g.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:(a=e.url,a?a.replace(/\s/g,"%20"):"")},t);var a})),(0,g.jsx)("img",{className:"wdkit-card-template-img",src:t?.widgetData?.post_image||t?.widgetData?.image,alt:"featured-img",draggable:!1})]})]})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[u?.pathname?.includes("widget-browse")&&!wdkitData?.wdkit_white_label?.help_link?(0,g.jsx)("a",{className:"wdkit-browse-card-name",href:`${wdkitData.wdkit_server_url}widgets/${N=t?.widgetData?.title,$=N.replace(/\s+/g,"-"),$=($=$.replace(/[^\w-]+/g,"")).toLowerCase()}/${t?.widgetData?.id}`,target:"_blank",rel:"noopener noreferrer",children:t?.widgetData?.title}):(0,g.jsx)("span",{className:"wdkit-browse-card-name",children:t?.widgetData?.title}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[t.existingwidget.includes(t?.widgetData.w_unique)?(0,g.jsx)($t,{className:"wdkit-browse-card-download",to:"/widget-listing",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):i?(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("span",{className:"wdkit-widget-downloading"})}):(0,g.jsx)("div",{className:"wdkit-browse-card-download",onClick:e=>{x(t?.widgetData)},children:(0,g.jsx)("i",{className:"wdkit-i-download"})}),(0,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:t?.widgetData?.builderUrl,alt:"builder-icon"})})]})]}),n&&(0,g.jsx)(Be,{title:l.title,desc:l.desc,body:l.body,close_popup:()=>r(!1)})]});var N,$},{Fragment:Wt}=wp.element,{checkBuilder:qt,wkitGetBuilder:Gt}=wp.wkit_Helper,zt=t=>{if(wdkitData.WDKIT_URL,!p())return t.wdkit_Login_Route("/share_with_me"),(0,g.jsx)(Se,{to:"/login"});const[i,s]=(0,e.useState)(1),[n,r]=(0,e.useState)(24),[l,o]=(0,e.useState)(0),[d,c]=(0,e.useState)(),[m,u]=(0,e.useState)([]),[h,_]=(0,e.useState)(""),[f,k]=(0,e.useState)(!1),[b,x]=(0,e.useState)(!1),[v,j]=(0,e.useState)("all"),[N,$]=(0,e.useState)(),[C,S]=(0,e.useState)("templates"),[D,E]=(0,e.useState)(!0),[P,A]=(0,e.useState)([]),T=pe().state;return(0,e.useEffect)((()=>{T&&s(T)}),[T]),(0,e.useEffect)((()=>{t?.wdkit_meta?.userinfo&&c(t?.wdkit_meta)}),[t?.wdkit_meta?.userinfo]),(0,e.useEffect)((()=>{d&&"snippet"!==C&&(async()=>{E(!0);let e=p();if(e){let a={token:e.token,type:"widgets"==C?"builder":"templates"==C?"template":"",current_page:i,par_page:n,id:d?.userinfo?.id,builder:window.wdkit_editor},s={type:"shared_with_me",api_info:JSON.stringify(a)};await w(s).then((async e=>{if(e?.data?.content&&Array.isArray(e?.data?.content)&&0==e?.data?.content?.length&&"widgets"!==C&&"wdkit"==wdkitData.use_editor?S("widgets"):await u(e),"widgets"==C){(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)})),A(a)}})(e?.data?.content)}let a=e?.data?.data?.total?e.data.data.total:0;o(Math.ceil(a/n))}))}E(!1)})()}),[C,i,d]),(0,g.jsxs)("div",{className:"wkit-share-with-me",children:[(0,g.jsxs)("div",{className:"wdkit-share-with-me-inner",children:["wdkit"==wdkitData.use_editor&&(0!=t?.wdkit_meta?.Setting?.builder||0!=t?.wdkit_meta?.Setting?.code_snippet||0!=t?.wdkit_meta?.Setting?.template)&&(0,g.jsxs)("div",{className:"wdkit-share-top-tabs",children:[!1!==t?.wdkit_meta?.Setting?.template&&(0,g.jsx)("span",{className:"wdkit-share-tab-box "+("templates"==C?"wdkit-tab-active":""),onClick:()=>S("templates"),children:(0,a.__)("Templates","wdesignkit")}),!1!==t?.wdkit_meta?.Setting?.builder&&(0,g.jsx)("span",{className:"wdkit-share-tab-box "+("widgets"==C?"wdkit-tab-active":""),onClick:()=>S("widgets"),children:(0,a.__)("Widgets","wdesignkit")}),!1!==t?.wdkit_meta?.Setting?.code_snippet&&(0,g.jsxs)("span",{className:`wdkit-share-tab-box ${"snippet"==C?"wdkit-tab-active":""} wdkit-code-snippet-tab`,children:[(0,g.jsx)("span",{className:"wdkit-code-snippet-tab-text",children:(0,a.__)("Code Snippet","wdesignkit")}),(0,g.jsx)("span",{className:"wdkit-coming-soon",children:(0,a.__)("Coming Soon","wdesignkit")})]})]}),"snippet"==C?(0,g.jsx)("div",{className:"wdkit-loop",children:(0,g.jsx)(it,{page:C,link:wdkitData.WDKIT_DOC_URL+"add-templates-and-widgets-in-workspace/"})}):(0,g.jsxs)("div",{className:"wdkit-loop",children:[m?.data?.content?.length>0&&t?.wdkit_meta&&!D&&(0,g.jsx)("div",{className:"wdesign-kit-main wkit-grid-columns",children:Object.values(m.data.content).map(((e,a)=>(0,g.jsx)(Wt,{children:"templates"==C?(0,g.jsx)(Wt,{children:qt(e.post_builder,v)&&(0,g.jsx)(at,{data:e,builder:t?.wdkit_meta.builder,wdkit_meta:t?.wdkit_meta,currentPage:i,wdkit_dark_mode:t?.wdkit_dark_mode,skeleton:e=>E(e),wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_set_notification:e=>t.wdkit_set_notification(e)})}):(0,g.jsx)(Wt,{children:(0,g.jsx)(Vt,{widgetData:e,existingwidget:P,wdkit_dark_mode:t?.wdkit_dark_mode,setexistingwidget:e=>{A(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_notification:e=>t.wdkit_set_notification(e)})},a)},a)))}),(0==m?.data?.total||"error"==m?.data?.data)&&0==D&&(0,g.jsx)(it,{page:C,link:wdkitData.WDKIT_DOC_URL+"add-templates-and-widgets-in-workspace/"}),D&&(0,g.jsx)("div",{style:{width:"100%"},children:(0,g.jsx)(dt,{})})]})]}),l>1&&"snippet"!==C&&(0,g.jsx)("div",{className:"wkit-wb-paginatelist",children:(0,g.jsx)("div",{className:"wkit-pagination-main",children:(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:l,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&s(e.nextSelectedPage+1)},forcePage:i-1,onPageActive:()=>{}})})})]})},Ht=t=>{const[i,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(""),o=async()=>{let e=t?.wdkit_meta?.userinfo?.user_email?t.wdkit_meta.userinfo.user_email:"";if(""==r.trim())return void t.wdkit_set_notification({title:(0,a.__)("Workspace Name Required","wdesignkit"),desc:"Please provide a name to create your workspace."});n(!0);let i=await(async(e,t)=>{let a=new FormData;return a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","manage_workspace"),a.append("email",t),a.append("builder",window.wdkit_editor),a.append("title",e),a.append("wstype","add"),(await s().post(ajaxurl,a).then((async e=>await e.data))).data})(r,e);if(i?.success){let e=await _();await t.wdkit_set_meta(e.data),t.close_popup()}n(!1),t.wdkit_set_notification({title:i?.message?i.message:"",desc:i?.description?i.description:""})};return(0,g.jsxs)("div",{className:"wkit-create-ws-popup",children:[(0,g.jsx)("span",{className:"wkit-create-ws-title",children:(0,a.__)("Workspace Name","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-create-ws-name-inp",type:"text",placeholder:(0,a.__)("Enter workspace name","wdesignkit"),value:r,onChange:e=>{l(e.target.value)},onKeyDown:e=>{"Enter"!==e.key||i||o()}}),(0,g.jsxs)("div",{className:"wkit-create-ws-footer",children:[(0,g.jsx)("button",{className:"wkit-create-ws-cancel wdkit-trsprnt-btn",onClick:()=>{t.close_popup()},children:(0,a.__)("Cancel","wdesignkit")}),i?(0,g.jsx)("button",{className:"wkit-create-ws-submit wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-create-ws-submit wkit-btn-class",onClick:()=>{o()},children:(0,a.__)("Create Workspace","wdesignkit")})]})]})},Ut=()=>{const t=e=>Array.from({length:e});return(0,g.jsx)("div",{className:"wkit-workspace-wrapper-content",children:t(12).map(((i,s)=>(0,g.jsx)(e.Fragment,{children:(0,g.jsx)("div",{className:"wkit-workspace-wraped wkit-skeleton",children:(0,g.jsx)("div",{className:"wkit-workspace-box",children:(0,g.jsxs)("div",{className:"wkit-workspace-card-container",children:[(0,g.jsx)("div",{className:"wdkit-edit-dropdown",children:(0,g.jsx)("div",{className:"wkit-ws-card-menu",children:(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu"})})}),(0,g.jsx)("div",{className:"wkit-workspace-mixed",children:(0,g.jsx)("div",{className:"wkit-profile-back wkit-profile-letter",style:{textTransform:"uppercase"},children:"WD"})}),(0,g.jsxs)("div",{className:"wdkit-wrksp-owner",children:[(0,g.jsx)("span",{className:"wkit-wp-card-link",children:(0,g.jsx)("div",{className:"wkit-user-name",children:"WDesignKit workspace"})}),(0,g.jsx)("div",{className:"wkit-author-select-wrapper",children:(0,g.jsx)("div",{className:"wkit-avatar-name",children:(0,g.jsx)("span",{className:"wkit-avatar-main-name",children:(0,a.__)("by WDesignKit","wdesignkit")})})})]}),(0,g.jsxs)("div",{className:"wdk-wrksp-members",children:[(0,g.jsx)("span",{className:"wdkit-wrksp-member-h",children:"Members"}),(0,g.jsx)("div",{className:"wdk-wspmembr-list",children:t(3)?.map(((e,t)=>(0,g.jsx)("span",{className:"wdk-membr-img",children:(0,g.jsx)("span",{className:"wdkit-member-img"})},t)))}),(0,g.jsxs)("div",{className:"wkit-top-user",children:[(0,g.jsxs)("div",{className:"wkit-live-user wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-user"}),(0,g.jsx)("span",{children:(0,a.__)("2 Users","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-workspace-edit-temp wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-templates"}),(0,g.jsx)("span",{children:(0,a.__)("2 Templates","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-workspace-edit-widget wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-widgets"}),(0,g.jsx)("span",{children:(0,a.__)("2 Widgets","wdesignkit")})]})]})]})]})})})},s)))})},{Fragment:Jt}=wp.element,Kt=t=>{let i=p();if(!i)return t.wdkit_Login_Route("/manage_workspace"),(0,g.jsx)(Se,{to:"/login"});const[n,r]=(0,e.useState)("loading"),[l,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)(),[m,u]=(0,e.useState)(),[h,w]=(0,e.useState)(!0),[f,k]=(0,e.useState)(-1),x=ue();wdkitData.WDKIT_URL,(0,e.useEffect)((()=>{w(!0),r(t?.wdkit_meta),t?.wdkit_meta?.workspace&&w(!1)}),[t?.wdkit_meta]),(0,e.useEffect)((()=>{v()}),[n,i?.work_widgets?.length]);const v=async()=>{let e=n?.workspace,t=n?.userinfo?.id,a=0;await e&&e.map((e=>{e.u_id==t&&(a+=1)})),u(a)},y=e=>{let t=e?.share_user[e.u_id]?e?.share_user[e.u_id]:"",i=n?.userinfo?.full_name?n.userinfo.full_name:"",s=(n?.userinfo?.user_profile&&n.userinfo.user_profile,n?.userinfo?.id?n.userinfo.id:"");return(0,g.jsx)("div",{className:"wkit-avatar-name",children:(0,g.jsxs)("span",{className:"wkit-avatar-main-name",children:[(0,a.__)("by ","wdesignkit"),e?.u_id==s?i:t.full_name]})})},j=e=>{let t=e.w_id;return(0,g.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,g.jsx)("div",{className:"wkit-ws-card-menu wkit-custom-dropDown-header",children:(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu"})}),(0,g.jsxs)("div",{className:"wkit-custom-dropDown-content",style:{width:"100px"},children:[(0,g.jsx)("div",{className:"wkit-drop-down-outer"}),(0,g.jsx)($t,{to:"/manage_workspace/workspace_template/"+t,children:(0,g.jsx)("div",{className:"wkit-custom-dropDown-options",children:(0,g.jsx)("span",{children:(0,a.__)("View","wdesignkit")})})}),"admin"==e?.roles&&(0,g.jsx)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{N(t)},children:(0,g.jsx)("span",{children:(0,a.__)("Delete","wdesignkit")})})]})]})},N=e=>{o(!0),k(e),c({title:(0,a.__)("Workspace Deleted","wdesignkit"),desc:(0,a.__)("The selected workspace has been removed permanently.","wdesignkit"),body:"delete_ws"})},$=e=>{let i=Object.values(e.share_user).length,s=e.work_templates.length,n=e.work_widgets.length;return(0,g.jsxs)("div",{className:"wkit-top-user",children:[(0,g.jsxs)("div",{className:"wkit-live-user wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-user"}),(0,g.jsxs)("span",{children:[i," ",i>1?(0,a.__)("Users","wdesignkit"):(0,a.__)("User","wdesignkit")]})]}),1==t?.wdkit_meta?.Setting?.template&&(0,g.jsxs)("div",{className:"wkit-workspace-edit-temp wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-templates"}),(0,g.jsxs)("span",{children:[s," ",s>1?(0,a.__)("Templates","wdesignkit"):(0,a.__)("Template","wdesignkit")]})]}),1==t?.wdkit_meta?.Setting?.builder&&(0,g.jsxs)("div",{className:"wkit-workspace-edit-widget wkit-workspace-detail",children:[(0,g.jsx)("i",{className:"wdkit-i-widgets"}),(0,g.jsxs)("span",{children:[n," ",n>1?(0,a.__)("Widgets","wdesignkit"):(0,a.__)("Widget","wdesignkit")]})]})]})},C=()=>{const[i,n]=(0,e.useState)(!1);return(0,g.jsxs)("div",{className:"wkit-delete-ws-popup",children:[(0,g.jsxs)("button",{className:"wkit-delete-ws-cancel wdkit-trsprnt-btn",onClick:()=>{o(!1)},children:[(0,a.__)("Cancel","wdesignkit")," "]}),i?(0,g.jsxs)("button",{className:"wkit-delete-ws-submit wkit-btn-class",children:[" ",(0,g.jsx)(b,{})," "]}):(0,g.jsx)("button",{className:"wkit-delete-ws-submit wkit-btn-class",onClick:()=>(async()=>{let e=t?.wdkit_meta?.userinfo?.user_email?t.wdkit_meta.userinfo.user_email:"";n(!0);let a=await(async(e,t)=>{let a=new FormData;return a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","manage_workspace"),a.append("email",t),a.append("wid",e),a.append("wstype","remove"),(await s().post(ajaxurl,a).then((async e=>await e.data))).data})(f,e),i={title:a?.message?a.message:"",desc:a?.description?a.description:""};t.wdkit_set_notification(i),o(!1),w(!0);let r=await _();await t.wdkit_set_meta(r.data),w(!1),n(!1)})(),children:(0,g.jsx)("span",{children:(0,a.__)("Yes, Delete it","wdesignkit")})})]})};return(0,g.jsxs)("div",{className:"wkit-manage-main",children:[(0,g.jsxs)("div",{className:"wkit-workspace-wrapper",children:[n?.workspace&&0==h&&(0,g.jsxs)("div",{className:"wkit-workspace-wrapper-content",children:[(()=>{let e=n?.credits?.workspace_limit?.meta_value?n?.credits?.workspace_limit?.meta_value:2;const t=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)}};return(0,g.jsx)(Jt,{children:Object.values(n.workspace).map(((i,s)=>{let n=i.w_id;return(0,g.jsx)("div",{className:"wkit-workspace-wraped",children:(0,g.jsxs)("div",{className:"wkit-workspace-box",children:[("active"!=i?.is_activated||s>=e)&&(0,g.jsxs)(Jt,{children:[(0,g.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,g.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,g.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,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),"admin"==i.roles&&(0,g.jsx)("span",{className:"wdkit-inner-boxed-remove",onClick:()=>{N(n)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]}),(0,g.jsxs)("div",{className:"wkit-workspace-card-container",onClick:e=>{((e,t)=>{e?.target?.closest(".wkit-custom-dropDown-header")||e?.target?.closest(".wkit-custom-dropDown-content")||x(`/manage_workspace/workspace_template/${t}`)})(e,n)},children:[(0,g.jsx)("div",{className:"wdkit-edit-dropdown",children:j(i)}),(0,g.jsx)("div",{className:"wkit-workspace-mixed",children:i.work_icon?(0,g.jsx)("img",{src:i.work_icon,alt:"workspace-icon",className:"wkit-profile-back",draggable:"false"}):(0,g.jsx)("div",{className:"wkit-profile-back wkit-profile-letter",style:{textTransform:"uppercase"},children:t(i.work_title)})}),(0,g.jsxs)("div",{className:"wdkit-wrksp-owner",children:[(0,g.jsx)("span",{className:"wkit-wp-card-link",children:(0,g.jsx)("div",{className:"wkit-user-name",children:i.work_title})}),(0,g.jsx)("div",{className:"wkit-author-select-wrapper",children:y(i)})]}),(0,g.jsxs)("div",{className:"wdk-wrksp-members",children:[(0,g.jsx)("span",{className:"wdkit-wrksp-member-h",children:"Members"}),(0,g.jsx)("div",{className:"wdk-wspmembr-list",children:Object.values(i.share_user)?.map(((e,t)=>(0,g.jsx)("span",{className:"wdk-membr-img",children:(0,g.jsx)("img",{className:"wdkit-member-img",src:e.user_profile,alt:"member-img"})},t)))}),$(i)]})]})]})},s)}))})})(),(S=n?.credits?.workspace_limit?.meta_value?n?.credits?.workspace_limit?.meta_value:1,(0,g.jsx)(Jt,{children:(0,g.jsx)("div",{className:"wkit-add-new-workspace-wrapperd",children:(0,g.jsx)("div",{className:"wkit-add-new-workspace",children:(0,g.jsxs)("div",{className:"wkit-add-new-content",children:[(0,g.jsxs)("div",{className:"wkit-add-new-text",children:[(0,g.jsx)("span",{className:"wkit-add-new-Title",children:"unlimited"==S||m<S?(0,a.__)("New Workspace ?","wdesignkit"):(0,a.__)("You have Used Free Credit","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-add-new-desc",children:"unlimited"==S||m<S?(0,a.__)("Manage and collaborate with ease.","wdesignkit"):(0,a.__)("You need to purchase now to add more workspace","wdesignkit")})]}),"unlimited"==S||m<S?(0,g.jsx)("button",{className:"wkit-pink-btn-class",onClick:()=>{c({title:(0,a.__)("Create Workspace","wdesignkit"),desc:(0,a.__)("Provide a workspace name to get started.","wdesignkit"),body:"create_ws"}),o(!0)},children:(0,a.__)("Create Workspace","wdesignkit")}):!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("div",{children:(0,g.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")})})]})})})}))]}),1==h&&(0,g.jsx)(Ut,{})]}),l&&(0,g.jsx)(Be,{title:d?.title,desc:d?.desc,body:(e=>"create_ws"==e?(0,g.jsx)(Ht,{wdkit_meta:t?.wdkit_meta,wdkit_set_notification:e=>t.wdkit_set_notification(e),close_popup:()=>o(!1),wdkit_set_meta:e=>t.wdkit_set_meta(e)}):"delete_ws"==e?(0,g.jsx)(C,{}):void 0)(d?.body),close_popup:()=>{o(!1)}})]});var S},Zt=()=>(0,g.jsxs)("div",{children:[(0,g.jsxs)("div",{className:"wkit-single-workspace-header wkit-workspace-boxed",children:[(0,g.jsxs)("div",{className:"wkit-single-skeleton-left-side",children:[(0,g.jsx)("div",{className:"wkit-skeleton-profile-img wkit-main-profile-skeleton",style:{borderRadius:"5px"}}),(0,g.jsx)("div",{className:"wkit-skeleton-line"}),(0,g.jsxs)("div",{className:"wkit-workspace-skeleton-btn-wrapper",children:[(0,g.jsx)("div",{className:"wkit-btn"}),(0,g.jsx)("div",{className:"wkit-btn"})]})]}),(0,g.jsxs)("div",{className:"wkit-single-skeleton-right-side",children:[(0,g.jsx)("div",{children:(0,g.jsxs)("ul",{className:"wkit-small-img-wrapper",children:[(0,g.jsx)("li",{children:(0,g.jsx)("div",{className:"wkit-skeleton-profile-img"})}),(0,g.jsx)("li",{children:(0,g.jsx)("div",{className:"wkit-skeleton-profile-img"})}),(0,g.jsx)("li",{children:(0,g.jsx)("div",{className:"wkit-skeleton-profile-img"})})]})}),(0,g.jsx)("div",{className:"template-page-kit-title",children:(0,g.jsx)("div",{className:"wkit-skeleton-line"})})]})]}),(0,g.jsx)(dt,{})]}),{Fragment:Yt}=wp.element,{form_data:Xt,wkitGetBuilder:Qt}=wp.wkit_Helper,ea=t=>{let i=p();if(!i)return(0,g.jsx)(Se,{to:"/login"});const s=he(),[r,l]=(0,e.useState)("loading"),[o,d]=(0,e.useState)(""),[c,m]=(0,e.useState)(""),[u,h]=(0,e.useState)("all"),[f,x]=(0,e.useState)(),[v,j]=(0,e.useState)(""),[N,$]=(0,e.useState)(!1),[C,S]=(0,e.useState)(!1),[D,E]=(0,e.useState)(""),[P,A]=(0,e.useState)(!1),[T,L]=(0,e.useState)(""),[M,F]=(0,e.useState)(!1),[I,B]=(0,e.useState)(-1),[O,R]=(0,e.useState)(!1),[V,W]=(0,e.useState)([]),[q,G]=(0,e.useState)([]),[z,H]=(0,e.useState)(!1),[U,J]=(0,e.useState)(-1),[K,Z]=(0,e.useState)([]),[Y,X]=(0,e.useState)(-1),[Q,ee]=(0,e.useState)([]),[te,ae]=(0,e.useState)([]),[ie,se]=(0,e.useState)(),[ne,re]=(0,e.useState)(!1),[le,oe]=(0,e.useState)(!1),[de,ce]=(0,e.useState)(!1),[pe,me]=(0,e.useState)(!1),[ge,we]=(0,e.useState)({title:"",desc:"",body:""}),[_e,fe]=(0,e.useState)({plugin_download:"installing",widget_download:"installing"}),[ke,be]=(0,e.useState)(1),[xe,ve]=(0,e.useState)(24),[ye,je]=(0,e.useState)(),[Ne,$e]=(0,e.useState)(),Ce=ue(),De=(0,e.useRef)("");var Ee=wdkitData.WDKIT_URL;const Pe=[{name:"elementor",label:"elementor",original_slug:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0"},{name:"the-plus-addons-for-block-editor",label:"gutenberg",original_slug:"the-plus-addons-for-block-editor",plugin_slug:"the-plus-addons-for-block-editor/the-plus-addons-for-block-editor.php",type:"plugin",freepro:"0"},{name:"bricks",label:"bricks",original_slug:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1"}];(0,e.useEffect)((()=>{if("loading"!=r&&"wdkit"==wdkitData.use_editor){var e=[],a=[];Object.values(t?.wdkit_meta?.workspace).map((t=>{""!=s.id&&Number(s.id)===t.w_id&&(Array.isArray(t.work_templates)&&Array.isArray(r?.template)&&t.work_templates.length>0&&(e=t.work_templates.filter((e=>r?.template.some((t=>t.id===e))))),Array.isArray(t.work_widgets)&&Array.isArray(r?.widgettemplate)&&t.work_widgets.length>0&&(a=t.work_widgets.filter((e=>r?.widgettemplate.some((t=>t.id===e))))))})),""==c&&(0==e.length&&a.length>0&&!1!==t?.wdkit_meta?.Setting?.builder?m("widgets"):m(!1!==t?.wdkit_meta?.Setting?.template?"templates":"snippet"))}else""==c&&m(!1!==t?.wdkit_meta?.Setting?.template?"templates":"snippet")}),[r]),(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&&(x(e),d(e.work_title))})),R(!1)):(Ce("/manage_workspace"),t.wdkit_set_notification({title:(0,a.__)("Workspace Deactivated","wdesignkit"),desc:(0,a.__)("This Workspace is Deactivated","wdesignkit")}))}}),[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"),ee(e);let a=[];t?.wdkit_meta?.Setting?.elementor_template&&a.push("Elementor"),t?.wdkit_meta?.Setting?.gutenberg_template&&a.push("Gutenberg"),ae(a)}),[t?.wdkit_meta?.Setting]),(0,e.useEffect)((()=>{var e;e="installing"==_e.widget_download?{title:"Setting Up Your Widget",desc:"We're getting everything ready. Please wait while we install the required plugins and import your widget.",body:(0,g.jsx)(We,{})}:"failed"==_e.plugin_download?{title:"Require "+("bricks"==De.current?"Theme":"Plugin"),desc:"To download this widget, you will nedd to install below listed requirments.",body:(0,g.jsx)(qe,{})}:{title:"",desc:"",body:(0,g.jsx)(Ge,{})},we(e)}),[z,_e,pe]),(0,e.useEffect)((()=>{if(R(!0),f){let e=(ke-1)*xe,t=e+xe;je(e),$e(t)}setTimeout((()=>{R(!1)}),700)}),[u,c,ke]),(0,e.useEffect)((()=>{Ae(c)}),[f,u,c]);const Ae=async e=>{let t=[];if("templates"==e){let e=r?.template,a=f?.work_templates;a?.length>0&&a.map((a=>{if("all"==u)var i=e.findIndex((e=>e.id==a));else i=e.findIndex((e=>e.id==a&&e.builder==u));i>-1&&t.push(e[i])}))}else if("widgets"==e){var a=[];if(r?.widgettemplate){const e=e=>{if(r?.widgetbuilder){let t=r?.widgetbuilder,a=t.findIndex((t=>t.w_id==e));if(a>-1)return t[a].builder_name.toLowerCase()}};let t=[...r?.widgettemplate];a=t.filter((t=>{if(r?.Setting[`${e(t.builder)}_builder`])return t}))}let e=f?.work_widgets;e&&e.map((async e=>{if("all"==u)var i=a.findIndex((t=>t.id==e));else i=a.findIndex((t=>t.id==e&&t.builder==u));i>-1&&t.push(a[i])})),Re(t)}W(t)},Te=async()=>{let e=await _().then((async e=>e));await t.wdkit_set_meta(e.data),R(!1)},Le=async e=>{if(document.querySelector(".wkit-text-field.wkit-hide"))document.querySelector(".wkit-text-field.wkit-hide").classList.remove("wkit-hide");else{let n=f.work_title||o,r="";i&&i.user_email&&(r=i.user_email),document.querySelector(".wkit-text-field").classList.add("wkit-hide");let l={type:"manage_workspace",email:r,builder:window.wdkit_editor,title:e||o,wid:s.id,wstype:"edit"};var a=await Xt(l);a&&a.data&&a.data.success?(f.work_title=e||o,x({...f}),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||o)})),t.wdkit_set_notification({title:a?.data?.message,desc:a?.data?.description}),Te()):(f.work_title=n,x({...f}),t.wdkit_set_notification({title:a?.data?.message,desc:a?.data?.description}),Te())}};let Me=0;var Fe="";f&&f.work_title&&(Fe=(Fe=(Fe=f.work_title).match(/\b(\w)/g)).join("").toUpperCase().substr(0,2));let Ie=0;f&&f.total_count&&Object.values(f.total_count).map((e=>{Ie=Number(Ie)+Number(e.count)}));const Oe=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_site_api_url}images/uploads/wpdk-admin/random-image/placeholder.jpg`},Re=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)})),G(a)},Ve=async(e,a)=>{De.current=k(e.builder,t.wdkit_meta?.widgetbuilder);let i=e.id;H(!0),fe((e=>({...e,plugin_download:"installing",widget_download:"installing"}))),me(!0),J(a);p();var s={type:"widget/download",w_uniq:i,d_type:"workspace",u_id:t?.wdkit_meta?.userinfo?.id};let n={type:"wkit_public_download_widget",widget_info:JSON.stringify(s)};Rt(De.current,Pe).then((a=>{"active"==a?.status?(fe((e=>({...e,plugin_download:"active"}))),(async a=>{await Xt(a).then((async a=>{a?.success?(async a=>{let i=JSON.parse(a.json),s=i?.widget_data?.widgetdata?.type,n=JSON.stringify(i?.Editor_data?.html),r=JSON.stringify(i?.Editor_data?.js),l=JSON.stringify(i?.Editor_data?.css),o=a.image;var d=Object.assign({},i.widget_data.widgetdata,{r_id:a.r_id,allow_push:!0});t?.wdkit_meta?.userinfo?.id!=e?.user_id&&(d=Object.assign({},i.widget_data.widgetdata,{allow_push:!1}));let c=Object.assign({},i.widget_data,{widgetdata:d});a={CardItems:{cardData:i.section_data},WcardData:c,Editor_data:i.Editor_Link,Editor_code:{Editor_codes:[i.Editor_data]}};var p="";"elementor"==s?p=await Bt("private_download",a,n,l,r,"",o).then((e=>e)):"gutenberg"==s?p=await Ot("private_download",a,n,l,r,"",o).then((e=>e)):"bricks"==s&&(p=await It("private_download",a,n,l,r,"",o).then((e=>e))),1==p?.api?.success&&(setTimeout((()=>{(async e=>{let a=[...q];a.push(e.w_unique),G(a);let i=await _();i?.success&&(me(!1),t.wdkit_set_meta(i?.data))})(e)}),3e3),fe((e=>({...e,widget_download:"active"})))),H(!1),J(-1)})(a):(t.wdkit_set_notification({title:a?.message,desc:a?.description}),me(!1),H(!1))}))})(n)):(fe((e=>({...e,plugin_download:"failed",widget_download:"failed"}))),H(!1))}))},We=()=>{const e=e=>"installing"==_e?.[e]?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"active"==_e?.[e]?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"});return(0,g.jsxs)("div",{className:"wdkit-installing-widget-details",children:[(0,g.jsxs)("span",{className:"wdkit-installing-text",children:[e("plugin_download"),"elementor"==De.current?"installing"==_e.plugin_download?(0,a.__)("Installing Elementor Plugin","wdesignkit"):"active"==_e.plugin_download?(0,a.__)("Installed Elementor Plugin","wdesignkit"):(0,a.__)("Installation failed for Elementor Plugin","wdesignkit"):"gutenberg"==De.current?"installing"==_e.plugin_download?(0,a.__)("Installing Nexter Blocks Plugin","wdesignkit"):"active"==_e.plugin_download?(0,a.__)("Installed Nexter Blocks Plugin","wdesignkit"):(0,a.__)("Installation failed for Nexter Blocks Plugin","wdesignkit"):"installing"==_e.plugin_download?(0,a.__)("Installing Bricks Theme","wdesignkit"):"active"==_e.plugin_download?(0,a.__)("Installed Bricks Theme","wdesignkit"):(0,a.__)("Installation failed for Bricks Theme","wdesignkit")]}),(0,g.jsxs)("span",{className:"wdkit-installing-text",children:[e("widget_download"),z?(0,a.__)("Downloading Widget","wdesignkit"):(0,a.__)("Download Completed","wdesignkit")]})]})},qe=()=>(0,g.jsxs)("div",{className:"wdkit-install-widget-requirments",children:[(0,g.jsxs)("div",{className:"wdkit-install-req-container",children:[(0,g.jsx)("img",{className:"wdkit-install-req-img",src:"elementor"==De.current?Ee+"/assets/images/wb-svg/elementor.svg":"gutenberg"==De.current?Ee+"/assets/images/wb-svg/gutenberg-core.svg":Ee+"/assets/images/wb-svg/bricks.svg",alt:"builder img",draggable:!1}),(0,g.jsx)("span",{className:"wdkit-install-req-text",children:"elementor"==De.current?(0,a.__)("Elementor Plugin","wdesignkit"):"gutenberg"==De.current?(0,a.__)("Nexter Blocks Plugin","wdesignkit"):(0,a.__)("Bricks Theme","wdesignkit")})]}),(0,g.jsx)("a",{href:"https://academy.bricksbuilder.io/article/installation-activation/",className:"wdkit-install-req-link",target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-link-square"})})]}),Ge=()=>(0,g.jsxs)("div",{className:"wkit-import-widget-success",children:[(0,g.jsx)("img",{className:"wkit-import-widget-success-gif",src:Ee+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wkit-import-widget-success-title",children:(0,a.__)("Widget Downloaded Successfully","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-widget-success-desc",children:(0,a.__)("Your selected widget is ready. Start customizing and building your page right away.","wdesignkit")}),(0,g.jsx)($t,{to:"/widget-listing",className:"wkit-btn-class",children:(0,a.__)("view widget","wdesignkit")})]}),ze=()=>{let e=n(t.wdkit_meta);Z(e)};return(0,g.jsxs)("div",{onClick:()=>{I>=0&&B(-1)},children:[f?(0,g.jsxs)("div",{className:"wdkit-workspace-single-page",children:[(0,g.jsx)("div",{className:"wkit-kit-box-wrapper",children:(0,g.jsxs)("div",{className:"wkit-work-space",children:[(0,g.jsx)("div",{className:"wkit-work-left-column",children:(0,g.jsxs)("div",{className:"wkit-img-name-edit",children:[f.work_icon?(0,g.jsx)("div",{className:"wdkit-pwspc-img",children:(0,g.jsx)("img",{src:f.work_icon,alt:"workspace-profile",className:"wkit-workspace-profile-img"})}):(0,g.jsx)("div",{className:"wkit-profile-back wkit-profile-letter",children:Fe}),(0,g.jsxs)("div",{className:"wkit-ws-name-edit",children:[(0,g.jsxs)("div",{className:"wkit-workspace-title",children:[(0,g.jsx)("span",{children:o}),"admin"==f.roles&&(0,g.jsx)("div",{className:"wkit-workspace-edit-icon",onClick:()=>{Le()},children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen"})})]}),"subscriber"!=f.roles&&(0,g.jsxs)("div",{className:"wkit-text-field wkit-hide",children:[(0,g.jsx)("input",{type:"text",className:"btn-input",value:o,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_notification({title:(0,a.__)("Limit Reached","wdesignkit"),desc:(0,a.__)("Limit Reached","wdesignkit")}),0))&&d(e.target.value)},onKeyDown:e=>{"Enter"==e.key&&""!==o.trim()&&o.trim()!==f.work_title&&Le(o)}}),(0,g.jsx)("button",{className:"wkit-title-update-btn "+(""==o.trim()||o==f.work_title?"wdkit-title-update-btn-disabled":""),disabled:""==o.trim()||o.trim()==f.work_title,onClick:()=>{Le(o)},children:(0,a.__)("Update","wdesignkit")})]})]})]})}),(0,g.jsxs)("div",{className:"wkit-work-right-column",children:[(0,g.jsxs)("div",{className:"img-group",children:[f.share_user&&(0,g.jsx)(g.Fragment,{children:Object.values(f.share_user).map(((e,t)=>{if(t<4&&e.user_profile)return(0,g.jsx)(Yt,{children:(0,g.jsx)("div",{className:"wdkit-workuser-profile",children:(0,g.jsx)("img",{src:e.user_profile,alt:"ws-member",className:"wdkit-work-circleimg"})})},t)}))}),(0,g.jsx)("div",{className:"wkit-more-user-proflie",children:Object.values(f?.share_user).length})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/workspace/workspacetemplate/${f?.w_id}`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("div",{className:"wkit-pink-btn-class",children:(0,g.jsx)("span",{children:(0,a.__)("Manage Members","wdesignkit")})})})]})]})}),"wdkit"==wdkitData.use_editor&&(0,g.jsx)("div",{className:"wdkit-workspace-single-top-panel",children:(0!=t?.wdkit_meta?.Setting?.builder||0!=t?.wdkit_meta?.Setting?.code_snippet||0!=t?.wdkit_meta?.Setting?.template)&&(0,g.jsx)("div",{className:"wdkit-ws-tab-filter",children:(0,g.jsxs)("div",{className:"wdkit-ws-tab-buttons",children:[!1!==t?.wdkit_meta?.Setting?.template&&(0,g.jsx)("button",{className:"wdkit-tab-button "+("templates"===c?"active":""),onClick:()=>{m("templates"),h("all")},children:(0,g.jsx)("span",{children:(0,a.__)("Templates","wdesignkit")})}),!1!==t?.wdkit_meta?.Setting?.builder&&(0,g.jsx)("button",{className:"wdkit-tab-button "+("widgets"===c?"active":""),onClick:()=>{m("widgets"),h("all")},children:(0,g.jsx)("span",{children:(0,a.__)("Widgets","wdesignkit")})}),!1!==t?.wdkit_meta?.Setting?.code_snippet&&(0,g.jsxs)("button",{className:`wdkit-tab-button ${"snippet"===c?"active":""} wdkit-code-snippet-tab`,children:[(0,g.jsx)("span",{className:"wdkit-code-snippet-tab-text",children:(0,a.__)("Code Snippet","wdesignkit")}),(0,g.jsx)("span",{className:"wdkit-coming-soon",children:(0,a.__)("Coming Soon","wdesignkit")})]})]})})}),0==O?"snippet"==c?(0,g.jsx)("div",{className:"wkit-no-template-data",children:(0,g.jsx)(it,{page:c,link:wdkitData.WDKIT_DOC_URL+"add-templates-and-widgets-in-workspace/"})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wdesign-kit-main",children:[r?.template&&f?.work_templates&&"templates"==c&&Object.values(r.template).filter((e=>"all"==u||e.post_builder==u?e:void 0)).map(((e,a)=>{if(Me=""==Me?0:Me,f?.work_templates.length>0&&f?.work_templates?.includes(e.id))return Me++,(0,g.jsx)(Yt,{children:(0,g.jsx)(at,{data:e,builder:t?.wdkit_meta.builder,wdkit_meta:t?.wdkit_meta,currentPage:ke,role:f?.roles,wdkit_dark_mode:t?.wdkit_dark_mode,skeleton:e=>R(e),wdkit_set_meta:e=>{t.wdkit_set_meta(e)},wdkit_set_notification:e=>t.wdkit_set_notification(e)})},a)})),r?.widgettemplate&&f?.work_widgets&&"widgets"==c&&V.slice(ye,Ne).map(((e,i)=>{if(Me=""==Me?0:Me,f.work_widgets.includes(e.id))return Me++,((e,i)=>{return(0,g.jsxs)("div",{className:"wkit-widgetlist-grid-content",children:["active"!=e.is_activated&&(0,g.jsxs)(Yt,{children:[(0,g.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",children:[(0,g.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,g.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,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(0,g.jsx)("span",{className:"wdkit-inner-boxed-remove",children:(0,g.jsx)("svg",{onClick:()=>{document.querySelector(".wkit-model-transp").classList.add("wkit-popup-show"),setwsID(w_id)},xmlns:"http://www.w3.org/2000/svg",width:"14",height:"16",viewBox:"0 0 14 16",fill:"none",children:(0,g.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,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wkit-widget-card-top-part wdkit-browse-img-cover wdkit-browse-img-cover-listing",onClick:t=>{1==z&&U==i||(q.includes(e.w_unique)?Ce("/widget-listing"):Ve(e,i))},children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsxs)("picture",{className:"wdkit-template-picture",children:[e?.responsive_image?.length>0&&e?.responsive_image?.map(((e,t)=>{return(0,g.jsx)(Yt,{children:(0,g.jsx)("source",{media:`(min-width: ${e.size}px)`,srcSet:(a=e.url,a?a.replace(/\s/g,"%20"):"")})},t);var a})),(0,g.jsx)("img",{className:"wdkit-card-template-img",src:e.image,alt:"featured-img"})]})})}),"pro"==e?.free_pro&&(0,g.jsx)("div",{className:"wdkit-card-tag",children:(0,g.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-name",children:"public"==e.status?wdkitData?.wdkit_white_label?.help_link?(0,g.jsx)("div",{className:"wkit-widget-title-heading",children:(0,g.jsx)("span",{children:e.title})}):(0,g.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,g.jsx)("span",{children:e.title})}):(0,g.jsx)("span",{className:"wkit-widget-title-heading",children:(0,g.jsx)("span",{children:e.title})})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("div",{className:"wkit-widget-download-activity",children:1==z&&U==i?(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsx)("div",{className:"wb-download-loader",style:{display:"flex"},children:(0,g.jsx)("div",{className:"wb-download-loader-circle"})})}):q.includes(e.w_unique)?(0,g.jsx)($t,{className:"plugin-download-icon",to:"/widget-listing",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("div",{className:"plugin-download-icon",onClick:t=>{Ve(e,i)},children:(0,g.jsx)("i",{className:"wdkit-i-download"})})})}),("admin"==f.roles||"editor"==f.roles)&&(0,g.jsxs)("div",{className:"w-designkit-hover-select",children:[(0,g.jsx)("div",{className:"wkit-select-img",onClick:()=>{B(i),A(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu"})}),(0,g.jsx)("div",{className:"wkit-dropdown-content "+(I===i?"wdkit-drpdn-active":""),children:(0,g.jsxs)("div",{className:"wkit-select-menu-wrapper",children:[t.wdkit_meta?.userinfo?.id==e?.user_id&&!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}admin/widgets/edit/${e.id}`,target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"none"},children:(0,g.jsx)("div",{className:"wkit-design-item",onClick:()=>{A(!1),B(-1)},children:(0,g.jsx)("span",{children:(0,a.__)("Edit","wdesignkit")})})}),(0,g.jsx)("div",{className:"wkit-design-item",onClick:()=>{A(!1),B(-1),E("copy"),F(e),ze()},children:(0,g.jsx)("span",{children:(0,a.__)("Copy to Workspace","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-design-item",onClick:()=>{A(!1),B(-1),E("move"),F(e),ze()},children:(0,g.jsx)("span",{children:(0,a.__)("Move to Workspace","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-design-item",onClick:()=>{re(!0),B(-1),X(e)},children:(0,g.jsx)("span",{children:(0,a.__)("Remove","wdesignkit")})})]})})]}),(0,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:Oe(e),alt:"builder image",draggable:!1})})]})]})]})]},i);var s,n})(e,i)})),M&&D&&(0,g.jsx)(Be,{title:"move"===D?(0,a.__)("Move to workspace","wdesignkit"):(0,a.__)("Copy to workspace","wdesignkit"),desc:"move"===D?"Choose a workspace to move your item to.":"Select a workspace where you want to copy this item.",body:(0,g.jsx)(Yt,{children:(0,g.jsx)("div",{className:"wkit-copy-move-ws-wrap",children:(0,g.jsxs)("div",{className:"wkit-ws-content dropdown-custom-width",children:[(0,g.jsxs)("div",{className:"wdkit-select-ws-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-down-arrow"}),(0,g.jsxs)("select",{className:"wkit-select-workspace",onChange:e=>{L(e.target.value)},children:[(0,g.jsx)("option",{value:"",children:(0,a.__)("Select Workspace","wdesignkit")}),K.length>0&&K.map(((e,t)=>(0,g.jsx)(Yt,{children:(0,g.jsx)("option",{value:e.w_id,children:e.work_title})},t)))]})]}),(0,g.jsxs)("div",{className:"wkit-copy-wrap",children:[(0,g.jsx)("button",{type:"button",className:"wdkit-trsprnt-btn",onClick:()=>{E("")},children:(0,a.__)("Cancel","wdesignkit")}),de?(0,g.jsx)("button",{className:"btn-workspace-add wkit-pink-btn-class",children:b()}):(0,g.jsxs)("button",{type:"button",className:"btn-workspace-add wkit-pink-btn-class",onClick:()=>{T&&(async e=>{ce(!0),E("loading");let a=M,i=p();if(i){if("copy"==e)var s={token:i.token,type:"wd-copy",widget_id:a?.id,current_wid:f?.w_id,wid:T};else"move"==e&&(s={token:i.token,type:"wd-move",widget_id:a?.id,current_wid:f?.w_id,wid:T});let n={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(s)};await w(n).then((async a=>{if(1==a?.success){if("copy"==e){t.wdkit_set_notification({title:a?.message,desc:a?.description}),ce(!1),E(""),F(""),R(!0);let e=await _().then((async e=>e));t.wdkit_set_meta(e.data),R(!1)}else if("move"==e){t.wdkit_set_notification({title:a?.message,desc:a?.description}),ce(!1),E(""),F(""),R(!0);let e=await _().then((async e=>e));t.wdkit_set_meta(e.data),R(!1)}}else t.wdkit_set_notification({title:a?.message,desc:a?.description}),ce(!1),E(""),F("")}))}else ce(!1),E(""),F("")})(D)},children:[" ",(0,a.__)("Create ","wdesignkit")," ",D]})]})]})})}),close_popup:()=>E("")}),pe&&(0,g.jsx)(Be,{title:ge.title,desc:ge.desc,body:ge.body,close_popup:()=>me(!1)}),ne&&(0,g.jsx)(Be,{title:"Remove Widget",desc:"Once removed, you won't be able to recover this widget.",body:(0,g.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,g.jsx)("button",{className:"wkit-popup-confirm wdkit-trsprnt-btn",onClick:()=>re(!1),children:(0,g.jsx)("span",{children:(0,a.__)("Cancel","wdesignkit")})}),(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>(async e=>{if(e){oe(!0);let a=p();if(a){let i={token:a.token,type:"wd_ws_remove",widget_id:e?.id,wid:f?.w_id},s={type:"wkit_manage_widget_workspace",workspace_info:JSON.stringify(i)};await w(s).then((e=>{1==e?.success?(t.wdkit_set_notification({title:e?.message,desc:e?.description}),oe(!1),X(-1),re(!1),R(!0),Te()):(t.wdkit_set_notification({title:e?.message,desc:e?.description}),oe(!1),X(-1),re(!1))}))}else oe(!1),X(-1),re(!1)}else oe(!1),X(-1),re(!1)})(Y),children:1==le?(0,g.jsx)(b,{}):(0,g.jsx)("span",{children:(0,a.__)("Remove","wdesignkit")})})]}),close_popup:()=>{re(!1)}})]}),Me<=0&&(0,g.jsx)("div",{className:"wkit-no-template-data",children:(0,g.jsx)(it,{page:c,link:wdkitData.WDKIT_DOC_URL+"add-templates-and-widgets-in-workspace/"})})]}):(0,g.jsx)(dt,{})]}):(0,g.jsx)(Zt,{}),Math.ceil(V.length/xe)>1&&"snippet"!==c&&(0,g.jsx)("div",{className:"wkit-wb-paginatelist",children:(0,g.jsx)("div",{className:"wkit-pagination-main",children:(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:Math.ceil(V.length/xe),marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&be(e.nextSelectedPage+1)},forcePage:ke-1,onPageActive:()=>{}})})})]})};var ta=__webpack_require__(418),aa=e,ia=Symbol.for("react-redux-context"),sa="undefined"!=typeof globalThis?globalThis:{};function na(){if(!aa.createContext)return{};const e=sa[ia]??(sa[ia]=new Map);let t=e.get(aa.createContext);return t||(t=aa.createContext(null),e.set(aa.createContext,t)),t}var ra=na(),la=Symbol.for("react.element"),oa=Symbol.for("react.portal"),da=Symbol.for("react.fragment"),ca=Symbol.for("react.strict_mode"),pa=Symbol.for("react.profiler"),ma=Symbol.for("react.provider"),ua=Symbol.for("react.context"),ha=Symbol.for("react.server_context"),ga=Symbol.for("react.forward_ref"),wa=Symbol.for("react.suspense"),_a=Symbol.for("react.suspense_list"),fa=Symbol.for("react.memo"),ka=Symbol.for("react.lazy"),ba=(Symbol.for("react.offscreen"),Symbol.for("react.client.reference"),ga),xa=fa;function va(e,t,a,i,{areStatesEqual:s,areOwnPropsEqual:n,areStatePropsEqual:r}){let l,o,d,c,p,m=!1;return function(u,h){return m?function(m,u){const h=!n(u,o),g=!s(m,l,u,o);return l=m,o=u,h&&g?(d=e(l,o),t.dependsOnOwnProps&&(c=t(i,o)),p=a(d,c,o),p):h?(e.dependsOnOwnProps&&(d=e(l,o)),t.dependsOnOwnProps&&(c=t(i,o)),p=a(d,c,o),p):g?function(){const t=e(l,o),i=!r(t,d);return d=t,i&&(p=a(d,c,o)),p}():p}(u,h):(l=u,o=h,d=e(l,o),c=t(i,o),p=a(d,c,o),m=!0,p)}}function ya(e){return function(t){const a=e(t);function i(){return a}return i.dependsOnOwnProps=!1,i}}function ja(e){return e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function Na(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=ja(e);let s=i(t,a);return"function"==typeof s&&(i.mapToProps=s,i.dependsOnOwnProps=ja(s),s=i(t,a)),s},i}}function $a(e,t){return(a,i)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${i.wrappedComponentName}.`)}}function Ca(e,t,a){return{...a,...e,...t}}var Sa={notify(){},get:()=>[]};function Da(e,t){let a,i=Sa,s=0,n=!1;function r(){d.onStateChange&&d.onStateChange()}function l(){s++,a||(a=t?t.addNestedSub(r):e.subscribe(r),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=Sa)}const d={addNestedSub:function(e){l();const t=i.subscribe(e);let a=!1;return()=>{a||(a=!0,t(),o())}},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:r,isSubscribed:function(){return n},trySubscribe:function(){n||(n=!0,l())},tryUnsubscribe:function(){n&&(n=!1,o())},getListeners:()=>i};return d}var Ea=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Pa="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Aa=Ea||Pa?aa.useLayoutEffect:aa.useEffect;function Ta(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function La(e,t){if(Ta(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])||!Ta(e[a[i]],t[a[i]]))return!1;return!0}var Ma={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fa={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ia={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ba={[ba]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[xa]:Ia};function Oa(e){return function(e){if("object"==typeof e&&null!==e){const t=e.$$typeof;switch(t){case la:{const a=e.type;switch(a){case da:case pa:case ca:case wa:case _a:return a;default:{const e=a&&a.$$typeof;switch(e){case ha:case ua:case ga:case ka:case fa:case ma:return e;default:return t}}}}case oa:return t}}}(e)===fa?Ia:Ba[e.$$typeof]||Ma}var Ra=Object.defineProperty,Va=Object.getOwnPropertyNames,Wa=Object.getOwnPropertySymbols,qa=Object.getOwnPropertyDescriptor,Ga=Object.getPrototypeOf,za=Object.prototype;function Ha(e,t){if("string"!=typeof t){if(za){const a=Ga(t);a&&a!==za&&Ha(e,a)}let a=Va(t);Wa&&(a=a.concat(Wa(t)));const i=Oa(e),s=Oa(t);for(let n=0;n<a.length;++n){const r=a[n];if(!(Fa[r]||s&&s[r]||i&&i[r])){const a=qa(t,r);try{Ra(e,r,a)}catch(e){}}}}return e}var Ua=()=>{throw new Error("uSES not initialized!")},Ja=[null,null];function Ka(e,t,a,i,s,n){e.current=i,a.current=!1,s.current&&(s.current=null,n())}function Za(e,t){return e===t}var Ya=function(e,t,a,{pure:i,areStatesEqual:s=Za,areOwnPropsEqual:n=La,areStatePropsEqual:r=La,areMergedPropsEqual:l=La,forwardRef:o=!1,context:d=ra}={}){const c=d,p=function(e){return e?"function"==typeof e?Na(e):$a(e,"mapStateToProps"):ya((()=>({})))}(e),m=function(e){return e&&"object"==typeof e?ya((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?Na(e):$a(e,"mapDispatchToProps"):ya((e=>({dispatch:e})))}(t),u=function(e){return e?"function"==typeof e?function(e){return function(t,{displayName:a,areMergedPropsEqual:i}){let s,n=!1;return function(t,a,r){const l=e(t,a,r);return n?i(l,s)||(s=l):(n=!0,s=l),s}}}(e):$a(e,"mergeProps"):()=>Ca}(a),h=Boolean(e);return e=>{const t=e.displayName||e.name||"Component",a=`Connect(${t})`,i={shouldHandleStateChanges:h,displayName:a,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:p,initMapDispatchToProps:m,initMergeProps:u,areStatesEqual:s,areStatePropsEqual:r,areOwnPropsEqual:n,areMergedPropsEqual:l};function d(t){const[a,s,n]=aa.useMemo((()=>{const{reactReduxForwardedRef:e,...a}=t;return[t.context,e,a]}),[t]),r=aa.useMemo((()=>c),[a,c]),l=aa.useContext(r),o=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch),d=Boolean(l)&&Boolean(l.store),p=o?t.store:l.store,m=d?l.getServerState:p.getState,u=aa.useMemo((()=>function(e,{initMapStateToProps:t,initMapDispatchToProps:a,initMergeProps:i,...s}){return va(t(e,s),a(e,s),i(e,s),e,s)}(p.dispatch,i)),[p]),[g,w]=aa.useMemo((()=>{if(!h)return Ja;const e=Da(p,o?void 0:l.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[p,o,l]),_=aa.useMemo((()=>o?l:{...l,subscription:g}),[o,l,g]),f=aa.useRef(void 0),k=aa.useRef(n),b=aa.useRef(void 0),x=aa.useRef(!1),v=aa.useRef(!1),y=aa.useRef(void 0);Aa((()=>(v.current=!0,()=>{v.current=!1})),[]);const j=aa.useMemo((()=>()=>b.current&&n===k.current?b.current:u(p.getState(),n)),[p,n]),N=aa.useMemo((()=>e=>g?function(e,t,a,i,s,n,r,l,o,d,c){if(!e)return()=>{};let p=!1,m=null;const u=()=>{if(p||!l.current)return;const e=t.getState();let a,u;try{a=i(e,s.current)}catch(e){u=e,m=e}u||(m=null),a===n.current?r.current||d():(n.current=a,o.current=a,r.current=!0,c())};return a.onStateChange=u,a.trySubscribe(),u(),()=>{if(p=!0,a.tryUnsubscribe(),a.onStateChange=null,m)throw m}}(h,p,g,u,k,f,x,v,b,w,e):()=>{}),[g]);var $,C;let S;$=Ka,C=[k,f,x,n,b,w],Aa((()=>$(...C)),undefined);try{S=Ua(N,j,m?()=>u(m(),n):j)}catch(e){throw y.current&&(e.message+=`\nThe error may be correlated with this previous error:\n${y.current.stack}\n\n`),e}Aa((()=>{y.current=void 0,b.current=void 0,f.current=S}));const D=aa.useMemo((()=>aa.createElement(e,{...S,ref:s})),[s,e,S]);return aa.useMemo((()=>h?aa.createElement(r.Provider,{value:_},D):D),[r,D,_])}const g=aa.memo(d);if(g.WrappedComponent=e,g.displayName=d.displayName=a,o){const t=aa.forwardRef((function(e,t){return aa.createElement(g,{...e,reactReduxForwardedRef:t})}));return t.displayName=a,t.WrappedComponent=e,Ha(t,e)}return Ha(g,e)}},Xa=function({store:e,context:t,children:a,serverState:i,stabilityCheck:s="once",identityFunctionCheck:n="once"}){const r=aa.useMemo((()=>{const t=Da(e);return{store:e,subscription:t,getServerState:i?()=>i:void 0,stabilityCheck:s,identityFunctionCheck:n}}),[e,i,s,n]),l=aa.useMemo((()=>e.getState()),[e]);Aa((()=>{const{subscription:t}=r;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[r,l]);const o=t||ra;return aa.createElement(o.Provider,{value:r},a)};ta.useSyncExternalStoreWithSelector,(e=>{Ua=e})(e.useSyncExternalStore);const Qa=e=>({type:"ADD_SETTING_ARRAY",data:e}),ei=e=>({type:"ADD_LOGIN_ROUTE",data:e}),ti=e=>({type:"UPDATE_WDKIT_META",data:e}),ai=e=>({type:"UPDATE_PLUGIN_ICONS",data:e}),ii=e=>({type:"ADD_SETTING_ARRAY",data:e}),si=e=>({type:"Show_Notification",data:e}),ni=e=>({type:"set_dark_mode",data:e}),ri=e=>({type:"set_temp_meta",data:e}),li=Ya((e=>({wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_dark_mode:t=>e(ni(t))})))((t=>{let i=wdkitData.WDKIT_URL;const[s,n]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{new URLSearchParams(window.location.search).get("page"),window.wdkit_save_snippet&&window.wdkit_save_snippet.includes("browse")?n(!0):n(!1)}),[]),(0,g.jsx)($t,{to:s?"/browse_snippets":"/browse",children:(0,g.jsx)("div",{className:"wkit-img-logo",children:(0,g.jsx)("img",{src:wdkitData?.wdkit_white_label?.plugin_logo?wdkitData?.wdkit_white_label?.plugin_logo:"dark"==t?.wdkit_dark_mode?i+"assets/images/svg/logo/wdkit-dark-logo.svg":i+"assets/images/svg/logo/wdkit-light-logo.svg",alt:(0,a.__)("WDesignKit Logo","wdesignkit"),className:"wkit-logo",draggable:"false"})})})}));let oi=new AbortController;const di=Ya((e=>({wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_dark_mode:t=>e(ni(t))})))((t=>(0,g.jsx)(e.Fragment,{children:(0,g.jsx)("div",{className:"wdkit-theme-mode-button",onClick:()=>(async()=>{const e=document.getElementById("wdesignkit-app-dashboard");if(e){oi&&oi.abort(),oi=new AbortController;let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","wdkit_dark_mode"),"light"==t?.wdkit_dark_mode?(e.classList.add("wdkit-dark-mode"),t.wdkit_set_dark_mode("dark"),a.append("dark_mode","dark")):"dark"==t?.wdkit_dark_mode&&(e.classList.remove("wdkit-dark-mode"),t.wdkit_set_dark_mode("light"),a.append("dark_mode","light")),await s().post(wdkitData.ajax_url,a,{signal:oi.signal}).catch((e=>{s().isCancel(e)}))}})(),children:(0,g.jsx)("i",{className:"dark"==t?.wdkit_dark_mode?"wdkit-i-light-mode":"wdkit-i-dark-mode"})})}))),ci=({notifyCount:e=0})=>wdkitData?.wdkit_white_label?.help_link?null:(0,g.jsx)("a",{className:"wkit-notify-icon-cover",href:wdkitData.wdkit_server_url+"admin/notification",target:"_blank",rel:"noopener noreferrer",children:(0,g.jsxs)("div",{className:"wkit-notification-icon",children:[(0,g.jsx)("i",{className:"wdkit-i-notification"}),e>0&&(0,g.jsx)("span",{className:"wkit-unread-notification"})]})}),pi=()=>{let e=pe().pathname.split("/");return!(e.includes("widget-listing")&&e.includes("builder")||e.includes("download")||e.includes("theplus_popup")||e.includes("login-api")||e.includes("login")||e.includes("signup")||e.includes("forgot_password")||e.includes("import-kit")||e.includes("preset"))},mi=({border:e})=>(0,g.jsx)("div",{className:"wkit-content-loader",children:(0,g.jsx)("div",{className:"wb-contentLoader-circle "+(e?"wdkit-secondary-loader":"")})});window.wdkit_editor=wdkitData.use_editor;const ui=t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)(!1),[l,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)(!1),[u,h]=(0,e.useState)(!1),[w,_]=(0,e.useState)("/preset/12570"),[f,k]=(0,e.useState)([]);let b=pe();ue();let x=b.pathname.split("/");wdkitData.WDKIT_URL;let v=t?.wdkit_meta?.notification?.Unread>0?t.wdkit_meta.notification.Unread:"";(0,e.useEffect)((()=>{if(window.wdkit_save_snippet&&Array.isArray(window.wdkit_save_snippet)&&k(window.wdkit_save_snippet),x.includes("preset")){let e=window.location.hash.split("#");_(e[1]),c(!0)}}),[]),(0,e.useEffect)((()=>{let e=[],a=[];s(!1),r(!1),o(!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&&r(!0)),t?.wdkit_meta?.Setting?.code_snippet&&o(!0))}),[t?.wdkit_meta?.Setting]);const y=[{parent_name:(0,a.__)("Presets","wdesignkit"),path_includes:["preset"],parent_link:w,type:"popup"},{parent_name:(0,a.__)("Templates","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-templates"}),path_includes:["browse","my_uploaded"],parent_link:"/browse",type:f.length>0?"snippet":"all",dependency:"templates",child_content:[{child_name:(0,a.__)("Browse Templates","wdesignkit"),child_dependency:["browse"],condition:!0,child_link:"/browse"},{child_name:(0,a.__)("My Templates","wdesignkit"),child_dependency:["my_uploaded"],condition:!0,child_link:"/my_uploaded"}]},{parent_name:(0,a.__)("Widgets","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-widgets"}),path_includes:["widget-browse","widget-listing"],parent_link:"/widget-browse",type:f.length>0?"snippet":"wdkit",dependency:"builders",child_content:[{child_name:(0,a.__)("Browse Widgets","wdesignkit"),child_dependency:["widget-browse"],condition:!0,child_link:"/widget-browse"},{child_name:(0,a.__)("My Widgets","wdesignkit"),child_dependency:["widget-listing"],condition:!0,child_link:"/widget-listing"}]},{parent_name:(0,a.__)("Snippets","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-code-snippet"}),path_includes:["browse_snippets","mysnippet","snippet-kit"],parent_link:"/browse_snippets",type:"wdkit",dependency:"snippet",child_content:[{child_name:(0,a.__)("Browse Snippets","wdesignkit"),child_dependency:["browse_snippets"],condition:!0,child_link:"/browse_snippets"},{child_name:(0,a.__)("My Snippet","wdesignkit"),child_dependency:["mysnippet"],condition:!0,child_link:"/mysnippet"}]},{parent_name:(0,a.__)("Save Template","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-save"}),path_includes:["save_template"],parent_link:"/save_template",type:"popup",dependency:"templates"},{parent_name:(0,a.__)("Save Snippet","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-save"}),path_includes:["save_snippets"],parent_link:"/save_snippets",type:f.includes("save_snippet")?"wdkit":"none"},{parent_name:(0,a.__)("Workspace","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-workspace"}),path_includes:["manage_workspace","share_with_me"],parent_link:"/manage_workspace",type:f.length>0?"snippet":"wdkit",dependency:"all",child_content:[{child_name:(0,a.__)("Manage Workspace","wdesignkit"),child_dependency:["manage_workspace"],condition:!0,child_link:"/manage_workspace"},{child_name:(0,a.__)("Shared with Me","wdesignkit"),child_dependency:["share_with_me"],condition:!0,child_link:"share_with_me"}]},{parent_name:(0,a.__)("Settings","wdesignkit"),parent_svg:(0,g.jsx)("i",{className:"wdkit-i-settings"}),path_includes:["activate","settings"],parent_link:"/settings",type:f.length>0?"snippet":"wdkit",child_content:[{child_name:(0,a.__)("Manage Licence","wdesignkit"),child_dependency:["activate"],condition:!wdkitData?.wdkit_white_label?.licence_tab,child_link:"/activate"},{child_name:(0,a.__)("General Settings","wdesignkit"),child_dependency:["settings"],condition:!0,child_link:"/settings"}]}],j=e=>"all"==e?!!(n||i||l):"templates"==e?n:"builders"==e?i:"snippet"!=e||l;if(pi())return(0,g.jsxs)("div",{className:"wkit-left-side",children:[(0,g.jsx)(li,{type:"desktop-menu"}),(0,g.jsxs)("div",{className:"wdkit-inner-right-side-menu",children:[Object.values(y).filter((e=>(!b.pathname.includes("/theme/builder")||e.parent_name!==(0,a.__)("Templates","wdesignkit")&&e.parent_name!==(0,a.__)("Save Template","wdesignkit"))&&(e?.path_includes.includes("preset")?!!d&&e:"all"==e.type||wdkitData.use_editor==e.type||"wdkit"!=wdkitData.use_editor&&"popup"==e.type?e:void 0)))?.map(((e,t)=>(0,g.jsx)("div",{className:"menu-wrapper",children:(0,g.jsx)("ul",{children:(0,g.jsxs)("div",{className:"wkit-submenu-container "+(j(e.dependency)?"":"wkit-disable-submenu"),children:[!j(e.dependency)&&(0,g.jsx)("span",{className:"wkit-disable-menu-tooltip",children:"Feature Disabled. Enable from Settings Panel."}),(0,g.jsxs)("li",{className:"wkit-menu "+(e.path_includes.some((e=>x.includes(e)))?"active":""),children:[(0,g.jsxs)($t,{to:e.parent_link,className:j(e.dependency)?"wkit-menu-dp-header":"wkit-menu-dp-header wkit-disable-menu-feature",children:[e.parent_svg,(0,g.jsx)("span",{className:"wdkit-menu-text-label",children:e.parent_name}),e.child_content&&(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),"Save Template"!==e?.parent_name&&e?.child_content&&(0,g.jsx)("div",{className:"wdkit-submenu",children:(0,g.jsx)("div",{className:"wdkit-submenu-inner-content",children:e?.child_content&&e?.child_content.map(((e,t)=>{if(e.condition)return(0,g.jsx)($t,{className:"wdkit-submenu-link "+(x.includes(e.child_dependency[0])||"browse_snippets"===e.child_dependency[0]&&x.includes("snippet-kit")?"wdkit-active-submenu":""),to:e.child_link,children:(0,g.jsx)("span",{children:e.child_name})},t)}))})})]})]})})},t))),(0,g.jsxs)("div",{className:"wkit-login-signup-with-notify",children:[p()?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(ci,{notifyCount:v,type:"navigation-menu"}),(0,g.jsxs)("div",{className:"wkit-user-profile-cover",children:[t.wdkit_meta?.userinfo?(0,g.jsx)("div",{className:"wkit-user-circle-profile",children:(0,g.jsx)("img",{src:t.wdkit_meta?.userinfo?.user_profile,alt:"profile Pic",className:"wkit-user-profile-img",draggable:"false"})}):(0,g.jsx)("div",{className:"wkit-inner-logo-skeleton"}),(0,g.jsx)("div",{className:"wkit-user-dropdown-new",children:(0,g.jsx)("div",{className:"wkit-user-dropdown-inner "+(wdkitData?.wdkit_white_label?.help_link?"wkit-wl-use-info":""),children:(0,g.jsx)("div",{className:"wkit-user-dropdown-navs",children:(0,g.jsxs)("ul",{className:"wkit-user-dropdown-link-inner",children:[!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("li",{className:"wkit-user-dropdown-link",children:(0,g.jsx)("a",{href:wdkitData.wdkit_server_url+"admin/profile",target:"_blank",className:"wkit-user-server-links",children:(0,g.jsx)("span",{className:"wkit-user-link-name",children:(0,a.__)("Manage Profile","wdesignkit")})})}),(0,g.jsx)("li",{className:"wkit-user-dropdown-link",children:u?(0,g.jsx)("div",{className:"wkit-user-server-links wdkit-loader-container",children:(0,g.jsx)("span",{className:"wkit-user-link-name",children:(0,g.jsx)(mi,{border:"black"})})}):(0,g.jsx)("div",{onClick:e=>{(async()=>{h(!0),await m(),h(!1),t.wdkit_set_notification({title:(0,a.__)("Logout Complete!","wdesignkit"),desc:(0,a.__)("You’ve been signed out. Remember your credentials for your next login.","wdesignkit")})})()},className:"wkit-user-server-links",children:(0,g.jsx)("span",{className:"wkit-user-link-name",children:(0,a.__)("Logout","wdesignkit")})})})]})})})})]})]}):(0,g.jsxs)("div",{className:"wdkit-login-signUp-btn-cover",children:[(0,g.jsx)($t,{to:"/login",className:"wdkit-trsprnt-btn",children:(0,a.__)("Login","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:wdkitData.wdkit_server_url+"pricing",target:"_blank",className:"wkit-pink-btn-class wdkit-get-started-btn",children:(0,a.__)("Get Started","wdesignkit")})]}),(0,g.jsx)(di,{})]})]})]})},hi=()=>(0,g.jsxs)("div",{className:"wkit-select-main",children:[(0,g.jsx)("div",{className:"wkit-skeleton-heading"}),(0,g.jsxs)("div",{className:"wkit-sekeleton-template",children:[(0,g.jsxs)("div",{className:"wkit-skeleton-col",children:[(0,g.jsx)("div",{className:"kit-field-wrap1",children:(0,g.jsx)("div",{className:"wkit-input-skeleton",children:(0,g.jsx)("div",{className:"wkit-skeleton-line"})})}),(0,g.jsx)("div",{className:"kit-field-wrap1",children:(0,g.jsx)("div",{className:"wkit-input-skeleton",children:(0,g.jsx)("div",{className:"wkit-skeleton-line"})})})]}),(0,g.jsxs)("div",{className:"wkit-skeleton-col",children:[(0,g.jsx)("div",{className:"kit-field-wrap1",children:(0,g.jsx)("div",{className:"wkit-input-skeleton",children:(0,g.jsx)("div",{className:"wkit-skeleton-line"})})}),(0,g.jsx)("div",{className:"kit-field-wrap1",children:(0,g.jsx)("div",{className:"wkit-input-skeleton",children:(0,g.jsx)("div",{className:"wkit-skeleton-line"})})})]})]}),(0,g.jsx)("div",{className:"wkit-skeleton-addBtn"}),(0,g.jsx)("div",{className:"wkit-skeleton-label"}),(0,g.jsx)("div",{className:"wkit-save-plugin-wrapper",children:[1,2,3,4].map(((e,t)=>(0,g.jsx)("div",{className:"wkit-plugin-list",children:(0,g.jsx)("div",{className:"kit-field-wrap1",children:(0,g.jsxs)("div",{className:"wkit-plugin-skeleton",children:[(0,g.jsx)("div",{className:"wkit-small-check-box"}),(0,g.jsx)("div",{className:"wkit-small-img-box"}),(0,g.jsx)("div",{className:"wkit-skeleton-line"})]})})},t)))}),(0,g.jsx)("div",{className:"wkit-btn-right",children:(0,g.jsx)("button",{className:"wkit-btn-skeleton"})})]}),{Fragment:gi}=wp.element,{get_userinfo:wi,form_data:_i}=wp.wkit_Helper,fi=t=>{const i=ue();if(!p())return t.wdkit_Login_Route("/save_template"),(0,g.jsx)(Se,{to:"/login"});const r=pe();var l=wdkitData.WDKIT_URL;const[o,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)("my_upload"),[h,w]=(0,e.useState)(!1),[_,f]=(0,e.useState)(""),[k,x]=(0,e.useState)(""),[v,y]=(0,e.useState)([]),[j,N]=(0,e.useState)("pagetemplate"),[$,C]=(0,e.useState)(""),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(""),[A,T]=(0,e.useState)(""),[L,M]=(0,e.useState)("loading"),[F,I]=(0,e.useState)(""),[B,O]=(0,e.useState)([]),[R,V]=(0,e.useState)(!1),[W,q]=(0,e.useState)(!1),[G,z]=(0,e.useState)(""),[H,U]=(0,e.useState)(!1),[J,K]=(0,e.useState)(!1),[Z,Y]=(0,e.useState)(""),[X,Q]=(0,e.useState)(!1),[ee,te]=(0,e.useState)(""),[ae,ie]=(0,e.useState)(""),[se,ne]=(0,e.useState)([]),[re,le]=(0,e.useState)(!1),[oe,de]=(0,e.useState)(!1),[ce,me]=(0,e.useState)({import_json:"loading",upload_images:"loading"}),[he,ge]=(0,e.useState)(!0),[we,_e]=(0,e.useState)({title:"",desc:""}),fe=(0,e.useRef)(""),ke=["studio","professional","lifetime"];(0,e.useEffect)((()=>{r.pathname&&r.pathname.search("save_template")>-1||i("/save_template")}),[]),(0,e.useEffect)((()=>{o&&Ae()}),[o]),(0,e.useEffect)((()=>{if("elementor"==window.wdkit_editor&&L?.plugin?.length>0){let e=L?.plugin.findIndex((e=>"elementor"==e.original_slug));e>-1&&D([L?.plugin[e].p_id])}}),[window.wdkit_editor,L?.plugin]),(0,e.useEffect)((()=>{r.pathname&&"/save_template/section"==r.pathname?(N("section"),w(!0)):N("pagetemplate")}),[r.pathname]),(0,e.useEffect)((()=>{""!=ae&&Ie()}),[ae]),(0,e.useEffect)((()=>{q(!0),M(t.wdkit_meta),t?.wdkit_meta?.category&&t?.wdkit_meta?.userinfo&&(I(d(t.wdkit_meta.category)),q(!1));let e=n(t?.wdkit_meta);O(e)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{if(se.length>0){let e=se.findIndex((e=>"loading"==e.status)),t=se.findIndex((e=>"fail"==e.status));if(-1==e){let e={upload_images:"done"};me((t=>({...t,...e}))),ge(!1),-1==t&&oe&&Ce()}else{let e={upload_images:"loading"};me((t=>({...t,...e}))),ge(!0)}}}),[se]);const be=e=>{const t=[];return"elementor"==window.wdkit_editor?function e(a,i=[]){if(Array.isArray(a))a.forEach((t=>e(t,i)));else if("object"==typeof a&&null!==a){if(a.url&&"string"==typeof a.url&&/\.(jpg|jpeg|png|gif|webp|mp4|mov|avi|wmv|flv|webm)$/i.test(a?.url)){var s="image";i.some((e=>"absolute"===e?.settings?._position))||(/\.(mp4|webm|ogg)$/i.test(a.url)?s="video":/\.gif$/i.test(a.url)&&(s="gif"),t.push({url:a.url,type:s,status:"loading"}))}for(const t in a)e(a[t],[...i,a])}}(e):function(e){const a=document.createElement("div");a.innerHTML=e.content;const i=a.querySelectorAll("img"),s=a.querySelectorAll("video");i.length>0&&i.forEach((e=>{if(e.src){let i=e.src?.split(".")?.includes("gif");var a;a=i?"gif":"image";let s={url:e.src,type:a,status:"loading"};t.push(s)}})),s.length>0&&s.forEach((e=>{var a;let i=null!==(a=e.querySelectorAll("source"))&&void 0!==a?a:[];if(e.poster){let a=e.poster?.split(".")?.includes("gif");type=a?"gif":"image";let i={url:e.poster,type,status:"loading"};t.push(i)}if(i.length>0)i.forEach((e=>{if(e.src){let a={url:e.src,type:"video",status:"loading"};t.push(a)}}));else if(e.src){let a={url:e.src,type:"video",status:"loading"};t.push(a)}}))}(e),t},xe=e=>{if(!e)return"";const t=e.split("/").pop();return t?t.toLowerCase().replace(/\s+/g,"-"):""},ve=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:"",r=s?.[n]?s[n]:"",l={color:[],gradient:[],typography:[],boxshadow:[],spacing:[]};return r&&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=r?.colors?.[t];a=Object.assign({},a,{id:t}),l.color.push(a)}else"GC"==e.type?(a=r?.gradient?.[t],a=Object.assign({},a,{id:t}),l.gradient.push(a)):"S"==e.type&&(a=r?.spacing?.[t],a=Object.assign({},a,{id:t}),l.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=r?.boxshadow?.[t]?r.boxshadow[t]:"")&&(a=Object.assign({},a,{id:t}),l.boxshadow.push(a));else if("globalTypo"==e.key){var a;(a=r?.typography?.[t]?r.typography[t]:"")&&(a=Object.assign({},a,{id:t}),l.typography.push(a))}}))),l},ye=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 s().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:[]}},je=async(e,a=0,i)=>{const n=xe(e.url);let r=[...i];"loading"!==r[a].status&&(r[a].status="loading",ne((e=>[...r])));let l=p(),o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","update_save_temp_image"),o.append("temp_content",e.url),o.append("content_name",n),o.append("token",l?.token),o.append("id",fe.current),o.append("user_type",t.wdkit_meta?.credits?.user_type),o.append("content_type",e.type);try{let e=await s().post(ajaxurl,o);return e.data?.data?.success?r[a].status="done":r[a].status="fail","yes"==e.data?.data?.limit_exceeded&&(r[a].limit_exceeded="yes"),ne((e=>[...r])),e}catch(e){return r[a].status="fail",ne((e=>r)),e}},Ne=async e=>{if(ke.includes(t.wdkit_meta?.credits?.user_type)&&Array.isArray(e)&&e.length>0&&e.length<3e3)for(const[t,a]of e.entries())a&&"done"!==a.status&&await je(a,t,e)},$e=async e=>{if(P(""),T(""),"new_temp"==e&&!_)return P("wkit-error-red"),void t.wdkit_set_notification({title:(0,a.__)("Enter Template Name","wdesignkit"),desc:(0,a.__)("Title can not be empty!","wdesignkit")});if(!m)return void T("wkit-error-red");V(!0);let i="",s={},n={},r="",l=[];if("gutenberg"==window.wdkit_editor){h?i=localStorage.getItem("wdkit_section"):(i=await wp.data.select("core/editor").getEditedPostContent(),r=wp.data.select("core/editor").getCurrentPostId());let e=wp.data.select("core/editor").getEditedPostAttribute("meta");null!=e&&(n=e),s={file_type:"wp_block",title:_,page_id:r,content:i,settings:n}}else if("elementor"==window.wdkit_editor){let e="";if(h)i=localStorage.getItem("wdkit_section"),i=[JSON.parse(i)];else{var o,d,c,u,g,w,f=null;if(window&&(o=window)&&o&&(d=o.elementor)&&d&&(c=d.previewView)&&c&&(u=c.el)&&u&&(g=u.firstElementChild)&&g&&(f=g),null!=f&&d&&(w=d.config)&&null!==w&&w.document)if(null!=f&&f.model)i=[f.model.toJSON({remove:["default"]})];else if(i=d.elements.toJSON({remove:["default"]}),window.elementor.documents){var k=window.elementor.documents;if(k.getCurrent()){var b=k.getCurrent();e=b&&b.config&&b.config.type?b.config.type:"",r=b.id||"",b.container&&b.container.settings&&(n=b.container.settings.toJSON({remove:["default"]}),n.post_status="publish",n.post_title=_)}}}s={file_type:"elementor",title:_,page_id:r,content:i,el_type:e,settings:n}}if(!i||!s||Array.isArray(i)&&0==i.length)return V(!1),Q(!1),ie(""),void t.wdkit_set_notification({title:(0,a.__)("Page Content is empty","wdesignkit"),desc:(0,a.__)("Page should have some content","wdesignkit")});if(re){let e={import_json:"loading",upload_images:"loading"};me((t=>({...t,...e}))),de(!0),ie("")}if("new_temp"==e){var x={title:_,type_upload:m,template_type:j,wp_post_type:wdkitData.post_type||"page",category:$,data:JSON.stringify(s),plugins:JSON.stringify(S),page_id:r};if("elementor"==window.wdkit_editor){if(i)var v=await ye(i);else v="";x=Object.assign({},x,{global_data:v?JSON.stringify(v):JSON.stringify([])})}else if("gutenberg"==window.wdkit_editor){let e=await ve(i);x=Object.assign({},x,{global_data:e?JSON.stringify(e):JSON.stringify([])})}l=be(s);var y=await(async e=>{if(!e)return;let t="",a=p();a&&a.user_email&&(t=a.user_email);const i=new URLSearchParams(window.location.search),s={};Array.from(i?.entries()).map((([e,t])=>{s[e]=t}));let n={type:"save_template",email:t,builder:window.wdkit_editor,post_id:s?.post?s.post:""};return n=Object.assign({},n,e),await _i(n).then((e=>e))})(x)}else if("replace_temp"==e){let e=Z?.title?Z.title:"",t=Object.assign({},s,{title:e});if(l=be(s),y=await De(JSON.stringify(t),l),fe.current=y?.data?.id,re&&l.length>0){let e={import_json:"done",upload_images:"loading"};me((t=>({...t,...e}))),ne((e=>[...e,...l])),Ne(l)}return void V(!1)}let N=y.id?y.id:"",C=y.editpage?y.editpage:"";if(z(C),y&&y.success)if(await wi().then((e=>t.wdkit_set_meta(e.data))),re&&l.length>0){fe.current=N;let e={import_json:"done",upload_images:"loading"};me((t=>({...t,...e}))),ne((e=>[...e,...l])),Ne(l)}else Ce();else if(re){let e={import_json:"fail",upload_images:"fail"};me((t=>({...t,...e}))),de(!1)}V(!1)},Ce=()=>{ie("success_popup"),setTimeout((()=>{ie(""),ne([]),t.wdkit_set_temp_meta({...t.wdkit_temp_meta,template_tab:j}),i("/my_uploaded")}),5e3)},De=async(e,a)=>{const i=new URLSearchParams(window.location.search),s={};Array.from(i?.entries()).map((([e,t])=>{s[e]=t}));var n={type:"update_template",token:p().token,data:e,id:Z.id,post_id:s?.post?s.post:""};if("elementor"==window.wdkit_editor){if(JSON.parse(e).content)var r=await ye(JSON.parse(e).content);else r="";n=Object.assign({},n,{global_data:r?JSON.stringify(r):JSON.stringify([])})}else if("gutenberg"==window.wdkit_editor){let t=await ve(JSON.parse(e).content);n=Object.assign({},n,{global_data:t?JSON.stringify(t):JSON.stringify([])})}return n=Object.assign({},n),await _i(n).then((e=>{if(e?.data?.success)return re&&Array.isArray(a)&&0!=a.length||t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description}),!re||Array.isArray(a)&&0!=a.length||de(!1),Q(!1),ie(""),e;if(re){let e={import_json:"fail",upload_images:"fail"};me((t=>({...t,...e}))),de(!1)}return t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description}),Q(!1),ie(""),e}))},Ee=e=>{const{value:t,checked:a}=e.target;D(a?[...S,t]:S.filter((e=>e!==t)))},Pe=()=>(0,g.jsxs)("div",{className:"wkit-successfully-imported",children:[(0,g.jsx)("img",{className:"wdkit-success-img",src:l+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsxs)("div",{className:"wkit-text-center",children:[(0,g.jsx)("div",{className:"wkit-success-heading wkit-get-success",children:(0,a.__)("Successfully Uploaded","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-desc",children:(0,a.__)("To Edit fully visit WdesignKit admin and make it live.","wdesignkit")})]}),fe.current&&(0,g.jsx)("button",{type:"submit",className:"wkit-save-btn wkit-btn-class",children:(0,g.jsx)("a",{href:G,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Edit","wdesignkit")})})]}),Ae=async()=>{te(k),Y(""),U(!0),K(!0);let e=p(),a={type:"find_template",token:e?.token,u_id:t?.wdkit_meta?.userinfo?.id,search:k,builder:window.wdkit_editor,parpage:24};await _i(a).then((e=>{if(e?.data?.success){let t=e?.data?.posts;return t&&y(e?.data?.posts),e}return e})),U(!1)},Te=()=>(0,g.jsxs)("div",{className:"wkit-tab-setting-wrap",children:[(0,g.jsx)("div",{onClick:()=>c(!1),className:"wkit-tab-item "+(o?"":"wdkit-active"),children:(0,a.__)("New Template","wdesignkit")}),(0,g.jsx)("div",{onClick:()=>c(!0),className:"wkit-tab-item "+(o?"wdkit-active":""),children:(0,a.__)("Existing Template","wdesignkit")})]}),Le=()=>{let e="";return t?.wdkit_meta?.builder&&Z.post_builder&&Object.entries(t?.wdkit_meta?.builder).forEach((([t,a])=>{a.p_id==Number(Z.post_builder)&&(e=a.plugin_icon)})),(0,g.jsxs)("div",{className:"wdkit-selected-template-content",children:[(0,g.jsxs)("span",{className:"wdkit-selected-template-img",children:[(0,g.jsx)("img",{className:"wdkit-selected-template-img",src:Z.post_image,alt:"template-img"}),(0,g.jsx)("img",{className:"wdkit-selected-template-dummy-img",src:l+"assets/images/wkit-dummy-bg.png",alt:"template-img"})]}),(0,g.jsxs)("div",{className:"wdkit-selected-template-info",children:[(0,g.jsxs)("div",{className:"wdkit-select-temp-detail",children:[(0,g.jsx)("img",{src:e,alt:"builder-icon",className:"wdkit-select-temp-icon"}),(0,g.jsx)("span",{className:"wdkit-select-temp-name",children:Z.title})]}),Oe()]})]})},Me=()=>(0,g.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,g.jsx)("button",{className:"wkit-popup-confirm wkit-outer-btn-class",onClick:()=>{ie("")},children:(0,g.jsx)("span",{children:(0,a.__)("No","wdesignkit")})}),X?(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",children:b()}):(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>{Q(!0),$e("replace_temp")},children:(0,g.jsx)("span",{children:(0,a.__)("Yes","wdesignkit")})})]}),Fe=()=>o?(0,g.jsx)("div",{className:"wkit-replace-button",children:(0,g.jsx)("button",{className:"wkit-btn-class",disabled:!Z,onClick:()=>{ie("replace_temp")},children:(0,a.__)("Replace","wdesignkit")})}):R?(0,g.jsx)("button",{type:"button",className:"wkit-save-btn wkit-btn-class",children:b()}):(0,g.jsx)("button",{type:"button",className:(_.trim()?"":"wkit-disable-btn-class")+" wkit-save-btn wkit-btn-class",disabled:!_.trim(),onClick:()=>$e("new_temp"),children:(0,a.__)("Save","wdesignkit")}),Ie=()=>{let e={...we};"add_workspace"==ae?(e.title=(0,a.__)("Create Workspace","wdesignkit"),e.desc=(0,a.__)("Make changes to your profile here. Click save when you're done.","wdesignkit")):"replace_temp"==ae?(e.title=(0,a.__)("Replace Template","wdesignkit"),e.desc=(0,a.__)("Are you sure you want to replace this template ?","wdesignkit")):(e.title="",e.desc=""),_e(e)},Oe=()=>(0,g.jsxs)("div",{className:"wdkit-save-temp-image-upload-item",children:[(0,a.__)("Upload Image on server","wdesignkit"),ke.includes(t.wdkit_meta?.credits?.user_type)?(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",htmlFor:"uploadSaveContent",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>le(e.target.checked),checked:re,id:"uploadSaveContent"}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})}):(0,g.jsxs)("div",{className:"wdkit-image-upload-tolltip",children:[(0,g.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M23.4001 8.60399C23.4001 9.41758 22.8721 10.1376 22.3945 10.4256L21.5809 16.9392C21.5329 17.3208 21.2449 17.6568 20.8609 17.8008C15.2089 19.764 9.07932 19.764 3.47289 17.8008C3.0913 17.7048 2.80328 17.3208 2.75529 16.9392L1.94172 10.4256C1.1737 10.1856 0.600098 9.46559 0.600098 8.60399C0.600098 7.55039 1.46172 6.68878 2.51529 6.68878C3.5689 6.68878 4.43289 7.55039 4.43289 8.60399C4.43289 8.93999 4.3849 9.22799 4.24088 9.46559L6.01211 11.2392C6.3961 11.6688 7.06568 11.6688 7.49769 11.2392L10.7065 8.03039C10.3705 7.64638 10.1329 7.16638 10.1329 6.6408C10.1329 5.58719 10.9945 4.72559 12.0481 4.72559C13.1017 4.72559 13.9633 5.58719 13.9633 6.6408C13.9633 7.21438 13.7233 7.69438 13.3897 8.03039L16.5985 11.2392C16.9825 11.6688 17.6521 11.6688 18.0841 11.2392L19.8073 9.51359C19.6633 9.22799 19.5673 8.93999 19.5673 8.60399C19.5673 7.55039 20.4313 6.68878 21.4849 6.68878C22.5385 6.68878 23.4001 7.55039 23.4001 8.60399Z",fill:"#FFC100"})}),(0,g.jsx)("span",{className:"wdkit-image-upload-user-msg",children:(0,a.__)("Only lifetime, Professional & studio users can access this feature.","wdesignkit")})]})]});return(0,g.jsxs)("div",{className:"wdkit-save-temp-page",children:[W?(0,g.jsx)("div",{className:"wkit-save-skeleton",children:(0,g.jsx)(hi,{})}):re&&oe?(0,g.jsxs)("div",{className:"wdkit-upload-content-wrap",children:[(0,g.jsxs)("div",{className:"wdkit-upload-content-header",children:[(0,g.jsx)("span",{className:"wdkit-upload-content-header-title",children:(0,a.__)("Uploading Processing...","wdesignkit")}),(0,g.jsx)("span",{className:"wdkit-upload-content-header-desc",children:(0,a.__)("Our system will import your selected templates images soon.","wdesignkit")})]}),(0,g.jsx)("div",{className:"wdkit-upload-content-wrapper",children:(()=>{const e=(e,t)=>"loading"==e?"parent"==t?(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"done"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"});return(0,g.jsxs)("div",{className:"wdkit-upload-content-parent",children:[(0,g.jsxs)("div",{className:"wdkit-upload-content-item",children:[e(ce.import_json,"parent"),(0,a.__)("Importing JSON Template","wdesignkit")]}),(0,g.jsxs)("div",{className:"wdkit-upload-content-item",children:[e(ce.upload_images,"parent"),(0,a.__)("Templates Images Uploading","wdesignkit")]}),(0,g.jsx)("div",{className:"wdkit-upload-content-list",children:(0,g.jsx)("div",{className:"wdkit-upload-content",children:se.map(((t,i)=>(0,g.jsxs)("div",{className:"wdkit-upload-content-item",children:[e(t.status),xe(t.url),"fail"==t.status&&("yes"==t.limit_exceeded?(0,g.jsxs)("div",{className:"wdkit-img-limit-wrapper",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wdkit-img-limit-tooltip",children:(0,a.__)("Image limit exceeded","wdesignkit")})]}):(0,g.jsx)("span",{className:"wdkit-upload-content-retry",onClick:()=>Ne(se),children:(0,a.__)("Retry","wdesignkit")}))]},i)))})})]})})()}),(0,g.jsx)("div",{className:"wdkit-upload-content-footer",children:(0,g.jsx)("button",{type:"button",className:(he?"wdkit-disable-btn":"")+" wkit-save-btn wkit-btn-class",disabled:he,onClick:()=>Ce(),children:(0,a.__)("Save","wdesignkit")})})]}):(0,g.jsxs)("div",{className:"wkit-select-main",children:[(0,g.jsx)(Te,{}),(0,g.jsx)("div",{style:{display:o?"":"none"},children:(0,g.jsx)(gi,{children:(0,g.jsxs)("div",{className:"wkit-existing-template",children:[(0,g.jsxs)("div",{className:"wkit-search-template",children:[(0,g.jsxs)("div",{className:"wdkit-save-temp-search-cover",children:[(0,g.jsxs)("div",{className:"wkit-search-template-input",children:[(0,g.jsx)("i",{className:"wdkit-i-search wdkit-input-icon"}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Search...","wdesignkit"),className:"wkit-existing-temp-search",value:k,onChange:e=>x(e.target.value),onKeyDown:e=>{"Enter"==e.key&&Ae()}})]}),H?(0,g.jsx)("button",{className:"wkit-find-template-btn wkit-btn-class",children:b()}):(0,g.jsx)("button",{type:"submit",className:"wkit-find-template-btn wkit-btn-class",onClick:()=>{Ae()},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]}),J&&(0,g.jsx)(gi,{children:(0,g.jsx)("div",{className:"wkit-find-temp-list-content",children:(0,g.jsxs)("ul",{className:"wkit-find-temp-list",children:[(0,g.jsx)("span",{className:"wkit-Flist-notice",children:ee?`Search "${ee}"`:(0,a.__)("Recently added","wdesignkit")}),0==H?(0,g.jsx)(gi,{children:v?.length>0?v.map((e=>(0,g.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];Y(e)}else Y(""),t.wdkit_set_notification({title:(0,a.__)("Template Not Found","wdesignkit"),desc:(0,a.__)("selected Template is Not Found","wdesignkit")})}})(e.id)},children:[(0,g.jsxs)("div",{className:"wkit-existing-temp-detail",children:[(0,g.jsx)("img",{src:e.image_url,alt:e.title}),(0,g.jsx)("span",{className:"section-page-post-type",children:e.title})]}),(0,g.jsxs)("div",{className:"wkit-existing-temp-meta",children:[(0,g.jsx)("div",{className:"wkit-temp-meta-content",children:"section"===e.type?(0,g.jsx)("i",{className:"wdkit-i-save-template"}):"pagetemplate"===e.type?(0,g.jsx)("i",{className:"wdkit-i-templates"}):(0,g.jsx)("i",{className:"wdkit-i-template-kit"})}),(0,g.jsx)("div",{className:"wkit-temp-meta-content",children:"publish"===e.post_status?(0,g.jsx)("i",{className:"wdkit-i-wb-globe"}):(0,g.jsx)("i",{className:"wdkit-i-lock"})})]})]},e.id))):(0,g.jsxs)("div",{className:"wkit-no-data",children:[(0,g.jsx)("img",{src:l+"assets/images/jpg/not-found-bell.gif",alt:"no-data"}),(0,g.jsx)("span",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")})]})}):b()]})})})]}),(0,g.jsx)("div",{className:"wkit-select-template",children:Z?(0,g.jsxs)("div",{className:"wkit-selected-template-content",children:[Le(),(0,g.jsx)("div",{className:"wdkit-save-footer-btn",children:(0,g.jsx)("div",{className:"wkit-btn-right",children:Fe()})}),(0,g.jsx)("div",{className:"wkit-quickedit-note",children:(0,g.jsx)("span",{children:(0,a.__)("Note: Replacing this template will erase your current design. This action is irreversible, and the old design will be permanently lost.","wdesignkit")})})]}):(0,g.jsx)("div",{className:"wkit-selected-img",children:(0,g.jsxs)("div",{className:"wdkit-temp-infograph-main",children:[(0,g.jsx)("img",{className:"wdkit-template-infograph",src:l+"assets/images/svg/select-templates-infographics.svg"}),(0,g.jsxs)("div",{className:"wdkit-temp-infograph-wrapper",children:[(0,g.jsx)("p",{className:"wdkit-temp-infograph-txt",children:(0,a.__)("Please select the template you want to replace","wdesignkit")}),Oe()]})]})})})]})})}),(0,g.jsxs)("div",{className:"wkit-save-temp-content",style:o?{display:"none"}:{},children:[(0,g.jsxs)("div",{className:"wkit-select-template",children:[(0,g.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,g.jsxs)("div",{className:"kit-field-wrap",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Template Name","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Template Name","wdesignkit"),className:"wkit-input-filed "+E,value:_,onChange:e=>{(e.target.value.length<=100||(t.wdkit_set_notification({title:(0,a.__)("Limit Reached","wdesignkit"),desc:(0,a.__)("Limit Reached","wdesignkit")}),0))&&f(e.target.value)}})]}),(0,g.jsxs)("div",{className:"kit-field-wrap",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Select Workspace","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,g.jsxs)("select",{className:"wkit-select "+A,value:m,onChange:e=>u(e.target.value),children:[(0,g.jsx)("option",{value:"my_upload",children:(0,a.__)("My Upload","wdesignkit")}),(0,g.jsx)("optgroup",{className:"wdkit-save-temp-optgroup",label:(0,a.__)("My Workspace","wdesignkit"),children:B&&B.map(((e,t)=>(0,g.jsx)("option",{value:e.w_id,children:e.work_title},t)))})]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]})]})]}),(0,g.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,g.jsxs)("div",{className:"kit-field-wrap",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Template Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,g.jsxs)("select",{className:"wkit-select "+A,value:j,onChange:e=>{N(e.target.value),C("")},children:[(0,g.jsx)("option",{value:"pagetemplate",children:(0,a.__)("Page Template","wdesignkit")}),(0,g.jsx)("option",{value:"section",children:(0,a.__)("Section","wdesignkit")})]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]})]}),(0,g.jsxs)("div",{className:"kit-field-wrap",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Category","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-saveTemplate-dowpDown",children:[(0,g.jsxs)("select",{className:"wkit-select",value:$,onChange:e=>C(e.target.value),children:[(0,g.jsx)("option",{value:"",children:(0,a.__)("Select Category","wdesignkit")}),"pagetemplate"==j&&F&&Object.entries(F["Page Templates"]).map((([e,t],a)=>(0,g.jsx)("option",{value:t.term_id,children:t.term_name},a))),"section"==j&&F&&Object.entries(F.Sections).map((([e,t],a)=>(0,g.jsx)("option",{value:t.term_id,children:t.term_name},a)))]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-save-temp-image-upload",children:[Oe(),(0,g.jsx)("div",{style:{display:"none"},children:(0,g.jsxs)("a",{className:"wkit-workspace",onClick:()=>{ie("add_workspace")},children:[(0,g.jsx)("i",{className:"wdkit-i-plus-circle"}),(0,a.__)("Add New Workspace","wdesignkit")]})})]}),L?.plugin?.length>0?(0,g.jsx)(gi,{children:(0,g.jsxs)("div",{className:"wdkit-save-plugin-used",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Required Plugins","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-save-plugin-wrapper",children:Object.values(L?.plugin).map(((e,t)=>{if("wdkit"==window.wdkit_editor)return(0,g.jsxs)("div",{className:"wkit-plugin-list",children:[(0,g.jsx)("input",{type:"checkbox",id:"plugin_"+e.p_id,name:"selectPlugin",className:"wdkit-save-check",value:e.p_id,onChange:Ee}),(0,g.jsxs)("label",{htmlFor:"plugin_"+e.p_id,children:[(0,g.jsx)("div",{className:"wkit-plugin-image",children:(0,g.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})}),(0,g.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,g.jsxs)("div",{className:"wkit-plugin-list",children:[(0,g.jsx)("input",{type:"checkbox",id:"plugin_"+e.p_id,name:"selectPlugin",className:"wdkit-save-check",value:e.p_id,onChange:Ee,checked:!!S.includes(e.p_id)||null}),(0,g.jsxs)("label",{htmlFor:"plugin_"+e.p_id,children:[(0,g.jsx)("div",{className:"wkit-plugin-image",children:(0,g.jsx)("img",{src:e.plugin_icon?e.plugin_icon:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})}),(0,g.jsx)("div",{className:"wkit-plugin-text",children:e.plugin_name})]})]},t):void 0}))})]})}):0==L?.plugin?.length?(0,g.jsx)("div",{className:"wkit-no-template-data",children:(0,a.__)("No Plugin List","wdesignkit")}):(0,g.jsx)("div",{className:"wkit-save-skeleton",children:(0,g.jsx)(hi,{})})]}),!o&&(0,g.jsx)("div",{className:"wdkit-save-footer-btn wdkit-pop-save-btn",children:(0,g.jsx)("div",{className:"wkit-btn-right",children:Fe()})})]}),""!=ae&&(0,g.jsx)(Be,{title:we.title,desc:we.desc,body:"replace_temp"==ae?(0,g.jsx)(Me,{}):"add_workspace"==ae?(0,g.jsx)(Ht,{wdkit_meta:t?.wdkit_meta,wdkit_set_notification:e=>t.wdkit_set_notification(e),close_popup:()=>ie(""),wdkit_set_meta:e=>t.wdkit_set_meta(e)}):"success_popup"==ae?(0,g.jsx)(Pe,{}):void 0,close_popup:()=>{const e=ae;ie(""),"success_popup"===e&&(t.wdkit_set_temp_meta({...t.wdkit_temp_meta,template_tab:j}),i("/my_uploaded"))}})]})},ki={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",headingType:"normal",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:"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:"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:"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:"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:"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:"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:"1",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:""}]}}},bi={text:xi("text","2XXLlqlzKkw"),number:xi("number",""),wysiwyg:xi("wysiwyg",""),code:xi("code",""),hidden:xi("hidden",""),choose:xi("choose","Kl4Qf1vy4bs"),datetime:xi("datetime",""),gallery:xi("gallery",""),media:xi("media","F4r3cCPy7jA"),iconscontrol:xi("iconscontrol","T2kJk41q1W0"),background:xi("background",""),border:xi("border",""),boxshadow:xi("boxshadow",""),textshadow:xi("textshadow",""),color:xi("color",""),cssfilter:xi("cssfilter",""),dimension:xi("dimension","yc6JG9ldy3M"),typography:xi("typography","N9-0IYLyeho"),repeater:xi("repeater",""),heading:xi("heading",""),divider:xi("divider",""),rawhtml:xi("rawhtml",""),slider:xi("slider","xrAdPPeJpYk"),select:xi("select","YeCPqUMx3Cw"),selecttemplate:xi("selecttemplate",""),cpt:xi("cpt",""),product_listing:xi("product_listing",""),taxonomy:xi("taxonomy",""),select2:xi("select2",""),textarea:xi("textarea",""),url:xi("url","wOlHlJFb4hk"),switcher:xi("switcher","mANZ30J5-2w"),popover:xi("popover",""),normalhover:xi("normalhover","SFOifoHKlrU"),icon:xi("icon",""),headingtags:xi("headingtags",""),gradientcolor:xi("gradientcolor",""),sortable:xi("sortable",""),tab:xi("tab",""),toggle:xi("toggle",""),alert:xi("alert",""),notice:xi("notice",""),deprecatednotice:xi("deprecatednotice",""),svg:xi("svg",""),align:xi("align",""),query:xi("query","")};function xi(e,t=""){return{videoLink:t?`https://www.youtube.com/watch?v=${t}`:"",document:`${wdkitData.WDKIT_DOC_URL}create-custom-elementor-widget-using-free-wdesignkit-widget-builder/#wkit-${e}-controller`}}const vi={"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:yi}=wp.element,ji=e=>({type:"ADD_LAYOUT_ARRAY",data:e}),Ni=e=>({type:"ADD_WIDGET_ARRAY",data:e}),$i=e=>({type:"ADD_EDITOR_ARRAY",data:e}),Ci=e=>({type:"Editor_code",data:e}),Si=e=>({type:"ADD_CONTROLLER",data:e}),Di=e=>({type:"ADD_SECTION",data:e}),Ei=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode,widgetdata:e})),(e=>({addTowidgethandler:t=>e(Ni(t)),wdkit_set_notification:t=>e(si(t)),wdkit_set_meta:t=>e(ti(t))})))((t=>{const i=ue(),n=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},r={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"}]}},o={"E-icons":"eicon-code",Themify:"ti-shield","Font-Awesome":"fas fa-yin-yang"};let d={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 c={"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:""}]},m=()=>{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")},[u,h]=(0,e.useState)(wdkitData.WDKIT_URL),[w,_]=(0,e.useState)(wdkitData.WDKIT_URL),[f,k]=(0,e.useState)(""),[b,x]=(0,e.useState)(""),[v,y]=(0,e.useState)(""),[j,N]=(0,e.useState)(""),[$,C]=(0,e.useState)("eicon-code"),[S,D]=(0,e.useState)(""),[E,P]=(0,e.useState)(t?.BuilderArray[0]?t?.BuilderArray[0]:""),[A,T]=(0,e.useState)(!0),[L,M]=(0,e.useState)(""),[F,I]=(0,e.useState)(""),[B,O]=(0,e.useState)(t?.widgetdata?.WcardData?.widgetdata?.widget_version),[R,V]=(0,e.useState)(t.quickeditName),[W,q]=(0,e.useState)([""]),[G,z]=(0,e.useState)(!1),[H,U]=(0,e.useState)("duplicate"),[J,K]=(0,e.useState)(""),[Z,Y]=(0,e.useState)(""),[X,Q]=(0,e.useState)(!1),[ee,te]=(0,e.useState)("loading"),[ae,ie]=(0,e.useState)(r?.[E]?.icons[0]),[se,ne]=(0,e.useState)(!1),[re,le]=(0,e.useState)(""),[oe,de]=(0,e.useState)(!1);let ce=n();const pe=(0,e.useRef)(""),me=t.plugin_detail,he=me.findIndex((e=>e.label===E)),ge=me.findIndex((e=>e.label===J));let we=e=>"gutenberg"===e?"Nexter":e;(0,e.useEffect)((()=>{"server"==t.quickediteditMeta?M("plugin_server"):M("plugin")}),[t.quickediteditMeta]),(0,e.useEffect)((()=>{if(t.BuilderArray&&Array.isArray(t.BuilderArray)){const e=t.BuilderArray.filter((e=>e!==t?.quickediteditType));if(1===e.length&&!J){const t=e[0];K(t),C(r[t].defaultValue),ie(r[t].icons[0]),de(!0)}}}),[t.BuilderArray,t.quickediteditType,J]);const _e=async e=>{if(!v)return document.querySelector(".dropFileErrorMessage").style.display="block",void(document.querySelector(".dropFileErrorMessage").style.color="red");z(!0),t.StartLoading();var i=document.querySelector(".wb-edit-popup")?document.querySelector(".wb-edit-popup"):"";(document.querySelector(".dropFileErrorMessage").style.display="block")&&(document.querySelector(".dropFileErrorMessage").style.display="none");if(i){var n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_import_widget"),n.append("zipName",v),await s().post(ajaxurl,n,{headers:{"content-type":"application/json"}}).then((e=>{e?.data?.success?((async e=>{if(e){let r=JSON.stringify(e.Editor_data.html),l=JSON.stringify(e.Editor_data.js),o=JSON.stringify(e.Editor_data.css),d=e.widget_data.widgetdata.widget_id,c=e.widget_data.widgetdata.name+"_"+d,p=e.widget_data.widgetdata.type;await(async e=>{const a={elementor:"elementor_builder",gutenberg:"gutenberg_builder",bricks:"bricks_builder"}[e];if(!a)return;const i=t?.wdkit_meta?.Setting?.[a];if(!1===i){const e=Object.assign({},t?.wdkit_meta?.Setting,{[a]:!0}),i=Object.assign({},t?.wdkit_meta,{Setting:e});t.wdkit_set_meta(i);let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_setting_panel"),n.append("event","set"),n.append("data",JSON.stringify(e)),await s().post(ajaxurl,n).then((e=>{e?.data?.success&&t.wdkit_set_meta(i)})).catch((e=>{console.error("Failed to update builder setting:",e),t.wdkit_set_meta(t?.wdkit_meta)}))}})(p);let m=Object.assign({},e.widget_data.widgetdata,{allow_push:!1}),u=Object.assign({},e.widget_data,{widgetdata:m});var i={CardItems:{cardData:e.section_data},WcardData:u,Editor_data:e.Editor_Link,Editor_code:{Editor_codes:[e.Editor_data]}},n="";"elementor"==p?n=await Bt("import",i,r,o,l,c,"").then((async e=>e)):"gutenberg"==p?n=Ot("import",i,r,o,l,"","").then((async e=>e)):"bricks"==p&&(n=It("import",i,r,o,l,"","").then((async e=>e))),n&&n?.api?.success?(t.wdkit_set_notification({title:(0,a.__)("Successfully Imported.","wdesignkit"),desc:(0,a.__)("Yay! Your Widget has been successfully imported.","wdesignkit")}),await setTimeout((()=>{t.UpdateData()}),1e3)):t.UpdateData()}else t.endLoading(),t.wdkit_set_notification({title:(0,a.__)("Widget import fail","wdesignkit"),desc:(0,a.__)("Widget import fail! data not get ","wdesignkit")})})(e?.data?.json),t.ClosePopup(),document.querySelector(".wb-function-call")&&document.querySelector(".wb-function-call").click(),t.wdkit_set_notification({title:(0,a.__)("Widget Imported","wdesignkit"),desc:(0,a.__)("Your widget has been imported successfully.","wdesignkit")})):(t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description}),t.ClosePopup(),t.endLoading())})).catch((e=>console.log(e)))}z(!1)},fe=(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="",N(""))},ke=(e,i)=>{if(i)if(i?.size&&Number(i?.size)/1e6>1)e.preventDefault(),t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)("Image size must be less tahn 2 mb.","wdesignkit")});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)+")",N(i)):t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)('only ".png", ".jpg", ".jpeg" images are allowed.',"wdesignkit")})}},be=e=>""==e.target.value?(e.target.style.border="1px solid red",T(!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="",T(!0),!0):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display=""}),2e3),T(!1),!1),xe=e=>e.charAt(0).toUpperCase()+e.slice(1),ve=e=>{let i="",s="",n=vi[ae?.value]?.filter((e=>""===re.trim()||e.toLocaleLowerCase().includes(re.trim().toLocaleLowerCase())));return"convert"===e?(i="wb-version-label",s=J):"create_widget"===e&&(i="wb-add-widget-headings",s=E),(0,g.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title wkit-icons-data",children:[(0,g.jsx)("span",{className:i,children:(0,a.__)("Widget Icon","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-dropdown-data",children:[(0,g.jsxs)("div",{className:"wkit-icon-dropdown",onClick:e=>{ne(!se)},children:[(0,g.jsx)("span",{className:"wkit-selected-icons",children:ae?.label}),r?.[s]?.icons?.length>1&&(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),r?.[s]?.icons?.length>1&&(0,g.jsx)("div",{className:"wkit-value-dropdown "+(se?"wkit-dp-show":""),children:r?.[s]?.icons?.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-icon-value",onClick:t=>{ie(e),C(o[e.value]),ne(!se)},children:e.label},t)))})]})]}),(0,g.jsx)("div",{className:"wkit-show-all-icons",children:"Font-Awesome"===ae?.value||Object.keys(t.plugin_status).length>0&&"active"===t.plugin_status[s]?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-search-select",children:[(0,g.jsxs)("div",{className:"wkit-icon-search",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{type:"text",className:"wkit-icons-search-box",value:re,onChange:e=>{le(e.target.value)},placeholder:(0,a.__)(" Search icons","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-selected-text",children:[(0,g.jsx)("span",{className:"wkit-selected",children:(0,a.__)("Selected","wdesignkit")}),(0,g.jsx)("span",{className:`wkit-selected-icon ${$}`})]})]}),(0,g.jsx)("div",{className:"wkit-all-icon-list wkit-wb-popoupScroll",children:n?.length>0?n?.map(((e,t)=>(0,g.jsx)("span",{className:`wkit-widget-icon-container ${e} ${e===$?"wkit-screened-icon":""}`,onClick:()=>C(e)},t))):(0,g.jsxs)("div",{className:"wdkit-not-found-icons-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-icons",src:u+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})]})})]}):(0,g.jsx)("h4",{className:"wkit-plugin-not-found",children:(0,a.__)("Relevant Plugin/Theme is not Activated.","wdesignkit")})})]})},ye=e=>{let i=he;return"convert"===e&&(i=ge),me[i]?.link?(0,g.jsx)("a",{href:me[i]?.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to Install ?","wdesignkit")}):"loading"===t.plugin_status[me[i].name]?(0,g.jsx)("button",{className:"wkit-install-plugin-btn",children:(0,g.jsx)("span",{className:"wdkit-plugin-install-loader"})}):(0,g.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};l(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_notification({title:(0,a.__)("Installation Failed!","wdesignkit"),desc:(0,a.__)("Plugin is not installed","wdesignkit")})}))})(me[i])},children:(0,a.__)("Install Now","wdesignkit")})};return(0,g.jsxs)(g.Fragment,{children:["remove"==t.popup&&(0,g.jsx)("div",{className:"wkit-remove-popup",id:"open-popup3",children:(0,g.jsx)("div",{className:"wkit-remove-popup-content",children:(0,g.jsxs)("div",{className:"wkit-member-popup",children:[p()&&"plugin"!=t.quickediteditMeta&&(0,g.jsxs)("label",{className:"wkit-custom-radio-wrap",children:[(0,g.jsxs)("span",{className:"wkit-server-heading",id:"wkit-radio1",children:[(0,g.jsx)("input",{type:"radio",name:"server-1",id:"wkit-radio1",checked:"plugin_server"==L,onChange:e=>{M("plugin_server")}}),(0,a.__)("Permanently Delete","wdesignkit")," "]}),(0,g.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,g.jsxs)("label",{className:"wkit-custom-radio-wrap",children:[(0,g.jsxs)("span",{className:"wkit-server-heading",id:"wkit-radio2",children:[(0,g.jsx)("input",{type:"radio",name:"server-1",id:"wkit-radio2",checked:"plugin"==L,onChange:e=>{M("plugin")}}),(0,a.__)("Local Delete","wdesignkit")]}),(0,g.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,g.jsxs)("div",{className:"wkit-widget-delete-btn-position",children:[(0,g.jsx)("span",{className:"wdkit-trsprnt-btn",onClick:()=>{t.ClosePopup()},children:(0,a.__)("No","wdesignkit")}),1==G&&(0,g.jsx)("button",{className:"wkit-template-delete wkit-btn-class",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}),0==G&&(0,g.jsx)("button",{className:"wkit-template-delete wkit-btn-class",onClick:e=>{(async()=>{z(!0);let e=t.quickeditName,a=t.widget_id,i=t.widget_server_id,n=e.replaceAll(" ","-")+"_"+a,r=t.quickediteditType,l=p(),o={token:l?.token,type:"remove",w_unique:a,id:i,delete_type:L,name:n,builder:r},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)),await s().post(ajaxurl,d).then((e=>{t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description})})).catch((e=>console.log(e))),t.ClosePopup(),t.StartLoading(),t.UpdateData(),z(!1)})()},children:(0,g.jsx)("span",{children:(0,a.__)("Yes, Delete it","wdesignkit")})})]})]})})}),"sync"==t.popup&&(0,g.jsx)("div",{className:"wkit-version-popup-outside",children:(0,g.jsx)("div",{className:"wkit-wb-version-popup",children:(0,g.jsx)("div",{className:"wb-version-detail",children:(0,g.jsxs)("div",{className:"wb-version-body wb-add-widget",children:[(0,g.jsxs)("div",{className:"wb-version-wrap wb-version-current",children:[(0,g.jsxs)("div",{className:"wb-version-number",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Current Version","wdesignkit")}),(0,g.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,g.jsxs)("div",{className:"wb-version-details",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Latest Version","wdesignkit")}),(0,g.jsx)("input",{className:"wb-version-input",value:t?.w_version?B:"1.0.0",type:"text",onChange:e=>{(e=>{const a=e.target.value;if(""==a)I("");else if(!/^[0-9.]*$/.test(a))return void I("You can enter only number here");O(t?.w_version?e.target.value:"1.0.0"),""==a?.trim()?I("Version is required"):I(t?.w_version>=a?`Version ${a} is already available`:"")})(e)},disabled:!t?.w_version}),(0,g.jsx)("div",{className:"wb-error-message",children:F})]})]}),(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Changelog","wdesignkit")}),(0,g.jsx)("div",{className:"wb-version-changes",children:W.map(((e,t)=>(0,g.jsxs)("div",{className:"wb-version-wrap",children:[(0,g.jsx)("textarea",{className:"wb-version-detail-input",value:e,placeholder:(0,a.__)("Please enter description","wdesignkit"),rows:"2",onChange:e=>{((e,t)=>{let a=[...W];a[t]=e.target.value,q(a)})(e,t)}}),(0,g.jsx)("span",{className:"wdkit-wb-del-icon",onClick:()=>{(e=>{let t=[...W];t.length>1?(t.splice(e,1),q(t)):1==t.length&&(t[e]="",q(t))})(t)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})))}),(0,g.jsxs)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[...W];e.push(""),q(e)})()},children:[(0,a.__)("Add more","wdesignkit"),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]}),(0,g.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,g.jsx)("div",{children:(0,g.jsxs)("button",{className:"wdkit-trsprnt-btn",onClick:e=>{t.ClosePopup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),1==G&&(0,g.jsx)("button",{className:"wb-version-popup-btn wb-addss-widget-updateBtn wkit-btn-class",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}),0==G&&(0,g.jsx)("button",{className:t?.w_version<B||!t?.w_version?"wb-add-widget-link wkit-btn-class":"wb-addss-widget-updateBtn wkit-btn-class",style:{cursor:t?.w_version<B||!t?.w_version?"":"no-drop"},disabled:!(t?.w_version<B||!t?.w_version),onClick:e=>{(async()=>{z(!0);let e=t.quickeditName+"_"+t.widget_id,i=t.quickediteditType,s=e.replaceAll(" ","-"),n=e.replaceAll(" ","_"),r=B||"1.0.0",l=`${wdkitData.WDKIT_SERVER_PATH}/${i}/${s}/${n}.json`,o=await fetch(l).then((e=>e.json())).then((e=>e));if(r&&o){var d=Object.assign({},o.widget_data.widgetdata,{widget_version:r,version_detail:W});let e=JSON.stringify(o.Editor_data.html),s=JSON.stringify(o.Editor_data.js),n=JSON.stringify(o.Editor_data.css),l={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 Bt("sync",l,e,n,s,void 0,"").then((e=>e));else"gutenberg"==i?c=await Ot("sync",l,e,n,s,void 0,"").then((e=>e)):"bricks"==i&&(c=await It("sync",l,e,n,s,void 0,"").then((e=>e)));1==c?.ajax?.data?.success?(t.wdkit_set_notification({title:(0,a.__)("Widget Pushed","wdesignkit"),desc:(0,a.__)("The widget has been pushed and is available for use.","wdesignkit")}),t.ClosePopup()):(t.wdkit_set_notification({title:(0,a.__)("Operation fail","wdesignkit"),desc:(0,a.__)("Something went wrong","wdesignkit")}),I(c?.ajax?.data?.message))}t.StartLoading(),t.UpdateData(),z(!1)})()},children:(0,g.jsx)("span",{children:(0,a.__)("Update","wdesignkit")})})]})]})})})}),"duplicate-widget"==t.popup&&(0,g.jsx)("div",{className:"wkit-version-popup-outside",children:(0,g.jsx)("div",{className:"wkit-wb-version-popup",children:(0,g.jsxs)("div",{className:"wb-version-detail",children:["duplicate"==H&&(0,g.jsxs)("div",{className:"wb-version-body",children:[(0,g.jsx)("div",{className:"wb-version-wrap",children:(0,g.jsxs)("div",{className:"wb-version-number",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Enter New Widget Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.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,g.jsx)("input",{className:"wb-version-input",type:"text",placeholder:(0,a.__)("Enter Widget Name","wdesignkit"),value:R,onChange:e=>{be(e)&&V(e.target.value)},onBlur:()=>{V(R.trim())}}),(0,g.jsxs)("div",{className:"wkit-name-Validation",style:{display:0==A?"flex":"none"},children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,a.__)("Use only letters & numbers. Max 25 characters First letter can't be a digit.","wdesignkit")]})]})}),(0,g.jsxs)("div",{className:"wb-quickedit-footer",children:[1==G&&(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}),0==G&&(0,g.jsx)(yi,{children:(0,g.jsx)("div",{className:"wkit-quickedit-note",children:(0,g.jsx)("span",{children:(0,a.__)("Note : This new widget will have unique class, So It will work independently from previous widget.","wdesignkit")})})}),(0,g.jsxs)("div",{className:"wdkit-pop-btns",children:[(0,g.jsx)("span",{className:"wdkit-trsprnt-btn",onClick:()=>{t?.ClosePopup()},children:"Cancel"}),(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!R,onClick:()=>{(async()=>{t.StartLoading(!0),z(!0);let e=t.quickeditName,a=t.quickediteditType,i=t.widget_id,s=e.replaceAll(" ","-")+"_"+i,r=e.replaceAll(" ","_")+"_"+i,l=n();Y(l);let o=`${wdkitData.WDKIT_SERVER_PATH}/${a}/${s}/${r}.json?v=${m()}`,d=await fetch(o).then((e=>e.json())).then((e=>e));if(d){let e=d?.Editor_data?.html?JSON.stringify(d.Editor_data.html):JSON.stringify(""),a=d?.Editor_data?.js?JSON.stringify(d.Editor_data.js):JSON.stringify(""),i=d?.Editor_data?.css?JSON.stringify(d.Editor_data.css):JSON.stringify(""),s=Object.assign({},d.widget_data.widgetdata,{name:R,r_id:0,widget_id:l,widget_version:"",version_detail:[""],allow_push:!0}),n=Object.assign({},d.widget_data,{widgetdata:s});var c={CardItems:{cardData:d.section_data},WcardData:n,Editor_data:d.Editor_Link,Editor_code:{Editor_codes:[d.Editor_data]}};"elementor"==d.widget_data.widgetdata.type?await Bt("import",c,e,i,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(await t.UpdateData(),z(!1)):z(!1)})):"gutenberg"==d.widget_data.widgetdata.type?await Ot("import",c,e,i,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(await t.UpdateData(),z(!1)):z(!1)})):"bricks"==d.widget_data.widgetdata.type&&await It("import",c,e,i,a,"","",d?.widget_data?.widgetdata?.w_image).then((async e=>{e?.api?.success?(await t.UpdateData(),z(!1)):z(!1)})),t.popup_header("empty_data")}})(),U("success_duplicate")},children:(0,g.jsx)("span",{children:(0,a.__)("Duplicate","wdesignkit")})})]})]})]}),"success_duplicate"==H&&(0,g.jsx)("div",{className:"wb-version-body",children:(0,g.jsx)("div",{className:"wkit-success-duplicate-content",children:(0,g.jsxs)("div",{className:"wkit-duplicate-success-content",children:[1==G&&(0,g.jsxs)(yi,{children:[(0,g.jsxs)("div",{className:"wkit-duplicate-progress",children:[(0,g.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,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"})]}),(0,g.jsx)("span",{children:(0,a.__)("In Progress","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-duplicate-widget-name",children:[(0,g.jsx)("div",{className:"wkit-duplicate-widget-oldName",children:t.quickeditName}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"40",height:"6",viewBox:"0 0 40 6",fill:"none",children:(0,g.jsx)("path",{d:"M40 3L35 0.113249V5.88675L40 3ZM0 3.5H35.5V2.5H0V3.5Z"})}),(0,g.jsx)("div",{className:"wkit-duplicate-widget-NewName",children:R})]}),(0,g.jsx)("div",{className:"wkit-duplicate-widget-details",children:(0,a.__)("Transferring all your HTML,CSS and JS to New one","wdesignkit")})]}),0==G&&(0,g.jsxs)(yi,{children:[(0,g.jsx)("img",{className:"wdkit-success-img",src:u+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsxs)("span",{className:"wkit-duplicate-success-msg",children:[(0,a.__)("Your","wdesignkit"),'"',R,'"',(0,a.__)(" has been successfully duplicated. Customize it as needed.","wdesignkit")," "]}),(0,g.jsx)($t,{to:"/widget-listing/builder/"+R+"_"+Z,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{className:"wb-convert-popup-btn wkit-btn-class",children:(0,g.jsxs)("span",{children:[(0,a.__)("Edit","wdesignkit")," ",R]})})})]})]})})})]})})}),"convert-widget"==t.popup&&(0,g.jsx)("div",{className:"wkit-version-popup-outside",children:(0,g.jsx)("div",{className:"wkit-wb-version-popup",children:(0,g.jsxs)("div",{className:"wb-version-detail",children:["duplicate"==H&&(0,g.jsxs)("div",{className:"wb-version-body",children:[(0,g.jsx)("div",{className:"wb-version-wrap",children:(0,g.jsxs)("div",{className:"wb-convert-main",children:[(0,g.jsx)("div",{className:"wb-convert-widget-group",children:(0,g.jsxs)("span",{className:"wkit-select-builder-wrap",children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,g.jsx)("label",{children:xe(we(t?.quickediteditType))})]})}),(0,g.jsx)("div",{className:"wb-convert-icon",children:(0,g.jsx)("i",{className:"wdkit-i-convertor"})}),(0,g.jsx)("div",{className:"wb-convert-widget-group",children:(0,g.jsxs)("div",{className:"wkit-select-builder-inner-wrap wkit-custom-dropDown "+(oe?"wkit-only-one-builder":""),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,g.jsxs)("div",{className:"wkit-custom-dropDown-header",children:[(0,g.jsxs)("div",{className:"wkit-selected-builder",children:[J&&(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${J}.svg`}),(0,g.jsx)("span",{children:J&&we(J)||(0,a.__)("Select Builder","wdesignkit")})]}),!oe&&(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),Array.isArray(t.BuilderArray)&&t.BuilderArray.filter((e=>e!=t?.quickediteditType&&e!=J)).length>0&&(0,g.jsx)("div",{className:"wkit-custom-dropDown-content",children:t.BuilderArray.map(((e,a)=>(0,g.jsx)(yi,{children:e!=t?.quickediteditType&&e!=J&&(0,g.jsxs)("div",{className:"wkit-custom-dropDown-options",onClick:()=>{K(e),C(r[e].defaultValue)},children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${e}.svg`}),(0,g.jsx)("span",{children:xe(we(e))})]},e)},a)))})]})})]})}),(0,g.jsxs)("div",{className:"wb-quickedit-footer",children:[1==G&&(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}),0==G&&(0,g.jsxs)(yi,{children:[(0,g.jsx)("div",{className:"wkit-quickedit-note",children:(0,g.jsx)("span",{children:(0,a.__)("Note: This new widget will have unique class, So It will work independently from previous widget.","wdesignkit")})}),(0,g.jsxs)("div",{className:"wdkit-quickedit-inner",children:[(0,g.jsx)("button",{className:"wdkit-trsprnt-btn",onClick:e=>t.ClosePopup(),children:(0,a.__)("Cancel","wdesignkit")}),(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:""==J,onClick:()=>{U("widget_infomation"),ie(r[J].icons[0])},children:(0,g.jsx)("span",{children:(0,a.__)("Next","wdesignkit")})})]})]})]})]}),"widget_infomation"==H&&(0,g.jsxs)("div",{className:"wb-version-body",onClick:e=>{se&&ne(!1)},children:[(0,g.jsxs)("div",{className:"wkit-success-duplicate-content",children:[(0,g.jsxs)("div",{className:"wb-convert-widget-group",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Widget Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.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,g.jsx)("input",{className:"wb-convert-input-text",type:"text",placeholder:`${t.quickeditName} - Copy`,value:R,onBlur:()=>{V(R.trim())},onChange:e=>{be(e)&&V(e.target.value)}}),(0,g.jsxs)("div",{className:"wkit-name-Validation",style:{display:0==A?"flex":"none"},children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,a.__)("Use only letters & numbers. Max 25 characters First letter can't be a digit.","wdesignkit")]})]}),(0,g.jsxs)("div",{className:"wb-convert-widget-main",children:[(0,g.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,g.jsx)("label",{className:"wb-version-label",children:(0,a.__)("Featured Image","wdesignkit")}),(0,g.jsx)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{ke(e,e.dataTransfer.files[0])},onClick:()=>{document.querySelector("#wb-addwidget-img").click()},style:{backgroundImage:`url('${t.widget_image}')`},children:(0,g.jsx)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{ke(e,e.target.files[0])},accept:"image/*"})})]}),ve("convert")]})]}),"elementor"!==J&&(0,g.jsxs)("div",{className:"wkit-switch-convert-wrap",children:[(0,g.jsx)("input",{id:"wkit-convert-load-jquery",type:"checkbox",className:"wkit-convert-input",checked:X,onChange:e=>{Q(e.target.checked)}}),(0,g.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[me[ge].name]&&(0,g.jsxs)("div",{className:`wkit-install-dependency ${me[ge]?.class}`,children:[(0,g.jsx)("span",{className:"wkit-install-plugin-text",children:me[ge]?.text}),ye("convert")]}),(0,g.jsx)("div",{className:"wb-quickedit-footer",children:0==G&&(0,g.jsxs)(yi,{children:[(0,g.jsx)("div",{className:"wkit-quickedit-note",children:(0,g.jsx)("span",{children:(0,a.__)("Note: This new widget will have unique class, So It will work independently from previous widget.","wdesignkit")})}),(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!R,onClick:()=>{U("widget_scanner"),(async()=>{let e=t.quickeditName,a=t.quickediteditType,i=t.widget_id,n=e.replaceAll(" ","-")+"_"+i,r=e.replaceAll(" ","_")+"_"+i,l=[],o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","wkit_widget_json"),o.append("folder_name",n),o.append("file_name",r),o.append("widget_type",a);var c=await s().post(ajaxurl,o).then((e=>e?.data?.success?e.data.data:[]));["layout","style"].map((e=>{c?.section_data[0]?.[e]?.map((e=>{e.inner_sec?.map((e=>{d?.[J]?.array.includes(e.type)&&!l.includes(e.type)&&l.push(e.type),e?.fields&&e?.fields?.length>0&&e?.fields?.map((e=>{d?.[J]?.array.includes(e.type)&&!l.includes(e.type)&&l.push(e.type)}))}))}))})),te(l)})()},children:(0,g.jsx)("span",{children:(0,a.__)("Next","wdesignkit")})})]})})]}),"widget_scanner"==H&&(0,g.jsxs)("div",{className:"wkit-scan-widget",children:[(0,g.jsx)("div",{className:"wkit-scanner",children:(0,g.jsx)("span",{className:"wb-scanner-title",children:R})}),(0,g.jsxs)("div",{className:"wkit-converter-scan",children:[(0,g.jsxs)("div",{className:"wkit-builder-convert",children:[(0,g.jsx)("span",{className:"wdkit-scan-controller-label",children:(0,a.__)("Current Widget","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-builder-identity",children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,g.jsx)("span",{className:"wkit-scan-label",children:xe(we(t?.quickediteditType))})]})]}),(0,g.jsx)("div",{className:"wb-convert-icon",children:(0,g.jsx)("i",{className:"wdkit-i-convertor"})}),(0,g.jsxs)("div",{className:"wkit-builder-convert",children:[(0,g.jsx)("span",{className:"wdkit-scan-controller-label",children:(0,a.__)("Convert to","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-builder-identity",children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${J}.svg`}),(0,g.jsx)("span",{className:"wkit-scan-label",children:xe(we(J))})]})]})]}),"loading"!==ee&&ee?.length>0&&(0,g.jsx)("div",{className:"wkit-scan-ct",children:ee.map(((e,t)=>{var i=(0,a.__)(`${e} controller will be removed since ${J} widget builder doesn't support it.`,"wdesignkit");return d?.[J]?.info?.[e]&&(i=(0,a.__)(`${e} controller will convert to ${d?.[J]?.info?.[e]} controller`,"wdesignkit")),(0,g.jsxs)("div",{className:"wkit-scan-ct-warning",children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,g.jsx)("span",{className:"wkit-ct-scan-text",children:i})]},t)}))}),"loading"==ee&&(0,g.jsxs)("div",{className:"wkit-loader-dots-container",children:[(0,g.jsx)("span",{className:"wkit-loader-dot"}),(0,g.jsx)("span",{className:"wkit-loader-dot"}),(0,g.jsx)("span",{className:"wkit-loader-dot"}),(0,g.jsx)("span",{className:"wkit-loader-dot"}),(0,g.jsx)("span",{className:"wkit-loader-dot"})]}),(0,g.jsxs)("div",{className:"wkit-convert-btn",children:[0==ee?.length&&(0,g.jsxs)("span",{className:"wkit-scan-widget-success",children:[(0,g.jsx)("i",{className:"wdkit-i-tick"}),(0,a.__)("Widget controllers remain unchanged after scanning","wdesignkit")]}),(0,g.jsx)("button",{className:"wkit-wb-convert-btn wkit-btn-class",disabled:"loading"==ee,onClick:()=>{(async e=>{t.StartLoading(!0),z(!0);let i=t.quickeditName,s=t.quickediteditType,r=t.widget_id,l=i.replaceAll(" ","-")+"_"+r,o=i.replaceAll(" ","_")+"_"+r,p=`${wdkitData.WDKIT_SERVER_PATH}/${s}/${l}/${o}.json?v=${m()}`,u=t?.quickediteditType,h=await fetch(p).then((e=>e.json())).then((e=>e));const g=(t,a)=>{let i=[];return t?.length>0&&t.map(((t,s)=>{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(w());let e=ki?.heading?ki.heading:"";e=Object.assign({},e,{lable:t.lable,name:e.name+n()}),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(w())}else if("bricks"==e&&"normalhover"==t.type){var r={};t?.nha_array?.length>0&&t?.nha_array.map((e=>{r=Object.assign({},r,{[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()),r?.[e.key]&&r[e.key].push(e)})),i.push(w()),Object.values(r).map(((e,a)=>{let s=ki?.heading?ki.heading:"";if(t?.nha_array_lable?.[a])var r=t.nha_array_lable[a];else{let e=t.nha_array[a];r=e?.charAt(0).toUpperCase()+e?.slice(1)}s=Object.assign({},s,{lable:r,name:s.name+n()}),i.push(s),e?.length>0&&e.map((e=>{i.push(e)})),i.push(w())}))}else if("bricks"==e&&"choose"==t.type){let a=d?.[e]?.info?.[t.type]?d[e].info[t.type]:"";if(l=ki?.[a]?ki[a]:""){let e=Object.keys(l);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e&&"alignType"!==e?l=Object.assign({},l,{[e]:t[e]}):"alignType"==e&&(l=""==t.selector_value?Object.assign({},l,{alignType:"text-align"}):Object.assign({},l,{alignType:t.selector_value.toLowerCase()}))})),i.push(l)}}else if("bricks"==e&&"dimension"==t.type)if("border-radius"===t.selector_value){let e="heading";(l=ki?.[e]?ki[e]:"")&&(l=Object.assign({},l,{lable:"Border-radius is now available in the border controller, so we removed it from the dimension controller."})),i.push(l)}else i.push(t);else if("elementor"!==e&&"gutenberg"!==e||"border"!==t.type||"bricks"!==u)if("elementor"!==e&&"gutenberg"!==e||"align"!==t.type)if(d?.[e]?.array?.length>0&&d?.[e]?.array.includes(t.type)){let a=d?.[e]?.info?.[t.type]?d[e].info[t.type]:"";if(l=ki?.[a]?ki[a]:""){let e=Object.keys(l);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e&&(l=Object.assign({},l,{[e]:t[e]}))})),i.push(l)}}else if("bricks"==e&&"repeater"==t.type){l=Object.assign({},t);let e=[];l?.fields?.length>0&&l?.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)})),l=Object.assign({},l,{fields:e}),i.push(l)}else i.push(t);else{let a=d?.[e]?.info?.[t.type]?d[e].info[t.type]:"";if(l=ki?.[a]?ki[a]:""){let e=Object.keys(l);e.length>0&&e.map((e=>{null!=t[e]&&"type"!=e?l=Object.assign({},l,{[e]:t[e]}):("selector_value"===e&&(l=Object.assign({},l,{selector_value:t.alignType.toLowerCase()})),"align_option"===e&&(l=Object.assign({},l,{align_option:c[t.alignType]})))})),i.push(l)}}else(l=ki?.dimension?ki.dimension:"")&&(i.push(t),l=Object.assign({},l,{lable:t.lable+" (Radius)",selector_value:"border-radius",selectors:t.selector,name:l.name+"_"+n()}),i.push(l));else if(t.fields.length>0){let e=g(t.fields,a),s=Object.assign({},t,{fields:e});i.push(s)}if("bricks"==e){var l=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},w=()=>{let e=ki?.divider?ki.divider:"";return e=Object.assign({},e,{lable:"",name:e.name+n()}),e};if(h){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=g(e.inner_sec,n)?g(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=g(e.inner_sec,n)?g(e.inner_sec,n):[];a=Object.assign({},a,{inner_sec:i}),s.push(a)})),[{layout:i,style:s}]})(h),s=h?.Editor_data?.html?JSON.stringify(h.Editor_data.html):JSON.stringify(""),r=h?.Editor_data?.js?JSON.stringify(h.Editor_data.js):JSON.stringify(""),l=h?.Editor_data?.css?JSON.stringify(h.Editor_data.css):JSON.stringify(""),o=n();Y(o);let d=Object.assign({},h.widget_data.widgetdata,{name:R,r_id:0,widget_id:o,w_icon:$,type:e,widget_version:"",version_detail:[""],allow_push:!0}),c=Object.assign({},h.widget_data,{widgetdata:d});var _=h.Editor_Link?.links?.[0]?.external_cdn?[...h.Editor_Link.links[0].external_cdn]:[];X&&(_.includes("jQuery")||_.push("jQuery"));let p=Object.assign({},h.Editor_Link.links[0],{external_cdn:_});var f={CardItems:{cardData:i},WcardData:c,Editor_data:Object.assign({},h.Editor_data,{links:[p]}),Editor_code:{Editor_codes:[h.Editor_data]}};if("elementor"==e)if(j)var k=await Bt("import",f,s,l,r,"","",j).then((async e=>e));else k=await Bt("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image).then((async e=>e));else"gutenberg"==e?k=j?await Ot("import",f,s,l,r,"",j,"",X).then((async e=>e)):await Ot("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image,X).then((async e=>e)):"bricks"==e&&(k=j?await It("import",f,s,l,r,"",j,"").then((async e=>e)):await It("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image).then((async e=>e)));k?.api?.success?(t.popup_header("empty_data"),z(!1),await t.UpdateData()):(z(!1),t.wdkit_set_notification({title:(0,a.__)("Widget Conversion Fail!","wdesignkit"),desc:(0,a.__)("Widget not Converted successfully.","wdesignkit")}))}})(J),U("success_duplicate")},children:(0,g.jsx)("span",{children:(0,a.__)("Convert","wdesignkit")})})]})]}),"success_duplicate"==H&&(0,g.jsx)("div",{className:"wb-version-body",children:(0,g.jsx)("div",{className:"wkit-success-duplicate-content",children:(0,g.jsxs)("div",{className:"wkit-duplicate-success-content",children:[1==G&&(0,g.jsxs)(yi,{children:[(0,g.jsxs)("div",{className:"wkit-duplicate-progress",children:[(0,g.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,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"}),(0,g.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:"#575757ff"}),(0,g.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:"#020202"})]}),(0,g.jsxs)("span",{children:[" ",(0,a.__)("Converting","wdesignkit")," "]})]}),(0,g.jsxs)("div",{className:"wb-convert-main",children:[(0,g.jsx)("div",{className:"wb-convert-widget-group",children:(0,g.jsxs)("span",{className:"wkit-select-builder-wrap",children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${t?.quickediteditType}.svg`}),(0,g.jsx)("span",{className:"wkit-convert-from-label",children:xe(we(t?.quickediteditType))})]})}),(0,g.jsx)("div",{className:"wb-convert-icon",children:(0,g.jsx)("i",{className:"wdkit-i-convertor"})}),(0,g.jsx)("div",{className:"wb-convert-widget-group",children:(0,g.jsxs)("div",{className:"wkit-select-builder-wrap",children:[(0,g.jsx)("img",{style:{width:"24px"},src:u+`/assets/images/wb-svg/${J}.svg`}),(0,g.jsx)("span",{className:"wkit-convert-to-label",children:xe(we(J))})]})})]}),(0,g.jsxs)("div",{className:"wkit-duplicate-widget-details",children:[(0,a.__)("Converting your widget","wdesignkit")," ",xe(we(t?.quickediteditType))," ",(0,a.__)("to","wdesignkit")," ",xe(we(J))," "]})]}),0==G&&(0,g.jsxs)(yi,{children:[(0,g.jsx)("img",{className:"wdkit-success-img",src:u+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wb-convert-title",children:(0,a.__)("Yay! Widget is Successfully Converted","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-duplicate-success-msg",children:[(0,a.__)("Your","wdesignkit")," ",R," ",(0,a.__)("widget has been successfully converted to","wdesignkit")," ",xe(we(J))," ",(0,a.__)("Builder","wdesignkit")]}),(0,g.jsx)($t,{to:"/widget-listing/builder/"+R+"_"+Z,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{className:"wb-convert-popup-btn wkit-btn-class",children:(0,g.jsxs)("span",{children:[(0,a.__)("Edit","wdesignkit")," ",R]})})})]})]})})})]})})}),"add-widget"==t.popup&&(0,g.jsx)("div",{id:"popup",className:"wb-add-widget addWidget",children:(0,g.jsxs)("div",{className:"wb-popup-content wkit-wb-popoupScroll",onClick:e=>{se&&ne(!1)},children:[(0,g.jsxs)("div",{className:"wb-add-widget-body",children:[t.BuilderArray.length>0&&(0,g.jsxs)("div",{children:[(0,g.jsx)("div",{className:"wb-select-radio-label",children:(0,g.jsx)("span",{className:"wb-add-widget-headings",children:(0,a.__)("Page Builder","wdesignkit")})}),(0,g.jsx)("div",{className:"wb-add-widget-radio-main",children:t.BuilderArray.map(((e,a)=>(0,g.jsxs)("label",{htmlFor:`wb-add-${e}-radio`,className:`wb-add-widget-radio ${1===t.BuilderArray.length?"wkit-wb-create-widget-radio":""} ${E==e?"radio-border":""}`,children:[(0,g.jsx)("input",{type:"radio",name:"wbaddradio",id:`wb-add-${e}-radio`,className:"wb-add-widget-radioinput",value:e,onChange:e=>{P(e.target.value),C(r[e.target.value].defaultValue),ie(r?.[e.target.value]?.icons[0])},checked:E==e}),(0,g.jsx)("div",{className:"wdkit-builder-icon-cover",children:(0,g.jsx)("img",{src:w+`/assets/images/wb-svg/${e}.svg`})}),(0,g.jsx)("span",{className:E==e?"radio-color":"",children:we(e)})]},a)))})]}),(0,g.jsx)("div",{className:"wb-add-widget-name-warpper",children:(0,g.jsxs)("div",{className:"wb-add-widget-name",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title",children:[(0,g.jsx)("span",{className:"wb-add-widget-headings",children:(0,a.__)("Widget Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-toolTip wkit-popup-first-toolTip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.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,g.jsx)("input",{type:"text",className:"wb-add-widget-nameinput",name:"wbaddwidgetname",id:"wb-add-widget-name",ref:pe,value:f,placeholder:"Enter Widget Name",onChange:e=>{be(e)&&k(e.target.value)}}),(0,g.jsxs)("div",{className:"wkit-name-Validation",style:{display:0==A?"flex":"none"},children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,a.__)("Use only letters & numbers. Max 25 characters First letter can't be a digit.","wdesignkit")]})]})}),(0,g.jsxs)("div",{className:"wb-add-widget-image",children:[(0,g.jsxs)("div",{className:"wb-add-widget-image-content",children:[(0,g.jsx)("span",{className:"wb-add-widget-imageinput wb-add-widget-headings",children:(0,a.__)("Featured Image","wdesignkit")}),(0,g.jsxs)("div",{className:"wb-drop-file",onDragOver:e=>{e.preventDefault()},onDrop:e=>{ke(e,e.dataTransfer.files[0])},onClick:e=>{fe(e,"upload")},children:[(0,g.jsx)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{ke(e,e.target.files[0])},accept:"image/*"}),j?(0,g.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{fe(e,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("svg",{width:"34",height:"33",viewBox:"0 0 34 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsxs)("g",{opacity:"0.5",children:[(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.708 10.818a5.61 5.61 0 0 1 5.61-5.61h11.364a5.61 5.61 0 0 1 5.61 5.61V22.18a5.61 5.61 0 0 1-5.61 5.611H11.319a5.61 5.61 0 0 1-5.612-5.61V10.82zm5.61-3.859a3.86 3.86 0 0 0-3.858 3.858V22.18a3.86 3.86 0 0 0 3.859 3.86H22.68a3.86 3.86 0 0 0 3.858-3.86V10.82a3.86 3.86 0 0 0-3.858-3.859H11.319z"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.783.876c0-.484.392-.876.875-.876h2.683a.876.876 0 1 1 .001 1.752H15.66a.876.876 0 0 1-.875-.876zm-9.75 1.031a.876.876 0 0 1-.16 1.228c-.464.357-.88.774-1.238 1.238a.876.876 0 0 1-1.389-1.067c.45-.585.975-1.11 1.56-1.56a.876.876 0 0 1 1.228.161zm23.933 0a.876.876 0 0 1 1.228-.16c.585.45 1.11.974 1.56 1.559a.876.876 0 1 1-1.39 1.067 6.75 6.75 0 0 0-1.237-1.238.876.876 0 0 1-.16-1.228zm3.658 12.376c.484 0 .876.392.876.875v2.683a.876.876 0 1 1-1.752.001V15.16c0-.483.392-.875.876-.875zm-31.248 0c.484 0 .876.392.876.875v2.683a.876.876 0 1 1-1.752.001V15.16c0-.483.392-.875.876-.875zm1.031 14.183a.876.876 0 0 1 1.228.16c.357.465.774.882 1.238 1.239a.876.876 0 1 1-1.067 1.389 8.492 8.492 0 0 1-1.56-1.56.876.876 0 0 1 .161-1.228zm29.186 0a.876.876 0 0 1 .16 1.228 8.49 8.49 0 0 1-1.559 1.56.876.876 0 1 1-1.067-1.39c.464-.356.88-.773 1.238-1.237a.876.876 0 0 1 1.228-.16zm-16.81 3.658c0-.484.392-.876.875-.876h2.683A.876.876 0 1 1 18.342 33H15.66a.876.876 0 0 1-.875-.876z"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.658 14.934a.876.876 0 0 1 1.191-.043L24.91 25.308a.876.876 0 0 1-1.144 1.326l-11.445-9.884-4.88 4.88a.876.876 0 1 1-1.239-1.24l5.458-5.456z"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.3 14.907a.876.876 0 0 1 1.168-.012l7.29 6.392a.876.876 0 1 1-1.156 1.317l-6.699-5.875-2.785 2.547a.876.876 0 1 1-1.182-1.292l3.364-3.078z"}),(0,g.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.816 12.783a1.255 1.255 0 1 1 0-2.509 1.255 1.255 0 0 1 0 2.51zM12.81 11.53a3.006 3.006 0 1 0 6.013-.001 3.006 3.006 0 0 0-6.013-.001z"}),(0,g.jsx)("path",{d:"M32.624 21.236c.484 0 .876.392.876.876v1.341c0 .374-.024.742-.071 1.103a.876.876 0 0 1-1.738-.227 6.78 6.78 0 0 0 .057-.877v-1.341c-.001-.484.39-.876.874-.876z"}),(0,g.jsx)("path",{d:"M1.376 21.236c.484 0 .876.392.876.876v1.341c0 .298.02.59.056.876a.876.876 0 0 1-1.737.226 8.522 8.522 0 0 1-.07-1.103v-1.341c0-.484.392-.876.876-.876z"}),(0,g.jsx)("path",{d:"M1.553 7.144c.48.063.818.502.755.982a6.77 6.77 0 0 0-.056.876v1.342a.876.876 0 0 1-1.752 0V9.002C.5 8.63.524 8.261.57 7.9a.876.876 0 0 1 .983-.756z"}),(0,g.jsx)("path",{d:"M32.447 7.144c.48-.062.92.276.982.755.046.36.07.729.07 1.102v1.342a.876.876 0 0 1-1.751 0V9.002c-.001-.297-.02-.59-.058-.876a.876.876 0 0 1 .755-.982z"}),(0,g.jsx)("path",{d:"M26.173 31.946a.876.876 0 0 1-.755.982c-.362.047-.73.071-1.103.071h-1.342a.876.876 0 0 1 0-1.752h1.342c.297 0 .59-.02.876-.057.48-.062.92.277.983.756z"}),(0,g.jsx)("path",{d:"M22.098.876c0-.484.392-.876.875-.876h1.342c.373 0 .741.024 1.103.071a.876.876 0 1 1-.227 1.738 6.77 6.77 0 0 0-.875-.056h-1.342a.876.876 0 0 1-.875-.876z"}),(0,g.jsx)("path",{d:"M7.71 31.946a.876.876 0 0 1 .982-.755c.286.038.579.058.876.058h1.342a.876.876 0 0 1 0 1.752H9.568c-.373 0-.741-.025-1.103-.072a.876.876 0 0 1-.755-.982z"}),(0,g.jsx)("path",{d:"M9.568 1.752c-.297 0-.59.02-.876.056A.876.876 0 1 1 8.465.071c.362-.046.73-.07 1.103-.07h1.342a.876.876 0 0 1 0 1.752H9.568z"})]})}),(0,g.jsxs)("span",{children:[" ",(0,a.__)("Drag & drop or upload an image file here","wdesignkit")," ",(0,g.jsx)("br",{}),(0,a.__)("(Only .JPG and .PNG allowed).","wdesignkit")]})]})]})]}),ve("create_widget")]}),Object.keys(t.plugin_status).length>0&&"active"!==t.plugin_status[me[he].name]&&(0,g.jsxs)("div",{className:`wkit-install-dependency ${me[he]?.class}`,children:[(0,g.jsx)("span",{className:"wkit-install-plugin-text",children:me[he]?.text}),ye("create_widget")]})]}),(0,g.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,g.jsx)("div",{className:"wdkit-pop-btn-cover",children:(0,g.jsxs)("button",{className:"wdkit-trsprnt-btn",onClick:e=>{t.ClosePopup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]})}),f&&f.trim()?(0,g.jsx)(g.Fragment,{children:1==G?(0,g.jsx)("div",{className:"wb-add-widget-link wkit-btn-class",children:(0,g.jsx)("button",{className:"wb-add-widget-updateBtn",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})})}):(0,g.jsx)("div",{className:"wb-add-widget-link wkit-btn-class",onClick:e=>{(async()=>{if(z(!0),f){let s=JSON.stringify(""),n=JSON.stringify(""),r=JSON.stringify("");JSON.stringify("");var e={CardItems:{cardData:[{layout:[],style:[]}]},WcardData:{widgetdata:{name:f.trim(),description:b,category:"WDesignKit",helper_link:"",type:E,w_icon:$,w_image:"",publish_type:"Publish",key_words:"",css_parent_node:!0,widget_id:ce,widget_version:"",version_detail:[]}},Editor_data:{links:[{js:[""],css:[""]}]},Editor_code:{Editor_codes:[{html:"",css:"",js:"",php:""}]}};"elementor"==E?await Bt("add",e,s,r,n,"",j).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_notification({title:(0,a.__)("Widget Created Successfully","wdesignkit"),desc:(0,a.__)("The widget is now available in your list.","wdesignkit")}),i(`/widget-listing/builder/${f.trim()}_${ce}`)):t.wdkit_set_notification({title:(0,a.__)("Widget Creation Fail !","wdesignkit"),desc:(0,a.__)("The widget is now available in your list.","wdesignkit")})})):"gutenberg"==E?await Ot("add",e,s,r,n,"",j).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_notification({title:(0,a.__)("Widget Created Successfully","wdesignkit"),desc:(0,a.__)("The widget is now available in your list.","wdesignkit")}),i(`/widget-listing/builder/${f.trim()}_${ce}`)):t.wdkit_set_notification({title:(0,a.__)("Widget Creation Fail !","wdesignkit"),desc:(0,a.__)("Widget is not created.","wdesignkit")})})):"bricks"==E&&await It("add",e,s,r,n,"",j).then((async e=>{e?.api?.success?(await t.UpdateData(),await t.wdkit_set_notification({title:(0,a.__)("Widget Created Successfully","wdesignkit"),desc:(0,a.__)("The widget is now available in your list.","wdesignkit")}),i(`/widget-listing/builder/${f.trim()}_${ce}`)):t.wdkit_set_notification({title:(0,a.__)("Widget Creation Fail !","wdesignkit"),desc:(0,a.__)("Widget is not created.","wdesignkit")})})),pe.current=""}else pe.current.style.border="1px solid red";z(!1)})()},children:(0,g.jsx)("button",{className:"wb-add-widget-updateBtn",children:(0,g.jsx)("span",{children:(0,a.__)("Create Widget","wdesignkit")})})})}):(0,g.jsx)("button",{className:"wb-addss-widget-updateBtn wkit-disable-btn",onClick:()=>{pe.current.focus(),pe.current.style.border="1px solid red"},children:(0,a.__)("Create Widget","wdesignkit")})]})]})}),"import-widget"==t.popup&&(0,g.jsx)("div",{className:"wdkit-imp-pop-cover",children:(0,g.jsx)("div",{id:"popup",className:"wb-add-widget ImportWidget",children:(0,g.jsxs)("div",{className:"wb-popup-content",style:{height:"max-content"},children:[(0,g.jsxs)("div",{className:"wb-import-widget-inputs",children:[(0,g.jsxs)("div",{className:"wb-drop-file-inp",onDragOver:e=>{e.preventDefault()},onDrop:e=>{(e=>{e.preventDefault(),y(e.dataTransfer.files[0]),e.stopImmediatePropagation()})(e)},onClick:e=>{document.querySelector("#wb-import-file").click()},children:[v?(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",children:(0,g.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,g.jsx)("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsxs)("g",{opacity:"0.5",children:[(0,g.jsx)("path",{d:"M5.25 15C5.25 9.34315 5.25 6.51472 7.11719 4.75736C8.98439 3 11.9896 3 18 3H19.1591C24.0509 3 26.4968 3 28.1954 4.19675C28.6821 4.53964 29.1141 4.94629 29.4784 5.40433C30.75 7.00301 30.75 9.30504 30.75 13.9091V17.7273C30.75 22.172 30.75 24.3944 30.0466 26.1694C28.9158 29.0229 26.5243 31.2737 23.4925 32.338C21.6066 33 19.2453 33 14.5227 33C11.8241 33 10.4748 33 9.39717 32.6217C7.66469 32.0135 6.29813 30.7274 5.65195 29.0968C5.25 28.0825 5.25 26.8126 5.25 24.2727V15Z",stroke:"#020202",strokeWidth:"3",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M30.75 18C30.75 20.7614 28.5114 23 25.75 23C24.7513 23 23.5739 22.825 22.603 23.0852C21.7402 23.3164 21.0664 23.9902 20.8352 24.853C20.575 25.8239 20.75 27.0013 20.75 28C20.75 30.7614 18.5114 33 15.75 33",stroke:"#020202",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M12 10.5H22.5",stroke:"#020202",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M12 16.5H16.5",stroke:"#020202",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,g.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];y(t),document.querySelector(".dropFileErrorMessage").style.display="none"}})(e)}}),v?(0,g.jsx)("span",{children:v?.name}):(0,g.jsx)("span",{children:(0,a.__)("Drag & Drop or Upload Widget ZIP File Here","wdesignkit")})]}),(0,g.jsx)("div",{className:"dropFileErrorMessage",children:(0,a.__)("Zip file invalid or Missing. Upload Again!","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-add-widget-footer",children:[(0,g.jsx)("div",{className:"wdkit-pop-btn-cover",children:(0,g.jsx)("button",{className:"wdkit-trsprnt-btn",onClick:e=>{t.ClosePopup()},children:(0,a.__)("Cancel","wdesignkit")})}),v&&(0,g.jsx)(g.Fragment,{children:1==G?(0,g.jsx)("button",{className:"wb-import-widget-updateBtn wkit-btn-class",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}):(0,g.jsx)("button",{className:"wb-import-widget-updateBtn wkit-btn-class",onClick:e=>{_e()},children:(0,g.jsx)("span",{children:(0,a.__)("Import","wdesignkit")})})}),!v&&(0,g.jsx)("button",{className:"wkit-imports-widget-updateBtn wkit-disable-btn",children:(0,a.__)("Import","wdesignkit")})]})]})})})]})})),{Fragment:Pi}=wp.element,Ai=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_Login_Route:t=>e(ei(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,n]=(0,e.useState)(wdkitData.WDKIT_URL),[r,l]=(0,e.useState)(""),[d,c]=(0,e.useState)("loading"),[m,u]=(0,e.useState)([]),[h,f]=(0,e.useState)(""),[k,b]=(0,e.useState)(""),[x,v]=(0,e.useState)(""),[j,N]=(0,e.useState)(""),[$,C]=(0,e.useState)(""),[S,D]=(0,e.useState)("add-widget"),[E,P]=(0,e.useState)(!1),[A,T]=(0,e.useState)(!0),[L,M]=(0,e.useState)(!0),[F,I]=(0,e.useState)(24),[B,O]=(0,e.useState)(1),[R,V]=(0,e.useState)(1),[W,q]=(0,e.useState)(),[G,z]=(0,e.useState)(),[H,U]=(0,e.useState)([]),[J,K]=(0,e.useState)(""),[Z,Y]=(0,e.useState)("1.0.0"),[X,Q]=(0,e.useState)(!1),[ee,te]=(0,e.useState)([]),[ae,ie]=(0,e.useState)(""),[se,ne]=(0,e.useState)(!1),re=(0,e.useRef)(null),[le,oe]=(0,e.useState)([]),[de,ce]=(0,e.useState)([]),[pe,me]=(0,e.useState)({title:"",desc:""}),ue=[{name:"elementor",label:"elementor",plugin_slug:"elementor/elementor.php",type:"plugin",freepro:"0",text:"Elementor Page Builder is not active on your site.",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 active on your site.",class:"wkit-nexter-bg"},{name:"bricks",label:"bricks",original_slug:"bricks",plugin_slug:"bricks/bricks.php",type:"theme",freepro:"1",text:"Bricks theme is not active on your site.",link:"https://academy.bricksbuilder.io/article/installation-activation/",class:"wkit-bricks-bg"}];(0,e.useEffect)((()=>{t.wdkit_meta&&c(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{ke()}),[S,E]),(0,e.useEffect)((()=>{fe()}),[d]),(0,e.useEffect)((()=>{var e=d.widget_list;X&&m.length>0&&(e=e.filter((e=>{if(m.length>0&&m.includes(e.id))return e}))),ae&&(e=e.filter((e=>e.title.toLowerCase().includes(ae.toLocaleLowerCase())))),U(e),V(1),O(X?Math.ceil(m?.length/F):Math.ceil(H?.length/F))}),[X,se]),(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")})),he("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),o(ue).then((e=>{let t=Array.isArray(e?.data?.plugins)&&Array.isArray(e?.data?.theme)?[...e?.data?.plugins,...e?.data?.theme]:[];if(t?.length>0){let e={},a=t.findIndex((e=>"bricks"==e.name));a>-1&&"active"==t?.[a]?.status&&he(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),t.map((t=>{e[t.name]=t.status})),ce(e)}}))}),[]),(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"),oe(e)}),[t?.wdkit_meta?.Setting]);const he=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)}},ge=async()=>{if(p())await _().then((async e=>{e.success?(t.wdkit_set_meta(e.data),await c(e.data)):await c(t.wdkit_meta)}));else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await w(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}T(!1),M(!1),Q(!1)},we=e=>{let t=e.target.parentElement.querySelectorAll(".wkit-wb-dropdown");t.length>0&&t.forEach((e=>{e.classList.add("wbdropdown-active")}))},_e=e=>{let t=H?.findIndex((t=>t.w_unique==e));D("remove"),l(H?.[t]?.title),b(H?.[t]?.builder),v(H?.[t]?.type),N(H?.[t]?.w_unique),H?.[t]?.id&&C(H?.[t]?.id);var a=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";a&&a.classList.add("show")},fe=async()=>{p()?(u(d.favoritewidgets),U(d.widget_list)):U(d.widget_list)};(0,e.useEffect)((()=>{let e=(R-1)*F,a=e+F;q(e),z(a),O(X?Math.ceil(m?.length/F):Math.ceil(H?.length/F)),setTimeout((()=>{(p()&&t?.wdkit_meta?.success||t?.wdkit_meta?.success)&&(T(!1),M(!1))}),800)}),[H,R,F]);const ke=(e=S)=>{if(e){var t={...pe};"remove"==e?(t.title="Remove widget",t.desc="Once removed, you won’t be able to recover this widget."):"sync"==e?(t.title="Sync Widget",t.desc="Are you sure you want to sync this widget ?"):"duplicate-widget"==e?(t.title=`Duplicate ${r}`,t.desc="Are you sure you want to duplicate this widget ?"):"convert-widget"==e?(t.title=`Convert ${r}`,t.desc="Are you sure you want to convert this widget ?"):"add-widget"==e?(t.title="Create Widget",t.desc="Add Details to Create Your Widget"):"import-widget"==e?(t.title="Import Widget",t.desc="Easily import your custom widget by uploading a ZIP file."):"empty_data"==e&&(t.title="",t.desc=""),me(t)}};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-widget-main-container",children:(0,g.jsxs)("div",{className:"wb-creative-widget-main",children:[(0,g.jsxs)("div",{className:"wb-creative-row",children:[(0,g.jsx)(Pi,{children:1==L?(0,g.jsx)("div",{className:"wkit-widget-search-skeleton"}):(0,g.jsx)("div",{className:"wdkit-search-wrapper-b",children:d?.widget_list?.length>0&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{className:"wkit-search-input-b",placeholder:(0,a.__)("Search...","wdesignkit"),type:"text",onChange:e=>{ie(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(ne(!se),re.current.blur())},ref:re}),(0,g.jsx)("div",{className:"wdkit-search-icon-b",children:(0,g.jsx)("i",{className:"wdkit-i-search"})}),(0,g.jsx)("span",{className:"wkit-search-button-b",id:"WDkitSearchIcon",onClick:e=>ne(!se),children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]})})}),(0,g.jsxs)("div",{className:"wb-creative-button "+(p()?"":"wkit-login-disable"),children:[(0,g.jsx)(Pi,{children:0==L&&(0,g.jsxs)("div",{className:p()?"":"wkit-fav-plugin-link",children:[(0,g.jsx)("span",{className:"wkit-creative-button-toolTip wkit-fav-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,g.jsx)("a",{className:"wdkit-trsprnt-btn",onClick:()=>{p()&&Q(!X)},children:(0,g.jsx)("i",{className:X?"wdkit-i-filled-heart":"wdkit-i-heart"})})]})}),(0,g.jsxs)(Pi,{children:[1==L&&(0,g.jsxs)(Pi,{children:[(0,g.jsx)("button",{className:"wkit-primary-btn-skeleton"}),(0,g.jsx)("button",{className:"wkit-primary-btn-skeleton"}),(0,g.jsx)("button",{className:"wkit-primary-btn-skeleton"})]}),0==L&&(0,g.jsxs)(Pi,{children:[(0,g.jsxs)("div",{className:p()?"":"wkit-primary-button-container",children:[(0,g.jsx)("span",{className:"wkit-creative-button-toolTip wkit-primary-button-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-button-primary wkit-outer-btn-class",onClick:e=>{(()=>{D("import-widget");let e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";e&&e.classList.add("show")})(),P(!0)},disabled:!p(),children:(0,a.__)("Import Widget","wdesignkit")})]}),(0,g.jsxs)("div",{className:p()?"":"wkit-secondary-button-container",children:[(0,g.jsx)("span",{className:"wkit-creative-button-toolTip wkit-secondary-button-tooltip",children:(0,a.__)("Login to use this option.","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-button-secondary wkit-btn-class",onClick:e=>{(()=>{D("add-widget");let e=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";e&&e.classList.add("show")})(),P(!0)},disabled:!p(),children:(0,a.__)("Create Widget","wdesignkit")})]})]})]})]})]}),1==A&&(0,g.jsx)(dt,{}),H?.length<=0&&0==A&&(0,g.jsx)(it,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"create-custom-elementor-widget-using-free-wdesignkit-widget-builder/"}),0==A&&(0,g.jsx)("div",{className:"wkit-skeleton-row",children:H?.length>0&&H.map(((e,n)=>{return!!(e&&W<=n&&G>n&&(r=e.builder,t?.wdkit_meta?.Setting?.[`${r}_builder`]))&&(0,g.jsx)(Pi,{children:(0,g.jsxs)("div",{className:"wdkit-browse-card",children:["active"!==e.is_activated&&(0,g.jsxs)(Pi,{children:[(0,g.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",style:{zIndex:"19"},children:[(0,g.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,g.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,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]}),(0,g.jsx)("span",{className:"wdkit-inner-boxed-remove",style:{zIndex:"29"},onClick:t=>{_e(e.w_unique),P(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]}),(0,g.jsxs)("div",{className:"wkit-wb-widget-card-main",children:["server"==e?.type&&(0,g.jsx)("div",{className:"wkit-wb-widget-download",children:(0,g.jsxs)("div",{className:"wkit-wb-download-btn",onClick:i=>{(async(e,i)=>{if(te((e=>[...e,i])),e){const s=async e=>{let t=JSON.parse(e.json),a=t?.widget_data?.widgetdata?.type,s=JSON.stringify(t?.Editor_data?.html),n=JSON.stringify(t?.Editor_data?.js),r=JSON.stringify(t?.Editor_data?.css),l=e.image;e={CardItems:{cardData:t.section_data},WcardData:t.widget_data,Editor_data:t.Editor_Link,Editor_code:{Editor_codes:[t.Editor_data]}};var o="";return"elementor"==a?o=await Bt("private_download",e,s,r,n,"",l).then((async e=>e)):"gutenberg"==a?o=await Ot("private_download",e,s,r,n,"",l).then((async e=>e)):"bricks"==a&&(o=await It("private_download",e,s,r,n,"",l).then((async e=>e))),!(!o||1!=o.api.success||(await ge(),await te((e=>e.filter((e=>e!==i)))),0))};let n=p();if(n){let r={type:"private_download",w_uniq:e,token:n.token},l={type:"wkit_download_widget",widget_info:JSON.stringify(r)};await w(l).then((async e=>{null!=e?.json?(await s(e),e&&t.wdkit_set_notification({title:e.message,desc:(0,a.__)("Widget Successfully Retrived .","wdesignkit")})):(t.wdkit_set_notification({title:e.message,desc:e.description}),te((e=>e.filter((e=>e!==i)))),ge())}))}}})(e.w_unique,n)},children:[(0,g.jsx)("div",{className:"wkit-wb-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})}),ee.includes(n)&&(0,g.jsx)("div",{className:"wkit-wb-download-loader"})]})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-badges",style:"server"==e.type||"active"!=e.is_activated?{zIndex:"1"}:{zIndex:"39"},children:["plugin"==e.type&&(0,g.jsxs)("div",{className:"wdkit-browse-card-badge",children:[(0,g.jsx)("i",{className:"wdkit-i-computer"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Local","wdesignkit")})]}),"server"==e.type&&(0,g.jsxs)("div",{className:"wdkit-browse-card-badge",children:[(0,g.jsx)("i",{className:"wdkit-i-cloud"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Remote","wdesignkit")})]}),("update"==e.type||"done"==e.type)&&(0,g.jsxs)("div",{className:"wdkit-browse-card-badge wdkit-loc-rem-combine",children:[(0,g.jsx)("i",{className:"wdkit-i-computer"}),(0,g.jsx)("span",{children:(0,a.__)(" + ","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-cloud"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Local + Remote","wdesignkit")})]}),"plugin"!=e.type&&(0,g.jsxs)(Pi,{children:[(0,g.jsx)("div",{className:"wkit-wb-fav-icon wdkit-browse-card-badge wkit-wb-select-fav",onClick:a=>{(async(e,a)=>{if(e){let i=p();if(i){let s={type:"favourite",w_uniq:e,token:i.token},n=d.favoritewidgets;if(n.findIndex((e=>e==a))>-1){let e=n.findIndex((e=>e==a));n.splice(e,1),u([...n])}else n.push(a),u([...n]);let r={type:"wkit_favourite_widget",widget_info:JSON.stringify(s)};await w(r).then((e=>{t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description})}))}}})(e.w_unique,e.id)},children:m?.length>0&&m?.includes(e.id)?(0,g.jsxs)(Pi,{children:[(0,g.jsx)("i",{className:"wdkit-i-filled-heart"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Unfavorite","wdesignkit")})]}):(0,g.jsxs)(Pi,{children:[(0,g.jsx)("i",{className:"wdkit-i-heart"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Favorite","wdesignkit")})]})}),(0,g.jsx)("div",{className:"wkit-wb-fav-icon wdkit-browse-card-badge",children:"private"==e.status?(0,g.jsxs)(Pi,{children:[(0,g.jsx)("i",{className:"wdkit-i-lock"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Private","wdesignkit")})]}):(0,g.jsxs)(Pi,{children:[(0,g.jsx)("i",{className:"wdkit-i-globe"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Public","wdesignkit")})]})})]})]}),"pro"==e?.free_pro&&(0,g.jsx)("div",{className:"wdkit-card-tag",children:(0,g.jsx)("span",{children:(0,a.__)("Pro","wdesignkit")})}),(0,g.jsx)("div",{className:"wdkit-browse-img-cover",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsx)("div",{className:"wkit-wb-widget-image-content",children:p()?(0,g.jsx)($t,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,g.jsx)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${e.image}")`}})}):(0,g.jsx)("div",{className:"wkit-wb-widget-img",style:{backgroundImage:`url("${e.image}")`}})})})}),(0,g.jsx)("div",{className:"wkit-wb-card-detail-content",children:(0,g.jsxs)("div",{className:"wkit-wb-title-content",children:[p()?(0,g.jsx)($t,{style:{color:"black"},target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,g.jsx)("span",{className:"wdkit-widget-title",children:e.title})}):(0,g.jsx)("span",{className:"wdkit-widget-title",children:e.title}),(0,g.jsxs)("div",{className:"wdkit-widget-crd-btmbtn",children:["server"!=e?.type&&(0,g.jsx)("div",{className:"wkit-wb-widget-dropDown",children:(0,g.jsxs)("span",{className:"wkit-wb-3dot-icon","data-widgetid":n,onClick:we,children:[(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu wkit-wb-3dot-click-img","data-widgetid":n}),(0,g.jsxs)("ul",{className:"wkit-wb-dropdown",children:[p()&&(0,g.jsx)($t,{className:"wkit-wb-edit-widget-btn",target:"_blank",rel:"noopener noreferrer",to:"/widget-listing/builder/"+e.title+"_"+e.w_unique,children:(0,g.jsx)("li",{children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Edit in New Tab","wdesignkit")})})}),(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{onClick:t=>{_e(e.w_unique),P(!0)},"data-deleteid":n,children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Delete","wdesignkit")})})}),(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{onClick:()=>{var t;t=e,D("duplicate-widget"),P(!0),l(t.title),b(t?.builder),N(t.w_unique),K(t?.image?t.image:"")},children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Duplicate","wdesignkit")})})}),le.length>1&&"1"==d?.credits?.convert_widget?.meta_value&&(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{onClick:()=>{var t;t=e,D("convert-widget"),P(!0),l(t.title),b(t.builder),N(t.w_unique),K(t?.image?t.image:"")},children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Convert","wdesignkit")})})}),(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{className:"wkit-wb-export-widget-btn",onClick:a=>{(async(e,a,i,n)=>{let r=a.replaceAll(" ","_")+"_"+n+".zip",l={widget_name:a+"_"+n,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(l)),await s().post(ajaxurl,o).then((async e=>{e?.data?.success&&(t.wdkit_set_notification({title:e?.data?.message,desc:e?.data?.description}),e?.data?.url&&(location.href=e?.data?.url)),setTimeout((()=>{let e={name:r,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)),s().post(ajaxurl,t).then((e=>{})).catch((e=>console.log(e)))}),3e3)}))})(0,e.title,e.builder,e?.w_unique)},children:(0,g.jsxs)("span",{className:"wkit-wb-listmenu-text",children:[(0,a.__)("Download ZIP","wdesignkit")," "]})})}),p()&&null!=e?.allow_push&&0!=e?.allow_push&&(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{onClick:t=>{D("sync"),P(!0),l(e.title),b(e.builder),N(e.w_unique),Y(e.w_version),v(e.type)},children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Push Widget","wdesignkit")})})})]})]})}),(0,g.jsx)("div",{className:"wkit-wb-widget-info",children:(0,g.jsxs)("div",{className:"wkit-wb-widget-category-icon",children:["elementor"==e?.builder&&(0,g.jsx)("img",{src:i+"/assets/images/wb-svg/elementor.svg",draggable:!1}),"gutenberg"==e?.builder&&(0,g.jsx)("img",{src:i+"/assets/images/wb-svg/gutenberg-core.svg",draggable:!1}),"bricks"==e?.builder&&(0,g.jsx)("img",{src:i+"/assets/images/wb-svg/bricks.svg",draggable:!1})]})})]})]})})]})]})},n);var r}))}),(0,g.jsx)("div",{className:"wkit-wb-paginatelist",children:H?.length>F&&B>1&&(0,g.jsx)("div",{className:"wkit-pagination-main",children:(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:B,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&(T(!0),M(!0),V(e.nextSelectedPage+1))},forcePage:R-1,onPageActive:()=>{}})})})]})}),1==E?(0,g.jsx)("div",{className:`wb-edit-popup wdkit-${S}-popup`,children:(0,g.jsx)(Be,{title:pe.title,desc:pe.desc,body:(0,g.jsx)(Ei,{quickeditName:r,quickediteditDesc:h,quickediteditType:k,quickediteditMeta:x,w_version:Z,plugin_status:de,popup_header:e=>{ke(e)},setPlugin_status:ce,plugin_detail:ue,widget_id:j,widget_image:J,BuilderArray:le,widget_server_id:$,UpdateData:()=>ge(),ClosePopup:()=>{P(!1)},StartLoading:()=>{T(!0)},endLoading:()=>{T(!1)},popup:S&&S}),close_popup:()=>{P(!1)}})}):""]})})),{Fragment:Ti}=wp.element,Li=Ya((e=>({cardData:e.CardItems.cardData,controller:e.Active_controller,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData})),(e=>({addToCarthandler:t=>e(ji(t)),addToEditor_code:t=>e(Ci(t))})))((t=>{let i=t?.widgetdata?.widgetdata?.type;const s=(0,e.useRef)();var n=wdkitData.WDKIT_URL;let r=["wdk_senitize_js"],l=["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(l.includes(h?.type)&&(null==h?.sanitizer_value||null==h?.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 m=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))},u=(e,a,i,n)=>{let r=[...t.cardData];if(s.current.repeater)var l=r[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else l=r[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];if(o){let s=r[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&&m(e.target.value)&&(s.name=e.target.value),t.addToCarthandler(r)}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)l[a]=e.target.checked;else if("types"==a){if(1==e.target.checked){let e=[...l[a]];"classic"==i?e.splice(0,0,'"classic"'):"gradient"==i&&e.splice(1,0,'"gradient"'),l[a]=e}else if(0==e.target.checked){let e=[...l[a]],t=l[a].indexOf(`"${i}"`);e.splice(t,1),l[a]=e}}else if("nha_array"==a){let t=[...l[a]],s=l?.nha_array_lable?[...l.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")),l[a]=t,l.nha_array_lable=s):0==e.target.checked&&t.length>2&&(t[i]=null,l[a]=t)}else if("nha_array_name"==a){let t=l?.nha_array_lable?[...l.nha_array_lable]:[];0==i?t[0]=e.target.value:1==i?t[1]=e.target.value:2==i&&(t[2]=e.target.value),l.nha_array_lable=t}else if("nha_null_name"==a){let e=l?.nha_array_lable?[...l.nha_array_lable]:[];0==i?e[0]="Normal":1==i?e[1]="Hover":2==i&&(e[2]="Active"),l.nha_array_lable=e}else if("media_types"==a){if(1==e.target.checked){let e=[...l[a]];"image"==i?e.splice(0,0,'"image"'):"video"==i?e.splice(1,0,'"video"'):"svg"==i&&e.splice(2,0,'"svg"'),l[a]=e}else if(0==e.target.checked){let e=[...l[a]],t=l[a].indexOf(`"${i}"`);e.splice(t,1),l[a]=e}}else if("options_value"==a){let t=[...l.options];if("select2"==l.type&&l.select2_defaultValue?.map(((e,a)=>{JSON.stringify(e)==JSON.stringify(t[i])&&l.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}l.options=t}else if("options_lable"==a){let t=[...l.options];"select2"==l.type&&l.select2_defaultValue?.map(((e,a)=>{JSON.stringify(e)==JSON.stringify(t[i])&&l.select2_defaultValue.splice(a,1)}));let a=Object.assign({},t[i],{lable:e.target.value});t[i]=a,l.options=t}else if("options_svg"==a){let t=[...l.options],a=Object.assign({},t[i],{svg:e.target.value});t[i]=a,l.options=t}else if("align_lable"==a||"align_value"==a||"align_icon"==a||"align_title"==a||"align_svg"==a){let t=[...l.align_option],s=Object.assign({},t[i],{[a]:e.target.value});t[i]=s,l.align_option=t}else if("conditions_operator"==a){let t=[...l.condition_value.values],a=Object.assign({},t[i],{operator:e.target.value});t[i]=a;let s=Object.assign({},l.condition_value,{values:t});l.condition_value=s}else if("conditions_name"==a){let t=[...l.condition_value.values],a=Object.assign({},t[i],{name:e.target.value});t[i]=a;let s=Object.assign({},l.condition_value,{values:t});l.condition_value=s}else if("conditions_value"==a){let t=[...l.condition_value.values],a=Object.assign({},t[i],{value:e.target.value});t[i]=a;let s=Object.assign({},l.condition_value,{values:t});l.condition_value=s}else if("condition_relation"==a){let t={...l.condition_value};t.relation=e.target.value,l.condition_value=t}else if("num-min"==a){let t=Object.assign({},l.number_setting,{min:e.target.value});l.number_setting=t}else if("num-max"==a){let t=Object.assign({},l.number_setting,{max:e.target.value});l.number_setting=t}else if("num-step"==a){let t=Object.assign({},l.number_setting,{step:e.target.value});l.number_setting=t}else if("slider_value"==a){let t=[...l.slider_defaultValue];"unit"==i?t[0]=e.target.value:"number"==i&&(t[1]=e.target.value),l.slider_defaultValue=t}else if("size_units"==a){let t=[...l.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}l.size_units=t}else if("switcher_defaultValue"==a)l.defaultValue=e.target.checked;else if("dimension_defaultValue"==a){let t={...l.dimension_defaultValue};"isLinked"!=i?t[i]=e.target.value:"isLinked"==i&&(t[i]=!l.dimension_defaultValue[i]),l.dimension_defaultValue=t}else if("dimension_units"==a){let t=[...l.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)}l.dimension_units=t}else if("align_defaultValue"==a)l[a]=i;else if("name"==a){let i=m(e.target.value),n=h?.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,l)=>{a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,o)=>{if(a.name==n){var d=r[0]?.layout?.[i]?.inner_sec?.[s]?.fields?.[l]?.condition_value.values[o];d.name=e.target.value,t.addToCarthandler(r)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,l)=>{if(a.name==n){var o=r[0]?.layout?.[i].inner_sec[s]?.condition_value.values[l];o.name=e.target.value,t.addToCarthandler(r)}}))}))})),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,l)=>{a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,o)=>{if(a.name==n){var d=r[0]?.style?.[i]?.inner_sec?.[s]?.fields?.[l]?.condition_value.values[o];d.name=e.target.value,t.addToCarthandler(r)}}))})):a?.condition_value?.values?.length>0&&a.condition_value.values.map(((a,l)=>{if(a.name==n){var o=r[0]?.style?.[i].inner_sec[s]?.condition_value.values[l];o.name=e.target.value,t.addToCarthandler(r)}}))}))}))}));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")}))}}l[a]=e.target.value}else if("select2_defaultValue"==a){if("add"==n){let e=[...l[a]];e.push(i),l[a]=e}else if("remove"==n){let e=[...l[a]];e.splice(i,1),l[a]=e}}else"select_defaultValue"==a?l[a]=i:"show_unit"==a?1==e.target.checked?(l[a]=e.target.checked,l.responsive=!0):l[a]=e.target.checked:"sanitizer_dropdown_value"==a?(l[a]=e.target.value,"custom"==e.target.value||"none"==e.target.value?l.sanitizer_value="":"wdk_sanitizer"==e.target.value?(l.sanitizer_value="wdk_senitize_js",l[a]="wdk_senitize_js"):l.sanitizer_value=e.target.value):l[a]=e.target.value;t.addToCarthandler(r)}};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 h=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else h=e[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id]}const w=(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=[...(r=n.fields[s.current.repeater]).options];"styleimage"==h.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),r.options=e}else{let e=[...(r=n).options];"styleimage"==h.type?e.push({value:"value-"+a,lable:"label-"+a,svg:""}):e.push({value:"value-"+a,lable:"label-"+a}),r.options=e}else if("conditions"==e)if(null!=s.current.repeater){let e=[...(r=n.fields[s.current.repeater]).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},r.condition_value,{values:e});r.condition_value=t}else{let e=[...(r=n).condition_value.values];e.push({name:"",operator:"==",value:""});let t=Object.assign({},r.condition_value,{values:e});r.condition_value=t}else if("align_option"==e)if(null!=s.current.repeater){let e=[...(r=n.fields[s.current.repeater]).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),r.align_option=e}else{var r;let e=[...(r=n).align_option];e.push({align_lable:"label"+a,align_value:"value"+a,align_icon:"eicon-text-align-left"}),r.align_option=e}t.addToCarthandler(i)},_=(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 r=i[0][t.controller.controller.array_type][t.controller.controller.sec_id].condition_value.values;else"options"==a?r=null!=s.current.repeater?n.fields[s.current.repeater].options:n.options:"conditions"==a?r=null!=s.current.repeater?n.fields[s.current.repeater].condition_value.values:n.condition_value.values:"repeater"==a?r=n.defaultValue:"align_option"==a&&(r=null!=s.current.repeater?n.fields[s.current.repeater].align_option:n.align_option);r.splice(e,1),t.addToCarthandler(i),0==r.length&&w(a,e)},f=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,g.jsx)("div",{className:"wkit-wb-third-part-content show",children:(0,g.jsx)("div",{className:"wkit-widget-detail",children:(0,g.jsxs)("div",{className:"wb-block-detail-content",children:[(null!=h?.name||o)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip wkit-bottom-toolTip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The name must be unique and should only contain letters, numbers and underscore (_).","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:o?d.name:h.name,type:"text",onChange:e=>{u(e,"name")},disabled:["cpt","product_listing"].includes(h?.type)||t.controller.controller.cpt_controller})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),!h||null==h.type||"textarea"!=h.type&&"wysiwyg"!=h.type&&"rawhtml"!=h.type&&"code"!=h.type?h&&h.type&&"number"==h.type&&h.number_setting&&h.number_setting.min&&h.number_setting.max&&h.number_setting.step?(0,g.jsx)("input",{className:"wb-block-text-inp",min:h.number_setting.min,max:h.number_setting.max,step:h.number_setting.step,value:h.defaultValue,type:"number",onChange:e=>{u(e,"defaultValue")}}):h&&h.type&&"color"==h.type?(0,g.jsx)("div",{className:"wkit-wb-default-color",children:(0,g.jsx)("input",{className:"wkit-wb-default-color-inp",value:h.defaultValue,type:"color",onChange:e=>{u(e,"defaultValue")}})}):h&&h.type&&"date-time"==h.type?(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.defaultValue,type:"datetime-local",onChange:e=>{u(e,"defaultValue")}}):h&&h.type&&"url"==h.type?(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.defaultValue,type:"url",onChange:e=>{u(e,"defaultValue")}}):h&&h.type&&"datetime"==h.type?(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.defaultValue,type:"datetime-local",onChange:e=>{u(e,"defaultValue")}}):h&&h.type&&"switcher"==h.type?(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.defaultValue,onChange:e=>{u(e,"switcher_defaultValue")}}),(0,g.jsx)("span",{className:"wb-slider"})]}):(h&&h.type&&h.input_type&&h.type,(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.defaultValue,type:"text",onChange:e=>{u(e,"defaultValue")}})):(0,g.jsx)("textarea",{className:"wb-block-text-inp",value:h.defaultValue,onChange:e=>{u(e,"defaultValue")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),h?.slider_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-slider-default",children:[h.size_units&&h.slider_defaultValue[0]&&h.size_units.map(((e,t)=>{if(1==e.checked&&e.type==h.slider_defaultValue[0])return(0,g.jsx)(Ti,{children:(0,g.jsx)("input",{type:"number",min:e.min,max:e.max,step:e.step,value:h.slider_defaultValue[1],className:"wb-slider-default-value",onChange:e=>{u(e,"slider_value","number")}})},t)})),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"},onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.slider_defaultValue[0]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:h.size_units&&h.size_units.map(((e,t)=>{if(1==e.checked)return(0,g.jsx)(Ti,{children:(0,g.jsx)("option",{onClick:e=>{u(e,"slider_value","unit")},children:e.type},t)},t)}))})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.s_template_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{f(e)},children:[(0,g.jsx)("label",{children:(0,a.__)("Select Template","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:(0,g.jsx)("option",{selected:!0,children:(0,a.__)("Select Template","wdesignkit")})})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.select_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{f(e)},children:[(0,g.jsx)("label",{children:h.select_defaultValue[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:h.options?.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ti,{children:(0,g.jsx)("option",{onClick:e=>{u(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.hTags_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{f(e)},children:[(0,g.jsx)("label",{children:h.hTags_defaultValue}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"h1",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H1","wdesignkit")}),(0,g.jsx)("option",{value:"h2",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H2","wdesignkit")}),(0,g.jsx)("option",{value:"h3",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H3","wdesignkit")}),(0,g.jsx)("option",{value:"h4",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H4","wdesignkit")}),(0,g.jsx)("option",{value:"h5",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H5","wdesignkit")}),(0,g.jsx)("option",{value:"h6",onClick:e=>{u(e,"hTags_defaultValue")},children:(0,a.__)("H6","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.align_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wb-icons",children:h.align_option&&h.align_option.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[e.align_lable&&(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:e.align_lable}),["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==h.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${n}assets/images/wb-svg/${e.align_icon}.svg`,onClick:t=>{u(t,"align_defaultValue",e.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${n}assets/images/wb-svg/${e.align_icon}.svg`,onClick:t=>{u(t,"align_defaultValue",e.align_value)}}):e.align_value==h.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${n}assets/images/wb-svg/info-white.svg`,onClick:t=>{u(t,"align_defaultValue",e.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${n}assets/images/wb-svg/info.svg`,onClick:t=>{u(t,"align_defaultValue",e.align_value)}})]})},t)))})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),h?.options&&null!=h.select2_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"50%"},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{f(e)},children:[h.select2_defaultValue&&h.select2_defaultValue.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wkit-wb-multi-selected",children:[(0,g.jsx)("div",{className:"wkit-wb-remove-value",onClick:e=>{u(e,"select2_defaultValue",t,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),(0,g.jsx)("label",{children:e.lable})]})},t))),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content wkit-multi-select-dropDown",style:{marginBottom:-35*(h.options.length-h.select2_defaultValue.length)+"px"},children:h.options.map(((e,t)=>{let a={value:e.value,lable:e.lable};return(0,g.jsx)(Ti,{children:(0,g.jsx)("div",{className:"wkit-wb-multiSelect-value",children:h.select2_defaultValue.find((e=>e.value==a.value))&&h.select2_defaultValue.find((e=>e.lable==a.lable))?"":(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{u(e,"select2_defaultValue",a,"add")}}),(0,g.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})})},t)}))})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.dimension_defaultValue&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsx)("div",{className:"wp-block-wrapper",children:(0,g.jsxs)("div",{className:"wb-dimension_defaultValue",children:[(0,g.jsxs)("div",{className:"wb-dimension_defaultValue-part",children:[(0,g.jsxs)("div",{className:"wb-dimension_defaultValue-lable",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-dimension_defaultValue-content",children:[(0,g.jsx)("input",{className:"wb-dimension-values wkit-top",type:"number",value:h.dimension_defaultValue.top,onChange:e=>{u(e,"dimension_defaultValue","top")}}),(0,g.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==h.dimension_defaultValue.isLinked?h.dimension_defaultValue.top:h.dimension_defaultValue.right,onChange:e=>{u(e,"dimension_defaultValue",1==h.dimension_defaultValue.isLinked?"top":"right")}}),(0,g.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==h.dimension_defaultValue.isLinked?h.dimension_defaultValue.top:h.dimension_defaultValue.bottom,onChange:e=>{u(e,"dimension_defaultValue",1==h.dimension_defaultValue.isLinked?"top":"bottom")}}),(0,g.jsx)("input",{className:"wb-dimension-values",type:"number",value:1==h.dimension_defaultValue.isLinked?h.dimension_defaultValue.top:h.dimension_defaultValue.left,onChange:e=>{u(e,"dimension_defaultValue",1==h.dimension_defaultValue.isLinked?"top":"left")}}),(0,g.jsx)("div",{className:1==h.dimension_defaultValue.isLinked?"wb-dimension-isLink wkit-wb-dark":"wb-dimension-isLink",onClick:e=>{u(e,"dimension_defaultValue","isLinked")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-link"})})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"}),(0,g.jsxs)("div",{className:"wb-dimension-default_unit",children:[(0,g.jsxs)("div",{className:"wb-dimension_defaultValue-lable",children:[(0,g.jsx)("span",{children:(0,a.__)("Select Default Unit","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field default value.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",style:{width:"20%"},onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.dimension_defaultValue.unit}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:h.dimension_units&&h.dimension_units.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsx)("option",{onClick:e=>{u(e,"dimension_defaultValue","unit")},children:e})},t)))})]})]})]})})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),(null!=h?.lable||o)&&("elementor"===i||"bricks"===i&&"heading"!==h?.type||"gutenberg"===i&&"gradient"!==h?.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Label","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label that appears above of the field.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:o?d?.section:h?.lable,type:"text",onChange:e=>{u(e,"lable")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.headingType&&"bricks"===i&&"heading"===h?.type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Choose between Normal or RawHTML output type.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:"normal"===(h.headingType||"normal")?(0,a.__)("Normal","wdesignkit"):(0,a.__)("RawHTML","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"normal",onClick:e=>{u(e,"headingType")},children:(0,a.__)("Normal","wdesignkit")}),(0,g.jsx)("option",{value:"rawhtml",onClick:e=>{u(e,"headingType")},children:(0,a.__)("RawHTML","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.lable&&"bricks"===i&&"heading"===h?.type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Label","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label that appears above of the field.","wdesignkit")})]})]}),(0,g.jsx)("textarea",{className:"wb-block-text-inp",value:h.lable,rows:3,onChange:e=>{u(e,"lable")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.showLable&&"bricks"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Show Label","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.showLable,onChange:e=>{u(e,"showLable")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.lableBlock&&1==h?.showLable&&"switcher"!=h?.type&&(e=>"gutenberg"!=i||!!["text","number","textarea","select","select2","headingtags"].includes(e))(h?.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Label Block","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label in a separate line.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.lableBlock,onChange:e=>{u(e,"lableBlock")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.repeater_type&&"elementor"==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Repeater type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The name must be unique and should only contain letters, numbers and underscore (_).","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.repeater_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"Old",onClick:e=>{u(e,"repeater_type")},children:(0,a.__)("Old","wdesignkit")}),(0,g.jsx)("option",{value:"New",onClick:e=>{u(e,"repeater_type")},children:(0,a.__)("New","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.description&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wb-block-texarea",children:[(0,g.jsxs)("span",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Description","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The description that appears below the field.","wdesignkit")})]})]}),(0,g.jsx)("textarea",{className:"wb-block-text-inp",value:h.description,type:"textarea",onChange:e=>{u(e,"description")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.title_field&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Title field","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-block-text-inp",value:h.title_field,type:"text",onChange:e=>{u(e,"title_field")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.placeHolder&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Placeholder","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field placeholder that appears when the field has no values.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.placeHolder,type:"text",onChange:e=>{u(e,"placeHolder")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.alert_type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Alert Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the type of Alert message.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.alert_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"warning",onClick:e=>{u(e,"alert_type")},children:(0,a.__)("Warning","wdesignkit")}),(0,g.jsx)("option",{value:"info",onClick:e=>{u(e,"alert_type")},children:(0,a.__)("info","wdesignkit")}),(0,g.jsx)("option",{value:"success",onClick:e=>{u(e,"alert_type")},children:(0,a.__)("Success","wdesignkit")}),(0,g.jsx)("option",{value:"danger",onClick:e=>{u(e,"alert_type")},children:(0,a.__)("Danger","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.parent_class&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Parent Class","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to select the parent class.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.parent_class,onChange:e=>{u(e,"parent_class")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.notice_type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Notice Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the type of Noitce message.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.notice_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"warning",onClick:e=>{u(e,"notice_type")},children:(0,a.__)("Warning","wdesignkit")}),(0,g.jsx)("option",{value:"info",onClick:e=>{u(e,"notice_type")},children:(0,a.__)("info","wdesignkit")}),(0,g.jsx)("option",{value:"success",onClick:e=>{u(e,"notice_type")},children:(0,a.__)("Success","wdesignkit")}),(0,g.jsx)("option",{value:"danger",onClick:e=>{u(e,"notice_type")},children:(0,a.__)("Danger","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.dismissible&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Dismissible","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to prevent deleting the first notice.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.dismissible,onChange:e=>{u(e,"dismissible")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),h?.deprecatedValue&&"elementor"===i&&(0,g.jsx)(g.Fragment,{children:h?.deprecatedValue.map(((e,i)=>(0,g.jsx)(g.Fragment,{children:Object.entries(e).map((([e,n])=>(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:e}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Enter value for "+e+".","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:n,type:"text",onChange:a=>{((e,a,i,n)=>{let r=[...t.cardData];if(s.current.repeater)var l=r[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id].fields[s.current.repeater];else l=r[0][s.current.array_type][s.current.sec_id].inner_sec[s.current.compo_id];[...l.deprecatedValue][i][n]=e.target.value,t.addToCarthandler(r)})(a,0,i,e)}})]})},i),(0,g.jsx)("hr",{className:"wb-controller-hr"})]})))})))}),null!=h?.rows&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Rows","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Number of rows.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-number-inp",min:0,value:h.rows,type:"number",onChange:e=>{u(e,"rows")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.defaultCount&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Default Count","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("default Count of Repeater item.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-number-inp",min:1==h.prevent_empty?1:0,value:h.defaultCount,type:"number",onChange:e=>{u(e,"defaultCount")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.show_unit&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("label",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Show Unit","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.show_unit,onChange:e=>{u(e,"show_unit")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.size_units&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsx)("div",{className:"wp-block-wrapper",children:(0,g.jsxs)("div",{className:"wb-number-setting",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Size Unit & Range","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of ranges for each register size.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-select-unit-label",children:[(0,g.jsx)("label",{style:{width:"20%"}}),(0,g.jsxs)("div",{className:"wb-select-unit-content",children:[(0,g.jsx)("label",{children:(0,a.__)("Min","wdesignkit")}),(0,g.jsx)("label",{children:(0,a.__)("Max","wdesignkit")}),(0,g.jsx)("label",{children:(0,a.__)("Step","wdesignkit")})]})]}),h.size_units.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wb-select-unit",children:[(0,g.jsxs)("div",{className:"wb-select-unit-checkbox",children:[(0,g.jsx)("input",{className:"wb-select-unit-inp",id:`wb-${e.type}-select`,type:"checkbox",checked:1==e.checked,onChange:e=>{u(e,"size_units",t,"checked")}}),(0,g.jsx)("label",{style:{opacity:1==e.checked?"1":"0.5"},htmlFor:`wb-${e.type}-select`,children:e.type})]}),(0,g.jsxs)("div",{className:"wb-unit-range-content",children:[(0,g.jsx)("div",{className:"wb-num-feild",children:(0,g.jsx)("input",{className:"wb-num-inp min",disabled:!e.checked,value:e.min,type:"number",onChange:e=>{u(e,"size_units",t,"min")}})}),(0,g.jsx)("div",{className:"wb-num-feild",children:(0,g.jsx)("input",{className:"wb-num-inp max",disabled:!e.checked,value:e.max,type:"number",onChange:e=>{u(e,"size_units",t,"max")}})}),(0,g.jsx)("div",{className:"wb-num-feild",children:(0,g.jsx)("input",{className:"wb-num-inp step",disabled:!e.checked,value:e.step,type:"number",onChange:e=>{u(e,"size_units",t,"step")}})})]})]})},t)))]})})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.dimension_units&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-dimension-unit",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Size Unit","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("div",{className:"wb-dimension-unit",children:[(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"px",type:"checkbox",checked:!!h.dimension_units.includes("px"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"px"})]}),(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"%",type:"checkbox",checked:!!h.dimension_units.includes("%"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"%"})]}),(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"deg",type:"checkbox",checked:!!h.dimension_units.includes("deg"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"deg"})]}),(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"rem",type:"checkbox",checked:!!h.dimension_units.includes("rem"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"rem"})]}),(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"em",type:"checkbox",checked:!!h.dimension_units.includes("em"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"em"})]}),(0,g.jsxs)("div",{className:"wb-units",children:[(0,g.jsx)("input",{value:"vh",type:"checkbox",checked:!!h.dimension_units.includes("vh"),onChange:e=>{u(e,"dimension_units")}}),(0,g.jsx)("label",{children:"vh"})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.label_on&&null!=h.label_off&&"elementor"==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-block-name",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Switcher Label","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The label for the “unchecked” state and “checked” state.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-switcher",children:[(0,g.jsxs)("div",{className:"wb-switcher-lable",children:[(0,g.jsx)("div",{className:"wb-block-swither-title",children:(0,a.__)("Switch is on","wdesignkit")}),(0,g.jsx)("input",{className:"wb-switcher-lable-inp",value:h.label_on,type:"text",placeholder:"Yes",onChange:e=>{u(e,"label_on")}})]}),(0,g.jsxs)("div",{className:"wb-switcher-lable",children:[(0,g.jsx)("div",{className:"wb-block-swither-title",children:(0,a.__)("Switch is off","wdesignkit")}),(0,g.jsx)("input",{className:"wb-switcher-lable-inp",value:h.label_off,type:"text",placeholder:"No",onChange:e=>{u(e,"label_off")}})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.url_options&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Options","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Turn on for url_options value.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.url_options,onChange:e=>{u(e,"url_options")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.is_external&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Is External","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.is_external,onChange:e=>{u(e,"is_external")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.nofollow&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("No Follow","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to add nofollow attribute.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.nofollow,onChange:e=>{u(e,"nofollow")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.custom_attributes&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Attributes","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-block-text-inp",value:h.custom_attributes,type:"text",onChange:e=>{u(e,"custom_attributes")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),h&&null!=h.return_value&&"bricks"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Return Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The value returned when checked.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.return_value,type:"text",onChange:e=>{u(e,"return_value")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.media_types&&"bricks"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-block-name",children:[(0,g.jsxs)("div",{className:"wb-block-title wkit-bottom-space",children:[(0,g.jsx)("span",{children:(0,a.__)("Media Types","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Supported media types. Available values are image, video, and svg.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-option-select",children:[(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==h.media_types.indexOf('"image"'),onChange:e=>{u(e,"media_types","image")}}),(0,g.jsx)("label",{htmlFor:"select-1",children:"gutenberg"==i?(0,a.__)("Image & Svg","wdesignkit"):(0,a.__)("Image","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==h.media_types.indexOf('"video"'),onChange:e=>{u(e,"media_types","video")}}),(0,g.jsx)("label",{htmlFor:"select-2",children:(0,a.__)("Video","wdesignkit")})]}),"gutenberg"!==i&&(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:-1!==h.media_types.indexOf('"svg"'),onChange:e=>{u(e,"media_types","svg")}}),(0,g.jsx)("label",{htmlFor:"select-3",children:(0,a.__)("Svg","wdesignkit")})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.skin&&"gutenberg"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wb-skin-content",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Types","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.skin}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"media",onClick:e=>{u(e,"skin")},children:(0,a.__)("Media","wdesignkit")}),(0,g.jsx)("option",{value:"inline",onClick:e=>{u(e,"skin")},children:(0,a.__)("Inline","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.nha_array&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wb-block-type",children:[(0,g.jsxs)("div",{className:"wkit-wb-option",children:[(0,g.jsx)("span",{children:(0,a.__)("Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the NHA type.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-NHA-option-select",children:[(0,g.jsx)("div",{className:"wb-select-component",children:(0,g.jsxs)("div",{className:"wb-select-component-content",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:!(!h.nha_array[0]||null===h?.nha_array?.[0]),onChange:e=>{u(e,"nha_array",0)}}),(0,g.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=h?.nha_array_lable?.[0]?h?.nha_array_lable?.[0]:c(h?.nha_array?.[0],"Normal"),onChange:e=>{u(e,"nha_array_name",0)},onBlur:e=>{h?.nha_array_lable?.[0]||u(e,"nha_null_name",0)}})]})}),(0,g.jsx)("div",{className:"wb-select-component",children:(0,g.jsxs)("div",{className:"wb-select-component-content",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:!(!h.nha_array[1]||null===h?.nha_array?.[1]),onChange:e=>{u(e,"nha_array",1)}}),(0,g.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=h?.nha_array_lable?.[1]?h?.nha_array_lable?.[1]:c(h?.nha_array?.[1],"Hover"),onChange:e=>{u(e,"nha_array_name",1)},onBlur:e=>{h?.nha_array_lable?.[1]||u(e,"nha_null_name",1)}})]})}),(0,g.jsx)("div",{className:"wb-select-component",children:(0,g.jsxs)("div",{className:"wb-select-component-content",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-3",type:"checkbox",checked:!(!h?.nha_array?.[2]||null===h.nha_array[2]),onChange:e=>{u(e,"nha_array",2)}}),(0,g.jsx)("input",{className:"wb-select-component-name",type:"text",value:null!=h?.nha_array_lable?.[2]?h.nha_array_lable[2]:c(h?.nha_array?.[2],"Active"),onChange:e=>{u(e,"nha_array_name",2)},onBlur:e=>{h?.nha_array_lable?.[2]||u(e,"nha_null_name",2)}})]})})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.types&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wb-block-type",children:[(0,g.jsxs)("div",{className:"wkit-wb-option wkit-bottom-space",children:[(0,g.jsx)("span",{children:(0,a.__)("Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("div",{className:"wb-option-select",children:["elementor"==i&&(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==h.types.indexOf('"classic"'),onChange:e=>{u(e,"types","classic")}}),(0,g.jsx)("label",{htmlFor:"select-1",children:(0,a.__)("Classic","wdesignkit")})]}),"gutenberg"==i&&(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-1",type:"checkbox",checked:-1!==h.types.indexOf('"classic"'),onChange:e=>{u(e,"types","classic")}}),(0,g.jsx)("label",{htmlFor:"select-1",children:(0,a.__)("Color & Image","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-select-component",children:[(0,g.jsx)("input",{className:"wb-select-component-inp",id:"select-2",type:"checkbox",checked:-1!==h.types.indexOf('"gradient"'),onChange:e=>{u(e,"types","gradient")}}),(0,g.jsx)("label",{htmlFor:"select-2",children:(0,a.__)("Gradient","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.options&&"headingtags"!=h.type&&"cpt"!=h.type&&!t.controller.controller.cpt_controller&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-options-main",children:[(0,g.jsxs)("div",{className:"wkit-wb-option",children:[(0,g.jsx)("span",{children:(0,a.__)("Drop Down Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of key => value pairs: [ 'key' => 'value', ... ]","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-options-content",children:[(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Value","wdesignkit")}),(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Options","wdesignkit")}),"styleimage"==h.type&&(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Svg","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-option-feild",children:[h.options.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wb-option",children:[(0,g.jsx)("input",{className:`wb-options-inp val ${p()}`,type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{u(e,"options_value",t)}}),(0,g.jsx)("input",{className:`wb-options-inp opt ${p()}`,opt:!0,type:"text",value:e.lable,placeholder:`label-${t}`,onChange:e=>{u(e,"options_lable",t)}}),"styleimage"==h.type&&(0,g.jsx)("input",{className:`wb-options-inp opt ${p()}`,opt:!0,type:"text",value:e.svg,placeholder:`svg-${t}`,onChange:e=>{u(e,"options_svg",t)}}),(0,g.jsx)("div",{className:"wb-option-close",onClick:()=>{_(t,"options")},children:(0,g.jsx)("span",{className:"popup-inp-remove-icon",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})})]})},t))),(0,g.jsxs)("div",{className:"wb-add-option",onClick:()=>{w("options",h.options.length)},children:[(0,g.jsx)("span",{className:"wb-addOption-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})}),(0,g.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.align_option&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-options-main",children:[(0,g.jsxs)("div",{className:"wkit-wb-option",children:[(0,g.jsx)("span",{children:(0,a.__)("Options","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("An array of key => value pairs: [ 'key' => 'value', ... ]","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wb-options-content",children:[(0,g.jsx)("label",{className:"wb-options-lable",style:{width:"25%"},children:(0,a.__)("Label","wdesignkit")}),(0,g.jsx)("label",{className:"wb-options-lable",style:{width:"25%"},children:(0,a.__)("Value","wdesignkit")}),(0,g.jsx)("label",{className:"wb-options-lable",style:{width:"45%"},children:(0,a.__)("Icon","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-option-feild",children:[h.align_option.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wb-option wkit-wb-align-options",children:[(0,g.jsx)("input",{className:`wb-options-inp val-${p()}`,style:{width:"25%"},type:"text",value:e.align_lable,placeholder:`label-${t}`,onChange:e=>{u(e,"align_lable",t)}}),(0,g.jsx)("input",{className:`wb-options-inp opt-${p()}`,style:{width:"25%"},type:"text",value:e.align_value,placeholder:`value-${t}`,onChange:e=>{u(e,"align_value",t)}}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},style:{minWidth:"40%"},children:[(0,g.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,g.jsx)("input",{type:"text",className:"wkit-wb-choose-inp",placeholder:e.align_icon,value:e[e.align_icon],onChange:a=>{u(a,e.align_icon,t)},style:{width:"100%"}}):(0,g.jsx)("label",{className:"wkit-wb-choose-inp",children:e.align_icon}):(0,g.jsx)("input",{type:"text",className:"wkit-wb-choose-inp",value:e.align_icon,placeholder:"custome-icon",onChange:e=>{u(e,"align_icon",t)},style:{width:"100%"}}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"eicon-text-align-left",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Align-Left","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-text-align-right",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Align-Right","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-text-align-center",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Align-Center","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-text-align-justify",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Align-Justify","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-arrow-up",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Up-Arrow","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-arrow-down",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Down-Arrow","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-arrow-right",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Right-Arrow","wdesignkit")}),(0,g.jsx)("option",{value:"eicon-arrow-left",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Left-Arrow","wdesignkit")}),(0,g.jsx)("option",{value:"",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Custom Icon","wdesignkit")}),"gutenberg"==i&&(0,g.jsxs)(Ti,{children:[(0,g.jsx)("option",{value:"align_title",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Custom Title","wdesignkit")}),(0,g.jsx)("option",{value:"align_svg",onClick:e=>{u(e,"align_icon",t)},children:(0,a.__)("Custom Svg","wdesignkit")})]})]})]}),(0,g.jsx)("div",{className:"wb-option-close",onClick:()=>{_(t,"align_option")},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})},t))),(0,g.jsxs)("div",{className:"wb-add-option",onClick:()=>{w("align_option",h.align_option.length)},children:[(0,g.jsx)("span",{className:"wb-addOption-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})}),(0,g.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.alignType&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Align Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Select the Align CSS property you want to use.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.alignType}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"text-align",onClick:e=>{u(e,"alignType")},children:(0,a.__)("text-align","wdesignkit")}),(0,g.jsx)("option",{value:"justify-content",onClick:e=>{u(e,"alignType")},children:(0,a.__)("justify-content","wdesignkit")}),(0,g.jsx)("option",{value:"align-items",onClick:e=>{u(e,"alignType")},children:(0,a.__)("align-items","wdesignkit")}),(0,g.jsx)("option",{value:"flex-direction",onClick:e=>{u(e,"alignType")},children:(0,a.__)("flex-direction","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.number_setting&&"gutenberg"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:`wb-block-name ${h.name}`,children:[(0,g.jsx)("div",{className:"wb-block-title",children:"Number Setting"}),(0,g.jsxs)("div",{className:"wb-number-setting-content",children:[(0,g.jsxs)("div",{className:"wb-num-feild",children:[(0,g.jsxs)("div",{className:"wb-number-setting-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Min","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:`wb-num-inp ${h.name}`,id:h.name,name:h.name,min:!0,value:h.number_setting.min,type:"number",onChange:e=>{u(e,"num-min")}})]}),(0,g.jsxs)("div",{className:"wb-num-feild",children:[(0,g.jsxs)("div",{className:"wb-number-setting-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Max","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-num-inp max",value:h.number_setting.max,type:"number",onChange:e=>{u(e,"num-max")}})]}),(0,g.jsxs)("div",{className:"wb-num-feild",children:[(0,g.jsxs)("div",{className:"wb-number-setting-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Step","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-num-inp step",value:h.number_setting.step,type:"number",onChange:e=>{u(e,"num-step")}})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.language&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-language-setting",children:[(0,g.jsx)("div",{className:"wb-block-title",children:(0,g.jsxs)("div",{className:"wkit-wb-black-division",children:[(0,g.jsx)("span",{children:(0,a.__)("Code","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to display the label.","wdesignkit")})]})]})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{style:{textTransform:"uppercase"},children:h.language}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"html",onClick:e=>{u(e,"language")},children:(0,a.__)("HTML","wdesignkit")}),(0,g.jsx)("option",{value:"css",onClick:e=>{u(e,"language")},children:(0,a.__)("CSS","wdesignkit")}),(0,g.jsx)("option",{value:"javascript",onClick:e=>{u(e,"language")},children:(0,a.__)("JAVASCRIPT","wdesignkit")})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.exclude_inline_options&&"inline"==h.skin&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Exclude Inline Options","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("select",{className:`wb-category-option ${h.name}`,onChange:e=>{u(e,"exclude_inline_options")},children:[(0,g.jsx)("option",{value:"none",selected:"none"===h.exclude_inline_options,children:(0,a.__)("None","wdesignkit")}),(0,g.jsx)("option",{value:"icon",selected:"icon"===h.exclude_inline_options,children:(0,a.__)("Icon","wdesignkit")}),(0,g.jsx)("option",{value:"svg",selected:"svg"===h.exclude_inline_options,children:(0,a.__)("Svg","wdesignkit")})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.separator&&"bricks"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Separator","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.separator}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"default",onClick:e=>{u(e,"separator")},children:(0,a.__)("Default","wdesignkit")}),(0,g.jsx)("option",{value:"before",onClick:e=>{u(e,"separator")},children:(0,a.__)("Before","wdesignkit")}),(0,g.jsx)("option",{value:"after",onClick:e=>{u(e,"separator")},children:(0,a.__)("After","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.selectors&&null!=h.selector_value&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsx)("div",{className:"wp-block-wrapper",children:(0,g.jsxs)("div",{className:"wb-selector-content wb-selector-value",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Selectors Value","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{type:"text",value:h.selector_value,className:"wb-block-text-inp",onChange:e=>{u(e,"selector_value")}})]})})}),(0,g.jsx)("hr",{className:"wb-controller-hr"}),(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsx)("div",{className:"wp-block-wrapper",children:(0,g.jsxs)("div",{className:"wb-selector-content wb-selector-class",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-block-text-inp",value:h.selectors,type:"text",onChange:e=>{u(e,"selectors")}})]})})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.selectors&&"align"==h.type&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsx)("div",{className:"wp-block-wrapper",children:(0,g.jsxs)("div",{className:"wb-selector-content wb-selector-class",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-block-text-inp",value:h.selectors,type:"text",onChange:e=>{u(e,"selectors")}})]})})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.selector&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Selectors","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsx)("input",{className:"wb-block-text-inp",value:h.selector,type:"text",onChange:e=>{u(e,"selector")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.multiple&&"bricks"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Multiple","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to allow multiple value selection.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.multiple,onChange:e=>{u(e,"multiple")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.alpha&&"bricks"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Alpha","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to allow alpha channel.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.alpha,onChange:e=>{u(e,"alpha")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.global&&"bricks"!=i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Global Color","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Default color in RGB, RGBA, or HEX format.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.global,onChange:e=>{u(e,"global")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.prevent_empty&&"bricks"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Prevent Empty","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.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,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.prevent_empty,onChange:e=>{u(e,"prevent_empty")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.responsive&&("gutenberg"!==i||"number"!==h.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("label",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Responsive","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Switch to Mobile, Laptop, Tablet mode","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",style:"slider"==h?.type&&"gutenberg"==i&&1==h?.show_unit?{opacity:"0.5"}:{},children:[(0,g.jsx)("input",{type:"checkbox",checked:h.responsive,onChange:e=>{u(e,"responsive")},disabled:"slider"==h?.type&&"gutenberg"==i&&1==h?.show_unit}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.sanitizer_value&&"gutenberg"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Sanitize","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to apply the Sanitization.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{className:"wkit-wb-choose-inp",style:{textTransform:"none"},children:r.includes(h?.sanitizer_dropdown_value)?"wdk_sanitizer":h?.sanitizer_dropdown_value}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.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,g.jsxs)("option",{value:e,onClick:e=>{u(e,"sanitizer_dropdown_value")},children:[(0,a.__)(`${e}`,"wdesignkit")," "]},t)))})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.sanitizer_value&&"gutenberg"!==i&&r.includes(h?.sanitizer_dropdown_value)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsx)("div",{className:"wb-block-title",children:(0,g.jsx)("span",{children:(0,a.__)("WDK Sanitize","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{className:"wkit-wb-choose-inp",style:{textTransform:"none"},children:h?.sanitizer_dropdown_value}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:r.map(((e,t)=>(0,g.jsxs)("option",{value:e,onClick:e=>{u(e,"sanitizer_dropdown_value")},children:[(0,a.__)(`${e}`,"wdesignkit")," "]},t)))})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),"custom"==h?.sanitizer_dropdown_value&&"gutenberg"!==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wb-block-texarea",children:[(0,g.jsxs)("span",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Add Custom Sanitizer","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The field for adding Custom Sanitizer.","wdesignkit")})]})]}),(0,g.jsx)("textarea",{className:"wb-block-text-inp",value:h.sanitizer_value,type:"textarea",onChange:e=>{u(e,"sanitizer_value")}})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),(null!=h?.condition_value?.values||o)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",style:{marginBottom:"2px"},children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Conditions","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to apply the conditions.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:o?d?.conditions||!1:h?.conditions,onChange:e=>{u(e,"conditions")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(h&&h.conditions&&1==h.conditions||o&&1==d?.conditions)&&(0,g.jsxs)(g.Fragment,{children:["bricks"!=i&&(0,g.jsxs)("div",{className:"wb-condition-relation",children:[(0,g.jsx)("label",{className:"wb-relation-lable",children:(0,a.__)("Relation of Condition","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{style:{textTransform:"uppercase"},children:o?d?.condition_value?.relation||"OR":h.condition_value.relation}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"or",onClick:e=>{u(e,"condition_relation")},children:(0,a.__)("OR","wdesignkit")}),(0,g.jsx)("option",{value:"and",onClick:e=>{u(e,"condition_relation")},children:(0,a.__)("AND","wdesignkit")})]})]})]}),(0,g.jsxs)("div",{className:"wb-options-main",children:[(0,g.jsxs)("div",{className:"wb-options-content",children:[(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Name","wdesignkit")}),(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Operator","wdesignkit")}),(0,g.jsx)("label",{className:"wb-options-lable",children:(0,a.__)("Value","wdesignkit")})]}),(0,g.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,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wb-option",children:[(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.name,placeholder:`name-${t}`,onChange:e=>{u(e,"conditions_name",t)}})}),(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},style:{width:"100%"},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:e.operator}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content "+(a?"wkit-wb-last-cd":""),children:[(0,g.jsx)("option",{value:"==",onClick:e=>{u(e,"conditions_operator",t)},children:"=="}),(0,g.jsx)("option",{value:"!=",onClick:e=>{u(e,"conditions_operator",t)},children:"!="})]})]})}),(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{u(e,"conditions_value",t)}})}),(0,g.jsx)("div",{className:"wb-option-close",onClick:()=>{_(t,"conditions")},children:(0,g.jsx)("span",{className:"popup-inp-remove-icon",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})})]})},t)})):h?.condition_value?.values?.map(((e,t)=>(0,g.jsx)(Ti,{children:(0,g.jsxs)("div",{className:"wb-option",children:[(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.name,placeholder:`name-${t}`,onChange:e=>{u(e,"conditions_name",t)}})}),(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},style:{width:"100%"},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:e.operator}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"==",onClick:e=>{u(e,"conditions_operator",t)},children:"=="}),(0,g.jsx)("option",{value:"!=",onClick:e=>{u(e,"conditions_operator",t)},children:"!="})]})]})}),(0,g.jsx)("div",{className:"wkit-wb-dd-toption",children:(0,g.jsx)("input",{className:"wkit-wb-options-inp",type:"text",value:e.value,placeholder:`value-${t}`,onChange:e=>{u(e,"conditions_value",t)}})}),(0,g.jsx)("div",{className:"wb-option-close",onClick:()=>{_(t,"conditions")},children:(0,g.jsx)("span",{className:"popup-inp-remove-icon",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})})]})},t))),(0,g.jsxs)("div",{className:"wb-add-option",onClick:()=>{w("conditions")},children:[(0,g.jsx)("span",{className:"wb-addOption-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})}),(0,g.jsx)("span",{className:"wb-addOption-lable",children:(0,a.__)("Add","wdesignkit")})]})]})]})]}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),["text","textarea","wysiwyg","code","media"].includes(h?.type)&&"elementor"==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("AI Support","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Want AI Support or not.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.ai_support,onChange:e=>{u(e,"ai_support")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.dynamic&&("elementor"===i||"gutenberg"===i&&"slider"!==h.type)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("label",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Dynamic","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Turn on for dynamic value","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.dynamic,onChange:e=>{u(e,"dynamic")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.input_type&&"elementor"==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Input Type","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("The input field type. Available values are all HTML5 supported types.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{f(e)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:h.input_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-content",children:[(0,g.jsx)("option",{value:"text",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Text","wdesignkit")}),(0,g.jsx)("option",{value:"number",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Number","wdesignkit")}),(0,g.jsx)("option",{value:"color",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Color","wdesignkit")}),(0,g.jsx)("option",{value:"date",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Date","wdesignkit")}),(0,g.jsx)("option",{value:"datetime-local",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Datetime-Local","wdesignkit")}),(0,g.jsx)("option",{value:"month",onClick:e=>{u(e,"input_type")},children:(0,a.__)("Month","wdesignkit")}),(0,g.jsxs)("option",{value:"time",onClick:e=>{u(e,"input_type")},children:[(0,a.__)("Time","wdesignkit")," "]}),(0,g.jsxs)("option",{value:"week",onClick:e=>{u(e,"input_type")},children:[(0,a.__)("Week","wdesignkit")," "]})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.controlClass&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wb-block-name",children:(0,g.jsxs)("div",{className:"wp-block-wrapper",children:[(0,g.jsxs)("div",{className:"wb-block-title",children:[(0,g.jsx)("span",{children:(0,a.__)("Classes","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("span",{className:"wkit-wb-plus-icon wkit-screen-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsxs)("span",{className:"wkit-wb-tooltiptext",children:[(0,a.__)("Add custom classes to control wrapper in the panel. ","wdesignkit"),(0,g.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"use-control-classes-to-style-ui-elements/",className:"wkit-ct-doc-link",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,g.jsx)("input",{className:"wb-block-text-inp",value:h.controlClass,type:"text",onChange:e=>{u(e,"controlClass")}})]})})}),(e=>{let t=bi[e?.type];if((t?.videoLink||t?.document)&&!wdkitData?.wdkit_white_label?.help_link)return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-block-link-container",children:[t?.videoLink&&(0,g.jsxs)("div",{className:"wdkit-block-cont-link",onClick:()=>window.open(t?.videoLink,"_blank"),children:[(0,g.jsx)("i",{className:"wdkit-i-youtube"}),(0,g.jsx)("span",{children:(0,a.__)("Watch Video","wdesignkit")})]}),t?.document&&(0,g.jsxs)("div",{className:"wdkit-block-cont-link",onClick:()=>window.open(t?.document,"_blank"),children:[(0,g.jsx)("i",{className:"wdkit-i-wb-docs"}),(0,g.jsx)("span",{children:(0,a.__)("Read Document","wdesignkit")})]})]})})})(h)]})})})})),Mi=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:"wdkit-i-wbc-text",keyword:["text"]},{name:"number",label:"Number",icon:"wdkit-i-wbc-numbers",keyword:["number"]},{name:"textarea",label:"Textarea",icon:"wdkit-i-wbc-text-area",keyword:["textarea"]},{name:"switcher",label:"Toggle",icon:"wdkit-i-wbc-switcher",keyword:["toggle","switcher","checkbox"]},{name:"popover",label:"GroupPopover",icon:"wdkit-i-wbc-popover",keyword:["grouppopover","popover","popup"]},{name:"select",label:"Select",icon:"wdkit-i-wbc-select",keyword:["select","dropdown"]},{name:"select2",label:"Select2",icon:"wdkit-i-wbc-select-2",keyword:["select2","multiselect","multidropdown"]},{name:"choose",label:"RadioAdvanced",icon:"wdkit-i-wbc-choose",keyword:["choose","radioadvanced","align","justify"]},{name:"color",label:"Color",icon:"wdkit-i-wbc-color",keyword:["color"]},{name:"gradientcolor",label:"GradientColor",icon:"wdkit-i-wbc-gradient-color",keyword:["gradientcolor"]},{name:"datetime",label:"DateTime",icon:"wdkit-i-wbc-date-time",keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:"wdkit-i-wbc-gallery",keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:"wdkit-i-wbc-repeater",keyword:["repeater"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:"wdkit-i-wbc-post-listing",keyword:["post type","custom post","selecttemplate","posttype","post listing","postlisting"]},{name:"product_listing",label:"Product Listing",icon:"wdkit-i-wbc-post-listing",keyword:["product listing","product","listing"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:"wdkit-i-wbc-url",keyword:["url","link"]},{name:"media",label:"Media",icon:"wdkit-i-wbc-media",keyword:["media","image"]},{name:"iconscontrol",label:"IconsControl",icon:"wdkit-i-wbc-icon-control",keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:"wdkit-i-wbc-heading-tags",keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:"wdkit-i-wbc-slider",keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:"wdkit-i-wbc-dimention",keyword:["padding","margin","dimension"]},{name:"normalhover",label:"NormalHover",icon:"wdkit-i-wbc-normal-hover",keyword:["hover","normalhover"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Heading",icon:"wdkit-i-wbc-heading",keyword:["heading","info","note","labelheading"]},{name:"rawhtml",label:"RawHTML",icon:"wdkit-i-wbc-raw-html",keyword:["rawhtml","info","note"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:"wdkit-i-wbc-typography",keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:"wdkit-i-wbc-text-shadow",keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:"wdkit-i-wbc-box-shadow",keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:"wdkit-i-wbc-border",keyword:["border"]},{name:"background",label:"Background",icon:"wdkit-i-wbc-background",keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:"wdkit-i-wbc-css-filter",keyword:["cssfilter","filtercss"]}]}}],Fi=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:"wdkit-i-wbc-text",keyword:["text"]},{name:"number",label:"Number",icon:"wdkit-i-wbc-numbers",keyword:["number"]},{name:"textarea",label:"Textarea",icon:"wdkit-i-wbc-text-area",keyword:["textarea"]},{name:"wysiwyg",label:"WYSIWYG",icon:"wdkit-i-wbc-wysiwyg",keyword:["textarea","wysiwyg"]},{name:"switcher",label:"Switcher",icon:"wdkit-i-wbc-switcher",keyword:["toggle","switcher","checkbox"]},{name:"popover",label:"Popover",icon:"wdkit-i-wbc-popover",keyword:["grouppopover","popover","popup"]},{name:"select",label:"Select",icon:"wdkit-i-wbc-select",keyword:["select","dropdown"]},{name:"select2",label:"Select2",icon:"wdkit-i-wbc-select-2",keyword:["select2","multiselect","multidropdown"]},{name:"choose",label:"Choose",icon:"wdkit-i-wbc-choose",keyword:["choose","radioadvanced","align","justify"]},{name:"color",label:"Color",icon:"wdkit-i-wbc-color",keyword:["color"]},{name:"datetime",label:"DateTime",icon:"wdkit-i-wbc-date-time",keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:"wdkit-i-wbc-gallery",keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:"wdkit-i-wbc-repeater",keyword:["repeater"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:"wdkit-i-wbc-post-listing",keyword:["post type","custom post","selecttemplate","posttype","post listing","postlisting"]},{name:"selecttemplate",label:"Select Template",icon:"wdkit-i-wbc-post-listing",keyword:["selecttemplate","query","select template"]},{name:"product_listing",label:"Product Listing",icon:"wdkit-i-wbc-post-listing",keyword:["product listing","product","listing"]},{name:"taxonomy",label:"Taxonomy",icon:"wdkit-i-wbc-post-listing",keyword:["taxonomy","category","tags"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:"wdkit-i-wbc-url",keyword:["url","link"]},{name:"media",label:"Media",icon:"wdkit-i-wbc-media",keyword:["media","image"]},{name:"iconscontrol",label:"IconsControl",icon:"wdkit-i-wbc-icon-control",keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:"wdkit-i-wbc-heading-tags",keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:"wdkit-i-wbc-slider",keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:"wdkit-i-wbc-dimention",keyword:["padding","margin","dimension"]},{name:"normalhover",label:"NormalHover",icon:"wdkit-i-wbc-normal-hover",keyword:["hover","normalhover"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Heading",icon:"wdkit-i-wbc-heading",keyword:["heading","info","note","labelheading"]},{name:"rawhtml",label:"RawHTML",icon:"wdkit-i-wbc-raw-html",keyword:["rawhtml","info","note"]},{name:"divider",label:"Divider",icon:"wdkit-i-wbc-devider",keyword:["divider","separator"]},{name:"preview",label:"Preview",icon:"wdkit-i-wbc-preview",keyword:["preview"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:"wdkit-i-wbc-typography",keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:"wdkit-i-wbc-text-shadow",keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:"wdkit-i-wbc-box-shadow",keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:"wdkit-i-wbc-border",keyword:["border"]},{name:"background",label:"Background",icon:"wdkit-i-wbc-background",keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:"wdkit-i-wbc-css-filter",keyword:["cssfilter","filtercss"]}]}}],Ii=[{DataControls:{Name:"Data Controls",data:[{name:"text",label:"Text",icon:"wdkit-i-wbc-text",keyword:["text"]},{name:"number",label:"Number",icon:"wdkit-i-wbc-numbers",keyword:["number"]},{name:"textarea",label:"Textarea",icon:"wdkit-i-wbc-text-area",keyword:["textarea","wysiwyg"]},{name:"wysiwyg",label:"WYSIWYG",icon:"wdkit-i-wbc-wysiwyg",keyword:["wysiwyg","editor"]},{name:"switcher",label:"Checkbox",icon:"wdkit-i-wbc-switcher",keyword:["toggle","switcher","checkbox"]},{name:"select",label:"DropDown",icon:"wdkit-i-wbc-select",keyword:["select","dropdown"]},{name:"select2",label:"MultiSelect",icon:"wdkit-i-wbc-select-2",keyword:["select2","multiselect","multidropdown"]},{name:"align",label:"Align",icon:"wdkit-i-wbc-choose",keyword:["align","choose"]},{name:"color",label:"Color",icon:"wdkit-i-wbc-color",keyword:["color"]},{name:"gradientcolor",label:"GradientColor",icon:"wdkit-i-wbc-gradient-color",keyword:["gradientcolor"]},{name:"datetime",label:"DateTime",icon:"wdkit-i-wbc-date-time",keyword:["datetime","time"]},{name:"gallery",label:"Gallery",icon:"wdkit-i-wbc-gallery",keyword:["gallery","image","multimedia"]},{name:"repeater",label:"Repeater",icon:"wdkit-i-wbc-repeater",keyword:["repeater"]}]},DynamicControls:{Name:"Dynamic Controls",data:[{name:"cpt",label:"Post Listing",icon:"wdkit-i-wbc-post-listing",keyword:["post type","custom post","selecttemplate","posttype","postlisting"]},{name:"product_listing",label:"Product Listing",icon:"wdkit-i-wbc-post-listing",keyword:["product listing","product","listing"]}]},"Multivalue Controls":{Name:"Multivalue Controls",data:[{name:"url",label:"URL",icon:"wdkit-i-wbc-url",keyword:["url","link"]},{name:"media",label:"Media",icon:"wdkit-i-wbc-media",keyword:["media","image"]},{name:"iconscontrol",label:"Icon",icon:"wdkit-i-wbc-icon-control",keyword:["icon","fontawesome","iconscontrol"]},{name:"headingtags",label:"HeadingTags",icon:"wdkit-i-wbc-heading-tags",keyword:["headingtags"]}]},"Unit Controls":{Name:"Unit Controls",data:[{name:"slider",label:"Slider",icon:"wdkit-i-wbc-slider",keyword:["slider","range"]},{name:"dimension",label:"Dimension",icon:"wdkit-i-wbc-dimention",keyword:["padding","margin","dimension"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Info",icon:"wdkit-i-wbc-heading",keyword:["heading","info","note","labelheading"]},{name:"divider",label:"Divider",icon:"wdkit-i-wbc-devider",keyword:["divider","separator"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:"wdkit-i-wbc-typography",keyword:["typography"]},{name:"textshadow",label:"TextShadow",icon:"wdkit-i-wbc-text-shadow",keyword:["textshadow","shadow"]},{name:"boxshadow",label:"BoxShadow",icon:"wdkit-i-wbc-box-shadow",keyword:["boxshadow","shadow"]},{name:"border",label:"Border",icon:"wdkit-i-wbc-border",keyword:["border"]},{name:"background",label:"background",icon:"wdkit-i-wbc-background",keyword:["background"]},{name:"cssfilter",label:"CSS Filter",icon:"wdkit-i-wbc-css-filter",keyword:["cssfilter","filtercss"]}]}}],{Fragment:Bi}=wp.element,Oi=Ya((e=>({widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(ji(t)),addToActiveController:t=>e(Si(t)),addToActiveSection:t=>e(Di(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(""),[n,r]=(0,e.useState)("Data Controls"),[l,o]=(0,e.useState)(!1);var d=wdkitData.WDKIT_URL,c="";"elementor"==t.widgetdata.type?c=Fi:"gutenberg"==t.widgetdata.type?c=Mi:"bricks"==t.widgetdata.type&&(c=Ii);const p=()=>{let e=(new Date).getFullYear().toString().slice(-2);return Math.random().toString(36).substr(2,6)+e};var m={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 u=(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_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{var n=ki[e.toLowerCase()],r=Object.assign({},n,{name:e.toLowerCase()+"_"+p()}),l=[...t.cardData],o=l[0][t.array_type][i].inner_sec[s.compo_id]?.fields;if(s?.nha_type){let e=Object.assign({},r,{key:s?.nha_type});o.push(e),t.addToCarthandler(l)}else o.push(r),t.addToCarthandler(l)}else{let a=p();const s=ki[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 r=Object.assign({},s,{name:e.toLowerCase()+"_"+a,unique_id:a,fields:n});let l=[...t.cardData];l?.[0]?.[t.array_type]?.[i]?.inner_sec&&l?.[0]?.[t.array_type]?.[i]?.inner_sec.push(r),t.addToCarthandler(l)}},h=e=>{let a=[...t.cardData];var i=a[0][t.array_type];i.length>0?t.section_id.sec_id>-1?u(e,t.section_id.sec_id):(u(e,i.length-1),t.addToActiveSection({sec_id:Number(i.length-1),array_type:t.array_type})):(i.push(m),u(e,0),t.addToCarthandler(a),t.addToActiveSection({sec_id:0,array_type:t.array_type}))};return(0,g.jsxs)("div",{className:"wkit-wb-components",children:[(0,g.jsxs)("div",{className:"wkit-wb-search-bar",children:[(0,g.jsx)("input",{className:"wkit-wb-search-input",type:"text",placeholder:"Search",onChange:e=>{s(e.target.value),(e=>{if(""==e.target.value.trim())l&&o(!1),document.querySelectorAll(".wkit-wb-widget-heading").forEach(((e,t)=>{e.dataset.toggle!==n&&e?.nextSibling?.classList?.contains("wkit-wb-blockshow")&&e?.nextSibling?.classList?.remove("wkit-wb-blockshow")}));else{document.querySelectorAll(".wkit-wb-all-widgets").forEach(((e,t)=>{e.classList.add("wkit-wb-blockshow")}));let t=Object.values(c[0]).flatMap((e=>e.data)).findIndex((t=>t.keyword.toString().includes(e.target.value.toLowerCase())));o(-1==t)}})(e)}}),(0,g.jsx)("i",{className:"wdkit-i-search"})]}),l?(0,g.jsxs)("div",{className:"wdkit-wb-not-found",children:[(0,g.jsx)("img",{className:"wdkit-not-found-controller",src:d+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("span",{className:"wdkit-no-controller-found",children:(0,a.__)("No Result Found","wdesignkit")})]}):(0,g.jsx)("div",{className:"wkit-wb-controllers",children:c.length>0&&Object.values(c[0]).map(((e,t)=>(e.Name&&e.Name,(0,g.jsxs)(Bi,{children:[0!=t&&(0,g.jsx)("hr",{className:"wkit-wb-horizontal-line"}),(0,g.jsxs)("div",{className:"wkit-wb-widget-heading","data-toggle":e.Name,onClick:t=>{var a;a=e.Name,r(n==a?"":a)},children:[(0,g.jsx)("span",{onClick:e=>{e.target.parentElement.click()},children:e.Name}),(0,g.jsx)("span",{className:"wb-component-btn "+(n==e.Name?"wkit-wb-rotate-icon":""),onClick:e=>{e.target.parentElement.click()},children:(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})})]}),(0,g.jsx)("div",{className:n==e.Name?"wkit-wb-all-widgets wkit-wb-blockshow":"wkit-wb-all-widgets",children:e.data.filter((e=>""==i.trim()||e.keyword.toString().includes(i.toLowerCase())?e:void 0)).map(((e,t)=>{let a=e.label,i=e.name,s=e.icon;return(0,g.jsx)(Bi,{children:(0,g.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=>{h(i)},onTouchEndCapture:e=>{h(i)},"data-component":i.toLowerCase().split(" ").join(""),children:[(0,g.jsx)("span",{className:"wdkit-wbc-icon-cover",children:(0,g.jsx)("i",{className:s||""})}),(0,g.jsx)("span",{className:"wkit-wb-widget-text",children:a})]})},t)}))})]},t))))})]})}));let Ri=new AbortController;const Vi=t=>{const[i,n]=(0,e.useState)({loader:!1,url:""});var r=wdkitData.WDKIT_URL,l=wdkitData?.wdkit_white_label?.plugin_logo||r+"assets/images/jpg/wdkit_loader.gif";const o=e=>{e.target.closest(".wkit-wb-live-preview")&&!e.target.closest(".wkit-popup-close-icon")||(Ri&&Ri.abort(),n({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,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-preview-btn-container",children:[d("btn")&&(0,g.jsx)("span",{className:"wkit-live-preview-tooltip",children:d("tooltip")}),(0,g.jsxs)("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 ");n(e),a.classList.contains("wdkit-saved")&&a.classList.contains("wdkit-disable")||a.click();let r={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};Ri=new AbortController;let l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("type","wkit_widget_preview"),l.append("widget_data",JSON.stringify(r)),s().post(ajaxurl,l,{signal:Ri.signal}).then((a=>{if(a.data.success){if(n({...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")&&(n({...e,loader:!1}),clearInterval(t))}),100)}}else n({...e,loader:!1})}))})()},children:[(0,g.jsx)("i",{className:"wdkit-i-eye"}),(0,a.__)("Preview","wdesignkit")]})]}),(i.url||i.loader)&&"bricks"!==t?.widget_data?.type&&(0,g.jsx)("div",{id:"wkit-wb-popup-open",className:"wkit-overlay wkit-wb-preview-popup",onClick:e=>{o(e)},children:(0,g.jsxs)("div",{className:"wkit-wb-live-preview",children:[(0,g.jsx)("div",{className:"wkit-popup-close-icon",onClick:e=>{o(e)},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),i.loader&&(0,g.jsx)("div",{className:"wkit-loader-container",children:(0,g.jsx)("img",{className:"wkit-loader-logo",src:l,alt:(0,a.__)("WDesignKit Logo","wdesignkit")})}),i.url&&(0,g.jsx)("iframe",{className:"wkit-widget-iframe",referrerPolicy:"no-referrer",src:i.url,onLoad:e=>{(()=>{i?.loader&&n({...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:Wi}=wp.element,qi=Ya((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($i(t)),addTowidgethandler:t=>e(Ni(t)),addToActiveController:t=>e(Si(t)),addToEditor_code:t=>e(Ci(t))})))((t=>{const[i,n]=(0,e.useState)("html"),[r,l]=(0,e.useState)(!1),[o,d]=(0,e.useState)(!1),[c,p]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(0),[_,f]=(0,e.useState)(0),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(""),[y,j]=(0,e.useState)(""),[N,$]=(0,e.useState)(""),[C,S]=(0,e.useState)(""),[D,E]=(0,e.useState)(""),[P,A]=(0,e.useState)([]),T=(0,e.useRef)(),L=(0,e.useRef)(null),M=((0,e.useRef)(),(0,e.useRef)(),(0,e.useRef)());var F=wdkitData.WDKIT_URL;let I=["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 s()("https://api.cdnjs.com/libraries").then((e=>e?.data?.results?.length>0?e?.data?.results:[]));A(e)})()}),[]),(0,e.useEffect)((()=>{if(y){let e=[];P.filter((t=>{if(y.trim()&&t.latest?.includes(y.trim().replaceAll(" ","-").toLowerCase())||t.name?.includes(y.trim().replaceAll(" ","-").toLowerCase())){const a=t?.latest?.split(".").pop();x==a&&e.push(t)}})),setTimeout((()=>{S(e)}),300)}if(N){let e=[];P.filter((t=>{if(N.trim()&&t.latest?.includes(N.trim().replaceAll(" ","-").toLowerCase())||t.name?.includes(N.trim().replaceAll(" ","-").toLowerCase())){const a=t?.latest?.split(".").pop();x==a&&e.push(t)}})),setTimeout((()=>{E(e)}),300)}}),[y,N]);const O=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)((()=>{const e=e=>{"Escape"===e.key&&k&&b(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}})),(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)})),h!=e.getValue().length&&w(e.getValue().length),_!=e.session.getLength()&&f(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?l(!0):"wkit-livePreview-id"==document.fullscreenElement.id&&p(!0):(l(!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 R=(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][x].length&&""==i[0][x][0]?i[0][x][0]=a:i[0][x].push(a),"css"===x?j(""):$(""),t.addTolinkhandler(i))},V=(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))},W=(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)))},q=e=>{if(e){let t=/\/(\d+\.\d+(\.\d+)?)(\/|\/.*)$/,a=e.match(t);return a?a[1]:null}},G=(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"))?(b(""),v(""),O(),j(""),$("")):"click"==t&&(b(""),v(""))},z=(e,a)=>{let i=[...t.Editor_data];"js"==a?T.current<e?(i[0].js.splice(e+1,0,i[0].js[T.current]),i[0].js.splice(T.current,1),t.addTolinkhandler(i)):T.current>e&&(i[0].js.splice(e,0,i[0].js[T.current]),i[0].js.splice(T.current+1,1),t.addTolinkhandler(i)):"css"==a&&(T.current<e?(i[0].css.splice(e+1,0,i[0].css[T.current]),i[0].css.splice(T.current,1),t.addTolinkhandler(i)):T.current>e&&(i[0].css.splice(e,0,i[0].css[T.current]),i[0].css.splice(T.current+1,1),t.addTolinkhandler(i)))},H=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"))},U=(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"}),r=ace.edit("editor-js",{theme:"ace/theme/cobalt",mode:"ace/mode/javascript"});const l=(e,t,a,i)=>{var s;if(null!=a)var n=a;else n=t;let r=(s=e,(new DOMParser).parseFromString(s,"text/html").body).querySelectorAll([`[data-${n}]`]),l=Object.values(r);var o=0;return l.length>0&&(l.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}))&&(l(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,""),Z()))}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}))&&(l(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,""),Z()))}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=r.getCursorPosition(),r.session.insert(o,e)):"css"===i&&(o=n.getCursorPosition(),n.session.insert(o,"{{parent-class}}"))},J=()=>{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}},K=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}},Z=()=>{let e=document.querySelector(".wkit-wb-loopError-popup");e&&(e.style.display="flex",setTimeout((()=>{e.style.display="none"}),2e3))},Y=(e,a)=>{if(!I.includes(e.type))return"repeater"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Select repeater"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater_index",e.name)},children:"Index"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-wb-short-value",onClick:()=>{U(e.name,"repeater_UID",e.name)},children:"ID"}),e.fields.map(((t,a)=>(0,g.jsx)(Wi,{children:Y(t,e.name)},a)))]})]}):"cpt"==e.type||"product_listing"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Listing content"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cpt",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"title",e.name)},children:"Title"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"description",e.name)},children:"Description"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"thumbnail",e.name)},children:"Thumbnail"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"post_date",e.name)},children:"Post Date"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"post_link",e.name)},children:"Post Link"}),"product_listing"!=e.type&&(0,g.jsxs)(Wi,{children:[(0,g.jsx)("hr",{className:"wkit-wp-editor-hr"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_id",e.name)},children:"Author ID"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_name",e.name)},children:"Author Name"}),"gutenberg"!=t?.widgetdata?.type&&(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_email",e.name)},children:"Author Email"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_profile",e.name)},children:"Author Profile"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"auth_url",e.name)},children:"Author URL"})]}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Category"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name+"_cat","cpt_cat",e.name)},children:"loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cat_name",e.name)},children:"name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"cat_url",e.name)},children:"URL"})]}),(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-inside-drp-head",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Tag"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:"wb-controller-values wkit-inside-drp-body",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name+"_tag","cpt_tag",e.name)},children:"loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"tag_name",e.name)},children:"name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"tag_url",e.name)},children:"URL"})]})]})]}):"taxonomy"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Taxonomy"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:"wb-controller-values",children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxonomy",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"title",e.name)},children:"Name"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"description",e.name)},children:"Description"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_image",e.name)},children:"Image"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_slug",e.name)},children:"Slug"}),(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:()=>{U(e.name,"taxo_link",e.name)},children:"Link"})]})]}):"url"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-url`,"",a)},children:"URL"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-is_external`,"",a)},children:"Is_external"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-nofollow`,"",a)},children:"Nofollow"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(`${e.name}-Custom_atr`,"",a)},children:"Custom_atr"})]})]}):"gallery"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"gallery",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"loop_value",e.name)},children:"URL"})]})]}):"popover"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Select popover"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})]}):"normalhover"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value",onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:"Normal Hover"}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsx)("div",{className:"wb-controller-values",children:e.fields.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})]}):"headingtags"==e.type?(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:J()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{U(e.name,"headingtags",a)},children:(0,g.jsx)("span",{className:"wkit-wb-hover-marquee",children:(0,g.jsx)("label",{children:"< Htag >"})})})}):"select2"==e.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-wb-editor-value "+(a?"wkit-inside-drp-head":""),onClick:e=>{H(e)},children:(0,g.jsxs)("span",{className:"wkit-wb-hover-marquee",children:[(0,g.jsx)("label",{children:e.name}),(0,g.jsx)("span",{children:(0,g.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,g.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,g.jsxs)("div",{className:a?"wb-controller-values wkit-inside-drp-body":"wb-controller-values",children:[(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"select2",a)},children:"Loop"}),(0,g.jsx)("div",{className:"wb-editor-dropDown-value wkit-wb-short-value",onClick:()=>{U(e.name,"loop_value",e.name)},children:"Value"})]})]}):(0,g.jsx)("div",{className:J()==e.name?"wkit-wb-editor-value wkit-wb-selected":"wkit-wb-editor-value",onClick:()=>{U(e.name,"",a)},children:(0,g.jsx)("span",{className:"wkit-wb-hover-marquee",children:"{{"+e.name+"}}"})})},X=()=>{if("html"==i){if(Array.isArray(t.cardData[0].layout)){let e=0;return t.cardData[0].layout.map((t=>{Array.isArray(t.inner_sec)&&t.inner_sec.map((t=>{I.includes(t.type)||(e+=1)}))})),e}return 0}return 0};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-wb-editor",ref:M,id:"wkit-editor-id",children:[(0,g.jsxs)("div",{className:"wkit-editor-button",children:[(0,g.jsxs)("div",{className:"wkit-wb-editor-btns",children:[(0,g.jsx)("button",{className:"html"==i?"wkit-wb-editor-html-btn active-editor":"wkit-wb-editor-html-btn",onClick:e=>{(()=>{if(n("html"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-js-popup.wkit-wb-show"))){t.Editor_data;let e=document.querySelector(".wb-editor-js-popup"),a=document.querySelector(".wb-editor-img-js-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",O()}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="",O()}})()},children:(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M0 5a5 5 0 0 1 5-5h10a5 5 0 0 1 5 5v10a5 5 0 0 1-5 5H5a5 5 0 0 1-5-5V5z",fill:"#F1F1F1"}),(0,g.jsx)("path",{d:"M5 .417h10A4.583 4.583 0 0 1 19.583 5v10A4.583 4.583 0 0 1 15 19.583H5A4.583 4.583 0 0 1 .417 15V5A4.583 4.583 0 0 1 5 .417z",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsxs)("g",{clipPath:"url(#clip0_2023_659)",children:[(0,g.jsx)("path",{d:"m4.115 3.333.828 11.67 5.062 1.664 5.063-1.664.828-11.67H4.115z",fill:"#FF7816"}),(0,g.jsx)("path",{d:"m15.896 3.333-.828 11.67-5.063 1.664V3.333h5.89z",fill:"#FF4B00"}),(0,g.jsx)("path",{d:"M13.685 6.875h-5.79l.141 1.953h5.508l-.336 4.73-3.203 1.07-3.203-1.07-.11-1.579h1.563l.031.429 1.72.57 1.718-.571.14-2.02H6.577l-.36-5.077h7.578l-.11 1.562z",fill:"#ECECF1"}),(0,g.jsx)("path",{d:"m13.544 8.828-.336 4.73-3.203 1.07v-1.649l1.72-.571.14-2.02h-1.86V8.829h3.54z",fill:"#E2E2E7"}),(0,g.jsx)("path",{d:"m13.794 5.313-.11 1.562h-3.679V5.313h3.79z",fill:"#E2E2E7"})]}),(0,g.jsx)("defs",{children:(0,g.jsx)("clipPath",{id:"clip0_2023_659",children:(0,g.jsx)("rect",{width:"13.333",height:"13.333",fill:"white",transform:"translate(3.33334 3.33333)"})})})]}),(0,a.__)("HTML","wdesignkit")]})}),(0,g.jsxs)("div",{className:"css"==i?"wkit-wb-editor-css-btn active-editor":"wkit-wb-editor-css-btn",onClick:e=>{(()=>{if(n("css"),document.querySelector(".wb-editor-popup-content.wkit-wb-js")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="flex"),document.querySelector(".wb-editor-js-popup.wkit-wb-show")){let 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)})),O()}})(),v("css")},children:[(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F1F1F1","fill-opacity":"0.945098"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M16.8 2.11161L15.5443 16.1785L9.89994 17.7433L4.27111 16.1807L3.01675 2.11161H16.8Z",fill:"#264DE4"}),(0,g.jsx)("path",{d:"M14.4691 15.2828L15.5422 3.26196H9.9082V16.5472L14.4691 15.2828Z",fill:"#2965F1"}),(0,g.jsx)("path",{d:"M5.89209 8.48006L6.04674 10.2056H9.90812V8.48006H5.89209Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90881 4.98743H9.90285H5.58203L5.73889 6.71296H9.90881V4.98743Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90831 14.7567V12.9614L9.90074 12.9634L7.97902 12.4445L7.85617 11.0684H6.92237H6.12402L6.36577 13.7777L9.90036 14.7589L9.90831 14.7567Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M12.0273 10.2054L11.827 12.4433L9.9025 12.9627V14.7579L13.4399 13.7775L13.4659 13.486L13.8713 8.94327L13.9134 8.47992L14.2249 4.98743H9.9025V6.71296H12.3339L12.1769 8.47992H9.9025V10.2054H12.0273Z",fill:"white"})]}),(0,a.__)("CSS","wdesignkit")]}),t.Editor_data[0].css.length>0&&""==t.Editor_data[0].css[0]?"":(0,g.jsx)("label",{className:"wkit-wb-cssInputCount "+("css"==i?"wkit-wb-focus":""),children:(0,g.jsx)("span",{children:0==K("css")?"":K("css")})}),(0,g.jsx)("span",{className:"wdkit-externel-cdn-plus",onClick:e=>{b("css"),v("css")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]}),(0,g.jsxs)("div",{className:"js"==i?"wkit-wb-editor-js-btn active-editor":"wkit-wb-editor-js-btn",onClick:e=>{(()=>{if(n("js"),document.querySelector(".wb-editor-popup-content.wkit-wb-css")&&(document.querySelector(".wb-editor-popup-content.wkit-wb-css").style.display="none",document.querySelector(".wb-editor-popup-content.wkit-wb-js").style.display="flex"),document.querySelector(".wb-editor-popup.wkit-wb-show")){t.Editor_data;let e=document.querySelector(".wb-editor-popup"),a=document.querySelector(".wb-editor-img-css-icon");e.classList.remove("wkit-wb-show"),a.style.transform="",O()}})(),v("js")},children:[(0,g.jsxs)("span",{className:"wkit-wb-editor-btns-label",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F7DF1E"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M13.435 15.6251C13.8379 16.2829 14.362 16.7664 15.289 16.7664C16.0677 16.7664 16.5652 16.3772 16.5652 15.8394C16.5652 15.195 16.054 14.9667 15.1969 14.5918L14.7271 14.3902C13.3709 13.8124 12.4699 13.0886 12.4699 11.5585C12.4699 10.1489 13.5439 9.07593 15.2223 9.07593C16.4172 9.07593 17.2763 9.4918 17.8953 10.5807L16.4318 11.5204C16.1096 10.9426 15.762 10.715 15.2223 10.715C14.6718 10.715 14.3229 11.0642 14.3229 11.5204C14.3229 12.0842 14.6721 12.3124 15.4785 12.6616L15.9483 12.8629C17.5452 13.5477 18.4467 14.2458 18.4467 15.8153C18.4467 17.5074 17.1175 18.4343 15.3325 18.4343C13.5871 18.4343 12.4594 17.6026 11.9077 16.5124L13.435 15.6251ZM6.79595 15.788C7.09119 16.3118 7.35976 16.7547 8.00548 16.7547C8.62294 16.7547 9.01246 16.5131 9.01246 15.5737V9.18323H10.8918V15.5991C10.8918 17.5451 9.75087 18.4308 8.08548 18.4308C6.58072 18.4308 5.70929 17.6521 5.26611 16.7142L6.79595 15.788Z",fill:"black"})]}),(0,a.__)("JAVASCRIPT","wdesignkit")]}),t.Editor_data[0].js.length>0&&""==t.Editor_data[0].js[0]?"":(0,g.jsx)("label",{className:"wkit-wb-JsInputCount "+("js"==i?"wkit-wb-focus":""),children:(0,g.jsx)("span",{children:0==K("js")?"":K("js")})}),(0,g.jsx)("span",{className:"wdkit-externel-cdn-plus",onClick:e=>{b("js"),v("js")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]})]}),(0,g.jsxs)("div",{className:"wdkit-wb-variable-dropdown",children:[(0,g.jsxs)("div",{className:"wdkit-wb-variable-dropdown-header",onClick:e=>{(e=>{let t=e.target.closest(".wdkit-wb-variable-dropdown").querySelector(".wkit-right-portion"),a=e.target.closest(".wdkit-wb-variable-dropdown").querySelector(".wdkit-dorpdown-arrow");t&&(t.classList.contains("wdkit-wb-show-variable")?(t.classList.remove("wdkit-wb-show-variable"),setTimeout((()=>{u(!1)}),300)):(u(!0),setTimeout((()=>{t.classList.add("wdkit-wb-show-variable")}),0)),a&&(a.classList.contains("wdkit-rotate-icon")?a.classList.remove("wdkit-rotate-icon"):a.classList.add("wdkit-rotate-icon")))})(e)},children:[(0,g.jsxs)("div",{className:"wdkit-wb-variable-count",children:[(0,g.jsx)("span",{className:"wdkit-wb-variable-count-number",children:X()}),(0,g.jsx)("span",{children:X()>1?(0,a.__)("Variables","wdesignkit"):(0,a.__)("Variable","wdesignkit")})]}),(0,g.jsx)("span",{className:"wdkit-dorpdown-arrow",children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),(0,g.jsx)("div",{className:"wkit-right-portion",style:{display:m?"flex":"none"},children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-wb-editor-value-tab",children:["js"==i&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-js-val",onClick:()=>{U("$scope[0]","js")},children:"$Scope"})}),t&&t.cardData[0]&&t.cardData[0].layout&&"html"==i&&t.cardData[0].layout.map(((e,t)=>(0,g.jsx)(Wi,{children:(0,g.jsx)("div",{className:"wkit-wb-editor-box",children:e?.inner_sec&&e?.inner_sec?.length>0&&e.inner_sec.map(((e,t)=>(0,g.jsx)(Wi,{children:Y(e)},t)))})},t))),(0,g.jsx)("div",{className:"wkit-wb-editor-value-extra"}),"css"==i&&0==t.widgetdata.css_parent_node&&(0,g.jsx)("div",{className:"wkit-wb-editor-value wkit-editor-css-val",onClick:()=>{U()},children:"css"})]}),"css"==i&&(0,g.jsx)("div",{className:"wkit-wb-parentClass-swicher-content",children:(0,g.jsxs)("div",{className:"wkit-wb-parentClass-swicher",children:[(0,g.jsxs)("div",{className:"wkit-css-editor-toolTip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.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,g.jsxs)("label",{className:"wb-switch",children:[(0,g.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,g.jsx)("span",{className:"wb-slider"})]})]})})]})})]})]}),(0,g.jsx)("div",{className:"wkit-editor",children:(0,g.jsxs)("div",{className:"wkit-wb-editor-content",children:[(0,g.jsx)("div",{id:"editor-html",className:"wkit-wb-editor-class"}),(0,g.jsxs)("div",{className:"wkit-wb-loopError-popup",style:{display:"none"},children:[(0,g.jsx)("div",{className:"wkit-wb-loopError-close",children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"wkit-wb-loopError-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-loopError-header",children:[(0,g.jsx)("div",{className:"wkit-wb-loopError-icon",children:(0,g.jsx)("img",{src:F+"assets/images/wb-svg/error_info.svg"})}),(0,g.jsx)("div",{className:"wkit-wb-loopError-headerText",children:(0,a.__)("Perform activity inside the loop","wdesignkit")})]}),(0,g.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,g.jsx)("div",{id:"editor-css",className:"wkit-wb-editor-class"}),(0,g.jsx)("div",{id:"editor-js",className:"wkit-wb-editor-class"})]})}),(0,g.jsxs)("div",{className:"wkit-wb-bottom-characters",children:[(0,g.jsxs)("div",{className:"wkit-wb-characters",children:[(0,g.jsxs)("span",{className:"wkit-wb-characters-title",children:[(0,a.__)("•","wdesignkit")," ",h," ",(0,a.__)("Characters","wdesignkit")]}),(0,g.jsxs)("span",{className:"wkit-wb-characters-title",children:[(0,a.__)("•","wdesignkit")," ",_," ",(0,a.__)("Line","wdesignkit")]})]}),(0,g.jsxs)("div",{className:"wdkit-editor-actions",children:[0==r&&(0,g.jsx)("span",{className:"wdkit-editor-action-btn",onClick:e=>{v("css"),b("css")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})}),(0,g.jsx)("span",{className:"wdkit-editor-action-btn",onClick:()=>{M.current.requestFullscreen?M.current.requestFullscreen():M.current.webkitRequestFullscreen?M.current.webkitRequestFullscreen():M.current.msRequestFullscreen&&M.current.msRequestFullscreen(),document.exitFullscreen&&!0===r?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()},children:(0,g.jsx)("i",{className:1==r?"wdkit-i-wb-expand":"wdkit-i-wb-collapse"})}),"bricks"!==t?.widgetdata?.type&&!r&&(0,g.jsx)(Vi,{widget_data:t.widgetdata,plugin_status:t.plugin_status})]})]})]}),"css"==k||"js"==k?(0,g.jsx)("div",{id:"wkit-wb-popup-open",className:"overlay",onClick:e=>{G(e)},children:(0,g.jsx)("div",{className:"wkit-wb-popup-links",children:(0,g.jsx)("div",{className:"wkit-wb-links-popup",children:(0,g.jsxs)("div",{className:"wkit-links-main-popup",children:[(0,g.jsxs)("div",{className:"wb-external-links",children:[(0,g.jsxs)("div",{className:"wkit-wb-links-content",children:[(0,g.jsxs)("span",{onClick:()=>{v("css")},className:"css"==x?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F1F1F1","fill-opacity":"0.945098"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M16.8 2.11161L15.5443 16.1785L9.89994 17.7433L4.27111 16.1807L3.01675 2.11161H16.8Z",fill:"#264DE4"}),(0,g.jsx)("path",{d:"M14.4691 15.2828L15.5422 3.26196H9.9082V16.5472L14.4691 15.2828Z",fill:"#2965F1"}),(0,g.jsx)("path",{d:"M5.89209 8.48006L6.04674 10.2056H9.90812V8.48006H5.89209Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90881 4.98743H9.90285H5.58203L5.73889 6.71296H9.90881V4.98743Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M9.90831 14.7567V12.9614L9.90074 12.9634L7.97902 12.4445L7.85617 11.0684H6.92237H6.12402L6.36577 13.7777L9.90036 14.7589L9.90831 14.7567Z",fill:"#EBEBEB"}),(0,g.jsx)("path",{d:"M12.0273 10.2054L11.827 12.4433L9.9025 12.9627V14.7579L13.4399 13.7775L13.4659 13.486L13.8713 8.94327L13.9134 8.47992L14.2249 4.98743H9.9025V6.71296H12.3339L12.1769 8.47992H9.9025V10.2054H12.0273Z",fill:"white"})]}),(0,a.__)("CSS","wdesignkit")]}),(0,g.jsxs)("span",{onClick:()=>{v("js")},className:"js"==x?"wkit-popup-link wkit-active-link":"wkit-popup-link",children:[(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{width:"20",height:"20",rx:"4.44444",fill:"#F7DF1E"}),(0,g.jsx)("rect",{x:"0.416667",y:"0.416667",width:"19.1667",height:"19.1667",rx:"4.02778",stroke:"white",strokeOpacity:"0.4",strokeWidth:"0.833333"}),(0,g.jsx)("path",{d:"M13.435 15.6251C13.8379 16.2829 14.362 16.7664 15.289 16.7664C16.0677 16.7664 16.5652 16.3772 16.5652 15.8394C16.5652 15.195 16.054 14.9667 15.1969 14.5918L14.7271 14.3902C13.3709 13.8124 12.4699 13.0886 12.4699 11.5585C12.4699 10.1489 13.5439 9.07593 15.2223 9.07593C16.4172 9.07593 17.2763 9.4918 17.8953 10.5807L16.4318 11.5204C16.1096 10.9426 15.762 10.715 15.2223 10.715C14.6718 10.715 14.3229 11.0642 14.3229 11.5204C14.3229 12.0842 14.6721 12.3124 15.4785 12.6616L15.9483 12.8629C17.5452 13.5477 18.4467 14.2458 18.4467 15.8153C18.4467 17.5074 17.1175 18.4343 15.3325 18.4343C13.5871 18.4343 12.4594 17.6026 11.9077 16.5124L13.435 15.6251ZM6.79595 15.788C7.09119 16.3118 7.35976 16.7547 8.00548 16.7547C8.62294 16.7547 9.01246 16.5131 9.01246 15.5737V9.18323H10.8918V15.5991C10.8918 17.5451 9.75087 18.4308 8.08548 18.4308C6.58072 18.4308 5.70929 17.6521 5.26611 16.7142L6.79595 15.788Z",fill:"black"})]}),(0,a.__)("JS","wdesignkit")]})]}),"css"==x&&(0,g.jsxs)("div",{className:"wkit-wb-editor-links",children:[(0,g.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert CSS Library","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of an external CSS library (CDN). You can search for a CSS CDN online or paste the link directly here.","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,g.jsxs)("div",{className:"wdkit-cdn-search-container",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:(0,a.__)("Search CDNs...","wdesignkit"),value:y,onChange:e=>{j(e.target.value)}})]}),""!==y.trim()&&(0,g.jsx)("div",{className:"wkit-cdn-suggestion",children:C.length>0?(0,g.jsx)("ul",{className:"wkit-custom-cdn-list",children:C?.map(((e,t)=>(0,g.jsxs)("li",{onClick:t=>{R("search_data",e.latest)},children:[e.name," ",(0,g.jsx)("span",{children:q(e.latest)})]},t)))}):(0,g.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,g.jsx)("img",{src:F+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")})]})})]}),(0,g.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,g.jsx)(Wi,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{T.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{z(a,"css")},className:"wb-editor-popup-inp-content",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-move popup-drag-icon"}),(0,g.jsx)("input",{type:"url",ref:L,value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{V(e,"css",a)}}),""==e?(0,g.jsx)("span",{className:"eye-link-disabled",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("a",{className:"popup-eye-link-content",target:"_blank",href:e,children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}),1==t.Editor_data[0].css.length&&""==e&&0==a?(0,g.jsx)("span",{className:"popup-inp-remove-icon-disable",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})}):(0,g.jsx)("span",{className:"popup-inp-remove-icon",onClick:e=>{W(a,"css")},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})},a)))}),(0,g.jsx)("div",{className:"wb-popuo-btn-class",children:(0,g.jsxs)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{R("css")},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]}),"js"==x&&(0,g.jsxs)("div",{className:"wkit-wb-editor-js-links",children:[(0,g.jsx)("span",{className:"wkit-Add-link",children:(0,a.__)("Insert JS Library","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-link-desc",children:(0,a.__)("Enter the URL of an external JS library (CDN). You can search for a JS CDN online or paste the link directly here.","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-links-search-bar",children:[(0,g.jsxs)("div",{className:"wdkit-cdn-search-container",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wkit-links-search-input",type:"text",placeholder:(0,a.__)("Search CDNs...","wdesignkit"),value:N,onChange:e=>{$(e.target.value)}})]}),""!==N.trim()&&(0,g.jsx)("div",{className:"wkit-cdn-suggestion",children:D.length>0?(0,g.jsx)("ul",{className:"wkit-custom-cdn-list",children:D?.map(((e,t)=>(0,g.jsxs)("li",{onClick:t=>{R("search_data",e.latest)},children:[e.name," ",(0,g.jsx)("span",{children:q(e.latest)})]},t)))}):(0,g.jsxs)("div",{className:"wkit-search-cdn-not-found",children:[(0,g.jsx)("img",{src:F+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("p",{className:"wkit-cdn-not-found",children:(0,a.__)("Not Result Found","wdesignkit")})]})})]}),(0,g.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,g.jsx)(Wi,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{T.current=a},onDragOver:e=>{e.preventDefault()},onDrop:()=>{z(a,"js")},className:"wb-editor-popup-inp-content",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-move popup-drag-icon"}),(0,g.jsx)("input",{type:"url",value:e,className:"wb-editor-popup-input",placeholder:"Paste link here",onChange:e=>{V(e,"js",a)}}),""==e?(0,g.jsx)("span",{className:"eye-link-disabled",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("a",{className:"popup-eye-link-content",href:e,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}),1==t.Editor_data[0].js.length&&""==e&&0==a?(0,g.jsx)("span",{className:"popup-inp-remove-icon-disable",children:(0,g.jsx)("i",{className:"wdkit-i-delete"})}):(0,g.jsx)("span",{className:"popup-inp-remove-icon",onClick:e=>{W(a,"js")},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})},a)))}),(0,g.jsx)("div",{className:"wb-popuo-btn-class",children:(0,g.jsxs)("button",{className:"wb-editor-popup-add-btn",onClick:()=>{R("js")},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]})]}),(0,g.jsx)("div",{className:"close-popup-btn",children:(0,g.jsx)("button",{className:"wkit-wb-close-popup-btn",onClick:e=>{G(e)},children:(0,a.__)("Close","wdesignkit")})})]})})})}):""]})})),{Fragment:Gi}=wp.element,zi=Ya((e=>({widgetdata:e})),(e=>({addTowidgethandler:t=>e(Ni(t)),wdkit_set_notification:t=>e(si(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"},[r,l]=(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),[m,u]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.description),[h,_]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.helper_link),[f,k]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.key_words),[b,x]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_image),[v,y]=(0,e.useState)(),[j,N]=(0,e.useState)("none"),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)(!1),[E,P]=(0,e.useState)(!1),[A,T]=(0,e.useState)(s?.[t.widgetdata.WcardData.widgetdata.type]?.icons[0]),[L,M]=(0,e.useState)(!1),[F,I]=(0,e.useState)(!1),[B,O]=(0,e.useState)(""),R=(0,e.useRef)(r),V=(0,e.useRef)(""),W=((0,e.useRef)(""),async e=>{D(!0);let t={manage_type:"update",category_list:[...e].filter((e=>""!==e))},a={type:"wkit_manage_widget_category",info:JSON.stringify(t)};await w(a).then((e=>{C(e)})).catch((e=>console.log(e))),D(!1),P(-1)});(0,e.useEffect)((()=>{(async()=>{let e={type:"wkit_manage_widget_category",info:JSON.stringify({manage_type:"get"})};await w(e).then((e=>{C(e)}))})()}),[]),(0,e.useEffect)((()=>{if("string"==typeof b&&V&&V.current&&"wkit-wb-widget-icon-drop_zone"==V.current.id&&(V.current.style.backgroundImage=`url('${b}')`),"object"==typeof b){const e=new FileReader;e.readAsDataURL(b),e.onload=()=>{V.current.style.backgroundImage=`url('${e.result}')`}}}));const q=(e,i)=>{if(i?.size&&Number(i?.size)/1e6>2)e.preventDefault(),t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)("Image size must be less tahn 2 mb.","wdesignkit")});else{e.preventDefault();let s=i?.type.split("/");s.includes("png")||s.includes("jpg")||s.includes("jpeg")?(y((()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e})()),x(i)):t.wdkit_set_notification({title:(0,a.__)("Insert valid Image","wdesignkit"),desc:(0,a.__)('only ".png", ".jpg", ".jpeg" images are allowed.',"wdesignkit")})}},G=(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="",x(""))};return(0,g.jsx)("div",{className:"wkit-wb-content wkit-wb-popoupScroll",onClick:e=>{(e=>{L&&M(!1),F&&I(!1),"none"===j||e.target.closest(".wkit-wb-custom-category")||N("none")})(e)},children:(0,g.jsx)("div",{className:"wkit-wb-third-part-content show",children:(0,g.jsxs)("div",{className:"wkit-wb-block-detail",children:[(0,g.jsxs)("div",{className:"wkit-wb-block-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-wb-block-name",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Name","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wdkit-wb-edit-tolltip",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,g.jsx)("input",{className:"wkit-wb-block-text-inp",value:r,type:"text",ref:R,placeholder:(0,a.__)("Enter your Widget Name","wdesignkit"),onChange:e=>{""==R?.current?.value?(R.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),l("")):""!=R?.current?.value&&(R.current.style.border="",/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(R.current.value)?l(R.current.value):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display="none"}),2e3)))}})]}),(0,g.jsxs)("div",{className:"wkit-wb-block-category",children:[(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",children:(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Category","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-wb-category",children:[(0,g.jsxs)("div",{className:"wkit-wb-selected-category-header",children:[(0,g.jsx)("span",{className:"wkit-wb-selected-category",onClick:e=>{I(!F)},children:o}),(0,g.jsx)("span",{className:"wkit-wb-edit-category",onClick:e=>{N("none"==j?"flex":"none")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen"})})]}),(0,g.jsx)("div",{style:{display:F?"flex":"none"},className:"wkit-wb-select-category-options",children:$&&$.map(((e,t)=>(0,g.jsx)(Gi,{children:(0,g.jsx)("span",{className:"wkit-wb-cat-option",onClick:t=>{d(e),I(!F)},children:e})},t)))})]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category",style:{display:j},children:[(0,g.jsx)("div",{className:"wkit-wb-custom-category-header",children:(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",children:(0,g.jsx)("span",{className:"wkit-wb-custom-category-name",children:(0,a.__)("Create New Category","wdesignkit")})})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category-inp_content",children:[(0,g.jsx)("div",{className:"wkit-custom-category-content",children:(0,g.jsx)("input",{className:"wkit-wb-custom-category-inp",value:$[0],disabled:!0})}),$&&$.map(((e,t)=>{if(t>0)return(0,g.jsxs)("div",{className:"wkit-wb-caregory-map",children:[(0,g.jsxs)("div",{className:"wkit-custom-category-content",children:[(0,g.jsx)("input",{className:"wkit-wb-custom-category-inp",value:e,onBlur:()=>{W($),P(t)},onChange:e=>{((e,t)=>{let a=[...$];""==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)),C(a)})(e,t)},disabled:S}),S&&E==t&&(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle wkit-category-loader"})})]}),(0,g.jsx)("span",{onClick:e=>{(async(e,t)=>{let a=[...$];await a.splice(t,1),await W(a),await C(a),await P(-1)})(0,t)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]},t)}))]}),(0,g.jsxs)("div",{className:"wkit-wb-custom-category-btns",onClick:e=>{(()=>{let e=[...$];e.push(""),C(e)})()},children:[(0,g.jsx)("span",{children:(0,a.__)("Add More","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-block-feature-img",children:[(0,g.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-block-label",children:(0,a.__)("Featured Image","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsx)("span",{className:"wdkit-wb-edit-tolltip",children:(0,a.__)("Only .jpg and .png are allowed","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"drop-zone",ref:V,id:"wkit-wb-widget-icon-drop_zone",onDragOver:e=>{e.preventDefault()},onDrop:e=>{q(e,e.dataTransfer.files[0])},onClick:e=>{G(e,"upload")},children:[b?(0,g.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{G(e,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}):(0,g.jsxs)("div",{className:"drop-zone__prompt",children:[(0,g.jsx)("img",{className:"wkit-wb-plus-icon",src:i+"assets/images/wb-svg/Union.svg"}),(0,g.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,g.jsx)("input",{type:"file",name:"myFile",className:"wkit-file-text",id:"drop-zone__input",accept:"image/*",onChange:e=>{q(e,e.target.files[0])}})]})]}),(()=>{let e=t.widgetdata.WcardData.widgetdata.type,r=vi[A?.value].filter((e=>""===B.trim()||e.toLocaleLowerCase().includes(B.trim().toLocaleLowerCase())));return(0,g.jsxs)("div",{className:"wkit-wb-upload-block-icon",children:[(0,g.jsxs)("div",{className:"wb-add-widget-name-title wkit-icons-data",children:[(0,g.jsx)("div",{className:"wkit-wb-keyWord-title",style:{margin:"0"},children:(0,g.jsx)("span",{className:"wkit-wb-block-label",children:(0,a.__)("Icon","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-dropdown-data",children:[(0,g.jsxs)("div",{className:"wkit-icon-dropdown",onClick:e=>{M(!L)},children:[(0,g.jsx)("span",{className:"wkit-selected-icons",children:A?.label}),s?.[e]?.icons?.length>1&&(0,g.jsx)("img",{className:"wkit-svg "+(L?"wkit-rotate-svg":""),src:i+"assets/images/wb-svg/controller-open.svg"})]}),s?.[e]?.icons?.length>1&&(0,g.jsx)("div",{className:"wkit-value-dropdown "+(L?"wkit-dp-show":""),children:s?.[e]?.icons?.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-icon-value",onClick:t=>{T(e),p(n[e?.value]),M(!L)},children:e?.label},t)))})]})]}),(0,g.jsx)("div",{className:"wkit-show-all-icons",children:"Font-Awesome"===A?.value||Object.keys(t.plugin_status).length>0&&"active"===t.plugin_status[e]?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-search-select",children:[(0,g.jsxs)("div",{className:"wkit-icon-search",children:[(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.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,g.jsx)("path",{d:"M12.2504 12.2523L9.71289 9.71484",stroke:"#737373",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,g.jsx)("input",{type:"text",className:"wkit-icons-search-box",value:B,onChange:e=>{O(e.target.value)},placeholder:(0,a.__)("Search icons","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-selected-text",children:[(0,g.jsx)("span",{className:"wkit-selected",children:(0,a.__)("Selected","wdesignkit")}),(0,g.jsx)("span",{className:`wkit-selected-icon ${c}`})]})]}),(0,g.jsx)("div",{className:"wkit-all-icon-list wkit-wb-popoupScroll",children:r.length>0?r?.map(((e,t)=>(0,g.jsx)("span",{className:`wkit-widget-icon-container ${e} ${e===c?"wkit-screened-icon":""}`,onClick:()=>p(e)},t))):(0,g.jsxs)("div",{className:"wdkit-not-found-icons-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-icons",src:i+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})]})})]}):(0,g.jsx)("h4",{className:"wkit-plugin-not-found",children:(0,a.__)("Relevant Plugin/Theme is not Activated","wdesignkit")})})]})})()]}),(0,g.jsxs)("div",{className:"wkit-wb-widget-info",children:[(0,g.jsxs)("div",{className:"wkit-wb-key-words",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Keywords","wdesignkit")}),"elementor"==t.widgetdata.WcardData.widgetdata.type&&(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsxs)("span",{className:"wdkit-wb-edit-tolltip",children:[(0,a.__)("Enter keywords to allow searching in elementor editor.","wdesignkit"),(0,g.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,g.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. icon box, info box, icon",value:f,type:"text",onChange:e=>{k(e.target.value)}})]}),(0,g.jsxs)("div",{className:"wkit-wb-helper-link",children:[(0,g.jsxs)("div",{className:"wkit-wb-keyWord-title",children:[(0,g.jsx)("label",{className:"wkit-wb-input-lable",children:(0,a.__)("Help Link","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-wb-edit-tolltip-container",children:[(0,g.jsx)("span",{className:"wkit-wb-toolTip-icon",children:(0,g.jsx)("i",{className:"wdkit-i-info"})}),(0,g.jsxs)("span",{className:"wdkit-wb-edit-tolltip",children:[(0,a.__)("Enter URL for users to get more information about this widget.","wdesignkit")," ",(0,g.jsx)("a",{href:"https://developers.elementor.com/docs/widgets/widget-data/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Read More","wdesignkit")})]})]})]}),(0,g.jsx)("input",{className:"wkit-wb-input-content",placeholder:"e.g. https://xyz.com/help/",value:h,type:"url",onChange:e=>{_(e.target.value)}})]})]}),(0,g.jsxs)("div",{className:"wkit-wp-btn-center wb-add-widget-footer",children:[(0,g.jsxs)("span",{className:"wdkit-trsprnt-btn",onClick:e=>{t.Close_popup()},children:[" ",(0,a.__)("Cancel","wdesignkit")," "]}),(0,g.jsx)("div",{className:"wkit-btn-class",onClick:e=>{N("none"),""!==r&&isNaN(r.charAt(0))&&(()=>{const e=""!==r&&isNaN(r.charAt(0)),a=/^[a-zA-Z0-9, ]*$/.test(f)||""===f,i=/^(ftp|http|https):\/\/[^ "]+$/.test(h)||""===h;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 f?f.split(",").forEach((e=>{s.push(e.trim())})):s=f;let n=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:r.trim(),category:o,w_image:b,w_icon:c,description:m,helper_link:h,image_id:v,key_words:s});e&&a&&i&&t.Close_popup(),t.addTowidgethandler(n)})()},children:(0,a.__)("Save","wdesignkit")})]})]})})})})),Hi=Ya((e=>({widgetdata:e,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addTowidgethandler:t=>e(Ni(t)),wdkit_set_meta:t=>e(Change_wdkit_meta(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)("default"),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(""),[_,f]=(0,e.useState)([""]),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(""),y=(0,e.useRef)(),j=(0,e.useRef)(null),[N,$]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name),[C,S]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.name.length),[D,E]=(0,e.useState)(!1),P=(ue(),he()),A=(0,e.useRef)("");var T=P.id,L=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};A.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};A?.current&&t?.widgetdata&&A.current!==JSON.stringify(e)?r("change"):"default"!=n&&r("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 M=async(e,a)=>{r("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 l=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 Bt(a,e,l,o,d,T,p).then((e=>{c=e})):await Bt(a,e,l,o,d,T,"").then((e=>{c=e})):"gutenberg"==t.widgetdata.WcardData.widgetdata.type?p?await Ot(a,e,l,o,d,T,p).then((e=>{c=e})):await Ot(a,e,l,o,d,T,"").then((e=>{c=e})):"bricks"==t.widgetdata.WcardData.widgetdata.type&&(p?await It(a,e,l,o,d,T,p).then((e=>{c=e})):await It(a,e,l,o,d,T,"").then((e=>{c=e}))),setTimeout((()=>{r("update");let e={CardItems:t.widgetdata?.CardItems,WcardData:t.widgetdata?.WcardData,Editor_data:t.widgetdata?.Editor_data,Editor_code:t.widgetdata?.Editor_code};A.current=JSON.stringify(e)}),1e3),c},F=e=>{const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{publish_type:e});t.addTowidgethandler(a)},I=(e,t)=>{(e&&e.target&&Object.values(e.target.classList)&&Object.values(e.target.classList).includes("overlay")||"click"==t)&&(b(""),v(""))},B=()=>(0,g.jsx)("i",{className:"wdkit-i-globe"}),O=()=>(0,g.jsx)("i",{className:"wdkit-i-file"}),R=e=>{let t={title:"",desc:""};return"widget_info"==k?(t.title=(0,a.__)("Edit Widget Information","wdesignkit"),t.desc=(0,a.__)("Update your widget details and click Save when done.","wdesignkit")):"version_info"==k&&(t.title=(0,a.__)("Sync Widget","wdesignkit"),t.desc=(0,a.__)("Are you sure you want to sync this widget ?","wdesignkit")),t[e]};return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-widget-edit-setting-panel",children:(0,g.jsxs)("div",{className:"wkit-wb-head-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-wb-left-hand-side",children:[(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-elementor-icon",src:L+"assets/images/wb-svg/elementor.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-icon",src:L+"assets/images/wb-svg/gutenberg.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-bricks-icon",src:L+"assets/images/wb-svg/bricks.svg",draggable:"false"}),(0,g.jsxs)("div",{className:"wkit-wb-widget-title",children:[(0,g.jsx)("span",{className:"wkit-wb-widgetTitle",style:{display:m&&"none"},children:t.widgetdata.WcardData.widgetdata.name}),(0,g.jsx)("input",{className:"wkit-wb-widget-title-inp",type:"text",value:N,onChange:e=>{(e=>{if(/^[a-zA-Z][a-zA-Z0-9\s]{0,23}$/.test(e.target.value)||""==e.target.value){$(e.target.value);const a=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:e.target.value});t.addTowidgethandler(a)}})(e),S(e.target.value.length)},ref:y,style:{pointerEvents:!m&&"none",display:m&&"flex"},onBlur:e=>{(e=>{let a=e.target.value.trim();if(""==a){j.current;const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:j.current});t.addTowidgethandler(e),$(j.current)}else{const e=Object.assign({},t.widgetdata.WcardData.widgetdata,{name:a});t.addTowidgethandler(e),$(a)}})(e),u(!m)},onFocus:e=>{(e=>{j.current=e.target.value})(e)}}),!m&&(0,g.jsx)("a",{children:(0,g.jsx)("span",{className:"wkit-wb-edit-nameIcon",onClick:e=>{u(!m),setTimeout((()=>{y.current.focus()}),0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen"})})})]})]}),(0,g.jsxs)("div",{className:"wkit-wb-right-hand-side",children:[(0,g.jsxs)("div",{className:"wkit-wb-setting-panel-link wkit-wb-dropdown",onClick:()=>{c(!d)},children:["Publish"==t.widgetdata.WcardData.widgetdata.publish_type?(0,g.jsx)(B,{}):(0,g.jsx)(O,{}),(0,g.jsx)("span",{className:"output",children:t.widgetdata.WcardData.widgetdata.publish_type}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(1==d?"wdkit-wb-rotate-icon":"")}),(0,g.jsxs)("div",{className:1==d?"wkit-wb-dropdown-content wkit-wb-show":"wkit-wb-dropdown-content",id:"mySelect",children:[(0,g.jsx)("div",{className:"wkit-dropdown-outerContent"}),(0,g.jsxs)("div",{className:"wkit-dropdown-item",value:"draft",name:"Draft",onClick:()=>{F("Draft")},children:[(0,g.jsx)(O,{}),(0,g.jsx)("span",{children:(0,a.__)("Draft","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-dropdown-item",value:"publish",name:"Publish",onClick:()=>F("Publish"),children:[(0,g.jsx)(B,{}),(0,g.jsx)("span",{children:(0,a.__)("Publish","wdesignkit")})]})]})]}),(0,g.jsx)("span",{className:"wdkit-wb-setting-icon",onClick:()=>{b("widget_info")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})}),0!=t.widgetdata?.WcardData?.widgetdata?.allow_push&&(0,g.jsxs)("button",{className:"wkit-wb-sync-btn "+(p()?"":"wkit-block-btn"),onClick:()=>{b("version_info")},children:[(0,g.jsx)("div",{className:"wkit-wb-sync-btn-tooltip",children:(0,g.jsx)("span",{children:(0,a.__)("Push widget on Cloud and Sync it","wdesignkit")})}),(0,g.jsx)("i",{className:"wdkit-i-wb-push"}),(0,g.jsx)("span",{children:(0,a.__)("Push","wdesignkit")})]}),(V=(0,a.__)("Save","wdesignkit"),W="",q="","default"==n?(V=(0,a.__)("Save","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q="wdkit-disable"):"change"==n?(V=(0,a.__)("Save","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q=""):"update"==n?(V=(0,a.__)("Saved","wdesignkit"),W=(0,g.jsx)("i",{className:"wdkit-i-wb-save"}),q="wdkit-saved"):"loading"==n&&(V="",W=(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})}),q=""),(0,g.jsxs)("button",{className:`wkit-wb-publish-btn ${q}`,onClick:()=>{M(t.widgetdata,"update").then((e=>{e.api.success?t.wdkit_set_notification({title:(0,a.__)("Updates Saved!","wdesignkit"),desc:(0,a.__)("Your changes have been saved successfully.","wdesignkit")}):t.wdkit_set_notification({title:(0,a.__)("Fail to Save","wdesignkit"),desc:(0,a.__)("Fail! Can not Saved","wdesignkit")})}))},disabled:"change"!=n,children:[W,V]}))]})]})}),k&&(0,g.jsx)(Be,{title:R("title"),desc:R("desc"),body:"widget_info"==k?(0,g.jsx)(zi,{plugin_status:t.plugin_status,plugin_detail:t.plugin_detail,Close_popup:e=>I(e,"click")}):"version_info"==k?(0,g.jsxs)("div",{className:"wdkit-wb-sync-widget-container",children:[(0,g.jsxs)("div",{className:"wb-version-body",children:[(0,g.jsxs)("div",{className:"wb-version-wrap wb-widget-sync-details",children:[(0,g.jsxs)("div",{className:"wb-version-number",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Current Version","wdesignkit")}),(0,g.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,g.jsxs)("div",{className:"wb-version-detais",children:[(0,g.jsx)("span",{className:"wb-version-label",children:(0,a.__)("Latest Version","wdesignkit")}),(0,g.jsx)("input",{className:"wb-version-input",type:"text",value:t?.widgetdata?.WcardData?.widgetdata?.widget_version?h:"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");w(e.target.value),""==a.trim()?v("Version is required"):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,g.jsx)("p",{className:"wb-error-message",children:x})]})]}),(0,g.jsx)("span",{className:"wb-version-label wb-label-separate",children:(0,a.__)("Changelog","wdesignkit")}),(0,g.jsx)("div",{className:"wb-version-changes",children:_.map(((e,t)=>(0,g.jsxs)("div",{className:"wb-version-wrap",children:[(0,g.jsx)("textarea",{className:"wb-version-detail-input",value:e,placeholder:"Please enter description",rows:"2",onChange:e=>{((e,t)=>{let a=[..._];a[t]=e.target.value,f(a)})(e,t)}}),(0,g.jsx)("span",{className:"wdkit-wb-del-changelog-icon",onClick:()=>{(e=>{let t=[..._];t.length>1?(t.splice(e,1),f(t)):1==t.length&&(t[e]="",f(t))})(t)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]},t)))}),(0,g.jsxs)("button",{className:"wkit-add-log-btn",onClick:()=>{(()=>{let e=[..._];e.push(""),f(e)})()},children:[(0,g.jsx)("span",{children:(0,a.__)("Add more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]}),(0,g.jsxs)("div",{className:"wb-quickedit-footer wb-add-widget-footer",children:[(0,g.jsxs)("span",{className:"wdkit-trsprnt-btn",onClick:e=>I(e,"click"),children:[" ",(0,a.__)("Cancel","wdesignkit")," "]}),(0,g.jsxs)("button",{className:"wkit-btn-class",style:{cursor:t?.widgetdata?.WcardData?.widgetdata?.widget_version<h||!t?.widgetdata?.WcardData?.widgetdata?.widget_version?"":"no-drop"},disabled:!(t?.widgetdata?.WcardData?.widgetdata?.widget_version<h||!t?.widgetdata?.WcardData?.widgetdata?.widget_version),onClick:e=>{(async()=>{let e=t.wdkit_meta.widgettemplate;if(E(!0),e.length>0){let a=e.findIndex((e=>e.w_unique==t.widgetdata.WcardData.widgetdata.widget_id));if(_.length>1)var i=_;else i=1==_.length&&_[0]?_:[];if(a>-1)var s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i});else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i})}else s=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0",version_detail:i});let n=Object.assign({},t.widgetdata.WcardData,{widgetdata:s}),r=Object.assign({},t.widgetdata,{WcardData:n});var l="";await M(r,"sync").then((e=>{l=e})),l&&l.ajax&&(1==l?.ajax?.data?.success?(b(""),v(""),t.wdkit_set_notification({title:(0,a.__)("Widget Pushed","wdesignkit"),desc:(0,a.__)("The widget has been pushed and is available for use.","wdesignkit")})):(t.wdkit_set_notification({title:(0,a.__)("Operation fail","wdesignkit"),desc:(0,a.__)("Something went wrong","wdesignkit")}),v(l?.ajax?.data?.message)));const o=Object.assign({},t.widgetdata.WcardData.widgetdata,{widget_version:h||"1.0.0"});t.addTowidgethandler(o),f([""]),E(!1)})()},children:[1==D&&(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})}),0==D&&(0,g.jsx)("span",{children:(0,a.__)("Update","wdesignkit")})]})]})]}):void 0,close_popup:e=>I(e,"click")})]});var V,W,q})),{Fragment:Ui}=wp.element;wdkitData.WDKIT_SITE_URL;var Ji=wdkitData.WDKIT_URL;const Ki=Ya((e=>({cardData:e,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata})),(e=>({addToCarthandler:t=>e(ji(t)),addToActiveController:t=>e(Si(t)),wdkit_set_notification:t=>e(si(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"),[r,l]=(0,e.useState)("normal"),[o,d]=(0,e.useState)("normal"),[c,p]=(0,e.useState)(!0),[m,u]=(0,e.useState)(!1),h=(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)}},w=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},_=(e,a,i,s)=>{let n=[...t.cardData.CardItems.cardData],r=e.target.closest(".wb-main-component").dataset;if(r.rnp)var l=n[0][r.array_type][r.sec_id].inner_sec[r.compo_id].fields[r.rnp];else l=n[0][r.array_type][r.sec_id].inner_sec[r.compo_id];if("nofollow"==a||"is_external"==a)var o=Object.assign({},l,{[a]:e.target.checked});else if("defaultValue_slider"==a){let t=[...l.slider_defaultValue];t[1]=e.target.value,o=Object.assign({},l,{slider_defaultValue:t})}else if("switcher_defaultValue"==a)o=Object.assign({},l,{defaultValue:e.target.checked});else if("dimension_defaultValue"==a){if("isLinked"!=i){var d=Object.assign({},l.dimension_defaultValue,{[i]:e.target.value});o=Object.assign({},l,{dimension_defaultValue:d})}else if("isLinked"==i){let e=l.dimension_defaultValue[i];d=Object.assign({},l.dimension_defaultValue,{[i]:!e}),o=Object.assign({},l,{dimension_defaultValue:d})}}else if("align_defaultValue"==a)o=Object.assign({},l,{align_defaultValue:i});else if("select2_defaultValue"==a){if("add"==s){let e=[...l[a]];e.push(i),o=Object.assign({},l,{[a]:e})}else if("remove"==s){let e=[...l[a]];e.splice(i,1),o=Object.assign({},l,{[a]:e})}}else o="select_defaultValue"==a?Object.assign({},l,{[a]:i}):"nha_type"==a?Object.assign({},l,{[a]:i}):Object.assign({},l,{[a]:e.target.value});r.rnp?n[0][r.array_type][r.sec_id].inner_sec[r.compo_id].fields.splice(r.rnp,1,o):n[0][r.array_type][r.sec_id].inner_sec.splice(r.compo_id,1,o),t.addToCarthandler(n)},f=(e,i,s,n,r)=>{let l=e.dataTransfer.getData("controller_id");if(l)if("repeater"==l||"popover"==l)t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{const e=ki[l].name,a=Object.assign({},ki[l],{name:e+"_"+w()});let o=[...t.cardData.CardItems.cardData];if(null!=r){let e=o[0][n][i].inner_sec[s].fields[r],t=[...e.fields];t.push(a);let l=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s].fields[r]=l}else{let e=o[0][n][i].inner_sec[s],t=[...e.fields];t.push(a);let r=Object.assign({},e,{fields:t});o[0][n][i].inner_sec[s]=r}p(!0),t.addToCarthandler(o)}},k=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 r=(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),r(e,t)):(s.session.replace(a,""),r(e)))}},l=e=>{"gallery"!=e.type&&"select2"!=e.type&&"repeater"!=e.type||r(`data-${e.name}={${e.name}}`),"cpt"!=e.type&&"product_listing"!=e.type||(r(`data-${e.name}={${e.name}}`),r(`data-${e.name}_tag={${e.name}_tag}`),r(`data-${e.name}_cat={${e.name}_cat}`),r(`{{title_${e.name}}}`),r(`{{description_${e.name}}}`),r(`{{thumbnail_${e.name}}}`),r(`{{category_${e.name}}}`),r(`{{cat_name_${e.name}}}`),r(`{{cat_url_${e.name}}}`),r(`{{tag_${e.name}}}`),r(`{{tag_name_${e.name}}}`),r(`{{tag_url_${e.name}}}`),r(`{{post_date_${e.name}}}`),r(`{{post_link_${e.name}}}`),r(`{{auth_name_${e.name}}}`),r(`{{auth_email_${e.name}}}`),r(`{{auth_url_${e.name}}}`),r(`{{auth_id_${e.name}}}`),r(`{{auth_profile_${e.name}}}`)),"taxonomy"==e.type&&(r(`data-${e.name}={${e.name}}`),r(`{{title_${e.name}}}`),r(`{{description_${e.name}}}`),r(`{{taxo_image_${e.name}}}`),r(`{{taxo_slug_${e.name}}}`),r(`{{taxo_link_${e.name}}}`)),"url"==e.type&&(r(`{{${e.name}-url}}`),r(`{{${e.name}-is_external}}`),r(`{{${e.name}-nofollow}}`)),"headingtags"==e.type&&r(e.name,"div"),r(`{{${e.name}}}`)};if(a.rnp){var o=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id].fields[a.rnp];l(o),"repeater"!=o.type&&"popover"!=o.type&&"cpt"!=o.type||o.fields.map((e=>{l(e)}))}else o=i[0][a.array_type][a.sec_id].inner_sec[a.compo_id],l(o),"repeater"!=o.type&&"popover"!=o.type||o.fields.map((e=>{l(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("")},b=async e=>{let a=e.target.closest(".wb-main-component").dataset,i=[...t.cardData.CardItems.cardData],s=w();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}),r=[];t.fields.map((e=>{let t=e.type,a=Object.assign({},e,{name:t+"_"+w()});r.push(a)}));let l=Object.assign({},n,{fields:r}),o=Number(a.compo_id);i[0][a.array_type][a.sec_id].inner_sec.splice(o+1,0,l)}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)},x=(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)}},v=()=>{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}},y=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"))},j=e=>(0,g.jsx)("div",{className:"wb-hover-component",onClick:e=>{N(e)},children:!e?.only_edit&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})}),N=e=>{let t=e.target.closest(".wdkit-three-dot-cover")?.querySelector(".wdkit-three-dot-cover-content");t&&(t.classList.contains("wdkit-show-controller-actions")?t.classList.remove("wdkit-show-controller-actions"):t.classList.add("wdkit-show-controller-actions"))},$=()=>!t?.only_edit;if("text"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-append-content wb-main-component "+(v()===t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wdkit-wb-control-edit-cover",children:[(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.jsx)("input",{className:"wb-append-inp",value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("preview"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-append-content wb-main-component",draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsxs)("div",{className:"wkit-wb-preview-ct",children:[(0,g.jsx)("p",{className:"wkit-wb-preview-ct-text",children:(0,a.__)("Update changes to page","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-wb-preview-ct-btn",children:(0,a.__)("Apply","wdesignkit")})]})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{hide_edit:!0})})]})})]})]})]});if("number"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-append-content wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.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=>{_(e,"defaultValue")}})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("wysiwyg"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("code"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.lableBlock?"block":"flex"},children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});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,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-alignment-header",children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.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,g.jsx)(Ui,{children:(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[a.align_lable&&(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:a.align_lable}),e.includes(a.align_icon)?a.align_value==t.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Ji}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):a.align_value==t.align_defaultValue?(0,g.jsx)("img",{className:"wkit-wb-align-icon wb-icon-selected",src:`${Ji}assets/images/wb-svg/info-white.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/info.svg`,onClick:e=>{_(e,"align_defaultValue",a.align_value)}})]})},i)))})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]})}if("font"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("select",{className:"select-dropdown",children:[(0,g.jsx)("option",{children:(0,a.__)("font-1","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("font-2","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("font-3","wdesignkit")})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})]});if("datetime"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-date-time wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",style:{width:1==t.lableBlock?"100%":"50%"},children:(0,g.jsx)("input",{className:"wb-append-inp wb-date-time-w",value:t.defaultValue,type:"datetime-local",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("gallery"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-gallery wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-gallery-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{width:"60%"},children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"block":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-gallery-image",children:[(0,g.jsx)("div",{className:"wb-gallery-image-header",children:(0,g.jsx)("label",{children:(0,a.__)("No Images Selected","wdesignkit")})}),(0,g.jsx)("div",{className:"wb-gallery-image-content",children:(0,g.jsx)("div",{className:"wb-gallery-image-backgorund",children:(0,g.jsx)("img",{src:Ji+"assets/images/wb-svg/add-section-icon.svg"})})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("background"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-background wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-background-header",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-icons",children:[(0,g.jsx)("span",{style:{display:-1==t.types.indexOf('"classic"')?"none":"flex"},className:"wb-background-icon left",children:(0,g.jsx)("i",{className:"wdkit-i-wb-color-picker"})}),(0,g.jsx)("span",{style:{display:-1==t.types.indexOf('"gradient"')?"none":"flex"},className:"wb-background-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-background-1"})})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("border"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-border wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-border-header",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-icons",children:[(0,g.jsx)("span",{className:"wb-border-icon left",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-solid"})}),(0,g.jsx)("span",{className:"wb-border-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-dotted-border"})}),(0,g.jsx)("span",{className:"wb-border-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-dash"})}),(0,g.jsx)("span",{className:"wb-border-icon right",children:(0,g.jsx)("i",{className:"wdkit-i-wbc-double-border"})})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("boxshadow"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,g.jsx)("div",{className:"wb-box-shadow-header",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,g.jsxs)("div",{className:"content-1",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,g.jsx)("img",{className:"wb-color-icon",src:Ji+"assets/images/wb-svg/box.svg"})]}),(0,g.jsxs)("div",{className:"content-2",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-3",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-4",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-5",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("textshadow"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-box-shadow wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:"column"},children:[(0,g.jsx)("div",{className:"wb-box-shadow-header",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-box-shadow-content",children:[(0,g.jsxs)("div",{className:"content-1",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Color","wdesignkit")}),(0,g.jsx)("img",{className:"wb-color-icon",src:Ji+"assets/images/wb-svg/box.svg"})]}),(0,g.jsxs)("div",{className:"content-2",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("X","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-3",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Y","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-4",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Blur","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]}),(0,g.jsxs)("div",{className:"content-5",children:[(0,g.jsx)("span",{className:"content-text",children:(0,a.__)("Spread","wdesignkit")}),(0,g.jsx)("input",{className:"shadow-inp",type:"number"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("color"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-color wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-border-color",children:(0,g.jsxs)("div",{className:"wb-append-inner-color",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("div",{className:"wb-color-icon",children:(0,g.jsx)("input",{className:"wb-color-picker",type:"color",value:t.defaultValue,onChange:e=>{_(e,"defaultValue")}})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("cssfilter"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-css-filter wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-css-filter-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("span",{className:"wb-css-filter-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("dimension"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-dimension wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:t.dimension_defaultValue&&(0,g.jsxs)("div",{className:"wb-dimension-content",children:[(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp top-inp",value:t.dimension_defaultValue.top,onChange:e=>{_(e,"dimension_defaultValue","top")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("TOP","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp right-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.right,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"right")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("RIGHT","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp bottom-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.bottom,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"bottom")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("BOTTOM","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wb-dimension-inp",children:[(0,g.jsx)("input",{className:"dimension-inp left-inp",value:1==t.dimension_defaultValue.isLinked?t.dimension_defaultValue.top:t.dimension_defaultValue.left,onChange:e=>{_(e,"dimension_defaultValue",1==t.dimension_defaultValue.isLinked?"top":"left")},type:"number"}),(0,g.jsx)("span",{className:"wb-dimension-lable",children:(0,a.__)("LEFT","wdesignkit")})]}),(0,g.jsx)("div",{className:"wb-dimension-icon",onClick:e=>{_(e,"dimension_defaultValue","isLinked")},children:(0,g.jsx)("span",{className:1==t.dimension_defaultValue.isLinked?"dimension-icon wkit-wb-dark":"dimension-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-link"})})})]})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("typography"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-typography wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-typography-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("span",{className:"wb-typography-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("gradientcolor"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-grediant-color wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-grediant-color-content wb-append-input-field",children:[(0,g.jsx)("div",{className:"wb-grediant-color-bar",style:{background:`${t.defaultValue}`}}),(0,g.jsxs)("div",{className:"wb-grediant-color-selector",children:["gutenberg"!=t.widgetdata.type&&(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("select",{className:"gradiant-color-dropDown",children:[(0,g.jsx)("option",{children:(0,a.__)("Linear","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("radial","wdesignkit")}),(0,g.jsx)("option",{children:(0,a.__)("conic","wdesignkit")})]}),(0,g.jsx)("input",{className:"grediant-color-inp",value:"135",type:"text"})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]});if("heading"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-heading wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-header-content",children:(0,g.jsx)("div",{className:"wb-append-inner",children:"bricks"==t.widgetdata.type?(0,g.jsx)("textarea",{className:"wb-textarea-inp wkit-wb-heading-textarea",value:t.lable,rows:3,onChange:e=>{_(e,"lable")}}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("repeater"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-main-component wb-repeater "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-repeater-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-repeater-field",onClick:()=>{p(!c)},children:(0,g.jsx)("input",{className:"wb-repeater-field-title",value:t.title_field,onChange:e=>{_(e,"title_field")}})}),(0,g.jsxs)("div",{className:"wb-repeater-options",style:{display:1==c?"block":"none"},children:[t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.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,g.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,g.jsxs)("div",{className:`wb-repeater-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),f(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,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("popover"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-popover wb-main-component "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner wkit-wb-popoverLable",children:(0,g.jsx)("input",{className:"wb-append-label wkit-wb-popoverInput",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-popover-options",children:[t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.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,g.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,g.jsxs)("div",{className:`wb-popover-droped class-${t.sec_index}-${t.compo_index}`,draggable:!0,onDragOver:e=>{e.preventDefault()},onDrop:e=>{e.preventDefault(),f(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,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("normalhover"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-popover wb-main-component "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-popover-droped")&&x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsxs)("div",{className:"wb-popover-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-popover-options wb-normalHover-options",children:[(0,g.jsx)("div",{className:"wkit-wb-normalHover",children:t.nha_array.length>0&&t?.nha_array.filter((e=>null!==e)).map(((e,a)=>(0,g.jsx)("div",{className:"wkit-wb-normalHoverList",style:{backgroundColor:t.nha_type==e?i():"white",color:t.nha_type==e?"#fff":"black",width:h("width"),border:h("border",a)},onClick:t=>{_(t,"nha_type",e||a)},children:h("label",e)})))}),t.fields&&t.fields.map(((e,a)=>{if(e.key==t.nha_type)return(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.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,g.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,g.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,r)=>{let l=e.dataTransfer.getData("controller_id");if(l)if("normalhover"==l)t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{const e=ki[l].name,a=Object.assign({},ki[l],{name:e+"_"+w(),key:r});let o=[...t.cardData.CardItems.cardData],d=o[0][n][i].inner_sec[s],c=[...d.fields];c.push(a);let m=Object.assign({},d,{fields:c});o[0][n][i].inner_sec[s]=m,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,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{children:(0,a.__)("Add Controller","wdesignkit")})]})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]});if("divider"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-heading wkit-divider-controller wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-header-content",children:(0,g.jsx)("hr",{})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("rawhtml"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-heading wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-header-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"wb-right-append",children:(0,g.jsx)("textarea",{className:"wb-append-inp",style:{width:"100%"},value:t.defaultValue,type:"text",placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("icon"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})})]})]});if("hidden"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})})]})]});if("media"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-media wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-media-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",style:{display:1==t.showLable?"block":"none"},children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-media-icon",style:{width:1==t.lableBlock?"100%":"65%"},src:Ji+"assets/images/jpg/placeholder.png",draggable:"false"})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("iconscontrol"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-icon-list-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:(0,g.jsxs)("div",{className:"wb-append-inner",children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})})]})]});if("linksearch"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-link-search wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-link-search-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-link-search-icon",src:Ji+"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,r]=[parseInt(i.min),parseInt(i.max)];i.value=Math.min(parseInt(i.value),parseInt(t.value)-1);const l=(i.value-n)/(r-n)*100;a.style.left=l+"%",s.style.left=l+"%"})),t.addEventListener("input",(()=>{const a=t,[n,r]=[parseInt(a.min),parseInt(a.max)];a.value=Math.max(parseInt(a.value),parseInt(e.value)+1);const l=(a.value-n)/(r-n)*100;i.style.right=100-l+"%",s.style.right=100-l+"%"}))})),(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-multi-range wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-multi-range-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("div",{className:"middle",children:(0,g.jsxs)("div",{className:"multi-range-slider",children:[(0,g.jsx)("input",{type:"range",id:"input-left",min:"0",max:"100",value:"25"}),(0,g.jsx)("input",{type:"range",id:"input-right",min:"0",max:"100",value:"75"}),(0,g.jsxs)("div",{className:"slider",children:[(0,g.jsx)("div",{className:"track"}),(0,g.jsx)("div",{className:"range"}),(0,g.jsx)("div",{className:"thumb left"}),(0,g.jsx)("div",{className:"thumb right"})]})]})})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{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,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{border:e,padding:"5px"},children:[(0,g.jsxs)("div",{style:{display:"flex",flexDirection:"row",gap:"10px"},children:[(0,g.jsx)("div",{className:"wb-notice-svg",children:(0,g.jsx)("svg",{width:"22",height:"22",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"wb-notice-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")},style:{fontWeight:"600"}})}),""!==t.description&&(0,g.jsx)("div",{children:(0,g.jsx)("textarea",{className:"wb-note-inp",value:t.description,placeholder:(0,a.__)("Write Your Note here....","wdesignkit"),onChange:e=>{_(e,"description")}})})]})]}),1==t.dismissible&&(0,g.jsx)("div",{className:"wb-notice-close",children:(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",width:"13",height:"13",children:(0,g.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,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})}if("radioadvanced"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-radio-advanced wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-radio-advanced-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-radio-color",children:[(0,g.jsx)("div",{className:"normal"==r?"radio-btn active-ra":"radio-btn",onClick:()=>{l("normal")},children:(0,a.__)("Normal","wdesignkit")}),(0,g.jsx)("div",{className:"grediant"==r?"radio-btn active-ra":"radio-btn",onClick:()=>{l("grediant")},children:(0,a.__)("grediant","wdesignkit")})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]});if("slider"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-range wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("div",{className:"wb-range-content",children:(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.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,g.jsxs)(Ui,{children:[(0,g.jsx)("input",{className:"wb-range-inp",min:e.min,max:e.max,step:e.step,type:"range",value:t.slider_defaultValue[1],onChange:e=>{_(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,g.jsx)("input",{className:"range-inp-val",min:e.min,max:e.max,step:e.step,type:"number",value:t.slider_defaultValue[1],onChange:e=>{_(e,"defaultValue_slider")}})]},a)}))})]})}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("select"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("selecttemplate"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:"Select Template"}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:(0,g.jsx)("option",{selected:"Select Template",children:(0,a.__)("Select Template","wdesignkit")})})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]})]});if("align"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-alignment wb-main-component wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-alignment-header",children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"row"},children:[(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsxs)("div",{className:"wb-icons",children:["text-align"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Left","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-left.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Right","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-right.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Justify","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/eicon-text-align-justify.svg`})]})]}),"justify-content"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Start","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-start.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("End","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-end.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Between","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-between.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Around","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-around.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Space Evenly","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/justify-content-space-evenly.svg`})]})]}),"align-items"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Start","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-start.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Center","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-center.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("End","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-end.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Stretch","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-items-stretch.svg`})]})]}),"flex-direction"==t.alignType&&(0,g.jsxs)(Ui,{children:[(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Vertical","wdesignkit"),"(Collumn)"]}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-vertical-direction.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsxs)("div",{className:"wkit-wb-align-icon-lable",children:[(0,a.__)("Horizontal","wdesignkit"),"(row)"]}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-horizontal-direction.svg`})]}),(0,g.jsxs)("div",{className:"wkit-wb-alignIcon-content",children:[(0,g.jsx)("div",{className:"wkit-wb-align-icon-lable",children:(0,a.__)("Row","wdesignkit")}),(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${Ji}assets/images/wb-svg/align-reverse-direction.svg`})]})]})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("headingtags"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.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,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("select2"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-main-component wb-select2 "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select2-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header wkit-multi-select-dropDown",onClick:e=>{y(e)},children:[t.select2_defaultValue&&t.select2_defaultValue.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-wb-multi-selected",children:[(0,g.jsx)("div",{className:"wkit-wb-remove-value",onClick:e=>{_(e,"select2_defaultValue",t,"remove")},children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),(0,g.jsx)("label",{children:e.lable})]},t))),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]}),(0,g.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,g.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,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{type:"checkbox",style:{display:"none"},onChange:e=>{_(e,"select2_defaultValue",i,"add")}}),(0,g.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})},a)}))})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("textarea"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-textarea wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-textarea-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{_(e,"defaultValue")}})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]});if("switcher"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-toggle wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-toggle-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("input",{className:"wb-append-inner wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.defaultValue,onChange:e=>{_(e,"switcher_defaultValue")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})})]})]});if("url"==t.type)return(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-url wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-append-input-field",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wb-right-append",children:[(0,g.jsxs)("div",{className:"wb-url-content",children:[(0,g.jsx)("input",{className:"wb-url-inp",type:"url",placeholder:t.placeHolder,value:t.defaultValue,onChange:e=>{_(e,"defaultValue")}}),(0,g.jsx)("span",{className:"inp-url-icon",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")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})})]}),(0,g.jsxs)("div",{className:"wb-url-options",children:[(0,g.jsxs)("div",{className:"url-opt",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.is_external,onChange:e=>{_(e,"is_external")}}),(0,g.jsx)("label",{children:(0,a.__)("Open in new window","wdesignkit")})]}),(0,g.jsxs)("div",{className:"url-opt",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.nofollow,onChange:e=>{_(e,"nofollow")}}),(0,g.jsx)("label",{children:(0,a.__)("Add Nofollow","wdesignkit")})]})]})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),$()&&(0,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{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,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{borderLeft:e,background:a,padding:"10px"},children:[(0,g.jsxs)("div",{className:"wb-append-inner",style:{flexDirection:"column"},children:[(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")},style:{background:a}}),(0,g.jsx)("input",{className:"wb-append-label",value:t.description,onChange:e=>{_(e,"description")},style:{background:a}})]}),(0,g.jsx)("div",{})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]})}return"deprecatednotice"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-note wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-note-content",style:{borderLeft:"2px solid #f59e0b",background:"#fffbeb",padding:"10px"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.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,g.jsx)("div",{})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"styleimage"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-select wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t.select_defaultValue[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"svg"==t.type||"query"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-icon-list wb-main-component "+(v()==t.name?"wkit-wb-selected":""),draggable:m,onDragEnd:()=>{u(!1)},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{x(e)},children:[(0,g.jsx)("div",{className:"wb-draggable-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("span",{className:"tp-sec-edit",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsxs)("div",{className:"wb-icon-list-content",children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-icon-list-icon",src:Ji+"assets/images/wb-svg/pana-icon.svg"})]}),$()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)(j,{only_edit:!!t?.only_edit})})]})]})]}):"cpt"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):"product_listing"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):"taxonomy"==t.type?(0,g.jsxs)(g.Fragment,{children:[(0,g.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,g.jsxs)("div",{className:"wb-main-component wb-cpt-inner "+(v()==t.name?"wkit-wb-main-selected":""),draggable:m,onDragEnd:()=>{u(!1)},style:{marginTop:"before"==t.separator?"15px":"",marginBottom:"after"==t.separator?"15px":""},"data-compo_id":t.compo_index,"data-sec_id":t.sec_index,"data-array_type":t.array_type,"data-rnp":t.rnp_id,"data-rnp2":t.rnp2_id,"data-nha":t.nha_type,"data-editable":t?.only_edit,onClick:e=>{!e.target.closest(".wb-repeater-droped")&&x(e,"cpt_controller")},children:[(0,g.jsx)("div",{className:"wb-draggable-main-icon",onMouseDown:()=>{u(!0)},onMouseUp:()=>{u(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})}),(0,g.jsx)("div",{className:"wb-select wb-cpt-select",children:(0,g.jsxs)("div",{className:"wb-select-content",style:{flexDirection:1==t.lableBlock?"column":"row"},children:[(0,g.jsx)("div",{className:"wb-append-inner",children:(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{_(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{y(e)},children:[(0,g.jsx)("label",{children:t?.select_defaultValue?.[1]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content",children:t?.options.map(((e,t)=>{let a=[e.value,e.lable];return(0,g.jsx)(Ui,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{_(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]})}),(0,g.jsx)("div",{className:"wb-repeater-content",children:t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(Ki,{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,g.jsx)("div",{className:"wdkit-wb-cont-opt-cover",children:(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{N(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsxs)("div",{className:"wb-hover-component",children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-copy"}),(0,a.__)("Duplicate","wdesignkit")]}),(0,g.jsxs)("div",{className:"wb-sec-edit remove-btn",onClick:e=>{k(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})})]})]}):void 0})),{Fragment:Zi}=wp.element,Yi=Ya((e=>({cardData:e.CardItems.cardData,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(ji(t)),addToActiveController:t=>e(Si(t)),addToActiveSection:t=>e(Di(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{wdkitData.WDKIT_URL;const i=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(0),o=(0,e.useRef)(),d=(0,e.useRef)(),c=(0,e.useRef)(),[p,m]=((0,e.useRef)(),(0,e.useState)(0)),[u,h]=(0,e.useState)(""),w=[{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)%w.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(),c.current=e.target.closest(".wb-main-component").dataset)}))}));var s=document.querySelectorAll(".wb-drop");s.length>0&&s.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"),r=e.target.nextElementSibling.dataset.sec_id,l=e.target.nextElementSibling.dataset.compo_id;const o=ki[n].name;if(e.target.nextSibling.dataset.nha)var s=Object.assign({},ki[n],{name:o+"_"+i(),key:e.target.nextSibling.dataset.nha});else s=Object.assign({},ki[n],{name:o+"_"+i()});let d=[...t.cardData];if(e.target.nextSibling.dataset.editable)return t.wdkit_set_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")}),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_notification({title:(0,a.__)("Not Valid","wdesignkit"),desc:(0,a.__)("You Can Not put this controller here","wdesignkit")});else{let a=e.target.nextSibling.dataset.rnp,i=d[0][t.array_type][r].inner_sec[l],n=[...i.fields];n.splice(a,0,s);let o=Object.assign({},i,{fields:n});d[0][t.array_type][r].inner_sec[l]=o}else d[0][t.array_type][r].inner_sec.splice(l,0,s);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=c.current?.sec_id,i=c.current?.compo_id,s=null!=c.current?.rnp?c.current?.rnp:"",n=e?.sec_id,r=e?.compo_id,l=null!=e?.rnp?e?.rnp:"",o=[...t.cardData];if(o?.[0]?.[t?.array_type]?.[a]?.inner_sec[i]){if(s&&l){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<l?o[0][t.array_type][n].inner_sec[r].fields.splice(l-1,0,e):o[0][t.array_type][n].inner_sec[r].fields.splice(l,0,e)}else if(s&&!l){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(r,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<r?o[0][t.array_type][n].inner_sec.splice(r-1,0,e):o[0][t.array_type][n].inner_sec.splice(r,0,e)}t.addToCarthandler(o),t.addToActiveController("")}},f=(e,a)=>{let s=e.dataTransfer.getData("controller_id");if(s){let e=i();const n=ki[s];let r=[];"cpt"!=s.toLowerCase()&&"product_listing"!=s.toLowerCase()&&"taxonomy"!=s.toLowerCase()||n?.fields.length>0&&n.fields.map((t=>{let a=Object.assign({},t,{name:t.name+"_"+e});r.push(a)}));const l=Object.assign({},ki[s],{name:n.name+"_"+e,unique_id:e,fields:r});let o=[...t.cardData];o[0][t.array_type][a].inner_sec.push(l),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 r={name:`builder-${s}`,section:n,compo_index:s,inner_sec:[]};if(i[0][t.array_type].push(r),t.addToCarthandler(i),l(s),void 0!==a){let a=i[0][t.array_type].length-1;f(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),l(s+1),void 0!==a){let a=i[0][t.array_type].length-1;f(e,a),t.addToActiveSection({sec_id:Number(a),array_type:t.array_type})}}},b=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})},x=(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,g.jsx)("div",{className:"wb-second-layout-container",children:(0,g.jsxs)("div",{className:"wb-second-layout-content",children:[(0,g.jsx)("div",{className:"append",children:Object.values(t.cardData[0][t.array_type])?.map(((e,l)=>(0,g.jsx)(Zi,{children:(0,g.jsxs)("div",{draggable:s,className:"wb-section",id:`builder-${l}`,"data-index":l,onDragEnd:e=>{d.current=null,o.current=null,n(!1)},onDragEnter:e=>{((e,a)=>{let i=[...t.cardData],s=i[0][t.array_type][d.current];null!==d.current&&void 0!==d.current&&d.current!==a&&(i[0][t.array_type][d.current]=i[0][t.array_type][a],i[0][t.array_type][a]=s,d.current=a,t.addToCarthandler(i)),o.current=a,t.addToActiveSection({sec_id:a,array_type:t.array_type})})(0,l)},onDragStart:e=>{((e,t)=>{d.current=t})(0,l)},children:[(0,g.jsxs)("div",{className:"wb-section-header","data-sec_index":l,onClick:e=>{!e.target.closest(".wb-section-btns")&&t.section_id.sec_id!=l&&b(l)},children:[(0,g.jsxs)("div",{className:"wb-section-title",children:[(0,g.jsx)("div",{className:"wdkit-wb-move-icon",onMouseDown:()=>{n(!0)},onMouseUp:()=>{n(!1)},children:(0,g.jsx)("span",{className:"wb-section-title-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-move"})})}),(0,g.jsx)("i",{className:"wdkit-i-up-arrow",style:{transform:t.section_id.sec_id==l?"":"rotate(180deg)",transition:"transform 0.3s linear"},onClick:e=>{b(l)}}),(0,g.jsx)("span",{className:"wb-section-title-text",children:e?.section})]}),(0,g.jsxs)("div",{className:"wb-section-btns",children:[(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-copy",onClick:e=>{((e,a)=>{let s=[...t.cardData],n=s[0][t.array_type][a].section,l=e.target.closest(".wb-section-header").dataset.sec_index,o=[...s[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+"_"+i()});t.push(a)}));let a=Object.assign({},e,{fields:t}),s=Object.assign({},a,{name:a.type+"_"+i()});d.push(s)}else{let t=Object.assign({},e,{name:e.type+"_"+i()});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",s[0][t.array_type]),p=Object.assign({},o[l],{compo_index:r,name:i(),inner_sec:d,section:c}),m=Number(l);s[0][t.array_type].splice(m+1,0,p),t.addToCarthandler(s)})(e,l)}})}),(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-wb-pen",onClick:e=>{t.addToActiveController({sec_id:l,array_type:t.array_type})}})}),(0,g.jsx)("span",{className:"wb-sec-btn",children:(0,g.jsx)("i",{className:"wdkit-i-delete",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,l)}})})]})]}),(0,g.jsxs)("div",{className:t.section_id.sec_id==l?"wb-components-settings wb-show":"wb-components-settings",children:[e?.inner_sec.length>0?Object.values(e?.inner_sec)?.map(((e,a)=>(0,g.jsx)(Zi,{children:(0,g.jsx)(Ki,{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:l,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,g.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,g.jsx)("div",{className:"wb-main-component",draggable:"false","data-compo_id":e?.inner_sec.length,"data-sec_id":l,"data-array_type":t.array_type}),(0,g.jsxs)("div",{className:"wb-droped",draggable:!0,onDragOver:e=>{e.preventDefault()},onDragEnter:e=>{x(e,"add")},onDragLeave:e=>{x(e,"remove")},onDrop:e=>{e.preventDefault(),f(e,l),x(e,"remove")},onClick:e=>{t.addToActiveController("")},children:[(0,a.__)("Add More","wdesignkit"),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})]})]},("builder-"+l).toString())},l)))}),(0,g.jsx)("div",{className:"wb-add-section",onClick:()=>{k()},onDragOver:e=>{e.preventDefault()},onDrop:e=>{k(e,t.array_type)},children:(0,g.jsxs)("span",{className:"add-section-btn",children:[(0,g.jsx)("span",{children:(0,a.__)("Add Section","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]})})})),Xi=Ya((e=>({Editor_code:e.Editor_code,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller})),(e=>({addToEditor_code:t=>e(Ci(t)),addToCarthandler:t=>e(ji(t)),addTowidgethandler:t=>e(Ni(t)),addTolinkhandler:t=>e($i(t)),addToActiveController:t=>e(Si(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",original_slug:"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,r]=(0,e.useState)("layout"),[d,c]=(0,e.useState)([]),[p,m]=(0,e.useState)(!1);(0,e.useEffect)((()=>{u("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),o([i[s]]).then((e=>{let t=Array.isArray(e?.data?.plugins)&&Array.isArray(e?.data?.theme)?[...e?.data?.plugins,...e?.data?.theme]:[];if(t?.length>0){let e={},a=t.findIndex((e=>"bricks"==e.name));a>-1&&"active"==t?.[a]?.status&&u(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),t.map((t=>{e[t.name]=t.status})),c(e)}}))}),[]),(0,e.useEffect)((()=>{document.body.classList.contains("folded")||document.body.classList.add("folded")}));const u=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 h="",w=0,_=0;t&&t.widgetdata&&t.widgetdata.type&&"elementor"==t.widgetdata.type?h="wkit-elementor-builder":t&&t.widgetdata&&t.widgetdata.type&&"gutenberg"==t.widgetdata.type?h="wkit-gutenberg-builder":t&&t.widgetdata&&t.widgetdata.type&&"bricks"==t.widgetdata.type&&(h="wkit-bricks-builder");const f=e=>{const t=e.clientX-w;let a=`${_+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,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:`wkit-wb-main-builder-page ${h}`,onClick:e=>{(e=>{let t=document.querySelectorAll(".wkit-wb-custom-dropDown-content.wkit-wb-show"),a=document.querySelectorAll(".wdkit-three-dot-cover-content.wdkit-show-controller-actions"),i=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(".wdkit-three-dot-cover")&&a&&a.forEach((e=>{e.classList.remove("wdkit-show-controller-actions")})),e.target.closest(".wkit-wb-choose-popup.wkit-wb-flex-show")||e.target.closest(".wb-options-inp.wkit-wb-icon-select")||!i||i.forEach((e=>{e.classList.remove("wkit-wb-flex-show")}))})(e)},children:[d&&Object.keys(d)?.length>0&&"active"!==d?.[i?.[s]?.name]&&(0,g.jsxs)("div",{className:`wkit-install-dependency wkit-wb-notice ${i[s]?.class}`,children:[(0,g.jsxs)("div",{className:"wkit-wb-notice-content",children:[(0,g.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,g.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,g.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,g.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,g.jsx)("span",{className:"wkit-install-plugin-text",children:i[s]?.text})]}),i[s]?.link?(0,g.jsx)("a",{href:i[s]?.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to Install ?","wdesignkit")}):"loading"===d[i[s].name]?(0,g.jsx)("button",{className:"wkit-install-plugin-btn",children:(0,g.jsx)("span",{className:"wdkit-plugin-install-loader"})}):(0,g.jsx)("button",{className:"wkit-install-plugin-btn",onClick:()=>{(async e=>{let a={...d,[e.name]:"loading"};c(a);let i={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type};l(i).then((i=>{i.data.success?(a={...d,[i.data.slug]:i.data.status},c(a),"elementor"==e.name&&u(wdkitData.WDKIT_SITE_URL+"/wp-content/plugins/elementor/assets/lib/eicons/css/elementor-icons.css")):t.wdkit_set_notification({title:"Installation Failed!",desc:"Plugin is not installed"})}))})(i[s])},children:(0,a.__)("Install Now","wdesignkit")})]}),(0,g.jsx)(Hi,{plugin_status:d,plugin_detail:i}),(0,g.jsxs)("div",{className:"wkit-wb-widget-builder "+(Object.keys(d).length>0&&"active"!==d[i[s].name]?"wkit-wb-rm-height":""),children:[(0,g.jsxs)("div",{className:"wkit-wb-first-part content",children:[(0,g.jsx)("div",{className:"wkit-wb-first-part-content",children:(0,g.jsx)(qi,{plugin_status:d})}),(0,g.jsx)("div",{className:"wkit-wb-first-second-drag",draggable:!0,onDragStart:e=>{(e=>{w=e.clientX;const t=window.getComputedStyle(e.target.parentElement);_=parseInt(t.width,10)})(e)},onDrag:e=>{f(e)},onDragEnd:e=>{f(e)}})]}),(0,g.jsxs)("div",{className:"wkit-wb-second content",children:[(0,g.jsxs)("div",{className:"wb-second-header",children:[(0,g.jsxs)("div",{className:"layout"==n?"wb-second-header-layout active":"wb-second-header-layout",onClick:()=>r("layout"),children:[(0,g.jsx)("i",{className:"wdkit-i-wb-layout-2"}),(0,g.jsx)("span",{className:"wb-layout-text",children:(0,a.__)("Layout","wdesignkit")})]}),(0,g.jsxs)("div",{className:"style"==n?"wb-second-header-style active":"wb-second-header-style",onClick:()=>r("style"),children:[(0,g.jsx)("i",{className:"wdkit-i-wb-brush"}),(0,g.jsx)("span",{className:"wb-style-text",children:(0,a.__)("Style","wdesignkit")})]})]}),"layout"==n&&(0,g.jsx)(Yi,{array_type:"layout"}),"style"==n&&(0,g.jsx)(Yi,{array_type:"style"})]}),(0,g.jsxs)("div",{className:"wkit-wb-third content",children:[(0,g.jsxs)("div",{className:"wkit-wb-third-header",children:[(0,g.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,g.jsx)("i",{className:"wdkit-i-wb-elements"}),(0,g.jsx)("span",{children:(0,a.__)("Controls","wdesignkit")})]}),(0,g.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,g.jsx)("i",{className:"wdkit-i-wb-edit"}),(0,g.jsx)("span",{children:(0,a.__)("Edit","wdesignkit")})]})]}),t&&t.controller&&t.controller.controller&&!t.controller.controller?.controller_type&&(0,g.jsx)(Li,{}),(0,g.jsx)("div",{style:{display:t&&!t.controller||!t.controller.controller||t.controller.controller?.controller_type?"block":"none",height:"100%"},children:(0,g.jsx)(Oi,{array_type:n})}),t&&(!t.controller||!t.controller.controller||t.controller.controller?.controller_type)&&!wdkitData?.wdkit_white_label?.plugin_news&&(0,g.jsxs)("div",{className:"wkit-wb-yt-link",onClick:()=>m(!0),children:[(0,g.jsx)("i",{className:"wdkit-i-youtube"}),(0,g.jsx)("span",{className:"wkit-wb-yt-link-text",children:(0,a.__)(" Watch Video Tutorials")})]}),p&&(0,g.jsx)("div",{id:"wkit-yt-popup-open",className:"wkit-yt-overlay",onClick:e=>{(e=>{Object.values(e?.target?.classList).includes("wkit-wb-yt-popup")&&m(!1)})(e)},children:(0,g.jsx)("div",{className:"wkit-wb-yt-popup",children:(0,g.jsx)("div",{className:"wkit-yt-carousel-slide",children:(0,g.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})})})})]})]})]})})})),Qi=Ya((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(Ci(t)),addToCarthandler:t=>e(ji(t)),addTowidgethandler:t=>e(Ni(t)),addTolinkhandler:t=>e($i(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(!0),[n,r]=(0,e.useState)("");var l=wdkitData.WDKIT_URL;const o=he(),d=ue();(0,e.useEffect)((()=>{p()||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(" ","_"):"",l=i.findIndex((e=>e.title.replaceAll(" ","_")+"_"+e.w_unique==n));if(l>-1){let e=i[l];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 w(i).then((e=>e.success?e.data:[]));let s=[...t.Editor_code];s[0]=c.Editor_data;let n=c.Editor_data,l=c.section_data,o=c.widget_data.widgetdata,d=c.Editor_Link.links,p={Editor_code:[n],carddata:l,widgetdata:o,e_links:d};t.addToEditor_code(s),t.addToCarthandler(l),t.addTowidgethandler(o),t.addTolinkhandler(d),r(p)}else t.wdkit_set_notification({title:(0,a.__)("Widget Deactivated","wdesignkit"),desc:(0,a.__)("This Widget is Deactivated ","wdesignkit")}),d("/widget-listing")}else t.wdkit_set_notification({title:(0,a.__)("Widget Not Found","wdesignkit"),desc:(0,a.__)("Widget not found try again later","wdesignkit")}),d("/widget-listing")};if(i){let e=wdkitData?.wdkit_white_label?.plugin_logo||l+"assets/images/jpg/wdkit_loader.gif";return(0,g.jsx)("div",{className:"wkit-loading-content",style:{display:"flex"},draggable:!1,children:(0,g.jsx)("img",{style:{width:"150px",height:"150px"},src:e,draggable:!1})})}return(0,g.jsx)(Xi,{})})),es=t=>{var a=wdkitData.WDKIT_URL;const i=e=>Array.from({length:e}),[s,n]=(0,e.useState)(!0);return(0,g.jsxs)(g.Fragment,{children:[t?.filter&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wkit-browse-widget-column",children:(0,g.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-b",children:(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b",children:"Filters"})}),(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Page Builder"})}),(0,g.jsx)("div",{className:"wkit-filter-builder",children:i(2).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-wb-widgetType",children:(0,g.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-builder-radio"}),(0,g.jsx)("label",{className:"wkit-builder-label",children:(0,g.jsx)("img",{className:"wkit-browse-filter-builder wkit-select-builder",src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})},t)))}),(0,g.jsx)("hr",{style:{width:"100%"}}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Free / Pro"})}),(0,g.jsx)("div",{className:"wkit-freePro-wrap wkit-accordion-content",children:i(2).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-freePro-radio-inp"}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:"Free"})]},t)))}),(0,g.jsx)("hr",{style:{width:"100%"}}),(0,g.jsxs)("div",{className:"wkit-filter-category",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b",children:"Categories"})}),(0,g.jsx)("div",{className:"wdkit-category-acc-cover",children:i(7).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:(0,g.jsxs)("label",{className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box wkit-styled-checkbox"}),(0,g.jsx)("span",{className:"wkit-widget-category-select",children:"Essential"})]})})},t)))})]})]})]})})}),(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[t?.filter&&(0,g.jsx)("div",{className:"wdkit-search-filter",children:(0,g.jsx)("div",{className:"wdkit-search-wrapper-b",children:(0,g.jsx)("input",{className:"wkit-search-input-b",placeholder:"Search Widgets",type:"text"})})}),t?.cards&&(0,g.jsx)("div",{className:"wkit-browse-widget-right-column",children:(0,g.jsx)("div",{className:`wkit-skeleton-row wdkit-templates-card-main ${s?"wdkit-grid-3col":"wdkit-grid-4col"} ${s?"":"wkit-browse-filter-close"}`,children:i(12).map(((e,t)=>{return i=t,(0,g.jsx)("div",{className:"wkit-widgetlist-grid-content",children:(0,g.jsxs)("div",{className:"wdkit-browse-card",children:[(0,g.jsx)("div",{className:"wdkit-browse-img-cover",children:(0,g.jsx)("div",{className:"wdkit-browse-img-container",children:(0,g.jsx)("div",{className:"wdkit-template-picture",children:(0,g.jsx)("img",{className:"wdkit-card-template-img wkit-widget-placeholder-img",src:a+"assets/images/wkit-dummy-bg.png",draggable:"false",style:{opacity:"0"}})})})}),(0,g.jsxs)("div",{className:"wdkit-browse-info",children:[(0,g.jsx)("p",{className:"wdkit-browse-card-name",children:(0,g.jsx)("span",{children:"Modern Hover Post"})}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(0,g.jsx)("div",{className:"wdkit-browse-card-download",children:(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}),(0,g.jsx)("div",{className:"wkit-widget-builder-icon",children:(0,g.jsx)("img",{src:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/widgets-builder/builder-63a02503.svg",draggable:"false"})})]})]})]})},i);var i}))})})]})]})},{Fragment:ts}=wp.element;let as=new AbortController;const is=t=>{const i=ue(),n=pe(),[r,l]=(0,e.useState)(1),[o,d]=(0,e.useState)(24),[c,m]=(0,e.useState)("loading"),[u,h]=(0,e.useState)(!0),[w,_]=(0,e.useState)(""),[f,k]=(0,e.useState)(),[b,x]=(0,e.useState)([]),[v,j]=(0,e.useState)(["page_builder","category","free_pro"]),[N,$]=(0,e.useState)(0),[C,S]=(0,e.useState)(!0),[D,E]=(0,e.useState)(!0),[P,A]=(0,e.useState)([]),[T,L]=(0,e.useState)(""),[M,F]=(0,e.useState)(""),[I,B]=(0,e.useState)({free_pro:"",type:"widget_browse_page",buildertype:"",perpage:o,page:r}),O=(0,e.useRef)(null),[R,V]=(0,e.useState)([]),[W,q]=(0,e.useState)(window.innerWidth<992),G=t?.wdkit_meta?.widgetbuilder?[...t?.wdkit_meta?.widgetbuilder]:[],z=t?.wdkit_meta?.widgetscategory?[...t?.wdkit_meta?.widgetscategory]:[],[H,U]=(0,e.useState)("");p()||t.wdkit_Login_Route("/widget-browse"),(0,e.useEffect)((()=>{k(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{if(S(!0),n?.search){const e=new URLSearchParams(n.search),t={};Array.from(e?.entries()).map((([e,a])=>{t[e]=a})),B((e=>({...e,...t}))),t.category&&x(JSON.parse(t.category)),t.buildertype&&_(t.buildertype),t.free_pro&&U(t.free_pro),t.search&&(F(t.search),L(t.search))}}),[]),(0,e.useEffect)((()=>{X(),E(!0)}),[I,o,r,f]),(0,e.useEffect)((()=>{const e=()=>{q(window.innerWidth<992)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(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),V(e)}),[t?.wdkit_meta?.Setting]);const J=e=>{let t=[];return G?.length>0&&e.map((e=>{let a=G.findIndex((t=>t.w_id==e)),i=G[a]?.builder_name;t.push(i)})),t},K=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e))),Z=(e,t)=>{if("category"===t){let t=[...b];if(t.includes(Number(e.target.value))){let i=t.indexOf(Number(e.target.value));t.splice(i,1),x(t);var a=Object.assign({},I,{category:JSON.stringify(t),page:1});l(1)}else t.push(Number(e.target.value)),x(t),a=Object.assign({},I,{category:JSON.stringify(t),page:1}),l(1)}else if("builder"===t){var s="";e.target.checked&&(s=e.target.value),_(s),a=Object.assign({},I,{buildertype:s,page:1}),l(1)}else if("search"===t)a=Object.assign({},I,{page:1}),l(1);else if("free_pro"===t){var n="";e.target.checked&&(n=e.target.value),U(n),a=Object.assign({},I,{free_pro:n,page:1}),l(1)}a=Object.assign({},a,{search:T}),B(a),F(T);const r=new URLSearchParams(K(a)).toString();i(`/widget-browse?${r}`)},Y=e=>{if(b.includes(e))return!0},X=async()=>{if(w)var e=Object.assign({},I,{buildertype:JSON.stringify([w])});else e=Object.assign({},I,{buildertype:JSON.stringify(J(R))});if(f?.widgetbuilder?.length>0){as&&as.abort(),as=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 s().post(ajaxurl,a,{signal:as.signal}).then((async e=>{e?.data?.data?.widgets&&(m(e?.data),$(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)})),A(a)})(e?.data)),S(!1),E(!1)})).catch((e=>{s().isCancel(e)}))}},Q=async e=>{let t=document.querySelector(".wkit-browse-widget-column");e?(t.classList.add("wdkit-browse-column-collapse"),h(!0),setTimeout((()=>{t.classList.remove("wdkit-browse-column-collapse")}),50)):(t.classList.add("wdkit-browse-column-collapse"),setTimeout((()=>{h(!1)}),150))},ee=e=>{if(v?.includes(e)){var t=v.filter((t=>t!==e));j(t)}else j([...v,e])};return(0,g.jsx)("div",{className:`wkit-browse-widget-wrap ${C?"wkit-skeleton":""} ${D?"wkit-widget-skeleton":""}`,children:(0,g.jsxs)("div",{className:"wkit-browse-widget-main",children:[u&&W&&(0,g.jsx)("div",{className:"wdkit-filter-overlay",onClick:()=>Q(!1)}),0==C&&c?.data?.widgets&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-browse-widget-column",style:u?{display:"block"}:{display:"none"},children:(0,g.jsxs)("div",{className:"wkit-browse-widget-inner-column",children:[(0,g.jsx)(Le,{title:(0,a.__)("Filters","wdesignkit"),filterToggle:u,setFilterToggle:Q}),"wdkit"==wdkitData.use_editor&&(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left",children:[(()=>{if(R.length>1)return(0,g.jsxs)(ts,{children:[(0,g.jsx)(Fe,{id:"page_builder",title:(0,a.__)("Page Builder","wdesignkit"),accordionToggle:v,onToggle:ee}),v?.includes("page_builder")&&(0,g.jsx)("div",{className:"wkit-filter-builder",children:G.length>0&&R.length>1&&Object.values(G)?.map(((e,t)=>{if(R.includes(e.w_id))return(0,g.jsx)(ts,{children:(0,g.jsx)("div",{className:"wdkit-wb-widget-type",children:(0,g.jsxs)("div",{className:"wkit-select-builder-list",children:[(0,g.jsx)("input",{type:"checkbox",id:"select_builder_"+e.builder_name,className:"wkit-builder-radio",value:e.builder_name.toLowerCase(),name:"selectBuilder",onChange:e=>{Z(e,"builder")},checked:w.includes(e.builder_name.toLowerCase())}),(0,g.jsx)("label",{className:"wkit-builder-label "+(w==e.builder_name.toLowerCase()?"wkit-select-builder":""),htmlFor:"select_builder_"+e.builder_name,children:""!=e.builder_icon&&(0,g.jsx)("img",{className:"wkit-browse-filter-builder",src:e.builder_icon,draggable:!1})}),(0,g.jsx)("span",{className:"wkit-builder-toolTip",children:e.builder_name})]})})},t)}))}),(0,g.jsx)("hr",{style:{width:"90%"}})]})})(),(0,g.jsxs)(ts,{children:[(0,g.jsx)(Fe,{id:"free_pro",title:(0,a.__)("Free / Pro","wdesignkit"),accordionToggle:v,onToggle:ee}),v?.includes("free_pro")&&(0,g.jsxs)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:[(0,g.jsxs)("label",{htmlFor:"wkit-free-all-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-all-btn-label",value:"",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:!I.free_pro||""==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("All","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-free-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-free-btn-label",value:"free",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:"free"==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Free","wdesignkit")})]}),(0,g.jsxs)("label",{htmlFor:"wkit-pro-btn-label",className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:"wkit-pro-btn-label",value:"pro",name:"FreeProFilter",onChange:e=>{Z(e,"free_pro")},checked:"pro"==I.free_pro}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:(0,a.__)("Pro","wdesignkit")})]})]}),(0,g.jsx)("hr",{style:{width:"90%"}})]}),(0,g.jsxs)("div",{className:"wkit-filter-category",children:[(0,g.jsx)(Fe,{id:"category",title:(0,a.__)("Categories","wdesignkit"),accordionToggle:v,onToggle:ee}),(0,g.jsx)("div",{className:"wdkit-category-acc-cover",children:z&&v.includes("category")&&z.map(((e,t)=>(0,g.jsx)(ts,{children:(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:(0,g.jsxs)("label",{htmlFor:"category_"+e.term_id,className:"wkit-plugin-name",children:[(0,g.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=>Z(e,"category"),checked:Y(e.term_id)}),(0,g.jsx)("span",{className:"wkit-widget-category-select",children:e.term_name})]})})},t)},t)))})]})]})]})}),(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(()=>{const e=(e,t)=>{let a;if("builder"==t)_(""),a=Object.assign({},I,{buildertype:""}),B(a);else if("category"==t){let t=[...b];t=t.filter((t=>t!==Number(e))),x(t),a=Object.assign({},I,{category:JSON.stringify(t)}),B(a)}else"free_pro"==t?(U(""),a=Object.assign({},I,{free_pro:""}),B(a)):"search"==t&&(F(""),L(""),a=Object.assign({},I,{search:""}),B(a));const s=new URLSearchParams(K(a)).toString();i(`/widget-browse?${s}`)};return(0,g.jsx)("div",{className:"wdkit-free-dropdown-mixed",children:(""!=H||b.length>0||""!=w||""!=M)&&(0,g.jsx)("div",{className:"wdkit-browse-applied-filter",children:(0,g.jsxs)(ts,{children:[(0,g.jsx)("label",{className:"wdkit-applied-filter-text",children:(0,a.__)("Applied Filter :")}),""!=w&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:w})}),(0,g.jsxs)("button",{onClick:t=>e(t,"builder"),children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:M})}),(0,g.jsx)("button",{onClick:t=>e(t,"search"),children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:H})}),(0,g.jsxs)("button",{onClick:t=>e(t,"free_pro"),children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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(z)?.map(((t,a)=>(0,g.jsx)(ts,{children:b.includes(t.term_id)&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:t.term_name})}),(0,g.jsx)("button",{onClick:()=>{e(t.term_id,"category")},children:(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsx)("button",{className:"wdkit-reset-all-filters wdkit-btn-class",onClick:()=>{x([]),U(""),_(""),F(""),L(""),B(Object.assign({},I,{free_pro:"",category:JSON.stringify([]),buildertype:"",search:"",perpage:o,page:1})),i("/widget-browse")},children:"Clear All"})]})})})})(),(0,g.jsxs)("div",{className:"wdkit-search-filter",children:[!u&&(0,g.jsx)("div",{className:"wdkit-filter-btn",onClick:()=>{Q(!u)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Me,{type:"browse-widgets",searchQuery:T,setSearchQuery:L,handleKeyPress:e=>{"Enter"===e.key&&(Z(e,"search"),O.current.blur())},handleFilterChecked:Z,inputRef:O})]}),0==D&&c?.data?.widgets.length>0&&(0,g.jsxs)("div",{className:"wkit-browse-widget-right-column",children:[(0,g.jsx)("div",{className:`wdkit-templates-card-main ${u?"wdkit-grid-3col":"wdkit-grid-4col"} ${u?"":"wkit-browse-filter-close"}`,children:c?.data?.widgets.map(((e,a)=>{if("active"==e.is_activated)return(0,g.jsx)(ts,{children:(0,g.jsx)(Vt,{widgetData:e,wdkit_dark_mode:t?.wdkit_dark_mode,existingwidget:P,setexistingwidget:e=>{A(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_notification:e=>t.wdkit_set_notification(e)})},a)}))}),(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[c?.data?.showwidgets>0&&c?.data?.widgetscount>0&&(0,g.jsx)(st,{showCount:c?.data?.showwidgets,totalCount:c?.data?.widgetscount,typeText:(0,a.__)("Widgets","wdesignkit")}),N>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:N,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&(l(e.nextSelectedPage+1),I.page=e.nextSelectedPage+1)},forcePage:r-1,onPageActive:()=>{}})]})]}),0==D&&c?.data?.widgets.length<=0&&(0,g.jsx)("div",{className:"wkit-post-not-found",children:(0,g.jsx)(it,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"manage-versions-of-a-widget/"})}),1==D&&(0,g.jsx)(es,{cards:!0})]})]}),!0===C&&(0,g.jsx)(es,{filter:!0,cards:!0,filterArgs:I})]})})};let ss=new AbortController;const ns=t=>{const[i,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(""),[o,d]=(0,e.useState)(""),[c,m]=(0,e.useState)(""),[u,h]=(0,e.useState)("Select Version"),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)(!0),[x,v]=(0,e.useState)(!1),[y,j]=(0,e.useState)(!1),N=wdkitData?.wdkit_white_label,[$,C]=(0,e.useState)({plugin_name:N?.plugin_name||"",plugin_desc:N?.plugin_desc||"",developer_name:N?.developer_name||"",website_url:N?.website_url||"",plugin_logo:N?.plugin_logo||"",help_link:N?.help_link||!1,plugin_news:N?.plugin_news||!1,licence_tab:N?.licence_tab||!1,rollback_tab:N?.rollback_tab||!1,force_disable:N?.force_disable||!1});(0,e.useEffect)((()=>{D()}),[]),(0,e.useEffect)((()=>{!i&&x&&v(!1)}),[i]);const S={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:wdkitData.wdkit_server_url,plugin_logo:"",help_link:!1,plugin_news:!1,licence_tab:!1,rollback_tab:!1,force_disable:!1},D=()=>{C(N?{plugin_name:N?.plugin_name||"",plugin_desc:N?.plugin_desc||"",developer_name:N?.developer_name||"",website_url:N?.website_url||"",plugin_logo:N?.plugin_logo||"",help_link:N?.help_link||!1,plugin_news:N?.plugin_news||!1,licence_tab:N?.licence_tab||!1,rollback_tab:N?.rollback_tab||!1,force_disable:N?.force_disable||!1}:S)};t.wdkit_Login_Route("/settings");var E=wdkitData.WDKIT_URL;const P=["studio","lifetime"];var A=!0,T=!0,L=!0,M=!0,F=!0,I=!0,B=!0,O=!0,R={remove_entries:!1,all_data:!1,promotion_data:!1,widget_builder_data:!1};if(t?.wdkit_meta?.Setting){var V=t?.wdkit_meta?.Setting;0==V?.elementor_builder&&(A=!1),0==V?.gutenberg_builder&&(T=!1),0==V?.bricks_builder&&(L=!1),0==V?.template&&(M=!1),0==V?.builder&&(F=!1),0==V?.gutenberg_template&&(I=!1),0==V?.elementor_template&&(B=!1),0==V?.code_snippet&&(O=!1),"on"==t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(R.remove_entries=!0,1==t?.wdkit_meta?.Setting.remove_db?.all_data&&(R.all_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.promotion_data&&(R.promotion_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.widget_builder_data&&(R.widget_builder_data=!0))}const W=e=>{var t="";return"error_handling"==e?t=(0,a.__)("Error Handling","wdesignkit"):"performance"==e?t=(0,a.__)("Performance","wdesignkit"):"role_manager"==e&&(t=(0,a.__)("Role Manager","wdesignkit")),(0,g.jsx)("div",{className:"wkit-mange-boxed-inner",children:(0,g.jsx)("div",{className:"wkit-settings-boxed",children:(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"wdkit-setting-card-header",children:[(0,g.jsx)("h3",{className:"wdkit-settings-boxed-head",children:t}),(0,g.jsx)("span",{className:"wdkit-comming-soon-pin",children:(0,a.__)("Coming Soon","wdesignkit")})]})})})})},q=e=>{var i="",s="";"builder"==e?i=(0,a.__)("Widget Builders","wdesignkit"):"features_enable"==e?i=(0,a.__)("Features Manager","wdesignkit"):"template"==e?i=(0,a.__)("Design Templates","wdesignkit"):"roll_back"==e?i=(0,a.__)("Roll Back","wdesignkit"):"plugin_uninstall"==e?i=(0,a.__)("Remove Database","wdesignkit"):"white_label"==e&&(i=(0,a.__)("White Label","wdesignkit"));const r=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||p()&&P.includes(t?.wdkit_meta?.credits?.user_type))&&(s=(0,g.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M23.4001 8.60399C23.4001 9.41758 22.8721 10.1376 22.3945 10.4256L21.5809 16.9392C21.5329 17.3208 21.2449 17.6568 20.8609 17.8008C15.2089 19.764 9.07932 19.764 3.47289 17.8008C3.0913 17.7048 2.80328 17.3208 2.75529 16.9392L1.94172 10.4256C1.1737 10.1856 0.600098 9.46559 0.600098 8.60399C0.600098 7.55039 1.46172 6.68878 2.51529 6.68878C3.5689 6.68878 4.43289 7.55039 4.43289 8.60399C4.43289 8.93999 4.3849 9.22799 4.24088 9.46559L6.01211 11.2392C6.3961 11.6688 7.06568 11.6688 7.49769 11.2392L10.7065 8.03039C10.3705 7.64638 10.1329 7.16638 10.1329 6.6408C10.1329 5.58719 10.9945 4.72559 12.0481 4.72559C13.1017 4.72559 13.9633 5.58719 13.9633 6.6408C13.9633 7.21438 13.7233 7.69438 13.3897 8.03039L16.5985 11.2392C16.9825 11.6688 17.6521 11.6688 18.0841 11.2392L19.8073 9.51359C19.6633 9.22799 19.5673 8.93999 19.5673 8.60399C19.5673 7.55039 20.4313 6.68878 21.4849 6.68878C22.5385 6.68878 23.4001 7.55039 23.4001 8.60399Z",fill:"#FFC100"})}),"wl-pro"===a))return"wdkit-setting-btn-enable-disble wdkit-btn-opacity"};return(0,g.jsx)("div",{className:`wkit-mange-boxed-inner ${r("disable_btn")}`,children:(0,g.jsxs)("div",{className:`wkit-settings-boxed ${r("disable_element")}`,children:[(0,g.jsx)("div",{children:(0,g.jsxs)("div",{className:"wdkit-card-title",children:[(0,g.jsxs)("span",{className:"wdkit-card-detail",children:["white_label"===e&&!s&&!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("span",{className:"wdkit-label-tooltip",children:(0,g.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",className:"wkit-wl-doc-link",children:(0,a.__)("Read Document","wdesignkit")})}),(0,g.jsx)("h3",{className:"wdkit-settings-boxed-head",children:i})]}),s&&(0,g.jsxs)("div",{className:"wdkit-wl-tolltip",children:[s,(0,g.jsxs)("span",{className:"wdkit-wl-user-msg",children:[(0,a.__)("Only lifetime & studio users can access this feature.","wdesignkit"),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{className:"wkit-wl-doc",href:wdkitData.WDKIT_DOC_URL+"white-label-wdesignkit-with-your-brand-name/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)(" Read Document","wdesignkit")})]})]})]})}),(0,g.jsx)("div",{className:"wdkit-setting-panel-ed",children:(0,g.jsx)("button",{type:"submit",disabled:!!s,className:`wkit-setting-icon-bg wdkit-transp-btn ${r("wl-pro")}`,onClick:()=>{l(e),d(i),n(!0)},children:(0,g.jsx)("span",{children:(0,a.__)("Customize","wdesignkit")})})})]})})},G=()=>{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&&j(!1);let a=Object.assign({},$,{[e]:t});C(a)};return(0,g.jsxs)("div",{className:"wkit-whiteLabel-container",children:[(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_name_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Name","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_name_update",className:"wkit-whiteLabel-input "+(y?"wkit-error-border":""),onChange:e=>{i("plugin_name",e.target.value)},value:$?.plugin_name,type:"text",placeholder:(0,a.__)("Enter Plugin Name","wdesignkit")}),y&&(0,g.jsx)("span",{className:"wkit-wl-tooltip",children:(0,a.__)("Name cannot be empty","wdesignkit")})]})}),(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_desc_update",className:"wkit-whiteLabel-label",children:(0,a.__)("Plugin Description","wdesignkit")}),(0,g.jsx)("textarea",{id:"wdkit_plugin_desc_update",value:$?.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,g.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_dname",className:"wkit-whiteLabel-label",children:(0,a.__)("Developer/Agency","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_dname",value:$?.developer_name,onChange:e=>{i("developer_name",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Developer Name","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{htmlFor:"wdkit_plugin_webURL",className:"wkit-whiteLabel-label",children:(0,a.__)("Website URL","wdesignkit")}),(0,g.jsx)("input",{id:"wdkit_plugin_webURL",value:$?.website_url,onChange:e=>{i("website_url",e.target.value)},className:"wkit-whiteLabel-input",type:"text",placeholder:(0,a.__)("Enter Web URL","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-inp-container",children:(0,g.jsxs)("div",{className:"wkit-data-container",children:[(0,g.jsx)("label",{className:"wkit-whiteLabel-label",children:(0,a.__)("Plus Icon/Logo","wdesignkit")}),(0,g.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:$?.plugin_logo?(0,g.jsxs)("div",{className:"wkit-plugin-icon-upload wkit-wl-img-uploaded",children:[(0,g.jsx)("span",{className:"wkit_wl_remove_img",children:(0,g.jsx)("i",{className:"wdkit-i-cancel"})}),(0,g.jsx)("img",{src:$?.plugin_logo})]}):(0,g.jsxs)("div",{className:"wkit-plugin-icon-upload",children:[(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"45",height:"42",viewBox:"0 0 45 42",fill:"none",children:(0,g.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,g.jsx)("span",{className:"tpae_select_img_txt",children:(0,a.__)("Upload Icon File (Only .PNG, .JPG, and .SVG are supported)","wdesignkit")})]})})]})}),(0,g.jsx)("div",{className:"wkit_wl_checkbox_list",children:e.length>0&&e.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit_check_box_list",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit_"+e.key,className:"wkit-check-box",checked:$?.[e.key],onChange:t=>{i(e.key,t.target.checked)}}),(0,g.jsx)("label",{className:"wkit_checkbox_label",dangerouslySetInnerHTML:{__html:e.text},htmlFor:"wkit_"+e.key})]},t)))}),(0,g.jsxs)("div",{className:"wdkit_field_card_cover",children:[(0,g.jsx)("button",{className:"wkit-btn-class",disabled:JSON.stringify($)==JSON.stringify(S),onClick:()=>{(async()=>{confirm("Are you sure you want to reset the white label?")&&await w({type:"wkit_reset_wl"}).then((e=>{e?.success&&window.location.reload()}))})()},children:(0,a.__)("Reset","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-btn-class",onClick:()=>{(async()=>{if(!$?.plugin_name.trim()){j(!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($)};await w(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")})]})]})},z=(e,a,i)=>{if(i){if(a)var n=Object.assign({},t?.wdkit_meta?.Setting?.[i],{[e]:a});else delete t?.wdkit_meta?.Setting?.[i]?.[e],n=t?.wdkit_meta?.Setting?.[i];var r=Object.assign({},t?.wdkit_meta?.Setting,{[i]:n})}else r=Object.assign({},t?.wdkit_meta?.Setting,{[e]:a});let l=Object.assign({},t?.wdkit_meta,{Setting:r});t.wdkit_set_meta(l);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(r)),ss&&ss.abort(),ss=new AbortController,s().post(ajaxurl,o,{signal:ss.signal}).then((async e=>{if(1==e?.success&&e?.data){let e=Object.assign({},t?.wdkit_meta,{Setting:r});t.wdkit_set_meta(e)}})).catch((e=>{s().isCancel(e)}))},H=(e,t)=>{var i="",s="";return"builder"==e?(i=(0,a.__)("Widget Builders","wdesignkit"),s=(0,a.__)("Create and customize your own widgets.","wdesignkit")):"features_enable"==e?(i=(0,a.__)("Features Manager","wdesignkit"),s=(0,a.__)("Manage and control all features.","wdesignkit")):"template"==e?(i=(0,a.__)("Design Templates","wdesignkit"),s=(0,a.__)("Browse and use ready-made templates.","wdesignkit")):"roll_back"==e?(i=(0,a.__)("Roll Back","wdesignkit"),s=(0,a.__)("Restore a previous version easily.","wdesignkit")):"plugin_uninstall"==e?(i=(0,a.__)("Wipe Settings before Uninstall","wdesignkit"),s=(0,a.__)("Delete the selected database permanently.","wdesignkit")):"white_label"==e&&(i=(0,a.__)("White Label","wdesignkit"),s=(0,a.__)("Customize branding with your own identity. ","wdesignkit")),"title"==t?i:"desc"==t?s:void 0};return(0,g.jsx)("div",{className:"wdkit-settings-page-main",children:(0,g.jsxs)("div",{className:"wkit-settings-boxed-wrapper",children:[q("features_enable"),q("template"),q("builder"),q("plugin_uninstall"),t?.wdkit_meta?.success&&!N?.rollback_tab&&q("roll_back"),t?.wdkit_meta?.success&&!N?.force_disable&&q("white_label"),W("role_manager"),W("error_handling"),W("performance"),i&&(0,g.jsx)(Be,{title:H(r,"title"),desc:H(r,"desc"),body:(e=>"builder"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor widget builder and all Elementor widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("elementor_builder",e.target.checked),checked:A}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/gutenberg.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Nexter Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Nexter Widget builder and all Gutenberg Widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("gutenberg_builder",e.target.checked),checked:T}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/bricks.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Bricks Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Bricks Widget builder and all Bricks Widgets.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("bricks_builder",e.target.checked),checked:L}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"features_enable"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Design Template","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Templates Feature Manage all template-related options, including downloading, uploading, and workspace functionalities.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("template",e.target.checked),checked:M}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Widget Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Widget Builder Control access to the No-Code Widget Builder, including widget creation, and upload/download options for Elementor, Gutenberg and Bricks.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("builder",e.target.checked),checked:F}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Code Snippet","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable or disable the Code Snippet feature. Disabling it will also turn off Browse Snippets, My Snippets, and workspace snippet options.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("code_snippet",e.target.checked),checked:O}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"template"==e?(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor Page Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Elementor Builder Control the Elementor page builder. Only enabled templates will remain active.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("elementor_template",e.target.checked),checked:B}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:E+"assets/images/wb-svg/gutenberg-core.svg",className:"no-plugin-img",alt:"no-plugin",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Gutenberg Page Builder","wdesignkit")}),(0,g.jsxs)("div",{className:"tooltip-text-hover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"toolTip",children:(0,a.__)("Enable/Disable Gutenberg Builder Control the Gutenberg page builder. Only enabled templates will remain active.","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("gutenberg_template",e.target.checked),checked:I}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"roll_back"==e?(c||w({type:"get_wkit_version"}).then((e=>{e?.success?m(e?.data):e?.message||(0,a.__)("Operation failed","wdesignkit")})),(0,g.jsxs)("div",{className:"wkit-rollBack-container",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",onClick:e=>{v(!x)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:u}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(x?"wkit-rotate-icon":"")})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content "+(x?"wkit-show-versions":""),children:c?.length>0?c.sort(((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))).reverse().map(((e,t)=>(0,g.jsx)("span",{className:"wkit-rollBack-option",onClick:()=>{h(e),k&&b(!1)},children:e},t))):(0,g.jsx)("span",{className:"wkit-rollback-loader",children:(0,g.jsx)("span",{className:"wkit-loading"})})})]}),_?(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",children:(0,g.jsx)("span",{className:"wkit-loading"})}):(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-rollBack-btn",disabled:!!k,onClick:e=>{(async()=>{if("Select Version"!==u){if(!confirm((0,a.__)(`Are you sure you want to reinstall ${u} version?`,"wdesignkit")))return;f(!0);let e={type:"rollback_wdkit",version:u};await w(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:R.promotion_data},{text:(0,a.__)("Delete all the Widget Builder widget data.","wdesignkit"),id:"remove-wl-entry",value:"widget_builder_data",checked:R.widget_builder_data},{text:(0,a.__)("Delete all WDesignKit plugin data (templates/widgets)","wdesignkit"),id:"all-data",value:"all_data",checked:R.all_data}];return(0,g.jsx)("div",{className:"wkit-popup-body wkit-plugin-uninstall-container",children:(0,g.jsxs)("div",{className:"wkit-builder-wrapper",children:[(0,g.jsxs)("div",{className:"wkit-builder-items",children:[(0,g.jsx)("div",{className:"manage-builder-popup-item",children:(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Remove Database","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>z("remove_entries",e.target.checked?"on":"off","remove_db"),checked:R.remove_entries}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),"on"===t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-remove-entry-options",children:e.map(((e,t)=>(0,g.jsxs)("span",{className:"wkit-remove-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:e.id,className:"wkit-check-box",onChange:t=>{z(e.value,t.target.checked,"remove_db")},checked:e.checked}),(0,g.jsx)("label",{className:"wkit-remove-widgets-text",htmlFor:e.id,children:e.text})]},t)))}),(0,g.jsx)("div",{className:"wkit-remove-plugin-notice",children:(0,g.jsx)("span",{className:"wkit-notice-text",children:(0,a.__)("Note: This button will delete all of WDesignKit's settings from Database. You will then need to enter all your settings again. You can also do this before deactivating/deinstalling WDesignKit if you wish.","wdesignkit")})})]}),(0,g.jsx)("div",{className:"wdkit-pop-btns",children:(0,g.jsx)("span",{className:"wdkit-trsprnt-btn",onClick:()=>{n(!1)},children:"Cancel"})})]})})})():"white_label"==e?G():void 0)([r]),close_popup:()=>{n(!1)}})]})})},rs=()=>{let t=wdkitData.WDKIT_URL;const i=ue(),s=pe(),[n,r]=(0,e.useState)(),l=["/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;l.includes(e)>-1?r("disable"):(r("error-404"),i("error-404"))}),[]),"disable"==n?(0,g.jsx)("div",{className:"wkit-post-notFound",children:(0,g.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:t+"assets/images/jpg/not-found-bell.gif",alt:"section",draggable:!1}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)($t,{className:"wkit-pink-btn-class",to:"/settings",children:(0,a.__)("Go to Settings","wdesignkit")})]})}):(0,g.jsx)("div",{className:"wkit-post-notFound",children:(0,g.jsxs)("div",{className:"wkit-post-notFound-content",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:t+"assets/images/jpg/not-found-bell.gif",alt:"section",draggable:!1}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)($t,{className:"wkit-pink-btn-class",to:"/",children:(0,a.__)("Back to home","wdesignkit")})]})})},ls=window.wp.editPost,{Component:os,Fragment:ds}=wp.element,cs=class extends os{constructor(e){super(e),this.state={copiedCss:{},checkCopyOrNot:!1}}render(){return(0,g.jsx)(ds,{children:(0,g.jsx)(ls.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 ps(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 ms=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),us=()=>Math.random().toString(36).substring(7).split("").join("."),hs={INIT:`@@redux/INIT${us()}`,REPLACE:`@@redux/REPLACE${us()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${us()}`};function gs(e,t,a){if("function"!=typeof e)throw new Error(ps(2));if("function"==typeof t&&"function"==typeof a||"function"==typeof a&&"function"==typeof arguments[3])throw new Error(ps(0));if("function"==typeof t&&void 0===a&&(a=t,t=void 0),void 0!==a){if("function"!=typeof a)throw new Error(ps(1));return a(gs)(e,t)}let i=e,s=t,n=new Map,r=n,l=0,o=!1;function d(){r===n&&(r=new Map,n.forEach(((e,t)=>{r.set(t,e)})))}function c(){if(o)throw new Error(ps(3));return s}function p(e){if("function"!=typeof e)throw new Error(ps(4));if(o)throw new Error(ps(5));let t=!0;d();const a=l++;return r.set(a,e),function(){if(t){if(o)throw new Error(ps(6));t=!1,d(),r.delete(a),n=null}}}function m(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(ps(7));if(void 0===e.type)throw new Error(ps(8));if("string"!=typeof e.type)throw new Error(ps(17));if(o)throw new Error(ps(9));try{o=!0,s=i(s,e)}finally{o=!1}return(n=r).forEach((e=>{e()})),e}return m({type:hs.INIT}),{dispatch:m,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(ps(10));i=e,m({type:hs.REPLACE})},[ms]:function(){const e=p;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(ps(11));function a(){const e=t;e.next&&e.next(c())}return a(),{unsubscribe:e(a)}},[ms](){return this}}}}}function ws(e,t,a){return gs(e,t,a)}const _s={cardData:[{layout:[],style:[]}]},fs={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:[]}},ks={links:[{js:[""],css:[""],external_cdn:[]}]},bs={Editor_codes:[{html:"",css:"",js:""}]},xs={},vs={section:{sec_id:"0"}},ys={settingdata:{builder:!0,template:!0,gutenberg_builder:!0,elementor_builder:!0,debugger_mode:!1}},js={route_history:"/my_uploaded"},Ns={wdkitmeta:{plugin:[],builder:[],category:[],tags:[],widgetbuilder:[],widgetscategory:[],plugin_icons:[],Setting:{builder:!0,debugger_mode:!1,elementor_builder:!0,gutenberg_builder:!0,template:!0}}},$s={wdkitSnippet:[]},Cs={notification_content:""},Ss={dark_mode:"light"},Ds={},Es=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:hs.INIT}))throw new Error(ps(12));if(void 0===a(void 0,{type:hs.PROBE_UNKNOWN_ACTION()}))throw new Error(ps(13))}))}(a)}catch(e){s=e}return function(e={},t){if(s)throw s;let n=!1;const r={};for(let s=0;s<i.length;s++){const l=i[s],o=a[l],d=e[l],c=o(d,t);if(void 0===c)throw t&&t.type,new Error(ps(14));r[l]=c,n=n||c!==d}return n=n||i.length!==Object.keys(e).length,n?r:e}}({CardItems:function(e=_s,t){return"ADD_LAYOUT_ARRAY"===t.type?{...StaticRange,cardData:t.data}:e},WcardData:function(e=fs,t){return"ADD_WIDGET_ARRAY"===t.type?{...StaticRange,widgetdata:t.data}:e},Editor_data:function(e=ks,t){return"ADD_EDITOR_ARRAY"===t.type?{...StaticRange,links:t.data}:e},Editor_code:function(e=bs,t){return"Editor_code"===t.type?{...StaticRange,Editor_codes:t.data}:e},Active_controller:function(e=xs,t){return"ADD_CONTROLLER"===t.type?{...StaticRange,controller:t.data}:e},Active_section:function(e=vs,t){return"ADD_SECTION"===t.type?{...StaticRange,section:t.data}:e},wkit_SettingPanel:function(e=ys,t){return"ADD_SETTING_ARRAY"===t.type?{...StaticRange,settingdata:t.data}:e},wdkit_meta_data:function(e=Ns,t){switch(t.type){case"UPDATE_WDKIT_META":return{...StaticRange,wdkitmeta:t.data};case"UPDATE_PLUGIN_ICONS":return{...StaticRange,wdkitmeta:{...e.wdkitmeta,plugin_icons:t.data}};default:return e}},wdkit_snippet_data:function(e=$s,t){return"UPDATE_WDKIT_SNIPPET"===t.type?{...StaticRange,wdkitSnippet:t.data}:e},wkit_Login_route:function(e=js,t){return"ADD_LOGIN_ROUTE"===t.type?{...StaticRange,route_history:t.data}:e},wdkit_Notification_message:function(e=Cs,t){return"Show_Notification"===t.type?{...StaticRange,notification_content:t.data}:e},wdkit_dark_mode:function(e=Ss,t){return"set_dark_mode"===t.type?{...StaticRange,dark_mode:t.data}:e},wdkit_temp_meta:function(e=Ds,t){return"set_temp_meta"===t.type?{...StaticRange,temp_meta:t.data}:e}}),Ps=window.wp.domReady;var As=__webpack_require__.n(Ps);const Ts=ws(Es);window.userData=[],window.wdkit_editor=wdkitData.use_editor;let Ls=null;if(window.WdkitThemeBuilderToggle||(window.WdkitThemeBuilderToggle={open(e,t,a,i){document.querySelector("#wkit-builder-modal")||(wdkitData?.wdkit_white_label?.plugin_logo||wdkitData.WDKIT_URL,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"),Ls&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(Ls.unmount(),Ls=null),document.querySelector(".wkit-builder-modal.wkit-open")||"wdkit"==window.wdkit_editor||window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search)})));const s=t||document.getElementById("wkit-contentbox-modal");if(s){Ls||(Ls=(0,ft.createRoot)(s)),setTimeout((()=>{Ls&&Ls.render((0,g.jsx)(Xa,{store:Ts,children:(0,g.jsx)(pr,{})}))}),500);const e=document.querySelector("#wkit-builder-modal");e&&e.classList.add("wkit-open"),a&&setTimeout((()=>{let e=`/theme/builder/${a}`;if(i){const t=i.replace(/['"]/g,"");e+=`?builder=${encodeURIComponent(t)}`}window.location.hash=e}),800)}},close(e){Ls&&(Ls.unmount(),Ls=null);const t=document.querySelector("#wkit-builder-modal");t&&t.classList.remove("wkit-open")}}),"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()}}))])(cs)}),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" /> Import Templates</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"),Ls&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(Ls.unmount(),Ls=null),document.querySelector(".wkit-builder-modal.wkit-open")||"wdkit"==window.wdkit_editor||window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search)}))),null===e.querySelector(".wkit-gutenber-btn")&&(t?.appendChild(a),document.querySelector(".wkit-gutenber-btn")?.addEventListener("click",(function(){const e=document.getElementById("wkit-contentbox-modal");!Ls&&e&&(Ls=(0,ft.createRoot)(e)),Ls&&e&&setTimeout((()=>{Ls.render((0,g.jsx)(Xa,{store:Ts,children:(0,g.jsx)(pr,{})}))}),500),document.querySelector(".wkit-builder-modal").classList.toggle("wkit-open")}))))}}}()}),1)}),300)})),As()((()=>{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)})),document.addEventListener("keydown",(function(e){if("Escape"===e.key){const e=document.querySelector("#wkit-builder-modal");e?.classList?.contains("wkit-open")&&(e.classList.remove("wkit-open"),Ls&&(Ls.unmount(),Ls=null))}}))}const Ms=ws(Es);window.userData=[],window.wdkit_editor=wdkitData.use_editor;let Fs=null;window.WdkitThemeBuilderToggle||(window.WdkitThemeBuilderToggle={open(e,t,a,i){document.querySelector("#wkit-builder-modal")||(wdkitData?.wdkit_white_label?.plugin_logo||wdkitData.WDKIT_URL,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-elementor"></div></div>'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),Fs&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(Fs.unmount(),Fs=null),document.querySelector(".wkit-builder-modal.wkit-open")||"wdkit"==window.wdkit_editor||window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search)})));const s=t||document.getElementById("wkit-contentbox-modal");if(s){Fs||(Fs=(0,ft.createRoot)(s)),setTimeout((()=>{Fs&&Fs.render((0,g.jsx)(Xa,{store:Ms,children:(0,g.jsx)(pr,{})}))}),500);const e=document.querySelector("#wkit-builder-modal");e&&e.classList.add("wkit-open"),a&&setTimeout((()=>{let e=`/theme/builder/${a}`;if(i){const t=i.replace(/['"]/g,"");e+=`?builder=${encodeURIComponent(t)}`}window.location.hash=e}),800)}},close(e){Fs&&(Fs.unmount(),Fs=null);const t=document.querySelector("#wkit-builder-modal");t&&t.classList.remove("wkit-open")}}),window.WdkitPopupToggle={open(e,t){"elementor"===window.wdkit_editor&&(document?.addEventListener("keydown",(function(e){"Escape"===e.key&&Fs&&(Fs.unmount(),Fs=null)})),t&&setTimeout((()=>{Fs||(Fs=(0,ft.createRoot)(t)),Fs.render((0,g.jsx)(Xa,{store:Ms,children:(0,g.jsx)(pr,{})}))}),500))},close(e){Fs&&(Fs.unmount(),Fs=null)}};const Is=ws(Es);window.userData=[],window.location.href.includes("post_type=nxt_builder")||window.location.href.includes("edit.php?post_type=nxt_builder")||window.location.href.includes("page=nxt_builder")||window.location.href.includes("admin.php?page=nxt_builder")?(window.wdkit_editor="theme_builder",wdkitData&&(wdkitData.use_editor="theme_builder")):window.wdkit_editor=wdkitData.use_editor;let Bs=null;window.WdkitThemeBuilderToggle||(window.WdkitThemeBuilderToggle={}),window.WdkitThemeBuilderToggle.open=function(e,t,a,i){document.querySelector("#wkit-builder-modal")||(wdkitData?.wdkit_white_label?.plugin_logo||wdkitData.WDKIT_URL,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-theme-builder"></div></div>'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),Bs&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(Bs.unmount(),Bs=null),document.querySelector(".wkit-builder-modal.wkit-open")||"theme_builder"==window.wdkit_editor||window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search)})));const s=t||document.getElementById("wkit-contentbox-modal");if(s){Bs||(Bs=(0,ft.createRoot)(s)),setTimeout((()=>{Bs&&Bs.render((0,g.jsx)(Xa,{store:Is,children:(0,g.jsx)(pr,{})}))}),500);const e=document.querySelector("#wkit-builder-modal");e&&e.classList.add("wkit-open"),a&&setTimeout((()=>{let e=`/theme/builder/${a}`;if(i){const t=i.replace(/['"]/g,"");e+=`?builder=${encodeURIComponent(t)}`}window.location.hash=e}),800)}},window.WdkitThemeBuilderToggle.close=function(e){Bs&&(Bs.unmount(),Bs=null);const t=document.querySelector("#wkit-builder-modal");t&&t.classList.remove("wkit-open")},document.addEventListener("keydown",(function(e){if("Escape"===e.key){const e=document.querySelector("#wkit-builder-modal");e?.classList?.contains("wkit-open")&&(e.classList.remove("wkit-open"),Bs&&(Bs.unmount(),Bs=null))}}));var Os=wdkitData.WDKIT_ASSETS;const Rs=()=>{const[t,i]=(0,e.useState)(0);let s=[{img:"images/jpg/carousel_banner/carousel_img1.png",text:(0,a.__)("Explore 500+ Newly Added Template Kits, Pages & Sections","wdesignkit")},{img:"images/jpg/carousel_banner/carousel_img2.png",text:(0,a.__)("Newly added Widget Builder Design with revamp version","wdesignkit")},{img:"images/jpg/carousel_banner/carousel_img3.png",text:(0,a.__)("Features for storing the workspace in cloud for smooth collaboration","wdesignkit")}];(0,e.useEffect)((()=>{const e=setInterval((()=>{n()}),3e3);return()=>{clearInterval(e)}}),[t]);const n=()=>{i((e=>(e+1)%s.length))};return(0,g.jsxs)("div",{className:"wdkit-banner-carousel",children:[(0,g.jsx)("span",{className:"wdkit-auth-slider-title",children:s[t].text}),(0,g.jsx)("div",{className:"wdkit-auth-image-wrapper",children:(0,g.jsx)("img",{src:Os+s[t].img,alt:(0,a.__)("carousel_img","wdesignkit"),className:"wdkit-auth-slider-img",draggable:!1})}),(0,g.jsx)("div",{className:"wdkit-auth-dots-wrapper",children:s.map(((e,a)=>(0,g.jsx)("span",{className:"wdkit-auth-dots-btn "+(a===t?"wdkit-active":""),onClick:()=>{i(a)},role:"button",tabIndex:0},a)))})]})},Vs=({type:e=""})=>(ue(),(0,g.jsxs)("div",{className:"wdkit-auth-panal",children:[(0,g.jsx)("div",{className:"wdkit-auth-panal-left",children:(0,g.jsx)(li,{type:e})}),(0,g.jsxs)("div",{className:"wdkit-auth-panal-right",children:[(e=>"login"===e?(0,g.jsx)($t,{to:"/signup",className:"wdkit-login-header-text wdkit-trsprnt-btn",children:(0,a.__)("Create an account","wdesignkit")}):(0,g.jsx)($t,{to:"/login",className:"wdkit-login-header-text wdkit-trsprnt-btn",children:(0,a.__)("Back to login","wdesignkit")}))(e),(0,g.jsx)(di,{type:e})]})]})),Ws=t=>{let i=t?.data?t.data:"";if(i)return(0,g.jsxs)("div",{className:"wkit-in-login-popup",children:[(0,g.jsx)("div",{className:"wkit-in-login-popup-outer",onClick:()=>{t.close_popup()}}),(0,g.jsxs)("div",{className:i?.size?`wkit-in-login-popup-content wkit-${i.size}-popup`:"wkit-in-login-popup-content",children:[(0,g.jsxs)("div",{className:"wkit-lg-popup-body",children:[(0,g.jsxs)("div",{className:"wkit-lg-upper-part",children:[i?.icon&&(0,g.jsx)("div",{className:"wkit-lg-popup-icon",children:(0,g.jsx)("i",{className:"wdkit-i-alert"})}),i?.heading&&(0,g.jsx)("span",{className:"wkit-lg-popup-heading",children:i?.heading}),i?.sub_heading.length>0&&(0,g.jsx)("div",{className:"wkit-lg-sub-heading",children:i?.sub_heading.map(((e,t)=>(0,g.jsx)("span",{className:`wkit-lg-popup-text wkit-lg-text-${e?.type?e.type:"normal"}`,children:e.text},t)))})]}),(i?.checkbox_text||i?.note?.length>0)&&(0,g.jsxs)("div",{className:"wkit-lg-middle-part",children:[i?.note?.length>0&&(0,g.jsxs)("div",{className:"wkit-lg-note-content",children:[(0,g.jsxs)("span",{className:"wkit-lg-note-head",children:[" ",(0,a.__)("Note :","wdesignkit")," "]}),i?.note.map(((t,a)=>(0,g.jsx)(e.Fragment,{children:"link"==t?.type?(0,g.jsx)("a",{href:t.link,className:"wkit-lg-popup-text wkit-lg-text-link",target:"_blank",rel:"noopener noreferrer",children:t.text}):(0,g.jsx)("span",{className:"wkit-lg-popup-text wkit-lg-text-normal",children:t.text})},a)))]}),i?.checkbox_text&&(0,g.jsxs)("div",{className:"wkit-lg-checkbox-content",children:[(0,g.jsx)("input",{className:"wkit-checkbox-inp",type:"checkbox",checked:!0,disabled:!0}),(0,g.jsx)("span",{className:"wkit-checkbox-text",children:i?.checkbox_text})]})]})]}),(0,g.jsxs)("div",{className:"wkit-lg-popup-footer",children:[(0,g.jsxs)("div",{className:"wkit-lg-popup-footer-btns",children:[i?.ft_btn1_text&&(0,g.jsx)(g.Fragment,{children:i?.ft_btn1_link?(0,g.jsx)($t,{to:i?.ft_btn1_link,className:"wkit-btn-class",children:i?.ft_btn1_text}):(0,g.jsx)("div",{className:"wkit-btn-class",onClick:()=>{i?.ft_btn1_fun&&t.btn1_fun()},children:i?.ft_btn1_text})}),i?.ft_btn2_text&&(0,g.jsx)(g.Fragment,{children:i?.ft_btn2_link?i?.ft_btn2_new_tab?(0,g.jsx)("a",{href:i?.ft_btn2_link,className:"wdkit-trsprnt-btn",target:"_blank",rel:"noopener noreferrer",children:i?.ft_btn2_text}):(0,g.jsx)($t,{to:i?.ft_btn2_link,className:"wdkit-trsprnt-btn",children:i?.ft_btn2_text}):(0,g.jsx)("div",{className:"wdkit-trsprnt-btn",onClick:()=>{i?.ft_btn2_fun&&t.btn2_fun()},children:i?.ft_btn2_text})})]}),i?.ex_link_text&&(0,g.jsx)("div",{className:"wkit-footer-link",children:i?.ex_link_url?(0,g.jsx)("a",{className:"wdkit-trsprnt-btn",href:i?.ex_link_url,target:"_blank",rel:"noopener noreferrer",children:i?.ex_link_text}):(0,g.jsx)("span",{className:"wdkit-trsprnt-btn",children:i?.ex_link_text})})]})]})]})},qs=({text:e})=>(0,g.jsxs)("div",{className:"wdkit-inncorrecttxt-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{children:e||(0,a.__)("Details are not valid","wdesignkit")})]}),Gs=e=>{var t;const a=document.createElement("input");return a.type="email",a.value=e,null!==(t=a?.checkValidity())&&void 0!==t&&t},{form_data:zs,get_userinfo:Hs}=wp.wkit_Helper,Us=t=>{var i=wdkitData.WDKIT_ASSETS;let s=r(),n=wdkitData?.wdkit_white_label?.plugin_name?wdkitData?.wdkit_white_label?.plugin_name:"WDesignKit",l={icon:!0,heading:(0,a.__)("Login Failed","wdesignkit"),sub_heading:[{type:"normal",text:(0,a.__)(`Are you logging in to ${n} for the first time?`,"wdesignkit")}],checkbox_text:"",note:"",ft_btn1_text:(0,a.__)("Yes, I’m new","wdesignkit"),ft_btn1_link:"",ft_btn1_fun:!0,ft_btn2_text:(0,a.__)("No, I forgot my password","wdesignkit"),ft_btn2_link:"/forgot_password",ft_btn2_fun:!1,size:"small"},o={icon:!1,heading:(0,a.__)(`Have You Signed up for ${n} Account?`,"wdesignkit"),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:"/signup",ft_btn2_text:(0,a.__)("Forgot Password","wdesignkit"),ft_btn2_link:"/forgot_password",ex_link_text:(0,a.__)("Want to know more?","wdesignkit"),ex_link_url:`${wdkitData.WDKIT_DOC_URL}difference-between-wdesignkit-account-and-posimyth-store-account/`,size:"large"};const d=ue(),[m,u]=(0,e.useState)(""),[h,w]=(0,e.useState)(""),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(!1),[y,j]=(0,e.useState)(!1),[N,$]=(0,e.useState)(),[C,S]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=p();e?.success&&(window.wdkit_save_snippet?d("/mysnippet"):d("/my_uploaded"))}),[]);const D=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},E=async e=>{if(e.preventDefault(),""==m?.trim()||!Gs(m)||""==h?.trim())return void S(!0);if(f(!0),x)var i="normal";else i="session";let n={type:"wkit_login",user_email:m,user_password:h,login_type:i,site_url:s},r=await zs(n).then((e=>e));if(r?.success){c(x?Object.assign({},{user_email:m},r,{login_type:"normal"}):Object.assign({},{user_email:m},r,{login_type:"session"}));let e=await Hs();return t.wdkit_set_meta(e.data),r.message&&t.wdkit_set_notification({title:r?.message,desc:r?.description}),f(!1),void d(t?.LoginRoutes?`${t.LoginRoutes}`:"/browse")}return wdkitData?.wdkit_white_label?.help_link?t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("The login Details you entered is not correct. Please verify and try again","wdesignkit")}):$(l),void f(!1)},P=e=>k==e?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("span",{children:[(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"})]})}):(0,g.jsxs)("span",{children:[(0,a.__)("Continue with","wdesignkit")," ",(0,a.__)(e)]});return(0,g.jsxs)("div",{className:"wdkit-login",children:[(0,g.jsxs)("div",{className:"wdkit-login-left",children:[(0,g.jsx)(Vs,{type:"login"}),(0,g.jsxs)("div",{className:"wdkit-form-card",children:[(0,g.jsx)("h2",{className:"wdkit-section-h",children:(0,a.__)("Welcome Back! Log in to continue","wdesignkit")}),(0,g.jsx)("p",{className:"wdkit-sm-txt",children:(0,a.__)("Enter your credentials to access your account.","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsx)("input",{type:"email",id:"WDkitUserEmail",name:"UserEmail",className:"wdkit-entry-input "+(!C||""!=m?.trim()&&Gs(m)?"":"wdkit-input-error"),autoComplete:"off",placeholder:(0,a.__)("Email","wdesignkit"),onChange:e=>u(e.target.value),onKeyDown:e=>{"Enter"===e.key&&E(e)}}),C&&""==m?.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")}),C&&!Gs(m)&&(0,g.jsx)(qs,{text:(0,a.__)("Email is not valid.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsxs)("div",{className:"wdkit-password-cover "+(C&&""==h?.trim()?"wdkit-input-error":""),children:[(0,g.jsx)("input",{type:y?"text":"password",autoComplete:"off",className:"wdkit-entry-input",placeholder:(0,a.__)("Password","wdesignkit"),onChange:e=>w(e.target.value),onKeyDown:e=>{"Enter"===e.key&&E(e)}}),(0,g.jsx)("div",{className:"wdkit-pass-eye",children:y?(0,g.jsx)("i",{onClick:()=>{j(!y)},className:"wdkit-i-eye"}):(0,g.jsx)("i",{onClick:()=>{j(!y)},className:"wdkit-i-eye-off"})})]}),C&&""==h?.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-reme-forgot",children:[(0,g.jsxs)("div",{className:"wdkit-rem-checkbox",children:[(0,g.jsx)("input",{type:"checkbox",id:"WdkitRememberme",name:"wdkit-remember-check",className:"wkit-check-box",checked:x,onChange:e=>{v(e.target.checked)}}),(0,g.jsx)("label",{htmlFor:"WdkitRememberme",children:(0,a.__)("Remember Me","wdesignkit")})]}),(0,g.jsx)($t,{to:"/forgot_password",className:"wdkit-hover-line",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==_?(0,g.jsx)("div",{className:"wdkit-register-button",children:(0,g.jsx)("div",{className:"wkit-wb-loginloader",children:(0,g.jsx)("div",{className:"wkit-publish-loader",style:{display:_&&"flex"},children:(0,g.jsx)("div",{className:"wb-loader-circle"})})})}):(0,g.jsx)("button",{className:"wdkit-register-button",onClick:e=>{E(e)},children:"logged"==_?(0,a.__)("Logged in","wdesignkit"):(0,a.__)("Log in","wdesignkit")}),N&&(0,g.jsx)(Ws,{data:N,btn1_fun:()=>{$(o)},close_popup:()=>{$("")}}),(0,g.jsxs)("div",{className:"wdkit-hr-txt",children:[(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-divider",children:(0,a.__)("OR CONTINUE WITH","wdesignkit")}),(0,g.jsx)("hr",{})]}),(0,g.jsxs)("div",{className:"wdkit-social-login-btns",children:[(0,g.jsxs)("a",{className:"wdkit-social-signup",onClick:e=>(async()=>{var e=D();b("Google");var i=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${wdkitData.wdkit_site_api_url}api/auth/google/callback-plugin&response_type=code&scope=email%20profile&state=${e}`,n=screen.height/2-260,r=screen.width/2-335,l=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+n+",left="+r);const o=async()=>{if(l&&!l.closed)setTimeout(o,100);else{let n={type:"social_login",state:e,login_type:"normal",site_url:s};var i=await zs(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;n&&e&&c({messages:s,success:a,token:n,user_email:e,login_type:"normal"});let r=await Hs();t.wdkit_set_meta(r.data),t.wdkit_set_notification({title:i?.data?.message,desc:i?.data?.description}),t?.LoginRoutes?d(`${t.LoginRoutes}`):window.wdkit_save_snippet?d("/mysnippet"):d("/my_uploaded")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});b(!1)}};setTimeout(o,100)})(),children:[(0,g.jsx)("img",{src:i+"images/svg/social/google-sm-icon.svg",alt:(0,a.__)("google-logo","wdesignkit"),draggable:!1}),P((0,a.__)("Google","wdesignkit"))]}),(0,g.jsxs)("a",{className:"wdkit-social-signup",onClick:e=>(async()=>{var e=D();b("Facebook");var i=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${encodeURIComponent(`${wdkitData.wdkit_site_api_url}api/auth/facebook/callback-plugin`)}&response_type=code&scope=email&state=${e}`,n=screen.height/2-260,r=screen.width/2-335,l=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+n+",left="+r);const o=async()=>{if(l&&!l.closed)setTimeout(o,100);else{let n={type:"social_login",state:e,site_url:s};var i=await zs(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 r={messages:s,success:a,token:n,user_email:e,login_type:"normal"};n&&e&&await c(r);let l=await Hs();t.wdkit_set_meta(l.data),t.wdkit_set_notification({title:i?.data?.message,desc:i?.data?.description}),t?.LoginRoutes?d(`${t.LoginRoutes}`):window.wdkit_save_snippet?d("/mysnippet"):d("/my_uploaded")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});b(!1)}};setTimeout(o,100)})(),children:[(0,g.jsx)("img",{src:i+"images/svg/social/facebook-sm-icon.svg",alt:(0,a.__)("facebook-logo","wdesignkit"),draggable:!1}),P((0,a.__)("Facebook","wdesignkit"))]}),(0,g.jsx)($t,{to:"/login-api",children:(0,g.jsxs)("div",{className:"wdkit-social-signup",children:[(0,g.jsx)("i",{className:"wdkit-i-authorized"}),(0,a.__)("Continue via Login Key","wdesignkit")]})})]})]})]}),(0,g.jsx)(Rs,{})]})},{form_data:Js,get_userinfo:Ks}=wp.wkit_Helper,Zs=t=>{const i=ue();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+"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_new_tab:!0,ft_btn2_link:`${wdkitData.wdkit_server_url}admin/licence/apikey`,ft_btn2_fun:!1,ex_link_text:"",ex_link_url:"",size:"small"};wdkitData.WDKIT_ASSETS;const[l,o]=(0,e.useState)(""),[d,m]=(0,e.useState)(!1),[u,h]=(0,e.useState)(),[w,_]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=p();e?.success&&(window.wdkit_save_snippet?i("/mysnippet"):i("/my_uploaded"))}),[]);const f=(0,e.useRef)(),k=e=>{""!=l.trim()?(async()=>{let e=r();m(!0);let s={type:"api_login",buildertype:window.wdkit_editor,login_type:"session",site_url:e,token:l};var o=await Js(s).then((e=>e));if(1==o?.data?.success){let e=o.data.user.user_email,a=o.data.success,s="Login successfully",n=o.token;n&&e&&c({messages:s,user_email:e,login_type:"session",token:n,success:a});let r=await Ks();t.wdkit_set_meta(r.data),m(!1),t.wdkit_set_notification({title:o?.data?.message,desc:o?.data?.description}),window.wdkit_save_snippet?i("/mysnippet"):i("/my_uploaded")}else m(!1),wdkitData?.wdkit_white_label?.help_link?t.wdkit_set_notification({title:(0,a.__)("Invalid Login Key","wdesignkit"),desc:(0,a.__)("The login key you entered is not valid. Please verify and try again","wdesignkit")}):h(n);w&&_(!1)})():_(!0)};return(0,g.jsxs)("div",{className:"wdkit-login",children:[(0,g.jsxs)("div",{className:"wdkit-login-left",children:[(0,g.jsx)(Vs,{type:"login"}),(0,g.jsxs)("div",{className:"wdkit-form-card",children:[(0,g.jsx)("h2",{className:"wdkit-section-h",children:(0,a.__)("Login With Key","wdesignkit")}),(0,g.jsx)("p",{className:"wdkit-sm-txt",children:(0,a.__)("Enter your credentials to access your account.","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsx)("input",{type:"text",name:"email",ref:f,onChange:e=>{o(e.target.value)},onKeyDown:e=>{"Enter"==e.key&&k()},placeholder:"Login Key",className:"wdkit-entry-input "+(w&&""===l.trim()?"wdkit-input-error":""),autoComplete:"off",required:!0}),w&&""===l.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")})]}),1==d?(0,g.jsx)("div",{className:"wdkit-register-button",children:(0,g.jsx)("div",{className:"wkit-wb-loginloader",children:(0,g.jsx)("div",{className:"wkit-publish-loader",style:{display:d&&"flex"},children:(0,g.jsx)("div",{className:"wb-loader-circle"})})})}):(0,g.jsx)("button",{className:"wdkit-register-button",onClick:e=>{k()},children:"logged"==d?(0,a.__)("Logged In","wdesignkit"):(0,a.__)("Login","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-hr-txt",children:[(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-divider",children:(0,a.__)("OR","wdesignkit")}),(0,g.jsx)("hr",{})]}),(0,g.jsxs)($t,{to:"/login",className:"wdkit-social-signup",children:[(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),(0,a.__)("Back to Login","wdesignkit")]}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsxs)("a",{className:"wdkit-social-signup",href:wdkitData.WDKIT_DOC_URL+"create-login-key-to-login-to-wdesignkit-account/",target:"_blank",rel:"noopener noreferrer",children:[(0,g.jsx)("i",{className:"wdkit-i-authorized"}),(0,a.__)("How to get Login Key?","wdesignkit")]})]})]}),(0,g.jsx)(Rs,{}),u&&(0,g.jsx)(Ws,{data:u,btn1_fun:()=>{h("")},close_popup:()=>{h("")}})]})};wp.wkit_Pages={Side_menu:ui,Wdkit_Login:Us,Wdkit_Login_Api:Zs,Browse:ot,MyUploaded:ut,Kit_Page:_t,Share_with_me:zt,Manage_Workspace:Kt,Workspace_single:ea,Save_template:fi,Main_js_container:Ai,Loader_container:Qi,Widget_brows:is,Wkit_settings:ns,Page_not_found:rs};const Ys=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(Qa(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t)),wdkit_Login_Route:t=>e(ei(t))})))(ui),{Fragment:Xs}=wp.element,Qs=(Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(ii(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{var i=wdkitData.WDKIT_ASSETS;const[s,n]=(0,e.useState)("1"),[r,l]=(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),[m,u]=(0,e.useState)(!1),[h,_]=(0,e.useState)(!1),[f,k]=(0,e.useState)(!1),x=[{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({},r);let t={type:"check_plugins_depends",plugins:JSON.stringify(x),editor:wdkitData.use_editor};w(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}))}))}l(e),d.current=e}))})()}),[]),(0,e.useEffect)((()=>{const e=Object.values(r).every((e=>"loading"!==e));null!=t.wdkit_meta.success&&e&&p(!1)}),[t.wdkit_meta.success,r]);const v=async(e,t)=>{d.current=Object.assign({},d.current,{[e.name]:"loading"}),l(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 y(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 v(e,t)}}})))},y=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 w(s);if(void 0===n.success)return null==a&&v(e,"repeate"),!1;if(n.success){let a=Object.assign({},d.current,{[e.name]:n.status});d.current=a,l(d.current),t.wdkit_set_notification({title:n?.message,desc:n?.description})}else{let a=Object.assign({},d.current,{[e.name]:"unavailable"});d.current=a,l(d.current),t.wdkit_set_notification({title:n?.message,desc:n?.description})}return!0},j=(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 r=Object.assign({},t?.wdkit_meta,{Setting:s});t.wdkit_set_meta(r),w(n).then((async e=>{}))};return(0,g.jsx)(Xs,{children:s>0&&(0,g.jsx)("div",{className:"wdkit-onboarding-main",children:(0,g.jsxs)("div",{className:"wdkit-onboarding-popup",children:["1"==s?(0,g.jsxs)("div",{className:"wdkit-onboarding-popup-body",style:c?{height:"100%"}:{},children:[(0,g.jsx)("div",{className:"wdkit-onboarding-image",children:(0,g.jsx)("img",{src:i+"images/onbording/ifboth_activated.png",alt:"onboarding-image",draggable:"false"})}),c?(0,g.jsx)("div",{className:"wkit-loader",children:(0,g.jsx)("img",{src:i+"images/jpg/wdkit_loader.gif",draggable:"false"})}):(0,g.jsxs)("div",{className:"wdkit-onboarding-box",children:[(0,g.jsx)("div",{className:"wdkit-onboarding-header",children:(0,g.jsx)("span",{children:(0,a.__)("Welcome to WDesignKit","wdesignkit")})}),(0,g.jsxs)("div",{className:"wdkit-onboarding-box-content",children:[(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder",children:[(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-header",children:[(0,g.jsx)("span",{children:(0,a.__)("Page Templates","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>{j(e,"template")},checked:t.wdkit_meta.Setting?.template}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.wdkit_meta.Setting?.template?1:.2},children:[(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,g.jsx)("span",{children:(0,a.__)("Elementor","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-elementor",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-pageTemplate-elementor",onChange:e=>j(e,"elementor_template","template"),checked:t.wdkit_meta.Setting?.elementor_template}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,g.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,g.jsx)("hr",{}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/gutenberg-core.svg",alt:"Gutenberg",draggable:"false"}),(0,g.jsx)("span",{children:(0,a.__)("Gutenberg","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-gutenberg",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-pageTemplate-gutenberg",onChange:e=>j(e,"gutenberg_template","template"),checked:t.wdkit_meta.Setting?.gutenberg_template}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,g.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,g.jsx)("hr",{}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,g.jsx)("span",{children:(0,a.__)("Bricks","wdesignkit")})]}),(0,g.jsx)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-pageTemplate-bricks",children:(0,g.jsx)("span",{className:"wkit-commign-soon-tag",children:(0,a.__)("Coming Soon","wdesignkit")})})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder",children:[(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-header",children:[(0,g.jsx)("span",{children:(0,a.__)("Widget Builder","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label",children:[(0,g.jsx)("input",{type:"checkbox",onChange:e=>{j(e,"builder")},checked:t.wdkit_meta.Setting?.builder}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-body",style:{opacity:t.wdkit_meta.Setting?.builder?1:.2},children:[(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/elementor.svg",alt:"Elementor",draggable:"false"}),(0,g.jsx)("span",{children:(0,a.__)("Elementor","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-elementor",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-elementor",onChange:e=>{j(e,"elementor_builder","builder")},checked:t.wdkit_meta.Setting?.elementor_builder}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,g.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,g.jsx)("hr",{}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/gutenberg.svg",alt:"Gutenberg",draggable:"false"}),(0,g.jsx)("span",{children:(0,a.__)("Nexter","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-gutenberg",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-gutenberg",onChange:e=>{j(e,"gutenberg_builder","builder")},checked:t.wdkit_meta.Setting?.gutenberg_builder}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,g.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,g.jsx)("hr",{}),(0,g.jsxs)("div",{className:"wdkit-select-pageBuilder-content",children:[(0,g.jsxs)("div",{className:"wdkit-pageBuilder-meta",children:[(0,g.jsx)("img",{src:i+"images/wb-svg/bricks.svg",alt:"Bricks",draggable:"false",style:{height:"30px",width:"30px"}}),(0,g.jsx)("span",{children:(0,a.__)("Bricks","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wdkit-select-builder-checkbox",htmlFor:"wkit-widgetBuilder-bricks",children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-widgetBuilder-bricks",onChange:e=>{j(e,"bricks_builder","builder")},checked:t.wdkit_meta.Setting?.bricks_builder}),(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 16 17",fill:"#999999",children:(0,g.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,g.jsxs)("div",{className:"wdkit-onboarding-popup-body",onClick:e=>{var t;(t=e)&&!t.target.closest(".wkit-sensitive-data-popup")&&h&&_(!1)},children:[(0,g.jsx)("div",{className:"wdkit-onboarding-image",children:(0,g.jsxs)("div",{className:"wkit-onboarding-bg-image",children:[(0,g.jsx)("div",{className:"wdkit-onboarding-image-content",children:(0,g.jsx)("img",{src:i+"images/onbording/basic_requirements.png",alt:"Onboarding-Image",draggable:"false"})}),"active"==r?.bricks&&t?.wdkit_meta?.Setting?.bricks_builder&&(0,g.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-bricks",children:[(0,g.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,g.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,g.jsx)("span",{children:(0,a.__)("Bricks Elements Builder","wdesignkit")})]}),"active"==r?.elementor&&(0,g.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-elementor",children:[(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"29",height:"29",viewBox:"0 0 29 29",fill:"none",children:(0,g.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,g.jsx)("span",{children:(0,a.__)("Elementor Widget Builder","wdesignkit")})]}),"active"==r?.["the-plus-addons-for-block-editor"]&&t?.wdkit_meta?.Setting?.gutenberg_builder&&(0,g.jsxs)("div",{className:"wkit-inner-image-content wkit-inner-gutenberg",children:[(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:(0,g.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,g.jsx)("span",{children:(0,a.__)("Gutenberg Blocks Builder","wdesignkit")})]})]})}),(0,g.jsxs)("div",{className:"wdkit-onboarding-box",children:[(0,g.jsx)("div",{className:"wdkit-onboarding-header",children:(0,g.jsx)("span",{children:(0,a.__)("Basic Requirements","wdesignkit")})}),(0,g.jsx)("div",{className:"wdkit-onboarding-basic",children:x.filter((e=>"bricks"===e.name&&t?.wdkit_meta?.Setting?.bricks_builder||"bricks-child"===e.name&&t?.wdkit_meta?.Setting?.bricks_builder&&"manually"!=r?.[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,g.jsxs)("div",{className:"wdkit-onboarding-basic-content",children:[(0,g.jsxs)("div",{className:`wdkit-onboarding-basic-content-status wkit-${r?.[e.name]}-plugin`,children:["active"==r?.[e.name]?(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",children:(0,g.jsx)("path",{d:"M8.33335 2.5L3.75002 7.08333L1.66669 5",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 10 10",fill:"white",children:(0,g.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,g.jsx)("span",{children:"manually"==r?.[e.name]?"unavailable":r?.[e.name]})]}),(0,g.jsxs)("div",{className:"wdkit-onboarding-basic-content-body",children:[(0,g.jsxs)("div",{className:"wdkit-onboarding-basic-content-header",children:[(0,g.jsx)("span",{children:e.label}),(0,g.jsx)("img",{src:i+e.icon,alt:"Elementor",draggable:"false"})]}),"active"==r?.[e.name]&&(0,g.jsx)("div",{className:"wdkit-onboarding-basic-content-installed",children:(0,g.jsx)("span",{children:"Activated"})}),("inactive"==r?.[e.name]||"unavailable"==r?.[e.name]||"loading"==r?.[e.name])&&(0,g.jsx)(g.Fragment,{children:"loading"==r?.[e.name]?(0,g.jsx)("div",{className:"wdkit-onboarding-basic-content-notInstalled",children:(0,g.jsx)(b,{})}):(0,g.jsx)("div",{className:"wdkit-onboarding-basic-content-notInstalled",onClick:()=>{v(e)},children:(0,g.jsx)("span",{children:"inactive"==r?.[e.name]?(0,a.__)("Activate Now","wdesignkit"):(0,a.__)("Install & Activate","wdesignkit")})})}),"manually"==r?.[e.name]&&(0,g.jsx)("div",{className:"wdkit-onboarding-install-manually",children:(0,g.jsx)("a",{href:e.link,className:"wkit-redirect-link ",target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("span",{children:(0,a.__)("How to Install ?","wdesignkit")})})})]})]},t)))}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsxs)("div",{className:"wkit-confirm-terms-content",children:[(0,g.jsx)("input",{className:"wkit-confirm-terms-inp",checked:f,type:"checkbox",onChange:e=>k(e.target.checked)}),(0,g.jsxs)("span",{className:"wkit-confirm-terms-text",children:[(0,a.__)("Agree to contribute to make WDesignKit better by sharing non-sensitive details.","wdesignkit"),(0,g.jsxs)("span",{className:"wkit-confirm-terms-link-text",onClick:()=>{_(!0)},children:[(0,a.__)("See what details are shared","wdesignkit"),h&&(0,g.jsxs)("div",{class:"wkit-sensitive-data-popup",children:[(0,g.jsx)("span",{class:"wkit-sensitive-data-txt",children:(0,a.__)("We collect :","wdesignkit")}),(0,g.jsxs)("ul",{class:"wkit-sensitive-data-list",children:[(0,g.jsx)("li",{children:(0,a.__)("PHP Version","wdesignkit")}),(0,g.jsx)("li",{children:(0,a.__)("Server Details","wdesignkit")}),(0,g.jsx)("li",{children:(0,a.__)("WordPress Version","wdesignkit")}),(0,g.jsx)("li",{children:(0,a.__)("Plugins & Theme Used","wdesignkit")}),(0,g.jsx)("li",{children:(0,a.__)("Site Language","wdesignkit")}),(0,g.jsx)("li",{children:(0,a.__)("Email","wdesignkit")})]}),(0,g.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,g.jsxs)("div",{className:"wdkit-onboarding-footer",children:[(0,g.jsx)("div",{className:"wdkit-onboarding-footer-left"}),(0,g.jsxs)("div",{className:"wdkit-onboarding-pagination",children:[(0,g.jsxs)("span",{style:{color:"#040483"},children:["0",s]}),(0,g.jsx)("span",{children:"/02"})]}),(0,g.jsxs)("div",{className:"wdkit-onboarding-footer-right",children:[s>1&&(0,g.jsx)("button",{className:"wdkit-onboarding-back-button",onClick:()=>{n(Number(s)-1)},disabled:m,children:(0,a.__)("Back","wdesignkit")}),2==s?(0,g.jsx)(g.Fragment,{children:m?(0,g.jsx)("button",{className:"wdkit-onboarding-next-button",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{(async()=>{u(!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"===r?.elementor?1:0,tpag_plugin:"active"===r?.["the-plus-addons-for-block-editor"]?1:0,bricks_theme:"active"===r?.bricks?1:0,info:!!f};await w(i),await setTimeout((()=>{n(0),u(!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,g.jsx)("button",{className:"wdkit-onboarding-next-button",onClick:()=>{n(Number(s)+1)},children:(0,a.__)("Next","wdesignkit")}):(0,g.jsxs)("div",{className:"wkit-tooltip-onboarding",children:[(0,g.jsx)("span",{children:(0,a.__)("Enable any one feature to continue!","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-disable-next-btn",disabled:!0,children:(0,a.__)("Next","wdesignkit")})]})]})]})]})})})})),()=>{const[t,i]=(0,e.useState)(!1);let s=pe().pathname;const n=(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),r=e=>{e.target.closest(".wkit-dashSupport-content")||i(!t)},l=[{link:"https://store.posimyth.com/helpdesk/",text:(0,a.__)("Get Free Support","wdesignkit")},{link:"https://roadmap.wdesignkit.com/updates",text:(0,a.__)("What’s 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:wdkitData.wdkit_server_url+"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,g.jsx)("i",{className:"wdkit-i-youtube"})},{title:(0,a.__)("Twitter","wdesignkit"),link:"https://x.com/wdesignkit",svg:(0,g.jsx)("i",{className:"wdkit-i-x"})},{title:(0,a.__)("Facebook","wdesignkit"),link:"https://www.facebook.com/wdesignkit",svg:(0,g.jsx)("i",{className:"wdkit-i-facebook"})},{title:(0,a.__)("Instagram","wdesignkit"),link:"https://www.instagram.com/wdesignkit/",svg:(0,g.jsx)("i",{className:"wdkit-i-instagram"})},{title:(0,a.__)("Affiliate-Program","wdesignkit"),link:"https://store.posimyth.com/affiliate-program/",svg:(0,g.jsx)("i",{className:"wdkit-i-wifi"})},{title:(0,a.__)("Earn-Free-WDesignKit-Credits","wdesignkit"),link:wdkitData.wdkit_server_url+"earn-free-wdesignkit-credits",svg:(0,g.jsx)("i",{className:"wdkit-i-dollar"})}];return s.includes("/widget-listing/builder")||s.includes("/save_snippet")?void 0:(0,g.jsx)("div",{className:"wkit-support-btn",children:(0,g.jsxs)("div",{className:t?"wkit-plugin-popup-main-content":"",onClick:e=>{r(e)},children:[(0,g.jsx)("div",{className:"wkit-dashsupport-toggle",onClick:e=>{r(e)},title:(0,a.__)("Need Help?","wdesignkit"),children:t?(0,g.jsx)("span",{className:"wdkit-cross-icon",children:"✕"}):(0,g.jsx)("i",{className:"wdkit-i-question"})}),t&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("a",{href:"https://posimyth.com/",className:"wkit-support-bottom",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Powered by POSIMYTH Innovations","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-dashSupport-content",children:[(0,g.jsx)("div",{className:"wkit-sup-top",children:(0,g.jsxs)("h3",{className:"wkit_support_section_heading",children:[" ",(0,a.__)("Quick Support","wdesignkit")]})}),(0,g.jsxs)("div",{className:"wkit-support-inner",children:[(0,g.jsx)("div",{className:"wkit-sup-wrap",children:l.map(((e,t)=>(0,g.jsx)("div",{className:"wkit-support-list",children:(0,g.jsxs)("a",{href:e.link,target:"_blank",className:"wkit-support-link",rel:"noopener noreferrer",children:[(0,g.jsx)("span",{className:"wkit-title-wrap",children:e.text}),n]})},t)))}),(0,g.jsx)("div",{className:"wkit-panel-row",children:o.map(((e,t)=>(0,g.jsx)("a",{href:e.link,className:"wkit-socialLogo-link",title:e.title,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("span",{children:e.svg})},t)))}),(0,g.jsxs)("div",{className:"wkit-panel-row",style:{justifyContent:"center",columnGap:"10px"},children:[(0,g.jsxs)("span",{className:"wkit-version-info",children:[" ",(0,a.__)("WordPress Version: ","wdesignkit")+wdkitData.wdkit_wp_version," "]}),(0,g.jsx)("span",{children:"|"}),(0,g.jsxs)("span",{className:"wkit-version-info",children:[" ",(0,a.__)("Plugin Version: ","wdesignkit")+wdkitData.WDKIT_VERSION," "]})]})]})]}),(0,g.jsx)("div",{className:"wkit-plugin-popup-outer"})]})]})})}),en=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))(Us),tn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))(Zs),an=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t))})))(ot),sn=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_GetSettings_redux:t=>e(ii(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t))})))(zt),nn=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_GetSettings_redux:t=>e(ii(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))(ea),rn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_temp_meta:e.wdkit_temp_meta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t)),wdkit_set_temp_meta:t=>e(ri(t))})))(ut),ln=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t))})))(_t),on=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_notification:t=>e(si(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t))})))(is),dn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{var i;const[n,r]=(0,e.useState)(!0),l=he(),o=pe(),d=new URLSearchParams(o.search);let c=null!==(i=d.get("builder"))&&void 0!==i?i:"",m=window?.location?.pathname?window.location.pathname:"",u=window.location.origin+m+"?page=theplus_welcome_page#/widgets";return(0,e.useEffect)((()=>{if(t?.wdkit_meta?.success){if(p())var e="widget/download",a=t?.wdkit_meta?.userinfo?.id,i=l?.w_unique;else e="import/widget/free",i=l?.w_unique;var n={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(n)),i&&e&&s().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),n=JSON.stringify(a?.Editor_data?.css),l=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"==k(c,t?.wdkit_meta?.widgetbuilder)?await Bt("public_download",e,i,n,s,"",l).then((e=>{if(e?.api?.success)return r(!1),window.parent.postMessage("closePopup",u),e})):"gutenberg"==k(c,t?.wdkit_meta?.widgetbuilder)&&await Ot("public_download",e,i,n,s,"",l).then((e=>{if(e?.api?.success)return r(!1),window.parent.postMessage("closePopup",u),e}))})(e.data)}))}}),[t?.wdkit_meta?.success]),(0,g.jsx)("div",{className:"wkit-downloading-widget",children:n?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("p",{className:"wkit-downloading-text",children:(0,a.__)("Widget Downloading","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-downloading-widget-outer",children:(0,g.jsx)("div",{className:"wkit-downloading-widget-inner"})})]}):(0,g.jsxs)("div",{className:"wkit-tpae-success-container",children:[(0,g.jsx)("span",{children:(0,g.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.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,g.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,g.jsx)("span",{className:"wkit-widget-downloaded-text",children:(0,g.jsx)("p",{className:"wkit-tpae-success-text",children:(0,a.__)("Your widget Downloaded Successfully","wdesignkit")})})]})})}));var cn=wdkitData.WDKIT_URL;const{form_data:pn}=wp.wkit_Helper,mn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)([]),l=(0,e.useRef)(n),[o,d]=(0,e.useState)(),[c,m]=(0,e.useState)(""),[u,h]=(0,e.useState)(!1),[w,f]=(0,e.useState)(!0),[k,x]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),[j,N]=(0,e.useState)(),[$,C]=(0,e.useState)(!1),[S,D]=(0,e.useState)("wdkit"),[E,P]=(0,e.useState)("266965"),[A,T]=(0,e.useState)("assets/images/jpg/wdkit-logo.png"),[L,M]=(0,e.useState)(!1),[F,I]=(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"}]),B=[{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/svg/tpae-new-logo.svg",alt:"Tpae",value:"tpae"},{text:"Nexter Blocks",imageSrc:"assets/images/svg/nexter-blocks-new-logo.svg",alt:"Tpag",value:"tpag"},{text:"UiChemy",imageSrc:"assets/images/jpg/uichemy-logo.png",alt:"uichemy",value:"uichemy"}],O=[{title:"Total Templates Used",bg:"#6C3BE2",count:t.wdkit_meta.credits?.count_template,limit:t.wdkit_meta.credits?.template_limit?.meta_value},{title:"Total Widgets Used",bg:"#FC4731",count:t.wdkit_meta.credits?.count_widget,limit:t.wdkit_meta.credits?.widget_limit?.meta_value},{title:"Total Snippets Used",bg:"#efff00",count:t.wdkit_meta.credits?.count_code_snippet,limit:t.wdkit_meta.credits?.code_snippet_limit?.meta_value},{title:"Total Workspace Used",bg:"#22FD68",count:t.wdkit_meta.credits?.count_workspace,limit:t.wdkit_meta.credits?.workspace_limit?.meta_value}],R=2*t.wdkit_meta.credits?.count_template+5*t.wdkit_meta.credits?.count_widget+10*t.wdkit_meta.credits?.count_workspace+1*t.wdkit_meta.credits?.count_code_snippet;(0,e.useEffect)((()=>{null!=o?.credits&&f(!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})}))}l.current=e,r(e)})()}),[t?.wdkit_meta?.credits]);const V=()=>(0,g.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,g.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,g.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,g.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,g.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,g.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,g.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,g.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,g.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,g.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"})]}),W=async(e,i,s)=>{if(s>-1&&M(!0),C(!1),e.trim()){{x(!0);const a={type:"active_licence",token:p().token,licencekey:e,licencename:i,uichemyid:"uichemy"==i?E:""};await pn(a).then((async e=>{if(e.success){let a=await _();if(a?.data&&t.wdkit_set_meta(a?.data),s>-1){const e={...F[s],banner_type:"success"},t=F.map(((t,a)=>a===s?e:t));I(t)}t.wdkit_set_notification({title:e?.message,desc:e?.description}),x(!1)}else t.wdkit_set_notification({title:e?.message,desc:e?.description}),x(!1);M(!1)}))}m("")}else{h(!0);let e={title:(0,a.__)("No Key Entered","wdesignkit"),desc:(0,a.__)("Please enter a valid key to continue.","wdesignkit")};t.wdkit_set_notification(e)}};if(Array.from({length:100}),!p())return t.wdkit_Login_Route("/activate"),(0,g.jsx)(Se,{to:"/login"});const q=()=>(0,g.jsxs)("div",{className:"wkit-lic-rmv-popup",children:[(0,g.jsx)("button",{className:"wkit-popup-confirm wdkit-trsprnt-btn",onClick:()=>s(!1),children:(0,a.__)("Cancel","wdesignkit")}),1==v?(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:()=>((e,a)=>{let i=F.findIndex((t=>t.value===e)),n="default"!==F[i]?.banner_type;y(!0);const r={type:"delete_licence",token:p().token,licencename:e,apikey:a};pn(r).then((async e=>{if(e.success){let a=await _();if(y(!1),t.wdkit_set_notification({title:e?.message,desc:e?.description}),n){const e={...F[i],banner_type:"default"},t=F.map(((t,a)=>a===i?e:t));I(t)}a?.data&&t.wdkit_set_meta(a?.data)}else y(!1),t.wdkit_set_notification({title:e?.message,desc:e?.description});s(!1),N()}))})(j.value,j.Key),children:(0,g.jsx)("span",{children:(0,a.__)("Remove","wdesignkit")})})]}),G=e=>{if(e)return"*".repeat(e.length-4)+e.slice(-4)},z=e=>{if(e){const[t,a]=e.split("@");return t.slice(0,3)+"*".repeat(t.length-3)+"@"+a}},H=(e,t)=>"unlimited"===t?0==e?0:5:t&&e?100*e/t:0;return(0,g.jsxs)("div",{className:"wkit-activate-key-wrapper "+(w?"wkit-skeleton":""),onClick:()=>{$&&C(!1)},children:[(0,g.jsxs)("div",{className:"wdkit-credits-section wdkit-licesec-cover",children:[(0,g.jsxs)("div",{className:"wdkit-credits-header",children:[(0,g.jsx)("h3",{className:"wdkit-activate-sec-h",children:(0,a.__)("Credits","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",className:"wkit-pink-btn-class",children:(0,a.__)("Buy More Credits","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-credits-progress",children:[(0,g.jsxs)("div",{className:"wdkit-overall-progressbar",children:[(0,g.jsxs)("div",{className:"wdkit-progbar-detail",children:[(0,g.jsxs)("div",{className:"wdkit-progressbar-strip",children:[(0,g.jsx)("div",{style:{width:`${H(2*t.wdkit_meta.credits?.count_template,t.wdkit_meta.credits?.credits_total)}%`,backgroundColor:"#6c3be2",transition:"all 0.3s linear"}}),(0,g.jsx)("div",{style:{width:`${H(5*t.wdkit_meta.credits?.count_widget,t.wdkit_meta.credits?.credits_total)}%`,backgroundColor:"#fc4731",transition:"all 0.3s linear"}}),(0,g.jsx)("div",{style:{width:`${H(1*t.wdkit_meta.credits?.count_code_snippet,t.wdkit_meta.credits?.credits_total)}%`,backgroundColor:"#efff00",transition:"all 0.3s linear"}}),(0,g.jsx)("div",{style:{width:`${H(10*t.wdkit_meta.credits?.count_workspace,t.wdkit_meta.credits?.credits_total)}%`,backgroundColor:"#22fd68",transition:"all 0.3s linear"}})]}),(0,g.jsxs)("div",{className:"wdkit-progress-elements",children:[(0,g.jsxs)("div",{className:"wdkit-prog-element",children:[(0,g.jsx)("span",{className:"wdkit-prog-dot",style:{backgroundColor:"#6c3be2"}}),(0,g.jsx)("span",{className:"wdkit-progdot-name",children:(0,a.__)("Templates","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-prog-element",children:[(0,g.jsx)("span",{className:"wdkit-prog-dot",style:{backgroundColor:"#fc4731"}}),(0,g.jsx)("span",{className:"wdkit-progdot-name",children:(0,a.__)("Widgets","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-prog-element",children:[(0,g.jsx)("span",{className:"wdkit-prog-dot",style:{backgroundColor:"#efff00"}}),(0,g.jsx)("span",{className:"wdkit-progdot-name",children:(0,a.__)("Snippets","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-prog-element",children:[(0,g.jsx)("span",{className:"wdkit-prog-dot",style:{backgroundColor:"#22fd68"}}),(0,g.jsx)("span",{className:"wdkit-progdot-name",children:(0,a.__)("Workspace","wdesignkit")})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-progbar-number",children:[(0,g.jsx)("span",{className:"wdkit-pn-first",children:R})," ",(0,g.jsx)("span",{children:" / "})," ",(0,g.jsx)("span",{className:"wdkit-pn-second",children:t.wdkit_meta.credits?.credits_total})]})]}),(0,g.jsx)("div",{className:"wdkit-progcards-main",children:O?.map(((e,t)=>(0,g.jsxs)("div",{className:"wdkit-prog-card",children:[(0,g.jsx)("span",{className:"wdkit-progcard-name",children:e?.title}),(0,g.jsxs)("div",{className:"wdkit-card-progressbar",children:[(0,g.jsx)("div",{className:"wdkit-crdprog-strip",children:(0,g.jsx)("span",{className:"wdkit-crd-progbar",style:{width:`${H(e?.count,e?.limit)}%`,backgroundColor:e?.bg,transition:"all 0.3s linear"}})}),(0,g.jsxs)("div",{className:"wdkit-progbar-number",children:[(0,g.jsx)("span",{className:"wdkit-pn-first",children:e?.count})," ",(0,g.jsx)("span",{children:" / "})," ",(0,g.jsx)("span",{className:"wdkit-pn-second",children:e?.limit})]})]})]},t)))})]})]}),(0,g.jsxs)("div",{className:"wkit-active-content",children:[(0,g.jsx)("div",{className:"wkit-apiKey-content",children:(0,g.jsxs)("div",{className:"wkit-apiKey-add-content",children:[(0,g.jsxs)("div",{className:"wdkit-add-key-header-container",children:[(0,g.jsxs)("div",{className:"wdkit-addkey-head-main",children:[(0,g.jsx)("div",{className:"wkit-addKey-header",children:(0,a.__)("Add Licence Key","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsxs)("div",{className:"wdkit-cmn-tooltip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wdkit-tooltip-content",children:(0,g.jsx)("a",{className:"wkit-link-hover-effect",href:wdkitData.WDKIT_DOC_URL+"how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("How to get key?","wdesignkit")})})]})]}),(0,g.jsxs)("div",{className:"wdkit-api-dropdown-container",children:[(0,g.jsxs)("div",{className:"wdkit-selected-api-key",onClick:()=>{C(!$)},children:[(0,g.jsxs)("div",{className:"wdkit-key-option-selected",children:[(0,g.jsx)("div",{className:"wdkit-key-img-cover",children:(0,g.jsx)("img",{src:cn+A,alt:"selected key",className:"wdkit-selected-option-logo"})}),(()=>{let e=B?.find((e=>e.value===S))?.text;return e||(0,a.__)("Select key name","wdesignkit")})()]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+($?"wdkit-rotate":"")})]}),$&&(0,g.jsx)("div",{className:"wkit-addkey-dropdown-child",children:(0,g.jsx)("ul",{className:"dropdown-options",children:B.map((e=>(0,g.jsxs)("li",{className:e.value==S?"wkit-selected-key":"",onClick:()=>(e=>{const t=B.find((t=>t.value==e));t&&(D(e),T(t.imageSrc)),C(!1)})(e.value),children:[(0,g.jsxs)("div",{className:"wkit-activate-key-opt",children:[(0,g.jsx)("img",{src:cn+e.imageSrc,alt:e.alt}),e.text]}),e.value==S&&(0,g.jsx)("i",{className:"wdkit-i-check"})]},e.text)))})})]})]}),t?.wdkit_meta?.manage_licence&&F?.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,g.jsxs)("div",{className:"wkit-theplus-activation",children:[(0,g.jsx)("div",{className:"wdkit-active-notice",children:(0,g.jsxs)("div",{className:"wkit-theplus-text",children:[(0,g.jsx)("span",{children:(0,a.__)(`We found active ${e?.plugin_name} key on this site.`,"wdesignkit")}),(0,g.jsxs)("p",{children:[(0,a.__)("Key:","wdesignkit")," ",G(s)]}),(0,g.jsxs)("p",{children:[(0,a.__)("Email:","wdesignkit")," ",z(n)]})]})}),(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-applyKey-btn",disabled:L,onClick:()=>{W(s,e?.value,i)},children:(0,a.__)("Apply Key","wdesignkit")})]},i):(0,g.jsx)("div",{className:"wkit-theplus-activated",children:(0,g.jsx)("p",{children:(0,a.__)(`Successfully connected your ${e?.plugin_name} key with your WDesignKit Account.`,"wdesignkit")})},i)}})),(0,g.jsx)("div",{className:"wkit-addKey-content",children:(0,g.jsxs)("div",{className:"wkit-addKey-body",children:[(0,g.jsx)("div",{className:"wkit-addkey-dropdown-field "+(u?"wkit-empty-key":""),children:(0,g.jsxs)("div",{className:"wkit-addkey-dropdown-parent",children:[A&&(0,g.jsx)("img",{src:cn+A,alt:"Selected Option Image",draggable:!1}),(0,g.jsx)("input",{className:"wkit-addKey-input",placeholder:"XXXXXXXXX6788",type:"text",value:c,onChange:e=>{m(e.target.value),h(!1)},onKeyDown:e=>{"Enter"===e.key&&W(c,S)}})]})}),"uichemy"==S&&(0,g.jsxs)("div",{className:"wdkit-uichemy-dropdwn-main",children:[(0,g.jsx)("select",{className:"wkit-uichemy-dropDown",onChange:e=>P(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,g.jsx)("option",{value:e.value,children:e.text})))}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-credit-meta-btn wkit-activte-btn wkit-pink-btn-class",onClick:()=>W(c,S),children:1==k?(0,g.jsx)(b,{}):(0,g.jsx)("span",{children:(0,a.__)("Activate","wdesignkit")})})]})})]})}),n.length>0?(0,g.jsxs)("div",{className:"wkit-apiKey-table-content",children:[(0,g.jsx)("div",{className:"wkit-apiKey-table-header wdkit-license-header",children:(0,g.jsx)("span",{children:(0,a.__)("Existing Licence Keys","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-apiKey-table-body",children:(0,g.jsxs)("table",{children:[(0,g.jsx)("thead",{children:(0,g.jsxs)("tr",{className:"wkit-table-hraders",children:[(0,g.jsx)("th",{className:"wkit-apikey-plugin",children:(0,a.__)("Name","wdesignkit")}),(0,g.jsx)("th",{children:(0,a.__)("Licence Key","wdesignkit")}),(0,g.jsx)("th",{children:(0,a.__)("Credits","wdesignkit")}),(0,g.jsx)("th",{children:(0,a.__)("Action","wdesignkit")})]})}),(0,g.jsx)("tbody",{children:n.map(((e,a)=>(0,g.jsxs)("tr",{className:"wdkit-apikey-row",children:[(0,g.jsx)("td",{children:(0,g.jsxs)("div",{className:"wkit-apikey-plugin",children:[(0,g.jsx)("img",{src:cn+e.Img,alt:"TPAE image"}),(0,g.jsx)("span",{children:e.Plugin})]})}),(0,g.jsx)("td",{children:(0,g.jsx)("div",{className:"wdkit-license-key-cover",children:(0,g.jsx)("span",{className:"wdkit-license-key-box",children:e.Key})})}),(0,g.jsx)("td",{children:(0,g.jsxs)("div",{className:"wkit-active-table-credits",children:[(0,g.jsx)("i",{className:"wdkit-i-credit"}),(0,g.jsx)("span",{children:e.Credits})]})}),(0,g.jsx)("td",{children:(0,g.jsxs)("div",{className:"wkit-active-table-status-tab",children:[(0,g.jsx)("span",{className:"wkit-key-status "+("Expired"==e.Status?"wdkit-expired-class":"wdkit-active-class"),children:e.Status}),e.Loader?(0,g.jsx)("span",{className:"wkit-cloud-icon wdkit-lic-smbtn",children:(0,g.jsx)(V,{})}):(0,g.jsx)("span",{className:"wkit-cloud-icon wdkit-lic-smbtn",onClick:()=>{((e,a)=>{let i=[...l.current];i[a]=Object.assign({},l.current[a],{Loader:!0}),l.current[a]=i[a],r(i);const s={type:"sync_licence",token:p().token,licencename:e};pn(s).then((e=>{if(e.success){let i=[...l.current];i[a]=Object.assign({},l.current[a],{Loader:!1}),l.current[a]=i[a],r(i),t.wdkit_set_notification({title:e?.message,desc:e?.description})}else{let i=[...l.current];i[a]=Object.assign({},l.current[a],{Loader:!1}),l.current[a]=i[a],r(i),t.wdkit_set_notification({title:e?.message,desc:e?.description})}}))})(e.value,a)},children:(0,g.jsx)("i",{className:"wdkit-i-sync"})}),(0,g.jsx)("span",{className:"wkit-delete-key-btn wdkit-lic-smbtn",onClick:()=>{s(!0),N(e)},children:(0,g.jsx)("i",{className:"wdkit-i-delete"})})]})})]},a)))})]})})]}):(0,g.jsxs)("div",{className:"wkit-apiKey-nokey",children:[(0,g.jsx)("img",{src:cn+"assets/images/jpg/noKey.gif",alt:"nokey image",draggable:!1}),(0,g.jsx)("h5",{className:"wdkit-apikey-sm-title",children:(0,a.__)("No licence keys found","wdesignkit")}),(0,g.jsxs)("span",{children:[(0,a.__)("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,g.jsxs)("a",{className:"wkit-link-hover-effect",href:wdkitData.WDKIT_DOC_URL+"how-to-get-key-for-wdesignkit-activation/",target:"_blank",rel:"noopener noreferrer",children:[" ",(0,a.__)("How to get a key?","wdesignkit")]})]})]}),!1]}),i&&(0,g.jsx)(Be,{title:"Delete License Key",desc:"Are you sure you want to deactivate the WDesignKit Pro License Key ?",body:(0,g.jsx)(q,{}),close_popup:()=>{s(!1)}})]})})),un=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_GetSettings_redux:t=>e(ii(t)),wdkit_set_notification:t=>e(si(t)),wdkit_Login_Route:t=>e(ei(t))})))(ns),hn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_temp_meta:e.wdkit_temp_meta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t)),wdkit_set_temp_meta:t=>e(ri(t))})))(fi),gn=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(ii(t)),wdkit_set_meta:t=>e(ti(t)),wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t))})))(Kt),{form_data:wn,get_userinfo:fn}=wp.wkit_Helper,kn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(si(t)),wdkit_set_meta:t=>e(ti(t))})))((t=>{const[i,n]=(0,e.useState)(""),[l,o]=(0,e.useState)(""),d=(0,e.useRef)(""),m=(0,e.useRef)("");var u=wdkitData.WDKIT_ASSETS,h=pe(),w=ue();(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:"",r=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(),setTimeout((()=>{window.parent.postMessage("openPopup",r)}),300)})()}),[]),(0,e.useEffect)((()=>{t.wdkit_meta?.success&&(d.current=t?.wdkit_meta?.credits?.wdkit_licence,_())}),[t.wdkit_meta?.success]);const _=()=>{if(h?.search){const e=new URLSearchParams(h.search).get("id");if(e){let i={free_pro:"",type:"widget_browse_page",perpage:1,page:1,search:e},n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),Object.entries(i).forEach((([e,t])=>{n.append(e,t)})),s().post(ajaxurl,n).then((async e=>{if(e?.data?.data?.widgets?.[0]){let t=e.data.data.widgets[0];m.current=t.builder,o(t),f(t)}else t.wdkit_set_notification({title:(0,a.__)("Widget Not Found","wdesignkit"),desc:(0,a.__)("Can Not Find Widget, Please Try Again Later!","wdesignkit")})}))}}},f=e=>{if(e)if("pro"==e?.free_pro){if(!p())return n("login"),!1;d?.current?.success&&"valid"==d?.current?.license?w(`/download/widget/${e.id}?builder=${m?.current}`):n("wdkit_pro")}else w(`/download/widget/${e.id}?builder=${m?.current}`)},b=()=>{const[i,s]=(0,e.useState)(),[o,d]=(0,e.useState)(),[p,h]=(0,e.useState)(!1),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(!1);let y=r();const j=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},N=e=>k==e?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("span",{className:"wkit-main-loader",children:[(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"})]})}):(0,g.jsxs)("span",{children:[(0,a.__)("Login with","wdesignkit")," ",e]});return(0,g.jsxs)("div",{className:"wkit-login-popup",children:[(0,g.jsx)("div",{children:(0,g.jsx)("p",{className:"wkit-tpae-login-heading",children:(0,a.__)("Login to use WDesignKit Widgets","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-tpae-login-btns",children:[(0,g.jsxs)("button",{className:"wkit-tpae-btn",onClick:e=>{(async()=>{var e=j();b("Google");var i=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${wdkitData.wdkit_site_api_url}api/auth/google/callback-plugin&response_type=code&scope=email%20profile&state=${e}`,s=screen.height/2-260,r=screen.width/2-335,o=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+s+",left="+r);const d=async()=>{if(o&&!o.closed)setTimeout(d,100);else{let s={type:"social_login",state:e,login_type:"normal",site_url:y};var i=await wn(s).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i?.data?.success,s="Login successfully",r=i?.data?.token;r&&e&&c({messages:s,success:a,token:r,user_email:e,login_type:"normal"});let o=await fn();t.wdkit_set_notification({title:i.data.message,desc:i.data.description}),t.wdkit_set_meta(o.data),o.data.credits.wdkit_licence?.success&&"valid"==o.data.credits.wdkit_licence.license?w(`/download/widget/${l.id}?builder=${m?.current}`):n("wdkit_pro")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});b(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("img",{src:u+"images/svg/google.svg",alt:"google",draggable:!1}),N("Google")]}),(0,g.jsxs)("button",{className:"wkit-tpae-btn",onClick:e=>{(async()=>{var e=j();b("Facebook");var i=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${encodeURIComponent(`${wdkitData.wdkit_site_api_url}api/auth/facebook/callback-plugin`)}&response_type=code&scope=email&state=${e}`,s=screen.height/2-260,r=screen.width/2-335,o=window.open(i,"","location=1,status=1,resizable=yes,width=670,height=520,top="+s+",left="+r);const d=async()=>{if(o&&!o.closed)setTimeout(d,100);else{let s={type:"social_login",state:e,site_url:y};var i=await wn(s).then((async e=>e));if(1==i?.data?.success){let e=i?.data?.user?.user_email,a=i.data.success,s="Login successfully",r=i.data.token;r&&e&&c({messages:s,success:a,token:r,user_email:e,login_type:"normal"});let o=await fn();t.wdkit_set_notification({title:i?.messages,desc:i?.description}),t.wdkit_set_meta(o.data),o.data.credits.wdkit_licence?.success&&"valid"==o.data.credits.wdkit_licence.license?w(`/download/widget/${l.id}?builder=${m?.current}`):n("wdkit_pro")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});b(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("i",{className:"wdkit-i-facebook"}),N("Facebook")]})]}),(0,g.jsxs)("div",{className:"wkit-tpae-sign-email",children:[(0,g.jsx)("hr",{className:"wkit-tpae-line"}),(0,g.jsx)("span",{className:"wkit-tpae-line-text",children:(0,a.__)("OR","wdesignkit")}),(0,g.jsx)("hr",{className:"wkit-tpae-line"})]}),(0,g.jsxs)("form",{className:"wkit-tpae-login-form",onSubmit:e=>{(async e=>{if(e.preventDefault(),!i)return void t.wdkit_set_notification({title:(0,a.__)("Please fill all fields","wdesignkit"),desc:(0,a.__)("Missing information! Complete all fields.","wdesignkit")});if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(i))return void t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});if(!o)return void t.wdkit_set_notification({title:(0,a.__)("Please fill all fields","wdesignkit"),desc:(0,a.__)("Missing information! Complete all fields.","wdesignkit")});if(v(!0),_)var s="normal";else s="session";let r={type:"wkit_login",user_email:i,user_password:o,login_type:s,site_url:y},d=await wn(r).then((e=>e));if(d?.success){c(_?Object.assign({},{user_email:i},d,{login_type:"normal"}):Object.assign({},{user_email:i},d,{login_type:"session"}));let e=await fn();return t.wdkit_set_meta(e.data),d.messages&&t.wdkit_set_notification({title:d?.messages,desc:d?.description}),e.data.credits.wdkit_licence.success&&"valid"==e.data.credits.wdkit_licence.license?w(`/download/widget/${l.id}?builder=${m?.current}`):n("wdkit_pro"),v(!1),void n("wdkit_pro")}t.wdkit_set_notification({title:d?.message,desc:d?.description}),v(!1)})(e)},children:[(0,g.jsxs)("div",{className:"wkit-tpae-login-field",children:[(0,g.jsx)("label",{className:"wkit-tpae-label",htmlFor:"wkit-tpae-mail",children:(0,a.__)("Email","wdesignkit")}),(0,g.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=>{s(e.target.value)}})]}),(0,g.jsxs)("div",{className:"wkit-tpae-login-field",children:[(0,g.jsx)("label",{className:"wkit-tpae-label",htmlFor:"wkit-tpae-password",children:(0,a.__)("Password","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-login-password-inp",children:[(0,g.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=>{d(e.target.value)}}),(0,g.jsx)("span",{className:"wkit-password-eye",onClick:()=>{h(!p)},children:(0,g.jsx)("i",{className:p?"wdkit-i-eye":"wdkit-i-eye-off"})})]})]}),(0,g.jsxs)("div",{className:"wkit-remember-wrapper",children:[(0,g.jsxs)("label",{htmlFor:"select-1",className:"wkit-remember-text",children:[(0,g.jsx)("input",{type:"checkbox",id:"select-1",className:"wkit-check-box wkit-styled-checkbox",checked:_,onChange:e=>{f(e.target.checked)}}),(0,g.jsx)("span",{className:"wkit-login-remember-text",children:(0,a.__)("Remember Me","wdesignkit")})]}),(0,g.jsx)($t,{className:"wkit-tpae-page-link",to:"/forgot_password",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==x?(0,g.jsx)("div",{className:"wkit-login-btn",children:(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-tpae-login-btn wkit-loader-btn",children:(0,g.jsx)("div",{className:"wkit-publish-loader",style:{display:x&&"flex"},children:(0,g.jsx)("div",{className:"wb-loader-circle"})})})}):(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-tpae-login-btn",children:(0,a.__)("Log in","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-signup-account",children:[(0,a.__)("Don't have an account?","wdesignkit"),(0,g.jsxs)($t,{className:"wkit-tpae-page-link",to:"/signup",target:"_blank",children:[" ",(0,a.__)("Create Account","wdesignkit")]})]})]})]})},x=()=>{const[i,s]=(0,e.useState)(!0);var r=(0,a.__)("Upgrade to WDesignKit Pro for Premium Widgets Access","wdesignkit");return"2"==m?.current&&(r=(0,a.__)("Upgrade to WDesignKit Pro for Premium Blocks Access","wdesignkit")),(0,g.jsxs)("div",{className:"wkit-pro-popup",children:[(0,g.jsx)("div",{className:"wkit-text-content",children:(0,g.jsx)("p",{className:"wkit-buy-pro",children:r})}),(0,g.jsxs)("div",{className:"wkit-widget-switcher",children:[(0,g.jsxs)("div",{className:"wkit-widget-detail",children:[(0,g.jsx)("div",{className:"wkit-widget-tag",children:l.free_pro}),(0,g.jsx)("div",{className:"wkit-tpae-widget-detail",children:l.title}),(0,g.jsx)("div",{className:"wkit-tpae-widget-links",children:(0,g.jsx)("span",{className:"wkit-widget-link",children:(0,a.__)("Live Demo","wdesignkit")})})]}),(0,g.jsxs)("div",{className:"wkit_block_toggle_btn_cover",children:[(0,g.jsx)("input",{className:"wkit_toggle_btn",type:"checkbox",disabled:!0}),(0,g.jsx)("label",{className:"switch-label",htmlFor:"toggle-tp-design-tool",children:(0,g.jsx)("span",{className:"switch-button"})}),(0,g.jsx)("img",{className:"wkit_toggle_lock_icon",src:u+"/images/svg/wkit_lock_icon.svg",alt:"Lock Icon"})]})]}),(0,g.jsxs)("div",{className:"wkit-widget-btn-group",children:[(0,g.jsx)("a",{href:wdkitData.wdkit_server_url+"pricing",target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-pro-btn",children:(0,a.__)("Get WDesignKit Pro","wdesignkit")})}),(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-pro-btn wkit-transparetn-btn",onClick:()=>{n("activate_license")},children:(0,a.__)("Activate WDesignKit","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-tpae-details-dropdown",children:["elementor"==k(m?.current,t?.wdkit_meta?.widgetbuilder)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-tpae-question "+(i?"wkit-show-question":""),children:[(0,g.jsx)("span",{children:(0,a.__)("Why Do I Need WDesignKit Pro if I Have The Plus Addons for Elementor Pro?","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-dropdown-svg",onClick:e=>{s(!i)},children:i?(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsxs)("div",{className:"wkit-tpae-answer "+(i?"wkit-show-answer":""),children:[(0,g.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,g.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,g.jsx)("a",{className:"wkit-dropdown-link",href:wdkitData.WDKIT_DOC_URL+"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"==k(m?.current,t?.wdkit_meta?.widgetbuilder)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-tpae-question "+(i?"wkit-show-question":""),children:[(0,g.jsx)("span",{children:(0,a.__)("Why Do I Need WDesignKit Pro if I Have Nexter Blocks Pro?","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-dropdown-svg",onClick:e=>{s(!i)},children:i?(0,g.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}):(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"#020202",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsxs)("div",{className:"wkit-tpae-answer "+(i?"wkit-show-answer":""),children:[(0,g.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,g.jsx)("a",{className:"wkit-dropdown-link",href:wdkitData.WDKIT_DOC_URL+"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")})]})]})]})]})},v=()=>{const[i,s]=(0,e.useState)(!1),[n,r]=(0,e.useState)(!1),[o,d]=(0,e.useState)("");return(0,g.jsxs)("div",{className:"wkit-tpae-activate-license",children:[(0,g.jsxs)("div",{className:"wkit-text-content",children:[(0,g.jsx)("p",{className:"wkit-tpae-license-text",children:(0,a.__)("Activate Your Pro License to Access Pro Widgets","wdesignkit")}),(0,g.jsx)("p",{className:"wkit-tpae-license-notice",children:(0,a.__)("Please activate your WDesignKit Pro license to start using advanced Pro widgets.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-activate-license",children:[(0,g.jsxs)("div",{className:"wkit-enter-key "+(n?"wkit-empty-license":""),children:[(0,g.jsx)("span",{style:{display:"contents"},children:(0,g.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{x:"0.5",width:"14",height:"14",rx:"2.33333",fill:"white"}),(0,g.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,g.jsx)("input",{className:"wkit-tpae-license-input",type:"text",placeholder:"XXXXXXXXX6788",value:o,onChange:e=>{d(e.target.value),r(!1)}})]}),(0,g.jsx)("div",{className:"wkit-tpae-active-loader wkit-pink-btn-class",onClick:()=>(async()=>{if(!o.trim())return r(!0),void t.wdkit_set_notification({title:(0,a.__)("Invalid key entered","wdesignkit"),desc:(0,a.__)("Key error, check and fix","wdesignkit")});{s(!0);const e={type:"active_licence",token:p().token,licencekey:o,licencename:"wdkit"};await wn(e).then((async e=>{e.success?(e?.data?.wdkit_licence?.success&&"valid"==e?.data?.wdkit_licence?.license&&w(`/download/widget/${l.id}?builder=${m?.current}`),t.wdkit_set_notification({title:e?.message,desc:e?.description}),s(!1)):(t.wdkit_set_notification({title:e?.message,desc:e?.description}),s(!1))}))}d("")})(),children:1==i?(0,g.jsx)("div",{className:"wkit-content-loader",children:(0,g.jsx)("div",{className:"wb-contentLoader-circle"})}):(0,g.jsx)("span",{children:(0,a.__)("Activate","wdesignkit")})})]})]})};return(0,g.jsx)("div",{className:"wkit-theplus-popup-parent",children:i?(0,g.jsxs)(g.Fragment,{children:["login"==i&&(0,g.jsx)(b,{}),"wdkit_pro"==i&&(0,g.jsx)(x,{}),"activate_license"==i&&(0,g.jsx)(v,{})]}):(0,g.jsx)("div",{className:"theplus-wkit-loader-content",children:(0,g.jsx)("div",{className:"theplus-wkit-loader-outer",children:(0,g.jsx)("div",{className:"theplus-wkit-loader-inner"})})})})}));let bn=new AbortController;const{Fragment:xn}=wp.element,vn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(si(t))})))((t=>{const i={elementor:[{name:"Accordion",tag:"freemium",id:"17409"},{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",tag:"pro",id:"16276"},{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",id:"17847"},{name:"Text Block",id:"16552"},{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:"Advertisement 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:"Carousel 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:"17863"},{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",id:"17849"},{name:"Clients Listing",tag:"freemium",id:"17761"},{name:"Dynamic Listing",tag:"pro"},{name:"Dynamic Smart Showcase",tag:"pro"},{name:"Gallery Listing",tag:"freemium",id:"17481"},{name:"Product Listing",tag:"pro"},{name:"Team Member Listing",tag:"freemium",id:"17498"},{name:"Testimonial",tag:"freemium",id:"17737"},{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:"17872",tag:"freemium"},{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",id:"11961",tag:"pro"},{name:"Blockquote",id:"11763"},{name:"Breadcrumbs",id:"17677"},{name:"Advanced Button",id:"17180"},{name:"Read More Unfold Button",id:"12221",tag:"pro"},{name:"Button"},{name:"Code Highlighter",id:"12592"},{name:"Container",id:"11646"},{name:"Grid Container",id:"18285"},{name:"Coupon Code",id:"11983",tag:"pro"},{name:"Dark Mode",tag:"pro"},{name:"Design Tool",tag:"pro"},{name:"Animated SVG",id:"11940"},{name:"Draw SVG"},{name:"Spacer"},{name:"Flipbox",id:"11758",tag:"freemium"},{name:"Google Map",id:"12120",tag:"freemium"},{name:"Heading"},{name:"Icon"},{name:"Image"},{name:"Video Gallery",id:"18060",tag:"pro"},{name:"Infobox",id:"11315"},{name:"Login & Signup",tag:"pro"},{name:"Message box",id:"11612"},{name:"Number Counter",id:"12569"},{name:"Pricing Table",id:"11753"},{name:"Pre Loader",tag:"pro",id:"17169"},{name:"Paragraph"},{name:"Pro Paragraph",id:"11965"},{name:"Progress Bar",id:"17099"},{name:"Reading Scroll Progress Bar",id:"17767"},{name:"Progress Tracker"},{name:"Row"},{name:"Stylish List",id:"11494"},{name:"Search Bar"},{name:"Social Icon"},{name:"Smooth Scroll"},{name:"Table of Content",id:"17886",tag:"pro"},{name:"Video Player",id:"11501"},{name:"Advanced Typography",tag:"pro",id:"12372"},{name:"Animated Service Boxes",tag:"pro",id:"12557"},{name:"Before After",id:"17855",tag:"pro"},{name:"Carousel Anything",tag:"pro",id:"11427"},{name:"Carousel Remote",tag:"pro"},{name:"Remote Sync",id:"12663",tag:"pro"},{name:"Circle Menu",tag:"pro"},{name:"Advanced Image",id:"17897",tag:"freemium"},{name:"Data Table",tag:"freemium",id:"17220"},{name:"Dynamic Device",tag:"pro",id:"12140"},{name:"Dynamic Repeater",tag:"pro",id:"19472"},{name:"Expand",tag:"pro"},{name:"Heading Title",id:"12251"},{name:"Heading Animation",tag:"pro",id:"12234"},{name:"Advanced Heading"},{name:"Hotspot",tag:"pro",id:"11639"},{name:"Hover Card",id:"11375"},{name:"Section Background",id:"17934",tag:"pro"},{name:"Gallary Background",id:"12609",tag:"pro"},{name:"LottieFiles Animation",id:"12085",tag:"pro"},{name:"Mouse Cursor",id:"12178",tag:"pro"},{name:"Pricing List",id:"11716"},{name:"Process Steps",tag:"pro",id:"11691"},{name:"Scroll Navigation",tag:"pro",id:"12210"},{name:"Scroll Sequence",id:"12333",tag:"pro"},{name:"Spline 3D Viewer",tag:"pro"},{name:"Timeline",id:"11489",tag:"pro"},{name:"Accordion",tag:"freemium",id:"11416"},{name:"Interactive Circle Info",id:"12157"},{name:"Switcher",id:"17920",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",id:"12481",tag:"pro"},{name:"Countdown",tag:"freemium",id:"17212"},{name:"CTA Banner",tag:"pro",id:"12009"},{name:"External Form Styler"},{name:"Form",id:"18484",tag:"freemium"},{name:"Mailchimp",tag:"pro"},{name:"Social Sharing",tag:"pro"},{name:"Media Listing",tag:"pro"},{name:"Post Listing",id:"18099",tag:"freemium"},{name:"Custom Post Listing",id:"18656",tag:"pro"},{name:"Product Listing",id:"18113",tag:"pro"},{name:"Taxonomy Listing",id:"18674",tag:"pro"},{name:"Glassmorphism",id:"19466",tag:"pro"},{name:"Team Member",id:"18006",tag:"freemium"},{name:"Testimonials",id:"18020",tag:"pro"},{name:"Mega Menu",id:"18192",tag:"pro"},{name:"Mobile Menu",tag:"pro"},{name:"Navigation Menu",tag:"freemium"},{name:"Popup Builder",id:"18142",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:"Header Effect",id:"18180",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"}]},n={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:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/plugin-list/plugin-tpae.svg",freepro:0,plugin_builder:1001,type:"plugin",status:"inactive"},r=pe(),d=he(),c=ue();var p=wdkitData.WDKIT_URL;const[m,u]=(0,e.useState)(!0),[h,w]=(0,e.useState)(1),[_,f]=(0,e.useState)(-1),[k,b]=(0,e.useState)(!1),[x,v]=(0,e.useState)(i?.[wdkitData.use_editor]),[j,N]=(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:d?.preset_id}),[$,C]=(0,e.useState)(null),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(!0),[A,T]=(0,e.useState)(!1),[L,M]=(0,e.useState)(""),[F,I]=(0,e.useState)(""),[B,O]=(0,e.useState)(""),[R,V]=(0,e.useState)(["status","tags","she-effects","plugins"]),[W,q]=(0,e.useState)(!1),[G,z]=(0,e.useState)(0),[H,U]=(0,e.useState)(!1),[J,K]=(0,e.useState)(""),[Z,Y]=(0,e.useState)(!1),[X,Q]=(0,e.useState)(""),[ee,te]=(0,e.useState)({preset:null,key:null}),[ae,ie]=(0,e.useState)(0),[se,ne]=(0,e.useState)(0),re=(0,e.useRef)([]);let le=[{label:(0,a.__)("Free","wdesignkit"),value:"Free"},{label:(0,a.__)("Pro","wdesignkit"),value:"Pro"}],oe=(0,g.jsx)("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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"})}),de=[{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")}],ce=[{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")}],me=[{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")}],ge=[{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 we=()=>window.location.href.split("/wp-admin/")[0]+"/wp-admin/";(0,e.useEffect)((()=>{var e=!1;let t=d?.preset_id,a=i?.[wdkitData?.use_editor]?.find((e=>e?.id==t))?.name;a&&M(a),r.search&&(e=new URLSearchParams(r.search).get("she"))&&U(!0),e?(async()=>{let e=await o([{plugin_name:"Elementor Pro",plugin_slug:"elementor-pro/elementor-pro.php",original_slug:"elementor-pro",status:"inactive",type:"plugin"}]);var t={...j,plugin:JSON.stringify([1014,1003]),free_pro:"free"};"active"==e?.data?.plugins[0].status&&(t={...j,plugin:JSON.stringify([1014,1004])}),N(t),K(!0)})():"gutenberg"===wdkitData?.use_editor?K(tpgb_blocks_load?.nexter_block_pro):"elementor"===wdkitData?.use_editor&&K(tp_wdkit_preview_popup?.tpae_pro)}),[]),(0,e.useEffect)((()=>{_e()}),[j]);const _e=async()=>{bn&&bn.abort(),bn=new AbortController;let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),Object.entries(j).forEach((([t,a])=>{"free_pro"===t&&"all"===a?e.append(t,""):e.append(t,a)})),await s().post(wdkitData.ajax_url,e,{signal:bn.signal}).then((e=>{if(e?.data){let t=e?.data?.data;D(e?.data?.manage_licence),w(e?.data?.totalpage),C(t),u(!1),P(!1),ie(e?.data?.totaltemplates),ne(e?.data?.showcount)}else C(null)})).catch((e=>{s().isCancel(e)}))},fe=(e,t)=>{re.current.length>0&&e.plugins_id.includes(re.current[0]?.p_id)?(q(!0),Y(!0),Q(re.current[0].original_slug),te((a=>({...a,preset:e,key:t})))):(q(!1),Y(!1),be(e,t))},ke=(e,i)=>{var s=!0,n=!1,r=!1;if("elementor"==window.wdkit_editor&&S?.theplus_elementor_addon&&"1"===J&&(n=!0),"gutenberg"==window.wdkit_editor&&S?.tpag&&"1"===J&&(r=!0),1==H){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;S?.[e]||a.push(i[s])}}})),0==a?.length?s=!1:re.current=a}}else s="free"!=e?.free_pro&&!r&&!n;return s?(0,g.jsxs)("div",{className:"wkit-preset-download-btn wkit-lock-btn",onClick:()=>{((e,t)=>{1==H?fe(e,t):q(!0)})(e,i)},children:[(0,g.jsx)("span",{className:"wkit-preset-tooltip",children:(0,a.__)("Click to know more","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-lock"})]}):_==i?(0,g.jsx)("div",{className:"wkit-preset-download-btn wkit-loading-preset",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}):-1!==_?(0,g.jsx)("div",{className:"wkit-preset-download-btn wkit-disable-btn",children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}):1==H?(0,g.jsx)("div",{className:"wkit-preset-download-btn",onClick:()=>{fe(e,i)},children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}):(0,g.jsx)("div",{className:"wkit-preset-download-btn",onClick:()=>be(e,i),children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})})},be=async(e,a)=>{f(a),bn&&bn.abort(),bn=new AbortController;let i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","wdkit_preset_dwnld_template"),i.append("id",e?.id),i.append("builder",window.wdkit_editor),i.append("free_pro",e?.free_pro),i.append("sheCheck",H),i.append("product_name","");let n=await s().post(wdkitData.ajax_url,i,{signal:bn.signal}).then((e=>e.data));if(n?.success){let e=JSON.parse(n.content);if(e&&e.content&&"elementor"==e.file_type&&"elementor"==wdkitData.use_editor)await Qe(e.content),await et(),await Ke(e,"preset");else if(e&&e.content&&"gutenberg"==wdkitData.use_editor){let t=sessionStorage?.getItem("tpgb_wkit_preset_key"),a=null;if(t){const e=wp.data.select("core/block-editor").getSelectedBlock();a=e?.clientId}await Xe(e.content),await Ke(e,"preset"),t&&a&&(await wp.data.dispatch("core/block-editor").removeBlock(a),sessionStorage.removeItem("tpgb_wkit_preset_key"))}else f(-1)}else t.wdkit_set_notification({title:n.message,desc:n.description}),f(-1)},xe=(e,t)=>{if(u(!0),"search"==e)var a=Object.assign({},j,{search:t,page:1});else if("filterItem"==e&&""!=t){var i=t.toLowerCase(),s="all";j.free_pro!==i&&(s=i),a=Object.assign({},j,{free_pro:s,page:1})}else if("filterName"==e)a=Object.assign({},j,{template_id:t.id,page:1}),M(t.presetName),T(1!=A);else if("plugin"==e){let e,i=j?.plugin&&!Array.isArray(j?.plugin)?JSON.parse(j?.plugin):[];H&&!i?.includes(1014)&&i.push(1014),e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...j,plugin:JSON.stringify(e),page:1}}else if("key_words"==e){let e,i=j?.key_words&&!Array.isArray(j?.key_words)?JSON.parse(j?.key_words):[];e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...j,key_words:JSON.stringify(e),page:1}}N(a)},ve=e=>{let t=[...R];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),V(t)},ye=()=>{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:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/plugin-list/plugin-elementor.svg"},{label:(0,a.__)("Elementor Pro","wdesignkit"),id:"elementor-pro",p_id:1004,icon:wdkitData.wdkit_site_api_url+"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:wdkitData.wdkit_site_api_url+"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:wdkitData.wdkit_site_api_url+"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:wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/plugin-list/sticky-header-effects-for-elementor.svg"}],i=j?.plugin&&!Array.isArray(j?.plugin)?JSON.parse(j?.plugin):[],s=j?.key_words&&!Array.isArray(j?.key_words)?JSON.parse(j?.key_words):[];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ve("she-effects")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Header Effects","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(R.includes("she-effects")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),R?.includes("she-effects")&&(0,g.jsx)("div",{className:"wkit-preset-effects-container",children:e?.map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-preset-cb-label",htmlFor:e.id,children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box",onChange:()=>xe("key_words",e?.value),checked:!!s?.includes(e?.value),id:e.id}),(0,g.jsx)("span",{className:"wkit-cb-label",children:e.label})]},t)))})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"}),(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ve("plugins")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Plugins","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(R.includes("plugins")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),R?.includes("plugins")&&(0,g.jsx)("div",{className:"wkit-preset-effects-container",children:t?.map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-preset-cb-label "+(1014===e?.p_id?"wkit-disable-btn-class":""),htmlFor:e.id,children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box",checked:!!i?.includes(e?.p_id),disabled:1014===e.p_id,onChange:()=>xe("plugin",e?.p_id),id:e.id}),(0,g.jsx)("img",{className:"wkit-preset-plugin-img",src:e.icon,alt:e.label}),(0,g.jsx)("span",{className:"wkit-cb-label",children:e.label})]},t)))})]})]})},je=e=>{(e.target.closest(".wkit-overlay")&&!e.target.closest(".tpae-nexter-bg")||e.target.closest(".tpae-model-close"))&&(1==Z?(Y(!1),q(!1)):q(!1))},Ne=()=>"elementor"===wdkitData?.use_editor?H?(0,a.__)("Header Effects","wdesignkit"):(0,a.__)("Elementor Widgets","wdesignkit"):"gutenberg"===wdkitData?.use_editor?(0,a.__)("Gutenberg Blocks","wdesignkit"):(0,a.__)("Elementor Widgets","wdesignkit"),$e=()=>(0,g.jsxs)("div",{className:"wkit-preset-filter-content",style:{minHeight:k?"100%":"auto"},children:[(0,g.jsxs)("div",{className:"wkit-search-filter-content",children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Search Presets","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-preset-search-template",children:(0,g.jsx)("div",{className:"wkit-search-filter",children:(0,g.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,g.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Presets","wdesignkit"),type:"text",value:F,onChange:e=>{I(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&xe("search",F)}}),(0,g.jsx)("span",{className:"wkit-search-button wkit-btn-class",onClick:e=>{xe("search",F)},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]})})})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"}),("1"!==J||H)&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ve("status")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Status","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(R.includes("status")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),R.includes("status")&&(0,g.jsx)("div",{className:"wkit-preset-free-pro",children:le.map(((e,t)=>(0,g.jsxs)("label",{htmlFor:`wkit-preset-${e?.value}`,className:"wkit-preset-freePro",children:[(0,g.jsx)("input",{className:"wkit-check-box",onChange:t=>xe("filterItem",e?.value),type:"checkbox",id:`wkit-preset-${e?.value}`,checked:j?.free_pro===e?.value?.toLowerCase()}),(0,g.jsx)("span",{children:e.label})]},t)))})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"})]}),H?ye():(0,g.jsxs)("div",{className:"wkit-preset-tag-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ve("tags")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:Ne()}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(R.includes("tags")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),R?.includes("tags")&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-browse-search-inner",children:(0,g.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search","wdesignkit"),type:"text",value:B,onChange:e=>{(e=>{if(O(e),""==e.trim())var t=i?.[wdkitData.use_editor];else t=i?.[wdkitData.use_editor]?.filter((t=>t.name.toLowerCase().includes(e.toLocaleLowerCase())));v(t)})(e.target.value)}})}),x?.length>0?(0,g.jsx)("div",{className:"wkit-preset-tags",children:x?.map(((e,t)=>{let i=e.name.split(" ").join("-");return(0,g.jsxs)("div",{className:"wkit-preset-tag-data "+(e.id?"":"wkit-disable-btn-class"),children:[(0,g.jsxs)("label",{className:"wkit-preset-tag-name "+(e.id?"":"wdkit-diabled-element"),htmlFor:`wkit-preset-${i}`,children:[(0,g.jsx)("input",{type:"radio",checked:L===e.name,className:"wkit-radio-button",onChange:()=>((e,t)=>{c("/preset/"+e),xe("filterName",{id:e,presetName:t})})(e?.id,e.name),id:`wkit-preset-${i}`}),e.name]}),e?.tag&&e?.id&&(0,g.jsx)("span",{className:"wkit-preset-tag-type "+("pro"===e?.tag?"wkit-preset-pro":""),children:e?.tag}),!e?.id&&(0,g.jsx)("span",{className:"wkit-preset-tag-type wkit-preset-comingSoon",children:(0,a.__)("Coming Soon","wdesignkit")})]},t)}))}):(0,g.jsxs)("div",{className:"wdkit-tag-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-tag",src:p+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("span",{className:"wdkit-no-tag-found",children:(0,a.__)("No Result Found.","wdesignkit")})]})]})]})]});return(0,g.jsxs)("div",{className:`wkit-preset-container ${m?"wkit-skeleton":""} ${E?"wkit-filter-skeleton":""}`,children:[(0,g.jsx)("div",{className:"wkit-preset-filter-panel",children:$e()}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-filter-fixed",onClick:()=>{b(!0)},children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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"})}),(0,a.__)("Filters","wdesignkit")]}),k&&(0,g.jsxs)("div",{className:"wkit-preset-mobile-filter",children:[(0,g.jsx)("span",{className:"wkit-mobile-filter-close",onClick:()=>{b(!1)},children:(0,g.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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"})})}),$e()]})]}),(0,g.jsxs)("div",{className:"wkit-preset-main",style:{display:k?"none":""},children:[(0,g.jsx)("div",{className:"wdkit-preset-inner-content",children:!1===m&&$?.length<=0?(0,g.jsx)(it,{}):(0,g.jsx)("div",{className:"wkit-preset-grid",children:!0===m?(e=>{if(e)return(0,g.jsx)(g.Fragment,{children:(t=e,Array.from({length:t})).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-preset-card",children:(0,g.jsxs)("div",{className:"wkit-card-inner",children:[(0,g.jsx)("div",{className:"wkit-pr-card-top",children:(0,g.jsx)("div",{className:"wkit-preset-feature-img",children:(0,g.jsx)("img",{className:"wkit-widget-placeholder-img",src:p+"assets/images/wkit-dummy-bg.png",draggable:"false"})})}),(0,g.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,g.jsx)("div",{className:"wkit-pr-card-title",children:"Growth Metrics"}),(0,g.jsx)("div",{className:"wkit-preset-download-btn",children:(0,g.jsx)("div",{className:"preset-download-temp",children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})})})]})]})},t)))});var t})(j.perpage):$?.map(((e,t)=>((e,t)=>(0,g.jsx)("div",{className:"wkit-preset-card",children:(0,g.jsxs)("div",{className:"wkit-card-inner",children:[(0,g.jsxs)("div",{className:"wkit-pr-card-top",onClick:()=>window.open(t?.post_url,"_blank"),children:[(0,g.jsx)("div",{className:"wkit-preset-card-tag",children:(0,g.jsx)("span",{className:"free"===t?.free_pro?"wdkit-free-tag":"wdkit-pro-tag",children:t?.free_pro})}),(0,g.jsxs)("div",{className:"wkit-preset-feature-img",children:[(0,g.jsx)("img",{className:"wkit-widget-placeholder-img",src:p+"assets/images/wkit-dummy-bg.png",draggable:"false"}),(0,g.jsxs)("picture",{children:[t?.responsive_image?.length>0&&t?.responsive_image.map(((e,t)=>{return(0,g.jsx)(xn,{children:(0,g.jsx)("source",{media:`(min-width: ${e?.size}px)`,srcSet:(a=e?.url,a?a.replace(/\s/g,"%20"):p+"assets/images/placeholder.jpg")})},t);var a})),(0,g.jsx)("img",{className:"wkit-temp-image-content",src:t?.post_image,alt:"featured-img",draggable:!1})]}),(0,g.jsx)("div",{className:"wkit-preset-preview",children:(0,g.jsx)("div",{className:"wkit-preset-demo-inner",children:(0,g.jsxs)("div",{className:"wkit-preview-items",children:[(0,g.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.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,g.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,g.jsx)("span",{children:(0,a.__)("View Demo","wdesignkit")})]})})})]})]}),(0,g.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,g.jsx)("div",{className:"wkit-pr-card-title",children:t?.title}),ke(t,e)]})]})},e))(t,e)))})}),(()=>{if($?.length>0&&ae>0)return(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(st,{showCount:se,totalCount:ae,typeText:(0,a.__)("Presets","wdesignkit")}),h>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:h,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&(j.page=e.nextSelectedPage+1,N({...j}),u(!0))},forcePage:j.page-1,onPageActive:()=>{}})]})})()]}),W&&(0,g.jsxs)("div",{className:"wkit-overlay wkit-preset-popup",onClick:e=>{je(e)},children:["elementor"===wdkitData?.use_editor&&!Z&&(0,g.jsxs)("div",{className:"tpae-nexter-bg",children:[(0,g.jsx)("svg",{className:"tpae-model-close",onClick:e=>{je(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"tpae-nexter-content",children:[(0,g.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock all Premium Widget Designs with The Plus Addons for Elementor Pro","wdesignkit")}),(0,g.jsxs)("ul",{className:"wkit-tpae-ul-list",children:[(0,g.jsxs)("li",{children:[oe,(0,a.__)("120+ Elementor Widgets","wdesignkit")]}),(0,g.jsxs)("li",{children:[oe,(0,a.__)("1000+ Elementor Templates","wdesignkit")]}),(0,g.jsxs)("li",{children:[oe,(0,a.__)("Pre-Designed Widget Styled","wdesignkit")]}),(0,g.jsxs)("li",{children:[oe,(0,a.__)("Trusted by 150K+ Users","wdesignkit")]})]}),(0,g.jsxs)("div",{className:"wkit-preset-popup-btns",children:[(0,g.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,g.jsx)("a",{className:"tpae-nexter-btn wkit-activate-tpae ",href:we()+"admin.php?page=theplus_welcome_page#/activate_pro",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Already Pro? Activate Now","wdesignkit")})]}),(0,g.jsx)("div",{className:"tpae-nexter-accordion",children:de?.map(((e,t)=>(0,g.jsxs)("div",{className:"nexter-accordion-item",children:[(0,g.jsxs)("div",{className:"nexter-accordio-content "+(G===t?"tpae-content-opan":""),onClick:()=>z(G===t?null:t),children:[(0,g.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,g.jsx)("div",{className:"tpae-pm-lable",children:(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G!==t&&(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsx)("div",{className:"tpae-accordion-ans "+(G===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"gutenberg"===wdkitData?.use_editor&&(0,g.jsxs)("div",{className:"tpae-nexter-bg wkit-nexter-bg",children:[(0,g.jsx)("svg",{className:"tpae-model-close",onClick:e=>{je(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"tpae-nexter-content",children:[(0,g.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock all Premium Block Designs with Nexter Blocks Pro","wdesignkit")}),(0,g.jsxs)("ul",{className:"wkit-tpae-ul-list",children:[(0,g.jsxs)("li",{children:[oe,(0,a.__)("Performance Optimized","wdesignkit")]}),(0,g.jsxs)("li",{children:[oe,(0,a.__)("90+ WordPress Blocks","wdesignkit")]}),(0,g.jsxs)("li",{children:[oe,(0,a.__)("1000+ Pre-made Starter Templates","wdesignkit")]})]}),(0,g.jsxs)("div",{className:"wkit-preset-popup-btns",children:[(0,g.jsx)("a",{className:"tpae-nexter-btn",href:"https://nexterwp.com/pricing/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Upgrade Pro","wdesignkit")}),(0,g.jsx)("a",{className:"tpae-nexter-btn wkit-activate-tpae ",href:we()+"admin.php?page=nexter_welcome_page#/activate_PRO",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Already Pro? Activate Now","wdesignkit")})]}),(0,g.jsx)("div",{className:"tpae-nexter-accordion",children:ce?.map(((e,t)=>(0,g.jsxs)("div",{className:"nexter-accordion-item",children:[(0,g.jsxs)("div",{className:"nexter-accordio-content "+(G===t?"tpae-content-opan":""),onClick:()=>z(G===t?null:t),children:[(0,g.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,g.jsx)("div",{className:"tpae-pm-lable",children:(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G!==t&&(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsx)("div",{className:"tpae-accordion-ans "+(G===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"elementor"===wdkitData?.use_editor&&Z&&H&&"the-plus-addons-for-elementor-page-builder"==X&&(0,g.jsxs)("div",{className:"tpae-nexter-bg",children:[(0,g.jsx)("svg",{className:"tpae-model-close",onClick:e=>{je(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"tpae-nexter-content",children:[(0,g.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,g.jsx)("div",{className:"wkit-preset-popup-btns wkit-tpae-download-btn-container",children:"loading"==Z?(0,g.jsx)("span",{className:"wkit-tpae-download-btn",children:(0,g.jsx)("span",{className:"wdkit-plugin-loader"})}):(0,g.jsx)("span",{className:"wkit-tpae-download-btn",onClick:()=>(Y("loading"),void l(n).then((e=>{if(e?.data?.success){let e=re.current.findIndex((e=>"1005"==e.p_id));if(e>-1){re.current.splice(e,1);let t=Object.assign({},S,{"the-plus-addons-for-elementor-page-builder":!0});D(t),fe(ee.preset,ee.key)}q(!1),Y(!1),be(ee?.preset,ee?.key),t.wdkit_set_notification({title:(0,a.__)("Installation Successful!","wdesignkit"),desc:(0,a.__)("Plugin is installed","wdesignkit")})}else t.wdkit_set_notification({title:(0,a.__)("Installation Failed!","wdesignkit"),desc:(0,a.__)("Plugin is not installed","wdesignkit")})}))),children:(0,a.__)("Install Plus Addons for Elementor Plugin for Free Navigation Menu","wdesignkit")})}),(0,g.jsx)("div",{className:"tpae-nexter-accordion tpae-nexter-popup-accord",children:me?.map(((e,t)=>(0,g.jsxs)("div",{className:"nexter-accordion-item",children:[(0,g.jsxs)("div",{className:"nexter-accordio-content "+(G===t?"tpae-content-opan":""),onClick:()=>z(G===t?null:t),children:[(0,g.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,g.jsx)("div",{className:"tpae-pm-lable",children:(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G!==t&&(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsx)("div",{className:"tpae-accordion-ans "+(G===t?"opan-accordion":""),children:e.answer})]},t)))})]})]}),"elementor"===wdkitData?.use_editor&&H&&Z&&"elementor-pro"==X&&(0,g.jsxs)("div",{className:"tpae-nexter-bg wkit-bg-color",children:[(0,g.jsx)("svg",{className:"tpae-model-close",onClick:e=>{je(e)},width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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,g.jsxs)("div",{className:"tpae-nexter-content",children:[(0,g.jsx)("div",{className:"tpae-nexter-title",children:(0,a.__)("Unlock This Sticky Header Template with Elementor Pro!","wdesignkit")}),(0,g.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,g.jsx)("div",{className:"wkit-preset-popup-btns",children:(0,g.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.__)("Get Elementor Pro","wdesignkit")})}),(0,g.jsx)("div",{className:"tpae-nexter-accordion",children:ge?.map(((e,t)=>(0,g.jsxs)("div",{className:"nexter-accordion-item",children:[(0,g.jsxs)("div",{className:"nexter-accordio-content "+(G===t?"tpae-content-opan":""),onClick:()=>z(G===t?null:t),children:[(0,g.jsx)("div",{className:"tpae-accd-qui",children:e.question}),(0,g.jsx)("div",{className:"tpae-pm-lable",children:(0,g.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[G!==t&&(0,g.jsx)("path",{d:"M10 4.16675V15.8334",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M4.16797 10H15.8346",stroke:"white",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})]})})]}),(0,g.jsx)("div",{className:"tpae-accordion-ans "+(G===t?"opan-accordion":""),children:e.answer})]},t)))}),(0,g.jsxs)("div",{className:"wkit-elementor-notice",children:[(0,g.jsx)("span",{children:(0,g.jsxs)("svg",{width:"30",height:"30",viewBox:"0 0 12 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.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,g.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,g.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,g.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")})]})]})]})]})]})}));let yn=new AbortController;const jn=[{name:"Header",id:"1017"},{name:"Footer",id:"1018"},{name:"Section",id:"1002"},{name:"Single Page",id:"1009"},{name:"Archive Page",id:"1010"},{name:"Search Page",id:"1011"},{name:"404 Page",id:"1012"},{name:"Coming Soon Page",id:"1013"}],Nn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(si(t))})))((t=>{var i=wdkitData.WDKIT_URL;const n=he(),r=ue(),[l]=function(t){let a=e.useRef(bt(t)),i=e.useRef(!1),s=pe(),n=e.useMemo((()=>function(e,t){let a=bt(e);return t&&t.forEach(((e,i)=>{a.has(i)||t.getAll(i).forEach((e=>{a.append(i,e)}))})),a}(s.search,i.current?null:a.current)),[s.search]),r=ue(),l=e.useCallback(((e,t)=>{const a=bt("function"==typeof e?e(n):e);i.current=!0,r("?"+a,t)}),[r,n]);return[n,l]}(),o=n?.section_id,d=l.get("builder")||"",[c,p]=(0,e.useState)(!0),[m,u]=(0,e.useState)(!0),[h,w]=(0,e.useState)(1),[_,k]=(0,e.useState)(-1),[b,x]=(0,e.useState)(!1),[v,j]=(0,e.useState)(jn),[N,$]=(0,e.useState)({free_pro:"all",perpage:9,page:1,search:"",category:o,builder:d}),[C,S]=(0,e.useState)(null),[D,E]=(0,e.useState)([]),[P,A]=(0,e.useState)(""),[T,L]=(0,e.useState)(["status","sections"]),[M,F]=(0,e.useState)(0),[I,B]=(0,e.useState)(0),[O,R]=(0,e.useState)(!1),[V,W]=(0,e.useState)(),[q,G]=(0,e.useState)(),[z,H]=(0,e.useState)(""),[U,J]=(0,e.useState)(!1),[K,Z]=(0,e.useState)(null);let Y=[{label:(0,a.__)("All","wdesignkit"),value:"all"},{label:(0,a.__)("Free","wdesignkit"),value:"free"},{label:(0,a.__)("Pro","wdesignkit"),value:"pro"}];(0,e.useEffect)((()=>{const e=l.get("builder")||"";$((t=>({...t,category:o,builder:e,page:1})))}),[o,l]),(0,e.useEffect)((()=>{X()}),[N]);const X=async()=>{yn&&yn.abort(),yn=new AbortController;let e=new FormData;e.append("action","wdkit_theme_builder"),e.append("type","browse_template"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("ParPage",N.perpage||9),e.append("CurrentPage",N.page||1),e.append("search",N.search||""),e.append("category",N.category||""),e.append("free_pro",N.free_pro&&"all"!==N.free_pro?N.free_pro.toLowerCase():""),e.append("builder",N.builder||""),await s().post(wdkitData.ajax_url,e,{signal:yn.signal}).then((e=>{if(e?.data?.success&&e?.data?.data){let t=e?.data?.data?.data||e?.data?.data;E(e?.data?.data?.manage_licence||[]),w(e?.data?.data?.totalpage||1),S(t),p(!1),u(!1),F(e?.data?.data?.totaltemplates||0),B(e?.data?.data?.showcount||0)}else S(null),p(!1),u(!1),F(0),B(0),e?.data?.message&&t.wdkit_set_notification({title:(0,a.__)("Error","wdesignkit"),desc:e.data.message})})).catch((e=>{s().isCancel(e)||(S(null),p(!1),u(!1),console.error("Theme Builder API Error:",e),e?.response?.data?.message?t.wdkit_set_notification({title:(0,a.__)("API Error","wdesignkit"),desc:e.response.data.message}):400===e?.response?.status&&t.wdkit_set_notification({title:(0,a.__)("Bad Request","wdesignkit"),desc:(0,a.__)("Invalid request parameters. Please check your filters.","wdesignkit")}))}))},Q=(e,t)=>_==t?(0,g.jsx)("div",{className:"wkit-preset-download-btn wkit-loading-preset",children:(0,g.jsx)("div",{className:"wkit-publish-loader",children:(0,g.jsx)("div",{className:"wb-loader-circle"})})}):-1!==_?(0,g.jsx)("div",{className:"wkit-preset-download-btn wkit-disable-btn",children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}):(0,g.jsx)("div",{className:"wkit-preset-download-btn",onClick:()=>ee(e,t),children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}),ee=async(e,i)=>{if(k(i),J(!0),Z(e),!(e=>{var a=!1;let i=t?.wdkit_meta?.credits?t.wdkit_meta.credits:"",s=D||{};if("active"==e?.is_activated)if("pro"==e.free_pro){let n=e?.post_builder,r=f(n,t?.wdkit_meta?.builder||{}).toLowerCase();"elementor"===r?(s?.theplus_elementor_addon||"1"==i?.access_elementor?.meta_value)&&(a=!0):"gutenberg"===r?(s?.tpag||"1"==i?.access_gutenburg?.meta_value)&&(a=!0):"bricks"===r&&"1"==i?.access_bricks?.meta_value&&(a=!0)}else a=!0;return a})(e)&&"pro"==e.free_pro){let i=e?.post_builder,s=f(i,t?.wdkit_meta?.builder||{});return"elementor"==s?t.wdkit_set_notification({title:(0,a.__)("The Plus Addons for Elementor Pro Plugin Required","wdesignkit"),desc:"To unlock Elementor Pro templates, please install and activate The Plus Addons for Elementor Pro."}):"gutenberg"==s?t.wdkit_set_notification({title:(0,a.__)("Nexter Blocks Pro Plugin Required","wdesignkit"),desc:"To unlock Gutenberg Pro templates, please install and activate Nexter Blocks Pro."}):t.wdkit_set_notification({title:(0,a.__)("Get Pro Version to Download","wdesignkit"),desc:"This feature is available in Pro only."}),J(!1),k(-1),!1}R(!0),W({title:"",desc:"",body:"loading"});const s={data:e,wdkit_meta:t.wdkit_meta};var n=await qe(s);G(n),n?.pro_plugin?.length>0?(W({title:"Plugins Needed for This Template",desc:"This template works best with the following plugins. Please install them to continue.",body:"requre_pro_plugin"}),J(!1),k(-1)):W({title:"Setting Up Your Template",desc:"We're getting everything ready. Please wait while we install the required plugins and import your template.",body:"import_template"})},te=(e,t)=>{if(p(!0),"search"==e)var a=Object.assign({},N,{search:t,page:1});else if("filterItem"==e&&""!=t){var i,s=t.toLowerCase();i=N.free_pro!==s?s:"all",a=Object.assign({},N,{free_pro:i,page:1})}else if("filterSection"==e){const e=l.get("builder")||"";r(e?`/theme/builder/${t}?builder=${e}`:`/theme/builder/${t}`),a=Object.assign({},N,{page:1})}$(a)},ae=e=>{let t=[...T];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),L(t)},ie=()=>(0,g.jsxs)("div",{className:"wkit-preset-filter-content",style:{minHeight:b?"100%":"auto"},children:[(0,g.jsxs)("div",{className:"wkit-search-filter-content",children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Search Templates","wdesignkit")})}),(0,g.jsx)("div",{className:"wkit-preset-search-template",children:(0,g.jsx)("div",{className:"wkit-search-filter",children:(0,g.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,g.jsx)("input",{className:"wkit-browse-search",placeholder:(0,a.__)("Search Templates","wdesignkit"),type:"text",value:P,onChange:e=>{A(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&te("search",P)}}),(0,g.jsx)("span",{className:"wkit-search-button wkit-btn-class",onClick:e=>{te("search",P)},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]})})})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"}),(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ae("status")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Status","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(T.includes("status")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),T.includes("status")&&(0,g.jsx)("div",{className:"wkit-preset-free-pro",children:Y.map(((e,t)=>(0,g.jsxs)("label",{htmlFor:`wkit-theme-${e?.value}`,className:"wkit-preset-freePro",children:[(0,g.jsx)("input",{className:"wkit-check-box",onChange:t=>te("filterItem",e?.value),type:"checkbox",id:`wkit-theme-${e?.value}`,checked:N?.free_pro===e?.value?.toLowerCase()}),(0,g.jsx)("span",{children:e.label})]},t)))})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"}),(0,g.jsxs)("div",{className:"wkit-preset-tag-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{ae("sections")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Sections","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(T.includes("sections")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),T?.includes("sections")&&(v?.length>0?(0,g.jsx)("div",{className:"wkit-preset-tags",children:v?.map(((e,t)=>{let a=e.name.split(" ").join("-");return(0,g.jsx)("div",{className:"wkit-preset-tag-data",children:(0,g.jsxs)("label",{className:"wkit-preset-tag-name",htmlFor:`wkit-theme-${a}`,children:[(0,g.jsx)("input",{type:"radio",checked:o===e.id,className:"wkit-radio-button",onChange:()=>te("filterSection",e.id),id:`wkit-theme-${a}`}),e.name]})},t)}))}):(0,g.jsxs)("div",{className:"wdkit-tag-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-tag",src:i+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("span",{className:"wdkit-no-tag-found",children:(0,a.__)("No Result Found.","wdesignkit")})]}))]})]}),se=e=>"parent_loader"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}):"loading"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"done"==e||"active"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"done_parent"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-parent",style:{fontSize:"20px"}}):"pending"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"}):"parent_fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}):void 0,ne=()=>{let i=[{name:"install_plugin",label:"Installing Plugins and Theme",status:"pending"},{name:"plugin_setting",label:"Plugin Setting",status:"pending"},{name:"theme_setting",label:"Theme Setting",status:"pending"},{name:"import_json",label:"Import Template",status:"pending"}];const n=()=>{const[n,r]=(0,e.useState)(i),[l,o]=(0,e.useState)([]),d=(0,e.useRef)([]),c=(0,e.useRef)([]);(0,e.useEffect)((()=>{u("install_plugin")}),[]);const p=(e,t)=>{let a=[...n],i=a.findIndex((t=>t.name==e));i>-1&&(a[i].status=t),r(a)},m=async e=>{if(c.current.findIndex((e=>"loading"==e.status))>-1)d.current.push(e);else{let t=Object.assign({},e,{status:"loading"});c.current.push(t),o([...c.current]),await(async e=>{let t=new FormData;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);var a=await s().post(ajaxurl,t).then((e=>e.data));if(a?.success){let e=c.current.findIndex((e=>e.p_id==a.p_id));e>-1&&(c.current[e].status=a.status,o([...c.current]))}let i=d.current.findIndex((e=>e.p_id==a.p_id));i>-1&&d.current.splice(i,1),d.current.length>0?m(d.current[0]):(await p("install_plugin","done"),u("plugin_setting"))})(e)}},u=async e=>{if("install_plugin"==e)await p(e,"loading"),q?.install_plg?.length>0?await Promise.all(q.install_plg.map((async e=>{await m(e)}))):(await p("install_plugin","done"),u("plugin_setting"));else if("plugin_setting"==e){await p(e,"loading"),await Ge("plugin");let t=q?.theme?q.theme:[],a=t.findIndex((e=>"nexter"==e.original_slug));a>-1&&"active"==t[a].status?u("theme_setting"):(u("import_json"),await p("theme_setting","done")),await p(e,"done")}else if("theme_setting"==e)await p(e,"loading"),await Ge("theme"),await p(e,"done"),u("import_json");else if("import_json"==e){await p(e,"loading");let s=K,n=s?.post_builder,r=f(n,t?.wdkit_meta?.builder||{}),l="pagetemplate"==s?.type?"page":"section",o=s?.id,d={id:o,type:l,wp_post_type:s?.wp_post_type||"nxt_builder",builder:r},c=await Ue(d,s);if(!c)return await p(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Failed to fetch template data. Please try again.","wdesignkit")}),J(!1),void k(-1);if("wdkit"!=wdkitData.use_editor)var i=c?.content;else i=c?.response?.content;if(!i)return await p(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Template content is empty. Please try again.","wdesignkit")}),J(!1),void k(-1);i&&"elementor"==r?(await Qe(JSON.parse(i).content),await et()):i&&"gutenberg"==r&&await Xe(JSON.parse(i).content);let m=await Ze(i,s,r);const u="nxt_builder"===c?.value?.wp_post_type||"nxt_builder"===d.wp_post_type||"theme_builder"===wdkitData.use_editor;if("wdkit"==wdkitData.use_editor||u){let i=c;c?.value||c?.args||c?.id||(i={value:{builder:r,wp_post_type:d.wp_post_type||s?.wp_post_type||"nxt_builder",type:d.type||("pagetemplate"==s?.type?"page":"section"),file_type:"gutenberg"===r?"wp_block":r,...s},args:{editor:r,builder:r,custom_meta:!0},id:d.id||s?.id||o});let n=await Je(i,m);if(!n||!n.success){await p(e,"fail");const i=n?.message||n?.import_failed||(0,a.__)("Template import failed. Please try again.","wdesignkit");return t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:i}),J(!1),void k(-1)}if(!n.inserted_id)return await p(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Template was not created. Please try again.","wdesignkit")}),J(!1),void k(-1);let l=n.inserted_id;i.value&&"nxt_builder"==i.value.wp_post_type&&await He(l);let u=n[o];W({title:"",desc:"",body:"import_complete"}),H(u)}else await Ke(JSON.parse(m));await p(e,"done")}};return(0,g.jsx)("div",{className:"wkit-import-temp-process",children:(0,g.jsx)("div",{className:"wkit-import-process-container",children:n.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-temp-process-step",children:[(0,g.jsxs)("div",{className:`wkit-import-temp-process-parent wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:se(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.label})]}),l.length>0&&"install_plugin"==e.name&&c.current.map((t=>(0,g.jsxs)("div",{className:`wkit-import-temp-process-child wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:se(t.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:t.plugin_name})]},t.p_id)))]},t)))})})};return(0,g.jsx)(n,{})},re=()=>(J(!1),k(-1),(0,g.jsxs)("div",{className:"wkit-import-temp-success",children:[(0,g.jsx)("img",{className:"wkit-import-temp-success-gif",src:i+"assets/images/jpg/kit-import-success-"+(t?.wdkit_dark_mode||"light")+".gif"}),(0,g.jsx)("span",{className:"wkit-import-temp-success-title",children:(0,a.__)("Template Imported Successfully","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-temp-success-desc",children:(0,a.__)("Your selected template is ready. Start customizing and building your page right away.","wdesignkit")}),z?.view&&(0,g.jsx)("a",{href:z.view,className:"wkit-import-temp-success-btn wkit-btn-class",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("view template","wdesignkit")})]}));return(0,g.jsxs)("div",{className:`wkit-preset-container ${c?"wkit-skeleton":""} ${m?"wkit-filter-skeleton":""}`,children:[O&&(0,g.jsx)(Be,{title:V?.title,desc:V?.desc,body:(le=V?.body,"loading"==le?(()=>{let e=wdkitData?.wdkit_white_label?.plugin_logo||i+"assets/images/jpg/wdkit_loader.gif";return(0,g.jsx)("img",{className:"wkit-card-loader-gif",src:e,draggable:!1})})():"import_template"==le?(0,g.jsx)(ne,{}):"import_complete"==le?(0,g.jsx)(re,{}):"requre_pro_plugin"==le?(e=>{const t={1004:{name:"elementor-pro",link:"https://elementor.com/pricing-plugin/",lable:"Elementor Pro",desc:"This Template uses Pro widgets from Elementor Pro. Upgrade to Pro to unlock and import the full design."},1006:{name:"theplus_elementor_addon",link:"https://theplusaddons.com/pricing/",lable:"The Plus Addons for Elementor Pro",desc:"This Template uses Pro widgets from The Plus Addons for Elementor Pro. Upgrade to Pro to unlock and import the full design."},1008:{name:"the-plus-addons-for-block-editor-pro",link:"https://nexterwp.com/pricing/",lable:"Nexter Blocks Pro",desc:"This template uses Pro widgets from Nexter Blocks Pro. Upgrade to Pro to unlock and import the full design."}};return(0,g.jsx)("div",{className:"wkit-popup-pro-plugin",children:e&&e.length>0&&e.map((e=>{let a=t?.[e.p_id]?.link?t[e.p_id].link:"";return(0,g.jsxs)("div",{className:"wkit-pro-plugin-list",children:[(0,g.jsxs)("div",{className:"wkit-pro-plugin-cont",children:[(0,g.jsx)("img",{className:"wkit-pro-plugin-icon",src:e?.plugin_icon}),(0,g.jsx)("span",{className:"wkit-pro-plugin-txt",children:e?.plugin_name})]}),(0,g.jsx)("a",{className:"wkit-pro-plugin-link",href:a,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("i",{className:"wdkit-i-link-square wkit-pro-link-icon"})})]},e.p_id)}))})})(q?.pro_plugin):void 0),close_popup:()=>{R(!1)}}),(0,g.jsx)("div",{className:"wkit-preset-filter-panel",children:ie()}),(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-filter-fixed",onClick:()=>{x(!0)},children:[(0,g.jsx)("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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"})}),(0,a.__)("Filters","wdesignkit")]}),b&&(0,g.jsxs)("div",{className:"wkit-preset-mobile-filter",children:[(0,g.jsx)("span",{className:"wkit-mobile-filter-close",onClick:()=>{x(!1)},children:(0,g.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.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"})})}),ie()]})]}),(0,g.jsxs)("div",{className:"wkit-preset-main",style:{display:b?"none":""},children:[(0,g.jsx)("div",{className:"wdkit-preset-inner-content",children:!1===c&&C?.length<=0?(0,g.jsx)(it,{}):(0,g.jsx)("div",{className:"wkit-preset-grid",children:!0===c?(e=>{if(e)return(0,g.jsx)(g.Fragment,{children:(t=e,Array.from({length:t})).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-preset-card",children:(0,g.jsxs)("div",{className:"wkit-card-inner",children:[(0,g.jsx)("div",{className:"wkit-pr-card-top",children:(0,g.jsx)("div",{className:"wkit-preset-feature-img",children:(0,g.jsx)("img",{className:"wkit-widget-placeholder-img",src:i+"assets/images/wkit-dummy-bg.png",draggable:"false"})})}),(0,g.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,g.jsx)("div",{className:"wkit-pr-card-title",children:(0,a.__)("Template Title","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-preset-download-btn",children:(0,g.jsx)("div",{className:"preset-download-temp",children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})})})]})]})},t)))});var t})(N.perpage):C?.map(((e,t)=>{return i=t,s=e,(0,g.jsx)("div",{className:"wkit-preset-card",children:(0,g.jsxs)("div",{className:"wkit-card-inner",children:[(0,g.jsxs)("div",{className:"wkit-pr-card-top",children:[(0,g.jsx)("div",{className:"wkit-preset-card-tag",children:(0,g.jsx)("span",{className:"free"===s?.free_pro?"wdkit-free-tag":"wdkit-pro-tag",children:s?.free_pro})}),(0,g.jsxs)("div",{className:"wkit-preset-feature-img",children:[(0,g.jsx)("img",{className:"wkit-widget-placeholder-img",src:s.post_image,draggable:"false"}),(0,g.jsx)("div",{className:"wkit-preset-preview",children:(0,g.jsx)("div",{className:"wkit-preset-demo-inner",children:(0,g.jsxs)("a",{href:s?.post_url,target:"_blank",className:"wkit-preview-items",children:[(0,g.jsxs)("svg",{width:"17",height:"17",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.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,g.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,g.jsx)("span",{children:(0,a.__)("View Demo","wdesignkit")})]})})})]})]}),(0,g.jsxs)("div",{className:"wkit-preset-card-bottom",children:[(0,g.jsx)("div",{className:"wkit-pr-card-title",children:s?.title}),Q(s,i)]})]})},i);var i,s}))})}),(()=>{if(C?.length>0&&M>0)return(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(st,{showCount:I,totalCount:M,typeText:(0,a.__)("Templates","wdesignkit")}),h>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:h,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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=>{if(window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage){const t={...N};t.page=e.nextSelectedPage+1,$(t),p(!0)}},forcePage:N.page-1,onPageActive:()=>{}})]})})()]})]});var le})),{Fragment:$n}=wp.element,Cn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{let i={p_id:3001,original_slug:"nexter",plugin_name:"Nexter",freepro:"0",type:"theme"};const[n,r]=(0,e.useState)(!0),[l,o]=(0,e.useState)([{title:"Design",name:"design",description:"Essential design options are built-in automatically.",value:"true",plugin:["nexter-extension"],required:!0,required_txt:"These are the required plugins for designing your website, so it’s important to keep them active."},{title:"eCommerce ",name:"ecommerce",description:"Set up an online store with WooCommerce and ready-made product pages.",value:"false",plugin:["woocommerce"],required_txt:"You can't disable this — it's required for designing your website."},{title:"Dynamic Content",name:"dynamic_content",description:"Create dynamic pages for any content like portfolios, services, events, blogs, or directories. etc.",value:"false",plugin:["advanced-custom-fields"]},{title:"Performance",name:"performance",description:"Boost your site speed with caching and performance optimization plugins",value:"false",plugin:["wp-optimize"]},{title:"Security",name:"security",description:"Keep your site safe with recommended security tools.",value:"false",plugin:["all-in-one-wp-security-and-firewall"]},{title:"Extras",name:"extras",description:"Add forms, popups, and extra tools to extend your site.",value:"false",plugin:["seo-by-rank-math"]}]),[d,c]=(0,e.useState)(!1),[p,m]=(0,e.useState)(!0);(0,e.useEffect)((()=>{t?.site_obj?.plugin_setting&&o(t?.site_obj?.plugin_setting),t?.site_obj?.theme_setting&&m(t?.site_obj?.theme_setting),u(t?.site_obj?.plugin_setting)}),[]);const u=async(e=l)=>{if(t.wdkit_meta?.success){let a=t.wdkit_meta?.plugin?t.wdkit_meta.plugin:[],n=t?.new_plugins?.length>0?[...t.new_plugins]:[],l=[];if(t.kit_template?.length>0&&(t.kit_template.map((t=>{t?.plugins_id?.length>0&&t?.plugins_id.map((t=>{let i=a?.findIndex((e=>e.p_id==t)),s=l?.findIndex((e=>e.p_id==t));if(i>-1&&-1==s){n.push(a[i]),l.push(a[i]);let t=[...e],s=t.findIndex((e=>e.plugin.includes(a[i].original_slug)));s>-1&&(t[s].required=!0,o(t))}}))})),n.push(i)),n.length>0){let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","check_plugins_depends"),t.append("plugins",JSON.stringify(n)),t.append("editor",wdkitData.use_editor);let a=await s().post(ajaxurl,t).then((async e=>await e.data));if(a?.success){let t=a.data;if(t&&e?.length>0){let a=t?.plugins?t?.plugins:[],i=t?.theme?t?.theme:[],s=[...e],n=i.findIndex((e=>"nexter"==e.original_slug&&"theme"==e.type));n>-1&&"active"==i[n].status&&m("active"),s.map((e=>{let t=0;e.plugin.map((e=>{let i=a.findIndex((t=>t.original_slug==e));i>-1&&"active"==a[i].status&&t++})),e?.plugin?.length==t&&(e.value=!0)})),o(s),r(!1)}}}}};return(0,g.jsx)("div",{className:"wkit-import-temp-feature "+(n?"wkit-skeleton":""),children:(0,g.jsx)("div",{className:"wkit-site-feature-content",children:(0,g.jsxs)("div",{className:"wkit-site-feature-container",children:[(0,g.jsxs)("div",{className:"wkit-site-feature-header",children:[(0,g.jsx)("span",{className:"wkit-feature-header-title",children:(0,a.__)("Choose What Your Site Needs","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-feature-header-subtitle",children:(0,a.__)("Select the features you want, and we’ll set them up for you automatically.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-site-feature-body",children:[(0,g.jsx)("div",{className:"wkit-site-feature-plugins",children:l.map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-feature-plugin-card",htmlFor:`wkit-card-switcher-inp-${e.name}`,children:[(0,g.jsxs)("div",{className:"wkit-plugin-card-top",children:[(0,g.jsx)("span",{className:"wkit-plugin-card-title",children:e.title}),e.required?(0,g.jsxs)("div",{className:"wkit-plugin-card-icon",children:[e?.required_txt&&(0,g.jsx)("span",{className:"wkit-plugin-default-tooltip",children:e.required_txt}),(0,g.jsx)("i",{className:"wdkit-i-info"})]}):(0,g.jsxs)("label",{className:"wkit-plugin-card-switcher",children:[(0,g.jsx)("input",{type:"checkbox",id:`wkit-card-switcher-inp-${e.name}`,checked:1==e.value,onChange:t=>{((e,t)=>{let a=l.length>0?[...l]:[],i=a.findIndex((t=>t.name==e));i&&(a[i].value=t,o(a))})(e.name,t.target.checked)}}),(0,g.jsx)("span",{className:"wkit-card-switcher-inner"})]})]}),(0,g.jsx)("div",{className:"wkit-plugin-card-bottom",children:(0,g.jsx)("span",{className:"wkit-plugin-card-desc",children:e.description})})]},t)))}),(0,g.jsxs)("label",{className:"wkit-site-feature-theme",htmlFor:"wkit-theme-switcher",children:[(0,g.jsxs)("div",{className:"wkit-feature-theme-content",children:[(0,g.jsx)("span",{className:"wkit-feature-theme-title",children:(0,a.__)("Nexter Theme","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-feature-theme-tag",children:(0,a.__)("Recommended","wdesignkit")})]}),(0,g.jsxs)("label",{className:"wkit-plugin-card-switcher "+("active"==p?"wkit-default-active":""),children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-theme-switcher",checked:1==p||"active"==p,disabled:"active"==p,onChange:e=>{m(e.target.checked)}}),(0,g.jsx)("span",{className:"wkit-card-switcher-inner"})]})]}),(0,g.jsxs)("div",{className:"wkit-site-feature-note",onClick:e=>{e.target.closest(".wkit-note-backup-link")||c(!d)},children:[(0,g.jsxs)("div",{className:"wkit-notice-container",children:[(0,g.jsx)("span",{className:"wkit-feature-note-txt",children:(0,a.__)("Note: This setup installs the required plugins and theme. It may replace your current settings, so we recommend ","wdesignkit")}),(0,g.jsx)("a",{href:wdkitData.WDKIT_DOC_URL+"backup-your-wordpress-site/",target:"_blank",rel:"noopener noreferrer",className:"wkit-note-backup-link",children:(0,a.__)("making a backup first.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-feature-note-ckbox",children:[(0,g.jsx)("input",{className:"wkit-note-ckbox-inp",id:"wkit-plugin-confirmation-id",type:"checkbox",checked:d,onChange:e=>{c(e.target.checked)}}),(0,g.jsx)("span",{className:"wkit-note-ckbox-txt",children:(0,a.__)("I’ve read this and want to continue.","wdesignkit")})]})]})]}),(0,g.jsxs)("div",{className:"wkit-site-feature-footer",children:[(0,g.jsx)("button",{className:"wkit-site-feature-back wkit-outer-btn-class",onClick:()=>{t.setcurrent_page("temp_preview")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-site-feature-next wkit-btn-class",disabled:!d,onClick:()=>{(()=>{let e=Object.assign({},t?.site_obj,{plugin_setting:l,theme_setting:p});t.setcurrent_page("select_method"),t.setsite_obj(e)})()},children:(0,a.__)("Next","wdesignkit")})]})]})})})})),{Fragment:Sn}=wp.element,Dn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(si(t))})))((t=>{let i=ue(),n=[{name:"Roboto",url:"Roboto"},{name:"Open Sans",url:"Open+Sans"},{name:"Lato",url:"Lato"},{name:"Montserrat",url:"Montserrat"},{name:"Poppins",url:"Poppins"},{name:"Raleway",url:"Raleway"},{name:"Playfair Display",url:"Playfair+Display"},{name:"Source Sans Pro",url:"Source+Sans+Pro"},{name:"Noto Sans",url:"Noto+Sans"},{name:"Merriweather",url:"Merriweather"},{name:"Oswald",url:"Oswald"},{name:"Ubuntu",url:"Ubuntu"},{name:"PT Sans",url:"PT+Sans"},{name:"Nunito",url:"Nunito"},{name:"Inter",url:"Inter"},{name:"Arial",url:null},{name:"Helvetica",url:null},{name:"Times New Roman",url:null},{name:"Georgia",url:null},{name:"Tahoma",url:null},{name:"Verdana",url:null},{name:"Trebuchet MS",url:null},{name:"Courier New",url:null},{name:"Lucida Sans",url:null},{name:"Impact",url:null},{name:"Comic Sans MS",url:null},{name:"serif",url:null},{name:"sans-serif",url:null},{name:"monospace",url:null}];const r=[{name:(0,a.__)("facebook","wdesignkit"),label:(0,a.__)("Facebook","wdesignkit"),icon:(0,g.jsx)("i",{className:"wdkit-i-facebook-line"})},{name:(0,a.__)("twitter","wdesignkit"),label:(0,a.__)("Twitter","wdesignkit"),icon:(0,g.jsx)("i",{className:"wdkit-i-x-line"})},{name:(0,a.__)("instagram","wdesignkit"),label:(0,a.__)("Instagram","wdesignkit"),icon:(0,g.jsx)("i",{className:"wdkit-i-instagram-line"})},{name:(0,a.__)("linkedin","wdesignkit"),label:(0,a.__)("LinkedIn","wdesignkit"),icon:(0,g.jsx)("i",{className:"wdkit-i-linkedin-line"})},{name:(0,a.__)("youtube","wdesignkit"),label:(0,a.__)("YouTube","wdesignkit"),icon:(0,g.jsx)("i",{className:"wdkit-i-youtube-line"})}],l={1004:{name:"elementor-pro",link:"https://elementor.com/pricing-plugin/",lable:"Elementor Pro",desc:"This Template uses Pro widgets from Elementor Pro. Upgrade to Pro to unlock and import the full design."},1006:{name:"theplus_elementor_addon",link:"https://theplusaddons.com/pricing/",lable:"The Plus Addons for Elementor Pro",desc:"This Template uses Pro widgets from The Plus Addons for Elementor Pro. Upgrade to Pro to unlock and import the full design."},1008:{name:"the-plus-addons-for-block-editor-pro",link:"https://nexterwp.com/pricing/",lable:"Nexter Blocks Pro",desc:"This Template uses Pro Blocks from Nexter Blocks Pro. Upgrade to Pro to unlock and import the full design."}},[o,d]=(0,e.useState)({r:.8,g:.2,b:.2}),c=(0,e.useRef)(),[p,m]=((0,e.useRef)(),(0,e.useState)([])),[u,h]=(0,e.useState)([]),[w,_]=(0,e.useState)(""),[f,k]=(0,e.useState)(""),[x,v]=(0,e.useState)(""),[y,j]=(0,e.useState)(""),[N,$]=(0,e.useState)(""),[C,S]=(0,e.useState)(""),[D,E]=(0,e.useState)(!1),[P,A]=(0,e.useState)(!0),[T,L]=(0,e.useState)(!1),[M,F]=(0,e.useState)(),[I,B]=(0,e.useState)([]),[O,R]=(0,e.useState)(!1),[V,W]=(0,e.useState)(""),[q,G]=(0,e.useState)(!1),[z,H]=(0,e.useState)(!0),[U,J]=(0,e.useState)(!1),[K,Z]=(0,e.useState)([]),[Y,X]=(0,e.useState)("desktop"),[Q,ee]=(0,e.useState)(),[te,ae]=(0,e.useState)("site_info"),[ie,se]=(0,e.useState)(!1),[ne,re]=(0,e.useState)(),[le,oe]=(0,e.useState)(),[de,ce]=(0,e.useState)();(0,e.useEffect)((()=>{if(t?.site_obj?.font_family&&B(t?.site_obj?.font_family),t?.site_obj?.site_info?.site_name&&(_(t.site_obj.site_info.site_name),ae(t?.site_obj?.kit_global?.typo?.length>0||t?.site_obj?.kit_global?.color?.length>0?"global_data":"site_info")),t?.site_obj?.site_info?.phone&&$(t.site_obj.site_info.phone),t?.site_obj?.site_info?.email&&j(t.site_obj.site_info.email),t?.site_obj?.site_info?.tagline&&k(t.site_obj.site_info.tagline),t?.site_obj?.site_info?.address&&v(t.site_obj.site_info.address),t?.site_obj?.site_info?.logo&&S(t?.site_obj.site_info.logo),t?.site_obj?.site_info?.social_links){let e=t?.site_obj?.site_info?.social_links,a=[];Object.entries(e).map((([e,t])=>{let i=r.findIndex((t=>t.name==e));if(i>-1){let e=Object.assign({},r[i],{value:t});a.push(e)}})),Z(a)}t?.site_obj?.kit_global&&F(t?.site_obj?.kit_global),pe(t?.kit_template)}),[]),(0,e.useEffect)((()=>{t?.kit_template?.length>0&&t.global_data&&(t?.site_obj?.kit_global||F(t.global_data),ee({title:t.kit_template[0]?.title,url:t.kit_template[0]?.post_url}))}),[p]),(0,e.useEffect)((()=>{if("global_data"==te){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",t.kit_builder),s().post(ajaxurl,e).then((async e=>{e?.data?.success&&e?.data?.data&&ce(e.data.data)}))}}),[te]),(0,e.useEffect)((()=>{me()}),[M,I]);const pe=async e=>{let a=[],i=[];if(e?.length>0&&e.map((e=>{e?.plugins_id?.length>0&&e.plugins_id.map((e=>{if(-1==a.findIndex((t=>t.p_id==e))){let s=t.wdkit_meta.plugin.findIndex((t=>t.p_id==e));s>-1&&("1"==t.wdkit_meta.plugin[s].freepro&&i.push(t.wdkit_meta.plugin[s]),a.push(t.wdkit_meta.plugin[s]))}}))})),t?.kit_data.plugins_id.length>0&&t.kit_data.plugins_id.map((e=>{if(-1==a.findIndex((t=>t.p_id==e))){let s=t.wdkit_meta.plugin.findIndex((t=>t.p_id==e));s>-1&&("1"==t.wdkit_meta.plugin[s].freepro&&i.push(t.wdkit_meta.plugin[s]),a.push(t.wdkit_meta.plugin[s]))}})),i?.length>0){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_plugins_depends"),e.append("plugins",JSON.stringify(i)),e.append("editor",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((async e=>await e.data));if(t?.success){let e=(t?.data?.plugins?t?.data?.plugins:[]).filter((e=>"active"!=e.status));h(e)}}A(!1)},me=()=>{let e="",a=[];if("elementor"==t.kit_builder)var i="https://etemplates.wdesignkit.com/";else"gutenberg"==t.kit_builder&&(i="https://gtemplates.wdesignkit.com/");if(M?.color?.length>0||M?.typo?.length>0){if(e+="body {",M.color.forEach(((a,i)=>{0==i&&be(a.new_color),"elementor"==t.kit_builder?e+=`--e-global-color-${a._id}: ${a.new_color} !important;`:"gutenberg"==t.kit_builder&&(e+=`--tpgb-C${a.id+1}: ${a.new_color} !important;`)})),I.forEach((i=>{"elementor"==t.kit_builder&&M?.typo?.length>0?M.typo.map((t=>{let i=I.findIndex((e=>e.original==t?.typography_font_family));if(I[i]?.url&&a.push(I[i].url),i>-1){let a=I[i].replace;e+=`--e-global-typography-${t._id}-font-family: ${a} !important;`}})):"gutenberg"==t.kit_builder&&M.typo.map((t=>{let i=t.value?.fontFamily?.family?t.value?.fontFamily?.family:"",s=I.findIndex((e=>e.original==i));if(I[s]?.url&&a.push(I[s].url),s>-1){let a=I[s].replace;e+=`--tpgb-T${t.id+1}-font-family: ${a} !important;`}}))})),e+="}",C?.dark&&(e+=".wdkitai_meta_site_logo_brand{filter: url(#wdkit_logo_color_filter);}"),e){c?.current?.contentWindow.postMessage({type:"inject-css",css:e,font_family:a},i);const t=e=>{"done"===e.data?.status&&(E(!1),clearInterval(r),window.removeEventListener("message",t))};window.addEventListener("message",t);let s=1;const n=7,r=setInterval((()=>{if(s>=n)return clearInterval(r),void window.removeEventListener("message",t);c?.current?.contentWindow.postMessage({type:"inject-css",css:e},i),s++}),500)}}else E(!1)},he=async(e=C)=>{let a={};K?.length>0&&await K.map((e=>{e.value&&Object.assign(a,{[e.name]:e.value})}));let i=Object.assign({},t?.site_obj,{site_info:{site_name:w,tagline:f,address:x,email:y,phone:N,logo:e,social_links:a},font_family:I,kit_global:M,site_global:de});t.setsite_obj(i),t.setcurrent_page("temp_feature")},ge=async e=>{if("next"==e){if(se(!0),"site_info"==te){if(!Gs(y))return t.wdkit_set_notification({title:"Email id Not Valid",desc:""}),document.querySelector(".wkit-site-email-inp").style.borderColor="red",se(!1),se(!1),!1;let e=await fe("normal");((e=C)=>{if("elementor"==t.kit_builder)var a="https://etemplates.wdesignkit.com/";else"gutenberg"==t.kit_builder&&(a="https://gtemplates.wdesignkit.com/");if(e){c?.current?.contentWindow.postMessage({type:"change-logo",logo_obj:e},a);const t=e=>{"done"===e.data?.status&&(E(!1),clearInterval(n),window.removeEventListener("message",t))};window.addEventListener("message",t);let i=1;const s=7,n=setInterval((()=>{if(i>=s)return clearInterval(n),void window.removeEventListener("message",t);i++}),500)}})(e),M?.typo?.length>0||M?.color?.length>0?ae("global_data"):he(e)}else if("global_data"==te){let e=await fe("brand");he(e)}se(!1)}else"back"==e&&("site_info"==te?(document.body.classList.contains("folded")&&document.body.classList.remove("folded"),i(t?.back_routing?t?.back_routing:"/browse")):"global_data"==te&&ae("site_info"))},we=(e,t)=>{let a=I?.length>0?[...I]:[];a[e].replace=t.name,a[e].url=t.url,B(a)},_e=(e,t)=>{var i=t?.replace?t.replace:"";if(le==e)return(0,g.jsxs)("div",{className:"wkit-select-global-data "+(e%2?"wkit-global-right-popup":"wkit-global-left-popup"),children:[(0,g.jsx)("span",{className:"wkit-global-type-heading",children:(0,a.__)("Template Font","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-font-family-drp",children:[(0,g.jsxs)("div",{className:"wkit-fontfamily-drp-head",onClick:()=>{R(!O)},children:[(0,g.jsx)("span",{style:{fontFamily:i},children:i}),(0,g.jsx)("svg",{className:O?"wkit-rotate":"",xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",fill:"none",children:(0,g.jsx)("path",{d:"M1 1L5 5L9 1",stroke:"#09090B",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]}),O&&(0,g.jsxs)("div",{className:"wkit-fontfamily-drp-body",children:[(0,g.jsxs)("div",{className:"wkit-fontfamily-search",children:[(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 12 12",fill:"none",children:[(0,g.jsx)("path",{d:"M8.75195 8.75012L11.002 11.0001",stroke:"#808080",strokeWidth:"0.75",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M10.002 5.5C10.002 3.01472 7.98723 1 5.50195 1C3.01667 1 1.00195 3.01472 1.00195 5.5C1.00195 7.98528 3.01667 10 5.50195 10C7.98723 10 10.002 7.98528 10.002 5.5Z",stroke:"#808080",strokeWidth:"0.75",strokeLinejoin:"round"})]}),(0,g.jsx)("input",{type:"text",className:"wkit-fontfamily-search-inp",placeholder:"Search Font",onChange:e=>{W(e.target.value)}})]}),(0,g.jsx)("div",{className:"wkit-global-data-loop",children:n?.length>0&&n.filter((e=>{if(e.name.toLocaleLowerCase().includes(V.toLocaleLowerCase()))return e.name})).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-global-data-card wkit-typo-card",onClick:()=>{we(le,e)},children:(0,g.jsx)("span",{style:{fontFamily:e.name},children:e.name})},t)))})]})]})]})},fe=async(e="normal",t=C?.default)=>{if(!C?.default)return;let a={},i=M?.color?.[0]?.new_color?M.color[0].new_color:"#000";if("brand"==e)var n={brand:i};else n={dark:"#000",light:"#ffffff"};if(await Object.entries(n).map((([e,t])=>{let i=t.replace(/^#/,"");const s=parseInt(i,16);let n=[s>>16&255,s>>8&255,255&s];Object.assign(a,{[e]:n})})),a){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","generate_site_logo"),e.append("image_url",t),e.append("colors",JSON.stringify(a));let i=await s().post(ajaxurl,e).then((e=>e.data));if(i?.success&&i?.data){let e=i?.data?i.data:[],t=Object.assign({},C);return await Object.entries(e).map((([e,a])=>{Object.assign(t,{[e]:a})})),S(t),t}return C}},ke=e=>{if("color"==e){if(M?.color.length>0){M.color.map((e=>{"elementor"==t.kit_builder?e.new_color=e.color:"gutenberg"==t.kit_builder&&(e.new_color=e.value)}));let e=Object.assign({},M,{color:M.color});F(e)}}else"typo"==e&&I.length>0&&(I.map((e=>{e.replace=e.original})),B([...I]))},be=e=>{3===(e=e.replace("#","")).length&&(e=e.split("").map((e=>e+e)).join(""));const a=parseInt(e,16),i=(a>>8&255)/255,s=(255&a)/255;let n={r:+((a>>16&255)/255).toFixed(2),g:+i.toFixed(2),b:+s.toFixed(2)};d(n),(e=>{if("elementor"==t.kit_builder)var a="https://etemplates.wdesignkit.com/";else"gutenberg"==t.kit_builder&&(a="https://gtemplates.wdesignkit.com/");if(e){c?.current?.contentWindow.postMessage({type:"change-logo-color",rgb_color:e},a);const t=e=>{"done"===e.data?.status&&(E(!1),clearInterval(n),window.removeEventListener("message",t))};window.addEventListener("message",t);let i=1;const s=7,n=setInterval((()=>{if(i>=s)return clearInterval(n),void window.removeEventListener("message",t);c?.current?.contentWindow.postMessage({type:"change-logo-color",rgb_color:e},a),i++}),500)}})(n)};return(0,g.jsxs)("div",{className:"wkit-ai-import-main",onClick:e=>{var t;t=e,q&&!t.target.closest(".wkit-page-drp")&&G(!1),ne&&!t.target.closest(".wkit-global-color-card")&&re(""),null==le||t.target.closest(".wkit-select-global-data")||oe(),U&&!t.target.closest(".wkit-socialink-drp")&&J(!1)},children:[(()=>{const e=()=>(0,g.jsxs)("div",{className:"wkit-page-drp",children:[(0,g.jsxs)("div",{className:"wkit-page-drp-header",onClick:()=>{G(!q)},children:[(0,g.jsx)("span",{children:Q?.title}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),q&&(0,g.jsx)("div",{className:"wkit-page-drp-body",children:t?.kit_template.length>0&&t.kit_template.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-page-drp-opt",onClick:()=>{ee({title:e?.title,url:e?.post_url}),E(!0),G(!1)},children:e?.title},t)))})]});return(0,g.jsxs)("div",{className:"wkit-temp-preview-header",children:[(0,g.jsx)(li,{}),(0,g.jsxs)("div",{className:"wkit-drp-section",children:[(0,g.jsx)(e,{}),(0,g.jsx)("div",{className:"wkit-temp-list-drp"}),(0,g.jsxs)("div",{className:"wkit-temp-responsive",children:[(0,g.jsx)("div",{className:"wkit-responsive-icon "+("desktop"==Y?"wkit-responsive-active":""),onClick:()=>{X("desktop")},children:(0,g.jsx)("i",{className:"wdkit-i-computer"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("tablet"==Y?"wkit-responsive-active":""),onClick:()=>{X("tablet")},children:(0,g.jsx)("i",{className:"wdkit-i-tablet"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("mobile"==Y?"wkit-responsive-active":""),onClick:()=>{X("mobile")},children:(0,g.jsx)("i",{className:"wdkit-i-smart-phone"})})]})]})]})})(),(0,g.jsxs)("div",{className:"wkit-ai-import-preview",children:[(0,g.jsxs)("div",{className:"wkit-ai-import-preview-editor "+(P?"wkit-skeleton":""),children:[(0,g.jsxs)("div",{className:"wkit-preview-editor-header",children:[(0,g.jsx)("span",{className:"wkit-editor-temp-title",children:(0,a.__)("Selected Template","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-editor-temp-subtitle",children:Q?.title})]}),(0,g.jsxs)("div",{className:"wkit-preview-editor-body",style:u?.length>0?{height:"calc(100vh - 465px)"}:{},children:["site_info"==te&&(0,g.jsxs)("div",{className:"wkit-temp-basic-info",children:[(0,g.jsxs)("div",{className:"wkit-temp-site-name",children:[(0,g.jsx)("label",{className:"wkit-site-name-label-main",children:(0,a.__)("Set Up Your Site Content","wdesignkit")}),(0,g.jsx)("label",{className:"wkit-site-name-sublabel-main",children:(0,a.__)("We’ll use these details to personalize your imported site.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-name",children:[(0,g.jsx)("label",{className:"wkit-site-name-label",children:(0,a.__)("Site Name","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-name-inp",type:"text",value:w,onChange:e=>{_(e.target.value)},placeholder:(0,a.__)("POSIMYTH Innovations","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-tagline",children:[(0,g.jsx)("label",{className:"wkit-site-tagline-label",children:(0,a.__)("Site Tagline","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-tagline-inp",type:"text",value:f,onChange:e=>{k(e.target.value)},placeholder:(0,a.__)("Make Web Easier","wdesignkit")})]})]}),"global_data"==te&&(0,g.jsxs)("div",{className:"wkit-temp-global-data",children:[(0,g.jsx)("span",{className:"wkit-edit-temp-header",children:(0,a.__)("Select Global Fonts & Colours","wdesignkit")}),I?.length>0&&(0,g.jsxs)("div",{className:"wkit-temp-global-typography-edit",children:[(0,g.jsxs)("div",{className:"wkit-global-typo-head",children:[(0,g.jsx)("span",{className:"wkit-global-typography-header",children:(0,a.__)("Font Style","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-global-data-reset",onClick:()=>{ke("typo")},children:(0,g.jsx)("i",{className:"wdkit-i-refresh"})})]}),(0,g.jsx)("div",{className:"wkit-global-typography-body",children:I.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-global-typo-btn",onClick:()=>{oe(t)},children:[(0,g.jsx)("span",{style:{fontFamily:e.replace},children:(0,a.__)("Ag","wdesignkit")}),_e(t,e)]},t)))})]}),M?.color?.length>0&&(0,g.jsxs)("div",{className:"wkit-temp-global-color-edit",children:[(0,g.jsxs)("div",{className:"wkit-global-color-head",children:[(0,g.jsx)("span",{className:"wkit-global-color-header",children:(0,a.__)("Global Color","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-global-data-reset",onClick:()=>{ke("color")},children:(0,g.jsx)("i",{className:"wdkit-i-refresh"})})]}),(0,g.jsx)("div",{className:"wkit-global-color-body",children:M.color.map(((e,a)=>{if("elementor"==t.kit_builder)var i=e?._id,s=e.new_color,n=ne?._id;else"gutenberg"==t.kit_builder&&(i=e?.id,s=e?.new_color,n=ne?.id);return(0,g.jsxs)("label",{className:"wkit-global-color-card",htmlFor:"wkit-site-color-select-"+a,children:[(0,g.jsxs)("div",{className:"wkit-global-color-btn",children:[(0,g.jsx)("input",{type:"color",id:"wkit-site-color-select-"+a,value:s,onChange:e=>{((e,t)=>{let a=M.color?.length>0?[...M.color]:[];a[e].new_color=t;let i=Object.assign({},M,{color:a});F(i)})(a,e.target.value)}}),n==i&&(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"12",viewBox:"0 0 14 10",fill:"none",children:(0,g.jsx)("path",{d:"M12.3334 1L5.00008 8.33333L1.66675 5",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),(0,g.jsx)("span",{children:s})]},a)}))})]})]})]}),(0,g.jsxs)("div",{className:"wkit-preview-editor-footer",children:[(()=>{if(u?.length>0)return(0,g.jsxs)("div",{className:"wkit-pro-plugin-notice",children:[(0,g.jsxs)("div",{className:"wkit-pro-notice-header",children:[(0,g.jsx)("span",{className:"wkit-pro-notice-header-txt",children:(0,a.__)("Plugin Required","wdesignkit")}),T?(0,g.jsx)("i",{className:"wdkit-i-refresh wkit-plugin-recheck",style:{animation:"spin 1s linear infinite"}}):(0,g.jsx)("i",{className:"wdkit-i-refresh wkit-plugin-recheck",onClick:()=>{(async()=>{L(!0);let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_plugins_depends"),e.append("plugins",JSON.stringify(u)),e.append("editor",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((async e=>await e.data));if(t?.success){let e=(t?.data?.plugins?t?.data?.plugins:[]).filter((e=>"active"!=e.status));h(e)}L(!1)})()}})]}),(0,g.jsx)("div",{className:"wkit-pro-notice-body",children:u?.length?u.map(((e,t)=>{let i=l?.[e.p_id]?l[e.p_id]:"";return(0,g.jsxs)("div",{className:"wkit-pro-notice-card",children:[(0,g.jsxs)("div",{className:"wkit-pro-notice-card-top",children:[(0,g.jsx)("span",{className:"wkit-pro-plugin-notice-title",children:i.lable}),(0,g.jsxs)("div",{className:"wkit-pro-notice-tooltip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wkit-pro-notice-tooltip-txt",children:i.desc})]})]}),(0,g.jsxs)("a",{className:"wkit-pro-plugin-notice-btn wkit-btn-class",href:i.link,target:"_blank",rel:"noopener noreferrer",children:[(0,g.jsx)("span",{className:"wkit-notice-btn-txt",children:(0,a.__)("Get Pro","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-link-square wkit-pro-link-icon"})]})]},t)})):(0,g.jsxs)("div",{className:"wkit-pro-notice-card",children:[(0,g.jsx)("span",{className:"wkit-pro-plugin-notice-title",children:l?.[u[0].p_id].lable}),(0,g.jsx)("span",{className:"wkit-pro-plugin-notice-subtitle",children:l?.[u[0].p_id].desc}),(0,g.jsxs)("a",{className:"wkit-pro-plugin-notice-btn wkit-btn-class",href:l?.[u[0].p_id].link,target:"_blank",rel:"noopener noreferrer",children:[(0,g.jsx)("span",{className:"wkit-notice-btn-txt",children:(0,a.__)("Get Pro","wdesignkit")}),(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 11 11",fill:"none",children:[(0,g.jsx)("path",{d:"M5.05012 1C3.22528 1.00329 2.26971 1.04809 1.65903 1.65877C1 2.3178 1 3.37849 1 5.49987C1 7.62125 0.999999 8.68194 1.65903 9.34097C2.31806 10 3.37875 10 5.50013 10C7.62151 10 8.6822 10 9.34123 9.34097C9.95191 8.73029 9.99671 7.77472 10 5.94988",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M10.1233 1.6049C10.3193 1.41039 10.3205 1.0938 10.126 0.897799C9.93146 0.701793 9.61488 0.700584 9.41888 0.8951L10.1233 1.6049ZM6.6478 3.6451C6.45179 3.83961 6.45058 4.1562 6.6451 4.3522C6.83961 4.54821 7.1562 4.54942 7.3522 4.3549L6.6478 3.6451ZM9.51425 1.11353L9.42705 1.60587L9.42705 1.60587L9.51425 1.11353ZM7.49996 0.5C7.22381 0.500024 6.99998 0.723901 7 1.00004C7.00002 1.27619 7.2239 1.50002 7.50004 1.5L7.49996 0.5ZM9.5 3.5C9.5 3.77614 9.72386 4 10 4C10.2761 4 10.5 3.77614 10.5 3.5H9.5ZM9.88647 1.48587L10.3788 1.39877L10.3788 1.39877L9.88647 1.48587ZM9.77108 1.25L9.41888 0.8951L6.6478 3.6451L7 4L7.3522 4.3549L10.1233 1.6049L9.77108 1.25ZM9.51425 1.11353L9.60144 0.621192C9.24114 0.557384 8.70443 0.528532 8.2832 0.514427C8.06721 0.507194 7.87201 0.503594 7.73084 0.501798C7.66018 0.500899 7.60288 0.500449 7.56305 0.500225C7.54313 0.500112 7.52757 0.500056 7.51689 0.500028C7.51154 0.500014 7.50742 0.500007 7.50458 0.500004C7.50315 0.500002 7.50205 0.500001 7.50128 0.5C7.50089 0.5 7.50059 0.5 7.50037 0.5C7.50026 0.5 7.50017 0.5 7.5001 0.5C7.50007 0.5 7.50003 0.5 7.50001 0.5C7.49998 0.5 7.49996 0.5 7.5 1C7.50004 1.5 7.50003 1.5 7.50002 1.5C7.50002 1.5 7.50002 1.5 7.50003 1.5C7.50004 1.5 7.50008 1.5 7.50013 1.5C7.50024 1.5 7.50044 1.5 7.50071 1.5C7.50126 1.5 7.50214 1.5 7.50334 1.5C7.50573 1.50001 7.50939 1.50001 7.51425 1.50002C7.52399 1.50005 7.53854 1.5001 7.55741 1.50021C7.59515 1.50042 7.65008 1.50085 7.71812 1.50172C7.85435 1.50345 8.04239 1.50692 8.24974 1.51387C8.6752 1.52811 9.14562 1.55603 9.42705 1.60587L9.51425 1.11353ZM10 3.5C10.5 3.5 10.5 3.49997 10.5 3.49994C10.5 3.49993 10.5 3.49989 10.5 3.49986C10.5 3.49979 10.5 3.4997 10.5 3.49959C10.5 3.49937 10.5 3.49906 10.5 3.49868C10.5 3.4979 10.5 3.4968 10.5 3.49538C10.5 3.49254 10.5 3.48841 10.5 3.48307C10.4999 3.47239 10.4999 3.45683 10.4998 3.43692C10.4995 3.39709 10.4991 3.33979 10.4982 3.26914C10.4964 3.12798 10.4928 2.9328 10.4855 2.71683C10.4714 2.29563 10.4426 1.759 10.3788 1.39877L9.88647 1.48587L9.39412 1.57298C9.44392 1.85446 9.47183 2.32489 9.48609 2.75033C9.49304 2.95767 9.49652 3.1457 9.49827 3.28193C9.49914 3.34997 9.49957 3.4049 9.49979 3.44263C9.49989 3.4615 9.49995 3.47605 9.49997 3.48579C9.49999 3.49065 9.49999 3.49432 9.5 3.49671C9.5 3.4979 9.5 3.49878 9.5 3.49933C9.5 3.49961 9.5 3.4998 9.5 3.49991C9.5 3.49997 9.5 3.5 9.5 3.50002C9.5 3.50003 9.5 3.50002 9.5 3.50002C9.5 3.50001 9.5 3.5 10 3.5ZM9.51425 1.11353L9.42705 1.60587C9.42825 1.60608 9.42604 1.60583 9.42166 1.60358C9.41726 1.60132 9.4121 1.59777 9.40714 1.5928C9.40217 1.58784 9.39863 1.58268 9.39638 1.5783C9.39414 1.57394 9.3939 1.57175 9.39412 1.57298L9.88647 1.48587L10.3788 1.39877C10.3076 0.996416 10.0039 0.692473 9.60144 0.621192L9.51425 1.11353Z",fill:"white"})]})]})]})})]})})(),(0,g.jsxs)("div",{className:"wkit-editor-footer-btns",children:[(0,g.jsx)("button",{className:"wkit-back-btn wkit-outer-btn-class",onClick:()=>{ge("back")},children:(0,a.__)("Back","wdesignkit")}),!(u?.length>0)&&(0,g.jsx)(g.Fragment,{children:ie?(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",disabled:!w.trim(),onClick:()=>{ge("next")},children:(0,a.__)("Next","wdesignkit")})})]})]})]}),(0,g.jsx)("div",{className:"wkit-ai-import-fram",children:(0,g.jsxs)("div",{className:"wkit-temp-preview-con",style:{width:"tablet"==Y?"768px":"mobile"==Y?"360px":""},children:[(0,g.jsxs)("div",{className:"wkit-preview-content-notice "+(Q?.url?"":"wkit-private-temp-notice"),children:["mobile"!==Y&&(0,g.jsxs)("div",{className:"wkit-content-notice-dots",children:[(0,g.jsx)("span",{className:"wkit-dummy-dots"}),(0,g.jsx)("span",{className:"wkit-dummy-dots"}),(0,g.jsx)("span",{className:"wkit-dummy-dots"})]}),Q?.url?(0,g.jsx)("span",{className:"wkit-content-notice-txt",children:(0,a.__)("This is just a sneak peek. The actual website and its content will be created in the next step.","wdesignkit")}):(0,g.jsxs)("div",{className:"wkit-temp-private-notice",children:[(0,g.jsx)("i",{className:"wdkit-i-alert",style:{fontSize:"20px"}}),(0,g.jsx)("span",{className:"wkit-content-notice-txt",children:(0,a.__)("Preview is not available Preview is not available Preview is not available","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-temp-preview-content",children:[(0,g.jsxs)("div",{className:"wkit-temp-preview-skeleton "+(D?"wkit-ifram-skeleton":""),children:[(0,g.jsxs)("div",{className:"wkit-preview-skeleton-header",children:[(0,g.jsx)("div",{className:"wkit-preview-skeleton-logo"}),(0,g.jsxs)("div",{className:"wkit-preview-skeleton-menu",children:[(0,g.jsx)("span",{className:"wkit-skeleton-menu-btn"}),(0,g.jsx)("span",{className:"wkit-skeleton-menu-btn"}),(0,g.jsx)("span",{className:"wkit-skeleton-menu-btn"}),(0,g.jsx)("span",{className:"wkit-skeleton-menu-btn"})]}),(0,g.jsx)("div",{className:"wkit-preview-skeleton-btn"})]}),(0,g.jsxs)("div",{className:"wkit-preview-skeleton-body",children:[(0,g.jsxs)("div",{className:"wkit-preview-skeleton-txt",children:[(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt1"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt2"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt3"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt1"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt1"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt2"}),(0,g.jsx)("span",{className:"wkit-preview-skeleton-txt2"})]}),(0,g.jsx)("div",{className:"wkit-skeleton-body-img"})]}),(0,g.jsxs)("div",{className:"wkit-preview-skeleton-footer",children:[(0,g.jsx)("div",{className:"wkit-preview-card-skeleton"}),(0,g.jsx)("div",{className:"wkit-preview-card-skeleton"}),(0,g.jsx)("div",{className:"wkit-preview-card-skeleton"})]})]}),Q?.url&&(0,g.jsx)("iframe",{className:"wkit-temp-preview-ifram",ref:c,onLoad:()=>me(),src:Q?.url})]})]})})]})]})})),En=e=>(0,g.jsx)("div",{className:"wkit-import-method-main",children:(0,g.jsxs)("div",{className:"wkit-import-method-container",children:[(0,g.jsxs)("div",{className:"wkit-import-method-header",children:[(0,g.jsx)("span",{className:"wkit-method-header-title",children:(0,a.__)("Content & Media Setup","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-method-header-subtitle",children:(0,a.__)("Choose how you want to import content with your template.","wdesignkit")})]}),(0,g.jsx)("div",{className:"wkit-import-method-body",children:(0,g.jsxs)("div",{className:"wkit-method-card-content",children:[(0,g.jsxs)("div",{className:"wkit-method-card "+("normal_import"==e?.import_type?"wkit-active-card":""),onClick:()=>{e.setimport_type("normal_import")},children:[(0,g.jsx)("i",{className:"wdkit-i-templates"}),(0,g.jsxs)("div",{className:"wkit-method-card-txt",children:[(0,g.jsx)("span",{className:"wkit-method-card-title",children:(0,a.__)("Import Demo Content","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-method-card-desc",children:(0,a.__)("Bring in the exact same text, images, and layout as shown in the demo template. It gives you a complete, ready to use design instantly, and you can easily swap the content with your own whenever you’re ready.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-method-card",children:[(0,g.jsxs)("div",{className:"wkit-disable-selection",children:[(0,g.jsx)("span",{className:"wkit-coming-soon-tag",children:(0,a.__)("Coming Soon","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-disable-opacity-div"})]}),(0,g.jsx)("i",{className:"wdkit-i-ai"}),(0,g.jsxs)("div",{className:"wkit-method-card-txt",children:[(0,g.jsx)("span",{className:"wkit-method-card-title",children:(0,a.__)("Smart AI Content","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-method-card-desc",children:(0,a.__)("Import templates with automatically generated text, images, and blog posts tailored to your niche. A smarter way to start with content that feels unique, branded, and closer to your real business needs.","wdesignkit")})]})]})]})}),(0,g.jsxs)("div",{className:"wkit-import-method-footer",children:[(0,g.jsx)("button",{className:"wkit-import-method-back wkit-outer-btn-class",onClick:()=>{e.setcurrent_page("temp_feature")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-import-method-next wkit-btn-class",onClick:()=>{(()=>{let t=Object.assign({},e.site_obj,{import_type:e?.import_type});e.setsite_obj(t),"normal_import"==e?.import_type?e.setcurrent_page("all_set"):e.setcurrent_page("content_media")})()},children:(0,a.__)("Next","wdesignkit")})]})]})}),Pn=t=>{const i=(0,e.useRef)(null),[n,r]=(0,e.useState)("form"),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)("english"),[m,u]=(0,e.useState)("all"),[h,w]=(0,e.useState)(20),[_,f]=(0,e.useState)("all"),[k,b]=(0,e.useState)(0),[x,v]=(0,e.useState)(""),[y,j]=(0,e.useState)(!1),[N,$]=(0,e.useState)([]),[C,S]=(0,e.useState)(0),[D,E]=(0,e.useState)([]),[P,A]=(0,e.useState)([]),[T,L]=(0,e.useState)([]),[M,F]=(0,e.useState)([]),[I,B]=(0,e.useState)(),[O,R]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[q,G]=(0,e.useState)(!0),[z,H]=(0,e.useState)(!1),[U,J]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=t?.site_obj?.site_info?.site_name?t.site_obj.site_info.site_name:"",a=t?.site_obj?.site_info?.tagline?t.site_obj.site_info.tagline:"";o(e+(a?" | "+a:""))}),[]);const K=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},Z=async(e="",t=h,i=x)=>{W(!0),f("all"),J(!1);const n=i||l;var r="all";if("landscape"==e?r="horizontal":"portrait"==e&&(r="vertical"),!n.trim())return void l.trim();const o=`https://pixabay.com/api/?key=47928599-89c71061e8c2a701cd8b002c1&q=${encodeURIComponent(n)}&image_type=photo&orientation=${r}&per_page=${t}`;await s().post(o).then((async e=>{if(e.data.totalHits>0){b(e.data.total);const t=e.data.hits.map((e=>({id:e.id,url:e.webformatURL,width:e.imageWidth,height:e.imageHeight,owner:(0,a.__)(`by ${e.user} via Pixabay`,"wdesignkit")})));L(t)}else L([]),b(0)})).catch((e=>{console.error("Error fetching images:",e)})),setTimeout((()=>{W(!1)}),1e3)},Y=e=>{let t=P.findIndex((t=>t.id==e.id));if(t>-1){let e=[...P];e.splice(t,1),A(e)}else{let t=[...P];t.push(e),A(t)}},X=async e=>{let t=p(),a=new FormData;if(a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","wkit_ai_desc_keyword"),a.append("site_type",l),a.append("site_desc",N[C]),a.append("api_type",e),a.append("token",t?.token),"keyword"==e){let e=await s().post(ajaxurl,a).then((e=>e.data));if(e?.response)var i=e?.response?JSON.parse(e.response):[];else i=[];F(i?.keywords),B(i?.category_id)}else if("description"==e&&!z){H(!0);let e=await s().post(ajaxurl,a).then((e=>e.data));if(e?.response?(i=e?.response?e.response:"",G(!1)):i="",q){let e=[...N];e[C]=i,$(e),H(!1)}else N.push(i),S(N.length-1),$(N),H(!1)}},Q=e=>{"prev"==e&&C>0?S(C-1):"next"==e&&C+1<N.length&&S(C+1)},ee=()=>(0,g.jsx)("div",{className:"wkit-masonry-img-grid wkit-skeleton",children:Array.from({length:15}).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-img-grid-item",children:(0,g.jsx)("div",{className:"wkit-widget-search-skeleton"})},t)))}),te=()=>(0,g.jsx)("i",{className:"wdkit-i-check"});return(0,g.jsxs)("div",{className:"wkit-get-site-info-main",onClick:e=>{var t;!(t=e).target.closest(".wkit-site-lang-drp")&&O&&R(!1),!t.target.closest(".wkit-img-orient-drp")&&y&&j(!1),!t.target.closest(".wkit-site-img-search-content")&&U&&J(!1)},children:["form"==n&&(0,g.jsxs)("div",{className:"wkit-get-site-info-content",children:[(0,g.jsxs)("div",{className:"wkit-get-site-info-header",children:[(0,g.jsx)("span",{className:"wkit-get-site-info-title",children:(0,a.__)("Tell Us About Your Website","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-get-site-info-subtitle",children:(0,a.__)("Share a few details so we can generate the right content for you.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-get-site-info-body",children:[(0,g.jsxs)("div",{className:"wkit-site-info-main",children:[(0,g.jsxs)("div",{className:"wkit-site-info-type",children:[(0,g.jsx)("span",{className:"wkit-site-info-label",children:(0,a.__)("About Website","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-info-inp",value:l,type:"text",onChange:e=>{o(e.target.value)},placeholder:(0,a.__)("E.g. Agency Website, NGO ...","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-site-info-lang",children:[(0,g.jsx)("span",{className:"wkit-site-info-label",children:(0,a.__)("Language","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-site-lang-drp "+(O?"wkit-lang-drp-act":""),onClick:()=>{R(!O)},children:[(0,g.jsxs)("div",{className:"wkit-site-lang-drp-head",children:[(0,g.jsx)("span",{className:"wkit-lang-drp-val",children:d}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-site-lang-drp-body",children:[{name:"arabic",label:"Arabic"},{name:"bengali",label:"Bengali"},{name:"burmese",label:"Burmese"},{name:"chinese",label:"Chinese"},{name:"dutch",label:"Dutch"},{name:"english",label:"English"},{name:"filipino",label:"Filipino"},{name:"french",label:"French"},{name:"german",label:"German"},{name:"greek",label:"Greek"},{name:"gujarati",label:"Gujarati"},{name:"hebrew",label:"Hebrew"},{name:"hindi",label:"Hindi"},{name:"indonesian",label:"Indonesian"},{name:"italian",label:"Italian"},{name:"japanese",label:"Japanese"},{name:"kannada",label:"Kannada"},{name:"korean",label:"Korean"},{name:"malay",label:"Malay"},{name:"marathi",label:"Marathi"},{name:"nepali",label:"Nepali"},{name:"persian",label:"Persian"},{name:"polish",label:"Polish"},{name:"portuguese",label:"Portuguese"},{name:"punjabi",label:"Punjabi"},{name:"romanian",label:"Romanian"},{name:"russian",label:"Russian"},{name:"spanish",label:"Spanish"},{name:"swedish",label:"Swedish"},{name:"tamil",label:"Tamil"},{name:"telugu",label:"Telugu"},{name:"thai",label:"Thai"},{name:"turkish",label:"Turkish"},{name:"urdu",label:"Urdu"},{name:"vietnamese",label:"Vietnamese"}].map(((e,t)=>(0,g.jsx)("span",{className:"wkit-site-lang-opt "+(e?.name==d?"wkit-selected-lang-opt":""),onClick:()=>{c(e.name)},children:e.label},t)))})]})]})]}),(0,g.jsxs)("div",{className:"wkit-site-info-desc",children:[(0,g.jsx)("span",{className:"wkit-site-info-label",children:(0,a.__)("Website Description","wdesignkit")}),(0,g.jsx)("textarea",{className:"wkit-site-desc-inp",value:N[C],onChange:e=>{(e=>{let t=[...N];t[C]=e,$(t)})(e.target.value)},rows:5,placeholder:(0,a.__)("Briefly describe your site, what it does, who it’s for, and the main pages you need (like Home, About, Services, Contact).","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-site-ai-desc-content",children:[N.length<5&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wkit-site-ai-description",onClick:()=>{X("description")},children:[(0,g.jsx)("i",{className:"wdkit-i-ai"}),z?(0,g.jsxs)("span",{className:"wkit-ai-desc-loading",children:[(0,g.jsx)("span",{children:(0,a.__)("AI is thinking","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-ai-desc-loader"}),(0,g.jsx)("span",{className:"wkit-ai-desc-loader"}),(0,g.jsx)("span",{className:"wkit-ai-desc-loader"})]}):(0,g.jsx)("span",{className:"wkit-ai-description-txt",children:(0,a.__)("Write using AI","wdesignkit")})]})}),!q&&N.length>1&&(0,g.jsxs)("div",{className:"wkit-ai-desc-count",children:[(0,g.jsx)("svg",{className:"wkit-desc-prev-btn",onClick:()=>{Q("prev")},xmlns:"http://www.w3.org/2000/svg",width:"6",height:"12",viewBox:"0 0 6 12",fill:"none",children:(0,g.jsx)("path",{d:"M5.24997 1.5C5.24997 1.5 0.75001 4.8142 0.75 6.00004C0.74999 7.18587 5.25 10.5 5.25 10.5",stroke:"#141B34",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,g.jsx)("span",{className:"wkit-desc-act-count",children:C+1}),(0,g.jsx)("span",{className:"wkit-desc-separator",children:"/"}),(0,g.jsx)("span",{className:"wkit-desc-total-count",children:N.length}),(0,g.jsx)("svg",{className:"wkit-desc-next-btn",onClick:()=>{Q("next")},xmlns:"http://www.w3.org/2000/svg",width:"6",height:"12",viewBox:"0 0 6 12",fill:"none",children:(0,g.jsx)("path",{d:"M0.750034 1.5C0.750034 1.5 5.24999 4.8142 5.25 6.00004C5.25001 7.18587 0.749999 10.5 0.749999 10.5",stroke:"#141B34",strokeWidth:"1.125",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})]})]}),(0,g.jsxs)("div",{className:"wkit-get-site-info-footer",children:[(0,g.jsx)("button",{className:"wkit-get-site-info-back wkit-outer-btn-class",onClick:()=>{t.setcurrent_page("select_method")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-get-site-info-next wkit-btn-class",disabled:!(l.trim()&&!z),onClick:()=>{(async()=>{v(l),r("image"),await Z(),await X("keyword")})()},children:(0,a.__)("Next","wdesignkit")})]})]}),"image"==n&&(0,g.jsxs)("div",{className:"wkit-get-site-img-content",children:[(0,g.jsxs)("div",{className:"wkit-get-site-img-header",children:[(0,g.jsx)("span",{className:"wkit-get-site-img-title",children:(0,a.__)("Choose Your Website Images","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-get-site-img-subtitle",children:(0,a.__)("Select images to use in your website design. You can pick from our library or upload your own.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-get-site-img-body",children:[(0,g.jsxs)("div",{className:"wkit-site-img-search-content",children:[(0,g.jsxs)("div",{className:"wkit-img-search-bar",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wkit-site-img-search-inp",onFocus:()=>{J(!0)},type:"text",value:x,onChange:e=>{v(e.target.value)},placeholder:(0,a.__)("Search","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-img-search-btn wkit-btn-class",onClick:()=>{Z(m)},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]}),U&&(0,g.jsxs)("div",{className:"wkit-keyword-suggestion",children:[(0,g.jsxs)("div",{className:"wkit-keyword-suggestion-head",children:[(0,g.jsx)("span",{className:"wkit-keyword-head-txt",children:(0,a.__)("Suggested Keywords","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-ai"})]}),(0,g.jsx)("div",{className:"wkit-keyword-suggestion-body",children:M.map((e=>{let t=e.replace(/\b\w/g,(e=>e.toUpperCase()));return(0,g.jsx)("span",{className:"wkit-keyword-card",onClick:()=>{v(t),Z(m,"",e),J(!1)},children:e})}))})]})]}),(0,g.jsxs)("div",{className:"wkit-site-img-body-top",children:[(0,g.jsxs)("div",{className:"wkit-site-img-tabbing",children:[(0,g.jsx)("span",{className:"wkit-site-img-tab "+("all"==_?"wkit-active-tab":""),onClick:()=>{f("all")},children:(0,a.__)("All","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-site-img-tab "+("upload_img"==_?"wkit-active-tab":""),onClick:e=>{f("upload_img")},children:(0,a.__)("Upload Your Images","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-site-img-tab "+("select_img"==_?"wkit-active-tab":""),onClick:()=>{f("select_img")},children:[(0,g.jsx)("span",{children:(0,a.__)("Selected Images ","wdesignkit")}),P?.length>0&&(0,g.jsx)("span",{className:"wkit-site-image-count",children:P.length})]})]}),(0,g.jsx)("div",{className:"wkit-site-img-manu",children:(0,g.jsxs)("div",{className:"wkit-img-orient-drp "+(y?"wkit-img-orient-act":""),onClick:()=>{j(!y)},children:[(0,g.jsxs)("div",{className:"wkit-img-orient-drp-head",children:[(0,g.jsx)("span",{className:"wkit-orient-drp-val",children:m}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsxs)("div",{className:"wkit-img-orient-drp-body",children:[(0,g.jsx)("span",{className:"wkit-img-orient-opt "+("all"==m?"wkit-selected-orient":""),onClick:()=>{u("all"),Z("all")},children:(0,a.__)("All","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-img-orient-opt "+("landscape"==m?"wkit-selected-orient":""),onClick:()=>{u("landscape"),Z("landscape")},children:(0,a.__)("Landscape","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-img-orient-opt "+("portrait"==m?"wkit-selected-orient":""),onClick:()=>{u("portrait"),Z("portrait")},children:(0,a.__)("Portrait","wdesignkit")})]})]})})]}),(0,g.jsxs)("div",{className:"wkit-site-img-body-bottom",children:["upload_img"==_&&(0,g.jsxs)("div",{onClick:()=>{i.current||(i.current=wp.media({title:(0,a.__)("Select Images","wdesignkit"),button:{text:(0,a.__)("Use these images","wdesignkit")},multiple:!0}),i.current.on("select",(()=>{const e=i.current.state().get("selection").map((e=>{const t=e.toJSON();return{id:K(),url:t?.url,width:t?.width,height:t?.height}}));E((t=>[...e,...t])),A((t=>[...e,...t]))}))),i.current.open()},className:"wkit-uplopad-site-img",children:[(0,g.jsx)("div",{className:"wkit-uplopad-img-icon",children:(0,g.jsx)("i",{className:"wdkit-i-drop-image"})}),(0,g.jsx)("span",{className:"wkit-uplopad-img-title",children:(0,a.__)("Add Your Images Here (Supported: PNG, JPG, JPEG | Limit: 20 MB)","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-uplopad-img-subtitle",children:(0,a.__)("PNG, JPG, JPEG","wdesignkit")})]}),"all"==_&&0==T?.length&&(0,g.jsxs)("div",{className:"wkit-no-img-found",children:[(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"34px"}}),(0,g.jsxs)("div",{className:"wkit-no-img-found-txt",children:[(0,g.jsx)("span",{className:"wkit-no-img-found-title",children:(0,a.__)("Oops! No Images Selected","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-no-img-found-subtitle",children:(0,a.__)("Looks like there are no images matching your search.You can try a different keyword or upload your own images.","wdesignkit")})]}),(0,g.jsx)("button",{className:"wkit-btn-class",onClick:()=>{f("upload_img")},children:(0,a.__)("Upload Your images","wdesignkit")})]}),"select_img"==_&&0==P?.length&&(0,g.jsxs)("div",{className:"wkit-no-img-found",children:[(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"34px"}}),(0,g.jsxs)("div",{className:"wkit-no-img-found-txt",children:[(0,g.jsx)("span",{className:"wkit-no-img-found-title",children:(0,a.__)("Oops! No Images Selected","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-no-img-found-subtitle",children:(0,a.__)("It seems you haven’t selected any image yet !","wdesignkit")})]})]}),V&&(0,g.jsx)(ee,{}),(0,g.jsxs)("div",{className:"wkit-masonry-img-grid",children:["upload_img"==_&&D.map(((e,t)=>{let a=P.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",onClick:()=>{Y(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(te,{})}),(0,g.jsx)("img",{src:e.url,width:e.width,height:e.height,draggable:"false"})]},t)})),"select_img"==_&&P.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-img-grid-item",onClick:()=>{Y(e)},children:[(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(te,{})}),(0,g.jsx)("img",{src:e.url,width:e.width,height:e.height,draggable:"false"}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},t))),"all"==_&&T.map(((e,t)=>{let a=P.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",onClick:()=>{Y(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(te,{})}),(0,g.jsx)("img",{src:e.url,width:e.width,height:e.height,draggable:"false"}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},t)}))]}),k>h&&"all"==_&&(0,g.jsx)("button",{className:"wkit-btn-class",onClick:()=>{window.scrollTo({top:0,left:0,behavior:"smooth"}),setTimeout((()=>{w(Number(h)+20),Z("",Number(h)+20)}),500)},children:(0,a.__)("Load More","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-get-site-img-footer",children:[(0,g.jsx)("button",{className:"wkit-get-site-img-back wkit-outer-btn-class",onClick:()=>{r("form")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-get-site-img-next wkit-btn-class",onClick:()=>{(()=>{let e=Object.assign({},t.site_obj,{images:P,site_category_id:I,site_description:N,site_type:l,site_lang:d});t.setsite_obj(e),t.setcurrent_page("all_set")})()},children:(0,a.__)("Next","wdesignkit")})]})]})]})},An=JSON.parse('{"nm":"UI/UX Design","ddd":0,"h":636,"w":864,"meta":{"g":"@lottiefiles/toolkit-js 0.33.2"},"layers":[{"ty":0,"nm":"Pre-comp 9","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[647.25,457.25,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[26.608,26.608,100],"t":0},{"s":[66.521,66.521,100],"t":20}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[257.96,256.827,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":0},{"s":[100],"t":20}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[701.5,407],[593,407],[593,507.5],[701.5,507.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_0","ind":1},{"ty":0,"nm":"Pre-comp 10","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[647.25,558.75,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[26.608,26.608,100],"t":10},{"s":[66.521,66.521,100],"t":30}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[257.96,324.345,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":10},{"s":[100],"t":30}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[701.5,508.5],[593,508.5],[593,609],[701.5,609]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_1","ind":2},{"ty":0,"nm":"Pre-comp 11","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[647.25,660.75,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[26.608,26.608,100],"t":20},{"s":[66.521,66.521,100],"t":40}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[257.96,392.196,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":20},{"s":[100],"t":40}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[701.5,610.5],[593,610.5],[593,711],[701.5,711]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_2","ind":3},{"ty":4,"nm":"Слой 49 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[74.109,74.105,0],"ix":1},"s":{"a":0,"k":[74.177,74.177,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[258.848,263.958,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.4,"y":0},"i":{"x":0.6,"y":1},"s":[0],"t":0},{"o":{"x":0.4,"y":0},"i":{"x":0.833,"y":1},"s":[10],"t":20},{"s":[7],"t":315}],"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":75,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-74.11,74.105],[74.109,74.105],[74.109,-74.105],[-74.11,-74.105]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[74.11,74.105],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":4},{"ty":4,"nm":"Слой 48 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[74.109,74.105,0],"ix":1},"s":{"a":0,"k":[74.177,74.177,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[258.848,331.809,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.4,"y":0},"i":{"x":0.6,"y":1},"s":[0],"t":10},{"o":{"x":0.4,"y":0},"i":{"x":0.833,"y":1},"s":[10],"t":30},{"s":[7],"t":315}],"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":75,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-74.109,74.105],[74.109,74.105],[74.109,-74.105],[-74.109,-74.105]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[74.109,74.105],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":5},{"ty":4,"nm":"Слой 61 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[74.109,74.105,0],"ix":1},"s":{"a":0,"k":[74.177,74.177,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[258.848,399.66,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.4,"y":0},"i":{"x":0.6,"y":1},"s":[0],"t":20},{"o":{"x":0.4,"y":0},"i":{"x":0.833,"y":1},"s":[10],"t":40},{"s":[7],"t":315}],"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":75,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-74.109,74.106],[74.11,74.106],[74.11,-74.105],[-74.109,-74.105]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[74.109,74.105],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":6},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":628,"op":901,"ip":685,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":685,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":702,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":864,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":881}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":685},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":702},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":864},{"s":[0],"t":881}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950.25,369.25],[762.75,369.25],[762.75,409.5],[950.25,409.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":7},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":417,"op":685,"ip":474,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":474,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":491,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":653,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":670}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":474},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":491},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":653},{"s":[0],"t":670}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950.25,369.25],[762.75,369.25],[762.75,409.5],[950.25,409.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":8},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":633,"op":901,"ip":685,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":690,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":707,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":869,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":886}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":690},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":707},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":869},{"s":[0],"t":886}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950,419.5],[760.25,419.5],[760.25,459.75],[950,459.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":9},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":422,"op":685,"ip":474,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":479,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":496,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":658,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":675}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":479},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":496},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":658},{"s":[0],"t":675}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950,419.5],[760.25,419.5],[760.25,459.75],[950,459.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":10},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":638,"op":901,"ip":685,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":695,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":712,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":874,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":891}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":695},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":712},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":874},{"s":[0],"t":891}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[952.5,474],[758.25,474],[758.25,515.5],[952.5,515.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":11},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":427,"op":685,"ip":474,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":484,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":501,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":663,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":680}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":484},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":501},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":663},{"s":[0],"t":680}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[952.5,474],[758.25,474],[758.25,515.5],[952.5,515.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":12},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":643,"op":901,"ip":685,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":700,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":717,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":879,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":896}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":700},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":717},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":879},{"s":[0],"t":896}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[951.25,524.25],[758.5,524.25],[758.5,562.75],[951.25,562.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":13},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":432,"op":685,"ip":474,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":489,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":506,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":668,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":685}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":489},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":506},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":668},{"s":[0],"t":685}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[951.25,524.25],[758.5,524.25],[758.5,562.75],[951.25,562.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":14},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":206,"op":474,"ip":263,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":263,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":280,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":442,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":459}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":263},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":280},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":442},{"s":[0],"t":459}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950.25,369.25],[762.75,369.25],[762.75,409.5],[950.25,409.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":15},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":211,"op":474,"ip":263,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":268,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":285,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":447,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":464}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":268},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":285},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":447},{"s":[0],"t":464}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950,419.5],[760.25,419.5],[760.25,459.75],[950,459.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":16},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":216,"op":474,"ip":263,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":273,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":290,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":452,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":469}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":273},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":290},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":452},{"s":[0],"t":469}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[952.5,474],[758.25,474],[758.25,515.5],[952.5,515.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":17},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":221,"op":474,"ip":263,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":278,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":295,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":457,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":474}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":278},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":295},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":457},{"s":[0],"t":474}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[951.25,524.25],[758.5,524.25],[758.5,562.75],[951.25,562.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":18},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":-5,"op":263,"ip":-5,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":52,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":69,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":231,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":248}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":52},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":69},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":231},{"s":[0],"t":248}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950.25,369.25],[762.75,369.25],[762.75,409.5],[950.25,409.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":19},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":0,"op":263,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":57,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":74,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":236,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":253}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":57},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":74},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":236},{"s":[0],"t":253}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[950,419.5],[760.25,419.5],[760.25,459.75],[950,459.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":20},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":5,"op":263,"ip":5,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":62,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":79,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":241,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":258}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":62},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":79},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":241},{"s":[0],"t":258}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[952.5,474],[758.25,474],[758.25,515.5],[952.5,515.5]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":21},{"ty":0,"nm":"Слой 60 Outlines Comp 1","sr":1,"st":10,"op":263,"ip":10,"hd":false,"ddd":0,"bm":0,"hasMask":true,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[466.003,320.52,0],"t":67,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[466.003,311.872,0],"t":84,"ti":[0,0,0],"to":[0,0,0]},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[466.003,311.872,0],"t":246,"ti":[0,1.441,0],"to":[0,-1.441,0]},{"s":[466.003,303.225,0],"t":263}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":67},{"o":{"x":0.167,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":84},{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[100],"t":246},{"s":[0],"t":263}],"ix":11}},"ef":[],"masksProperties":[{"nm":"Mask 1","inv":false,"mode":"a","x":{"a":0,"k":0,"ix":4},"o":{"a":0,"k":100,"ix":3},"pt":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[951.25,524.25],[758.5,524.25],[758.5,562.75],[951.25,562.75]]},"ix":1}}],"w":1920,"h":1080,"refId":"comp_3","ind":22},{"ty":4,"nm":"Слой 59 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[318.031,132.075,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[463.897,215.819,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":10,"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":100,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-318.031,68.031],[318.031,68.031],[318.031,-68.032],[-318.031,-68.032]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[318.031,68.032],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":23},{"ty":4,"nm":"Слой 59 Outlines 5","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[169.62,96.913,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0,0,100],"t":20},{"s":[99.781,99.781,100],"t":30}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[397.043,261.506,0],"t":30,"ti":[13.539,13.462,0],"to":[-13.539,-13.462,0]},{"s":[315.811,180.734,0],"t":60}],"ix":2},"r":{"a":0,"k":-90,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-5.088,-5.088],[-5.088,5.088],[5.088,5.088],[5.087,5.088],[5.088,5.088],[5.088,-5.088]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":2,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.087,4.088],[-4.088,4.088],[-4.088,-4.089],[4.087,-4.089]]},"ix":2}},{"ty":"mm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[169.62,96.913],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[5.088,5.088],[-5.088,5.088],[-5.088,-5.088],[5.088,-5.088]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9961,0.9961,0.9961],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[169.62,96.913],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":24},{"ty":4,"nm":"Слой 59 Outlines 4","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[169.62,258.812,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0,0,100],"t":20},{"s":[99.781,99.781,100],"t":30}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[397.043,261.506,0],"t":30,"ti":[13.539,-13.462,0],"to":[-13.539,13.462,0]},{"s":[315.811,342.278,0],"t":60}],"ix":2},"r":{"a":0,"k":-90,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0],[0,0],[0,0]],"v":[[-5.088,-5.089],[-5.088,5.089],[5.088,5.089],[5.087,5.089],[5.088,5.089],[5.088,-5.089]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":2,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.087,4.088],[-4.09,4.088],[-4.09,-4.089],[4.087,-4.089]]},"ix":2}},{"ty":"mm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[169.62,258.812],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 5","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[5.088,5.088],[-5.088,5.088],[-5.088,-5.088],[5.088,-5.088]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9961,0.9961,0.9961],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[169.62,258.811],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":25},{"ty":4,"nm":"Слой 59 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[332.44,258.812,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0,0,100],"t":20},{"s":[99.781,99.781,100],"t":30}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[397.043,261.506,0],"t":30,"ti":[-13.539,-13.462,0],"to":[13.539,13.462,0]},{"s":[478.275,342.278,0],"t":60}],"ix":2},"r":{"a":0,"k":-90,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 6","ix":1,"cix":2,"np":5,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-5.088,5.088],[5.088,5.088],[5.088,-5.088],[-5.088,-5.088]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":2,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0]],"o":[[0,0]],"v":[[-5.088,-5.089]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 3","ix":3,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.086,4.087],[-4.089,4.087],[-4.089,-4.088],[4.086,-4.088]]},"ix":2}},{"ty":"mm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[332.441,258.812],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 7","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[5.088,5.088],[-5.088,5.088],[-5.088,-5.088],[5.088,-5.088]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9961,0.9961,0.9961],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[332.44,258.811],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":26},{"ty":4,"nm":"Слой 59 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[332.44,96.913,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0,0,100],"t":20},{"s":[99.781,99.781,100],"t":30}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[397.043,261.506,0],"t":30,"ti":[-13.539,13.462,0],"to":[13.539,-13.462,0]},{"s":[478.274,180.734,0],"t":60}],"ix":2},"r":{"a":0,"k":-90,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 8","ix":1,"cix":2,"np":5,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-5.088,5.088],[5.088,5.088],[5.088,-5.088],[-5.088,-5.088]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":2,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0]],"o":[[0,0]],"v":[[-5.088,-5.088]]},"ix":2}},{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 3","ix":3,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[4.089,4.088],[-4.088,4.088],[-4.088,-4.089],[4.089,-4.089]]},"ix":2}},{"ty":"mm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Merge","nm":"Merge Paths 1","mm":1},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[332.44,96.914],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 9","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[5.088,5.088],[-5.088,5.088],[-5.088,-5.088],[5.088,-5.088]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9961,0.9961,0.9961],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[332.44,96.913],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":27},{"ty":4,"nm":"Shape Layer 4","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[466.003,311.872,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":1,"k":[{"o":{"x":0.54,"y":0},"i":{"x":0.46,"y":1},"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-103.688,-75.563],[-104,-75.812],[-103.938,-75.938],[-103.625,-75.688]]}],"t":30},{"s":[{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-224.438,-195.563],[-224.375,45.375],[17.375,45.375],[17.375,-195.5]]}],"t":60}],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":1.5,"ix":5},"c":{"a":0,"k":[0,0,0],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":28},{"ty":4,"nm":"Слой 57 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[64.75,65.25,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[600.93,245.503,0],"t":60,"ti":[2.55,0,0],"to":[-2.55,0,0]},{"s":[585.63,245.503,0],"t":90}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":60},{"s":[100],"t":90}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,33.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 6","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,18.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 9","ix":3,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-32.5,0],[-29.5,-3],[29.5,-3],[32.5,0],[29.5,3],[-29.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.8392,0.851,0.898],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[32.75,3.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":29},{"ty":4,"nm":"Слой 57 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[64.75,65.25,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[600.93,245.503,0],"t":63,"ti":[2.55,0,0],"to":[-2.55,0,0]},{"s":[585.63,245.503,0],"t":93}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":63},{"s":[100],"t":93}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,81.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 5","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,66.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 8","ix":3,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-32.5,0],[-29.5,-3],[29.5,-3],[32.5,0],[29.5,3],[-29.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.8392,0.851,0.898],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[32.75,51.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":30},{"ty":4,"nm":"Слой 57 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[64.75,65.25,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.251},"i":{"x":0,"y":1},"s":[600.93,245.503,0],"t":66,"ti":[2.55,0,0],"to":[-2.55,0,0]},{"s":[585.63,245.503,0],"t":96}],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":66},{"s":[100],"t":96}],"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,127.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64.5,0],[-61.5,-3],[61.5,-3],[64.5,0],[61.5,3],[-61.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.75,112.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 7","ix":3,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.656],[1.656,0],[0,0]],"o":[[0,-1.656],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-32.5,0],[-29.5,-3],[29.5,-3],[32.5,0],[29.5,3],[-29.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.8392,0.851,0.898],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[32.75,97.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":31},{"ty":4,"nm":"Слой 56 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[17.25,4.25,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[235.898,141.731,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,-2.209],[2.209,0],[0,2.21],[-2.21,0]],"o":[[0,2.21],[-2.21,0],[0,-2.209],[2.209,0]],"v":[[4,0],[0,4],[-4,0],[0,-4]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[30.251,4.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,-2.209],[2.209,0],[0,2.21],[-2.209,0]],"o":[[0,2.21],[-2.209,0],[0,-2.209],[2.209,0]],"v":[[4,0],[0,4],[-4,0],[0,-4]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[17.25,4.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":3,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,-2.209],[2.209,0],[0,2.21],[-2.209,0]],"o":[[0,2.21],[-2.209,0],[0,-2.209],[2.209,0]],"v":[[4,0],[0,4],[-4,0],[0,-4]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[4.25,4.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":32},{"ty":0,"nm":"Pre-comp 12","sr":1,"st":0,"op":901,"ip":62,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[960,540,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.667,"y":1},"s":[466.003,311.872,0],"t":62,"ti":[0,-1.33,0],"to":[0,1.33,0]},{"s":[466.003,319.855,0],"t":120}],"ix":2,"x":"var $bm_rt;\\n$bm_rt = loopOut(\'pingpong\');"},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":1,"k":[{"o":{"x":0.62,"y":0},"i":{"x":0.38,"y":1},"s":[0],"t":62},{"s":[100],"t":82}],"ix":11}},"ef":[],"w":1920,"h":1080,"refId":"comp_4","ind":33},{"ty":4,"nm":"Слой 62 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[322.031,230.031,0],"ix":1},"s":{"a":0,"k":[99.781,99.781,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[463.897,309.569,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-11.826,0],[0,0],[0,-11.826],[0,0],[0,0]],"o":[[0,-11.826],[0,0],[11.827,0],[0,0],[0,0],[0,0]],"v":[[-264.5,6.913],[-243.087,-14.5],[243.087,-14.5],[264.5,6.913],[264.5,14.5],[-264.5,14.5]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[322.031,61.325],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":34},{"ty":4,"nm":"Shape Layer 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[466.752,311.872,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Rectangle 1","ix":1,"cix":2,"np":3,"it":[{"ty":"rc","bm":0,"hd":false,"mn":"ADBE Vector Shape - Rect","nm":"Rectangle Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":28,"ix":4},"s":{"a":0,"k":[792,515.5],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0,0,0],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-4.5,-19.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":35},{"ty":4,"nm":"Shape Layer 1","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[66.521,66.521,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[466.752,311.872,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Rectangle 1","ix":1,"cix":2,"np":3,"it":[{"ty":"rc","bm":0,"hd":false,"mn":"ADBE Vector Shape - Rect","nm":"Rectangle Path 1","d":1,"p":{"a":0,"k":[0,0],"ix":3},"r":{"a":0,"k":38,"ix":4},"s":{"a":0,"k":[808,534.961],"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":1,"lj":1,"ml":4,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":0,"ix":5},"c":{"a":0,"k":[0,0,0],"ix":3}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9216,0.9216,0.9216],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[-4.5,-19.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":36},{"ty":4,"nm":"Слой 62 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[322.031,230.031,0],"ix":1},"s":{"a":0,"k":[95.904,95.904,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[463.897,309.569,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":10,"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":100,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-322.031,230.031],[322.031,230.031],[322.031,-230.032],[-322.031,-230.032]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[322.031,230.032],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":37}],"v":"5.6.2","fr":30,"op":901,"ip":0,"assets":[{"nm":"","id":"comp_0","layers":[{"ty":4,"nm":"Слой 67 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[648.584,456.727,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Слой 67 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.26,"y":1},"s":[571.584,474.227,0],"t":15,"ti":[-20.583,-2.583,0],"to":[19.833,-14.167,0]},{"s":[648.584,456.727,0],"t":35}],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.033},"i":{"x":0.26,"y":1},"s":[-15],"t":15},{"s":[0],"t":35}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0.488,0],[0,0],[0,-0.489],[0,0],[-0.489,0],[0,0],[0,0.489],[0,0],[0,0],[0,0],[0,0],[0,-0.488],[0,0],[-0.489,0],[0,0],[0,0.488],[0,0],[0.49,0],[0,0],[0,0],[0,0],[0,0],[-0.489,0],[0,0],[0,0.489],[0,0]],"o":[[0,0],[-0.489,0],[0,0],[0,0.489],[0,0],[0.488,0],[0,0],[0,0],[0,0],[0,0],[-0.489,0],[0,0],[0,0.488],[0,0],[0.49,0],[0,0],[0,-0.488],[0,0],[0,0],[0,0],[0,0],[0,0.489],[0,0],[0.488,0],[0,0],[0,-0.489]],"v":[[10.615,-11.5],[-10.616,-11.5],[-11.5,-10.615],[-11.5,-3.243],[-10.616,-2.358],[-7.667,-2.358],[-6.782,-3.243],[-6.782,-5.896],[-3.244,-5.896],[-3.244,5.897],[-5.898,5.897],[-6.782,6.782],[-6.782,10.616],[-5.898,11.5],[5.896,11.5],[6.781,10.616],[6.781,6.782],[5.896,5.897],[3.243,5.897],[3.243,-5.896],[6.781,-5.896],[6.781,-3.243],[7.666,-2.358],[10.615,-2.358],[11.5,-3.243],[11.5,-10.615]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.751,27.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Слой 67 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[648.584,456.727,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]},{"nm":"","id":"comp_1","layers":[{"ty":4,"nm":"Слой 66 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[27.25,27.25,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1,"parent":3},{"ty":4,"nm":"Слой 66 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.26,"y":1},"s":[571.584,576.227,0],"t":25,"ti":[-21.833,-3.833,0],"to":[18.833,-12.417,0]},{"s":[648.584,558.727,0],"t":45}],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.033},"i":{"x":0.26,"y":1},"s":[-15],"t":25},{"s":[0],"t":45}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-0.048,-1.579],[0,0],[0,0],[0,0],[-0.041,-0.849],[0,0],[0,0],[0.255,-0.027],[0,0],[0,0],[0.027,0.269],[0,0],[0,0],[-0.802,0.043],[0,0],[0,0],[0,0],[-1.493,0.052],[0,0]],"o":[[1.504,0],[0,0],[0,0],[0,0],[0.811,0],[0,0],[0,0],[0,0.276],[0,0],[0,0],[-0.262,0],[0,0],[0,0],[0,-0.858],[0,0],[0,0],[0,0],[0,-1.59],[0,0],[0,0]],"v":[[1.925,-3.682],[4.706,-0.833],[4.708,-0.737],[4.708,-0.583],[7.483,-0.583],[8.998,0.94],[9,1.022],[9,3.146],[8.546,3.679],[8.494,3.682],[-8.495,3.682],[-8.998,3.202],[-9,3.146],[-9,1.022],[-7.56,-0.581],[-7.482,-0.583],[-4.709,-0.583],[-4.709,-0.737],[-2.017,-3.68],[-1.927,-3.682]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,17.933],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0.364,-0.029],[0,0],[0,0],[0.052,0.382],[0,0],[0,0]],"o":[[0,0],[-0.026,0.391],[0,0],[0,0],[-0.371,0],[0,0],[0,0],[0,0]],"v":[[8.182,-9],[6.979,8.271],[6.295,8.998],[6.237,9],[-6.237,9],[-6.973,8.332],[-6.979,8.271],[-8.182,-9]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.252,31.434],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Слой 66 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[648.584,558.727,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]},{"nm":"","id":"comp_2","layers":[{"ty":4,"nm":"Слой 65 Outlines 3","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"td":1,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[648.584,660.727,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1},{"ty":4,"nm":"Слой 65 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"tt":1,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.26,"y":1},"s":[571.584,678.227,0],"t":35,"ti":[-19.333,-7.333,0],"to":[16.583,-17.417,0]},{"s":[648.584,660.727,0],"t":55}],"ix":2},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.033},"i":{"x":0.26,"y":1},"s":[-15],"t":35},{"s":[0],"t":55}],"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-2.485,0],[0,-2.485],[2.484,0],[0,2.485]],"o":[[2.484,0],[0,2.485],[-2.485,0],[0,-2.485]],"v":[[0,-4.5],[4.5,0],[0,4.5],[-4.5,0]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[18.751,18.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-1.029,-1.483],[0,0],[0,0],[0,0],[0,0],[-1.217,-1.143],[0,0],[0,0]],"o":[[1.119,-1.443],[0,0],[0,0],[0,0],[0,0],[0.917,-1.413],[0,0],[0,0],[0,0]],"v":[[2.713,-6.757],[7.061,-6.647],[7.123,-6.553],[16.5,8.2],[-16.5,8.2],[-10.09,-1.684],[-5.978,-2.18],[-5.898,-2.102],[-3.102,0.746]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.75,33.051],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2},{"ty":4,"nm":"Слой 65 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[27.25,27.25,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[648.584,660.727,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.523,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-27,-17],[-17,-27],[17,-27],[27,-17],[27,17],[17,27],[-17,27],[-27,17]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[27.25,27.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":3}]},{"nm":"","id":"comp_3","layers":[{"ty":4,"nm":"Слой 60 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[59.75,61.922,0],"ix":1},"s":{"a":0,"k":[150,150,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[856.335,465.787,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[59.5,10.858],[-59.5,10.858],[-59.5,-10.858],[59.5,-10.858]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9176,0.9294,0.9529],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[59.75,11.108],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[59.5,10.858],[-59.5,10.858],[-59.5,-10.858],[59.5,-10.858]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9176,0.9294,0.9529],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[59.75,44.983],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 3","ix":3,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[59.5,10.858],[-59.5,10.858],[-59.5,-10.858],[59.5,-10.858]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9176,0.9294,0.9529],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[59.75,78.858],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 4","ix":4,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[59.5,10.858],[-59.5,10.858],[-59.5,-10.858],[59.5,-10.858]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.9176,0.9294,0.9529],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[59.75,112.737],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":1}]},{"nm":"","id":"comp_4","layers":[{"ty":4,"nm":"Shape Layer 1","sr":1,"st":-20,"op":900,"ip":-20,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[66.78,66.78,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-174.283,-71.454,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[270.688,125.75],[276.938,132.25],[289.125,120.188]]},"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"c":{"a":0,"k":[1,1,1],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":79},{"s":[100],"t":100}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":0,"k":0,"ix":1},"m":1}],"ind":1,"parent":2},{"ty":4,"nm":"Слой 55 Outlines","sr":1,"st":-20,"op":900,"ip":-20,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[12.75,12.75,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.25},"i":{"x":0,"y":1},"s":[0,0,100],"t":76},{"s":[100,100,100],"t":91}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[303.61,70.11,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-6.904,0],[0,6.903],[6.903,0],[0,-6.904]],"o":[[6.903,0],[0,-6.904],[-6.904,0],[0,6.903]],"v":[[0,12.5],[12.5,0],[0,-12.5],[-12.5,0]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[12.75,12.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":2,"parent":7},{"ty":4,"nm":"Shape Layer 2","sr":1,"st":-15,"op":900,"ip":-15,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[0,0,0],"ix":1},"s":{"a":0,"k":[66.78,66.78,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[-174.283,-71.454,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Shape 1","ix":1,"cix":2,"np":3,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":false,"i":[[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0]],"v":[[270.688,125.75],[276.938,132.25],[289.125,120.188]]},"ix":2}},{"ty":"st","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":4,"ix":5},"c":{"a":0,"k":[1,1,1],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[0,0],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0,"y":1},"s":[0],"t":84},{"s":[100],"t":105}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":0,"k":0,"ix":1},"m":1}],"ind":3,"parent":4},{"ty":4,"nm":"Слой 55 Outlines 2","sr":1,"st":-15,"op":900,"ip":-15,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[12.75,12.75,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.25},"i":{"x":0,"y":1},"s":[0,0,100],"t":81},{"s":[100,100,100],"t":96}],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[303.61,130.278,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-6.904,0],[0,6.903],[6.903,0],[0,-6.904]],"o":[[6.903,0],[0,-6.904],[-6.904,0],[0,6.903]],"v":[[0,12.5],[12.5,0],[0,-12.5],[-12.5,0]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[12.75,12.75],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":4,"parent":7},{"ty":4,"nm":"Слой 53 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[64.25,10.956,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[137.11,75.315,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.774],[-1.775,0],[0,0],[0,-1.773],[1.773,0],[0,0]],"o":[[0,-1.773],[0,0],[1.773,0],[0,1.774],[0,0],[-1.775,0]],"v":[[-42.824,0],[-39.613,-3.212],[39.613,-3.212],[42.824,0],[39.613,3.212],[-39.613,3.212]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[43.075,18.45],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.657],[1.656,0],[0,0]],"o":[[0,-1.657],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-64,0],[-61,-3],[61,-3],[64,0],[61,3],[-61,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.8392,0.851,0.898],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[64.25,3.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":5,"parent":7},{"ty":4,"nm":"Слой 64 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[80.25,10.75,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[153.11,132.109,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.657],[1.656,0],[0,0]],"o":[[0,-1.657],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-53.5,0],[-50.5,-3],[50.5,-3],[53.5,0],[50.5,3],[-50.5,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.902,0.9216,0.9647],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[53.75,18.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":2,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,1.657],[-1.657,0],[0,0],[0,-1.657],[1.656,0],[0,0]],"o":[[0,-1.657],[0,0],[1.656,0],[0,1.657],[0,0],[-1.657,0]],"v":[[-80,0],[-77,-3],[77,-3],[80,0],[77,3],[-77,3]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0.8392,0.851,0.898],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[80.25,3.25],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":6,"parent":7},{"ty":4,"nm":"Слой 63 Outlines 2","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[201.109,115.105,0],"ix":1},"s":{"a":1,"k":[{"o":{"x":0.167,"y":0.091},"i":{"x":0.833,"y":0.833},"s":[80,80,100],"t":62},{"s":[150,150,100],"t":68}],"ix":6,"x":"var $bm_rt;\\nvar amp, freq, decay, n, t, v;\\ntry {\\n amp = $bm_div(effect(\'Scale - Overshoot\')(\'ADBE Slider Control-0001\'), 2.5), freq = $bm_div(effect(\'Scale - Bounce\')(\'ADBE Slider Control-0001\'), 20), decay = $bm_div(effect(\'Scale - Friction\')(\'ADBE Slider Control-0001\'), 20), n = 0, 0 < numKeys && (n = nearestKey(time).index, key(n).time > time && n--), t = 0 === n ? 0 : $bm_sub(time, key(n).time), $bm_rt = 0 < n ? (v = velocityAtTime($bm_sub(key(n).time, $bm_div(thisComp.frameDuration, 10))), $bm_sum(value, $bm_div($bm_mul($bm_mul($bm_div(v, 100), amp), Math.sin($bm_mul($bm_mul($bm_mul(freq, t), 2), Math.PI))), Math.exp($bm_mul(decay, t))))) : value;\\n} catch (e$$4) {\\n $bm_rt = value = value;\\n}"},"sk":{"a":0,"k":0},"p":{"a":0,"k":[1086.584,733.471,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11}},"ef":[{"ty":5,"mn":"ADBE Slider Control","nm":"Scale - Overshoot","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Slider Control-0001","nm":"Slider","ix":1,"v":{"a":0,"k":10,"ix":1,"x":"var $bm_rt;\\n$bm_rt = clamp(value, 0, 100);"}}]},{"ty":5,"mn":"ADBE Slider Control","nm":"Scale - Bounce","ix":2,"en":1,"ef":[{"ty":0,"mn":"ADBE Slider Control-0001","nm":"Slider","ix":1,"v":{"a":0,"k":40,"ix":1,"x":"var $bm_rt;\\n$bm_rt = clamp(value, 0, 100);"}}]},{"ty":5,"mn":"ADBE Slider Control","nm":"Scale - Friction","ix":3,"en":1,"ef":[{"ty":0,"mn":"ADBE Slider Control-0001","nm":"Slider","ix":1,"v":{"a":0,"k":80,"ix":1,"x":"var $bm_rt;\\n$bm_rt = clamp(value, 0, 100);"}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":4,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[-5.523,0],[0,0],[0,-5.522],[0,0],[5.522,0],[0,0],[0,5.523]],"o":[[0,-5.522],[0,0],[5.522,0],[0,0],[0,5.523],[0,0],[-5.523,0],[0,0]],"v":[[-154,-58],[-144,-68],[144,-68],[154,-58],[154,58],[144,68],[-144,68],[-154,58]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[1,1,1],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[201.11,107.609],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":7},{"ty":4,"nm":"Слой 63 Outlines","sr":1,"st":0,"op":901,"ip":0,"hd":false,"ddd":0,"bm":0,"hasMask":false,"ao":0,"ks":{"a":{"a":0,"k":[201.109,115.105,0],"ix":1},"s":{"a":0,"k":[83.333,83.333,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[201.109,115.105,0],"ix":2},"r":{"a":0,"k":0,"ix":10},"sa":{"a":0,"k":0},"o":{"a":0,"k":10,"ix":11}},"ef":[{"ty":29,"mn":"ADBE Gaussian Blur 2","nm":"Gaussian Blur","ix":1,"en":1,"ef":[{"ty":0,"mn":"ADBE Gaussian Blur 2-0001","nm":"Blurriness","ix":1,"v":{"a":0,"k":100,"ix":1}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0002","nm":"Blur Dimensions","ix":2,"v":{"a":0,"k":1,"ix":2}},{"ty":7,"mn":"ADBE Gaussian Blur 2-0003","nm":"Repeat Edge Pixels","ix":3,"v":{"a":0,"k":0,"ix":3}}]}],"shapes":[{"ty":"gr","bm":0,"hd":false,"mn":"ADBE Vector Group","nm":"Group 2","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 2","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[0,0],[0,0],[0,0],[0,0]],"o":[[0,0],[0,0],[0,0],[0,0]],"v":[[-13.719,-457.914],[388.499,-457.914],[388.499,-688.123],[-13.719,-688.123]]},"ix":2}},{"ty":"fl","bm":0,"hd":false,"mn":"ADBE Vector Graphic - Fill","nm":"Fill 1","c":{"a":0,"k":[0,0,0],"ix":4},"r":1,"o":{"a":0,"k":100,"ix":5}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[13.72,688.125],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]}],"ind":8,"parent":7}]}]}');var Tn=__webpack_require__(51),Ln=__webpack_require__.n(Tn);const Mn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{let i=t.site_obj,n={hero_section:"Craft compelling, SEO-optimized hero content that instantly captures user attention and communicates core value clearly.",features_section:"Generate concise, benefit-driven feature highlights that are keyword-rich and user-centric for better engagement.",achievement_section:"Create authoritative content that showcases key milestones to build trust and credibility.",contact_section:"Write clear, action-focused contact prompts to encourage direct user interaction.",cta_section:"Develop high-converting, urgent, and persuasive CTAs that align with user intent.",offers_section:"Craft irresistible, value-packed offer descriptions that drive conversions and highlight urgency.",mission_vision_section:"Write purpose-driven, emotionally resonant statements that reflect brand values and long-term goals.",header_section:"Ensure concise and structured navigation text optimized for accessibility and SEO clarity.",footer_section:"Include essential, keyword-relevant footer content with a clean structure for enhanced crawlability.",awards_section:"Highlight accolades with professional tone to boost authority and brand trust.",team_section:"Introduce team members with engaging bios that humanize the brand and build connection.",testimonial_section:"Generate authentic-sounding testimonials that build trust and support social proof.",about_section:"Create an engaging brand story that communicates expertise, values, and uniqueness clearly.",pricing_section:"Write clear, value-focused pricing details that aid transparency and drive conversions.",faq_section:"Develop precise, SEO-friendly answers addressing real user queries to reduce friction and boost SERP visibility."},r=["wdkitai_unique_id","wdkitai_meta_info","wdkitai_admin_detail_order","wdkitai_image_type","wdkitai_image_description_type","wdkitai_image_generic_type","wdkitai_image_description","wdkitai_social_icon_order","wdkitai_site_logo","wdkitai_team_library_type"],l=["exTitle","exproCnt","exbtxt"],o=[{label:(0,a.__)("Global Settings","wdesignkit"),name:"global_settings",status:"pending"},{label:(0,a.__)("Plugin Settings","wdesignkit"),name:"plugin_settings",status:"pending"},{label:(0,a.__)("Theme Settings","wdesignkit"),name:"theme_settings",status:"pending"}],d=[{label:(0,a.__)("Installing Plugins & Theme","wdesignkit"),name:"install_plugin_theme",status:"pepending"},{label:(0,a.__)("Importing Site Content","wdesignkit"),name:"importing_site_content",status:"pending"},{label:(0,a.__)("Setting Up Pages & Layout","wdesignkit"),name:"setting_up_site",status:"pending"},{label:(0,a.__)("Finalizing Settings","wdesignkit"),name:"finalizing_site_setting",status:"pending"}],c={p_id:3001,original_slug:"nexter",plugin_name:"Nexter",freepro:"0",type:"theme"};const[m,u]=(0,e.useState)(d),[h,w]=(0,e.useState)(o),[_,f]=(0,e.useState)([]),[k,x]=(0,e.useState)([]),[v,y]=(0,e.useState)(""),[j,N]=(0,e.useState)(""),[$,C]=(0,e.useState)(!1),[S,D]=(0,e.useState)(!1),E=(0,e.useRef)([]),P=(0,e.useRef)([]),A=(0,e.useRef)([]),T=(0,e.useRef)(),L=(0,e.useRef)(),M=(0,e.useRef)([]),F=(0,e.useRef)({color:[],typo:[]}),I=(0,e.useRef)([]),B=(0,e.useRef)([]),O=(0,e.useRef)([]);(0,e.useEffect)((()=>{t.wdkit_meta?.success&&fe("install_plugin_theme")}),[t.wdkit_meta.success]),(0,e.useEffect)((()=>{v&&(()=>{const e=setInterval((()=>{(()=>{if(T?.current?.contentWindow){const e=T.current.contentDocument||T.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((()=>{!(T.current.contentDocument||T.current.contentWindow.document).querySelector(".editor-post-publish-button.editor-post-publish-button__button.is-busy")&&(y(!1),V(),1)&&clearInterval(e)}),500)})()}),1e3),!0}}return!1})()&&clearInterval(e)}),500)})()}),[v]);const R=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},V=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",j),await s().post(ajaxurl,e);let a=[...m],i=a.findIndex((e=>"finalizing_site_setting"==e?.name));i>-1&&(a[i].status="done",u(a)),C(!0),0==E.current.length&&t.setcurrent_page("success_import")},W=(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}),q=(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}),G=(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}),z=(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-parent",style:{fontSize:"20px"}}),H=(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child",style:{fontSize:"20px"}}),U=(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child",style:{color:"#FC4032"}}),J=(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}),K=async e=>{if(e){let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","import_taxonomy"),t.append("category",JSON.stringify(e.categories)),t.append("tags",JSON.stringify(e.tags));let a=await s().post(ajaxurl,t).then((e=>e.data));if(a.success){let t=a?.categories?a.categories:[],i=a?.tags?a.tags:[];Object.assign(e,{categories:t,tags:i})}}return e},Z=async e=>{if("elementor"==t?.kit_builder)var a=19515;else"gutenberg"==t?.kit_builder&&(a=19866);let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","kit_template"),n.append("template_id",a),n.append("builder",wdkitData.use_editor);let r=await s().post(ajaxurl,n).then((e=>e.data));if(r?.success){let n=r?.template?.length>0?r.template:[];r?.kitdata&&r.kitdata,await Promise.all(n.map((async n=>{let r=await ae(n,a);var l=r.data?.response?.content?r.data.response.content:"";let o=JSON.parse?.(l)?JSON.parse(l):[],d=o?.settings?o.settings:"";if("elementor"==t?.kit_builder?await Qe(o?.content):"gutenberg"==t?.kit_builder&&await Xe(o?.content),("yes"==d?.wdkitai_page_setting||1==d?.wdkitai_page_setting)&&"ai_import"==i?.import_type){var c=d?.wdkitai_page_type?d?.wdkitai_page_type:"custom";if("elementor"==t?.kit_builder)var p=await ne(o?.content);else"gutenberg"==t?.kit_builder&&(p=await se(o?.content))}let m={color:F.current.color,typography:F.current.typo};if(p){let e=[{[c]:p.detailsection}],t={[c]:p.sectionMap},a=i?.images?.length>0?i.images:[],s=await re(t),n=await le(o);var u=await oe(l,a,n?.ai);u=await ce(s,u,e)}else u=l;if("elementor"==t?.kit_builder)var h=Re(JSON.parse(u)?.content,m),g="ai_import"==i?.import_type?"id":"elementor_id";else"gutenberg"==t?.kit_builder&&(h=We(JSON.parse(u)?.content,m),g="ai_import"==i?.import_type?"id":"gutenberg_id");var w=Object.assign({},JSON.parse(u),{content:h});let _=e?.posts?.length>0?e.posts:[],f=_.findIndex((e=>e?.[g]==n.id));var k=[],b=[];if(f>-1){w.title=_[f].title;let t=_?.[f]?.category?_[f].category:[],a=_?.[f]?.tags?_[f].tags:[];t.map((t=>{let a=e?.categories.findIndex((e=>e.name==t));a>-1&&k.push(e?.categories[a].term_id)})),a.map((t=>{let a=e?.tags.findIndex((e=>e.name==t));a>-1&&b.push(e?.tags[a].term_id)}))}var x=JSON.stringify(w);if("elementor"==t?.kit_builder){var v=x.match(/https:\/\/etemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(v?.length>0){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(\?|#|\\|\"|\'|\s|$)/i;v.map((t=>{e.test(t)||(x=x.replaceAll([t],"#"))}))}}else if("gutenberg"==t?.kit_builder&&(v=x.match(/https:\/\/gtemplates\.wdesignkit\.com\/[^\s"')]+/gi),v?.length>0)){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(?:[?#\\\/&;\"'\s]|$)/i;v.map((t=>{e.test(t)||(x=x.replaceAll(t,"#\\"))}))}if("ai_import"==i?.import_type){let e=i?.images?.length>0?i.images:[];var y=await(async e=>{let t=null,a=1/0;for(const i of e){const e=i.width/i.height,s=Math.abs(e-1.75);s<a&&(a=s,t=i)}return t?.url})(e)}else y=_?.[f]?.img_url;try{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","import_page_section"),e.append("args",JSON.stringify(r.data.args)),e.append("temp_data",JSON.stringify(r.data.temp_data)),e.append("template_id",JSON.stringify(r.data.id)),e.append("thumb_image",y),e.append("category_list",JSON.stringify(k)),e.append("tag_list",JSON.stringify(b)),e.append("data",x),await s().post(ajaxurl,e).then((e=>e.data))}catch(e){}})))}},Y=async e=>{if(A.current.findIndex((e=>"loading"==e.status))>-1)M.current.push(e);else{let t=Object.assign({},e,{status:"loading"});A.current.push(t),x([...A.current]),await(async e=>{let t=new FormData;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);var a=await s().post(ajaxurl,t).then((e=>e.data));if(a?.success){let e=A.current.findIndex((e=>e.p_id==a.p_id));A.current[e].status=a.status,x([...A.current])}let i=M.current.findIndex((e=>e.p_id==a.p_id));if(i>-1&&M.current.splice(i,1),M.current.length>0)Y(M.current[0]);else{let e=[...m],t=e.findIndex((e=>"install_plugin_theme"==e?.name));e[t].status="done",u(e),fe("importing_site_content")}})(e)}},X=()=>{if(k.length>0)return k.map(((e,t)=>{let i="",s="1"==e.freepro?(0,a.__)("Pro","wdesignkit"):(0,a.__)("Free","wdesignkit");return"active"==e.status?i+=(0,a.__)("Installed ","wdesignkit")+e.plugin_name+" "+s+" "+e.type:"loading"==e.status?i+=(0,a.__)("Installing ","wdesignkit")+e.plugin_name+" "+s+" "+e.type:i+=e.plugin_name+" "+s+" "+e.type+(0,a.__)(" not installed","wdesignkit"),(0,g.jsxs)("div",{className:"wkit-import-step-inner",children:["active"==e.status&&G,"loading"==e.status&&q,"inactive"==e.status&&U,(0,g.jsx)("span",{className:"wkit-step-inner-title",children:i})]},t)}))},Q=async e=>{let a=[...h],n=a.findIndex((t=>t.name==e));n>-1&&(a[n].status="loading"),w(a),"global_settings"==e?(async()=>{let e=i?.kit_global,a=await(async()=>{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",t.kit_builder);let a=await s().post(ajaxurl,e).then((async e=>e));return a?.data?.success&&a?.data?.data?a.data.data:[]})(),n=a?.color?.length>0?a.color:[],r=a?.typography?.length>0?a.typography:[],l=[],o=[];if("elementor"==t?.kit_builder){if(e.color.length>0&&e.color.map((e=>{if(-1==n.findIndex((t=>t?._id==e?._id)))var t=Object.assign({},e,{color:e.new_color});else{t=Object.assign({},e,{color:e.new_color,_id:R()});let a={status:"update",temp_id:e._id,site_id:t._id,data:t};F.current.color.push(a)}delete t.new_color,l.push(t)})),e.typo.length>0){let t=i?.font_family?.length>0?[...i.font_family]:[];e.typo.map((e=>{var a=e.typography_font_family;let i=t.findIndex((e=>e.original==a));if(i>-1&&(a=t[i].replace),-1==r.findIndex((t=>t?._id==e?._id)))var s=Object.assign({},e,{typography_font_family:a});else{s=Object.assign({},e,{typography_font_family:a,_id:R()});let t={status:"update",temp_id:e._id,site_id:s._id,data:s};F.current.typo.push(t)}o.push(s)}))}}else if("gutenberg"==t?.kit_builder){e.color.length>0&&e.color.map((e=>{let t=Object.assign({},e,{value:e.new_color,id:n.length+1}),a={status:"update",temp_id:e.id,site_id:t.id,data:t};delete t.new_color,F.current.color.push(a),n.push(t)})),e.typo.length>0&&e.typo.map((e=>{let t=i?.font_family?.length>0?[...i.font_family]:[],a=t.findIndex((t=>t?.original==e.value?.fontFamily?.family)),s=Object.assign({},e,{id:r.length+1});a>-1&&(s.value.fontFamily.family=t[a].replace);let n={status:"update",temp_id:e.id,site_id:s.id,data:s};F.current.typo.push(n),r.push(s)}));const t=n.map((({id:e,...t})=>t)),a=r.map((({id:e,...t})=>t));var d=Object.assign({},i?.site_global,{colors:t,typography:a,key:"wdk_preset",name:"WDK Preset"});delete d.color}let c=new FormData;if(c.append("action","get_wdesignkit"),c.append("kit_nonce",wdkitData.kit_nonce),c.append("type","update_global_val"),c.append("builder",t.kit_builder),c.append("g_color",JSON.stringify(l)),c.append("g_typography",JSON.stringify(o)),c.append("new_preset",JSON.stringify(d)),(await s().post(ajaxurl,c).then((async e=>await e.data))).success){Q("site_settings");var p="done"}else Q("site_settings"),p="fail";let m=[...h],u=m.findIndex((e=>"global_settings"==e.name));u>-1&&(m[u].status=p,w(m))})():"site_settings"==e?(async()=>{let e=new FormData;if(e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","reset_site"),(await s().post(ajaxurl,e).then((e=>e.data))).success)var t="done";else t="fail";await Q("plugin_settings");let a=[...h],i=a.findIndex((e=>"site_settings"==e.name));i>-1&&(a[i].status=t,w(a))})():"plugin_settings"==e?(async()=>{let e=new FormData;if(e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","update_plugin_setting"),e.append("plugin_type","elementor"),(await s().post(ajaxurl,e).then((e=>e.data))).success)var t="done";else t="fail";await Q("theme_settings");let a=[...h],i=a.findIndex((e=>"plugin_settings"==e.name));i>-1&&(a[i].status=t,w(a))})():"theme_settings"==e&&(async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","update_theme_setting"),await s().post(ajaxurl,e).then((e=>e.data));let t=[...m],a=t.findIndex((e=>"importing_site_content"==e?.name));a>-1&&(t[a].status="done",u(t)),fe("setting_up_site");let i=[...h],n=i.findIndex((e=>"theme_settings"==e.name));n>-1&&(i[n].status="done",w(i))})()},ee=()=>{if(h.length>0)return h.map(((e,t)=>{if("pending"!=e?.status)return(0,g.jsxs)("div",{className:"wkit-import-step-inner",children:["done"==e.status&&G,"loading"==e.status&&q,"fail"==e.status&&U,(0,g.jsx)("span",{className:"wkit-step-inner-title",children:e.label})]},t)}))},te=()=>{if(_.length>0)return _.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-step-inner",children:["done"==e.status&&G,"loading"==e.status&&q,"fail"==e.status&&U,(0,g.jsx)("span",{className:"wkit-step-inner-title",children:e.label}),"fail"==e.status&&(0,g.jsx)("span",{className:"wkit-retry-temp-opt",children:(0,a.__)("Retry !","wdesignkit")})]},t)))},ae=async(e,a=t.kit_data.id)=>{let n="pagetemplate"==e.type?"pages":"sections",r=p();var l="";if("browse"!=i?.import_condition&&r)l=r?.user_email,o="import_template";else var o="import/template/free";let d=(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:""})(e.post_builder);try{let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","import_kit_template"),t.append("api_type",o),t.append("website_kit",a),t.append("email",l),t.append("template_ids",JSON.stringify(e)),t.append("editor","wdkit"==wdkitData.use_editor&&d?d:wdkitData.use_editor),t.append("builder",d),t.append("page_section",n),t.append("custom_meta",!0),t.append("ai_compitible",!0);var c=await s().post(ajaxurl,t).then((e=>e.data))}catch(t){c=!1;let a={id:e.id,status:"json_import",data:"",message:"json not imported"};E.current.push(a)}return c},ie=e=>{const t=/<!--\s*(\/?)wp:([^\s]+)\s*(?:({[\s\S]*?}))?\s*(?:\/-->|-->)\s*/g;let a,i=[],s=[{children:i}];for(;null!==(a=t.exec(e));){const e="/"===a[1],t=a[0];let i=a[2];const n=a[3],r=/\/-->$/.test(t.trim());if(e)s.pop();else{i.includes("/")&&(i=i.split("/")[1]);let e={type:i,object:null,inner_con:[]};if(n)try{e.object=JSON.parse(n)}catch(t){e.object=null}s[s.length-1].children.push(e),r||s.push({node:e,children:e.inner_con})}}return i},se=e=>function(e){const t={},a={};return function e(i,s=null){i.forEach((i=>{var l;if(i&&"object"==typeof i)if(l=i,"tp-container"===l?.type&&!0===l?.object?.enable_ai_meta_info&&l?.object?.wdkitai_sectionType){let s=i.object.wdkitai_sectionType;"wdkit_custom"===s&&i.object.wdkitai_conTitle&&(s=i.object.wdkitai_conTitle);const r=n[s]||"No description available.";t[s]||(t[s]={information:r,elements:[]},a[s]={information:r,elements:[]}),e(i.inner_con||[],s)}else if("tp-container"===i.type&&i.inner_con?.length)e(i.inner_con,s);else if(i.object&&s){const n={};if(Object.entries(i.object).forEach((([e,t])=>{e.startsWith("wdkitai_")&&(n[e]=t)})),Object.keys(n).length>0){n.id=i.object.block_id||Math.random().toString(36).substring(2,10),t[s].elements.push(n);const e=Object.fromEntries(Object.entries(n).filter((([e])=>!r.includes(e)&&!e.endsWith("_replace"))));a[s].elements.push(e)}i.inner_con?.length&&e(i.inner_con,s)}}))}(e),{detailsection:t,sectionMap:a}}(ie(e)),ne=e=>function(e){const t={},a={};return function e(i,s=null){if(Array.isArray(i))for(const l of i){if(l.settings&&"yes"===l.settings.wdkitai_container_setting&&l.settings.wdkitai_section_types){if("wdkit_custom"==l.settings.wdkitai_section_types&&l.settings?.wdkitai_custom_type){s=l.settings?.wdkitai_custom_type;var r=l.settings?.wdkitai_custom_description}else s=l.settings.wdkitai_section_types;t[s]||(t[s]={information:r||n[s],elements:[]},a[s]={elements:[]})}if("widget"===l.elType&&l.settings){const e=Object.entries(l.settings).filter((([e])=>e.startsWith("wdkitai_"))).reduce(((e,[t,a])=>(e[t]=a,e)),{});if(Object.keys(e).length>0&&s){const i=Object.entries(e).filter((([e])=>"wdkitai_unique_id"!==e&&"wdkitai_meta_info"!==e&&"wdkitai_admin_detail_order"!==e&&"wdkitai_image_type"!==e&&"wdkitai_image_description_type"!==e&&"wdkitai_image_generic_type"!==e&&"wdkitai_image_description"!==e&&"wdkitai_social_icon_order"!==e&&"wdkitai_site_logo"!==e&&"wdkitai_team_library_type"!==e&&!e.endsWith("_replace"))).reduce(((e,[t,a])=>(e[t]=a,e)),{id:l.id});let n=Object.assign({},e,{id:l.id});Object.values(i).length>1&&t[s].elements.push(i),a[s].elements.push(n)}}Array.isArray(l.elements)&&e(l.elements,s)}}(e),{sectionMap:t,detailsection:a}}(e),re=async e=>{let a=e||"",n=i?.site_type?i.site_type:"",r=i?.site_lang?i.site_lang:"",l=i?.site_description?i.site_description:"",o=i?.site_info?.site_name?i.site_info.site_name:"",d=p(),c=new FormData;c.append("action","get_wdesignkit"),c.append("kit_nonce",wdkitData.kit_nonce),c.append("type","generate_ai_content"),c.append("text_array",JSON.stringify(a)),c.append("site_type",n),c.append("site_lang",r),c.append("site_desc",l),c.append("site_title",o),c.append("site_builder",t?.kit_builder),c.append("token",d?.token);let m=await s().post(ajaxurl,c).then((e=>e.data));if(m?.response)var u=m.response?JSON.parse(m.response):[];else u=[];return u},le=e=>{"gutenberg"==t?.kit_builder&&(e=ie(e.content));const a=[],i={};!function e(s,n=[]){if(Array.isArray(s))s.forEach((t=>e(t,n)));else if("object"==typeof s&&null!==s){let l=s.wdkitai_image_description_type,o="default",d="team_member";if(!l)for(let e=n.length-1;e>=0;e--)if(n[e].wdkitai_image_description_type){l=n[e].wdkitai_image_description_type;break}if("team_library"===l){for(let e=n.length-1;e>=0;e--)if(n[e].wdkitai_ai_team){o=n[e].wdkitai_ai_team;break}if(s?.wdkitai_ai_team&&(o=s.wdkitai_ai_team),s.wdkitai_team_library_type)d="testimonial"===s.wdkitai_team_library_type?"testimonial":"team_member";else for(let e=n.length-1;e>=0;e--)if(n[e].wdkitai_team_library_type){d="testimonial"===n[e].wdkitai_team_library_type?"testimonial":"team_member";break}}if("elementor"==t?.kit_builder)var r="image";else"gutenberg"==t?.kit_builder&&(r="tImg");if(s?.[r]&&"string"==typeof s[r]?.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(s[r]?.url))if("image_stock"===l)a.push(s[r]?.url);else if("team_library"===l){const e=`${o}|${d}`;i[e]||(i[e]={img_type:o,team_type:d,imgs:[]}),i[e].imgs.push(s.image.url)}if(s.background_image&&"string"==typeof s.background_image.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(s.background_image.url)&&"image_stock"===l&&a.push(s.background_image.url),"string"==typeof s.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(s.url))if("image_stock"===l)a.push(s.url);else if("team_library"===l){const e=`${o}|${d}`;i[e]||(i[e]={img_type:o,team_type:d,imgs:[]}),i[e].imgs.push(s.url)}for(const t in s)e(s[t],[...n,s])}}(e);const s=Object.values(i);return{ai:a,ai_team:s}},oe=async(e,t=[],a=[])=>{let i=a?.length>0?[...a]:[];if(a?.length>0){const s=a.map((async a=>{const s=await de(a);if(!s){let e=i.findIndex((e=>e==a));return void(e>-1&&i.splice(e,1))}let n=s,r=Object.assign(n,{url:a});const l=(r?.width||50)/(r?.height||50);let o=null,d=1/0;for(const e of t){const t=e.width/e.height,a=Math.abs(t-l);a+(e?.used?e?.used:0)<d&&(d=a,o=e)}if(o?.url){let s=[...t],n=s.findIndex((e=>e.url==o.url)),r=s[n],l=s[n]?.used?s[n].used:0,d=Object.assign({},r,{used:l+.5});s.push(d),s.splice(n,1),t=s;let c=a.replace(/\//g,"\\/");e=(e=e.replaceAll(c,o.url)).replaceAll(a,o.url);let p=i.findIndex((e=>e==a));p>-1&&i.splice(p,1)}}));await Promise.all(s)}return i.length>0&&t?.length>0?oe(e,t,i):e},de=e=>new Promise((t=>{const a=new Image;a.onload=()=>t({width:a.width,height:a.height}),a.onerror=()=>t(null),a.src=e})),ce=(e,a,s)=>{if("elementor"==t?.kit_builder)var n=JSON.parse(a).content;else"gutenberg"==t?.kit_builder&&(n=ie(JSON.parse(a).content));if(!(s?.length>0))return a;{let r=[];if(s.map(((t,a)=>{Object.entries(t).map((([t,s])=>{Object.entries(s).map((([s,n])=>{n.elements.map((n=>{let l=e?.[a]?.[t]?.[s]?.elements?e[a][t][s].elements:[];var o=l.findIndex((e=>e?.id==n?.id));let d={id:n?.id,data:[]};Object.entries(n).map((([e,t])=>{if("wdkitai_image_type"!=e){if(o>-1&&l[o][e]&&(t=l[o][e]),"wdkitai_social_icon_order"==e){const e=t.split("|").map((e=>e.trim()));let a=i.site_info.social_links?i.site_info.social_links:"",s=[];e.map((e=>{a?.[e]?s.push(a?.[e]):s.push("")})),t=s}if("wdkitai_admin_detail_order"==e&&t&&"info"==n?.wdkitai_info_type){const e=t?.split("|").map((e=>e.trim()));let a=i.site_info?i.site_info:"",s=[],n=[];e.map((e=>{a?.[e]?(s.push(a?.[e]),"phone"==e?n.push("tel:"+a?.[e]):"email"==e?n.push("mailto: "+a?.[e]):n.push("#")):(s.push(void 0),n.push(void 0))})),t=[s,n]}if("wdkitai_image_description_type"==e&&i.site_info?.logo&&"site_logo"==t){var a=i.site_info?.logo?.default?i.site_info.logo.default:"";let s=n?.wdkitai_site_logo?n.wdkitai_site_logo:"";s&&i.site_info?.logo?.[s]&&(a=i.site_info?.logo?.[s]),e="wdkitai_image_type",t=[a]}if("id"!=e&&t?.length>0){let a=e+"_replace";if(n?.[a])if("wdkitai_admin_detail_order"==e){let e=n?.[a],i=n?.wdkitai_admin_detail_link_replace;d.data.push({[e]:t[0]}),d.data.push({[i]:t[1]})}else Array.isArray(t)&&d.data.push({[n?.[a]]:t})}}})),r.push(d)}))}))}))})),"elementor"==t?.kit_builder){let e=ue(r,n),t=Object.assign({},JSON.parse(a),{content:e});return JSON.stringify(t)}if("gutenberg"==t?.kit_builder){let e=me(r,n),t=pe(e,JSON.parse(a).content),i=Object.assign({},JSON.parse(a),{content:t});return JSON.stringify(i)}}},pe=(e,t)=>{let a=(e=>[...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)))(t);const i=e=>{e.length>0&&e.map((e=>{if(e?.inner_con?.length>0&&i(e.inner_con),e?.object){let i=e?.object?.block_id,s=a.findIndex((e=>e?.block_id==i));if(s>-1){const i=JSON.stringify(a[s]),n=JSON.stringify(e?.object);t=(t=t.replace(/\\u([\dA-Fa-f]{4})/g,((e,t)=>String.fromCharCode(parseInt(t,16))))).replace([i],n)}}}))};return i(e),t},me=(e,t)=>(t=>{const a=t=>{if(Array.isArray(t))return t.map((t=>{if("tp-container"!==t.type&&t.object){let a=e.findIndex((e=>e?.id==t.object?.block_id));a>-1&&e[a]?.data?.length>0&&e[a].data.map((e=>{Object.entries(e).map((([e,a])=>{t.object?.[e]?"image"==e&&null!=t.object[e]?.url?t.object[e].url=a[0]:"descurl"!=e&&"IBoxLink"!=e&&"link"!=e&&"imageStore"!=e||!t.object[e]?.url?null!=a[0]&&(t.object[e]=a[0]):t.object[e].url=a[0]:l.includes(e)?t.object[e]=a[0]:Object.entries(t.object).map((([t,i])=>{"object"==typeof i&&(i?.length>0?i.map(((t,i)=>{t[e]&&null!=a[i]&&("linkUrl"!=e&&"link"!=e||null==t[e]?.url?"descurl"==e&&null!=t[e]?.url?t[e].url=a[i]:t[e]=a[i]:t[e].url=a[i])})):i[e]&&null!=a[0]&&(i[e]=a[0]))}))}))}))}Array.isArray(t.inner_con)&&a(t.inner_con)})),t};return a(t)})(t),ue=(e,t)=>(t=>{const a=t=>{if(Array.isArray(t))return t.map((t=>{if("widget"===t.elType&&t.settings){let a=e.findIndex((e=>e?.id==t?.id));a>-1&&e[a]?.data?.length>0&&e[a].data.map((e=>{Object.entries(e).map((([e,a])=>{t.settings?.[e]?"image"==e&&null!=t.settings[e]?.url||"link"==e&&t.settings[e]?.url?t.settings[e].url=a[0]:null!=a[0]&&(t.settings[e]=a[0]):Object.entries(t.settings).map((([t,i])=>{"object"==typeof i&&(i?.length>0?i.map(((t,i)=>{t[e]&&null!=a[i]&&("social_url"!=e&&"link"!=e||null==t[e]?.url?"social_icon"==e&&void 0!==t.link?t.link.url=a[i]:t[e]=a[i]:t[e].url=a[i])})):i[e]&&(i[e]=a[0]))}))}))}))}Array.isArray(t.elements)&&a(t.elements)})),t};return a(t)})(t),he=async(e,a)=>{let i=a?.title?.split("|"),n=i?.[0]?.toLowerCase(),r=i?.[0];r&&(a.title=r),n&&(a.slug=n);var l=JSON.stringify(a);if("elementor"==t?.kit_builder){var o=l.match(/https:\/\/etemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(o?.length>0){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(\?|#|\\|\"|\'|\s|$)/i;o.map((t=>{e.test(t)||(l=l.replaceAll('"'+t+'"','"#"'))}))}}else if("gutenberg"==t?.kit_builder&&(o=l.match(/https:\/\/gtemplates\.wdesignkit\.com\/[^\s"')]+/gi),o?.length>0)){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(?:[?#\\\/&;\"'\s]|$)/i;o.map((t=>{e.test(t)||(l=l.replaceAll(t,"#\\"))}))}try{var d,c;let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","import_page_section"),t.append("args",JSON.stringify(e.data.args)),t.append("temp_data",JSON.stringify(e.data.temp_data)),t.append("template_id",JSON.stringify(e.data.id)),t.append("data",l);var p=await s().post(ajaxurl,t).then((e=>e.data));let i=null!==(d=a?.page_id)&&void 0!==d?d:"",n=null!==(c=e?.data?.temp_data?.wp_post_type)&&void 0!==c?c:"",r={title:e?.data?.temp_data?.title,inserted_id:p?.inserted_id,old_page_id:i,post_type:n};-1==O.current.findIndex((e=>e.inserted_id==p?.inserted_id))&&O.current.push(r)}catch(e){p=!1}return p},ge=async(e,n)=>{try{let h=await ae(e);if(!h?.success)return{message:(0,a.__)("Fail to get Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit"),success:!1};{var r=h.data?.response?.content?h.data.response.content:"";let g=JSON.parse?.(r)?JSON.parse(r):[],w=g.title.toLowerCase(),_=g?.settings?g.settings:"";if("elementor"==t?.kit_builder?await Qe(g?.content):"gutenberg"==t?.kit_builder&&await Xe(g?.content),"yes"==_?.wdkitai_page_setting||1==_?.wdkitai_page_setting){var l=_?.wdkitai_page_type?_?.wdkitai_page_type:"custom";if("elementor"==t?.kit_builder)var o=await ne(g?.content);else"gutenberg"==t?.kit_builder&&(o=await se(g?.content))}if(o){let e=[{[l]:o.detailsection}],a={[l]:o.sectionMap};if("ai_import"==i?.import_type){let t=i?.images?.length>0?i.images:[];var d=await re(a);let n=await le(g);var c=await oe(r,t,n?.ai);c=await(async(e,t)=>{let a=p();return t.length>0&&await Promise.all(t.map((async t=>{if("testimonial"==(t?.team_type?t.team_type:"testimonial"))var n=14;else n=i.site_category_id;let r=t?.img_type?t.img_type:"",l=t?.imgs?.length>0?t.imgs.length:5,o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("type","select_team_img"),o.append("folder_id",n),o.append("img_type",r),o.append("image_count",l),o.append("token",a?.token);let d=await s().post(ajaxurl,o).then((e=>e.data));d?.images?.length>0&&d.images.map(((a,i)=>{let s=t.imgs[i].replace(/\//g,"\\/");e=(e=e.replaceAll(s,a)).replaceAll(t.imgs[i],a)}))}))),e})(c,n?.ai_team),c=await ce(d,c,e)}else d=[],c=r;if("elementor"==t?.kit_builder)var m=await Re(JSON.parse(c)?.content,n),u=Object.assign({},JSON.parse(c),{content:m});else"gutenberg"==t?.kit_builder&&(m=await We(JSON.parse(c)?.content,n),u=Object.assign({},JSON.parse(c),{content:m}))}else"elementor"==t?.kit_builder?(m=await Re(JSON.parse(r)?.content,n),u=Object.assign({},JSON.parse(r),{content:m})):"gutenberg"==t?.kit_builder&&(m=await We(JSON.parse(r)?.content,n),u=Object.assign({},JSON.parse(r),{content:m}));let f=g?.custom_meta;if(f){let e=f?.["nxt-hooks-layout-sections"];if(e?.includes("header")||e?.includes("footer"))return B.current.push({result:h,content:JSON.stringify(u)}),{success:"loading",message:(0,a.__)("Header and Footer section","wdesignkit"),description:(0,a.__)("","wdesignkit")}}"gutenberg"==t?.kit_builder&&(u=ze(u));let k=await he(h,u);if(!k?.success)return{success:!1,message:(0,a.__)("Fail to import Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit")};{let t=e?.id,a={id:t,site_url:k[e?.id].view,post_url:e.post_url};I.current.push(a),(w.includes("landing")||w.includes("home"))&&(L.current=k[e?.id].id)}}return{success:!0,message:(0,a.__)("Template Imported successfully","wdesignkit"),description:(0,a.__)("","wdesignkit")}}catch(e){return console.error(e),{success:!1,message:(0,a.__)("Fail to get Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit")}}},we=async e=>{var i=e?.result?e.result:"",s=e?.content?e.content:[];I.current.map((e=>{let a=e.post_url,i=e.site_url;a.endsWith("/")&&(a=a.slice(0,-1));const n=a.replace(/\//g,"\\/");s=(s=(s=(s=(s=(s=s.replaceAll(`"${n}"`,`"${i}"`)).replaceAll(`"${n}/"`,`"${i}"`)).replaceAll(`"${a}"`,`"${i}"`)).replaceAll(`"${a}/"`,`"${i}"`)).replaceAll(`\\"${a}\\"`,`\\"${i}\\"`)).replaceAll(`\\"${a}/\\"`,`\\"${i}\\"`),"gutenberg"==t?.kit_builder&&(s=(s=s.replaceAll(',\\"id\\":\\"\\"',"")).replace(/,\\"id\\":[^,}\]]*/g,""))}));let n=await he(i,JSON.parse(s));if(n?.success)return P.current.push(n.inserted_id),{success:!0,message:(0,a.__)("Template Imported successfully","wdesignkit"),description:(0,a.__)("","wdesignkit")}},_e=async()=>{let e=[...m],a=e.findIndex((e=>"finalizing_site_setting"==e?.name));a>-1&&(e[a].status="loading",u(e)),"gutenberg"==t?.kit_builder&&await(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 s().post(ajaxurl,e).then((async e=>{e.data?.success&&(y(e?.data?.preview_url),N(e.data.post_id))}))})();let n=i?.site_info?.site_name?i.site_info.site_name:"",r=i?.site_info?.tagline?i.site_info.tagline:"",l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("type","update_site_setting"),l.append("id",L.current),l.append("temp_type","page"),l.append("site_name",n),l.append("site_tagline",r),l.append("page_information",JSON.stringify(O.current));let o=await s().post(ajaxurl,l).then((e=>e.data));if(o?.site_link){let e=Object.assign({},t.site_obj,{site_url:o?.site_link});t.setsite_obj(e)}if("gutenberg"!=t?.kit_builder){let e=[...m],a=e.findIndex((e=>"finalizing_site_setting"==e?.name));a>-1&&(e[a].status="done",u(e)),C(!0),0==E.current.length&&t.setcurrent_page("success_import")}},fe=e=>{let n=[...m],r=n.findIndex((t=>t?.name==e));n[r].status="loading",u(n),r>-1&&("install_plugin_theme"==e?(async()=>{let e=t?.kit_template?.length>0?t.kit_template:[],a=t.wdkit_meta?.plugin?.length>0?t.wdkit_meta.plugin:[],n=[];if(e.map((e=>{e?.plugins_id?.length>0&&e.plugins_id.map((e=>{let t=a.findIndex((t=>t.p_id==e)),i=n.findIndex((t=>t.p_id==e));t>-1&&-1==i&&n.push(a[t])}))})),i.plugin_setting?.length>0&&i.plugin_setting.map((e=>{"true"!=e.value&&1!=e.value&&"default"!=e.value||(e?.plugin?.length>0?e.plugin:[]).map((e=>{let a=t.new_plugins.findIndex((t=>t.original_slug==e));a>-1&&n.push(t.new_plugins[a])}))})),i?.theme_setting&&n.push(c),n.length>0){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_plugins_depends"),e.append("plugins",JSON.stringify(n)),e.append("editor",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((e=>e.data));if(t.success){let e=t.data?.plugins?.length>0?t.data.plugins:[],a=t.data?.theme?.length>0?t.data.theme:[];e.push(...a);let i=e.filter((e=>{if("active"!==e.status)return e}));if(i.length>0)i.map((e=>{"active"!==e.status&&Y(e)}));else{let e=[...m],t=e.findIndex((e=>"install_plugin_theme"==e?.name));t>-1&&(e[t].status="done",u(e)),fe("importing_site_content")}}}})():"importing_site_content"==e?Q("global_settings"):"setting_up_site"==e?(async()=>{let e=t?.kit_template?.length>0?t.kit_template:[],n={color:F.current.color,typography:F.current.typo},r=[];if(!((await(async()=>{let e=new FormData;return e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_post_count"),e.append("builder",t?.kit_builder),await s().post(ajaxurl,e).then((e=>e.data))})()).data.count>4)){r.push({id:0,label:(0,a.__)("Importing Blog Posts","wdesignkit"),status:"loading"}),f([...r]),await(async()=>{if("ai_import"==i?.import_type){let e=i?.site_type?i.site_type:"",a=i?.site_description?i.site_description:"",n=i?.site_info?.site_name?i.site_info.site_name:"",r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","wkit_generate_post_data"),r.append("site_type",e),r.append("site_desc",a),r.append("site_title",n),r.append("builder",t?.kit_builder);let l=await s().post(ajaxurl,r).then((e=>e.data));if(l?.success){let e=JSON?.parse(l?.response)?JSON.parse(l.response):[],t=await K(e);await Z(t)}}else{let e={posts:[{elementor_id:19509,gutenberg_id:19873,title:"The Inspiring Story Behind Our Brand",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-1.png",category:["Company Story"],tags:["brand story","mission","handcrafted","unique"]},{elementor_id:19510,gutenberg_id:19874,title:"Overcoming Common Challenges in the Industry",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-2.png",category:["Industry Problems & Solutions"],tags:["industry challenges","solutions","customer service","trends"]},{elementor_id:19511,gutenberg_id:19875,title:"How Our Process or Experience Ensures Success",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-3.png",category:["Process or Experience"],tags:["customer experience","craftsmanship","process"]},{elementor_id:19512,gutenberg_id:19876,title:"Celebrating Our Customers: Success Stories With Our Brand",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-4.png",category:["Success Stories & Achievements"],tags:["customer success","testimonials","milestones","achievements"]},{elementor_id:19513,gutenberg_id:19877,title:"Choosing the Perfect Solution for every Problem",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-5.png",category:["Choosing the Right Solution"],tags:["event planning","style guide"]},{elementor_id:19514,gutenberg_id:19878,title:"Meet Our Team: The Heart of Our Brand",img_url:wdkitData.wdkit_site_api_url+"images/plugins/import-template/listing/post-6.png",category:["Culture & Team"],tags:["team spirit","company culture","values","behind the scenes"]}],categories:["Company Story","Industry Problems & Solutions","Process or Experience","Success Stories & Achievements","Choosing the Right Solution","Culture & Team","Customer Experience","Craftsmanship"],tags:["brand story","mission","handcrafted","unique","industry challenges","solutions","customer service","trends","customer experience","craftsmanship","process","customer success","testimonials","milestones","achievements","event planning","style guide","team spirit"]},t=await K(e);await Z(t)}})();let e=[...r],n=e.findIndex((e=>0==e.id));n>-1&&(e[n].status="done",f([...e]))}if(e.length>0){await Promise.all(e.map((e=>{let t=e.title.split("|"),a=t?.[0];r.push({id:e.id,label:a,status:"loading"}),f(r)})));let t=[...r];if(await Promise.all(e.map((async e=>{let a=t.findIndex((t=>t.id==e.id));try{const i=await ge(e,n);if(!i.success){t[a].status="fail",f([...t]);let i={id:e.id,status:"json_import",data:"",message:"json not imported"};return void E.current.push(i)}if("loading"==i.success)return t[a].status="loading",void f([...t]);t[a].status="done",f([...t])}catch(i){return console.error(i),t[a].status="fail",E.current.push(e.id),void f([...t])}}))),B.current.length>0){P.current=[],await Promise.all(B.current.map((async e=>{var a=e?.result?e.result:"";if((await we(e)).success){let e=a?.data?.id?a.data.id:"",i=t.findIndex((t=>t.id==e));i>-1&&(t[i].status="done",f([...t]))}})));let e=[...m],a=e.findIndex((e=>"setting_up_site"==e?.name));e[a].status="done",u(e),await _e()}else{let e=[...m],t=e.findIndex((e=>"setting_up_site"==e?.name));e[t].status="done",u(e),await _e()}}})():"finalizing_site_setting"==e&&_e())};return(0,g.jsxs)("div",{className:"wkit-site-loader-main",children:[(0,g.jsxs)("div",{className:"wkit-site-loader-content",children:[(0,g.jsxs)("div",{className:"wkit-site-loader-header",children:[(0,g.jsx)("span",{className:"wkit-site-loader-title",children:(0,a.__)("We’re Setting Up Your Website","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-site-loader-subtitle",children:(0,a.__)("Relax while we prepare everything you need - plugins, theme, and content. This will only take a moment.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-site-loader-body",children:[(0,g.jsx)("div",{className:"wkit-site-loading-content",children:m.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-site-import-step",children:[(0,g.jsxs)("div",{className:"wkit-import-step-header",children:["done"==e?.status&&z,"pending"==e?.status&&H,"loading"==e?.status&&W,"fail"==e?.status&&J,(0,g.jsx)("span",{className:"wkit-import-step-title "+("done"==e?.status||"loading"==e?.status?"wkit-import-step-activate":""),children:e?.label})]}),(0,g.jsxs)("div",{className:"wkit-import-step-body",children:[(0,g.jsx)("div",{className:"wkit-step-left-border",children:(0,g.jsx)("span",{className:"wkit-step-left-hr"})}),(0,g.jsxs)("div",{className:"wkit-import-step-content",children:["install_plugin_theme"==e.name&&X(),"importing_site_content"==e.name&&ee(),"setting_up_site"==e.name&&te()]})]})]},t)))}),(0,g.jsx)("div",{className:"wkit-site-loading-gif",children:(0,g.jsx)(Ln(),{animationData:An,loop:!0,autoplay:!0,style:{width:350,height:350}})})]}),E.current.length>0&&(0,g.jsxs)("div",{className:"wkit-site-loader-footer",children:[(0,g.jsx)("button",{className:"wkit-outer-btn-class",disabled:!L||!$,onClick:()=>t.setcurrent_page("success_import"),children:(0,a.__)("Skip","wdesignkit")}),S?(0,g.jsx)("button",{className:"wkit-site-loader-next wkit-btn-class",disabled:!L||!$,children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-site-loader-next wkit-btn-class",disabled:!L||!$,onClick:()=>(async()=>{D(!0),C(!1);let e=[..._],a=t?.kit_template?.length>0?t.kit_template:[];if(E.current.length>0){E.current.map((t=>{let a=e.findIndex((e=>e.id==t));a>-1&&(e[a].status="loading",f([...e]))}));let t=[...E.current];await Promise.all(t.map((async t=>{let i={color:F.current.color,typography:F.current.typo},s=a.findIndex((e=>e.id==t));if(s>-1){let n=a[s],r=await ge(n,i),l=e.findIndex((e=>e.id==t));if(r?.success){e[l].status="done",f([...e]);let a=E.current.findIndex((e=>e==t));a>-1&&E.current.splice(a,1)}else e[l].status="fail",f([...e])}}))),await(async e=>{let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","wdkit_remove_header_footer"),t.append("post_id",JSON.stringify(e)),await s().post(ajaxurl,t).then((e=>e.data))})(P.current),P.current=[],await Promise.all(B.current.map((async e=>{var t=e?.result?e.result:"";let a=[..._],i=t?.data?.id?t.data.id:"",s=a.findIndex((e=>e.id==i));a[s].status="loading",f([...a]),(await we(e)).success&&s>-1&&(a[s].status="done",f([...a]))})));let i=[...m],n=i.findIndex((e=>"setting_up_site"==e?.name));i[n].status="done",u(i),await _e()}D(!1),C(!0)})(),children:E.current.length>1?(0,a.__)("Retry Missing Pages","wdesignkit"):(0,a.__)("Retry Missing Page","wdesignkit")})]})]}),v&&(0,g.jsx)("iframe",{id:"wkit-dumy-post-ifram",ref:T,src:v})]})})),Fn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({})))((t=>{const[i,n]=(0,e.useState)(),[r,l]=(0,e.useState)(),[o,d]=(0,e.useState)([]),[c,p]=(0,e.useState)(),[m,u]=(0,e.useState)("temp_preview"),[h,w]=(0,e.useState)("normal_import"),_=(0,e.useRef)();let k=he(),b=ue(),x=pe();var v=wdkitData.WDKIT_URL;let y=wdkitData?.wdkit_white_label?.plugin_logo||v+"assets/images/jpg/wdkit_loader.gif";const{hash_route:j}=x?.state||{},N=[{label:"Customize Website",value:["temp_preview"]},{label:"Select Features",value:["temp_feature"]},{label:"Content & Media Setup",value:["content_media","select_method"]},{label:"All Set!",value:["all_set"]}];let $=[{p_id:1012,plugin_name:"WooCommerce",plugin_slug:"woocommerce/woocommerce.php",original_slug:"woocommerce",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2001,plugin_name:"Advanced Custom Fields",plugin_slug:"advanced-custom-fields/acf.php",original_slug:"advanced-custom-fields",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2002,plugin_name:"All-In-One Security (AIOS)",plugin_slug:"all-in-one-wp-security-and-firewall/wp-security.php",original_slug:"all-in-one-wp-security-and-firewall",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2003,plugin_name:"WP-Optimize - Clean, Compress, Cache",plugin_slug:"wp-optimize/wp-optimize.php",original_slug:"wp-optimize",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2004,plugin_name:"Nexter Extension – Site Enhancements Toolkit",plugin_slug:"nexter-extension/nexter-extension.php",original_slug:"nexter-extension",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2005,plugin_name:"Rank Math SEO – AI SEO Tools to Dominate SEO Rankings",plugin_slug:"seo-by-rank-math/rank-math.php",original_slug:"seo-by-rank-math",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2006,plugin_name:"FluentSMTP – WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider",plugin_slug:"fluent-smtp/fluent-smtp.php",original_slug:"fluent-smtp",freepro:0,plugin_builder:"",type:"plugin"},{p_id:2007,plugin_name:"UpdraftPlus: WP Backup & Migration Plugin",plugin_slug:"updraftplus/updraftplus.php",original_slug:"updraftplus",freepro:0,plugin_builder:"",type:"plugin"}];(0,e.useEffect)((()=>{const{type:e}=x.state||{};if("browse"==e){let e=Object.assign({},c,{import_condition:"browse"});p(e)}document.body.classList.contains("folded")||document.body.classList.add("folded"),C()}),[]),(0,e.useEffect)((()=>{if(o?.length>0&&t.wdkit_meta?.success){let e=t.wdkit_meta?.builder,a=i.post_builder;_.current=f(a,e),S()}}),[o,t.wdkit_meta?.success]);const C=async()=>{if(!k?.kit_id)return void b("/browse");let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","kit_template"),e.append("template_id",k.kit_id),e.append("builder",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((e=>e.data));if(t?.success){let e=t?.template?.length>0?t.template:[],a=t?.kitdata?t.kitdata:"",i=[];e.length>0&&(e=e.filter((e=>{if("nxt_builder"!=e?.wp_post_type||"section"!=e?.type)return e;i.push(e)})),e=[...e,...i]),d(e),n(a)}},S=()=>{let e={color:[],typo:[]};o.map((t=>{let a=t.global_data?t.global_data:"";if(a){let t=a.color?a.color:[],i=a.typography?a.typography:[];if(t?.length>0&&t.map((t=>{if("elementor"==_.current)var a=e.color.findIndex((e=>e?._id==t?._id));else"gutenberg"==_.current&&(a=e.color.findIndex((e=>e?.id==t?.id)));if(-1==a){if("elementor"==_.current)var i=Object.assign({},t,{new_color:t.color});else"gutenberg"==_.current&&(i=Object.assign({},t,{new_color:t.value}));e.color.push(i)}})),i?.length>0){let t=[];i.map((a=>{if("elementor"==_.current)var i=e.typo.findIndex((e=>e?._id==a?._id)),s=a?.typography_font_family;else"gutenberg"==_.current&&(i=e.typo.findIndex((e=>e?.id==a?.id)),s=a.value?.fontFamily?.family);-1==t.findIndex((e=>e?.original==s))&&t.push({original:s,replace:s}),-1==i&&e.typo.push(a)}));let a=Object.assign({},c,{font_family:t});p(a)}}})),l(e)},D=()=>(0,g.jsx)("div",{className:"wkit-site-import-success-main",children:(0,g.jsxs)("div",{className:"wkit-site-import-success-content",children:[(0,g.jsxs)("div",{className:"wkit-import-success-header",children:[(0,g.jsx)("img",{className:"wkit-import-success-img",src:v+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif",width:"200px"}),(0,g.jsx)("span",{className:"wkit-import-success-title",children:(0,a.__)("🎉 Success! Your Website is Ready","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-success-subtitle",children:(0,a.__)("Everything’s set up. You can start customizing or explore your new site right away.","wdesignkit")})]}),(0,g.jsx)("div",{className:"wkit-site-import-success-footer",children:c?.site_url&&(0,g.jsx)("a",{className:"wkit-import-success-site wkit-btn-class",href:c.site_url,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Preview Site","wdesignkit")})})]})});return(0,g.jsx)("div",{className:"wkit-temp-import-mian",children:i?(0,g.jsxs)(g.Fragment,{children:["temp_preview"!=m&&(E=!0,(0,g.jsxs)("div",{className:"wkit-import-temp-header",children:[(0,g.jsx)(li,{}),(0,g.jsx)("div",{className:"wkit-header-breadcrumbs",children:N.map(((t,a)=>(t.value.includes(m)&&(E=!1),(0,g.jsxs)(e.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-breadcrumbs-card "+(E||t.value.includes(m)?"wkit-active-breadcrumbs":""),children:[(0,g.jsx)("i",{className:"wdkit-i-round-check"}),(0,g.jsx)("span",{className:"wkit-breadcrumbs-card-title",children:t.label})]}),a<N.length-1&&(0,g.jsx)("i",{className:"wdkit-i-right-arrow"})]},a))))})]})),"temp_preview"==m&&r&&(0,g.jsx)(Dn,{global_data:r,kit_template:o,site_obj:c,kit_builder:_.current,ai_compatible:i?.ai_compatible,kit_data:i,setkit_template:e=>d(e),setcurrent_page:e=>u(e),back_routing:j,setsite_obj:e=>p(e)}),"temp_feature"==m&&o?.length>0&&(0,g.jsx)(Cn,{site_obj:c,kit_data:i,kit_template:o,new_plugins:$,ai_compatible:i?.ai_compatible,setcurrent_page:e=>u(e),setimport_type:e=>w(e),setsite_obj:e=>p(e)}),"select_method"==m&&(0,g.jsx)(En,{import_type:h,setimport_type:e=>w(e),site_obj:c,setcurrent_page:e=>u(e),setsite_obj:e=>p(e)}),"content_media"==m&&(0,g.jsx)(Pn,{import_type:h,setimport_type:e=>w(e),site_obj:c,setsite_obj:e=>p(e),setcurrent_page:e=>u(e)}),"all_set"==m&&o?.length>0&&(0,g.jsx)(Mn,{site_obj:c,kit_template:o,new_plugins:$,kit_builder:_.current,setsite_obj:e=>p(e),kit_data:i,setcurrent_page:e=>u(e)}),"success_import"==m&&(0,g.jsx)(D,{site_obj:c})]}):(0,g.jsx)("div",{className:"wb-loader",style:{display:"flex"},draggable:!1,children:(0,g.jsx)("img",{style:{width:"150px",height:"150px",marginLeft:"-36px"},src:y,draggable:!1})})});var E}));var In=wdkitData.WDKIT_ASSETS;const Bn=Ya((e=>({LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_notification:t=>e(si(t)),wdkit_set_meta:t=>e(ti(t))})))((t=>{const i=ue();let n=r();const[l,o]=(0,e.useState)(!1),[d,p]=(0,e.useState)(""),[m,u]=(0,e.useState)(""),[h,f]=(0,e.useState)(""),[k,x]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),[j,N]=(0,e.useState)(!1),$=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},C=async()=>{if(v)return;if(""==d.trim()||""==h.trim()||!Gs(h)||""==m.trim())return void N(!0);y(!0);const e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wdkit_user_signup"),e.append("username",d),e.append("email",h),e.append("password",m);var a=await s().post(ajaxurl,e,{headers:{"content-type":"multipart/form-data"}}).then((e=>e.data)).catch((e=>e));if(a&&a.success){c(Object.assign({},{user_email:h},a,{login_type:"normal"}));let e=await _();t.wdkit_set_meta(e.data),a?.message&&t.wdkit_set_notification({title:a?.message,desc:a?.description}),y(!1),i(t?.LoginRoutes?`${t.LoginRoutes}`:"/browse"),p(""),f(""),u("")}else t.wdkit_set_notification({title:a?.message,desc:a?.description});y(!1)},S=e=>k==e?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("span",{children:[(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"}),(0,g.jsx)("span",{className:"wkit-loader"})]})}):(0,g.jsxs)("span",{children:[(0,a.__)("Continue with","wdesignkit")," ",(0,a.__)(e)]});return(0,g.jsxs)("div",{className:"wdkit-signup",children:[(0,g.jsxs)("div",{className:"wdkit-signup-left",children:[(0,g.jsx)(Vs,{type:"signup"}),(0,g.jsxs)("div",{className:"wdkit-form-card",children:[(0,g.jsx)("h2",{className:"wdkit-section-h",children:(0,a.__)("Sign Up!","wdesignkit")}),(0,g.jsx)("p",{className:"wdkit-sm-txt",children:(0,a.__)("Create your account to get started.","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsx)("input",{type:"text",id:"WDkitUserName",className:"wdkit-entry-input "+(j&&""===d.trim()?"wdkit-input-error":""),autoComplete:"off",value:d,onChange:e=>{p(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&C()},placeholder:(0,a.__)("Name","wdesignkit"),required:!0}),j&&""===d.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsx)("input",{type:"email",id:"WDkitUserEmail",className:"wdkit-entry-input "+(!j||""!==h.trim()&&Gs(h)?"":"wdkit-input-error"),value:h,onChange:e=>{f(e.target.value)},autoComplete:"off",placeholder:(0,a.__)("Email","wdesignkit"),required:!0,onKeyDown:e=>{"Enter"===e.key&&C()}}),j&&""===h.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")}),j&&""!==h.trim()&&!Gs(h)&&(0,g.jsx)(qs,{text:(0,a.__)("Email is not valid","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wdkit-input-cover",children:[(0,g.jsxs)("div",{className:"wdkit-password-cover "+(j&&""===m.trim()?"wdkit-input-error":""),children:[(0,g.jsx)("input",{type:l?"text":"password",autoComplete:"off",className:"wdkit-entry-input "+(j&&""===m.trim()?"wdkit-input-error":""),placeholder:(0,a.__)("Password","wdesignkit"),required:!0,value:m,onChange:e=>{u(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&C()}}),(0,g.jsx)("div",{className:"wdkit-pass-eye",children:l?(0,g.jsx)("span",{onClick:()=>{o(!l)},children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}):(0,g.jsx)("span",{onClick:()=>{o(!l)},children:(0,g.jsx)("i",{className:"wdkit-i-eye-off"})})})]}),j&&""===m.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")})]}),v?(0,g.jsx)("button",{type:"submit",className:"wdkit-register-button",disabled:v,children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{type:"submit",className:"wdkit-register-button",disabled:v,onClick:()=>{C()},children:(0,a.__)("Sign Up","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-hr-txt",children:[(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-divider",children:(0,a.__)("OR CONTINUE WITH","wdesignkit")}),(0,g.jsx)("hr",{})]}),(0,g.jsxs)("div",{className:"wdkit-social-login-btns",children:[(0,g.jsxs)("a",{className:"wdkit-social-signup",onClick:()=>{(async()=>{var e=$();x("Google");var s=`https://accounts.google.com/o/oauth2/auth?client_id=428406150181-7rui8lmg2m9nkqqahreida3j02apfnim.apps.googleusercontent.com&redirect_uri=${wdkitData.wdkit_site_api_url}api/auth/google/callback-plugin&response_type=code&scope=email%20profile&state=${e}`,r=screen.height/2-260,l=screen.width/2-335,o=window.open(s,"","location=1,status=1,resizable=yes,width=670,height=520,top="+r+",left="+l);const d=async()=>{if(o&&!o.closed)setTimeout(d,100);else{let r={type:"social_login",state:e,login_type:"normal",site_url:n};var s=await w(r).then((async e=>e));if(1==s?.data?.success){let e=s?.data?.user?.user_email,a=s?.data?.success,n="Login successfully",r=s?.data?.token;r&&e&&c({messages:n,success:a,token:r,user_email:e,login_type:"normal"});let l=await _();t.wdkit_set_meta(l.data),t.wdkit_set_notification({title:s?.data?.message,desc:s?.data?.description}),t?.LoginRoutes?i(`${t.LoginRoutes}`):window.wdkit_save_snippet?i("/mysnippet"):i("/my_uploaded")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});x(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("img",{src:In+"images/svg/social/google-sm-icon.svg",alt:(0,a.__)("google-logo","wdesignkit"),draggable:!1}),S((0,a.__)("Google","wdesignkit"))]}),(0,g.jsxs)("a",{className:"wdkit-social-signup",onClick:()=>{(async()=>{var e=$();x("Facebook");var s=`https://www.facebook.com/v12.0/dialog/oauth?client_id=590712039607331&redirect_uri=${encodeURIComponent(`${wdkitData.wdkit_site_api_url}api/auth/facebook/callback-plugin`)}&response_type=code&scope=email&state=${e}`,r=screen.height/2-260,l=screen.width/2-335,o=window.open(s,"","location=1,status=1,resizable=yes,width=670,height=520,top="+r+",left="+l);const d=async()=>{if(o&&!o.closed)setTimeout(d,100);else{let r={type:"social_login",state:e,site_url:n};var s=await w(r).then((async e=>e));if(1==s?.data?.success){let e=s?.data?.user?.user_email,a=s.data.success,n="Login successfully",r=s.data.token;const l={messages:n,success:a,token:r,user_email:e,login_type:"normal"};r&&e&&await c(l);let o=await _();t.wdkit_set_meta(o.data),t.wdkit_set_notification({title:s?.data?.message,desc:s?.data?.description}),t?.LoginRoutes?i(`${t.LoginRoutes}`):window.wdkit_save_snippet?i("/mysnippet"):i("/my_uploaded")}else t.wdkit_set_notification({title:(0,a.__)("Invalid Login Details","wdesignkit"),desc:(0,a.__)("Login Error: Check your details and try again.","wdesignkit")});x(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("img",{src:In+"images/svg/social/facebook-sm-icon.svg",alt:(0,a.__)("facebook-logo","wdesignkit"),draggable:!1}),S((0,a.__)("Facebook","wdesignkit"))]})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsxs)("p",{className:"wdkit-sm-txt wdkit-terms",children:[(0,a.__)("By clicking continue, you agree to our ","wdesignkit"),(0,g.jsxs)("a",{className:"wdkit-para-link",href:wdkitData.wdkit_server_url+"terms",target:"_blank",rel:"noopener noreferrer",children:[" ",(0,a.__)("Terms of Service","wdesignkit")]})," ",(0,a.__)("and","wdesignkit")," ",(0,g.jsx)("a",{className:"wdkit-para-link",href:wdkitData.wdkit_site_api_url+"privacy-policy",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Privacy Policy.","wdesignkit")})]})]})]}),(0,g.jsx)(Rs,{})]})})),On=Ya((e=>({})),(e=>({wdkit_set_notification:t=>e(si(t))})))((t=>{const[i,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(!1),[o,d]=(0,e.useState)(""),c=async()=>{if(""==o.trim()||!Gs(o))return void l(!0);n(!0);const e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","forgot_password"),e.append("email",o);var i=await s().post(ajaxurl,e,{headers:{"content-type":"multipart/form-data"}}).then((e=>e.data)).catch((e=>e));i&&i.success&&d(""),t.wdkit_set_notification({title:(0,a.__)(i?.message,"wdesignkit"),desc:(0,a.__)(i?.description,"wdesignkit")}),l(!1),n(!1)};return(0,g.jsxs)("div",{className:"wdkit-fgt-pass",children:[(0,g.jsxs)("div",{className:"wdkit-fgt-left",children:[(0,g.jsx)(Vs,{type:"forgot_password"}),(0,g.jsxs)("div",{className:"wdkit-form-card",children:[(0,g.jsxs)("div",{className:"wdkit-form-sec-head",children:[(0,g.jsx)("h2",{className:"wdkit-section-h",children:(0,a.__)("Request Email","wdesignkit")}),(0,g.jsx)("p",{className:"wdkit-sm-txt",children:(0,a.__)("This is how others will see you on the site.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-forgot-pass-input",children:[(0,g.jsx)("input",{type:"email",id:"WDkitUserEmail",name:"UserEmail",className:"wdkit-entry-input "+(!r||""!==o.trim()&&Gs(o)?"":"wdkit-input-error"),placeholder:(0,a.__)("Email","wdesignkit"),value:o,onChange:e=>{d(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&c()}}),r&&""===o.trim()&&(0,g.jsx)(qs,{text:(0,a.__)("Please fill this field","wdesignkit")}),r&&""!==o.trim()&&!Gs(o)&&(0,g.jsx)(qs,{text:(0,a.__)("Email is not valid","wdesignkit")})]}),(0,g.jsx)("button",{type:"submit",className:"wdkit-register-button",disabled:i,onClick:()=>{c()},children:i?(0,g.jsx)(mi,{}):(0,a.__)("Reset Now","wdesignkit")})]})]}),(0,g.jsx)(Rs,{})]})})),Rn=t=>{wdkitData.wdkit_site_api_url;const a=e=>Array.from({length:e}),[i,s]=(0,e.useState)(!0),n=pe(),r="/mysnippet"===n.pathname,l=n.pathname.startsWith("/snippet-kit"),o=()=>(0,g.jsxs)("div",{className:"wdkit-search-filter wdkit-cdsnip-cards-header",children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-cards-header-left",children:(0,g.jsx)("div",{className:"wkit-btn-class wdkit-back-btn skeleton-placeholder",style:{width:"120px",height:"36px"}})}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-cards-header-right",children:[(0,g.jsxs)("div",{className:"wkit-plugin-name",children:[(0,g.jsx)("div",{className:"wkit-check-box skeleton-placeholder",style:{width:"16px",height:"16px"}}),(0,g.jsx)("div",{className:"wkit-plugin-selection-temp",children:(0,g.jsx)("span",{className:"skeleton-placeholder",style:{width:"70px",height:"16px"}})})]}),(0,g.jsx)("div",{className:"wkit-btn-class wdkit-download-btn skeleton-placeholder",style:{width:"120px",height:"36px"}})]})]}),d=e=>(0,g.jsx)("div",{className:"wdkit-snippet-crd-main",children:(0,g.jsxs)("div",{className:"wdkit-snippet-card",children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-info",children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-head",children:[(0,g.jsx)("span",{className:"wdkit-cdsnip-tag skeleton-placeholder"}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-top-icons",children:[(0,g.jsx)("span",{className:"wdkit-cdsnip-frpr skeleton-placeholder"}),r&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"wdkit-cdsnip-crd-badge skeleton-placeholder"}),(0,g.jsx)("span",{className:"wdkit-cdsnip-crd-badge skeleton-placeholder"})]})]})]}),(0,g.jsx)("h3",{className:"wdkit-cdsnip-card-title skeleton-placeholder"}),(0,g.jsx)("span",{className:"wdkit-cdsnip-card-desc skeleton-placeholder"})]}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-footer",children:[l&&(0,g.jsx)("div",{className:"wkit-plugin-name",children:(0,g.jsx)("div",{className:"wkit-check-box skeleton-placeholder",style:{width:"16px",height:"16px"}})}),!l&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-num-info",children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-builder-icon skeleton-placeholder"}),(0,g.jsx)("div",{className:"wdkit-cdsnip-builder-icon skeleton-placeholder"})]}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-btm-right-icons",children:[(0,g.jsx)("span",{className:"wdkit-cdsnip-dwnld-btn skeleton-placeholder"}),r&&(0,g.jsx)("span",{className:"wdkit-cdsnip-crd-badge skeleton-placeholder"})]})]})]})]})},e);return(0,g.jsxs)(g.Fragment,{children:[t?.header&&(0,g.jsx)(o,{}),t?.filter&&(0,g.jsx)("div",{className:"wdkit-cdsnip-filter",children:(0,g.jsxs)("div",{className:"wdkit-browse-column-inner",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-b",children:(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b skeleton-placeholder",style:{width:"60px",height:"20px"}})}),(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel",children:[(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b skeleton-placeholder",style:{width:"80px",height:"18px"}})}),(0,g.jsx)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:a(3).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-select-freePro-type",children:[(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"16px",height:"16px",borderRadius:"50%"}}),(0,g.jsx)("span",{className:"wkit-freePro-label skeleton-placeholder",style:{width:"40px",height:"16px"}})]},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b skeleton-placeholder",style:{width:"100px",height:"18px"}})}),(0,g.jsx)("div",{className:"wkit-pageType-wrap wdkit-accordion-content",children:a(3).map(((e,t)=>(0,g.jsxs)("label",{className:"wkit-pageType-list",children:[(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"16px",height:"16px",borderRadius:"50%"}}),(0,g.jsx)("span",{className:"skeleton-placeholder",style:{width:"80px",height:"16px"}})]},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b skeleton-placeholder",style:{width:"70px",height:"18px"}})}),(0,g.jsx)("div",{className:"wkit-category-wrap wdkit-accordion-content",children:a(5).map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-category-name",children:[(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"16px",height:"16px"}}),(0,g.jsx)("span",{className:"skeleton-placeholder",style:{width:"120px",height:"16px"}})]},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b skeleton-placeholder",style:{width:"60px",height:"18px"}})}),(0,g.jsx)("div",{className:"wkit-plugin-wrap wdkit-accordion-content",children:a(4).map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-plugin-name",children:[(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"16px",height:"16px"}}),(0,g.jsxs)("div",{className:"wkit-plugin-selection-temp",children:[(0,g.jsx)("div",{className:"wdkit-plug-filterlogo skeleton-placeholder",style:{width:"25px",height:"25px",borderRadius:"4px"}}),(0,g.jsx)("span",{className:"skeleton-placeholder",style:{width:"100px",height:"16px"}})]})]},t)))}),(0,g.jsx)("hr",{}),(0,g.jsx)("div",{className:"wdkit-filter-accordion-b",children:(0,g.jsx)("div",{className:"wdkit-accordion-title-b skeleton-placeholder",style:{width:"100px",height:"18px"}})}),(0,g.jsxs)("div",{className:"wdkit-accordion-content wdkit-tags-accordion",children:[(0,g.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"16px",height:"16px",position:"absolute",left:"14px",top:"50%",transform:"translateY(-50%)"}}),(0,g.jsx)("div",{className:"wdkit-tags-search skeleton-placeholder",style:{width:"100%",height:"50px",paddingLeft:"35px"}})]}),(0,g.jsx)("div",{className:"wkit-browse-tag",children:a(8).map(((e,t)=>(0,g.jsx)("div",{className:"wdkit-browse-tag-name skeleton-placeholder",style:{width:"80px",height:"32px",borderRadius:"6px"}},t)))})]})]})]})}),t?.search&&(0,g.jsx)("div",{className:"wdkit-search-filter wdkit-search-browse-snippet",children:(0,g.jsx)("div",{className:"skeleton-placeholder",style:{width:"100%",height:"50px"}})}),t?.cards&&a(12).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-skeleton-card-wrapper",children:d(t)},t)))]})},Vn=async(e,t={})=>{if(e){const a={headers:{"content-type":"multipart/form-data"},...t};return await s().post(ajaxurl,e,a).then((e=>e.data)).catch((e=>(s().isCancel(e),{success:!1,aborted:!0})))}return!1};var Wn=wdkitData.WDKIT_ASSETS;const qn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})))((t=>{const i=pe(),s=ue(),n="/mysnippet"===i.pathname,r=i.pathname.startsWith("/snippet-kit"),[l,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)(),[h,w]=(0,e.useState)(),[_,f]=(0,e.useState)(""),[k,x]=(0,e.useState)([]),[v,y]=(0,e.useState)(!1),[j,N]=(0,e.useState)(!1);let $=[{name:"install_plugin",label:"Install Required Plugin",status:"pending"},{name:"plugin_setting",label:"Plugin Setting",status:"pending"},{name:"download_snippet",label:"Download Snippet",status:"pending"}];const C=async()=>{let e=[{p_id:2004,plugin_name:"Nexter Extension – Site Enhancements Toolkit",plugin_slug:"nexter-extension/nexter-extension.php",original_slug:"nexter-extension",freepro:0,plugin_builder:"",type:"plugin"}],a=!1,i=t?.data?.plugin_id;if(i){let s=i.toString().split(",").map((e=>e.trim())),n=t.wdkit_meta?.plugin_icons||[];s.forEach((t=>{let i=n.find((e=>e.id==t));if(i){let s="4"==t;s&&(a=!0),e.push({p_id:t,plugin_name:i.name||"",plugin_slug:i.path||"",original_slug:i.slug||"",freepro:s?1:0,plugin_builder:"",type:"plugin"})}}))}if("pro"===t?.data?.free_pro&&!a){let t={p_id:4,plugin_name:"Nexter Pro Extensions",plugin_slug:"nexter-pro-extensions/nexter-pro-extensions.php",original_slug:"nexter-pro-extensions",freepro:1,plugin_builder:"",type:"plugin"};e.push(t)}let s=new FormData;s.append("action","get_wdesignkit"),s.append("kit_nonce",wdkitData.kit_nonce),s.append("type","check_plugins_depends"),s.append("plugins",JSON.stringify(e)),s.append("editor",wdkitData.use_editor);const n=await Vn(s);if(n?.success){let e=n?.data?.plugins?n?.data?.plugins:[],a=e.filter((e=>"active"!=e.status)),i=e.filter((e=>"active"!=e.status&&"1"==e.freepro)),s=t.wdkit_meta?.plugin_icons||[];return s.length>0&&(i=i.map((e=>{const t=s.find((t=>t.slug===e.original_slug||"nexter-pro-extensions"===e.original_slug&&"nexter-extension"===t.slug));return{...e,icon_url:t?.icon_url||null}}))),{install_plg:a,pro_plugin:i}}return{install_plg:[],pro_plugin:[]}},S=k.includes(t.data.id),D=()=>void 0!==t.isFavorited?t.isFavorited:t.data.favorite,E=e=>"parent_loader"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}):"loading"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"done"==e||"active"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"done_parent"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-parent",style:{fontSize:"20px"}}):"pending"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"}):"parent_fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}):void 0,P=()=>{const[a,i]=(0,e.useState)($),[s,n]=(0,e.useState)([]),r=(0,e.useRef)([]),l=(0,e.useRef)([]);(0,e.useEffect)((()=>{v&&m("install_plugin")}),[v]);const o=async(e,t)=>{let s=[...a],n=s.findIndex((t=>t.name==e));n>-1&&(s[n].status=t,"install_plugin"===e&&("loading"===t?s[n].label="Installing Required Plugin":"done"===t?s[n].label="Installed Required Plugin":"fail"===t&&(s[n].label="Installation Failed"))),i(s)},d=async e=>{if(l.current.findIndex((e=>"loading"==e.status))>-1)r.current.push(e);else{let t=Object.assign({},e,{status:"loading"});l.current.push(t),n([...l.current]),await(async e=>{let t=new FormData;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);var a=await Vn(t);if(a?.success){let e=l.current.findIndex((e=>e.p_id==a.p_id));l.current[e].status=a.status,n([...l.current])}let i=r.current.findIndex((e=>e.p_id==a.p_id));i>-1&&r.current.splice(i,1),r.current.length>0?d(r.current[0]):(await o("install_plugin","done"),m("plugin_setting"))})(e)}},m=async e=>{if("install_plugin"==e)await o(e,"loading"),h?.install_plg?.length>0?await Promise.all(h.install_plg.map((async e=>{await d(e)}))):(await o("install_plugin","done"),m("plugin_setting"));else if("plugin_setting"==e)await o(e,"loading"),await o(e,"done"),m("download_snippet");else if("download_snippet"==e){await o(e,"loading");let a=p(),i=new FormData;i.append("action","wdkit_code_snippet"),i.append("type","download_code_snippet"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("id",t.data.id),i.append("w_unique",t.data.w_unique),a&&a.token&&(i.append("token",a.token),i.append("free_pro",t.data?.free_pro));const s=await Vn(i);if(!(s&&s.data&&s.data.post_id))return await o(e,"fail"),N(!1),void y(!1);{N(!1),x((e=>e.includes(t.data.id)?e:[...e,t.data.id])),y(!1);const e={title:"",desc:"",body:"download_complete"};u((t=>({...t,...e}))),s.data.post_id?f({view:"admin.php?page=nxt_code_snippets#/edit/"+s.data.post_id}):f({view:"admin.php?page=nxt_code_snippets"}),window.wdkit_save_snippet&&(window.parent&&window.parent!==window&&window.parent.postMessage({action:"snippetDownloaded"},"*"),setTimeout((()=>{c(!1)}),3e3))}await o(e,"done")}};return(0,g.jsx)("div",{className:"wkit-import-temp-process wkit-snippet-download-process",children:(0,g.jsx)("div",{className:"wkit-import-process-container",children:a.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-temp-process-step",children:[(0,g.jsxs)("div",{className:`wkit-import-temp-process-parent wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:E(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.label})]}),s.length>0&&"install_plugin"==e.name&&l.current.map((t=>(0,g.jsxs)("div",{className:`wkit-import-temp-process-child wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:E(t.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:t.plugin_name})]},t.p_id)))]},t)))})})},A=()=>(0,g.jsxs)("div",{className:"wkit-import-temp-success",children:[(0,g.jsx)("img",{className:"wkit-import-temp-success-gif",src:Wn+"images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wkit-import-temp-success-title",children:(0,a.__)("Yay! Snippet Successfully Downloaded","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-temp-success-desc",children:(0,a.__)("We have downloaded your selected snippet. Now you can use it in your code snippets.","wdesignkit")}),(0,g.jsx)("a",{href:_.view,className:"wkit-import-temp-success-btn wkit-btn-class",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("view snippet","wdesignkit")})]});return(0,g.jsxs)("div",{className:"wdkit-snippet-crd-main",children:[d&&(0,g.jsx)(Be,{title:m?.title||"",desc:m?.desc||"",body:(T=m?.body,"loading"==T?(()=>{let e=wdkitData?.wdkit_white_label?.plugin_logo||Wn+"images/jpg/wdkit_loader.gif";return(0,g.jsx)("img",{className:"wkit-card-loader-gif",src:e,draggable:!1})})():"download_snippet"==T?(0,g.jsx)(P,{}):"download_complete"==T?(0,g.jsx)(A,{}):"requre_pro_plugin"==T?(e=>{const t={4:{name:"nexter-pro-extensions",link:"https://nexterwp.com/pricing/",lable:"Nexter Pro Extensions",desc:"This snippet requires the Nexter Pro Extensions plugin. Please upgrade to Pro to unlock this snippet."}};return(0,g.jsx)("div",{className:"wkit-popup-pro-plugin",children:e.length>0&&e.map((e=>{let a=t?.[e.p_id]?.link?t[e.p_id].link:"";return(0,g.jsxs)("div",{className:"wkit-pro-plugin-list",children:[(0,g.jsxs)("div",{className:"wkit-pro-plugin-cont",children:[(0,g.jsx)("img",{className:"wkit-pro-plugin-icon",src:e?.icon_url?e.icon_url:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:e.plugin_name}),(0,g.jsx)("span",{className:"wkit-pro-plugin-txt",children:e?.plugin_name})]}),(0,g.jsx)("a",{className:"wkit-pro-plugin-link",href:a,target:"_blank",rel:"noopener",children:(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 11 11",fill:"none",children:[(0,g.jsx)("path",{d:"M5.05012 1C3.22528 1.00329 2.26971 1.04809 1.65903 1.65877C1 2.3178 1 3.37849 1 5.49987C1 7.62125 0.999999 8.68194 1.65903 9.34097C2.31806 10 3.37875 10 5.50013 10C7.62151 10 8.6822 10 9.34123 9.34097C9.95191 8.73029 9.99671 7.77472 10 5.94988",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M10.1233 1.6049C10.3193 1.41039 10.3205 1.0938 10.126 0.897799C9.93146 0.701793 9.61488 0.700584 9.41888 0.8951L10.1233 1.6049ZM6.6478 3.6451C6.45179 3.83961 6.45058 4.1562 6.6451 4.3522C6.83961 4.54821 7.1562 4.54942 7.3522 4.3549L6.6478 3.6451ZM9.51425 1.11353L9.42705 1.60587L9.42705 1.60587L9.51425 1.11353ZM7.49996 0.5C7.22381 0.500024 6.99998 0.723901 7 1.00004C7.00002 1.27619 7.2239 1.50002 7.50004 1.5L7.49996 0.5ZM9.5 3.5C9.5 3.77614 9.72386 4 10 4C10.2761 4 10.5 3.77614 10.5 3.5H9.5ZM9.88647 1.48587L10.3788 1.39877L10.3788 1.39877L9.88647 1.48587ZM9.77108 1.25L9.41888 0.8951L6.6478 3.6451L7 4L7.3522 4.3549L10.1233 1.6049L9.77108 1.25ZM9.51425 1.11353L9.60144 0.621192C9.24114 0.557384 8.70443 0.528532 8.2832 0.514427C8.06721 0.507194 7.87201 0.503594 7.73084 0.501798C7.66018 0.500899 7.60288 0.500449 7.56305 0.500225C7.54313 0.500112 7.52757 0.500056 7.51689 0.500028C7.51154 0.500014 7.50742 0.500007 7.50458 0.500004C7.50315 0.500002 7.50205 0.500001 7.50128 0.5C7.50089 0.5 7.50059 0.5 7.50037 0.5C7.50026 0.5 7.50017 0.5 7.5001 0.5C7.50007 0.5 7.50003 0.5 7.50001 0.5C7.49998 0.5 7.49996 0.5 7.5 1C7.50004 1.5 7.50003 1.5 7.50002 1.5C7.50002 1.5 7.50002 1.5 7.50003 1.5C7.50004 1.5 7.50008 1.5 7.50013 1.5C7.50024 1.5 7.50044 1.5 7.50071 1.5C7.50126 1.5 7.50214 1.5 7.50334 1.5C7.50573 1.50001 7.50939 1.50001 7.51425 1.50002C7.52399 1.50005 7.53854 1.5001 7.55741 1.50021C7.59515 1.50042 7.65008 1.50085 7.71812 1.50172C7.85435 1.50345 8.04239 1.50692 8.24974 1.51387C8.6752 1.52811 9.14562 1.55603 9.42705 1.60587L9.51425 1.11353ZM10 3.5C10.5 3.5 10.5 3.49997 10.5 3.49994C10.5 3.49993 10.5 3.49989 10.5 3.49986C10.5 3.49979 10.5 3.4997 10.5 3.49959C10.5 3.49937 10.5 3.49906 10.5 3.49868C10.5 3.4979 10.5 3.4968 10.5 3.49538C10.5 3.49254 10.5 3.48841 10.5 3.48307C10.4999 3.47239 10.4999 3.45683 10.4998 3.43692C10.4995 3.39709 10.4991 3.33979 10.4982 3.26914C10.4964 3.12798 10.4928 2.9328 10.4855 2.71683C10.4714 2.29563 10.4426 1.759 10.3788 1.39877L9.88647 1.48587L9.39412 1.57298C9.44392 1.85446 9.47183 2.32489 9.48609 2.75033C9.49304 2.95767 9.49652 3.1457 9.49827 3.28193C9.49914 3.34997 9.49957 3.4049 9.49979 3.44263C9.49989 3.4615 9.49995 3.47605 9.49997 3.48579C9.49999 3.49065 9.49999 3.49432 9.5 3.49671C9.5 3.4979 9.5 3.49878 9.5 3.49933C9.5 3.49961 9.5 3.4998 9.5 3.49991C9.5 3.49997 9.5 3.5 9.5 3.50002C9.5 3.50003 9.5 3.50002 9.5 3.50002C9.5 3.50001 9.5 3.5 10 3.5ZM9.51425 1.11353L9.42705 1.60587C9.42825 1.60608 9.42604 1.60583 9.42166 1.60358C9.41726 1.60132 9.4121 1.59777 9.40714 1.5928C9.40217 1.58784 9.39863 1.58268 9.39638 1.5783C9.39414 1.57394 9.3939 1.57175 9.39412 1.57298L9.88647 1.48587L10.3788 1.39877C10.3076 0.996416 10.0039 0.692473 9.60144 0.621192L9.51425 1.11353Z",fill:"#020202"})]})})]},e.p_id)}))})})(h?.pro_plugin):void 0),close_popup:()=>c(!1)}),"websitekit"==t?.data?.type&&(0,g.jsx)("span",{className:"wdkit-snippet-crd-below"}),(0,g.jsxs)("div",{className:"wdkit-snippet-card wdkit-snippet-card-clickable",onClick:e=>((e,i)=>{e.target.closest(".wdkit-cdsnip-crd-badge")||e.target.closest(".wdkit-edit-dropdown")||(r&&t.handleSnippetSelect?t.handleSnippetSelect(t.data.id):("websitekit"===t?.data?.type&&s(`/snippet-kit/${t.data.id}`),"single"!==i||S||(N(!0),(async()=>{if(!v)if("websitekit"!==t?.data?.type){if(c(!0),u({title:"",desc:"",body:"loading"}),y(!0),await(async()=>{let e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","get_user_roles"),e.append("kit_nonce",wdkitData.kit_nonce);const t=await Vn(e);if(t?.success){let e=t?.data?.wp_user_roles||[],a=t?.data?.wp_user_can_manage_options||!1;if(!e.includes("administrator")||!a)return!0}return!1})())return t.wdkit_set_notification({title:(0,a.__)("Admin Role Required to Download","wdesignkit"),desc:(0,a.__)("For security reasons, only administrator users can download snippets.","wdesignkit")}),y(!1),void c(!1);var e=await C();w(e),e?.pro_plugin?.length>0?(u({title:"Required Plugin",desc:"To download this snippet, you will need to install below listed plugin",body:"requre_pro_plugin"}),y(!1),N(!1)):u({title:"Download Processing...",desc:"Our system will download your selected snippet soon.",body:"download_snippet"})}else s(`/snippet-kit/${t.data.id}`)})(t.data.id,t?.data?.type)),S&&(e.stopPropagation(),window.open("admin.php?page=nxt_code_snippets","_blank"))))})(e,t?.data?.type,t.data.id),children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-info",children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-head",children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-card-head-left",children:(0,g.jsx)("span",{className:"wdkit-cdsnip-tag",children:"websitekit"==t?.data?.type?(0,a.__)("Snippet Bundle","wdesignkit"):(0,a.__)("Snippet","wdesignkit")})}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-top-icons",children:[t?.data?.free_pro&&"free"!=t?.data?.free_pro&&(0,g.jsx)("div",{className:"wdkit-cdsnip-frpr "+("free"==t.data.free_pro?"wdkit-free-crd":"wdkit-pro-crd"),children:(0,g.jsx)("span",{children:t?.data?.free_pro})}),n&&(0,g.jsxs)(g.Fragment,{children:["public"==t?.data?.status&&(0,g.jsxs)("span",{className:"wdkit-cdsnip-crd-badge",children:[(0,g.jsx)("i",{className:"wdkit-i-globe"}),(0,g.jsx)("span",{className:"wdkit-cdsnip-tooltip",children:(0,a.__)("Global","wdesignkit")})]}),"private"==t?.data?.status&&(0,g.jsxs)("span",{className:"wdkit-cdsnip-crd-badge",children:[(0,g.jsx)("i",{className:"wdkit-i-lock"}),(0,g.jsx)("span",{className:"wdkit-cdsnip-tooltip",children:(0,a.__)("Private","wdesignkit")})]})]}),n&&(0,g.jsxs)("span",{className:"wdkit-cdsnip-crd-badge "+(l?"wdkit-loading":""),onClick:()=>!l&&(async(e,i)=>{if(l)return;o(!0);let s=p(),n=new FormData;n.append("action","wdkit_code_snippet"),n.append("type","favorite_unfavorite"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("snippet_id",e),n.append("favorite_type",i?"unfavorite":"favorite"),n.append("token",s.token);const r=await Vn(n);r&&r.data&&r.success?(t.wdkit_set_notification({title:r?.message,desc:r?.description}),t.onFavoriteUpdate&&t.onFavoriteUpdate(e,!i),o(!1)):(t.wdkit_set_notification({title:(0,a.__)("Error","wdesignkit"),desc:(0,a.__)("Failed to update favorite status. Please try again.","wdesignkit")}),o(!1))})(t.data.id,D()),children:[l?(0,g.jsx)(b,{}):D()?(0,g.jsx)("i",{className:"wdkit-i-filled-heart"}):(0,g.jsx)("i",{className:"wdkit-i-heart"}),!l&&(0,g.jsx)("span",{className:"wdkit-cdsnip-tooltip",children:D()?(0,a.__)("Unfavorite","wdesignkit"):(0,a.__)("Favorite","wdesignkit")})]})]})]}),(0,g.jsx)("h3",{className:"wdkit-cdsnip-card-title",children:t?.data?.title}),(0,g.jsx)("span",{className:"wdkit-cdsnip-card-desc",children:t?.data?.post_content})]}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-footer",children:[(0,g.jsxs)("div",{className:"wdkit-cdsnip-num-info",children:[t?.data?.code_type&&t?.data?.code_type_url&&(0,g.jsx)("div",{className:"wdkit-cdsnip-builder-icon",children:(0,g.jsx)("img",{src:`${t?.data?.code_type_url}`,draggable:!1,alt:t?.data?.code_type})}),t?.data?.plugin_icon_urls&&t?.data?.plugin_icon_urls.map(((e,t)=>(0,g.jsx)("div",{className:"wdkit-cdsnip-builder-icon wkit-plugin-icon-urls",children:(0,g.jsx)("img",{src:e,alt:`Plugin Icon ${t+1}`})},`plugin-icon-${t}`)))]}),r&&(0,g.jsx)("div",{className:"wkit-plugin-name",children:(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box",id:"selectsnippet",name:"selectsnippet",checked:!!t.isSelected&&t.isSelected,value:t.data.id,readOnly:!0})}),!r&&(0,g.jsxs)("div",{className:"wdkit-cdsnip-btm-right-icons",style:{gap:"10px"},children:[!S&&!j&&(0,g.jsx)("div",{className:"wkit-widget-download-activity",children:(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}),j&&(0,g.jsx)("div",{className:"wkit-widget-download-activity",children:(0,g.jsx)("div",{className:"plugin-download-icon",children:(0,g.jsx)("div",{className:"wdkit-snippet-downloading"})})}),S&&!j&&(0,g.jsx)("span",{className:"wdkit-cdsnip-views wdkit-already-downloaded",children:(0,g.jsx)("i",{className:"wdkit-i-eye"})}),n&&(0,g.jsx)("div",{className:"wdkit-edit-dropdown",children:(()=>{const i=(0,e.useRef)(null);return(0,e.useEffect)((()=>{function e(e){if(i.current&&!i.current.contains(e.target)){const e=i.current.querySelector(".wkit-dropdown-content.wkit-show");e&&e.classList.remove("wkit-show")}}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,g.jsxs)("div",{className:"w-designkit-hover-select",ref:i,onClick:e=>{(e=>{let t=e.target.closest(".w-designkit-hover-select"),a=t.querySelector(".wkit-dropdown-content")?t.querySelector(".wkit-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,g.jsx)("div",{className:"wkit-select-img",children:(0,g.jsx)("i",{className:"wdkit-i-horizontal-menu"})}),(0,g.jsx)("div",{className:"wkit-dropdown-content",children:(0,g.jsxs)("div",{className:"wkit-select-menu-wrapper",children:[(0,g.jsxs)("button",{className:"wkit-design-item",disabled:!0,children:[(0,g.jsx)("span",{className:"wkit-design-item-tooltip",children:(0,a.__)("Coming Soon","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Edit in New Tab","wdesignkit")})]}),(0,g.jsxs)("button",{className:"wkit-design-item",disabled:!0,children:[(0,g.jsx)("span",{className:"wkit-design-item-tooltip",children:(0,a.__)("Coming Soon","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Copy to Workspace","wdesignkit")})]}),(0,g.jsx)("button",{className:"wkit-design-item",onClick:()=>t.onDeleteSnippet&&t.onDeleteSnippet(t.data),children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Delete","wdesignkit")})})]})})]})})(t.data.id)})]})]})]})]});var T}));var Gn=wdkitData.WDKIT_URL;let zn=new AbortController;const Hn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_plugin_icons:t=>e(ai(t)),wdkit_Login_Route:t=>e(ei(t))})))((t=>{const i=ue(),s=pe(),[n,r]=(0,e.useState)(!0),[l,o]=(0,e.useState)(""),d=(0,e.useRef)(null),[c,p]=(0,e.useState)(!1),[m,u]=(0,e.useState)({}),[h,w]=(0,e.useState)([]),[_,f]=(0,e.useState)(!0),[k,x]=(0,e.useState)([]),[v,j]=(0,e.useState)(["plugins","free_pro","type","category","tags"]),[N,$]=(0,e.useState)([]),[C,S]=(0,e.useState)([]),[D,E]=(0,e.useState)(""),[P,A]=(0,e.useState)(""),[T,L]=(0,e.useState)([]),[M,F]=(0,e.useState)(""),[I,B]=(0,e.useState)(""),[O,R]=(0,e.useState)([]),[V,W]=(0,e.useState)(1),[q,G]=(0,e.useState)("all"),[z,H]=(0,e.useState)(window.innerWidth<992),[U,J]=(0,e.useState)(0),[K,Z]=(0,e.useState)(null),[Y,X]=(0,e.useState)(null),[Q,ee]=(0,e.useState)(!1),[te,ae]=(0,e.useState)(!1),[ie,se]=(0,e.useState)(!1);t.wdkit_Login_Route("/browse_snippets");const[ne,re]=(0,e.useState)({type:"code_snippet_filter",free_pro:"",category:"",CurrentPage:1,ParPage:24,search:"",plugins:"",plugin_id_exclude:"",tags:"",status:"public",snippet_type:"all"});(0,e.useEffect)((()=>{ie&&oe()}),[ne,ie]),(0,e.useEffect)((()=>{de()}),[]),(0,e.useEffect)((()=>{const e=()=>{H(window.innerWidth<992)};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),(0,e.useEffect)((()=>{if(""===s.search)re({type:"code_snippet_filter",free_pro:"",category:"",CurrentPage:1,ParPage:24,search:"",plugins:"",plugin_id_exclude:"",tags:"",status:"public",snippet_type:"all"}),o(""),A(""),F(""),G("all"),L([]),$([]),W(1);else{const e=new URLSearchParams(s.search),t={};Array.from(e?.entries()).forEach((([e,a])=>{t[e]=a})),re((e=>({...e,...t}))),t.search&&(A(t.search),o(t.search)),t.free_pro&&F(t.free_pro),t.snippet_type&&G(t.snippet_type),t.category&&L(t.category.split(",").filter((e=>""!==e.trim()))),t.tags&&$(t.tags.split(",").filter((e=>""!==e.trim()))),t.CurrentPage&&W(parseInt(t.CurrentPage))}}),[s.search]);const le=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>"snippet_type"===e||"type"!==e&&"CurrentPage"!==e&&"ParPage"!==e&&"status"!==e&&t&&t.length>0&&"[]"!==t))),oe=async()=>{zn&&zn.abort(),zn=new AbortController;const e=new FormData;p(!0),f(!1),e.append("action","wdkit_code_snippet"),e.append("type","code_snippet_filter"),e.append("kit_nonce",wdkitData.kit_nonce),Object.entries(ne).forEach((([t,a])=>{e.append(t,a)}));let t=await Vn(e,{signal:zn.signal});t?.aborted||(t?.data?.success&&w(t?.data),p(!1))},de=async()=>{zn&&zn.abort(),zn=new AbortController,ee(!0);const e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","filter_opt"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("opt_type","terms,plugin,tag");const a=new URLSearchParams(s.search).get("tags")||"";e.append("tags",a),E(a);try{let a=await Vn(e,{signal:zn.signal});a?.data?.success?(x(a?.data),0===O.length&&(R(a?.data?.tags||[]),S(a?.data?.url_tag_id||[])),a?.data?.plugins&&t.wdkit_set_plugin_icons(a.data.plugins)):x({terms:[],plugins:[],tags:[]})}catch(e){"AbortError"!==e.name&&console.error("Filter options fetchFilterOpt error:",e),x({terms:[],plugins:[],tags:[]})}finally{ee(!1),se(!0)}},ce=e=>{let t=ne.plugins?ne.plugins.split(",").filter((e=>""!==e.trim())).findIndex((t=>t===String(e))):-1,a=ne.plugin_id_exclude?ne.plugin_id_exclude.split(",").filter((e=>""!==e.trim())).findIndex((t=>t===String(e))):-1;return t&&t>-1||0===t?(0,g.jsxs)("i",{className:"wdkit-i-checkbox-checked",children:[(0,g.jsx)("span",{className:"path1"}),(0,g.jsx)("span",{className:"path2"})]}):a&&a>-1||0===a?(0,g.jsxs)("i",{className:"wdkit-i-checkbox-cross",children:[(0,g.jsx)("span",{className:"path1"}),(0,g.jsx)("span",{className:"path2"})]}):(0,g.jsx)("i",{className:"wdkit-i-checkbox-filled"})},me=e=>{if(v?.includes(e)){var t=v.filter((t=>t!==e));j(t)}else j([...v,e])},he=async(e,t="plugins",a)=>{const{value:s,checked:n}=e.target;if("plugins"===t){let e=ne.plugins?ne.plugins.split(",").filter((e=>""!==e.trim())).findIndex((e=>e===String(a))):-1,t=ne.plugin_id_exclude?ne.plugin_id_exclude.split(",").filter((e=>""!==e.trim())).findIndex((e=>e===String(a))):-1;if(e&&e>-1||0===e){var r=ne.plugins?ne.plugins.split(",").filter((e=>""!==e.trim())):[],o=ne.plugin_id_exclude?ne.plugin_id_exclude.split(",").filter((e=>""!==e.trim())):[],d=r.splice(e,1)[0];d&&o.push(d);var c=r.filter((e=>e!==String(a))),p=Object.assign({},ne,{plugin_id_exclude:o.join(","),plugins:c.join(",")},{CurrentPage:1})}else if(t&&t>-1||0===t){var m=(ne.plugin_id_exclude?ne.plugin_id_exclude.split(",").filter((e=>""!==e.trim())):[]).filter((e=>e!==String(a)));p=Object.assign({},ne,{plugin_id_exclude:m.join(",")},{CurrentPage:1})}else{var u=ne.plugins?ne.plugins.split(",").filter((e=>""!==e.trim())):[];u.push(String(a)),p=Object.assign({},ne,{plugins:u.join(",")},{CurrentPage:1})}}if("tags"===t){let e=ne.tags?ne.tags.split(",").filter((e=>""!==e.trim())):[],t=D?D.split(",").filter((e=>""!==e.trim())):[];n?(e.includes(s)||e.push(s),t.includes(s)||t.push(s),p=Object.assign({},ne,{tags:e.join(",")},{CurrentPage:1}),re(p),E(t.join(","))):(e=e.filter((e=>e!==s)),t=t.filter((e=>e!==s)),p=Object.assign({},ne,{tags:e.join(",")},{CurrentPage:1}),re(p),E(t.join(",")))}if("category"===t){let e=ne.category?ne.category.split(",").filter((e=>""!==e.trim())):[];n?(e.includes(s)||e.push(s),p=Object.assign({},ne,{category:e.join(",")},{CurrentPage:1}),re(p)):(e=e.filter((e=>e!==s)),p=Object.assign({},ne,{category:e.join(",")},{CurrentPage:1}),re(p))}"search"===t&&(p=Object.assign({},ne,{search:l,CurrentPage:1})),"free_pro"===t&&(n?(p=Object.assign({},ne,{free_pro:s},{CurrentPage:1}),F(s)):(p=Object.assign({},ne,{free_pro:""},{CurrentPage:1}),F(""))),"type"===t&&(G(s),L([]),p=Object.assign({},ne,{snippet_type:s},{search:l},{category:""},{CurrentPage:1})),p=Object.assign({},p,{search:l}),re(p),W(1),A(l);const h=new URLSearchParams(le(p)).toString();i(`/browse_snippets?${h}`)},ge=async e=>{let t=document.querySelector(".wdkit-cdsnip-filter");e?(t.classList.add("wdkit-cdsnip-filter-collapse"),r(!0),setTimeout((()=>{t.classList.remove("wdkit-cdsnip-filter-collapse")}),50)):(t.classList.add("wdkit-cdsnip-filter-collapse"),setTimeout((()=>{r(!1)}),150))};return(0,g.jsxs)("div",{className:`wdkit-cdsnip-cover ${_?"wkit-snippet-skeleton":""} ${c?"wkit-snippet-card-skeleton":""} ${Q?"wdkit-snippet-filter-skeleton":""}`,children:[n&&z&&(0,g.jsx)("div",{className:"wdkit-filter-overlay",onClick:()=>ge(!1)}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-inner",children:[_?(0,g.jsx)(Rn,{filter:!0}):(0,g.jsx)("div",{className:"wdkit-cdsnip-filter ",style:n?{display:"block"}:{display:"none"},children:(0,g.jsxs)("div",{className:"wdkit-browse-column-inner",children:[(0,g.jsx)(Le,{title:(0,a.__)("Filters","wdesignkit"),filterToggle:n,setFilterToggle:ge}),(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel",children:[(()=>{const t=[{value:"",label:(0,a.__)("All","wdesignkit"),id:"wkit-free-all-btn-label"},{value:"free",label:(0,a.__)("Free","wdesignkit"),id:"wkit-free-btn-label"},{value:"pro",label:(0,a.__)("Pro","wdesignkit"),id:"wkit-pro-btn-label"}];return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Fe,{id:"free_pro",title:(0,a.__)("Free/Pro","wdesignkit"),accordionToggle:v,onToggle:me}),v?.includes("free_pro")&&(0,g.jsx)("div",{className:"wkit-freePro-wrap wdkit-accordion-content",children:t.map((({value:e,label:t,id:a})=>(0,g.jsxs)("label",{htmlFor:a,className:"wkit-select-freePro-type",children:[(0,g.jsx)("input",{type:"radio",className:"wkit-styled-type-radio wkit-freePro-radio-inp",id:a,value:e,name:"FreeProFilter",onChange:e=>he(e,"free_pro"),checked:ne.free_pro===e}),(0,g.jsx)("span",{className:"wkit-freePro-label",children:t})]},e)))})]})})(),(0,g.jsx)("hr",{}),(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Fe,{id:"type",title:(0,a.__)("Snippet Type","wdesignkit"),accordionToggle:v,onToggle:me}),v?.includes("type")&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsxs)("div",{className:"wkit-pageType-wrap",children:[(0,g.jsxs)("label",{htmlFor:"wkit_snippet_type_all",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"all",className:"wkit-styled-type-radio",id:"wkit_snippet_type_all",name:"selectSnippetType",onChange:e=>he(e,"type"),checked:"all"===q}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("All","wdesignkit")})})]}),(0,g.jsxs)("label",{htmlFor:"wkit_snippet_type_single",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"single",className:"wkit-styled-type-radio",id:"wkit_snippet_type_single",name:"selectSnippetType",onChange:e=>he(e,"type"),checked:"single"===q}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Snippet","wdesignkit")})})]}),(0,g.jsxs)("label",{htmlFor:"wkit_snippet_type_kit",className:"wkit-pageType-list",children:[(0,g.jsx)("input",{type:"radio",value:"websitekit",className:"wkit-styled-type-radio",id:"wkit_snippet_type_kit",name:"selectSnippetType",onChange:e=>he(e,"type"),checked:"websitekit"===q}),(0,g.jsx)("span",{className:"wkit-type-selection",children:(0,g.jsx)("span",{children:(0,a.__)("Snippet Bundle","wdesignkit")})})]})]})})]}),(0,g.jsx)("hr",{}),(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Fe,{id:"category",title:(0,a.__)("Category","wdesignkit"),accordionToggle:v,onToggle:me}),v?.includes("category")&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-category-wrap",children:k?.terms?.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-category-name",children:[(0,g.jsx)("input",{type:"checkbox",value:e.id,className:"wkit-check-box",id:"category_"+e.id,name:"selectCategory",onChange:e=>he(e,"category"),checked:(ne.category||"").split(",").includes(e.id.toString())?"checked":""}),(0,g.jsx)("label",{htmlFor:"category_"+e.id,className:"wkit-category-selection-temp",children:(0,g.jsx)("span",{children:e.name})})]},t)))})})]}),(0,g.jsx)("hr",{}),(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Fe,{id:"plugins",title:(0,a.__)("Plugins","wdesignkit"),accordionToggle:v,onToggle:me}),v?.includes("plugins")&&(0,g.jsx)("div",{className:"wdkit-accordion-content",children:(0,g.jsx)("div",{className:"wkit-plugin-wrap",children:k?.plugins?.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-plugin-name",onClick:t=>he(t,"plugins",e.id),children:[ce(e.id),(0,g.jsxs)("span",{className:"wkit-plugin-selection-temp",children:[(0,g.jsx)("div",{className:"wdkit-plug-filterlogo",children:(0,g.jsx)("img",{src:e.icon_url?e.icon_url:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:"tpae-logo",draggable:!1})}),(0,g.jsx)("span",{children:e.name})]})]},t)))})})]}),(0,g.jsx)("hr",{}),(0,g.jsxs)(e.Fragment,{children:[(0,g.jsx)(Fe,{id:"tags",title:(0,a.__)("Related Tags","wdesignkit"),accordionToggle:v,onToggle:me}),v?.includes("tags")&&(0,g.jsxs)("div",{className:"wdkit-accordion-content wdkit-tags-accordion",children:[(0,g.jsxs)("div",{className:"wkit-browse-search-inner",children:[(0,g.jsx)("i",{className:"wdkit-i-search"}),(0,g.jsx)("input",{className:"wdkit-tags-search",placeholder:(0,a.__)("Search...","wdesignkit"),name:"wkit-search",type:"text",onChange:e=>{B(e.target.value),(async e=>{zn&&zn.abort(),zn=new AbortController,ae(!0);const t=new FormData;t.append("action","wdkit_code_snippet"),t.append("type","filter_opt"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("opt_type","tag"),t.append("search_tag",e),t.append("tags",D);let a=await Vn(t,{signal:zn.signal});a?.aborted||(a?.data?.success&&(R(a?.data?.tags||[]),S(a?.data?.url_tag_id||[])),ae(!1))})(e.target.value)},value:I})]}),te&&(0,g.jsx)("div",{className:"wkit-browse-tag wkit-tag-search-loading",children:(0,g.jsx)(b,{})}),!te&&O&&Array.isArray(O)&&O.length>0&&(0,g.jsxs)("div",{className:"wkit-browse-tag",children:[C.map(((e,t)=>(0,g.jsxs)("div",{className:"wdkit-tag-filter-list wkit-tag-name",children:[(0,g.jsx)("input",{type:"checkbox",style:{display:"none"},value:e.id,"data-name":e.name,className:"wkit-check-box",id:"tag_"+e.id,name:"selectTags",onChange:e=>he(e,"tags"),checked:(ne.tags||"").split(",").includes(e.id.toString())?"checked":""}),(0,g.jsx)("label",{htmlFor:"tag_"+e.id,className:"wdkit-browse-tag-name wkit-active-tag",children:e.name})]},e.id))),O?.map(((e,t)=>{if(!C.some((t=>t.id===e?.id)))return(0,g.jsxs)("div",{className:"wdkit-tag-filter-list wkit-tag-name",children:[(0,g.jsx)("input",{type:"checkbox",style:{display:"none"},value:e.id,"data-name":e.name,className:"wkit-check-box",id:"tag_"+e.id,name:"selectTags",onChange:e=>he(e,"tags"),checked:(ne.tags||"").split(",").includes(e.id.toString())?"checked":""}),(0,g.jsx)("label",{htmlFor:"tag_"+e.id,className:"wdkit-browse-tag-name",children:(0,g.jsx)("span",{style:{textTransform:"capitalize"},children:e.name})})]},e.id)}))]}),!te&&ie&&O&&0===O.length&&(0,g.jsxs)("div",{className:"wkit-no-tag-found",children:[(0,g.jsx)("img",{className:"wkit-not-found-icon",src:Gn+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("div",{className:"wdkit-no-tag-found-txt",children:(0,a.__)("No related tags found.","wdesignkit")})]})]})]})]})]})}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-main",children:[_?(0,g.jsx)(Rn,{search:!0}):(0,g.jsx)(e.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-search-filter wdkit-search-browse-snippet",children:[!n&&(0,g.jsx)("div",{className:"wdkit-filter-btn",onClick:()=>{ge(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Me,{type:"browse-templates",searchQuery:l,setSearchQuery:o,handleKeyPress:e=>{"Enter"===e.key&&(he(e,"search"),d.current.blur())},handleFilterChecked:he,inputRef:d})]})}),(0,g.jsx)(g.Fragment,{children:c||_?(0,g.jsx)("div",{className:`wdkit-cdsnip-cards ${n?"wdkit-grid-3col":"wdkit-grid-4col"} ${n?"":"wkit-cdsnip-filter-close"}`,children:(0,g.jsx)(Rn,{cards:!0})}):Array.isArray(h?.snippet)&&h.snippet.length>0?(0,g.jsx)("div",{className:`wdkit-cdsnip-cards ${n?"wdkit-grid-3col":"wdkit-grid-4col"} ${n?"":"wkit-cdsnip-filter-close"}`,children:h.snippet.map(((e,a)=>(0,g.jsx)(qn,{data:e,wdkit_set_notification:t.wdkit_set_notification},a)))}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:`wdkit-cdsnip-cards ${n?"wdkit-grid-3col":"wdkit-grid-4col"} ${n?"":"wkit-cdsnip-filter-close"}`}),(0,g.jsxs)("div",{className:"wkit-content-not-availble",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:Gn+"assets/images/jpg/not-found-bell.gif",alt:"section"}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)("p",{children:(0,a.__)("The page you're looking for doesn't exist or has been moved.","wdesignkit")})]})]})}),(()=>{if(h?.snippet?.length>0&&h?.snippetcount>0){const e=()=>{if(h?.snippetcount>=0)return Math.ceil(h?.snippetcount/24)};return(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(st,{showCount:h?.showsnippets,totalCount:h?.snippetcount,typeText:(0,a.__)("Snippets","wdesignkit")}),e()>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:e(),marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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=>{if(window.scrollTo({top:0,left:0,behavior:"smooth"}),null!=e.nextSelectedPage){const t=e.nextSelectedPage+1,a={...ne,CurrentPage:t};re(a),W(t);const s=new URLSearchParams(le(a)).toString();i(`/browse_snippets?${s}`)}},forcePage:ne.CurrentPage-1,onPageActive:()=>{}})]})}})()]})]})]})})),Un=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))(Hn);var Jn=wdkitData.WDKIT_URL;const Kn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_snippet:e.wdkit_snippet_data.wdkitSnippet})),(e=>({wdkit_Login_Route:t=>e(ei(t)),wdkit_set_snippet:t=>e((e=>({type:"UPDATE_WDKIT_SNIPPET",data:e}))(t)),wdkit_set_notification:t=>e(si(t)),wdkit_set_plugin_icons:t=>e(ai(t))})))((t=>{ue(),pe();const[i,s]=(0,e.useState)(""),n=(0,e.useRef)(null),[r,l]=(0,e.useState)(!1),[o,d]=(0,e.useState)([]),[c,m]=(0,e.useState)(!0),[u,h]=(0,e.useState)(!0),[w,_]=(0,e.useState)(1),[f,k]=(0,e.useState)(0),[x,v]=(0,e.useState)(""),[j,N]=(0,e.useState)(!1),[$,C]=(0,e.useState)(null),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(!1);t.wdkit_Login_Route("/mysnippet");let A=p();if(!A)return(0,g.jsx)(Se,{to:"/login"});const[T,L]=(0,e.useState)({CurrentPage:1,ParPage:24,search:""}),M=async()=>{l(!0),m(!1),await new Promise((e=>setTimeout(e,300)));try{const e=new FormData;e.append("action","wdkit_code_snippet"),E?(e.append("type","get_user_snippets_favorite"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("token",A?.token||wdkitData.token||""),Object.entries(T).forEach((([t,a])=>{e.append(t,a)}))):(e.append("type","get_user_snippets"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("token",A?.token||wdkitData.token||""),Object.entries(T).forEach((([t,a])=>{e.append(t,a)})));const a=await Vn(e);if(a.data&&a.data.success){const e=a.data||[],i=a.data?.snippetcount||0;d(e),t.wdkit_set_snippet(e),k(Math.ceil(i/24)),F(e)}else d([]),k(0)}catch(e){console.error("Error fetching user snippet data:",e),d([])}finally{l(!1),h(!1)}},F=e=>{const t=e?.snippet?.filter((e=>e.favorite)).map((e=>e.id))||[];D(t)},I=(e,t)=>{t?(e=>{D((t=>[...t,e]))})(e):((e=>{D((t=>t.filter((t=>t!==e))))})(e),E&&M())},B=()=>{P(!E),_(1),L((e=>({...e,CurrentPage:1})))},O=()=>(E?o.snippets:o.snippet)||[],R=()=>(0,g.jsx)("div",{className:"wb-creative-button ",children:(0,g.jsx)("div",{className:"wdkit-favorites-filter",children:(0,g.jsx)("a",{className:"wdkit-trsprnt-btn "+(E?"wdkit-favorites-active":""),onClick:B,children:(0,g.jsx)("i",{className:E?"wdkit-i-filled-heart":"wdkit-i-heart"})})})});(0,e.useEffect)((()=>{(async()=>{try{const e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","filter_opt"),e.append("kit_nonce",wdkitData.kit_nonce);const a=await Vn(e);a?.data?.success&&a?.data?.plugins&&t.wdkit_set_plugin_icons(a.data.plugins)}catch(e){console.error("Error fetching plugin icons:",e)}})()}),[]),(0,e.useEffect)((()=>{M()}),[T,E]);const V=e=>{C(e),N(!0)},W=()=>{N(!1),C(null)},q=()=>{const[i,s]=(0,e.useState)(!1);return(0,g.jsxs)("div",{className:"wkit-delete-temp-popup",children:[(0,g.jsx)("button",{className:"wkit-delete-temp-cancel wdkit-trsprnt-btn",onClick:W,children:(0,a.__)("Cancel","wdesignkit")}),i?(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-delete-temp-submit wkit-btn-class",onClick:async()=>{s(!0);const e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","delete_code_snippet"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("id",$.id),e.append("token",A?.token||wdkitData.token||"");const a=await Vn(e);return a.data&&a.success?(t.wdkit_set_notification({title:a.message,desc:a.description}),s(!1),N(!1),C(null),void M()):(t.wdkit_set_notification({title:a.message,desc:a.description}),s(!1),N(!1),void C(null))},children:(0,a.__)("Yes, Delete it","wdesignkit")})]})},G=()=>(0,g.jsx)(e.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-search-filter wdkit-search-my-snippet",children:[(0,g.jsxs)("div",{className:"wdkit-search-wrapper-b skeleton-placeholder",children:[(0,g.jsx)("div",{className:"wkit-search-input-b skeleton-placeholder"}),(0,g.jsx)("div",{className:"wdkit-search-icon-b skeleton-placeholder"}),(0,g.jsx)("div",{className:"wdkit-search-button-b skeleton-placeholder"})]}),(0,g.jsx)("div",{className:"wdkit-favorites-filter skeleton-placeholder",children:(0,g.jsx)("div",{className:"wdkit-favorites-btn-skeleton skeleton-placeholder"})})]})}),z=async(e,t="search")=>{const{value:a,checked:s}=e.target;if("search"===t)var n=Object.assign({},T,{search:a,CurrentPage:1});n=Object.assign({},n,{search:i}),L(n),_(1),v(i)};return(0,g.jsxs)("div",{className:`wdkit-cdsnip-cover ${c?"wkit-snippet-skeleton":""} ${r?"wkit-snippet-card-skeleton":""} ${u?"wdkit-snippet-search-skeleton":""}`,children:[(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wdkit-cdsnip-inner",children:(0,g.jsxs)("div",{className:"wdkit-cdsnip-card-main",children:[u?(0,g.jsx)(G,{}):(0,g.jsxs)("div",{className:"wdkit-search-filter wdkit-search-my-snippet",children:[(0,g.jsx)(Me,{type:"browse-templates",searchQuery:i,setSearchQuery:s,handleKeyPress:e=>{"Enter"===e.key&&(z(e,"search"),n.current.blur())},handleFilterChecked:z,inputRef:n}),(0,g.jsx)(R,{})]}),(0,g.jsx)(g.Fragment,{children:r||c?(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:(0,g.jsx)(Rn,{cards:!0})}):O().length>0?(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:O().map(((i,s)=>{return(0,g.jsxs)("div",{className:"wdkit-browse-card",children:["active"!==i.is_activated&&(0,g.jsx)(e.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-inner-boxed-deActivate",style:{zIndex:"19"},children:[(0,g.jsx)("div",{className:"wdkit-inner-boxed-deActivate-h1",children:(0,a.__)("Credit Limit Reached!","wdesignkit")}),(0,g.jsx)("div",{className:"wdkit-inner-boxed-deActivate-p",children:(0,a.__)("This Snippet got disabled until you have more credits to make it active.","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{children:(0,a.__)("Buy Credits","wdesignkit")})})]})}),(0,g.jsx)(qn,{data:i,wdkit_set_notification:t.wdkit_set_notification,onDeleteSnippet:V,onFavoriteUpdate:I,isFavorited:!!E||(n=i.id,S.includes(n))})]},i.id||s);var n}))}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col"}),(0,g.jsxs)("div",{className:"wkit-content-not-availble",children:[(0,g.jsx)("img",{className:"wkit-pin-img-temp",src:Jn+"assets/images/jpg/not-found-bell.gif",alt:"section"}),(0,g.jsx)("h5",{className:"wkit-common-desc",children:E?(0,a.__)("No Favorites Yet","wdesignkit"):(0,a.__)("No Result Found","wdesignkit")}),(0,g.jsx)("p",{children:E?(0,a.__)("Click the heart icon on any snippet to add it to your favorites.","wdesignkit"):(0,a.__)("The page you're looking for doesn't exist or has been moved.","wdesignkit")})]})]})}),(()=>{let e=E?o.snippets:o.snippet;if(e?.length>0&&o?.snippetcount>0){const e=()=>{if(o?.snippetcount>=0)return Math.ceil(o?.snippetcount/24)};return(0,g.jsx)("div",{className:"wkit-pagination-main",children:e()>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:e(),marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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&&(T.CurrentPage=e.nextSelectedPage+1,L({...T}))},forcePage:w-1,onPageActive:()=>{}})})}})()]})})}),j&&(0,g.jsx)(Be,{title:(0,a.__)("Delete Snippet","wdesignkit"),desc:(0,a.__)("Are you sure you want to delete this snippet?","wdesignkit"),close_popup:W,body:(0,g.jsx)(q,{})})]})}));var Zn=wdkitData.WDKIT_URL;const Yn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_Login_Route:t=>e(ei(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{t.wdkit_Login_Route("/save_snippets");let i=p();if(!i){let e=new URLSearchParams(window.location.search).get("snippet_id");return!e&&window.location.hash&&(e=new URLSearchParams(window.location.hash.split("?")[1]||"").get("snippet_id")),e&&u(e),(0,g.jsx)(Se,{to:"/login"})}const s=ue(),[n,r]=(0,e.useState)(""),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(""),[m,w]=(0,e.useState)([]),[_,f]=(0,e.useState)(!1),[k,x]=(0,e.useState)([]),[v,y]=(0,e.useState)(""),[j,N]=(0,e.useState)(!1),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(""),[A,T]=(0,e.useState)(""),[L,M]=(0,e.useState)(!1),[F,I]=(0,e.useState)(!1),[B,O]=(0,e.useState)(!1),[R,V]=(0,e.useState)(""),[W,q]=(0,e.useState)(!1),[G,z]=(0,e.useState)(""),[H,U]=(0,e.useState)({title:"",desc:""}),[J,K]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=new URLSearchParams(window.location.search).get("snippet_id");!e&&window.location.hash&&(e=new URLSearchParams(window.location.hash.split("?")[1]||"").get("snippet_id")),e?u(e):e=h(),e&&(async e=>{if(!e)return;I(!0);const t=new FormData;t.append("action","wdkit_code_snippet"),t.append("type","get_snippet_info"),t.append("post_id",e),t.append("kit_nonce",wdkitData.kit_nonce);const a=await Vn(t);a.success&&a.data&&(r(a.data.title),o(a.data.description),I(!1))})(e)}),[]),(0,e.useEffect)((()=>{""!=G&&Y()}),[G]);const Z=()=>{z("")},Y=()=>{let e={...H};"replace_snippet"==G?(e.title=(0,a.__)("Replace Snippet","wdesignkit"),e.desc=(0,a.__)("Are you sure you want to replace this snippet ?","wdesignkit")):(e.title="",e.desc=""),U(e)},X=()=>(0,g.jsxs)("div",{className:"wkit-popup-buttons",children:[(0,g.jsx)("button",{className:"wkit-popup-confirm wdkit-trsprnt-btn",onClick:Z,children:(0,a.__)("No","wdesignkit")}),_?(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-popup-cancel wkit-btn-class",onClick:te,children:(0,a.__)("Yes","wdesignkit")})]}),Q=()=>(0,g.jsxs)("div",{className:"wkit-successfully-imported",children:[(0,g.jsx)("img",{className:"wdkit-success-img",src:Zn+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsxs)("div",{className:"wkit-text-center",children:[(0,g.jsx)("div",{className:"wkit-success-heading wkit-get-success",children:(0,a.__)("Successfully Uploaded","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-desc",children:(0,a.__)("To Edit fully visit WdesignKit admin and make it live.","wdesignkit")})]})]}),ee=e=>{const{value:t,checked:a}=e.target;w(a?[...m,t]:m.filter((e=>e!==t)))},te=async e=>{if(e.preventDefault(),f(!0),!n&&"new"===ae)return void t.wdkit_set_notification({title:(0,a.__)("Enter Snippet Name","wdesignkit"),desc:(0,a.__)("Please enter a snippet name","wdesignkit")});let r=new URLSearchParams(window.location.search).get("snippet_id");!r&&window.location.hash&&(r=new URLSearchParams(window.location.hash.split("?")[1]||"").get("snippet_id")),r||(r=h());const o="new"===ae?"new":"existing";let c=new FormData;c.append("action","wdkit_code_snippet"),c.append("type","save_code_snippet"),c.append("kit_nonce",wdkitData.kit_nonce),c.append("post_id",r),c.append("token",i.token),c.append("stype",o),c.append("title",n),c.append("description",l),c.append("category",d),c.append("plugin",m.join(",")),c.append("snippet_id",E),c.append("w_unique",ne());const p=await Vn(c);p.success&&p.data?("new"===o?(z("success_popup"),setTimeout((()=>{s("/mysnippet")}),2e3)):(z(""),t.wdkit_set_notification({title:p.data.message?p.data.message:(0,a.__)("Snippet saved successfully to cloud!","wdesignkit"),desc:p.data.description?p.data.description:(0,a.__)("Snippet saved successfully to cloud!","wdesignkit")})),f(!1)):(t.wdkit_set_notification({title:(0,a.__)("Save Failed","wdesignkit"),desc:(0,a.__)("We couldn’t save your snippet. Please try again.","wdesignkit")}),f(!1))};(0,e.useEffect)((()=>{(async()=>{K(!0);const e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","filter_opt"),e.append("kit_nonce",wdkitData.kit_nonce);let t=await Vn(e);t?.data?.success&&(x(t?.data),K(!1))})(),"existing"===ae&&re()}),[]);const[ae,ie]=(0,e.useState)("new"),se=e=>{ie(e),"existing"!==e||W||(re(),q(!0))},ne=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},re=async(e="")=>{O(!0),M(!0);const t=new FormData;t.append("action","wdkit_code_snippet"),t.append("type","existing_snippet"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("token",i.token),t.append("search",e),t.append("CurrentPage",1),t.append("ParPage",24);try{let e=await Vn(t);if(e?.data?.success){const t=e?.data?.snippet||[];D(t),C(t)}}catch(e){console.error("Error fetching existing snippets:",e)}finally{M(!1),O(!1)}},le=e=>{e.preventDefault(),P(""),T(""),re(v),0===v.length?(N(!1),V("")):(N(!0),V(v))};return(0,g.jsxs)("div",{className:"wdkit-save-snippet-main",children:[(0,g.jsx)("div",{className:"wdkit-save-snippet-tabs-cover",children:(0,g.jsxs)("div",{className:"wdkit-save-snippet-tabs",children:[(0,g.jsx)("div",{className:"wdkit-save-snippet-tab-item "+("new"===ae?"wdkit-save-snippet-active":""),onClick:()=>se("new"),children:(0,a.__)("New Snippet","wdesignkit")}),(0,g.jsx)("div",{className:"wdkit-save-snippet-tab-item "+("existing"===ae?"wdkit-save-snippet-active":""),onClick:()=>se("existing"),children:(0,a.__)("Existing Snippet","wdesignkit")})]})}),(0,g.jsxs)("div",{className:"wdkit-snippet-content "+("existing"===ae?"wdkit-snippet-content-existing":""),children:["new"===ae&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-save-snippet-fields",children:[(0,g.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,g.jsx)("label",{className:"wdkit-label-heading",children:(0,a.__)("Snippet Name","wdesignkit")}),(0,g.jsx)("input",{type:"text",id:"snippetName",required:!0,placeholder:F?(0,a.__)("Loading...","wdesignkit"):(0,a.__)("Enter Snippet Name","wdesignkit"),className:"wdkit-input-field",value:n,onChange:e=>{const i=e.target.value;i.length<=100?r(i):t.wdkit_set_notification({title:(0,a.__)("Limit Reached","wdesignkit"),desc:"Limit Reached"})},disabled:F})]}),(0,g.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap",children:[(0,g.jsx)("label",{className:"wdkit-label-heading",children:(0,a.__)("Category","wdesignkit")}),(0,g.jsxs)("div",{className:"wdkit-snippet-select-cover",children:[(0,g.jsxs)("select",{className:"wdkit-snippet-select",value:d,onChange:e=>c(e.target.value),children:[(0,g.jsx)("option",{value:"",children:(0,a.__)("Select Category","wdesignkit")}),k?.terms&&k.terms.map(((e,t)=>(0,g.jsx)("option",{value:e.id,children:e.name},t)))]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]})]}),(0,g.jsxs)("div",{className:"wkit-col wkit-flex-wrap-none wkit-col-gap wdkit-snippet-desc",children:[(0,g.jsx)("label",{className:"wdkit-label-heading",children:(0,a.__)("Snippet Description","wdesignkit")}),(0,g.jsx)("textarea",{className:"wdkit-input-field wdkit-snippet-textarea",value:l,placeholder:(0,a.__)("Enter Snippet Description","wdesignkit"),onChange:e=>o(e.target.value)})]}),J?(0,g.jsx)("div",{className:"wkit-no-template-data",children:(0,g.jsx)(b,{})}):!J&&k?.plugins?.length>0?(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wdkit-save-plugin-used",children:[(0,g.jsx)("label",{className:"wkit-label-heading",children:(0,a.__)("Required Plugins","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-save-plugin-wrapper",children:k.plugins.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-plugin-list",children:[(0,g.jsx)("input",{type:"checkbox",id:"plugin_"+e.id,name:"selectPlugin",className:"wdkit-save-check",value:e.id,onChange:ee,checked:!!m.includes(e.id)||null}),(0,g.jsxs)("label",{htmlFor:"plugin_"+e.id,children:[(0,g.jsx)("div",{className:"wkit-plugin-image",children:(0,g.jsx)("img",{src:e.icon_url?e.icon_url:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",style:{width:"30px"},alt:"wkit-logo-img"})}),(0,g.jsx)("div",{className:"wkit-plugin-text",children:e.name})]})]},t)))})]})}):void 0]})}),"existing"===ae&&(0,g.jsxs)("div",{className:"wdkit-save-snippet-existing",children:[(0,g.jsxs)("div",{className:"wdkit-save-snippet-search",children:[(0,g.jsxs)("div",{className:"wdkit-save-snippet-search-cover",children:[(0,g.jsxs)("div",{className:"wdkit-snippet-search-input",children:[(0,g.jsx)("i",{className:"wdkit-i-search wdkit-input-icon"}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Search...","wdesignkit"),className:"wdkit-existing-snippet-search",onChange:e=>{const t=e.target.value;y(t)},onKeyPress:e=>{"Enter"===e.key&&le(e)},value:v})]}),L?(0,g.jsx)("button",{className:"wdkit-find-snippet-btn wkit-btn-class",children:b()}):(0,g.jsx)("button",{type:"submit",className:"wdkit-find-snippet-btn wkit-btn-class",onClick:le,children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})})]}),(0,g.jsx)("div",{className:"wdkit-snippet-find-list",children:L||B?b():(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("ul",{className:"wdkit-snippet-list-cover",children:[(0,g.jsx)("span",{className:"wdkit-find-snippet-h",children:j&&R?(0,a.__)("Search ","wdesignkit")+'"'+R+'"':(0,a.__)("Recently Added","wdesignkit")}),$.length>0?$.map(((e,t)=>(0,g.jsx)("li",{className:"wdkit-save-snippet-list "+(E===e.id?"snippet-selected":""),onClick:()=>(e=>{P(e.id),T(e.code_type)})(e),children:(0,g.jsxs)("div",{className:"wdkit-existing-snippet-detail",children:[(0,g.jsx)("img",{src:e.code_type?Zn+"assets/images/svg/snippet/code_"+e.code_type+".svg":wdkitData.wdkit_site_api_url+"images/uploads/wpdk-admin/random-image/placeholder.jpg",alt:e.title||"snippet-image"}),(0,g.jsx)("span",{className:"section-page-post-type",children:e.title||(0,a.__)("Untitled Snippet","wdesignkit")})]})},t))):(0,g.jsxs)("div",{className:"wkit-no-data",children:[(0,g.jsx)("img",{src:Zn+"assets/images/jpg/not-found-bell.gif",alt:"no-data"}),(0,g.jsx)("span",{className:"wkit-common-desc",children:(0,a.__)("No Result Found","wdesignkit")})]})]})})})]}),(0,g.jsx)("div",{className:"wdkit-save-snippet-select-view",children:(0,g.jsx)("div",{className:"wkit-selected-snippet-img",children:(0,g.jsxs)("div",{className:"wdkit-snippet-infograph-main",children:[E&&A?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"wdkit-snippet-infograph-txt",children:(0,a.__)("Do you want to replace this?","wdesignkit")}),(0,g.jsx)("img",{className:"wdkit-snippet-infograph",src:Zn+"assets/images/svg/snippet/code_"+A+".svg",alt:"Snippet Infograph"}),(0,g.jsx)("div",{className:"wdkit-save-snippet-h-btn",children:(0,g.jsx)("div",{className:"wdkit-save-snippet-rtbtn",children:(0,g.jsx)("button",{type:"button",className:"wdkit-save-snippet-btn wkit-btn-class",onClick:()=>{z("replace_snippet")},disabled:"existing"===ae&&!E,children:(0,a.__)("Replace","wdesignkit")})})})]}):(0,g.jsx)("div",{className:"wdkit-snippet-crd-btn-cover",children:(0,g.jsx)("img",{className:"wdkit-snippet-infograph-placeholder",src:Zn+"assets/images/svg/select-snippet-infograph.svg",alt:"Select Snippet Infograph"})}),(0,g.jsx)("p",{className:"wdkit-snippet-infograph-txt "+(E&&A?"snippet-selected":""),children:E&&A?(0,a.__)("Note : Replacing the snippet will erase the current design. This action cannot be undone, and the old design will be permanently lost.","wdesignkit"):(0,a.__)("Please select the snippet you want to replace","wdesignkit")})]})})})]})]}),"new"===ae&&(0,g.jsx)("div",{className:"wdkit-save-snippet-h-btn",children:(0,g.jsx)("div",{className:"wdkit-save-snippet-rtbtn",children:(0,g.jsx)("button",{type:"button",className:"wdkit-save-snippet-btn wkit-btn-class",onClick:te,disabled:_||"new"===ae&&!n,children:_?(0,g.jsx)(b,{}):(0,a.__)("Save","wdesignkit")})})}),""!=G&&(0,g.jsx)(Be,{title:H.title,desc:H.desc,close_popup:()=>z(""),body:"replace_snippet"==G?(0,g.jsx)(X,{}):"success_popup"==G?(0,g.jsx)(Q,{}):void 0})]})})),Xn=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{const i=he(),s=ue(),[n,r]=(0,e.useState)([]),[l,o]=(0,e.useState)(!0),[d,c]=(0,e.useState)(null),[m,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)([]),[_,f]=(0,e.useState)(0),[k,x]=(0,e.useState)(1),[v,j]=(0,e.useState)(0),[N,$]=(0,e.useState)(0),[C,S]=(0,e.useState)(!1),[D,E]=(0,e.useState)(),[P,A]=(0,e.useState)(),[T,L]=(0,e.useState)(""),[M,F]=(0,e.useState)(!1);(0,e.useEffect)((()=>{i.kitId&&I(i.kitId)}),[i.kitId,k]);const I=async e=>{try{o(!0),c(null);let t=p(),i=new FormData;i.append("action","wdkit_code_snippet"),i.append("type","get_snippet_kit"),i.append("kit_id",e),i.append("kit_nonce",wdkitData.kit_nonce),i.append("CurrentPage",k),i.append("ParPage",24),t&&t.token&&i.append("token",t.token);const s=await Vn(i);s&&s.success?(r(s.data.snippet||[]),j(s.data.total_count||s.data.snippet?.length||0),$(s.data.snippet?.length||0)):c(s?.message||(0,a.__)("Failed to fetch kit snippets","wdesignkit"))}catch(e){c((0,a.__)("Failed to load kit snippets. Please try again.","wdesignkit"))}finally{o(!1)}},B=Math.ceil(v/24),O=e=>{h.includes(e)?(w(h.filter((t=>t!==e))),f(h.length-1),1===h.length&&u(!1)):(w((t=>[...t,e])),f(h.length+1),u(!0))},R=()=>{S(!1)};var V=wdkitData.WDKIT_ASSETS;const W=e=>"parent_loader"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}):"loading"==e?(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}):"done"==e||"active"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"done_parent"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-parent",style:{fontSize:"20px"}}):"pending"==e?(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child"}):"fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child"}):"parent_fail"==e?(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}):void 0,q=()=>{const[i,s]=(0,e.useState)([{name:"install_plugin",label:"Install Required Plugin",status:"pending"},{name:"plugin_setting",label:"Plugin Setting",status:"pending"},{name:"download_snippet_kit",label:"Download Snippets",status:"pending"}]),[r,l]=(0,e.useState)([]),[o,d]=(0,e.useState)([]),c=(0,e.useRef)([]),m=(0,e.useRef)([]),u=(0,e.useRef)([]);(0,e.useEffect)((()=>{f("install_plugin")}),[]);const w=async(e,t)=>{let a=[...i],n=a.findIndex((t=>t.name==e));n>-1&&(a[n].status=t,"install_plugin"===e&&("loading"===t?a[n].label="Installing Required Plugin":"done"===t?a[n].label="Installed Required Plugin":"fail"===t&&(a[n].label="Installation Failed"))),s(a)},_=async e=>{if(m.current.findIndex((e=>"loading"==e.status))>-1)c.current.push(e);else{let t=Object.assign({},e,{status:"loading"});m.current.push(t),l([...m.current]),await(async e=>{let t=new FormData;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);var a=await Vn(t);if(a?.success){let e=m.current.findIndex((e=>e.p_id==a.p_id));m.current[e].status=a.status,l([...m.current])}let i=c.current.findIndex((e=>e.p_id==a.p_id));i>-1&&c.current.splice(i,1),c.current.length>0?_(c.current[0]):(await w("install_plugin","done"),f("plugin_setting"))})(e)}},f=async e=>{if("install_plugin"==e)await w(e,"loading"),P?.install_plg?.length>0?await Promise.all(P.install_plg.map((async e=>{await _(e)}))):(await w("install_plugin","done"),f("plugin_setting"));else if("plugin_setting"==e)await w(e,"loading"),await w(e,"done"),f("download_snippet_kit");else if("download_snippet_kit"==e){await w(e,"loading");const i=h.map((e=>n.find((t=>t.id===e))));u.current=i;let s=p(),r=0,l=[];const o=i.map((e=>({id:e.id,title:e.title||e.post_title,status:"pending"})));d(o);for(let e=0;e<i.length;e++){const t=i[e];if(o[e].status="loading",d([...o]),"pro"===t?.free_pro&&P?.pro_plugin?.length>0){o[e].status="fail",l.push(t.title||t.post_title||`Snippet ${e+1}`),d([...o]),await new Promise((e=>setTimeout(e,500)));continue}let a=new FormData;a.append("action","wdkit_code_snippet"),a.append("type","download_code_snippet"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("id",t.id),s&&s.token&&(a.append("token",s.token),a.append("free_pro",t?.free_pro));try{const i=await Vn(a);i&&i.data&&i.data.post_id?(o[e].status="done",r++):(o[e].status="fail",l.push(t.title||t.post_title||`Snippet ${e+1}`))}catch(a){o[e].status="fail",l.push(t.title||t.post_title||`Snippet ${e+1}`)}d([...o]),await new Promise((e=>setTimeout(e,500)))}if(r>0){if(await w(e,"done"),l.length>0){const e=[],s=[];i.forEach(((t,a)=>{const i=t.title||t.post_title||`Snippet ${a+1}`;l.includes(i)&&("pro"===t?.free_pro&&P?.pro_plugin?.length>0?e.push(i):s.push(i))}));let n=`${r} ${(0,a.__)("snippets downloaded successfully.","wdesignkit")}`;e.length>0&&(n+=` ${e.length} ${(0,a.__)("pro snippets require pro plugin:","wdesignkit")} ${e.join(", ")}`),s.length>0&&(n+=` ${s.length} ${(0,a.__)("snippets failed to download:","wdesignkit")} ${s.join(", ")}`),t.wdkit_set_notification({title:(0,a.__)("Download Complete","wdesignkit"),desc:n})}setTimeout((()=>{E({title:"",desc:"",body:"download_complete"}),L({view:"admin.php?page=nxt_code_snippets"})}),300),window.wdkit_save_snippet&&setTimeout((()=>{S(!1)}),3e3)}else await w(e,"fail"),E({title:(0,a.__)("Download Failed","wdesignkit"),desc:(0,a.__)("Snippets couldn’t be downloaded. Try again.","wdesignkit"),body:"download_failed"}),t.wdkit_set_notification({title:(0,a.__)("Download Failed","wdesignkit"),desc:(0,a.__)("Snippets couldn’t be downloaded. Try again.","wdesignkit")})}};return(0,g.jsx)("div",{className:"wkit-import-temp-process",children:(0,g.jsx)("div",{className:"wkit-import-process-container",children:i.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-temp-process-step",children:[(0,g.jsxs)("div",{className:`wkit-import-temp-process-parent wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:W(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.label})]}),r.length>0&&"install_plugin"==e.name&&m.current.map((t=>(0,g.jsxs)("div",{className:`wkit-import-temp-process-child wkit-import-${e.status}-status`,children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:W(t.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:t.plugin_name})]},t.p_id))),o.length>0&&"download_snippet_kit"==e.name&&o.map((e=>(0,g.jsxs)("div",{className:"wkit-import-temp-process-child",children:[(0,g.jsx)("div",{className:"wkit-import-process-loading",children:W(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.title})]},e.id)))]},t)))})})},G=()=>(F(!1),(0,g.jsxs)("div",{className:"wkit-import-temp-success",children:[(0,g.jsx)("img",{className:"wkit-import-temp-success-gif",src:V+"images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif"}),(0,g.jsx)("span",{className:"wkit-import-temp-success-title",children:(0,a.__)("Yay! Snippets Downloaded Successfully","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-temp-success-desc",children:(0,a.__)("Your downloaded snippets are now ready to use in your code snippets.","wdesignkit")}),(0,g.jsx)("a",{href:T.view,className:"wkit-import-temp-success-btn wkit-btn-class",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("view snippets","wdesignkit")})]})),z=()=>(F(!1),(0,g.jsx)("div",{className:"wkit-import-temp-process-next wdkit-import-failed-wrap",children:(0,g.jsx)("button",{className:"wkit-import-temp-failed-btn wkit-btn-class",onClick:R,children:(0,a.__)("Close","wdesignkit")})}));return(0,g.jsxs)("div",{className:"wdkit-cdsnip-cover",children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-inner",children:(0,g.jsx)("div",{className:"wdkit-cdsnip-card-main",children:(0,g.jsx)(g.Fragment,{children:l?(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(Rn,{header:!0}),(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:(0,g.jsx)(Rn,{cards:!0})})]}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wdkit-search-filter wdkit-cdsnip-cards-header",children:[(0,g.jsx)("div",{className:"wdkit-cdsnip-cards-header-left",children:(0,g.jsxs)("button",{className:"wkit-btn-class wdkit-back-btn",onClick:()=>{s(-1)},children:[(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"}),(0,a.__)("Back","wdesignkit")]})}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-cards-header-right",children:[(0,g.jsxs)("div",{className:"wkit-plugin-name",children:[(0,g.jsx)("input",{type:"checkbox",className:"wkit-check-box",id:"selectall",name:"selectall",value:"all",onChange:()=>{h.length===n.length?(w([]),f(0),u(!1)):(w(n.map((e=>e.id))),f(n.length),u(!0))},checked:h.length===n.length}),(0,g.jsx)("label",{htmlFor:"selectall",className:"wkit-plugin-selection-temp",children:(0,g.jsx)("span",{children:(0,a.__)("Select All","wdesignkit")})})]}),(0,g.jsx)("button",{type:"button",className:"wkit-btn-class wdkit-download-btn",disabled:!m||0===_,onClick:async e=>{if(F(!0),await(async()=>{let e=new FormData;e.append("action","wdkit_code_snippet"),e.append("type","get_user_roles"),e.append("kit_nonce",wdkitData.kit_nonce);const t=await Vn(e);if(t?.success){let e=t?.data?.wp_user_roles||[],a=t?.data?.wp_user_can_manage_options||!1;if(!e.includes("administrator")||!a)return!0}return!1})())t.wdkit_set_notification({title:(0,a.__)("Admin Role Required to Download","wdesignkit"),desc:(0,a.__)("For security reasons, only administrator users can download snippets.","wdesignkit")});else{S(!0),E({title:"",desc:"",body:"loading"});var i=await(async()=>{let e=[{p_id:2004,plugin_name:"Nexter Extension – Site Enhancements Toolkit",plugin_slug:"nexter-extension/nexter-extension.php",original_slug:"nexter-extension",freepro:0,plugin_builder:"",type:"plugin"}];const a=h.map((e=>n.find((t=>t.id===e))));let i=new Set;a.forEach((e=>{("pro"!==e?.free_pro&&e?.plugin_id||"pro"===e?.free_pro&&e?.plugin_id)&&e.plugin_id.toString().split(",").map((e=>e.trim())).forEach((e=>{i.add(e)}))}));let s=t.wdkit_meta?.plugin_icons||[];Array.from(i).forEach((t=>{if("4"===t||4===t)e.push({p_id:4,plugin_name:"Nexter Pro Extensions",plugin_slug:"nexter-pro-extensions/nexter-pro-extensions.php",original_slug:"nexter-pro-extensions",freepro:1,plugin_builder:"",type:"plugin",icon_url:wdkitData.WDKIT_ASSETS+"images/svg/nexter-extension.svg"});else{let a=s.find((e=>e.id==t));a&&e.push({p_id:t,plugin_name:a.name||"",plugin_slug:a.path||"",original_slug:a.slug||"",freepro:0,plugin_builder:"",type:"plugin",icon_url:a.icon_url||wdkitData.WDKIT_ASSETS+"images/placeholder.jpg"})}}));let r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","check_plugins_depends"),r.append("plugins",JSON.stringify(e)),r.append("editor",wdkitData.use_editor);const l=await Vn(r);if(l?.success){let e=l?.data?.plugins?l?.data?.plugins:[],a=e.filter((e=>"active"!=e.status)),i=e.filter((e=>"active"!=e.status&&"1"==e.freepro)),s=t.wdkit_meta?.plugin_icons||[];return s.length>0&&(i=i.map((e=>{const t=s.find((t=>t.slug===e.original_slug||"nexter-pro-extensions"===e.original_slug&&"nexter-extension"===t.slug));return{...e,icon_url:t?.icon_url||null}}))),{install_plg:a,pro_plugin:i}}return{install_plg:[],pro_plugin:[]}})();A(i),E(i?.pro_plugin?.length>0?{title:"Required Plugin",desc:"To download this snippet bundle, you will need to install below listed plugin",body:"requre_pro_plugin"}:{title:"Download Processing...",desc:"Our system will download your selected snippets soon.",body:"download_snippet_kit"})}},children:M?(0,g.jsx)(b,{}):(0,g.jsxs)(g.Fragment,{children:[(0,a.__)("Download","wdesignkit"),(0,g.jsx)("span",{className:"wdkit-download-count",children:` (${_}/${n.length})`})]})})]})]}),(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:n.map(((e,a)=>(0,g.jsx)(qn,{data:e,wdkit_set_notification:t.wdkit_set_notification,handleSnippetSelect:O,isSelected:h.includes(e.id)},a)))}),(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(st,{showCount:N,totalCount:v,typeText:(0,a.__)("Snippets","wdesignkit")}),B>1&&(0,g.jsx)(y(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:B,marginPagesDisplayed:1,previousLabel:(0,g.jsx)("i",{className:"wdkit-i-left-arrow"}),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"})},onPageChange:e=>{const t=e.selected+1;x(t),w([]),u(!1),f(0)},forcePage:k-1})]})]})})})}),C&&(0,g.jsx)(Be,{title:D?.title||"",desc:D?.desc||"",body:(H=D?.body,"loading"==H?(()=>{let e=wdkitData?.wdkit_white_label?.plugin_logo||V+"images/jpg/wdkit_loader.gif";return(0,g.jsx)("img",{className:"wkit-card-loader-gif",src:e,draggable:!1})})():"download_snippet_kit"==H?(0,g.jsx)(q,{}):"download_complete"==H?(0,g.jsx)(G,{}):"requre_pro_plugin"==H?(e=>{const t={4:{name:"nexter-pro-extensions",link:"https://nexterwp.com/pricing/",lable:"Nexter Pro Extensions",desc:"This snippet kit requires the Nexter Pro Extensions plugin. Please upgrade to Pro to unlock this snippet kit."}};return(0,g.jsx)("div",{className:"wkit-popup-pro-plugin",children:e&&e.length>0&&e.map((e=>{let a=t?.[e.p_id]?.link?t[e.p_id].link:"";return(0,g.jsxs)("div",{className:"wkit-pro-plugin-list",children:[(0,g.jsxs)("div",{className:"wkit-pro-plugin-cont",children:[(0,g.jsx)("img",{className:"wkit-pro-plugin-icon",src:e?.icon_url?e.icon_url:wdkitData.WDKIT_URL+"assets/images/placeholder.jpg",alt:e.plugin_name}),(0,g.jsx)("span",{className:"wkit-pro-plugin-txt",children:e?.plugin_name})]}),(0,g.jsx)("a",{className:"wkit-pro-plugin-link",href:a,target:"_blank",rel:"noopener",children:(0,g.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 11 11",fill:"none",children:[(0,g.jsx)("path",{d:"M5.05012 1C3.22528 1.00329 2.26971 1.04809 1.65903 1.65877C1 2.3178 1 3.37849 1 5.49987C1 7.62125 0.999999 8.68194 1.65903 9.34097C2.31806 10 3.37875 10 5.50013 10C7.62151 10 8.6822 10 9.34123 9.34097C9.95191 8.73029 9.99671 7.77472 10 5.94988",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M10.1233 1.6049C10.3193 1.41039 10.3205 1.0938 10.126 0.897799C9.93146 0.701793 9.61488 0.700584 9.41888 0.8951L10.1233 1.6049ZM6.6478 3.6451C6.45179 3.83961 6.45058 4.1562 6.6451 4.3522C6.83961 4.54821 7.1562 4.54942 7.3522 4.3549L6.6478 3.6451ZM9.51425 1.11353L9.42705 1.60587L9.42705 1.60587L9.51425 1.11353ZM7.49996 0.5C7.22381 0.500024 6.99998 0.723901 7 1.00004C7.00002 1.27619 7.2239 1.50002 7.50004 1.5L7.49996 0.5ZM9.5 3.5C9.5 3.77614 9.72386 4 10 4C10.2761 4 10.5 3.77614 10.5 3.5H9.5ZM9.88647 1.48587L10.3788 1.39877L10.3788 1.39877L9.88647 1.48587ZM9.77108 1.25L9.41888 0.8951L6.6478 3.6451L7 4L7.3522 4.3549L10.1233 1.6049L9.77108 1.25ZM9.51425 1.11353L9.60144 0.621192C9.24114 0.557384 8.70443 0.528532 8.2832 0.514427C8.06721 0.507194 7.87201 0.503594 7.73084 0.501798C7.66018 0.500899 7.60288 0.500449 7.56305 0.500225C7.54313 0.500112 7.52757 0.500056 7.51689 0.500028C7.51154 0.500014 7.50742 0.500007 7.50458 0.500004C7.50315 0.500002 7.50205 0.500001 7.50128 0.5C7.50089 0.5 7.50059 0.5 7.50037 0.5C7.50026 0.5 7.50017 0.5 7.5001 0.5C7.50007 0.5 7.50003 0.5 7.50001 0.5C7.49998 0.5 7.49996 0.5 7.5 1C7.50004 1.5 7.50003 1.5 7.50002 1.5C7.50002 1.5 7.50002 1.5 7.50003 1.5C7.50004 1.5 7.50008 1.5 7.50013 1.5C7.50024 1.5 7.50044 1.5 7.50071 1.5C7.50126 1.5 7.50214 1.5 7.50334 1.5C7.50573 1.50001 7.50939 1.50001 7.51425 1.50002C7.52399 1.50005 7.53854 1.5001 7.55741 1.50021C7.59515 1.50042 7.65008 1.50085 7.71812 1.50172C7.85435 1.50345 8.04239 1.50692 8.24974 1.51387C8.6752 1.52811 9.14562 1.55603 9.42705 1.60587L9.51425 1.11353ZM10 3.5C10.5 3.5 10.5 3.49997 10.5 3.49994C10.5 3.49993 10.5 3.49989 10.5 3.49986C10.5 3.49979 10.5 3.4997 10.5 3.49959C10.5 3.49937 10.5 3.49906 10.5 3.49868C10.5 3.4979 10.5 3.4968 10.5 3.49538C10.5 3.49254 10.5 3.48841 10.5 3.48307C10.4999 3.47239 10.4999 3.45683 10.4998 3.43692C10.4995 3.39709 10.4991 3.33979 10.4982 3.26914C10.4964 3.12798 10.4928 2.9328 10.4855 2.71683C10.4714 2.29563 10.4426 1.759 10.3788 1.39877L9.88647 1.48587L9.39412 1.57298C9.44392 1.85446 9.47183 2.32489 9.48609 2.75033C9.49304 2.95767 9.49652 3.1457 9.49827 3.28193C9.49914 3.34997 9.49957 3.4049 9.49979 3.44263C9.49989 3.4615 9.49995 3.47605 9.49997 3.48579C9.49999 3.49065 9.49999 3.49432 9.5 3.49671C9.5 3.4979 9.5 3.49878 9.5 3.49933C9.5 3.49961 9.5 3.4998 9.5 3.49991C9.5 3.49997 9.5 3.5 9.5 3.50002C9.5 3.50003 9.5 3.50002 9.5 3.50002C9.5 3.50001 9.5 3.5 10 3.5ZM9.51425 1.11353L9.42705 1.60587C9.42825 1.60608 9.42604 1.60583 9.42166 1.60358C9.41726 1.60132 9.4121 1.59777 9.40714 1.5928C9.40217 1.58784 9.39863 1.58268 9.39638 1.5783C9.39414 1.57394 9.3939 1.57175 9.39412 1.57298L9.88647 1.48587L10.3788 1.39877C10.3076 0.996416 10.0039 0.692473 9.60144 0.621192L9.51425 1.11353Z",fill:"#020202"})]})})]},e.p_id)}))})})(P.pro_plugin):"download_failed"==H?(0,g.jsx)(z,{}):void 0),close_popup:()=>S(!1)})]});var H})),Qn=[{element:(0,g.jsx)(en,{}),path:"/login",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Bn,{}),path:"/signup",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(On,{}),path:"/forgot_password",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(tn,{}),path:"/login-api",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(an,{}),path:"/browse",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(sn,{}),path:"/share_with_me",condition:!0,setting_panel:["template","builder","snippet"]},{element:(0,g.jsx)(Un,{}),path:"/browse_snippets",condition:"wdkit"===window.wdkit_editor,setting_panel:["snippet"]},{element:(0,g.jsx)(Kn,{}),path:"/mysnippet",condition:"wdkit"===window.wdkit_editor,setting_panel:["snippet"]},{element:(0,g.jsx)(Yn,{}),path:"/save_snippets",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Xn,{}),path:"/snippet-kit/:kitId",condition:"wdkit"===window.wdkit_editor,setting_panel:["all"]},{element:(0,g.jsx)(gn,{}),path:"/manage_workspace",condition:!0,setting_panel:["template","builder","snippet"]},{element:(0,g.jsx)(nn,{}),path:"/manage_workspace/workspace_template/:id",condition:!0,setting_panel:["template","builder","snippet"]},{element:(0,g.jsx)(rn,{}),path:"/my_uploaded",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(ln,{}),path:"/:kit_parent/kit/:kit_id",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(rs,{}),path:"*",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(ot,{}),path:"/",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(Fn,{}),path:"/import-kit/:kit_id",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(kn,{}),path:"/theplus_popup",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(dn,{}),path:"/download/widget/:w_unique",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Ai,{}),path:"/widget-listing",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(Qi,{}),path:"/widget-listing/builder/:id",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(on,{}),path:"/widget-browse",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(mn,{}),path:"/activate",condition:"wdkit"===window.wdkit_editor&&!wdkitData?.wdkit_white_label?.licence_tab,setting_panel:["all"]},{element:(0,g.jsx)(un,{}),path:"/settings",condition:"wdkit"===window.wdkit_editor,setting_panel:["all"]},{element:(0,g.jsx)(hn,{}),path:"/save_template",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,g.jsx)(hn,{type:"section"}),path:"/save_template/section",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,g.jsx)(vn,{}),path:"/preset/:preset_id",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["all"]},{element:(0,g.jsx)(Nn,{}),path:"/theme/builder/:section_id",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["all"]}],er=[{name:"templates",label:(0,a.__)("Templates","wdesignkit"),type:"all",dependency:["templates"],chlid:[{name:"browse_templates",label:(0,a.__)("Browse Templates","wdesignkit"),sublink:"/browse",condition:!0},{name:"my_templates",label:(0,a.__)("My Templates","wdesignkit"),sublink:"/my_uploaded",condition:!0}]},{name:"widgets",label:(0,a.__)("Widgets","wdesignkit"),type:"wdkit",dependency:["builders"],chlid:[{name:"browse_widgets",label:(0,a.__)("Browse Widgets","wdesignkit"),sublink:"/widget-browse",condition:!0},{name:"my_widgets",label:(0,a.__)("My Widgets","wdesignkit"),sublink:"/widget-listing",condition:!0}]},{name:"code snippet",label:(0,a.__)("Snippets","wdesignkit"),type:"wdkit",dependency:["snippet"],chlid:[{name:"browse_snippets",label:(0,a.__)("Browse Snippets","wdesignkit"),sublink:"/browse_snippets",condition:!0},{name:"mysnippet",label:(0,a.__)("My Snippet","wdesignkit"),sublink:"/mysnippet",condition:!0}]},{name:"save_snippet",label:(0,a.__)("Save Snippet","wdesignkit"),parent_link:"/save_snippets",type:"wdkit"},{name:"workspace",label:(0,a.__)("Workspace","wdesignkit"),type:"wdkit",dependency:["all"],chlid:[{name:"manage_workspace",label:(0,a.__)("Manage Workspace","wdesignkit"),sublink:"/manage_workspace",condition:!0},{name:"shared_with_me",label:(0,a.__)("Shared with Me","wdesignkit"),sublink:"/share_with_me",condition:!0}]},{name:"settings",label:(0,a.__)("Settings","wdesignkit"),type:"wdkit",chlid:[{name:"managel_icence",label:(0,a.__)("Manage Licence","wdesignkit"),sublink:"/activate",condition:!wdkitData?.wdkit_white_label?.licence_tab},{name:"gneral_settings",label:(0,a.__)("General Settings","wdesignkit"),sublink:"/settings",condition:!0}]},{name:"save_template",label:(0,a.__)("Save Template","wdesignkit"),parent_link:"/save_template",type:"popup"},{name:"login",label:(0,a.__)("Login","wdesignkit")},{name:"logout",label:(0,a.__)("Logout","wdesignkit")}],tr=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{const i=ue(),[s,n]=(0,e.useState)(!1),[r,l]=(0,e.useState)(-1),[o,d]=(0,e.useState)([]),[c,u]=(0,e.useState)(!1),[h,w]=(0,e.useState)(!1),[_,f]=(0,e.useState)(!1);pe().pathname;wdkitData.WDKIT_URL;let k=(wdkitData?.wdkit_white_label?.website_url||wdkitData,wdkitData,t?.wdkit_meta?.notification?.Unread>0?t.wdkit_meta.notification.Unread:"");(0,e.useEffect)((()=>{let e=[],a=[];u(!1),w(!1),f(!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&&u(!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&&w(!0)),t?.wdkit_meta?.Setting?.code_snippet&&f(!0))}),[t?.wdkit_meta?.Setting]),(0,e.useEffect)((()=>{window.wdkit_save_snippet&&Array.isArray(window.wdkit_save_snippet)&&d(window.wdkit_save_snippet)}),[]);if(pi())return(0,g.jsxs)("div",{className:"wdkit-res-menu-main",children:[(0,g.jsxs)("div",{className:"wdkit-res-menu-head",children:[(0,g.jsx)(li,{type:"desktop-menu"}),(0,g.jsxs)("div",{className:"wdkit-res-infp-wrapper",children:[(0,g.jsx)(ci,{type:"responsive-menu",notifyCount:k}),p()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("div",{className:"wdkit-res-profile-main",children:(0,g.jsx)("img",{src:t.wdkit_meta?.userinfo?.user_profile,alt:(0,a.__)("Profile Picture","wdesignkit"),className:"wdkit-res-logo-profile",draggable:"false"})})}),(0,g.jsx)(di,{}),(0,g.jsx)("span",{className:"wdkit-hamburger-btn",onClick:()=>{n(!s)},children:(0,g.jsx)("i",{className:s?"wdkit-i-cancel":"wdkit-i-hamburger"})})]})]}),s&&(0,g.jsx)("div",{className:"wdkit-res-menu-body",onClick:e=>{e.target.closest(".wdkit-res-option-container")||n(!1)},children:(0,g.jsx)("div",{className:"wdkit-res-option-container",children:er.map(((e,d)=>{let u="";if(u=r==d&&e?.chlid?.length>0?"wkit-res-menu-active":"",!p()&&("logout"==e?.name||"manage_profile"==e?.name))return null;if(p()&&"login"==e?.name)return null;if("wdkit"==wdkitData.use_editor){if("popup"==e?.type)return null}else if("wdkit"==e?.type)return null;if(("save_template"==e?.name||"presets"==e?.name)&&"wdkit"==wdkitData.use_editor)return null;if(o.length>0){if(o.includes("save_snippet")){if("save_snippet"!==e?.name&&"code snippet"!==e?.name&&"login"!==e?.name&&"logout"!==e?.name)return null}else if("code snippet"!==e?.name&&"login"!==e?.name&&"logout"!==e?.name)return null}else if("save_snippet"==e?.name)return null;return e?.dependency&&!(e=>!e||!Array.isArray(e)||(e.includes("all")?!!(h||c||_):e.includes("templates")?h:e.includes("builders")?c:!e.includes("snippet")||_))(e?.dependency)?null:(0,g.jsxs)("div",{className:"wdkit-res-option-wrapper",children:[(0,g.jsxs)("div",{className:`wdkit-res-option-inner-wrapper ${u}`,onClick:o=>((e,o)=>{"login"==e?.name&&(n(!s),i("/login")),e?.chlid?.length>0?(e=>{l(e==r?-1:e)})(o):("logout"==e?.name&&(async()=>{await m(),t.wdkit_set_notification({title:(0,a.__)("Logout Complete!","wdesignkit"),desc:(0,a.__)("You’ve been signed out. Remember your credentials for your next login.","wdesignkit")})})(),n(!1))})(e,d),children:[e?.parent_link?(0,g.jsx)($t,{to:e?.parent_link,className:"wdkit-res-option-txt",children:e.label}):(0,g.jsx)("span",{className:"wdkit-res-option-txt",children:e.label}),e?.chlid?.length>0&&(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),e?.chlid?.length>0&&d==r&&(0,g.jsx)("div",{className:"wdkit-res-suboption-container",children:e.chlid.map(((e,t)=>{if(e.condition)return(0,g.jsx)($t,{to:e.sublink,className:"wdkit-res-suboption-txt",onClick:()=>{n(!s)},children:e.label},t)}))})]},d)}))})})]})})),ar=({item:t,index:a,Remove_Notification:i,notificationIndex:s})=>{const[n,r]=(0,e.useState)(!1);(0,e.useEffect)((()=>{const e=setTimeout((()=>{n||l()}),3e3);return()=>clearTimeout(e)}),[]);const l=()=>{r(!0),i()};return(0,g.jsxs)("div",{className:`wdkit-toast-content ${n?"wdkit-toast-content-removed":""} ${s.includes(a)?"":"wdkit-toast-content-animation"}`,children:[(0,g.jsxs)("div",{className:"wdkit-toast-details",children:[(0,g.jsx)("span",{className:"wdkit-toast-details-title",children:t?.title}),(0,g.jsx)("span",{className:"wdkit-toast-details-description",children:t?.desc})]}),(0,g.jsx)("span",{className:"wdkit-toast-close",onClick:l,children:"Close"})]})},ir=Ya((e=>({NotificationData:e.wdkit_Notification_message?.notification_content})),(e=>({wdkit_set_notification:t=>e(si(t))})))((t=>{const[a,i]=(0,e.useState)([]),[s,n]=(0,e.useState)([]),r=(window.scrollY||document.documentElement.scrollTop)+20+"px";return(0,e.useEffect)((()=>{t?.NotificationData&&(i((e=>[...e,t?.NotificationData])),t?.wdkit_set_notification("")),0===a.length&&n([])}),[t?.NotificationData]),Array.isArray(a)&&a.length>0?(0,g.jsx)("div",{className:"wdkit-toast-container",style:{position:"wdkit"===wdkitData.use_editor?"fixed":"absolute",top:"wdkit"===wdkitData.use_editor?"50px":r},children:a.map(((t,r)=>r<a.length-4?null:""!=t?.title?((e=>{!s.includes(e)&&a.length>0&&setTimeout((()=>{let t=[...s,e];n(t)}),500)})(r),(0,g.jsx)(e.Fragment,{children:(0,g.jsx)(ar,{item:t,index:r,Remove_Notification:()=>(e=>{const t=a.filter(((t,a)=>a!==e));setTimeout((()=>{i(t)}),400)})(r),notificationIndex:s})},`${t?.title||r}-${r}`)):void 0))}):null})),sr=()=>{const e=wdkitData.WDKIT_URL;return(0,g.jsxs)("div",{className:"wkit-maintenance-mode-content",children:[(0,g.jsxs)("div",{className:"wkit-maintenance-mode-text",children:[(0,g.jsx)("span",{className:"wkit-maintenance-mode-header",children:(0,a.__)("Website Upgrade in Progress.","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-maintenance-mode-description",children:(0,a.__)("Our website is undergoing a transformation to serve you better.","wdesignkit")})]}),(0,g.jsx)("img",{className:"wkit-maintenance-mode-image",src:e+"assets/images/jpg/maintenance_mode.png"})]})},nr=()=>(0,g.jsxs)("div",{className:"wkit-deactivate-account-content",children:[(0,g.jsxs)("div",{className:"wkit-deactivate-account-content-inner",children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,g.jsx)("span",{children:(0,a.__)("Limit reached of active sites. Deactivate one or upgrade your plan to unlock access.","wdesignkit")})]}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{className:"wkit-btn-class wdkit-deactivate-btn",href:`${wdkitData.wdkit_server_url}admin/licence/sites`,target:"_blank",rel:"noopener noreferrer",children:"Manage Sites"})]}),rr=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_GetSettings_redux:t=>e(Qa(t)),wdkit_set_notification:t=>e(si(t)),wdkit_set_dark_mode:t=>e(ni(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[r,l]=(0,e.useState)(!0),[o,d]=(0,e.useState)(!1);(0,e.useEffect)((()=>{const e=document.getElementById("wdesignkit-app-dashboard");!e||"dark"!=t?.wdkit_dark_mode&&"dark"!=wdkitData.WDKIT_dark_mode||(e?.classList?.add("wdkit-dark-mode"),t.wdkit_set_dark_mode("dark"));const a=window.parent.document.body;if(a&&a.classList.contains("nexter-extension_page_nxt_code_snippets")){let e=document.getElementById("wdesignkit-app");e&&e.classList.add("wdkit-snippet-mode")}}),[]),(0,e.useEffect)((()=>{window.wdkit_save_snippet&&Array.isArray(window.wdkit_save_snippet)&&window.wdkit_save_snippet.length>0?d(!0):d(!1)}),[window.wdkit_save_snippet]),(0,e.useEffect)((()=>{null!=t?.wdkit_meta?.success&&l(!1)}),[t?.wdkit_meta?.success]);const c=e=>"external_popup"==e?!i?.hash?.includes("#/theplus_popup")&&!i?.hash?.includes("#/download/widget"):"widget_builder"==e?!i?.hash?.includes("/builder"):"import_kit"==e&&!i?.hash?.includes("/import-kit");return(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wkit-main-menu-dashbord",id:"wdesignkit-app-dashboard",children:[r?(0,g.jsx)("div",{className:"wkit-loading-content",style:{display:"flex"},draggable:!1,children:(0,g.jsx)("div",{className:"wkit-main-loader",children:navigator.onLine?(0,g.jsx)("img",{style:{width:"150px",height:"150px"},src:n,draggable:!1}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("img",{style:{width:"250px",height:"250px"},src:s+"assets/images/jpg/no-internet-connection.png",draggable:!1}),(0,g.jsx)("span",{children:(0,a.__)("Unable to connect to the Internet !","wdesignkit")})]})})}):(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)(yt,{children:[(0,g.jsx)(Ys,{}),(0,g.jsxs)("div",{className:"wkit-right-side",children:[(0,g.jsx)(tr,{props:t,wdkit_set_notification:e=>t.wdkit_set_notification(e)}),"disabled"==t?.wdkit_meta?.login_status&&"pro"==t?.wdkit_meta?.credits?.type&&c("external_popup")&&(0,g.jsx)(nr,{}),"1"==t?.wdkit_meta?.maintenance_mode?.meta_value&&(0,g.jsx)(sr,{}),(0,g.jsx)(Pe,{children:Qn.map(((e,a)=>{if(e.condition&&(e=>{let a=t.wdkit_meta?.Setting;var i=!1,s=!1,n=!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),a?.code_snippet&&(n=!0),e){if(e?.includes("all"))return!0;if(e?.includes("template")&&i)return!0;if(e?.includes("builder")&&s)return!0;if(e?.includes("snippet")&&n)return!0}return!1})(e?.setting_panel))return(0,g.jsx)(De,{path:e.path,element:e.element},a)}))})]}),"wdkit"==wdkitData.use_editor&&c("widget_builder")&&c("import_kit")&&!wdkitData?.wdkit_white_label?.help_link&&!o&&(0,g.jsx)(Qs,{})]})}),(0,g.jsx)(ir,{})]})})})),{form_data:lr,get_userinfo:or}=wp.wkit_Helper,dr=Ya((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(ti(t)),wdkit_GetSettings_redux:t=>e(Qa(t)),wdkit_set_notification:t=>e(si(t))})))((t=>{(0,e.useEffect)((()=>{window.innerWidth<991&&(document.body.classList.contains("folded")||document.body.classList.add("folded"))})),(0,e.useEffect)((()=>{i()}),[]),(0,e.useEffect)((()=>{a()}),[t?.wdkit_dark_mode,wdkitData.WDKIT_dark_mode]);const a=()=>{let e=document.querySelector("#wpcontent");"dark"==t?.wdkit_dark_mode?e&&e.classList.add("wkit-wp-content-dark"):e&&e.classList.contains("wkit-wp-content-dark")&&e.classList.remove("wkit-wp-content-dark")},i=async()=>{if(await p()){let e=await or();if("yes"==e?.data?.login_reset)return void m();null!=e?.data?.success?"logout"!=e.data.login_status&&e?.data?.success?t.wdkit_set_meta(e?.data):(t.wdkit_set_meta(e?.data),m()):navigator.onLine||m()}else{let a={type:"wkit_meta_data",meta_type:"all"};var e=await lr(a).then((e=>e));1==e?.data?.success&&t.wdkit_set_meta(e?.data)}}}));class cr extends t().Component{constructor(e){super(e)}componentWillUnmount(){"wdkit"==window.wdkit_editor||window.location.href.includes("nxt_code_snippets")||window.location.hash&&window.history.replaceState(null,null,window.location.pathname+window.location.search),this.props.wdkit_set_meta("")}render(){return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)(dr,{}),(0,g.jsx)(rr,{})]})}}const pr=Ya((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(ti(t))})))(cr),mr=ws(Es),ur=document.getElementById("wdesignkit-app");ur&&(0,ft.createRoot)(ur).render((0,g.jsx)(Xa,{store:mr,children:(0,g.jsx)(pr,{})})),window.renderWkitReactApp=function(e="wkit-contentbox-modal",t="#/save_snippets"){window.location.hash=t;const a=document.getElementById(e);a?(0,ft.createRoot)(a).render((0,g.jsx)(Xa,{store:mr,children:(0,g.jsx)(pr,{})})):console.error("Root element not found")},window.WdkitThemeBuilderToggle||(window.WdkitThemeBuilderToggle={open:function(e,t,a,i){console.warn("WdkitThemeBuilderToggle.open called but editor files may not be loaded yet. Please ensure gutenberg-editor.js, elementor-editor.js, or theme_builder_editor.js is loaded.")},close:function(e){console.warn("WdkitThemeBuilderToggle.close called but editor files may not be loaded yet.")}})})()})();
Copyright ©2021 || Defacer Indonesia