(()=>{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||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";w.Authorization="Basic "+btoa(b+":"+y)}var x=l(e.baseURL,e.url);function v(){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(x,e.params,e.paramsSerializer),!0),k.timeout=e.timeout,"onloadend"in k?k.onloadend=v:k.onreadystatechange=function(){k&&4===k.readyState&&(0!==k.status||k.responseURL&&0===k.responseURL.indexOf("file:"))&&setTimeout(v)},k.onabort=function(){k&&(a(new p("Request aborted",p.ECONNABORTED,e,k)),k=null)},k.onerror=function(){a(new p("Network Error",p.ERR_NETWORK,e,k,k)),k=null},k.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||c;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),a(new p(t,i.clarifyTimeoutError?p.ETIMEDOUT:p.ECONNABORTED,e,k)),k=null},i.isStandardBrowserEnv()){var j=(e.withCredentials||d(x))&&e.xsrfCookieName?n.read(e.xsrfCookieName):void 0;j&&(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(x);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{"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{"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;a0;)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:y,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);a0&&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.currentRawFrameo[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:y},{name:"destroy",handler:x}].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,y,x]),{View:n.default.createElement("div",d({style:t,ref:S},v)),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,y=o.playSegments,x=o.setSubframe,v=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:y,setSubframe:x,getDuration:v,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:y,setSubframe:x,getDuration:v,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;a1?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=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;sa[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=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;i500)&&(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;athis.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;athis.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.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]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.firstFramet&&(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=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=.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-.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;sr?-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;t1&&(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,y=p*h*g+h*p*g+h*h*m,x=p*p*g+h*p*m+p*h*m,v=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;cu?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=f||e=f?b.points.length-1:0;for(o=b.points[y].point.length,l=0;l=j&&v=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=f?d=1:e1e-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=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;a1e-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=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=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));)_=g.t-this.offsetTime)c=1;else if(ei&&t>i)||(this._caching.lastIndex=s0||e>-1e-6&&e<0?i(1e4*e)/1e4:e}function F(){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=y,this.applyToX=x,this.applyToY=v,this.applyToZ=j,this.applyToPointArray=D,this.applyToTriplePoints=S,this.applyToPointStringified=E,this.toCSS=P,this.to2dCSS=F,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=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;ri+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;t1?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=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=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 y=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 x=y.pop();this.addPaths(y,g),y=this.addShapes(h,w[1],x)}else this.addPaths(y,g),y=this.addShapes(h,w[1]);this.addPaths(y,g)}}h.shape.paths=g}}},TrimModifier.prototype.addPaths=function(e,t){var a,i=e.length;for(a=0;at.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=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;r0&&n[r]<1){var l=e.point(n[r])[t];li&&(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)=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;r1&&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;a1&&(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;n0;)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;t0?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(;bh;)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;f0&&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=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=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;t0&&(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;de?!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.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;e0&&(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(;a1&&(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=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,a=0,i=t.length;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;e0;)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=1?f=.99:f<=-1&&(f=-.99);var k=l*f,b=Math.cos(_+t.a.v)*k+c[0],y=Math.sin(_+t.a.v)*k+c[1];o.setAttribute("fx",b),o.setAttribute("fy",y),d&&!t.g._collapsable&&(t.of.setAttribute("fx",b),t.of.setAttribute("fy",y))}}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;a1&&l&&this.setShapesAsAnimated(r)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,a=e.length;for(t=0;t=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;o1,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;it);)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=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,y=getFontProperties(k);e.fWeight=y.weight,e.fStyle=y.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),a=e.finalText.length,e.finalLineHeight=e.lh;var x,v=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,v=e.tr/1e3*e.finalSize;var D=-1;for(t=0;tC&&" "!==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,_+=v);j+=k.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&Sf?_:f,_=-2*v,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+v:(_+=b+v+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,F,T,L,B=d.a;r=B.length;var I=[];for(n=0;n0?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=l+le||!h?(f=(l+le-d)/o.partialLength,R=u.point[0]+(o.point[0]-u.point[0])*f,M=u.point[1]+(o.point[1]-u.point[1])*f,j.translate(-y[0]*C[s].an*.005,-y[1]*L*.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(-y[0]*C[s].an*.005,-y[1]*L*.01,0);for(P=0;Pe?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 y=this.textContainer,x="start";switch(a.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}y.setAttribute("text-anchor",x),y.setAttribute("letter-spacing",h);var v=this.buildTextContents(a.finalText);for(t=v.length,m=a.ps?a.ps[1]+a.ascent:0,e=0;e=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=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=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=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=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=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=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;nl&&"xMidYMid slice"===o||rs&&"meet"===l||ns&&"slice"===l)?(a-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===d&&(ns&&"slice"===l)?(a-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===c&&(n>s&&"meet"===l||ns&&"meet"===l||n=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=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;a0&&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;aa&&(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=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=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=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var a=0,i=this.threeDElements.length;ar?(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=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;aa){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.5?d/(2-r-l):d/(r+l),r){case i:t=(s-n)/d+(s1&&(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=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;r1){for(i=0;i1?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;ldata.k[t].t&&edata.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;ad.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=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;n1?(s+e-n)/(t-1):1,l=0,o=0;for(a=this.pv.length?createTypedArray("float32",this.pv.length):0;lr){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=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(()=>{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;t1&&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;t0?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,t3&&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,in-s/2?h=s-(g=n-m):mn-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 y=ws-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=0&&e{"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).then((e=>e.data)).catch((e=>e)))(t)},_=async()=>{let e=r(),t=p(),a="wdkit"==window.wdkit_editor?"":window.wdkit_editor;var i="",s="";t&&t.token&&(i=t.token),t&&t.user_email&&(s=t.user_email);let n={type:"get_user_info",token:i,email:s,builder:a,site_url:e},l=await w(n);return window.userData=l,l},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=e?.split(",").pop(),i=t.findIndex((e=>e.w_id==a));if(i>-1){let e=t?.[i];if(e?.parent>0){let a=t.findIndex((t=>t.w_id==e?.parent));a>-1&&(e=t?.[a])}return e?.builder_name?e?.builder_name.toLocaleLowerCase():""}return""},b=()=>(0,g.jsx)("div",{className:"wkit-content-loader",children:(0,g.jsx)("div",{className:"wb-contentLoader-circle"})}),y=e=>!!(e&&e.credits&&e.credits.wdkit_licence)&&e.credits.wdkit_licence.success&&"valid"===e.credits.wdkit_licence.license;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),j=__webpack_require__.n(v);function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t=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 F;function T(e,t,a){return void 0===a&&(a="/"),function(e,t,a,i){let s=J(("string"==typeof t?A(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{let r={relativePath:void 0===n?e.path||"":n,caseSensitive:!0===e.caseSensitive,childrenIndex:s,route:e};r.relativePath.startsWith("/")&&(C(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=X([i,r.relativePath]),o=a.concat(r);e.children&&e.children.length>0&&(C(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),L(e.children,t,o,l)),(null!=e.path||e.index)&&t.push({path:l,score:G(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 B(e.path))s(e,t,a);else s(e,t)})),t}function B(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=B(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"}(F||(F={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const I=/^:[\w-]+$/,R=3,M=2,O=1,V=10,W=-2,q=e=>"*"===e;function G(e,t){let a=e.split("/"),i=a.length;return a.some(q)&&(i+=W),t&&(i+=M),a.filter((e=>!q(e))).reduce(((e,t)=>e+(I.test(t)?R:""===t?O:V)),i)}function z(e,t,a){void 0===a&&(a=!1);let{routesMeta:i}=e,s={},n="/",r=[];for(let e=0;e(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 U(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return S(!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 J(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 K(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 and the router will parse it for you.'}function Z(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 Y(e,t,a,i){let s;void 0===i&&(i=!1),"string"==typeof e?s=A(e):(s=N({},e),C(!s.pathname||!s.pathname.includes("?"),K("?","pathname","search",s)),C(!s.pathname||!s.pathname.includes("#"),K("#","pathname","hash",s)),C(!s.search||!s.search.includes("#"),K("#","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?A(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:ee(i),hash:te(s)}}(s,n),d=l&&"/"!==l&&l.endsWith("/"),c=(r||"."===l)&&a.endsWith("/");return o.pathname.endsWith("/")||!d&&!c||(o.pathname+="/"),o}const X=e=>e.join("/").replace(/\/\/+/g,"/"),Q=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),ee=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",te=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const ae=["post","put","patch","delete"],ie=(new Set(ae),["get",...ae]);function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t{i.current=!0})),e.useCallback((function(e,s){void 0===s&&(s={}),i.current&&("number"==typeof e?t.navigate(e):t.navigate(e,se({fromRouteId:a},s)))}),[t,a])}():function(){pe()||C(!1);let t=e.useContext(ne),{basename:a,future:i,navigator:s}=e.useContext(le),{matches:n}=e.useContext(de),{pathname:r}=me(),l=JSON.stringify(Z(n,i.v7_relativeSplatPath)),o=e.useRef(!1);return ue((()=>{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=Y(e,JSON.parse(l),r,"path"===i.relative);null==t&&"/"!==a&&(n.pathname="/"===n.pathname?a:X([a,n.pathname])),(i.replace?s.replace:s.push)(n,i.state,i)}),[a,s,l,r,t])}()}function ge(){let{matches:t}=e.useContext(de),a=t[t.length-1];return a?a.params:{}}function we(t,a){let{relative:i}=void 0===a?{}:a,{future:s}=e.useContext(le),{matches:n}=e.useContext(de),{pathname:r}=me(),l=JSON.stringify(Z(n,s.v7_relativeSplatPath));return e.useMemo((()=>Y(t,JSON.parse(l),r,"path"===i)),[t,l,r,i])}function _e(t,a,i,s){pe()||C(!1);let{navigator:n}=e.useContext(le),{matches:r}=e.useContext(de),l=r[r.length-1],o=l?l.params:{},d=(l&&l.pathname,l?l.pathnameBase:"/");l&&l.route;let c,p=me();if(a){var m;let e="string"==typeof a?A(a):a;"/"===d||(null==(m=e.pathname)?void 0:m.startsWith(d))||C(!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||C(!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=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||ke,d&&(c<0&&0===n?(Ne[h="route-fallback"]||(Ne[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(ye,{match:s,routeContext:{outlet:t,matches:g,isDataRoute:null!=i},children:a})};return i&&(s.route.ErrorBoundary||s.route.errorElement||0===n)?e.createElement(be,{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:X([d,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:X([d,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),r,i,s);return a&&w?e.createElement(oe.Provider,{value:{location:se({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:x.Pop}},w):w}function fe(){let t=function(){var t;let a=e.useContext(ce),i=function(){let t=e.useContext(re);return t||C(!1),t}(ve.UseRouteError),s=je(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 ke=e.createElement(fe,null);class be 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(de.Provider,{value:this.props.routeContext},e.createElement(ce.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ye(t){let{routeContext:a,match:i,children:s}=t,n=e.useContext(ne);return n&&n.static&&n.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=i.route.id),e.createElement(de.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 je(t){let a=function(){let t=e.useContext(de);return t||C(!1),t}(),i=a.matches[a.matches.length-1];return i.route.id||C(!1),i.route.id}const Ne={},Ce={},Se=(e,t,a)=>{var i;Ce[i="⚠️ React Router Future Flag Warning: "+t+". You can use the `"+e+"` future flag to opt-in early. For more information, see "+a+"."]||(Ce[i]=!0,console.warn(i))};function De(t){let{to:a,replace:i,state:s,relative:n}=t;pe()||C(!1);let{future:r,static:l}=e.useContext(le),{matches:o}=e.useContext(de),{pathname:d}=me(),c=he(),p=Y(a,Z(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 Ee(e){C(!1)}function Pe(t){let{basename:a="/",children:i=null,location:s,navigationType:n=x.Pop,navigator:r,static:l=!1,future:o}=t;pe()&&C(!1);let d=a.replace(/^\/*/,"/"),c=e.useMemo((()=>({basename:d,navigator:r,static:l,future:se({v7_relativeSplatPath:!1},o)})),[d,o,r,l]);"string"==typeof s&&(s=A(s));let{pathname:p="/",search:m="",hash:u="",state:h=null,key:g="default"}=s,w=e.useMemo((()=>{let e=J(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(le.Provider,{value:c},e.createElement(oe.Provider,{children:i,value:w}))}function Ae(e){let{children:t,location:a}=e;return _e(Fe(t),a)}function Fe(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,Fe(t.props.children,n));t.type!==Ee&&C(!1),t.props.index&&t.props.children&&C(!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=Fe(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:i,clearAllCheck:s,clearAllFilters:n})=>(0,g.jsxs)("div",{className:"wdkit-filter-title-b",children:[(0,g.jsxs)("div",{className:"wdkit-filter-heading",children:[(0,g.jsx)("div",{className:"wdkit-filter-title-txt-b",children:e}),s&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"wdkit-filter-heading-seperator"}),(0,g.jsx)("span",{className:"wdkit-filter-clear-all",onClick:()=>{n()},children:(0,a.__)("Clear All Filters","wdesignkit")})]})]}),(0,g.jsx)("div",{style:{cursor:"pointer"},onClick:()=>i(!t),children:(0,g.jsx)("i",{className:"wdkit-i-filter-collapse"})})]}),Be=({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"})})]}),Ie=({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"})})]})},Re=({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)},Me=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,Ve=(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:We}=wp.element,qe=(e,t)=>{var a=e;let i=[...e.matchAll(/|-->)/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)`,y=`var(--tpgb-${n.site_id}-text-transform)`;a=a.replaceAll(b,y)}if(r?.textDecoration){var x=`var(--tpgb-${s}-text-decoration)`,v=`var(--tpgb-${n.site_id}-text-decoration)`;a=a.replaceAll(x,v)}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&&(x=`var(--tpgb-${s}-text-decoration)`,a=a.replaceAll(x,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},Ge=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}}}},ze=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))},He=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(/|-->)/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})},Ue=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))},Je=async(e,t)=>{let a="pagetemplate"==t.type?"pages":"sections",i=p(),n="";var r;if(window.location.hash.search("#/browse")>-1||window.location.hash.includes("#/theme"))var l="import/template/free";else n=null!==(r=i?.user_email)&&void 0!==r?r:"",l="import_template";var o=new FormData;o.append("action","get_wdesignkit"),o.append("kit_nonce",wdkitData.kit_nonce),o.append("api_type",l),o.append("email",n),o.append("custom_meta",!0),"wdkit"!=wdkitData.use_editor?(o.append("type","import_template"),o.append("template_id",e.id),o.append("editor",wdkitData.use_editor),o.append("builder",wdkitData.use_editor),o.append("page_section",a)):(o.append("type","import_multi_template"),o.append("template_ids",JSON.stringify(e)),o.append("editor","wdkit"==wdkitData.use_editor&&e.builder?e.builder:wdkitData.use_editor),o.append("builder",e.builder),o.append("page_section",a));let d=await s().post(ajaxurl,o).then((e=>e.data));if(d?.success){if(d?.data){if(Array.isArray(d?.data.response.image_urls)&&d?.data.response.image_urls?.length>0){let e=[];for(const[t,a]of d?.data.response.image_urls.entries()){let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","save_wp_images"),t.append("image",a);let i=await s().post(ajaxurl,t).then((e=>e.data));i?.success&&e.push(i?.url)}e?.length>0&&(d.data.response.content=((e,t,a)=>{let i="string"==typeof e?e:JSON.stringify(e);return t.forEach(((e,t)=>{const s=a[t];if(!e||!s)return;const n=new RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g");i=i.replace(n,s)})),"string"==typeof e?i:JSON.parse(i)})(d?.data?.response?.content,d?.data?.response?.image_urls,e))}return d.data}return d}},Ke=async(e,t)=>{e?.value?.builder&&"gutenberg"==e.value.builder&&(t=He(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),a.append("defer_media","1");let i=await s().post(ajaxurl,a).then((e=>e.data));if(i.success)return Ze(i,e),i},Ze=async(e,t)=>{const a=Number(e?.inserted_id),i=Array.isArray(e?.image_urls)?e.image_urls:[];if(!a||0===i.length)return;const n=t?.value?.builder||t?.args?.editor||"",r=e=>{let t=new FormData;return t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),Object.entries(e).forEach((([e,a])=>t.append(e,a))),s().post(ajaxurl,t).catch((()=>null))};await r({type:"wkit_schedule_deferred_media_sync",pages:JSON.stringify([{post_id:a,builder:n,image_urls:i}])}),await r({type:"wkit_run_deferred_media_now",post_id:a,builder:n,image_urls:JSON.stringify(i)})},Ye=async(e,t="",a=[])=>{if("gutenberg"==wdkitData.use_editor){let d=wp.blocks.parse(e.content),c=JSON.stringify(d);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(c)){let m={type:"media_import",content:c,editor:wdkitData.use_editor},u=await w(m);u.data&&u.success&&(d=u.data,wp.data.dispatch("core/block-editor").insertBlocks(d))}else wp.data.dispatch("core/block-editor").insertBlocks(d);setTimeout((()=>{w({type:"scan_nexter_widgets"})}),3e3),await setTimeout((async()=>{await wp.data.dispatch("core/editor").savePost(),await window.location.reload()}),1e3);let p=document.querySelector("#wkit-builder-modal");return p&&(p.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){if(a?.length>0){let g=[];a?.map((e=>{"fail"==e?.status&&g?.push(`wb-${e?.w_unique}`)})),e=((e,t=[])=>{const a="string"==typeof e?JSON.parse(e):e,i=new Set(t);return function e(t){return Array.isArray(t)?t.filter((e=>!i.has(e?.widgetType)&&!i.has(e?.elType))).map(e):t&&"object"==typeof t?Object.fromEntries(Object.entries(t).map((([t,a])=>[t,e(a)]))):t}(a)})(e,g)}let h=JSON.stringify(e.content);if(/\.(jpg|png|jpeg|gif|svg|webp)/gi.test(h)){let _={type:"media_import",content:h,editor:wdkitData.use_editor},f=await w(_);f.data&&f.success&&(e.content=f.data)}var i=window.elementor,s=$e;if(i){if(void 0!==s){function k(e){return e.forEach((function(e){e.id=elementorCommon.helpers.getUniqueId(),0{window.location.reload()}),1e3):window.location.reload()}));var o=window?.WdkitPopup?.getElements("content");return o&&(window.WdkitPopupToggle.close(o.get(0)),window.WdkitPopup.destroy()),()=>{clearTimeout(timeId)}}}},Xe=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 Ve(s,i);else"gutenberg"==a&&(n=await qe(s,i));let r=Object.assign({},JSON.parse(e),{content:n});return JSON.stringify(r)};var Qe=["tp-navigation-builder"];const et=e=>{const t=/|-->)/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},ve=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)&&e.color)):[]}}return{typography:[],color:[]}},je=async(e,a=0,i)=>{const n=ye(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(""),F(""),"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 F("wkit-error-red");V(!0);let i="",n={},r={},l="",o=[];if("gutenberg"==window.wdkit_editor){h?i=localStorage.getItem("wdkit_section"):(i=await wp.data.select("core/editor").getEditedPostContent(),l=wp.data.select("core/editor").getCurrentPostId());let e=wp.data.select("core/editor").getEditedPostAttribute("meta");null!=e&&(r=e),n={file_type:"wp_block",title:_,page_id:l,content:i,settings:r};let t=window?.plusGlobalOpt?.settings?.globalContainer;t&&Object.assign(n,{site_settings:t})}else if("elementor"==window.wdkit_editor){let e="";if(h)i=localStorage.getItem("wdkit_section"),i=[JSON.parse(i)];else{var d,c,u,g,w,f,k=null;if(window&&(d=window)&&d&&(c=d.elementor)&&c&&(u=c.previewView)&&u&&(g=u.el)&&g&&(w=g.firstElementChild)&&w&&(k=w),null!=k&&c&&(f=c.config)&&null!==f&&f.document)if(null!=k&&k.model)i=[k.model.toJSON({remove:["default"]})];else if(i=c.elements.toJSON({remove:["default"]}),window.elementor.documents){var b=window.elementor.documents;if(b.getCurrent()){var y=b.getCurrent();e=y&&y.config&&y.config.type?y.config.type:"",l=y.id||"",y.container&&y.container.settings&&(r=y.container.settings.toJSON({remove:["default"]}),r.post_status="publish",r.post_title=_)}}}n={file_type:"elementor",title:_,page_id:l,content:i,el_type:e,settings:r};let t=await(async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wdkit_get_site_setting");var t=await s().post(ajaxurl,e);return t?.data?.success&&t?.data?.data?t.data.data:void 0})();t&&Object.assign(n,{site_settings:t})}if(!i||!n||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"};pe((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:(C=JSON.stringify(n),btoa(unescape(encodeURIComponent(C)))),plugins:JSON.stringify(S),page_id:l};if("elementor"==window.wdkit_editor){if(i)var v=await ve(i);else v="";x=Object.assign({},x,{global_data:v?JSON.stringify(v):JSON.stringify([])})}else if("gutenberg"==window.wdkit_editor){let e=await xe(i);x=Object.assign({},x,{global_data:e?JSON.stringify(e):JSON.stringify([])})}o=be(n);var N=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 Pi(n).then((e=>e))})(x)}else if("replace_temp"==e){let e=Z?.title?Z.title:"",t=Object.assign({},n,{title:e});if(o=be(n),N=await Se(JSON.stringify(t),o),fe.current=N?.data?.id,re&&o.length>0){let e={import_json:"done",upload_images:"loading"};pe((t=>({...t,...e}))),ne((e=>[...e,...o])),Ne(o)}return void V(!1)}var C;if(!N||"object"!=typeof N){if(re){let e={import_json:"fail",upload_images:"fail"};pe((t=>({...t,...e}))),de(!1)}return ie(""),t.wdkit_set_notification({title:(0,a.__)("Template Not Saved","wdesignkit"),desc:(0,a.__)("Server did not respond properly. Please try again.","wdesignkit")}),void V(!1)}let D=N.id?N.id:"",E=N.editpage?N.editpage:"";if(z(E),N&&N.success)if(await Ei().then((e=>t.wdkit_set_meta(e.data))),re&&o.length>0){fe.current=D;let e={import_json:"done",upload_images:"loading"};pe((t=>({...t,...e}))),ne((e=>[...e,...o])),Ne(o)}else Ce();else{if(re){let e={import_json:"fail",upload_images:"fail"};pe((t=>({...t,...e}))),de(!1)}ie(""),t.wdkit_set_notification({title:N.message?N.message:(0,a.__)("Template Not Saved","wdesignkit"),desc:N.description?N.description:(0,a.__)("Something went wrong while saving the template.","wdesignkit")})}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)},Se=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 ve(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 xe(JSON.parse(e).content);n=Object.assign({},n,{global_data:t?JSON.stringify(t):JSON.stringify([])})}return n=Object.assign({},n),await Pi(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"};pe((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:`${wdkitData?.wdkit_server_url}admin/packs/view/${fe.current}`,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 Pi(a).then((e=>{if(e?.data?.success){let t=e?.data?.posts;return t&&v(e?.data?.posts),e}return e})),U(!1)},Fe=()=>(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")})]}),Te=()=>{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})]}),Re()]})]})},Le=()=>(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")})})]}),Be=()=>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")})}):O?(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)},Re=()=>(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.__)("This feature is available for Starter, Professional, Studio, and Agency Bundle in Yearly & Lifetime plans.","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)(Si,{})}):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),ye(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:(ue?"wdkit-disable-btn":"")+" wkit-save-btn wkit-btn-class",disabled:ue,onClick:()=>Ce(),children:(0,a.__)("Save","wdesignkit")})})]}):(0,g.jsxs)("div",{className:"wkit-select-main",children:[(0,g.jsx)(Fe,{}),(0,g.jsx)("div",{style:{display:o?"":"none"},children:(0,g.jsx)(Di,{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=>y(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)(Di,{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)(Di,{children:x?.length>0?x.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:[Te(),(0,g.jsx)("div",{className:"wdkit-save-footer-btn",children:(0,g.jsx)("div",{className:"wkit-btn-right",children:Be()})}),(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")}),Re()]})]})})})]})})}),(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:R&&R.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&&B&&Object.entries(B["Page Templates"]).map((([e,t],a)=>(0,g.jsx)("option",{value:t.term_id,children:t.term_name},a))),"section"==j&&B&&Object.entries(B.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:[Re(),(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")]})})]}),T?.plugin?.length>0?(0,g.jsx)(Di,{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(T?.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==T?.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)(Si,{})})]}),!o&&(0,g.jsx)("div",{className:"wdkit-save-footer-btn wdkit-pop-save-btn",children:(0,g.jsx)("div",{className:"wkit-btn-right",children:Be()})})]}),""!=ae&&(0,g.jsx)(Me,{title:we.title,desc:we.desc,body:"replace_temp"==ae?(0,g.jsx)(Le,{}):"add_workspace"==ae?(0,g.jsx)(ta,{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"))}})]})},Fi={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:""}]},is12Hour:!1},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","%","em","rem"],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:500,step:1},{type:"%",checked:!1,min:0,max:100,step:1},{type:"em",checked:!1,min:0,max:50,step:1},{type:"rem",checked:!1,min:0,max:50,step:1},{type:"deg",checked:!1,min:0,max:360,step:1},{type:"vh",checked:!1,min:0,max:100,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:""}]}}},Ti={text:Li("text","2XXLlqlzKkw"),number:Li("number",""),wysiwyg:Li("wysiwyg",""),code:Li("code",""),hidden:Li("hidden",""),choose:Li("choose","Kl4Qf1vy4bs"),datetime:Li("datetime",""),gallery:Li("gallery",""),media:Li("media","F4r3cCPy7jA"),iconscontrol:Li("iconscontrol","T2kJk41q1W0"),background:Li("background",""),border:Li("border",""),boxshadow:Li("boxshadow",""),textshadow:Li("textshadow",""),color:Li("color",""),cssfilter:Li("cssfilter",""),dimension:Li("dimension","yc6JG9ldy3M"),typography:Li("typography","N9-0IYLyeho"),repeater:Li("repeater",""),heading:Li("heading",""),divider:Li("divider",""),rawhtml:Li("rawhtml",""),slider:Li("slider","xrAdPPeJpYk"),select:Li("select","YeCPqUMx3Cw"),selecttemplate:Li("selecttemplate",""),cpt:Li("cpt",""),product_listing:Li("product_listing",""),taxonomy:Li("taxonomy",""),select2:Li("select2",""),textarea:Li("textarea",""),url:Li("url","wOlHlJFb4hk"),switcher:Li("switcher","mANZ30J5-2w"),popover:Li("popover",""),normalhover:Li("normalhover","SFOifoHKlrU"),icon:Li("icon",""),headingtags:Li("headingtags",""),gradientcolor:Li("gradientcolor",""),sortable:Li("sortable",""),tab:Li("tab",""),toggle:Li("toggle",""),alert:Li("alert",""),notice:Li("notice",""),deprecatednotice:Li("deprecatednotice",""),svg:Li("svg",""),align:Li("align",""),query:Li("query","")};function Li(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 Bi={"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:Ii}=wp.element,Ri=e=>({type:"ADD_LAYOUT_ARRAY",data:e}),Mi=e=>({type:"ADD_WIDGET_ARRAY",data:e}),Oi=e=>({type:"ADD_EDITOR_ARRAY",data:e}),Vi=e=>({type:"Editor_code",data:e}),Wi=e=>({type:"ADD_CONTROLLER",data:e}),qi=e=>({type:"ADD_SECTION",data:e}),Gi=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode,widgetdata:e})),(e=>({addTowidgethandler:t=>e(Mi(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_set_meta:t=>e(gi(t))})))((t=>{const i=he(),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"}]},gutenberg_core:{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}}":""}},gutenberg_core:{array:["icon","headingtags","gradientcolor","tab","toggle","alert","notice","svg","align","query","popover","preview","taxonomy","textarea","textshadow","select2","product_listing","cpt","code","repeater","selecttemplate","wysiwyg","hidden","gallery","cssfilter","sortable"],info:{icon:"",headingtags:"",gradientcolor:"",tab:"",toggle:"",alert:"",notice:"",svg:"",align:"",query:"",popover:"",preview:"",taxonomy:"",textarea:"",textshadow:"",select2:"",product_listing:"",cpt:"",code:"",repeater:"",selecttemplate:"",wysiwyg:"",hidden:"",gallery:"",cssfilter:"",sortable:""}}};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,y]=(0,e.useState)(""),[x,v]=(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,F]=(0,e.useState)(!0),[T,L]=(0,e.useState)(""),[B,I]=(0,e.useState)(""),[R,M]=(0,e.useState)(t?.widgetdata?.WcardData?.widgetdata?.widget_version),[O,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,ue=me.findIndex((e=>e.label===E)),ge=me.findIndex((e=>e.label===J));let we=e=>"gutenberg"===e?"Nexter Gutenberg":"gutenberg_core"===e?"Core Gutenberg":e;const _e=e=>"gutenberg_core"===e?"gutenberg-core":e;(0,e.useEffect)((()=>{"server"==t.quickediteditMeta?L("plugin_server"):L("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 fe=async e=>{if(!x)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",x),await s().post(ajaxurl,n,{headers:{"content-type":"application/json"}}).then((e=>{e?.data?.success?((async e=>{if(e){let a=JSON.stringify(e.Editor_data.html),r=JSON.stringify(e.Editor_data.js),l=JSON.stringify(e.Editor_data.css),o=e.widget_data.widgetdata.widget_id,d=e.widget_data.widgetdata.name+"_"+o,c=e.widget_data.widgetdata.type;await(async e=>{let a={elementor:"elementor_builder",gutenberg:"gutenberg_builder",bricks:"bricks_builder",gutenberg_core:"gutenberg_core_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)}))}})(c);let p=Object.assign({},e.widget_data.widgetdata,{allow_push:!1}),m=Object.assign({},e.widget_data,{widgetdata:p});var i={CardItems:{cardData:e.section_data},WcardData:m,Editor_data:e.Editor_Link,Editor_code:{Editor_codes:[e.Editor_data]}},n="";"elementor"==c?n=await gt("import",i,a,l,r,d,"").then((async e=>e)):"gutenberg_core"==c?n=wt("import",i,a,l,r,"","").then((async e=>e)):"gutenberg"==c?n=_t("import",i,a,l,r,"","").then((async e=>e)):"bricks"==c&&(n=ft("import",i,a,l,r,"","").then((async e=>e))),n&&n?.api?.success?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)},ke=(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(""))},be=(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 than 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")})}},ye=e=>""==e.target.value?(e.target.style.border="1px solid red",F(!0),!0):/^[a-zA-Z][a-zA-Z0-9\s]{0,49}$/.test(e.target.value)&&e.target.value.length<=50&&isNaN(e.target.value.charAt(0))?(e.target.style.border="",F(!0),!0):(document.querySelector(".wb-wkit-widgetName-toolTip").style.display="flex",setTimeout((()=>{document.querySelector(".wb-wkit-widgetName-toolTip").style.display=""}),2e3),F(!1),!1),xe=e=>e.charAt(0).toUpperCase()+e.slice(1),ve=e=>{let i="",s="",n=Bi[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")})})]})},je=e=>{let i=ue;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"==T,onChange:e=>{L("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"==T,onChange:e=>{L("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:T,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")})})]})]})})}),"update-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.jsx)("div",{className:"wb-version-detail",children:(0,g.jsxs)("div",{className:"wb-version-body wb-add-widget",children:[(0,g.jsxs)("div",{className:"wkit-update-widget-info",children:[(0,g.jsx)("div",{className:"wkit-update-widget-icon",children:t.widget_image?(0,g.jsx)("img",{src:t.widget_image,alt:t.quickeditName}):(0,g.jsx)("div",{className:"wkit-update-widget-placeholder",children:(0,g.jsx)("i",{className:"wdkit-i-widget"})})}),(0,g.jsx)("div",{className:"wkit-update-widget-name",children:(0,g.jsx)("span",{children:t.quickeditName})}),(0,g.jsxs)("div",{className:"wkit-update-widget-version",children:[(0,g.jsx)("span",{className:"wkit-update-version-label",children:(0,a.__)("Latest Version : ","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-update-version-value",children:["v",t.widget_update_status?.[t.widget_id]?.latestVersion||"1.0.0"]})]})]}),(0,g.jsxs)("div",{className:"wb-quickedit-footer",children:[(0,g.jsx)("div",{className:"wkit-quickedit-note",children:(0,g.jsxs)("span",{children:[(0,a.__)("Note","wdesignkit")," : ",(0,a.__)("We've upgraded the widget from","wdesignkit")," v",t.widget_update_status?.[t.widget_id]?.currentVersion||"1.0.0"," ",(0,a.__)("to","wdesignkit")," v",t.widget_update_status?.[t.widget_id]?.latestVersion||"1.0.0"," ",(0,a.__)("to enhance performance and improve your experience.","wdesignkit")," ",(0,g.jsx)("a",{href:`https://wdesignkit.com/widgets/${t.quickeditName?.toLowerCase().replace(/\s+/g,"-")}/${t.update_widget_data?.r_id||t.widget_server_id||""}/changelog`,target:"_blank",rel:"noopener noreferrer",className:"wkit-update-changelog-link",children:(0,a.__)("View Change Log","wdesignkit")})]})}),(0,g.jsxs)("div",{className:"wdkit-quickedit-inner",children:[(0,g.jsx)("button",{className:"wdkit-trsprnt-btn",onClick:()=>{t.ClosePopup()},children:(0,a.__)("Cancel","wdesignkit")}),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)("button",{className:"wb-version-popup-btn wkit-btn-class",onClick:e=>{z(!0),t.UpdateWidget(t.update_widget_data,t.update_widget_index)},children:(0,g.jsx)("span",{children:(0,a.__)("Yes, Update It","wdesignkit")})})]})]})]})})})}),"update-success"==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.jsx)("div",{className:"wb-version-body wb-add-widget",children:(0,g.jsxs)("div",{className:"wkit-success-duplicate-content",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 Updated","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-duplicate-success-msg",children:[(0,a.__)("Your","wdesignkit"),' "',t.quickeditName,'" ',(0,a.__)("widget has been updated. You can now customise the new version as you like!","wdesignkit")]}),(0,g.jsx)(Ht,{to:"/widget-listing/builder/"+t.quickeditName+"_"+t.widget_id,target:"_blank",rel:"noopener noreferrer",children:(0,g.jsx)("button",{className:"wb-convert-popup-btn wkit-btn-class",onClick:()=>{t.ClosePopup()},children:(0,g.jsxs)("span",{children:[(0,a.__)("Edit","wdesignkit"),' "',t.quickeditName,'"']})})})]})})})})}),"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?R:"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");M(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:B})]})]}),(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{(async()=>{z(!0);let e=t.quickeditName+"_"+t.widget_id,i=t.quickediteditType,s=e.replaceAll(" ","-"),n=e.replaceAll(" ","_"),r=R||"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 gt("sync",l,e,n,s,void 0,"").then((e=>e));else"gutenberg_core"==i?c=await wt("sync",l,e,n,s,void 0,"").then((e=>e)):"gutenberg"==i?c=await _t("sync",l,e,n,s,void 0,"").then((e=>e)):"bricks"==i&&(c=await ft("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 50 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:O,onChange:e=>{ye(e)&&V(e.target.value)},onBlur:()=>{V(O.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 50 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)(Ii,{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:(0,a.__)("Cancel","wdesignkit")}),(0,g.jsx)("button",{className:"wb-version-popup-btn wkit-btn-class",disabled:!O,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:O,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]}};let r=d.widget_data.widgetdata.type;"elementor"==r?await gt("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_core"==r?await wt("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"==r?await _t("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"==r&&await ft("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)(Ii,{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:O})]}),(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)(Ii,{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"),'"',O,'"',(0,a.__)(" has been successfully duplicated. Customize it as needed.","wdesignkit")," "]}),(0,g.jsx)(Ht,{to:"/widget-listing/builder/"+O+"_"+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")," ",O]})})})]})]})})})]})})}),"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/${_e(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/${_e(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)=>{let i=t?.quickediteditType;if(e!=i&&e!=J)return(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(e)}.svg`}),(0,g.jsx)("span",{children:xe(we(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)(Ii,{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 50 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:O,onBlur:()=>{V(O.trim())},onChange:e=>{ye(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 50 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=>{be(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=>{be(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")})]}),"gutenberg"!==J&&"gutenberg_core"!==J&&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}),je("convert")]}),(0,g.jsx)("div",{className:"wb-quickedit-footer",children:0==G&&(0,g.jsxs)(Ii,{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:!O,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:O})}),(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/${_e(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/${_e(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 ${we(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=Fi?.heading?Fi.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=Fi?.heading?Fi.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=Fi?.[a]?Fi[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=Fi?.[e]?Fi[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=Fi?.[a]?Fi[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=Fi?.[a]?Fi[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=Fi?.dimension?Fi.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=Fi?.divider?Fi.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:O,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 gt("import",f,s,l,r,"","",j).then((async e=>e));else k=await gt("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image).then((async e=>e));else"gutenberg"==e?k=j?await _t("import",f,s,l,r,"",j,"",X).then((async e=>e)):await _t("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image,X).then((async e=>e)):"gutenberg_core"==e?k=j?await wt("import",f,s,l,r,"",j,"",X).then((async e=>e)):await wt("import",f,s,l,r,"","",h?.widget_data?.widgetdata?.w_image,X).then((async e=>e)):"bricks"==e&&(k=j?await ft("import",f,s,l,r,"",j,"").then((async e=>e)):await ft("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 Failed!","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)(Ii,{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/${_e(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/${_e(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)(Ii,{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")," ",O," ",(0,a.__)("widget has been successfully converted to","wdesignkit")," ",xe(we(J))," ",(0,a.__)("Builder","wdesignkit")]}),(0,g.jsx)(Ht,{to:"/widget-listing/builder/"+O+"_"+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")," ",O]})})})]})]})})})]})})}),"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 wkit-wb-grid-widget-radio",children:t.BuilderArray.map(((e,i)=>(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(e)}.svg`})}),(0,g.jsx)("span",{className:E==e?"radio-color":"",children:we(e)}),"gutenberg_core"==e&&(0,g.jsx)("span",{className:"wkit-wb-core-builder-beta-badge",children:(0,a.__)("BETA","wdesignkit")})]},i)))})]}),(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 50 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=>{ye(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 50 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=>{be(e,e.dataTransfer.files[0])},onClick:e=>{ke(e,"upload")},children:[(0,g.jsx)("input",{className:"wb-dropinput-file",type:"file",id:"wb-addwidget-img",name:"wbdropfile",onChange:e=>{be(e,e.target.files[0])},accept:"image/*"}),j?(0,g.jsx)("span",{className:"wkit-remove-widget-img",onClick:e=>{ke(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")]}),"gutenberg_core"!=E&&Object.keys(t.plugin_status).length>0&&"active"!==t.plugin_status[me[ue].name]&&(0,g.jsxs)("div",{className:`wkit-install-dependency ${me[ue]?.class}`,children:[(0,g.jsx)("span",{className:"wkit-install-plugin-text",children:me[ue]?.text}),je("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("");const l={type:E};var e={CardItems:{cardData:[{layout:[],style:[]}]},WcardData:{widgetdata:{name:f.trim(),description:b,category:"WDesignKit",helper_link:"",type:l?.type,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 gt("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_core"==E?await wt("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")})})):"gutenberg"==E?await _t("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 ft("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(),v(e.dataTransfer.files[0]),e.stopImmediatePropagation()})(e)},onClick:e=>{document.querySelector("#wb-import-file").click()},children:[x?(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];v(t),document.querySelector(".dropFileErrorMessage").style.display="none"}})(e)}}),x?(0,g.jsx)("span",{children:x?.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")})}),x&&(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=>{fe()},children:(0,g.jsx)("span",{children:(0,a.__)("Import","wdesignkit")})})}),!x&&(0,g.jsx)("button",{className:"wkit-imports-widget-updateBtn wkit-disable-btn",children:(0,a.__)("Import","wdesignkit")})]})]})})})]})})),zi=({htmlFor:t,label:a,tooltip:i})=>{const s=(0,e.useRef)(null),n=(0,e.useRef)(null),[r,l]=(0,e.useState)(null),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)},d=()=>{o();const e=s.current?.getBoundingClientRect();if(!e)return;const t=e.left+e.width/2,a=e.top<140?"bottom":"top",i="top"===a?e.top-8:e.bottom+8;let n=t;n-120<8?n=128:n+120>window.innerWidth-8&&(n=window.innerWidth-8-120),l({top:i,left:n,placement:a,arrow:t-n})},c=()=>{o(),n.current=setTimeout((()=>l(null)),150)};return(0,g.jsxs)("div",{className:"wdkit-dl-plugin-label",children:[(0,g.jsx)("label",{htmlFor:t,children:a}),(0,g.jsxs)("span",{ref:s,className:"wdkit-dl-plugin-tooltip",tabIndex:0,onMouseEnter:d,onMouseLeave:c,onFocus:d,onBlur:c,children:[(0,g.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M14.6668 7.99935C14.6668 4.31745 11.6821 1.33268 8.00016 1.33268C4.31826 1.33268 1.3335 4.31745 1.3335 7.99935C1.3335 11.6812 4.31826 14.666 8.00016 14.666C11.6821 14.666 14.6668 11.6812 14.6668 7.99935Z",stroke:"#808080",strokeWidth:"1.14286"}),(0,g.jsx)("path",{d:"M8.16178 11.334V8.00065C8.16178 7.68638 8.16178 7.52925 8.06415 7.43162C7.96652 7.33398 7.80939 7.33398 7.49512 7.33398",stroke:"#808080",strokeWidth:"1.14286",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M7.99499 5.33398H8.00098",stroke:"#808080",strokeWidth:"1.14286",strokeLinecap:"round",strokeLinejoin:"round"})]}),r&&(0,g.jsxs)("span",{className:`wdkit-dl-plugin-tooltip-text wdkit-dl-plugin-tooltip-${r.placement}`,style:{top:`${r.top}px`,left:`${r.left}px`},onMouseEnter:o,onMouseLeave:c,children:[i,(0,g.jsx)("span",{className:"wdkit-dl-plugin-tooltip-arrow",style:{left:`calc(50% + ${r.arrow}px)`}})]})]})]})},Hi=t=>{const{widget_details:i,wdkit_set_notification:n,close_popup:r}=t,[l,o]=(0,e.useState)(!1),[d,c]=(0,e.useState)(!1),m=(e,t="")=>{"function"==typeof n&&n({title:e,desc:t})};return(0,g.jsxs)("form",{className:"wdkit-dl-plugin",onSubmit:async e=>{e.preventDefault();let t=p(),n=new FormData(e.target),r=n.get("pluginName"),l=n.get("authorUrl"),o=n.get("pluginSlug"),d=n.get("authorName");var u,h;if((e=>{const t={pluginName:(0,a.__)("Plugin Name","wdesignkit"),version:(0,a.__)("Version","wdesignkit"),licenceUrl:(0,a.__)("Licence URL","wdesignkit"),pluginSlug:(0,a.__)("Plugin Slug","wdesignkit"),pluginPrefix:(0,a.__)("Plugin Prefix","wdesignkit"),authorName:(0,a.__)("Author Name","wdesignkit"),authorUrl:(0,a.__)("Author URL","wdesignkit"),requiredPhpVersion:(0,a.__)("Required PHP Version","wdesignkit"),requiredWpVersion:(0,a.__)("Required WordPress Version","wdesignkit"),contributors:(0,a.__)("Contributors","wdesignkit"),shortDescription:(0,a.__)("Short Description","wdesignkit"),tags:(0,a.__)("Tags","wdesignkit"),textDomain:(0,a.__)("Text Domain","wdesignkit"),faq:(0,a.__)("FAQ","wdesignkit"),changelog:(0,a.__)("Change Log","wdesignkit")};for(const i in t){const s=e.get(i);if("string"==typeof s&&/<[^>]*>?/.test(s))return m((0,a.__)("Invalid characters detected","wdesignkit"),`${t[i]}: ${(0,a.__)("HTML tags are not allowed.","wdesignkit")}`),!1}return!0})(n)&&(u=r,(u?.trim()?u.length>50?(m((0,a.__)("Plugin Name is too long","wdesignkit"),(0,a.__)("Name must be less than 50 characters","wdesignkit")),0):u.length>0&&!/^[A-Za-z]/.test(u)?(m((0,a.__)("Invalid Plugin Name","wdesignkit"),(0,a.__)("Name must start with a letter","wdesignkit")),0):/^[A-Za-z][A-Za-z0-9 ]*$/.test(u)||(m((0,a.__)("Invalid characters in Plugin Name","wdesignkit"),(0,a.__)("Only letters, numbers, and spaces are allowed","wdesignkit")),0):(m((0,a.__)("Plugin Name is required","wdesignkit"),(0,a.__)("Plugin name can not be empty","wdesignkit")),0))&&(h=o,(!h?.trim()||!(h.length>100?(m((0,a.__)("Plugin Slug is too long","wdesignkit"),(0,a.__)("Slug must be 100 characters or fewer","wdesignkit")),1):!/^[a-z][a-z0-9-]*$/.test(h)&&(m((0,a.__)("Invalid Plugin Slug","wdesignkit"),(0,a.__)("Only lowercase letters, numbers, and hyphens are allowed, and it must start with a letter.","wdesignkit")),1)))&&(e=>!(e?.trim()&&e.length>50&&(m((0,a.__)("Author Name is too long","wdesignkit"),(0,a.__)("Author name must be less than 50 characters","wdesignkit")),1)))(d))))if(!l.trim()||(e=>{const t=document.createElement("input");return t.type="url",t.value=e,!(!t?.checkValidity()||!e?.trim().includes("."))})(l)){if(t)try{c(!0);let e=i?.title?i.title.replaceAll(" ","_")+"_"+i.w_unique:"",r={type:"wkit_widget_json",folder_name:i?.title?i.title.replaceAll(" ","-")+"_"+i.w_unique:"",file_name:e,widget_type:i.builder,dependency:i?.dependency?i.dependency:""};var g=await w(r);let l=null;if(g.success){l=g?.data;let e=l?.widget_data.widgetdata.type,r={CardItems:{cardData:l?.section_data},WcardData:l?.widget_data,Editor_data:l?.Editor_Link,Editor_code:{Editor_codes:[l?.Editor_data]}},o=JSON.stringify(l?.Editor_data?.html),d=JSON.stringify(l?.Editor_data?.css),c=JSON.stringify(l?.Editor_data?.js),p="";"elementor"==e?p=await gt("wpPlugin",r,o,d,c,"",""):"gutenberg"==e?p=await _t("wpPlugin",r,o,d,c,"",""):"gutenberg_core"==e?p=await wt("wpPlugin",r,o,d,c,"",""):"bricks"==e&&(p=await ft("wpPlugin",r,o,d,c,"",""));let u=p?.php_file,h=p?.js_file,w=p?.css_file,_=l?.widget_data?.widgetdata;n.append("php_file",u),n.append("js_file",h),n.append("css_file",w),p?.js_react_file&&n.append("js_react_file",p?.js_react_file),n.append("widgetdata",JSON.stringify(_)),n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_plugin_download_get"),n.append("token",t.token),i?.id&&n.append("id",i.id);const f=await s().post(ajaxurl,n);f.data?.success?(m((0,a.__)("Plugin Downloaded Successfully","wdesignkit"),(0,a.__)("The ZIP file is ready and has been successfully downloaded. It is now available for use.","wdesignkit")),window.open(f?.data.data.download_url,"_blank")):m(f.data?.message,f.data?.description)}c(!1)}catch(e){m((0,a.__)("Plugin Export Failed","wdesignkit"),e?.message||(0,a.__)("Something went wrong while generating the plugin package.","wdesignkit")),c(!1)}}else m((0,a.__)("Invalid URL Format","wdesignkit"),(0,a.__)("Please enter a valid author URL.","wdesignkit"))},children:[(0,g.jsxs)("div",{className:"wdkit-dl-plugin-body",children:[(0,g.jsxs)("div",{className:"wdkit-dl-plugin-grid",children:[(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-pluginName",label:(0,a.__)("Plugin Name","wdesignkit"),tooltip:(0,a.__)("Enter the name users will see for your plugin.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Plugin Name","wdesignkit"),id:"wdkit-pluginName",name:"pluginName",required:!0})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-version",label:(0,a.__)("Version","wdesignkit"),tooltip:(0,a.__)("Set the initial version number for your plugin (e.g. 1.0.0).","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Version","wdesignkit"),id:"wdkit-version",name:"version",defaultValue:"1.0.0"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-licenceUrl",label:(0,a.__)("Licence URL","wdesignkit"),tooltip:(0,a.__)("Provide the URL to your plugin's license information.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Licence URL","wdesignkit"),id:"wdkit-licenceUrl",name:"licenceUrl"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-pluginSlug",label:(0,a.__)("Plugin Slug","wdesignkit"),tooltip:(0,a.__)("Enter a unique identifier used for the plugin folder and references.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Plugin Slug","wdesignkit"),id:"wdkit-pluginSlug",name:"pluginSlug"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-pluginPrefix",label:(0,a.__)("Plugin Prefix","wdesignkit"),tooltip:(0,a.__)("Use a unique prefix to avoid conflicts with other plugins.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Plugin Prefix","wdesignkit"),id:"wdkit-pluginPrefix",name:"pluginPrefix"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-authorName",label:(0,a.__)("Author Name","wdesignkit"),tooltip:(0,a.__)("Enter the name of the plugin author or organization.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Author Name","wdesignkit"),id:"wdkit-authorName",name:"authorName"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-authorUrl",label:(0,a.__)("Author URL","wdesignkit"),tooltip:(0,a.__)("Provide the website URL of the plugin author or organization.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Author URL","wdesignkit"),id:"wdkit-authorUrl",name:"authorUrl"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-requiredPhpVersion",label:(0,a.__)("Required PHP Version","wdesignkit"),tooltip:(0,a.__)("Specify the minimum PHP version required for this plugin.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter PHP Version","wdesignkit"),id:"wdkit-requiredPhpVersion",name:"requiredPhpVersion"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-requiredWpVersion",label:(0,a.__)("Required WordPress Version","wdesignkit"),tooltip:(0,a.__)("Specify the minimum WordPress version supported by this plugin.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter WordPress Version","wdesignkit"),id:"wdkit-requiredWpVersion",name:"requiredWpVersion"})]})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-contributors",label:(0,a.__)("Contributors","wdesignkit"),tooltip:(0,a.__)("Add the names of contributors involved in the plugin development.","wdesignkit")}),(0,g.jsx)("textarea",{placeholder:(0,a.__)("Enter Contributors","wdesignkit"),id:"wdkit-contributors",name:"contributors",rows:3})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-shortDescription",label:(0,a.__)("Short Description","wdesignkit"),tooltip:(0,a.__)("Write a brief summary describing the plugin's functionality.","wdesignkit")}),(0,g.jsx)("textarea",{placeholder:(0,a.__)("Enter Short Description","wdesignkit"),id:"wdkit-shortDescription",name:"shortDescription",rows:3})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-advanced",children:[(0,g.jsx)("span",{onClick:()=>{o(!l)},children:(0,a.__)("Advanced Options","wdesignkit")}),(0,g.jsx)(vt,{id:"wdkit-dl-plugin-advanced-switch",checked:l,onChange:()=>{o(!l)}})]}),l&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-tags",label:(0,a.__)("Tags","wdesignkit"),tooltip:(0,a.__)("Add relevant keywords to help categorize your plugin.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Tags","wdesignkit"),id:"wdkit-tags",name:"tags"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-textDomain",label:(0,a.__)("Text Domain","wdesignkit"),tooltip:(0,a.__)("Enter a unique text domain used for translations and localization.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Text Domain","wdesignkit"),id:"wdkit-textDomain",name:"textDomain"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-faq",label:(0,a.__)("FAQ","wdesignkit"),tooltip:(0,a.__)("Add common questions and answers related to your plugin.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter FAQ","wdesignkit"),id:"wdkit-faq",name:"faq"})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-field",children:[(0,g.jsx)(zi,{htmlFor:"wdkit-changelog",label:(0,a.__)("Change Log","wdesignkit"),tooltip:(0,a.__)("List plugin updates, improvements, and bug fixes for each version.","wdesignkit")}),(0,g.jsx)("input",{type:"text",placeholder:(0,a.__)("Enter Change Log","wdesignkit"),id:"wdkit-changelog",name:"changelog"})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-dl-plugin-footer",children:[(0,g.jsx)("button",{type:"button",className:"wdkit-dl-plugin-cancel",onClick:()=>{r&&r()},children:(0,a.__)("Cancel","wdesignkit")}),(0,g.jsxs)("button",{type:"submit",className:"wkit-btn-class "+(d?"wdkit-dl-plugin-loading":""),disabled:d,children:[(0,a.__)("Download Plugin","wdesignkit")," ",d&&(0,g.jsx)(b,{})]})]})]})},{Fragment:Ui}=wp.element,Ji=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_Login_Route:t=>e(hi(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))((t=>{if(!p())return t.wdkit_Login_Route("/widget-listing"),(0,g.jsx)(De,{to:"/login"});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)(""),[y,x]=(0,e.useState)(""),[v,N]=(0,e.useState)(""),[$,C]=(0,e.useState)(""),[S,D]=(0,e.useState)("add-widget"),[E,P]=(0,e.useState)(!1),[A,F]=(0,e.useState)(!1),[T,L]=(0,e.useState)(null),[B,I]=(0,e.useState)(!0),[R,M]=(0,e.useState)(!0),[O,V]=(0,e.useState)(24),[W,q]=(0,e.useState)(1),[G,z]=(0,e.useState)(1),[H,U]=(0,e.useState)(),[J,K]=(0,e.useState)(),[Z,Y]=(0,e.useState)([]),[X,Q]=(0,e.useState)(""),[ee,te]=(0,e.useState)("1.0.0"),[ae,ie]=(0,e.useState)(!1),[se,ne]=(0,e.useState)([]),[re,le]=(0,e.useState)(""),[oe,de]=(0,e.useState)(!1),ce=(0,e.useRef)(null),[pe,me]=(0,e.useState)([]),[ue,he]=(0,e.useState)([]),[ge,we]=(0,e.useState)({title:"",desc:""}),[_e,fe]=(0,e.useState)({}),[ke,be]=(0,e.useState)(null),[ye,xe]=(0,e.useState)(null),ve=[{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 Gutenberg 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)((()=>{Pe()}),[S,E]),(0,e.useEffect)((()=>{p()&&d?.favoritewidgets&&u(d.favoritewidgets)}),[d]),(0,e.useEffect)((()=>{Z?.length>0&&"loading"!==d&&Se()}),[Z?.length,d?.length]),(0,e.useEffect)((()=>{Z?.length>0&&"loading"!==d&&Se()}),[Z?.length,d?.length]),(0,e.useEffect)((()=>{Z?.length>0&&"loading"!==d&&Se()}),[Z?.length,d?.length]),(0,e.useEffect)((()=>{if(d?.widget_list){var e=d.widget_list;ae&&m.length>0&&(e=e.filter((e=>{if(m.length>0&&m.includes(e.id))return e}))),re&&(e=e.filter((e=>e?.title?.toLowerCase().includes(re.toLocaleLowerCase())))),e=e?.filter((e=>"gutenberg_core"===e.builder?t?.wdkit_meta?.Setting?.gutenberg_core_builder:t?.wdkit_meta?.Setting?.[`${e.builder}_builder`])),Y(e),z(1),q(ae?Math.ceil(m?.length/O):Math.ceil(e?.length/O))}}),[d,ae,oe,t?.wdkit_meta?.Setting]),(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")})),je("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css"),o(ve).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&&je(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),t.map((t=>{e[t.name]=t.status})),he(e)}}))}),[]),(0,e.useEffect)((()=>{let e=[];t?.wdkit_meta?.Setting?.elementor_builder&&e.push("elementor"),t?.wdkit_meta?.Setting?.gutenberg_core_builder&&e.push("gutenberg_core"),t?.wdkit_meta?.Setting?.gutenberg_builder&&e.push("gutenberg"),t?.wdkit_meta?.Setting?.bricks_builder&&e.push("bricks"),me(e)}),[t?.wdkit_meta?.Setting]);const je=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)}},Ne=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)}I(!1),M(!1),ie(!1)},$e=e=>{let t=e.target.parentElement.querySelectorAll(".wkit-wb-dropdown");t.length>0&&t.forEach((e=>{e.classList.add("wbdropdown-active")}))},Ce=e=>{let t=Z?.findIndex((t=>t.w_unique==e));D("remove"),l(Z?.[t]?.title),b(Z?.[t]?.builder),x(Z?.[t]?.type),N(Z?.[t]?.w_unique),Z?.[t]?.id&&C(Z?.[t]?.id);var a=document.querySelector(".wb-editWidget-popup")?document.querySelector(".wb-editWidget-popup"):"";a&&a.classList.add("show")},Se=async()=>{if(!d?.widget_list||0===d?.widget_list?.length)return;let e=p();const t=d?.widget_list.filter((e=>e.r_id&&e.r_id>0)).map((e=>e.r_id));if(0!==t.length)try{const a={type:"wkit_check_widget_versions",r_ids:t.join(","),token:e?.token},i=await w(a);if(i?.success&&i?.versions&&i?.versions?.data){const e={},t={};await i.versions.data.forEach((e=>{t[e.widget_id]=e})),d.widget_list.forEach((a=>{if(a.r_id&&a.r_id>0&&t[a.r_id]){const i=t[a.r_id].version,s=a.w_version||a.widget_version||"1.0.0";((e,t)=>{if(!e||!t)return!1;const a=e.split(".").map(Number),i=t.split(".").map(Number);for(let e=0;et)return!0;if(s{D("update-widget"),P(!0),l(e.title),b(e.builder),N(e.w_unique),Q(e?.image?e.image:""),be(t),xe(e)};(0,e.useEffect)((()=>{let e=(G-1)*O,a=e+O;if(U(e),K(a),ae){const e=m?.filter((e=>{const t=Z?.find((t=>t.id===e));return void 0!==t}));q(Math.ceil(e?.length/O))}else q(Math.ceil(Z?.length/O));setTimeout((()=>{(p()&&t?.wdkit_meta?.success||t?.wdkit_meta?.success)&&(I(!1),M(!1))}),800)}),[Z,G,O,t?.wdkit_meta?.Setting]);const Pe=(e=S)=>{if(e){var t={...ge};"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."):"update-widget"==e?(t.title="Update Widget",t.desc="Are you sure you want to update this widget to the latest version?"):("update-success"==e||"empty_data"==e)&&(t.title="",t.desc=""),we(t)}},Ae="loading"!==d&&d?.widget_list?.length>0;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)(Ui,{children:1==R?(0,g.jsx)("div",{className:"wkit-widget-search-skeleton"}):(0,g.jsx)("div",{className:"wdkit-search-wrapper-b",children:(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("input",{className:"wkit-search-input-b",placeholder:(0,a.__)("Search...","wdesignkit"),type:"text",onChange:e=>{le(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(de(!oe),ce.current.blur())},ref:ce}),(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=>de(!oe),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)(Ui,{children:0==R&&(0,g.jsxs)("div",{className:`${p()?"":"wkit-fav-plugin-link"} ${Ae?"":"wkit-disable-btn-class"}`,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 "+(Ae?"":"wdkit-diabled-element"),onClick:()=>{p()&&ie(!ae)},children:(0,g.jsx)("i",{className:ae?"wdkit-i-filled-heart":"wdkit-i-heart"})})]})}),(0,g.jsxs)(Ui,{children:[1==R&&(0,g.jsxs)(Ui,{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==R&&(0,g.jsxs)(Ui,{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==B&&(0,g.jsx)(Dt,{}),Z?.length<=0&&0==B&&(0,g.jsx)(yt,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"create-custom-elementor-widget-using-free-wdesignkit-widget-builder/"}),0==B&&(0,g.jsx)("div",{className:"wkit-skeleton-row",children:Z?.length>0&&Z.map(((e,n)=>{return!!(e&&H<=n&&J>n&&(r=e.builder,"gutenberg_core"===r?t?.wdkit_meta?.Setting?.gutenberg_core_builder:t?.wdkit_meta?.Setting?.[`${r}_builder`]))&&(0,g.jsx)(Ui,{children:(0,g.jsxs)("div",{className:"wdkit-browse-card",children:["active"!==e.is_activated&&(0,g.jsxs)(Ui,{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=>{Ce(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(ne((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 gt("private_download",e,s,r,n,"",l).then((async e=>e)):"gutenberg_core"==a?o=await wt("private_download",e,s,r,n,"",l).then((async e=>e)):"gutenberg"==a?o=await _t("private_download",e,s,r,n,"",l).then((async e=>e)):"bricks"==a&&(o=await ft("private_download",e,s,r,n,"",l).then((async e=>e))),!(!o||1!=o.api.success||(await Ne(),await ne((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 Retrieved.","wdesignkit")})):(t.wdkit_set_notification({title:e.message,desc:e.description}),ne((e=>e.filter((e=>e!==i)))),Ne())}))}}})(e.w_unique,n)},children:[(0,g.jsx)("div",{className:"wkit-wb-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})}),se.includes(n)&&(0,g.jsx)("div",{className:"wkit-wb-download-loader"})]})}),"server"!=e?.type&&se.includes(n)&&(0,g.jsx)("div",{className:"wkit-wb-widget-download wkit-wb-widget-updating",children:(0,g.jsx)("div",{className:"wkit-wb-download-btn",children:(0,g.jsx)("span",{className:"wkit-wb-update-text",children:(0,a.__)("Updating...","wdesignkit")})})}),(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)(Ui,{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]),ae&&Y((e=>e.filter((e=>e.id!==a))))}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)(Ui,{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)(Ui,{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)(Ui,{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)(Ui,{children:[(0,g.jsx)("i",{className:"wdkit-i-globe"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Public","wdesignkit")})]})})]}),_e[e.w_unique]?.hasUpdate&&"server"!=e?.type&&(0,g.jsxs)("div",{className:"wdkit-browse-card-badge wdkit-update-badge",onClick:t=>{Ee(e,n)},children:[(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{d:"M10.1105 0.666992L10.5091 1.41217C10.7786 1.91597 10.9134 2.16787 10.8243 2.27575C10.7352 2.38363 10.4417 2.2965 9.85476 2.12225C9.26796 1.94803 8.64493 1.85429 7.99935 1.85429C4.50155 1.85429 1.66602 4.60597 1.66602 8.00033C1.66602 9.11979 1.97443 10.1693 2.5133 11.0733M5.88824 15.3337L5.48959 14.5885C5.22007 14.0847 5.08531 13.8328 5.17442 13.7249C5.26353 13.617 5.55701 13.7042 6.14394 13.8784C6.73074 14.0526 7.35376 14.1464 7.99935 14.1464C11.4972 14.1464 14.3327 11.3947 14.3327 8.00033C14.3327 6.88087 14.0243 5.83131 13.4854 4.92731",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),(0,g.jsx)("span",{className:"wkit-wb-tooltiplist",children:(0,a.__)("Update Available","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)(Ht,{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)(Ht,{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:$e,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)(Ht,{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=>{L(e),F(!0)},children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Download WP Plugin","wdesignkit")})})}),(0,g.jsx)("div",{className:"wkit-wb-mainmenu",children:(0,g.jsx)("li",{onClick:t=>{Ce(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),Q(t?.image?t.image:"")},children:(0,g.jsx)("span",{className:"wkit-wb-listmenu-text",children:(0,a.__)("Duplicate","wdesignkit")})})}),pe.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),Q(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()&&_e[e.w_unique]?.hasUpdate&&!se.includes(n)&&(0,g.jsx)("div",{className:"wkit-wb-mainmenu wkit-wb-update-menu",children:(0,g.jsx)("li",{onClick:t=>{Ee(e,n)},children:(0,g.jsxs)("span",{className:"wkit-wb-listmenu-text",children:[(0,a.__)("Update to","wdesignkit")," v",_e[e.w_unique]?.latestVersion]})})}),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),te(e.w_version),x(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_core"==e?.builder&&(0,g.jsx)("img",{src:i+"/assets/images/wb-svg/gutenberg-core.svg",draggable:!1}),"gutenberg"==e?.builder&&(0,g.jsx)("img",{src:i+"/assets/images/wb-svg/gutenberg.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:Z?.length>O&&W>1&&(0,g.jsx)("div",{className:"wkit-pagination-main",children:(0,g.jsx)(j(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:W,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&&(I(!0),M(!0),z(e.nextSelectedPage+1))},forcePage:G-1,onPageActive:()=>{}})})})]})}),1==E?(0,g.jsx)("div",{className:`wb-edit-popup wdkit-${S}-popup`,children:(0,g.jsx)(Me,{title:ge.title,desc:ge.desc,body:(0,g.jsx)(Gi,{quickeditName:r,quickediteditDesc:h,quickediteditType:k,quickediteditMeta:y,w_version:ee,plugin_status:ue,popup_header:e=>{Pe(e)},setPlugin_status:he,plugin_detail:ve,widget_id:v,widget_image:X,BuilderArray:pe,widget_server_id:$,UpdateData:()=>Ne(),ClosePopup:()=>{P(!1)},StartLoading:()=>{I(!0)},endLoading:()=>{I(!1)},popup:S&&S,widget_update_status:_e,update_widget_index:ke,update_widget_data:ye,UpdateWidget:async(e,i)=>{const s=_e[e.w_unique];if(!s||!s.r_id)return void t.wdkit_set_notification({title:(0,a.__)("Update Failed","wdesignkit"),desc:(0,a.__)("No update information available.","wdesignkit")});ne((e=>[...e,i]));let n=p();if(n){let r={api_type:"widget/download",w_uniq:s.r_id.toString(),u_id:t?.wdkit_meta?.userinfo?.id,d_type:"update",token:n.token},o={type:"wkit_public_download_widget",widget_info:JSON.stringify(r)};await w(o).then((async s=>{if(null!=s?.json){const n=await(async e=>{let t=JSON.parse(e.json),a=t?.widget_data?.widgetdata?.type,i=JSON.stringify(t?.Editor_data?.html),s=JSON.stringify(t?.Editor_data?.js),n=JSON.stringify(t?.Editor_data?.css),r=e.image,l=Object.assign({},t.widget_data.widgetdata,{allow_push:!1}),o=Object.assign({},t.widget_data,{widgetdata:l});var d={CardItems:{cardData:t.section_data},WcardData:o,Editor_data:t.Editor_Link,Editor_code:{Editor_codes:[t.Editor_data]}},c="";return"elementor"==a?c=await gt("private_download",d,i,n,s,"",r).then((async e=>e)):"gutenberg_core"==a?c=await wt("private_download",d,i,n,s,"",r).then((async e=>e)):"gutenberg"==a?c=await _t("private_download",d,i,n,s,"",r).then((async e=>e)):"bricks"==a&&(c=await ft("private_download",d,i,n,s,"",r).then((async e=>e))),c})(s);n&&n.api&&1==n.api.success?(ne((e=>e.filter((e=>e!==i)))),await Ne(),D("update-success"),P(!0),l(e.title),N(e.w_unique),fe((t=>{const a={...t};return delete a[e.w_unique],a}))):t.wdkit_set_notification({title:(0,a.__)("Update Failed","wdesignkit"),desc:(0,a.__)("Failed to update widget files.","wdesignkit")})}else t.wdkit_set_notification({title:s?.message||(0,a.__)("Update Failed","wdesignkit"),desc:s?.description||(0,a.__)("Something went wrong.","wdesignkit")});ne((e=>e.filter((e=>e!==i))))})).catch((e=>{console.error("Error updating widget:",e),t.wdkit_set_notification({title:(0,a.__)("Update Failed","wdesignkit"),desc:(0,a.__)("An error occurred while updating the widget.","wdesignkit")}),ne((e=>e.filter((e=>e!==i))))}))}},setWidget_update_status:fe,setactivate_loader:ne}),close_popup:()=>{P(!1)}})}):"",A&&(0,g.jsx)(Me,{title:(0,a.__)("Download Widget as Plugin","wdesignkit"),desc:(0,a.__)("Turn your widget into a ready-to-use WordPress plugin in just a few clicks.","wdesignkit"),body:(0,g.jsx)(Hi,{widget_details:T,wdkit_set_notification:t.wdkit_set_notification,close_popup:()=>{F(!1)}}),close_popup:()=>{F(!1)}})]})})),{Fragment:Ki}=wp.element,Zi=ai((e=>({cardData:e.CardItems.cardData,controller:e.Active_controller,Editor_code:e.Editor_code.Editor_codes,widgetdata:e.WcardData})),(e=>({addToCarthandler:t=>e(Ri(t)),addToEditor_code:t=>e(Vi(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||"is12Hour"==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)(Ki,{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)(Ki,{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)(Ki,{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)(Ki,{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)(Ki,{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)(Ki,{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)(Ki,{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||"gutenberg_core"===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)(Ki,{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)(Ki,{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)(Ki,{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)(Ki,{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||"gutenberg_core"===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)("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:"none"===h.exclude_inline_options?(0,a.__)("None","wdesignkit"):"icon"===h.exclude_inline_options?(0,a.__)("Icon","wdesignkit"):(0,a.__)("Svg","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:"none",onClick:e=>{u(e,"exclude_inline_options")},children:(0,a.__)("None","wdesignkit")}),(0,g.jsx)("option",{value:"icon",onClick:e=>{u(e,"exclude_inline_options")},children:(0,a.__)("Icon","wdesignkit")}),(0,g.jsx)("option",{value:"svg",onClick:e=>{u(e,"exclude_inline_options")},children:(0,a.__)("Svg","wdesignkit")})]})]})]})}),(0,g.jsx)("hr",{className:"wb-controller-hr"})]}),null!=h?.separator&&"bricks"!==i&&"gutenberg"!==i&&"gutenberg_core"!==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&&"gutenberg"!=i&&"gutenberg_core"!=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_core"!==i&&"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&&"gutenberg_core"!==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&&"gutenberg_core"!==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)(Ki,{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)(Ki,{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")}})]})})}),null!=h?.is12Hour&&"gutenberg_core"==i&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("hr",{className:"wb-controller-hr"}),(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.__)("12 Hours","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wb-tooltip",children:[(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-screen-icon",src:n+"assets/images/wb-svg/info.svg",width:"15"}),(0,g.jsx)("span",{className:"wkit-wb-tooltiptext",children:(0,a.__)("Whether to enable the 12 Hours Time.","wdesignkit")})]})]}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:h.is12Hour,onChange:e=>{u(e,"is12Hour")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]})})]}),(e=>{let t=Ti[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)]})})})})),Yi=[{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"]}]}}],Xi=[{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"]}]}}],Qi=[{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"]}]}}],es=[{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:"switcher",label:"Toggle",icon:"wdkit-i-wbc-switcher",keyword:["toggle","switcher","checkbox"]},{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:"select",label:"Select",icon:"wdkit-i-wbc-select",keyword:["select","dropdown"]},{name:"choose",label:"Choose",icon:"wdkit-i-wbc-choose",keyword:["choose","radioadvanced","align","justify"]}]},"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","upload"]},{name:"iconscontrol",label:"Icon",icon:"wdkit-i-wbc-icon-control",keyword:["icon","fontawesome","iconscontrol"]}]},"Group Controls":{Name:"Group Controls",data:[{name:"typography",label:"Typography",icon:"wdkit-i-wbc-typography",keyword:["typography"]},{name:"border",label:"Border",icon:"wdkit-i-wbc-border",keyword:["border"]},{name:"boxshadow",label:"Box Shadow",icon:"wdkit-i-wbc-box-shadow",keyword:["boxshadow","shadow"]},{name:"background",label:"Background",icon:"wdkit-i-wbc-background",keyword:["background"]}]},"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:"Normal / Hover",icon:"wdkit-i-wbc-normal-hover",keyword:["hover","normalhover","tabs"]}]},"UI Controls":{Name:"UI Controls",data:[{name:"heading",label:"Heading",icon:"wdkit-i-wbc-heading",keyword:["heading","info","note","labelheading"]},{name:"divider",label:"Divider",icon:"wdkit-i-wbc-devider",keyword:["divider","separator"]},{name:"rawhtml",label:"RawHTML",icon:"wdkit-i-wbc-raw-html",keyword:["rawhtml","info","note"]}]}}],{Fragment:ts}=wp.element,as=["textarea","wysiwyg","popover","gallery","repeater","iconscontrol","slider","textshadow","boxshadow","background","cssfilter","selecttemplate","cpt","product_listing","taxonomy","choose","datetime","normalhover","rawhtml","preview"],is=ai((e=>({widgetdata:e.WcardData.widgetdata,cardData:e.CardItems.cardData,controller:e.Active_controller,section_id:e.Active_section.section,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addToCarthandler:t=>e(Ri(t)),addToActiveController:t=>e(Wi(t)),addToActiveSection:t=>e(qi(t)),wdkit_set_notification:t=>e(fi(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=Xi:"gutenberg_core"==t.widgetdata.type?c=es:"gutenberg"==t.widgetdata.type?c=Yi:"bricks"==t.widgetdata.type&&(c=Qi);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=Fi[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=Fi[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,s)=>(e.Name&&e.Name,(0,g.jsxs)(ts,{children:[0!=s&&(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,i)=>{let s=e.label,n=e.name,r=e.icon;const l=n.toLowerCase(),o=y(t.wdkit_meta),d=as.includes(l)&&!o;return(0,g.jsx)(ts,{children:(0,g.jsxs)("div",{className:"wkit-wb-widget "+(d?"wkit-wb-pro-controller":""),draggable:!d,onDragStart:e=>{d?e.preventDefault():e.dataTransfer.setData("controller_id",n.toLowerCase().split(" ").join(""))},onDragEnd:e=>{setTimeout((()=>{e.target.classList.remove("drag")}),500)},onDoubleClick:e=>{d||h(n)},onTouchEndCapture:e=>{d||h(n)},"data-component":n.toLowerCase().split(" ").join(""),children:[(0,g.jsx)("span",{className:"wdkit-wbc-icon-cover",children:(0,g.jsx)("i",{className:r||""})}),(0,g.jsx)("span",{className:"wkit-wb-widget-text",children:s}),d&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("svg",{className:"wkit-pro-svg",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",children:(0,g.jsx)("path",{d:"M13.583 2.31054C13.583 2.79523 13.2684 3.22417 12.9839 3.39575L12.4992 7.27619C12.4706 7.50354 12.299 7.7037 12.0703 7.78949C8.70312 8.95906 5.05145 8.95906 1.71145 7.78949C1.48412 7.7323 1.31254 7.50354 1.28395 7.27619L0.799264 3.39575C0.341721 3.25277 0 2.82383 0 2.31054C0 1.68286 0.513307 1.16957 1.14097 1.16957C1.76865 1.16957 2.28337 1.68286 2.28337 2.31054C2.28337 2.51071 2.25478 2.68228 2.16898 2.82383L3.22418 3.88045C3.45294 4.13638 3.85184 4.13638 4.10921 3.88045L6.02084 1.96882C5.82066 1.74005 5.67912 1.45409 5.67912 1.14098C5.67912 0.513298 6.19242 0 6.82008 0C7.44778 0 7.96105 0.513298 7.96105 1.14098C7.96105 1.48269 7.81807 1.76865 7.61935 1.96882L9.53096 3.88045C9.75974 4.13638 10.1587 4.13638 10.416 3.88045L11.4426 2.85243C11.3568 2.68228 11.2996 2.51071 11.2996 2.31054C11.2996 1.68286 11.8143 1.16957 12.442 1.16957C13.0697 1.16957 13.583 1.68286 13.583 2.31054Z",fill:"#FFC100"})}),(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})]})]})},i)}))})]},s))))})]})}));let ss=new AbortController;const ns=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")||(ss&&ss.abort(),n({loader:!1,url:""}))},d=e=>{const{widget_data:i,plugin_status:s}=t||{},n="Draft"===t?.widget_data?.publish_type,r="gutenberg_core"===i?.type,l="active"===Object.values(s||{})[0],o={draft:(0,a.__)("Live preview is unavailable for draft widgets. Publish the widget to enable live preview.","wdesignkit"),pluginAndDraft:(0,a.__)("To use live preview, install the required plugin and publish the widget.","wdesignkit"),plugin:(0,a.__)("Live preview requires the relevant plugin. Please install it first.","wdesignkit")};return"tooltip"===e?r&&n?o.draft:!l&&n?o.pluginAndDraft:l?n?o.draft:"":o.plugin:"btn"===e?r?n:!l||n: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};ss=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:ss.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}))}})()}},`preview-${t?.widget_data?.widget_id||"default"}`)]})})]})},{Fragment:rs}=wp.element,ls=ai((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(Oi(t)),addTowidgethandler:t=>e(Mi(t)),addToActiveController:t=>e(Wi(t)),addToEditor_code:t=>e(Vi(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),[y,x]=(0,e.useState)(""),[v,j]=(0,e.useState)(""),[N,$]=(0,e.useState)(""),[C,S]=(0,e.useState)(""),[D,E]=(0,e.useState)(""),[P,A]=(0,e.useState)([]),F=(0,e.useRef)(),T=(0,e.useRef)(null),L=((0,e.useRef)(),(0,e.useRef)(),(0,e.useRef)());var B=wdkitData.WDKIT_URL;let I=["align","hidden","switcher","slider","dimension","heading","rawhtml","divider","choose","color","background","border","boxshadow","textshadow","cssfilter","typography","preview","gradientcolor"];const R=()=>{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(v){let e=[];P.filter((t=>{if(v.trim()&&t.latest?.includes(v.trim().replaceAll(" ","-").toLowerCase())||t.name?.includes(v.trim().replaceAll(" ","-").toLowerCase())){const a=t?.latest?.split(".").pop();y==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();y==a&&e.push(t)}})),setTimeout((()=>{E(e)}),300)}}),[v,N]);const M=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 O=(e,a)=>{var i=[...t.Editor_data];"css"==e?(i[0].css.push(""),t.addTolinkhandler(i)):"js"==e?(i[0].js.push(""),t.addTolinkhandler(i)):"search_data"===e&&(1==i[0][y].length&&""==i[0][y][0]?i[0][y][0]=a:i[0][y].push(a),"css"===y?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(""),x(""),M(),j(""),$("")):"click"==t&&(b(""),x(""))},z=(e,a)=>{let i=[...t.Editor_data];"js"==a?F.currente&&(i[0].js.splice(e,0,i[0].js[F.current]),i[0].js.splice(F.current+1,1),t.addTolinkhandler(i)):"css"==a&&(F.currente&&(i[0].css.splice(e,0,i[0].css[F.current]),i[0].css.splice(F.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=R();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
\n \x3c!-- Enter code here --\x3e\n
\n`):(s.session.replace(d,""),Z()))}else s.session.insert(o,`\n\n
\n \x3c!-- Enter code here --\x3e\n
\n`);else if(null!=a){let i=R()+R();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 \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 \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)(rs,{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)(rs,{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)(rs,{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)(rs,{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:L,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="",M()}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="",M()}})()},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)})),M()}})(),x("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"),x("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="",M()}})(),x("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"),x("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)(rs,{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)(rs,{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:B+"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=>{x("css"),b("css")},children:(0,g.jsx)("i",{className:"wdkit-i-settings"})}),(0,g.jsx)("span",{className:"wdkit-editor-action-btn",onClick:()=>{L.current.requestFullscreen?L.current.requestFullscreen():L.current.webkitRequestFullscreen?L.current.webkitRequestFullscreen():L.current.msRequestFullscreen&&L.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)(ns,{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:()=>{x("css")},className:"css"==y?"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:()=>{x("js")},className:"js"==y?"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"==y&&(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:v,onChange:e=>{j(e.target.value)}})]}),""!==v.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=>{O("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:B+"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)(rs,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{F.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:T,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:()=>{O("css")},children:[(0,g.jsx)("span",{children:(0,a.__)("Add More","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})]})})]}),"js"==y&&(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=>{O("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:B+"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)(rs,{children:(0,g.jsxs)("div",{draggable:!0,onDragStart:e=>{F.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:()=>{O("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:os}=wp.element,ds=ai((e=>({widgetdata:e})),(e=>({addTowidgethandler:t=>e(Mi(t)),wdkit_set_notification:t=>e(fi(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"}]},gutenberg_core:{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,y]=(0,e.useState)(t.widgetdata.WcardData.widgetdata.w_image),[x,v]=(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,F]=(0,e.useState)(s?.[t.widgetdata.WcardData.widgetdata.type]?.icons[0]),[T,L]=(0,e.useState)(!1),[B,I]=(0,e.useState)(!1),[R,M]=(0,e.useState)(""),O=(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 than 2 mb.","wdesignkit")});else{e.preventDefault();let s=i?.type.split("/");s.includes("png")||s.includes("jpg")||s.includes("jpeg")?(v((()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e})()),y(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="",y(""))};return(0,g.jsx)("div",{className:"wkit-wb-content wkit-wb-popoupScroll",onClick:e=>{(e=>{T&&L(!1),B&&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 50 charaters and first letter can't be digit.","wdesignkit")})]})]}),(0,g.jsx)("input",{className:"wkit-wb-block-text-inp",value:r,type:"text",ref:O,placeholder:(0,a.__)("Enter your Widget Name","wdesignkit"),onChange:e=>{""==O?.current?.value?(O.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("")):""!=O?.current?.value&&(O.current.style.border="",/^[a-zA-Z][a-zA-Z0-9\s]{0,49}$/.test(O.current.value)?l(O.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(!B)},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:B?"flex":"none"},className:"wkit-wb-select-category-options",children:$&&$.map(((e,t)=>(0,g.jsx)(os,{children:(0,g.jsx)("span",{className:"wkit-wb-cat-option",onClick:t=>{d(e),I(!B)},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=Bi[A?.value].filter((e=>""===R.trim()||e.toLocaleLowerCase().includes(R.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=>{L(!T)},children:[(0,g.jsx)("span",{className:"wkit-selected-icons",children:A?.label}),s?.[e]?.icons?.length>1&&(0,g.jsx)("img",{className:"wkit-svg "+(T?"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 "+(T?"wkit-dp-show":""),children:s?.[e]?.icons?.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-icon-value",onClick:t=>{F(e),p(n[e?.value]),L(!T)},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:R,onChange:e=>{M(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:x,key_words:s});e&&a&&i&&t.Close_popup(),t.addTowidgethandler(n)})()},children:(0,a.__)("Save","wdesignkit")})]})]})})})})),cs=ai((e=>({widgetdata:e,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addTowidgethandler:t=>e(Mi(t)),wdkit_set_meta:t=>e(Change_wdkit_meta(t)),wdkit_set_notification:t=>e(fi(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),[y,x]=(0,e.useState)(""),v=(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=(he(),ge()),A=(0,e.useRef)("");var F=P.id,T=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 L=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}let m=t.widgetdata.WcardData.widgetdata.type;return"elementor"==m?p?await gt(a,e,l,o,d,F,p).then((e=>{c=e})):await gt(a,e,l,o,d,F,"").then((e=>{c=e})):"gutenberg_core"==m?p?await wt(a,e,l,o,d,F,p).then((e=>{c=e})):await wt(a,e,l,o,d,F,"").then((e=>{c=e})):"gutenberg"==m?p?await _t(a,e,l,o,d,F,p).then((e=>{c=e})):await _t(a,e,l,o,d,F,"").then((e=>{c=e})):"bricks"==m&&(p?await ft(a,e,l,o,d,F,p).then((e=>{c=e})):await ft(a,e,l,o,d,F,"").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},B=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(""),x(""))},R=()=>(0,g.jsx)("i",{className:"wdkit-i-globe"}),M=()=>(0,g.jsx)("i",{className:"wdkit-i-file"}),O=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:T+"assets/images/wb-svg/elementor.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-icon",src:T+"assets/images/wb-svg/gutenberg.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-gutenberg-core-icon",src:T+"assets/images/wb-svg/gutenberg-core.svg",draggable:"false"}),(0,g.jsx)("img",{className:"wkit-wb-plus-icon wkit-bricks-icon",src:T+"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,49}$/.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:v,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((()=>{v.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)(R,{}):(0,g.jsx)(M,{}),(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:()=>{B("Draft")},children:[(0,g.jsx)(M,{}),(0,g.jsx)("span",{children:(0,a.__)("Draft","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-dropdown-item",value:"publish",name:"Publish",onClick:()=>B("Publish"),children:[(0,g.jsx)(R,{}),(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:()=>{L(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)(Me,{title:O("title"),desc:O("desc"),body:"widget_info"==k?(0,g.jsx)(ds,{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)x("");else if(!/^[0-9.]*$/.test(a))return void x("You can enter only number here");w(e.target.value),""==a.trim()?x("Version is required"):t?.widgetdata?.WcardData?.widgetdata?.widget_version>=e.target.value?x(`Version ${e.target.value} is already available`):x("")})(e)},disabled:!t?.widgetdata?.WcardData?.widgetdata?.widget_version}),(0,g.jsx)("p",{className:"wb-error-message",children:y})]})]}),(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{(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 L(r,"sync").then((e=>{l=e})),l&&l.ajax&&(1==l?.ajax?.data?.success?(b(""),x(""),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")}),x(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:ps}=wp.element,ms=["textarea","wysiwyg","popover","gallery","repeater","iconscontrol","slider","textshadow","boxshadow","background","cssfilter","selecttemplate","cpt","product_listing","taxonomy","choose","datetime","normalhover","rawhtml","preview"],us=()=>(0,g.jsx)("svg",{className:"wkit-pro-svg",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"9",viewBox:"0 0 14 9",fill:"none",children:(0,g.jsx)("path",{d:"M13.583 2.31054C13.583 2.79523 13.2684 3.22417 12.9839 3.39575L12.4992 7.27619C12.4706 7.50354 12.299 7.7037 12.0703 7.78949C8.70312 8.95906 5.05145 8.95906 1.71145 7.78949C1.48412 7.7323 1.31254 7.50354 1.28395 7.27619L0.799264 3.39575C0.341721 3.25277 0 2.82383 0 2.31054C0 1.68286 0.513307 1.16957 1.14097 1.16957C1.76865 1.16957 2.28337 1.68286 2.28337 2.31054C2.28337 2.51071 2.25478 2.68228 2.16898 2.82383L3.22418 3.88045C3.45294 4.13638 3.85184 4.13638 4.10921 3.88045L6.02084 1.96882C5.82066 1.74005 5.67912 1.45409 5.67912 1.14098C5.67912 0.513298 6.19242 0 6.82008 0C7.44778 0 7.96105 0.513298 7.96105 1.14098C7.96105 1.48269 7.81807 1.76865 7.61935 1.96882L9.53096 3.88045C9.75974 4.13638 10.1587 4.13638 10.416 3.88045L11.4426 2.85243C11.3568 2.68228 11.2996 2.51071 11.2996 2.31054C11.2996 1.68286 11.8143 1.16957 12.442 1.16957C13.0697 1.16957 13.583 1.68286 13.583 2.31054Z",fill:"#FFC100"})});wdkitData.WDKIT_SITE_URL;var hs=wdkitData.WDKIT_URL;const gs=ai((e=>({cardData:e,controller:e.Active_controller,widgetdata:e.WcardData.widgetdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({addToCarthandler:t=>e(Ri(t)),addToActiveController:t=>e(Wi(t)),wdkit_set_notification:t=>e(fi(t))})))((t=>{const i=()=>{if("elementor"==t?.widgetdata?.type)var e="#91003b";else"gutenberg_core"==t?.widgetdata?.type?e="#287CB2":"gutenberg"==t?.widgetdata?.type?e="#162D9E":"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},_=()=>ms.includes(t.type)&&!y(t.wdkit_meta),f=(e,a,i,s)=>{if(_())return;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)d=l.dimension_defaultValue&&!0===l.dimension_defaultValue.isLinked?Object.assign({},l.dimension_defaultValue,{top:e.target.value,right:e.target.value,bottom:e.target.value,left:e.target.value}):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];var 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)},k=(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=Fi[l].name,a=Object.assign({},Fi[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)}},b=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("")},x=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)},v=(e,a)=>{document.querySelector(".wkit-expand-icon-box-border.wkit-wb-selected")&&document.querySelector(".wkit-expand-icon-box-border").click();let i=e.target.closest(".wb-main-component");if(!e.target.closest(".duplicate-btn")&&!e.target.closest(".remove-btn")){let e="";if(i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type&&i.dataset.rnp?e=t.cardData.CardItems.cardData[0][i.dataset.array_type][i.dataset.sec_id].inner_sec[i.dataset.compo_id].fields[i.dataset.rnp].type:i&&i.dataset.compo_id&&i.dataset.sec_id&&i.dataset.array_type&&(e=t.cardData.CardItems.cardData[0][i.dataset.array_type][i.dataset.sec_id].inner_sec[i.dataset.compo_id].type),ms.includes(e)&&!y(t.wdkit_meta))return;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)}}},j=()=>{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}},N=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"))},$=e=>(0,g.jsx)("div",{className:"wb-hover-component",onClick:e=>{C(e)},children:!e?.only_edit&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wb-sec-edit duplicate-btn",onClick:e=>{x(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=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})}),C=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"))},S=()=>!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 "+(j()===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=>{v(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=>{f(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=>{f(e,"defaultValue")}})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(_()?"isProControllerDisabled":""),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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:(0,a.__)("Preview","wdesignkit")}),us()]}):(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")})]})}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{hide_edit:!0})})]})})]}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(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=>{f(e,"defaultValue")}})})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{f(e,"defaultValue")},disabled:_()})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{f(e,"defaultValue")}}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()}),(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)(ps,{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:`${hs}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{f(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${hs}assets/images/wb-svg/${a.align_icon}.svg`,onClick:e=>{f(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:`${hs}assets/images/wb-svg/info-white.svg`,onClick:e=>{f(e,"align_defaultValue",a.align_value)}}):(0,g.jsx)("img",{className:"wkit-wb-align-icon",src:`${hs}assets/images/wb-svg/info.svg`,onClick:e=>{f(e,"align_defaultValue",a.align_value)}})]})},i)))})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]})}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 "+(j()==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=>{v(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=>{f(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")})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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=>{f(e,"defaultValue")},disabled:_()})})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"block":"none"},value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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:hs+"assets/images/wb-svg/add-section-icon.svg"})})})]})]}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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"})})]})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(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"})})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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:hs+"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"})]})]})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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:hs+"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"})]})]})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(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=>{f(e,"defaultValue")}})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsx)("span",{className:"wb-css-filter-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(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=>{f(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=>{f(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=>{f(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=>{f(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=>{f(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"})})})]})})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsx)("span",{className:"wb-typography-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(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"})]})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")}})})}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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")&&v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable||(0,a.__)("Repeater","wdesignkit")}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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=>{f(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)(gs,{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(),k(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"})]})]})]}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(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 ${j()==t.name?"wkit-wb-main-selected":""} ${_()?"isProControllerDisabled":""}`,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")&&v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label wkit-wb-popoverInput",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsxs)("div",{className:"wb-popover-options",children:[t.fields&&t.fields.map(((e,a)=>(0,g.jsx)("div",{children:(0,g.jsx)(gs,{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(),k(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")})]})]})]}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","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 "+(j()==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")&&v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{f(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=>{f(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)(gs,{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=Fi[l].name,a=Object.assign({},Fi[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")})]})]})]}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(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 "+(j()==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=>{v(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",{})}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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=>{f(e,"defaultValue")},disabled:_()})})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}}),(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-media-icon",style:{width:1==t.lableBlock?"100%":"65%"},src:hs+"assets/images/jpg/placeholder.png",draggable:"false"})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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 "+(_()?"isProControllerDisabled":""),children:[_()?(0,g.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()}),(0,g.jsx)("span",{className:"wb-icon-list-icon",children:(0,g.jsx)("i",{className:"wdkit-i-wb-configuration"})}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-link-search-icon",src:hs+"assets/images/wb-svg/pana-icon.svg"})]})]})]});if("multirange"==t.type)return(0,e.useEffect)((()=>{const e=document.getElementById("input-left"),t=document.getElementById("input-right"),a=document.querySelector(".slider > .thumb.left"),i=document.querySelector(".slider > .thumb.right"),s=document.querySelector(".slider > .range");e.addEventListener("input",(()=>{const i=e,[n,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 "+(j()==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=>{v(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=>{f(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"})]})]})})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(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=>{f(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"})})})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(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")})]})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(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)(ps,{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=>{f(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=>{f(e,"defaultValue_slider")},disabled:_()})]},a)}))})]})}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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)(ps,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{f(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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")})})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})})]}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}}),(0,g.jsxs)("div",{className:"wb-icons",children:["text-align"==t.alignType&&(0,g.jsxs)(ps,{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:`${hs}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:`${hs}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:`${hs}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:`${hs}assets/images/wb-svg/eicon-text-align-justify.svg`})]})]}),"justify-content"==t.alignType&&(0,g.jsxs)(ps,{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:`${hs}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:`${hs}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:`${hs}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:`${hs}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:`${hs}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:`${hs}assets/images/wb-svg/justify-content-space-evenly.svg`})]})]}),"align-items"==t.alignType&&(0,g.jsxs)(ps,{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:`${hs}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:`${hs}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:`${hs}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:`${hs}assets/images/wb-svg/align-items-stretch.svg`})]})]}),"flex-direction"==t.alignType&&(0,g.jsxs)(ps,{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:`${hs}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:`${hs}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:`${hs}assets/images/wb-svg/align-reverse-direction.svg`})]})]})]})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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)(ps,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{f(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(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=>{N(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=>{f(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=>{f(e,"select2_defaultValue",i,"add")}}),(0,g.jsx)("label",{onClick:e=>{e.target.previousSibling.click()},children:e.lable})]})},a)}))})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-selected":""} ${_()?"isProControllerDisabled":""}`,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=>{v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{style:{display:1==t.showLable?"":"none"},className:"wb-append-label",value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsx)("textarea",{className:"wb-textarea-inp",rows:t.rows,value:t.defaultValue,placeholder:t.placeHolder,onChange:e=>{f(e,"defaultValue")}})]}),S()&&(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=>{_()?e.preventDefault():C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{only_edit:!!t?.only_edit})})]})}),t&&t.description.length>=1&&(0,g.jsx)("p",{className:"wb-append-dec",children:t.description}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]});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 "+(j()==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=>{v(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=>{f(e,"lable")}}),(0,g.jsxs)("label",{className:"wb-switch",children:[(0,g.jsx)("input",{type:"checkbox",checked:t.defaultValue,onChange:e=>{f(e,"switcher_defaultValue")}}),(0,g.jsx)("span",{className:"wb-slider"})]})]}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(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=>{f(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=>{f(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=>{f(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}),S()&&(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=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")},style:{background:a}}),(0,g.jsx)("input",{className:"wb-append-label",value:t.description,onChange:e=>{f(e,"description")},style:{background:a}})]}),(0,g.jsx)("div",{})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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 ${t.deprecatedValue[0].Widget} widget has been deprecated since ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[1].Since}. It has been replaced by ${t.deprecatedValue[4].Replacement}. Note that ${t.deprecatedValue[0].Widget} will be completely removed once ${t.deprecatedValue[3].Plugin} ${t.deprecatedValue[2].Last} is released.`,"wdesignkit")})}),(0,g.jsx)("div",{})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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)(ps,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{f(e,"select_defaultValue",a)},children:e.lable})},t)}))})]})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 "+(j()==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=>{v(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=>{f(e,"lable")}})}),(0,g.jsx)("img",{className:"wb-icon-list-icon",src:hs+"assets/images/wb-svg/pana-icon.svg"})]}),S()&&(0,g.jsxs)("div",{className:"wdkit-three-dot-cover",children:[(0,g.jsx)("i",{className:"wdkit-i-wb-vertical-menu",onClick:e=>{C(e)}}),(0,g.jsx)("div",{className:"wdkit-three-dot-cover-content",children:(0,g.jsx)($,{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 ${j()==t.name?"wkit-wb-main-selected":""} ${_()?"isProControllerDisabled":""}`,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")&&v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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)(ps,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{f(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)(gs,{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)))}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","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 ${j()==t.name?"wkit-wb-main-selected":""} ${_()?"isProControllerDisabled":""}`,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")&&v(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)(gs,{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)))}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})}),_()&&(0,g.jsxs)(g.Fragment,{children:[us(),(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","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 ${j()==t.name?"wkit-wb-main-selected":""} ${_()?"isProControllerDisabled":""}`,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")&&v(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.jsxs)("div",{className:"wb-append-label-container",children:[(0,g.jsx)("span",{className:"wb-append-label",children:t.lable}),us()]}):(0,g.jsx)("input",{className:"wb-append-label",style:{display:1==t.showLable?"":"none"},value:t.lable,onChange:e=>{f(e,"lable")},disabled:_()})}),(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown",children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",onClick:e=>{N(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)(ps,{children:(0,g.jsx)("option",{value:e.lable,onClick:e=>{f(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)(gs,{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)))}),S()&&(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=>{_()?e.preventDefault():C(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=>{x(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=>{b(e)},children:[(0,g.jsx)("i",{className:"wdkit-i-delete"}),(0,a.__)("Delete","wdesignkit")]})]})})]})}),_()&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)("span",{className:"wkit-wb-pro-overlay",children:(0,a.__)("Pro","wdesignkit")})})]})]}):void 0})),{Fragment:ws}=wp.element,_s=ai((e=>({cardData:e.CardItems.cardData,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller,section_id:e.Active_section.section})),(e=>({addToCarthandler:t=>e(Ri(t)),addToActiveController:t=>e(Wi(t)),addToActiveSection:t=>e(qi(t)),wdkit_set_notification:t=>e(fi(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=Fi[n].name;if(e.target.nextSibling.dataset.nha)var s=Object.assign({},Fi[n],{name:o+"_"+i(),key:e.target.nextSibling.dataset.nha});else s=Object.assign({},Fi[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{let s=e.dataTransfer.getData("controller_id");if(s){let e=i();const n=Fi[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({},Fi[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})},y=(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)(ws,{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)(ws,{children:(0,g.jsx)(gs,{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,is12Hour:e.is12Hour})},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=>{y(e,"add")},onDragLeave:e=>{y(e,"remove")},onDrop:e=>{e.preventDefault(),f(e,l),y(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"})]})})]})})})),fs=ai((e=>({Editor_code:e.Editor_code,widgetdata:e.WcardData.widgetdata,controller:e.Active_controller})),(e=>({addToEditor_code:t=>e(Vi(t)),addToCarthandler:t=>e(Ri(t)),addTowidgethandler:t=>e(Mi(t)),addTolinkhandler:t=>e(Oi(t)),addToActiveController:t=>e(Wi(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 Gutenberg 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"),"gutenberg_core"!=t.widgetdata?.type&&o([i[s]]).then((e=>{if(e?.data?.plugins){let t={},a=e.data.plugins.findIndex((e=>"bricks"==e.name));a>-1&&"active"==e.data.plugins?.[a]?.status&&u(wdkitData.WDKIT_SITE_URL+"/wp-content/themes/bricks/assets/css/libs/themify-icons.min.css"),e.data.plugins.map((e=>{t[e.name]=e.status})),c(t)}}))}),[]),(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_core"==t.widgetdata.type?h="wkit-gutenberg-core-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) `)},k=()=>"gutenberg_core"===t?.widgetdata?.type;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:[!k()&&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)(cs,{plugin_status:d,plugin_detail:i}),(0,g.jsxs)("div",{className:"wkit-wb-widget-builder "+(!k()&&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)(ls,{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)(_s,{array_type:"layout"}),"style"==n&&(0,g.jsx)(_s,{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)(Zi,{}),(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)(is,{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/4RhZwuyFd8k?autoplay=1&rel=0",allowFullScreen:!0})})})})]})]})]})})})),ks=ai((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(Vi(t)),addToCarthandler:t=>e(Ri(t)),addTowidgethandler:t=>e(Mi(t)),addTolinkhandler:t=>e(Oi(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))((t=>{const[i,s]=(0,e.useState)(!0),[n,r]=(0,e.useState)("");var l=wdkitData.WDKIT_URL;const o=ge(),d=he();(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,dependency:e?.dependency?e.dependency:""};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)(fs,{})})),bs=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:ys}=wp.element;let xs=new AbortController;const vs=t=>{const i=he(),n=me(),[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,y]=(0,e.useState)(),[x,v]=(0,e.useState)([]),[N,$]=(0,e.useState)(["page_builder","sub_builder","category","free_pro"]),[C,S]=(0,e.useState)(0),[D,E]=(0,e.useState)(!0),[P,A]=(0,e.useState)(!0),[F,T]=(0,e.useState)([]),[L,B]=(0,e.useState)(""),[I,R]=(0,e.useState)(""),[M,O]=(0,e.useState)({free_pro:"",type:"widget_browse_page",buildertype:"",sub_builder:"",perpage:o,page:r}),V=(0,e.useRef)(null),[W,q]=(0,e.useState)([]),[G,z]=(0,e.useState)(window.innerWidth<992),H=t?.wdkit_meta?.widgetbuilder?[...t?.wdkit_meta?.widgetbuilder]:[],U=t?.wdkit_meta?.widgetscategory?[...t?.wdkit_meta?.widgetscategory]:[],[J,K]=(0,e.useState)("");p()||t.wdkit_Login_Route("/widget-browse"),(0,e.useEffect)((()=>{y(t.wdkit_meta)}),[t.wdkit_meta]),(0,e.useEffect)((()=>{if(E(!0),n?.search){const e=new URLSearchParams(n.search),a={};Array.from(e?.entries()).map((([e,t])=>{a[e]=t}));let i=[];t?.wdkit_meta?.Setting?.elementor_builder&&i.push(1),(t?.wdkit_meta?.Setting?.gutenberg_builder||t?.wdkit_meta?.Setting?.gutenberg_core_builder)&&i.push(2),t?.wdkit_meta?.Setting?.bricks_builder&&i.push(3);const s=e=>{if(!e||!H?.length>0)return!1;const t=H.find((t=>t.builder_name.toLowerCase().replace(/\s+/g,"_")===e));return!!t&&i.includes(t.w_id)};a.sub_builder?i.includes(2)?a.buildertype&&"gutenberg"===a.buildertype||(a.buildertype="gutenberg"):(delete a.sub_builder,delete a.buildertype):a.buildertype&&(s(a.buildertype)||delete a.buildertype),O((e=>({...e,...a}))),a.category&&v(JSON.parse(a.category)),a.sub_builder?(_("gutenberg"),k(a.sub_builder)):a.buildertype&&_(a.buildertype),a.free_pro&&K(a.free_pro),a.search&&(R(a.search),B(a.search))}}),[]),(0,e.useEffect)((()=>{ee(),A(!0)}),[M,o,r,b]),(0,e.useEffect)((()=>{const e=()=>{z(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||t?.wdkit_meta?.Setting?.gutenberg_core_builder)&&e.push(2),t?.wdkit_meta?.Setting?.bricks_builder&&e.push(3),q(e)}),[t?.wdkit_meta?.Setting]);const Z=e=>{let t=[];return H?.length>0&&e.map((e=>{let a=H.findIndex((t=>t.w_id==e)),i=H[a]?.builder_name;t.push(i)})),t},Y=e=>Object.fromEntries(Object.entries(e).filter((([e,t])=>t.length>1&&"[]"!==t&&"type"!==e&&"page"!==e&&"perpage"!==e))),X=(e,t)=>{if("category"===t){let t=[...x];if(t.includes(Number(e.target.value))){let i=t.indexOf(Number(e.target.value));t.splice(i,1),v(t);var a=Object.assign({},M,{category:JSON.stringify(t),page:1});l(1)}else t.push(Number(e.target.value)),v(t),a=Object.assign({},M,{category:JSON.stringify(t),page:1}),l(1)}else if("builder"===t){var s="";e.target.checked&&(s=e.target.value),_(s),k(""),a=Object.assign({},M,{buildertype:s,sub_builder:"",page:1}),l(1)}else if("sub_builder"===t){var n="";e.target.checked&&(n=e.target.value),k(n),a=Object.assign({},M,{sub_builder:n,buildertype:"gutenberg",page:1}),l(1)}else if("search"===t)a=Object.assign({},M,{page:1}),l(1);else if("free_pro"===t){var r="";e.target.checked&&(r=e.target.value),K(r),a=Object.assign({},M,{free_pro:r,page:1}),l(1)}a=Object.assign({},a,{search:L}),O(a),R(L);const o=new URLSearchParams(Y(a)).toString();i(`/widget-browse?${o}`)},Q=e=>{if(x.includes(e))return!0},ee=async()=>{if(f)var e=Object.assign({},M,{buildertype:JSON.stringify(["gutenberg"]),sub_builder:f});else if("gutenberg"===w){const a=H?.length>0?H.filter((e=>2===e.parent&&(4===e.w_id?t?.wdkit_meta?.Setting?.gutenberg_core_builder:5===e.w_id&&t?.wdkit_meta?.Setting?.gutenberg_builder))).map((e=>String(e.w_id))):[];e=1===a.length?Object.assign({},M,{buildertype:JSON.stringify(["gutenberg"]),sub_builder:a[0]}):(a.length,Object.assign({},M,{buildertype:JSON.stringify(["gutenberg"]),sub_builder:""}))}else e=w?Object.assign({},M,{buildertype:JSON.stringify([w])}):Object.assign({},M,{buildertype:JSON.stringify(Z(W))});if(b?.widgetbuilder?.length>0){xs&&xs.abort(),xs=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:xs.signal}).then((async e=>{e?.data?.data?.widgets&&(m(e?.data),S(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)})),T(a)})(e?.data),0===e?.data?.data?.widgets?.length&&(M.search||L)&&jt(n?.pathname||"/widget-browse",(M.search||L).trim(),t?.wdkit_meta?.userinfo?.id||"",M)),E(!1),A(!1)})).catch((e=>{s().isCancel(e)}))}},te=e=>{if(!e||""===e)return"";if(H?.length>0){let t=H.find((t=>String(t.w_id)===String(e)));if(t)return t.builder_name}return e},ae=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))},ie=e=>{if(N?.includes(e)){var t=N.filter((t=>t!==e));$(t)}else $([...N,e])},se=e=>{if("reset"===e)v([]),K(""),_(""),k(""),R(""),B(""),l(1),O({free_pro:"",type:"widget_browse_page",buildertype:"",sub_builder:"",perpage:o,page:r}),i("/widget-browse");else if("check"===e)return!!(Array.isArray(Object.values(Y(M)))&&Object.values(Y(M)).length>0)};return(0,g.jsx)("div",{className:`wkit-browse-widget-wrap ${D?"wkit-skeleton":""} ${P?"wkit-widget-skeleton":""}`,children:(0,g.jsxs)("div",{className:"wkit-browse-widget-main",children:[u&&G&&(0,g.jsx)("div",{className:"wdkit-filter-overlay",onClick:()=>ae(!1)}),0==D&&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:ae,clearAllFilters:()=>se("reset"),clearAllCheck:se("check")}),"wdkit"==wdkitData.use_editor&&(0,g.jsxs)("div",{className:"wkit-filter-wrap-panel wkit-mt-15 wkit-justify-left",children:[(()=>{if(W.length>1)return(0,g.jsxs)(ys,{children:[(0,g.jsx)(Ie,{id:"page_builder",title:(0,a.__)("Page Builder","wdesignkit"),accordionToggle:N,onToggle:ie}),N?.includes("page_builder")&&(0,g.jsx)("div",{className:"wkit-filter-builder",children:H.length>0&&W.length>1&&Object.values(H)?.map(((e,t)=>{if(W.includes(e.w_id)){let a=e.builder_name.toLowerCase().replace(/\s+/g,"_");return(0,g.jsx)(ys,{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_"+a,className:"wkit-builder-radio",value:a,name:"selectBuilder",onChange:e=>{X(e,"builder")},checked:w==a}),(0,g.jsx)("label",{className:"wkit-builder-label "+(w==a?"wkit-select-builder":""),htmlFor:"select_builder_"+a,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%"}})]})})(),(()=>{if("gutenberg"===w&&W.includes(2)){const e=H.filter((e=>2===e.parent&&(4===e.w_id?t?.wdkit_meta?.Setting?.gutenberg_core_builder:5===e.w_id&&t?.wdkit_meta?.Setting?.gutenberg_builder)));if(e.length>1)return(0,g.jsxs)(ys,{children:[(0,g.jsx)(Ie,{id:"sub_builder",title:(0,a.__)("Sub Builders","wdesignkit"),accordionToggle:N,onToggle:ie}),N?.includes("sub_builder")&&(0,g.jsx)("div",{className:"wkit-filter-builder",children:e.map(((e,t)=>{let a=String(e.w_id);return(0,g.jsx)(ys,{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_sub_builder_"+e.w_id,className:"wkit-builder-radio",value:a,name:"selectSubBuilder",onChange:e=>{X(e,"sub_builder")},checked:f==a}),(0,g.jsx)("label",{className:"wkit-builder-label "+(f==a?"wkit-select-builder":""),htmlFor:"select_sub_builder_"+a,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%"}})]})}return null})(),(0,g.jsxs)(ys,{children:[(0,g.jsx)(Ie,{id:"free_pro",title:(0,a.__)("Free / Pro","wdesignkit"),accordionToggle:N,onToggle:ie}),N?.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=>{X(e,"free_pro")},checked:!M.free_pro||""==M.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=>{X(e,"free_pro")},checked:"free"==M.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=>{X(e,"free_pro")},checked:"pro"==M.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)(Ie,{id:"category",title:(0,a.__)("Categories","wdesignkit"),accordionToggle:N,onToggle:ie}),(0,g.jsx)("div",{className:"wdkit-category-acc-cover",children:U&&N.includes("category")&&U.map(((e,t)=>(0,g.jsx)(ys,{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=>X(e,"category"),checked:Q(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)_(""),k(""),a=Object.assign({},M,{buildertype:"",sub_builder:""}),O(a);else if("sub_builder"==t)k(""),a="gutenberg"===w?Object.assign({},M,{sub_builder:"",buildertype:"gutenberg"}):w?Object.assign({},M,{sub_builder:"",buildertype:w}):Object.assign({},M,{sub_builder:"",buildertype:""}),O(a);else if("category"==t){let t=[...x];t=t.filter((t=>t!==Number(e))),v(t),a=Object.assign({},M,{category:JSON.stringify(t)}),O(a)}else"free_pro"==t?(K(""),a=Object.assign({},M,{free_pro:""}),O(a)):"search"==t&&(R(""),B(""),a=Object.assign({},M,{search:""}),O(a));const s=new URLSearchParams(Y(a)).toString();i(`/widget-browse?${s}`)};return(0,g.jsx)("div",{className:"wdkit-free-dropdown-mixed",children:(""!=J||x.length>0||""!=w||""!=f||""!=I)&&(0,g.jsx)("div",{className:"wdkit-browse-applied-filter",children:(0,g.jsxs)(ys,{children:[(0,g.jsx)("label",{className:"wdkit-applied-filter-text",children:(0,a.__)("Applied Filter :")}),""!=f&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:te(f)})}),(0,g.jsxs)("button",{onClick:t=>e(t,"sub_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"})})," "]})]}),""!=w&&""==f&&(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"})})," "]})]}),""!=I&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:I})}),(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"})})})]}),""!=J&&(0,g.jsxs)("div",{className:"wdkit-applied-list",children:[(0,g.jsx)("label",{children:(0,g.jsx)("span",{children:J})}),(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"})})," "]})]}),x.length>0&&Object.values(U)?.map(((t,a)=>(0,g.jsx)(ys,{children:x.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:()=>{v([]),K(""),_(""),k(""),R(""),B(""),O(Object.assign({},M,{free_pro:"",category:JSON.stringify([]),buildertype:"",sub_builder:"",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:()=>{ae(!u)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Be,{type:"browse-widgets",searchQuery:L,setSearchQuery:B,handleKeyPress:e=>{"Enter"===e.key&&(X(e,"search"),V.current.blur())},handleFilterChecked:X,inputRef:V})]}),0==P&&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)(ys,{children:(0,g.jsx)(Zt,{widgetData:e,wdkit_dark_mode:t?.wdkit_dark_mode,existingwidget:F,setexistingwidget:e=>{T(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)(xt,{showCount:c?.data?.showwidgets,totalCount:c?.data?.widgetscount,typeText:(0,a.__)("Widgets","wdesignkit")}),C>1&&(0,g.jsx)(j(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:C,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),M.page=e.nextSelectedPage+1)},forcePage:r-1,onPageActive:()=>{}})]})]}),0==P&&c?.data?.widgets.length<=0&&(0,g.jsx)("div",{className:"wkit-post-not-found",children:(0,g.jsx)(yt,{page:"widget",link:wdkitData.WDKIT_DOC_URL+"manage-versions-of-a-widget/"})}),1==P&&(0,g.jsx)(bs,{cards:!0})]})]}),!0===D&&(0,g.jsx)(bs,{filter:!0,cards:!0,filterArgs:M})]})})};let js=new AbortController;const Ns=t=>{var i;const[n,r]=(0,e.useState)(!1),[l,o]=(0,e.useState)(""),[d,c]=(0,e.useState)(""),[m,u]=(0,e.useState)(""),h=(0,a.__)("Select Version","wdesignkit"),[_,f]=(0,e.useState)(h),[k,b]=(0,e.useState)(!1),[y,x]=(0,e.useState)(!0),[v,j]=(0,e.useState)(!1),[N,$]=(0,e.useState)(!1),[C,S]=(0,e.useState)(wdkitData?.wdkit_data_sharing||!1),D=wdkitData?.wdkit_data_sharing_name||"WDesignKit",E=wdkitData?.wdkit_data_sharing_docs||"",P=wdkitData?.wdkit_white_label,[A,F]=(0,e.useState)({plugin_name:P?.plugin_name||"",plugin_desc:P?.plugin_desc||"",developer_name:P?.developer_name||"",website_url:P?.website_url||"",plugin_logo:P?.plugin_logo||"",help_link:P?.help_link||!1,plugin_news:P?.plugin_news||!1,licence_tab:P?.licence_tab||!1,rollback_tab:P?.rollback_tab||!1,force_disable:P?.force_disable||!1});(0,e.useEffect)((()=>{L()}),[]),(0,e.useEffect)((()=>{const e=e=>{e.target?.closest?.(".posi-consent--wdesignkit .posi-consent-allow")?S(!0):e.target?.closest?.(".posi-consent--wdesignkit .posi-consent-skip")&&S(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),(0,e.useEffect)((()=>{!n&&v&&j(!1)}),[n]);const T={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},L=()=>{F(P?{plugin_name:P?.plugin_name||"",plugin_desc:P?.plugin_desc||"",developer_name:P?.developer_name||"",website_url:P?.website_url||"",plugin_logo:P?.plugin_logo||"",help_link:P?.help_link||!1,plugin_news:P?.plugin_news||!1,licence_tab:P?.licence_tab||!1,rollback_tab:P?.rollback_tab||!1,force_disable:P?.force_disable||!1}:T)};t.wdkit_Login_Route("/settings");var B=wdkitData.WDKIT_URL;const I="1"===String(null!==(i=t?.wdkit_meta?.credits?.white_lable?.meta_value)&&void 0!==i?i:"");var R=!0,M=!0,O=!0,V=!0,W=!0,q=!0,G=!0,z=!0,H=!0,U=!1,J=!1,K={remove_entries:!1,all_data:!1,promotion_data:!1,widget_builder_data:!1};if(t?.wdkit_meta?.Setting){var Z=t?.wdkit_meta?.Setting;0==Z?.elementor_builder&&(R=!1),0==Z?.gutenberg_builder&&(M=!1),0==Z?.gutenberg_core_builder&&(G=!1),0==Z?.bricks_builder&&(O=!1),0==Z?.template&&(V=!1),0==Z?.builder&&(W=!1),0==Z?.gutenberg_template&&(q=!1),0==Z?.elementor_template&&(z=!1),0==Z?.code_snippet&&(H=!1),U=1==Z?.cross_copy_paste_elementor||1==Z?.cross_copy_paste,J=1==Z?.cross_copy_paste_gutenberg||1==Z?.cross_copy_paste,"on"==t?.wdkit_meta?.Setting.remove_db?.remove_entries&&(K.remove_entries=!0,1==t?.wdkit_meta?.Setting.remove_db?.all_data&&(K.all_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.promotion_data&&(K.promotion_data=!0),1==t?.wdkit_meta?.Setting.remove_db?.widget_builder_data&&(K.widget_builder_data=!0))}const Y=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")})]})})})})},X=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"):"cross_copy_paste"==e?i=(0,a.__)("Cross Domain Copy/Paste","wdesignkit"):"data_sharing"==e&&(i=(0,a.__)("Data Sharing","wdesignkit"));const n=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()&&I)&&(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 ${n("disable_btn")}`,children:(0,g.jsxs)("div",{className:`wkit-settings-boxed ${n("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 Studio and Agency Bundle 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 ${n("wl-pro")}`,onClick:()=>{o(e),c(i),r(!0)},children:(0,g.jsx)("span",{children:(0,a.__)("Customize","wdesignkit")})})})]})})},Q=()=>{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:"Enable Force Disable Options : 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&&$(!1);let a=Object.assign({},A,{[e]:t});F(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 "+(N?"wkit-error-border":""),onChange:e=>{i("plugin_name",e.target.value)},value:A?.plugin_name,type:"text",placeholder:(0,a.__)("Enter Plugin Name","wdesignkit")}),N&&(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:A?.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:A?.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:A?.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:A?.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:A?.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:A?.[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(A)==JSON.stringify(T),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(!A?.plugin_name.trim()){$(!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(A)};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")})]})]})},ee=(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}),e?.startsWith("cross_copy_paste_")&&(1==t?.wdkit_meta?.Setting?.cross_copy_paste&&(r=Object.assign({},r,{cross_copy_paste_elementor:!0,cross_copy_paste_gutenberg:!0,cross_copy_paste_bricks:!0,[e]:a})),r=Object.assign({},r,{cross_copy_paste:!1}));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)),js&&js.abort(),js=new AbortController,s().post(ajaxurl,o,{signal:js.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)}))},te=(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")):"cross_copy_paste"==e?(i=(0,a.__)("Cross Domain Copy/Paste","wdesignkit"),s=(0,a.__)("Enable copy and paste between different domains.","wdesignkit")):"data_sharing"==e&&(i=(0,a.__)("Data Sharing","wdesignkit"),s=(0,a.__)("Choose what usage details you share with us.","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:[X("features_enable"),X("template"),X("builder"),X("cross_copy_paste"),X("plugin_uninstall"),t?.wdkit_meta?.success&&!P?.rollback_tab&&X("roll_back"),t?.wdkit_meta?.success&&!P?.force_disable&&X("white_label"),wdkitData?.wdkit_data_sharing_available&&X("data_sharing"),Y("role_manager"),Y("error_handling"),Y("performance"),n&&(0,g.jsx)(Me,{title:te(l,"title"),desc:te(l,"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:B+"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","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=>ee("elementor_builder",e.target.checked),checked:R}),(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:B+"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.__)("Core Gutenberg","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-wb-core-builder-beta-badge",children:(0,a.__)("BETA","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 Core Gutenberg Widget Builder and all Core 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=>ee("gutenberg_core_builder",e.target.checked),checked:G}),(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:B+"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 Gutenberg","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 Gutenberg Widget builder and all Nexter 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=>ee("gutenberg_builder",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)("img",{src:B+"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","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=>ee("bricks_builder",e.target.checked),checked:O}),(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=>ee("template",e.target.checked),checked:V}),(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=>ee("builder",e.target.checked),checked:W}),(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=>ee("code_snippet",e.target.checked),checked:H}),(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:B+"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=>ee("elementor_template",e.target.checked),checked:z}),(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:B+"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=>ee("gutenberg_template",e.target.checked),checked:q}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})})]})]}):"roll_back"==e?(m||w({type:"get_wkit_version"}).then((e=>{e?.success?u(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=>{j(!v)},children:[(0,g.jsxs)("div",{className:"wkit-wb-custom-dropDown-header",children:[(0,g.jsx)("label",{children:_}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(v?"wkit-rotate-icon":"")})]}),(0,g.jsx)("div",{className:"wkit-wb-custom-dropDown-content "+(v?"wkit-show-versions":""),children:m?.length>0?m.sort(((e,t)=>e.localeCompare(t,void 0,{numeric:!0}))).reverse().map(((e,t)=>(0,g.jsx)("span",{className:"wkit-rollBack-option",onClick:()=>{f(e),y&&x(!1)},children:e},t))):(0,g.jsx)("span",{className:"wkit-rollback-loader",children:(0,g.jsx)("span",{className:"wkit-loading"})})})]}),k?(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:!!y,onClick:e=>{(async()=>{if(h!==_){if(!confirm((0,a.__)(`Are you sure you want to reinstall ${_} version?`,"wdesignkit")))return;b(!0);let e={type:"rollback_wdkit",version:_};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:K.promotion_data},{text:(0,a.__)("Delete all the Widget Builder widget data.","wdesignkit"),id:"remove-wl-entry",value:"widget_builder_data",checked:K.widget_builder_data},{text:(0,a.__)("Delete all WDesignKit plugin data (templates/widgets)","wdesignkit"),id:"all-data",value:"all_data",checked:K.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 "+(K.remove_entries?"wkit-remove-database-items-active":"wkit-remove-database-items-inactive"),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=>ee("remove_entries",e.target.checked?"on":"off","remove_db"),checked:K.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=>{ee(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:()=>{r(!1)},children:"Cancel"})})]})})})():"white_label"==e?Q():"cross_copy_paste"==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:B+"assets/images/wb-svg/elementor.svg",className:"no-plugin-img",alt:"elementor",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Elementor","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 WDesignKit Copy and WDesignKit Paste inside Elementor editor.","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=>ee("cross_copy_paste_elementor",e.target.checked),checked:U}),(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:B+"assets/images/wb-svg/gutenberg-core.svg",className:"no-plugin-img",alt:"gutenberg",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Gutenberg","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 WDesignKit Copy and WDesignKit Paste inside Gutenberg editor.","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=>ee("cross_copy_paste_gutenberg",e.target.checked),checked:J}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]}),(0,g.jsxs)("div",{className:"wkit-builder-items wkit-builder-items-disabled",children:[(0,g.jsxs)("div",{className:"manage-builder-popup-item",children:[(0,g.jsx)("img",{src:B+"assets/images/wb-svg/bricks.svg",className:"no-plugin-img",alt:"bricks",draggable:"false"}),(0,g.jsx)("span",{className:"wkit-popup-plugin-name",children:(0,a.__)("Bricks","wdesignkit")}),(0,g.jsx)("span",{className:"wdkit-comming-soon-pin",children:(0,a.__)("Coming Soon","wdesignkit")})]}),(0,g.jsx)("div",{className:"wkit-switch-setting-wrap",children:(0,g.jsxs)("label",{className:"wkit-switcher-label wkit-switcher-disabled",children:[(0,g.jsx)("input",{type:"checkbox",disabled:!0,checked:!1,readOnly:!0}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]})]}):"data_sharing"==e?(0,g.jsx)("div",{className:"wkit-builder-wrapper wkit-data-sharing-wrapper",children:(0,g.jsxs)("div",{className:"wdkit-data-sharing-row",children:[(0,g.jsxs)("div",{className:"wdkit-data-sharing-detail",children:[(0,g.jsx)("span",{className:"wdkit-data-sharing-title",children:(0,a.__)("Share Non-Sensitive Details","wdesignkit")}),(0,g.jsx)("span",{className:"wdkit-data-sharing-desc",children:(0,a.sprintf)(/* translators: %s: plugin name, rebranded on a white-labelled install. */ /* translators: %s: plugin name, rebranded on a white-labelled install. */ (0,a.__)("Help make %s faster and more stable. Share basic setup info so we can catch conflicts and ship fixes quicker. Never sold, never shared with third parties.","wdesignkit"),D)}),E&&(0,g.jsx)("a",{className:"wdkit-data-sharing-link",href:E,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("See what details are shared","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=>(e=>{S(e);let t=new FormData;t.append("action","posimyth_consent_wdk"),t.append("nonce",wdkitData.wdkit_consent_nonce),t.append("choice",e?"allow":"skip"),s().post(ajaxurl,t).then((t=>{!0!==t?.data?.success&&S(!e)})).catch((()=>{S(!e)}))})(e.target.checked),checked:C}),(0,g.jsx)("span",{className:"wkit-switcher-slider"})]})})]})}):void 0)([l]),close_popup:()=>{r(!1)}})]})})},$s=()=>{let t=wdkitData.WDKIT_URL;const i=he(),s=me(),[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)(Ht,{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)(Ht,{className:"wkit-pink-btn-class",to:"/",children:(0,a.__)("Back to home","wdesignkit")})]})})},Cs=window.wp.editPost,{Component:Ss,Fragment:Ds}=wp.element,Es=class extends Ss{constructor(e){super(e),this.state={copiedCss:{},checkCopyOrNot:!1}}render(){return(0,g.jsx)(Ds,{children:(0,g.jsx)(Cs.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 As=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Fs=()=>Math.random().toString(36).substring(7).split("").join("."),Ts={INIT:`@@redux/INIT${Fs()}`,REPLACE:`@@redux/REPLACE${Fs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Fs()}`};function Ls(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(Ls)(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:Ts.INIT}),{dispatch:m,subscribe:p,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Ps(10));i=e,m({type:Ts.REPLACE})},[As]: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)}},[As](){return this}}}}}function Bs(e,t,a){return Ls(e,t,a)}const Is={cardData:[{layout:[],style:[]}]},Rs={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:[]}},Ms={links:[{js:[""],css:[""],external_cdn:[]}]},Os={Editor_codes:[{html:"",css:"",js:""}]},Vs={},Ws={section:{sec_id:"0"}},qs={settingdata:{builder:!0,template:!0,gutenberg_builder:!0,elementor_builder:!0,debugger_mode:!1}},Gs={route_history:"/my_uploaded"},zs={wdkitmeta:{plugin:[],builder:[],category:[],tags:[],widgetbuilder:[],widgetscategory:[],plugin_icons:[],Setting:{builder:!0,debugger_mode:!1,elementor_builder:!0,gutenberg_builder:!0,template:!0}}},Hs={wdkitSnippet:[]},Us={notification_content:""},Js={dark_mode:"light"},Ks={},Zs=function(e){const t=Object.keys(e),a={};for(let i=0;i{const a=e[t];if(void 0===a(void 0,{type:Ts.INIT}))throw new Error(Ps(12));if(void 0===a(void 0,{type:Ts.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
'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),document.querySelector(".wkit-builder-modal.wkit-open")||tn(),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){setTimeout((()=>an(s)),150);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}),500)}},close(e){tn();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,i=(t.serialize,t.parse,t.getBlockAttributes,wp.compose.compose),{withSelect:s}=wp.data;let n,r=wdkitData?.wdkit_white_label?.plugin_logo||wdkitData.WDKIT_URL+"assets/images/jpg/Wdesignkit-logo.png";e("wdkit-save-template-section",{render:i([s((function(e){const{getSelectedBlockCount:t,getSelectedBlock:a,getMultiSelectedBlocks:i}=e("core/block-editor");return{count:t(),block:a(),blocks:i()}}))])(Es)}),wp.data.subscribe((()=>{clearTimeout(n),n=setTimeout((()=>{setTimeout((function(){!function(){if(document.querySelectorAll(".wkit-gutenber-btn").length>0||null===document.querySelector(".wkit-gutenber-btn")){let s=wp.data.select("core/editor").getCurrentPostType();if(null!==s){s=s.toLowerCase().replace("/(?<= )[^s]|^./g",(function(e){return e.toUpperCase()}));var e=document.querySelector("#editor"),t=document.querySelector(".edit-post-header-toolbar"),i=document.createElement("div");t&&(i.id="wdkit-block-editor-icon",i.innerHTML='",document.querySelector("#wkit-builder-modal")||(document.body.insertAdjacentHTML("beforeend",'
'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),document.querySelector(".wkit-builder-modal.wkit-open")||tn(),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(i),document.querySelector(".wkit-gutenber-btn")?.addEventListener("click",(function(){const e=document.getElementById("wkit-contentbox-modal");setTimeout((()=>an(e)),150),document.querySelector(".wkit-builder-modal").classList.toggle("wkit-open")}))))}}}()}),1)}),300)})),Xs()((()=>{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"),tn())}}))}const sn=Bs(Zs);window.userData=[],window.wdkit_editor=wdkitData.use_editor;let nn=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",'
'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),nn&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(nn.unmount(),nn=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){nn||(nn=(0,Rt.createRoot)(s)),setTimeout((()=>{nn&&nn.render((0,g.jsx)(ii,{store:sn,children:(0,g.jsx)(bl,{})}))}),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){nn&&(nn.unmount(),nn=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&&nn&&(nn.unmount(),nn=null)})),t&&setTimeout((()=>{nn||(nn=(0,Rt.createRoot)(t)),nn.render((0,g.jsx)(ii,{store:sn,children:(0,g.jsx)(bl,{})}))}),500))},close(e){nn&&(nn.unmount(),nn=null)}};const rn=Bs(Zs);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 ln=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",'
'),document.querySelector("#wkit-background-modal").addEventListener("click",(function(){document.querySelector("#wkit-builder-modal").classList.toggle("wkit-open"),ln&&!document.querySelector("#wkit-builder-modal").classList.contains("wkit-open")&&(ln.unmount(),ln=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){ln||(ln=(0,Rt.createRoot)(s)),setTimeout((()=>{ln&&ln.render((0,g.jsx)(ii,{store:rn,children:(0,g.jsx)(bl,{})}))}),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){ln&&(ln.unmount(),ln=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"),ln&&(ln.unmount(),ln=null))}}));var on=wdkitData.WDKIT_ASSETS;const dn=()=>{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:on+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)))})]})},cn={"/manage_workspace":"/browse","/share_with_me":"/browse","/activate":"/browse","/my_uploaded":"/browse","/mysnippet":"/browse_snippets","/widget-listing":"/widget-browse","/save_template":"/browse","/save_snippets":"/browse_snippets","/browse":"/browse","/widget-browse":"/widget-browse","/browse_snippets":"/browse_snippets"},pn=({type:e="",LoginRoutes:t=""})=>{const i=he();return(0,g.jsxs)("div",{className:"wdkit-auth-panal",children:[(0,g.jsx)("div",{className:"wdkit-auth-panal-left",children:(0,g.jsx)(yi,{type:e})}),(0,g.jsxs)("div",{className:"wdkit-auth-panal-right",children:["login"===e&&(0,g.jsxs)("button",{className:"wkit-btn-class wdkit-back-btn",onClick:()=>{i(cn[t]?cn[t]:"/browse")},children:[(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"}),(0,a.__)("Back","wdesignkit")]}),(e=>"login"===e?(0,g.jsx)(Ht,{to:"/signup",className:"wdkit-login-header-text wdkit-trsprnt-btn",children:(0,a.__)("Create an account","wdesignkit")}):(0,g.jsx)(Ht,{to:"/login",className:"wdkit-login-header-text wdkit-trsprnt-btn",children:(0,a.__)("Back to login","wdesignkit")}))(e),(0,g.jsx)(vi,{type:e})]})]})},mn=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)(Ht,{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)(Ht,{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})})]})]})]})},un=({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")})]}),hn=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:gn,get_userinfo:wn}=wp.wkit_Helper,fn=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=he(),[u,h]=(0,e.useState)(""),[w,_]=(0,e.useState)(""),[f,k]=(0,e.useState)(!1),[b,y]=(0,e.useState)(!1),[x,v]=(0,e.useState)(!1),[j,N]=(0,e.useState)(!1),[$,C]=(0,e.useState)(),[S,D]=(0,e.useState)(!1);(0,e.useEffect)((()=>{let e=p();e?.success&&(window.wdkit_save_snippet?d("/mysnippet"):d("/my_uploaded"))}),[]);const E=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},P=async e=>{if(e.preventDefault(),""==u?.trim()||!hn(u)||""==w?.trim())return void D(!0);if(k(!0),x)var i="normal";else i="session";let n={type:"wkit_login",user_email:u,user_password:w,login_type:i,site_url:s},r=await gn(n).then((e=>e));if(r?.success){c(x?Object.assign({},{user_email:u},r,{login_type:"normal"}):Object.assign({},{user_email:u},r,{login_type:"session"}));let e=await wn();if("yes"==e?.data?.login_reset){await m();let e={...t?.wdkit_meta,success:!1};t.wdkit_set_meta(e)}return t.wdkit_set_meta(e.data),r.message&&t.wdkit_set_notification({title:r?.message,desc:r?.description}),k(!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")}):C(l),void k(!1)},A=e=>b==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)(pn,{type:"login",LoginRoutes:t?.LoginRoutes}),(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 "+(!S||""!=u?.trim()&&hn(u)?"":"wdkit-input-error"),autoComplete:"off",placeholder:(0,a.__)("Email","wdesignkit"),onChange:e=>h(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P(e)}}),S&&""==u?.trim()&&(0,g.jsx)(un,{text:(0,a.__)("Please fill this field","wdesignkit")}),S&&!hn(u)&&(0,g.jsx)(un,{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 "+(S&&""==w?.trim()?"wdkit-input-error":""),children:[(0,g.jsx)("input",{type:j?"text":"password",autoComplete:"off",className:"wdkit-entry-input",placeholder:(0,a.__)("Password","wdesignkit"),onChange:e=>_(e.target.value),onKeyDown:e=>{"Enter"===e.key&&P(e)}}),(0,g.jsx)("div",{className:"wdkit-pass-eye",children:j?(0,g.jsx)("i",{onClick:()=>{N(!j)},className:"wdkit-i-eye"}):(0,g.jsx)("i",{onClick:()=>{N(!j)},className:"wdkit-i-eye-off"})})]}),S&&""==w?.trim()&&(0,g.jsx)(un,{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)(Ht,{to:"/forgot_password",className:"wdkit-hover-line",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==f?(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:f&&"flex"},children:(0,g.jsx)("div",{className:"wb-loader-circle"})})})}):(0,g.jsx)("button",{className:"wdkit-register-button",onClick:e=>{P(e)},children:"logged"==f?(0,a.__)("Logged in","wdesignkit"):(0,a.__)("Log in","wdesignkit")}),$&&(0,g.jsx)(mn,{data:$,btn1_fun:()=>{C(o)},close_popup:()=>{C("")}}),(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=E();y("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 gn(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 wn();if("yes"==r?.data?.login_reset){await m();let e={...t?.wdkit_meta,success:!1};t.wdkit_set_meta(e)}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")});y(!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}),A((0,a.__)("Google","wdesignkit"))]}),(0,g.jsxs)("a",{className:"wdkit-social-signup",onClick:e=>(async()=>{var e=E();y("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 gn(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 wn();if("yes"==l?.data?.login_reset){await m();let e={...t?.wdkit_meta,success:!1};t.wdkit_set_meta(e)}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")});y(!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}),A((0,a.__)("Facebook","wdesignkit"))]}),(0,g.jsx)(Ht,{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)(dn,{})]})},{form_data:kn,get_userinfo:bn}=wp.wkit_Helper,yn=t=>{const i=he();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 kn(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 bn();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)(pn,{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 login key 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)(un,{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)(Ht,{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)(dn,{}),u&&(0,g.jsx)(mn,{data:u,btn1_fun:()=>{h("")},close_popup:()=>{h("")}})]})};wp.wkit_Pages={Side_menu:Ci,Wdkit_Login:fn,Wdkit_Login_Api:yn,Browse:St,MyUploaded:Ft,Kit_Page:It,Share_with_me:ea,Manage_Workspace:sa,Workspace_single:mi,Save_template:Ai,Main_js_container:Ji,Loader_container:ks,Widget_brows:vs,Wkit_settings:Ns,Page_not_found:$s};const xn=ai((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(ui(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_Login_Route:t=>e(hi(t))})))(Ci),{Fragment:vn}=wp.element,jn=(ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(_i(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(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),y=[{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(y),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 x=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 v(e,t).then((async e=>{if(null!=e&&o.current.length>0){let e=o.current.findIndex((e=>"loading"==e.status));if(await o.current.splice(e,1),o.current.length>0){let e=o.current[0].data,t=o.current[0].type;await o.current.splice(0,1),await x(e,t)}}})))},v=async(e,a)=>{let i={freepro:e.freepro,original_slug:e.name,plugin_slug:e.plugin_slug,status:"inactive",type:e.type},s={type:"install_plugins_depends",plugins:JSON.stringify(i),editor:wdkitData.use_editor},n=await w(s);if(void 0===n.success)return null==a&&x(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)(vn,{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:"Nexter",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:y.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:()=>{x(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?.gutenberg_core_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")})]})]})]})]})})})})),ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{const[i,s]=(0,e.useState)(!1);let n=me().pathname;const r=(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),l=e=>{e.target.closest(".wkit-dashSupport-content")||s(!i)},o=[{link:"pro"==t?.wdkit_meta?.credits?.type?"https://store.posimyth.com/helpdesk/":"https://wordpress.org/support/plugin/wdesignkit/",text:"pro"==t?.wdkit_meta?.credits?.type?(0,a.__)("Get Premium Support","wdesignkit"):(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,text:(0,a.__)("AI Chat","wdesignkit")}],d=[{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"})}];return n.includes("/widget-listing/builder")||n.includes("/save_snippet")?void 0:(0,g.jsx)("div",{className:"wkit-support-btn",children:(0,g.jsxs)("div",{className:i?"wkit-plugin-popup-main-content":"",onClick:e=>{l(e)},children:[(0,g.jsx)("div",{className:"wkit-dashsupport-toggle",onClick:e=>{l(e)},title:(0,a.__)("Need Help?","wdesignkit"),children:i?(0,g.jsx)("span",{className:"wdkit-cross-icon",children:"✕"}):(0,g.jsx)("i",{className:"wdkit-i-question"})}),i&&(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:o.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}),r]})},t)))}),(0,g.jsx)("div",{className:"wkit-panel-row",children:d.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"})]})]})})}))),Nn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))(fn),$n=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))(yn),Cn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(t))})))(St),Sn=ai((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(_i(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(t))})))(ea),Dn=ai((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(_i(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))(mi),En=ai((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(gi(t)),wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_set_temp_meta:t=>e(bi(t))})))(Ft),Pn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(gi(t))})))(It),An=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_notification:t=>e(fi(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_Login_Route:t=>e(hi(t))})))(vs),Fn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{var i;const[n,r]=(0,e.useState)(!0),l=ge(),o=me(),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 gt("public_download",e,i,n,s,"",l).then((e=>{if(e?.api?.success)return r(!1),window.parent.postMessage("closePopup",u),e})):"gutenberg_core"==k(c,t?.wdkit_meta?.widgetbuilder)?await wt("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 _t("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 Tn=wdkitData.WDKIT_URL;const{form_data:Ln}=wp.wkit_Helper,Bn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(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,y]=(0,e.useState)(!1),[x,v]=(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,F]=(0,e.useState)("assets/images/jpg/wdkit-logo.png"),[T,L]=(0,e.useState)(!1),[B,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"}]),R=[{text:"WDesignKit",imageSrc:"assets/images/jpg/wdkit-logo.png",alt:"WDesignKit",value:"wdkit"},{text:"WDesignKit Extra Storage Credits",imageSrc:"assets/images/jpg/wdkit-logo.png",alt:"WDesignKit_extra",value:"wdkit_extra"},{text:"WDesignKit Extra AI Credits",imageSrc:"assets/images/jpg/wdkit-logo.png",alt:"WDesignKit_ai_extra",value:"wdkit_ai_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"}],M=[{title:"Templates Used",bg:"#6C3BE2",count:t.wdkit_meta.credits?.count_template,limit:t.wdkit_meta.credits?.template_limit?.meta_value},{title:"Widgets Used",bg:"#FC4731",count:t.wdkit_meta.credits?.count_widget,limit:t.wdkit_meta.credits?.widget_limit?.meta_value},{title:"Snippets Used",bg:"#efff00",count:t.wdkit_meta.credits?.count_code_snippet,limit:t.wdkit_meta.credits?.code_snippet_limit?.meta_value},{title:"Workspace Used",bg:"#22FD68",count:t.wdkit_meta.credits?.count_workspace,limit:t.wdkit_meta.credits?.workspace_limit?.meta_value}],O=((e,a,i,s,n,r)=>{const l=t.wdkit_meta?.credits,o=t.wdkit_meta?.ai_credits,d=null!==(e=null!==(a=o?.total_credits)&&void 0!==a?a:l?.ai_total_limit?.meta_value)&&void 0!==e?e:0,c=null!==(i=o?.template_credit)&&void 0!==i?i:0,p=null!==(s=o?.widget_credit)&&void 0!==s?s:0,m=null!==(n=o?.snippet_credit)&&void 0!==n?n:0;return{template_credit:c,widget_credit:p,snippet_credit:m,total_credits:d,total_used_credits:null!==(r=o?.total_used_credits)&&void 0!==r?r:c+p+m}})(),V=[{title:"AI Templates Used",bg:"#6C3BE2",count:O.template_credit,limit:O.total_credits},{title:"AI Widgets Used",bg:"#FC4731",count:"-",limit:O.total_credits,comming_soon:!0},{title:"AI Snippets Used",bg:"#efff00",count:"-",limit:O.total_credits,comming_soon:!0}],W=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,AiCredits:O.total_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,AiCredits:O.total_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,AiCredits:O.total_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,AiCredits:O.total_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 Storage Credits",value:"wdkit_extra",Key:a?.ApiKey,Credits:t.wdkit_meta.credits?.wdkit_credits_extra[i],AiCredits:O.total_credits,Status:"valid"==a?.license?"Active":"Expired",Loader:!1})}))}if(Array.isArray(t.wdkit_meta.credits?.wdkit_licence_ai_extra)&&t.wdkit_meta.credits?.wdkit_licence_ai_extra?.length>0){let a=t.wdkit_meta.credits?.wdkit_licence_ai_extra;a.map(((a,i)=>{null!=a?.ApiKey&&e.push({Img:"assets/images/jpg/wdkit-logo.png",Plugin:"WDesignKit Extra AI Credits",value:"wdkit_ai_extra",Key:a?.ApiKey,Credits:t.wdkit_meta.credits?.wdkit_credits_ai_extra[i],AiCredits:O.total_credits,Status:"valid"==a?.license?"Active":"Expired",Loader:!1})}))}l.current=e,r(e)})()}),[t?.wdkit_meta?.credits]);const q=()=>(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"})]}),G=async(e,i,s)=>{if(s>-1&&L(!0),C(!1),e.trim()){{y(!0);const a={type:"active_licence",token:p().token,licencekey:e,licencename:i,uichemyid:"uichemy"==i?E:""};await Ln(a).then((async e=>{if(e.success){let a=await _();if(a?.data&&t.wdkit_set_meta(a?.data),s>-1){const e={...B[s],banner_type:"success"},t=B.map(((t,a)=>a===s?e:t));I(t)}t.wdkit_set_notification({title:e?.message,desc:e?.description}),y(!1)}else t.wdkit_set_notification({title:e?.message,desc:e?.description}),y(!1);L(!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)(De,{to:"/login"});const z=()=>(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==x?(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=B.findIndex((t=>t.value===e)),n="default"!==B[i]?.banner_type;v(!0);const r={type:"delete_licence",token:p().token,licencename:e,apikey:a};Ln(r).then((async e=>{if(e.success){let a=await _();if(v(!1),t.wdkit_set_notification({title:e?.message,desc:e?.description}),n){const e={...B[i],banner_type:"default"},t=B.map(((t,a)=>a===i?e:t));I(t)}a?.data&&t.wdkit_set_meta(a?.data)}else v(!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")})})]}),H=e=>{if(e)return"*".repeat(e.length-4)+e.slice(-4)},U=e=>{if(e){const[t,a]=e.split("@");return t.slice(0,3)+"*".repeat(t.length-3)+"@"+a}},J=(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.__)("Storage Credits","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing?plan=storage#credit-plans`,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:`${J(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:`${J(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:`${J(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:`${J(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:W})," ",(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:M?.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:`${J(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:"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.__)("AI Credits","wdesignkit")}),!wdkitData?.wdkit_white_label?.help_link&&(0,g.jsx)("a",{href:`${wdkitData.wdkit_server_url}pricing?plan=ai#credit-plans`,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:`${J(O.template_credit,O.total_credits)}%`,backgroundColor:"#6c3be2",transition:"all 0.3s linear"}}),(0,g.jsx)("div",{style:{width:`${J(O.widget_credit,O.total_credits)}%`,backgroundColor:"#fc4731",transition:"all 0.3s linear"}}),(0,g.jsx)("div",{style:{width:`${J(O.snippet_credit,O.total_credits)}%`,backgroundColor:"#efff00",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.__)("AI 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.__)("AI 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.__)("AI Snippets","wdesignkit")})]})]})]}),(0,g.jsxs)("div",{className:"wdkit-progbar-number",children:[(0,g.jsx)("span",{className:"wdkit-pn-first",children:O.total_used_credits})," ",(0,g.jsx)("span",{children:" / "})," ",(0,g.jsx)("span",{className:"wdkit-pn-second",children:O.total_credits})]})]}),(0,g.jsx)("div",{className:"wdkit-progcards-main",children:V?.map(((e,t)=>(0,g.jsxs)("div",{className:"wdkit-prog-card",children:[(0,g.jsxs)("div",{className:"wdkit-progcard-name-wrapper",children:[(0,g.jsx)("span",{className:"wdkit-progcard-name",children:e?.title}),e.comming_soon&&(0,g.jsx)("span",{className:"wdkit-progcard-name-coming-soon",children:(0,a.__)("Coming Soon","wdesignkit")})]}),(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:`${e.comming_soon?0:J(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:Tn+A,alt:"selected key",className:"wdkit-selected-option-logo"})}),(()=>{let e=R?.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:R.map((e=>(0,g.jsxs)("li",{className:e.value==S?"wkit-selected-key":"",onClick:()=>(e=>{const t=R.find((t=>t.value==e));t&&(D(e),F(t.imageSrc)),C(!1)})(e.value),children:[(0,g.jsxs)("div",{className:"wkit-activate-key-opt",children:[(0,g.jsx)("img",{src:Tn+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&&B?.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")," ",H(s)]}),(0,g.jsxs)("p",{children:[(0,a.__)("Email:","wdesignkit")," ",U(n)]})]})}),(0,g.jsx)("button",{className:"wkit-pink-btn-class wkit-applyKey-btn",disabled:T,onClick:()=>{G(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:Tn+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&&G(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:()=>G(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.__)("Storage Credits","wdesignkit")}),(0,g.jsx)("th",{children:(0,a.__)("AI 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:Tn+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-credits",children:[(0,g.jsx)("i",{className:"wdkit-i-credit"}),(0,g.jsx)("span",{children:e.AiCredits})]})}),(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)(q,{})}):(0,g.jsx)("span",{className:"wkit-cloud-icon wdkit-lic-smbtn",onClick:()=>{((e,a,i="")=>{let s=[...l.current];s[a]=Object.assign({},l.current[a],{Loader:!0}),l.current[a]=s[a],r(s);const n={type:"sync_licence",token:p().token,licencename:e,apikey:i};Ln(n).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,e.Key)},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:Tn+"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)(Me,{title:"Delete License Key",desc:`Are you sure you want to deactivate the ${j?.Plugin} Pro License Key ?`,body:(0,g.jsx)(z,{}),close_popup:()=>{s(!1)}})]})})),In=ai((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_GetSettings_redux:t=>e(_i(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_Login_Route:t=>e(hi(t))})))(Ns),Rn=ai((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(gi(t)),wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_set_temp_meta:t=>e(bi(t))})))(Ai),Mn=ai((e=>({setting_data:e.wkit_SettingPanel.settingdata,wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_GetSettings_redux:t=>e(_i(t)),wdkit_set_meta:t=>e(gi(t)),wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(t))})))(sa),{form_data:On,get_userinfo:Vn}=wp.wkit_Helper,Wn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(fi(t)),wdkit_set_meta:t=>e(gi(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=me(),w=he();(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),[y,x]=(0,e.useState)(!1);let v=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:v};var i=await On(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 Vn();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:v};var i=await On(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 Vn();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(x(!0),_)var s="normal";else s="session";let r={type:"wkit_login",user_email:i,user_password:o,login_type:s,site_url:v},d=await On(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 Vn();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"),x(!1),void n("wdkit_pro")}t.wdkit_set_notification({title:d?.message,desc:d?.description}),x(!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)(Ht,{className:"wkit-tpae-page-link",to:"/forgot_password",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Forgot Password?","wdesignkit")})]}),1==y?(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:y&&"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)(Ht,{className:"wkit-tpae-page-link",to:"/signup",target:"_blank",children:[" ",(0,a.__)("Create Account","wdesignkit")]})]})]})]})},y=()=>{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")})]})]})]})]})},x=()=>{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 On(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)(y,{}),"activate_license"==i&&(0,g.jsx)(x,{})]}):(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 qn=new AbortController;const{Fragment:Gn}=wp.element,zn=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(fi(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=me(),d=ge(),c=he();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),[y,x]=(0,e.useState)(i?.[wdkitData.use_editor]),[v,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,F]=(0,e.useState)(!1),[T,L]=(0,e.useState)(""),[B,I]=(0,e.useState)(""),[R,M]=(0,e.useState)(""),[O,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")}],pe=[{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")}],ue=[{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&&L(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={...v,plugin:JSON.stringify([1014,1003]),free_pro:"free"};"active"==e?.data?.plugins[0].status&&(t={...v,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()}),[v]);const _e=async()=>{qn&&qn.abort(),qn=new AbortController;let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),Object.entries(v).forEach((([t,a])=>{"free_pro"===t&&"all"===a?e.append(t,""):e.append(t,a)})),await s().post(wdkitData.ajax_url,e,{signal:qn.signal}).then((e=>{if(e?.data){let a=e?.data?.data;D(e?.data?.manage_licence),w(e?.data?.totalpage),C(a),u(!1),P(!1),ie(e?.data?.totaltemplates),ne(e?.data?.showcount),a&&0!==a?.length||!v?.search&&!B||jt(r?.pathname||"/preset",(v?.search||B).trim(),t?.wdkit_meta?.userinfo?.id||"",v)}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),qn&&qn.abort(),qn=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:qn.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 it(e.content),await st(),await Ye(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 at(e.content),await Ye(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)},ye=(e,t)=>{if(u(!0),"search"==e)var a=Object.assign({},v,{search:t,page:1});else if("filterItem"==e&&""!=t){var i=t.toLowerCase(),s="all";v.free_pro!==i&&(s=i),a=Object.assign({},v,{free_pro:s,page:1})}else if("filterName"==e)a=Object.assign({},v,{template_id:t.id,page:1}),L(t.presetName),F(1!=A);else if("plugin"==e){let e,i=v?.plugin&&!Array.isArray(v?.plugin)?JSON.parse(v?.plugin):[];H&&!i?.includes(1014)&&i.push(1014),e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...v,plugin:JSON.stringify(e),page:1}}else if("key_words"==e){let e,i=v?.key_words&&!Array.isArray(v?.key_words)?JSON.parse(v?.key_words):[];e=i?.includes(t)?i.filter((e=>e!==t)):[...i,t],a={...v,key_words:JSON.stringify(e),page:1}}N(a)},xe=e=>{let t=[...O];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),V(t)},ve=()=>{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=v?.plugin&&!Array.isArray(v?.plugin)?JSON.parse(v?.plugin):[],s=v?.key_words&&!Array.isArray(v?.key_words)?JSON.parse(v?.key_words):[];return(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{xe("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 "+(O.includes("she-effects")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),O?.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:()=>ye("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:()=>{xe("plugins")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Plugins","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(O.includes("plugins")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),O?.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:()=>ye("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:B,onChange:e=>{I(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&ye("search",B)}}),(0,g.jsx)("span",{className:"wkit-search-button wkit-btn-class",onClick:e=>{ye("search",B)},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:()=>{xe("status")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Status","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(O.includes("status")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),O.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=>ye("filterItem",e?.value),type:"checkbox",id:`wkit-preset-${e?.value}`,checked:v?.free_pro===e?.value?.toLowerCase()}),(0,g.jsx)("span",{children:e.label})]},t)))})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"})]}),H?ve():(0,g.jsxs)("div",{className:"wkit-preset-tag-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{xe("tags")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:Ne()}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(O.includes("tags")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),O?.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:R,onChange:e=>{(e=>{if(M(e),""==e.trim())var t=i?.[wdkitData.use_editor];else t=i?.[wdkitData.use_editor]?.filter((t=>t.name.toLowerCase().includes(e.toLocaleLowerCase())));x(t)})(e.target.value)}})}),y?.length>0?(0,g.jsx)("div",{className:"wkit-preset-tags",children:y?.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:T===e.name,className:"wkit-radio-button",onChange:()=>((e,t)=>{c("/preset/"+e),ye("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)(yt,{}):(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})(v.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)(Gn,{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)(xt,{showCount:se,totalCount:ae,typeText:(0,a.__)("Presets","wdesignkit")}),h>1&&(0,g.jsx)(j(),{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&&(v.page=e.nextSelectedPage+1,N({...v}),u(!0))},forcePage:v.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:pe?.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:ue?.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")})]})]})]})]})]})})),Hn=[{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"}],Un=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_notification:t=>e(fi(t))})))((t=>{var i=wdkitData.WDKIT_URL;const n=ge(),r=he(),[l]=function(t){let a=e.useRef(Ot(t)),i=e.useRef(!1),s=me(),n=e.useMemo((()=>function(e,t){let a=Ot(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=he(),l=e.useCallback(((e,t)=>{const a=Ot("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=e=>e&&"all"!==e?e:"",[p,m]=(0,e.useState)(!0),[u,h]=(0,e.useState)(!0),[w,_]=(0,e.useState)(1),[k,b]=(0,e.useState)(-1),[y,x]=(0,e.useState)(!1),[v,N]=(0,e.useState)(Hn),[$,C]=(0,e.useState)({free_pro:"all",perpage:9,page:1,search:"",category:c(o),builder:d}),[S,D]=(0,e.useState)(null),[E,P]=(0,e.useState)({}),[A,F]=(0,e.useState)(""),[T,L]=(0,e.useState)(["status","sections","builder"]),[B,I]=(0,e.useState)(0),[R,M]=(0,e.useState)(0),[O,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)(!1),[Z,Y]=(0,e.useState)(null);let X=[{label:(0,a.__)("All","wdesignkit"),value:"all"},{label:(0,a.__)("Free","wdesignkit"),value:"free"},{label:(0,a.__)("Pro","wdesignkit"),value:"pro"}];const Q=(0,e.useRef)(null);(0,e.useEffect)((()=>{const e=l.get("builder")||"";C((t=>({...t,category:c(o),builder:e,page:1})))}),[o,l]),(0,e.useEffect)((()=>{ee()}),[$]);const ee=async()=>{Q.current&&Q.current.abort(),Q.current=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",$.perpage||9),e.append("CurrentPage",$.page||1),e.append("search",$.search||""),e.append("category",$.category||""),e.append("free_pro",$.free_pro&&"all"!==$.free_pro?$.free_pro.toLowerCase():""),e.append("builder",$.builder||""),await s().post(wdkitData.ajax_url,e,{signal:Q.current.signal}).then((e=>{if(e?.data?.success&&e?.data?.data){let t=e?.data?.data?.data||e?.data?.data;P(e?.data?.data?.manage_licence||e?.data?.manage_licence||{}),_(e?.data?.data?.totalpage||1),D(t),m(!1),h(!1),I(e?.data?.data?.totaltemplates||0),M(e?.data?.data?.showcount||0)}else D(null),m(!1),h(!1),I(0),M(0),e?.data?.message&&t.wdkit_set_notification({title:(0,a.__)("Error","wdesignkit"),desc:e.data.message})})).catch((e=>{s().isCancel(e)||(D(null),m(!1),h(!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")}))}))},te=(e,t)=>k==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!==k?(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:()=>ae(e,t),children:(0,g.jsx)("span",{className:"wkit-preset-download-icon",children:(0,g.jsx)("i",{className:"wdkit-i-download"})})}),ae=async(e,i)=>{if(b(i),K(!0),Y(e),!(e=>{var a=!1;let i=t?.wdkit_meta?.credits?t.wdkit_meta.credits:"",s=E&&"object"==typeof E&&!Array.isArray(E)?E:{};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||s?.["elementor-pro"]||"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."}),K(!1),b(-1),!1}V(!0),q({title:"",desc:"",body:"loading"});const s={data:e,wdkit_meta:t.wdkit_meta};var n=await Ge(s);z(n),n?.pro_plugin?.length>0?(q({title:"Plugins Needed for This Template",desc:"This template works best with the following plugins. Please install them to continue.",body:"requre_pro_plugin"}),K(!1),b(-1)):q({title:(0,a.__)("Setting Up Your Template","wdesignkit"),desc:(0,a.__)("We're getting everything ready. Please wait while we install the required plugins and import your template.","wdesignkit"),body:"import_template"})},ie=(e,t)=>{if(m(!0),"search"==e)var a=Object.assign({},$,{search:t,page:1});else if("filterItem"==e&&""!=t){var i,s=t.toLowerCase();i=$.free_pro!==s?s:"all",a=Object.assign({},$,{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({},$,{page:1})}C(a)},se=e=>{let t=[...T];t.includes(e)?t=t.filter((t=>t!==e)):t.push(e),L(t)},ne=()=>{const e=[{label:(0,a.__)("All","wdesignkit"),value:""},{label:(0,a.__)("Elementor","wdesignkit"),value:"1001"},{label:(0,a.__)("Gutenberg","wdesignkit"),value:"1002"}];return(0,g.jsxs)("div",{className:"wkit-preset-filter-container",children:[(0,g.jsxs)("div",{className:"wkit-preset-accordian",onClick:()=>{se("builder")},children:[(0,g.jsx)("span",{className:"wkit-preset-heading",children:(0,a.__)("Page Builders","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-acc-svg "+(T.includes("builder")?"":"wkit-rotate-icon"),children:(0,g.jsx)("i",{className:"wdkit-i-up-arrow"})})]}),T.includes("builder")&&(0,g.jsx)("div",{className:"wkit-preset-tags wkit-theme-builder-tags",children:e.map(((e,t)=>(0,g.jsx)("div",{className:"wkit-preset-tag-data",children:(0,g.jsxs)("label",{className:"wkit-preset-tag-name",htmlFor:`wkit-builder-${e.value}`,children:[(0,g.jsx)("input",{type:"radio",checked:$.builder===e.value,className:"wkit-radio-button",onChange:()=>(e=>{m(!0),r(e?`/theme/builder/${o}?builder=${e}`:`/theme/builder/${o}`);var t=Object.assign({},$,{builder:e,page:1});C(t)})(e.value),id:`wkit-builder-${e.value}`}),e.label]})},t)))})]})},re=()=>{const e="theme_builder"===window?.wdkit_editor||"theme_builder"===wdkitData?.use_editor;return(0,g.jsxs)("div",{className:"wkit-preset-filter-content",style:{minHeight:y?"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:A,onChange:e=>{F(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&ie("search",A)}}),(0,g.jsx)("span",{className:"wkit-search-button wkit-btn-class",onClick:e=>{ie("search",A)},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:()=>{se("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:X.map(((e,t)=>(0,g.jsxs)("label",{htmlFor:`wkit-theme-${e?.value}`,className:"wkit-preset-freePro",children:[(0,g.jsx)("input",{className:"wkit-radio-button",onChange:t=>ie("filterItem",e?.value),type:"radio",name:"wkit-theme-status",id:`wkit-theme-${e?.value}`,checked:$?.free_pro===e?.value?.toLowerCase()}),(0,g.jsx)("span",{children:e.label})]},t)))})]}),(0,g.jsx)("hr",{className:"wkit-preset-line"}),e&&(0,g.jsxs)(g.Fragment,{children:[ne(),(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:()=>{se("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 wkit-theme-builder-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:()=>ie("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")})]}))]})]})},le=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,oe=()=>{let i=[{name:"install_plugin",label:(0,a.__)("Installing Plugins and Theme","wdesignkit"),status:"pending"},{name:"plugin_setting",label:(0,a.__)("Plugin Setting","wdesignkit"),status:"pending"},{name:"theme_setting",label:(0,a.__)("Theme Setting","wdesignkit"),status:"pending"},{name:"import_json",label:(0,a.__)("Import Template","wdesignkit"),status:"pending"}];const n=()=>{const[n,r]=(0,e.useState)(i),[l,d]=(0,e.useState)([]),c=(0,e.useRef)([]),p=(0,e.useRef)([]);(0,e.useEffect)((()=>{h("install_plugin")}),[]);const m=(e,t)=>{let a=[...n],i=a.findIndex((t=>t.name==e));i>-1&&(a[i].status=t),r(a)},u=async e=>{if(p.current.findIndex((e=>"loading"==e.status))>-1)c.current.push(e);else{let t=Object.assign({},e,{status:"loading"});p.current.push(t),d([...p.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=p.current.findIndex((e=>e.p_id==a.p_id));e>-1&&(p.current[e].status=a.status,d([...p.current]))}let i=c.current.findIndex((e=>e.p_id==a.p_id));i>-1&&c.current.splice(i,1),c.current.length>0?u(c.current[0]):(await m("install_plugin","done"),h("plugin_setting"))})(e)}},h=async e=>{if("install_plugin"==e)await m(e,"loading"),G?.install_plg?.length>0?await Promise.all(G.install_plg.map((async e=>{await u(e)}))):(await m("install_plugin","done"),h("plugin_setting"));else if("plugin_setting"==e){await m(e,"loading"),await ze("plugin");let t=G?.theme?G.theme:[],a=t.findIndex((e=>"nexter"==e.original_slug));a>-1&&"active"==t[a].status?h("theme_setting"):(h("import_json"),await m("theme_setting","done")),await m(e,"done")}else if("theme_setting"==e)await m(e,"loading"),await ze("theme"),await m(e,"done"),h("import_json");else if("import_json"==e){await m(e,"loading");let s=Z,n=s?.post_builder,r=f(n,t?.wdkit_meta?.builder||{}),l="pagetemplate"==s?.type?"page":"section",d=s?.id,c={id:d,type:l,wp_post_type:s?.wp_post_type||"nxt_builder",builder:r},p=await Je(c,s);if(!p)return await m(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Failed to fetch template data. Please try again.","wdesignkit")}),K(!1),void b(-1);if("wdkit"!=wdkitData.use_editor)var i=p?.content;else i=p?.response?.content;if(!i)return await m(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Template content is empty. Please try again.","wdesignkit")}),K(!1),void b(-1);i&&"elementor"==r?(await it(JSON.parse(i).content),await st()):i&&"gutenberg"==r&&await at(JSON.parse(i).content);let u=await Xe(i,s,r);const h="nxt_builder"===p?.value?.wp_post_type||"nxt_builder"===c.wp_post_type||"theme_builder"===wdkitData.use_editor,g=window.location.pathname.includes("/post.php")&&o&&!isNaN(parseInt(o));if("wdkit"==wdkitData.use_editor||h)if(!g||"elementor"!==r&&"gutenberg"!==r){let i=p;p?.value||p?.args||p?.id||(i={value:{builder:r,wp_post_type:c.wp_post_type||s?.wp_post_type||"nxt_builder",type:c.type||("pagetemplate"==s?.type?"page":"section"),file_type:"gutenberg"===r?"wp_block":r,...s},args:{editor:r,builder:r,custom_meta:!0},id:c.id||s?.id||d});let n=await Ke(i,u);if(!n||!n.success){await m(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}),K(!1),void b(-1)}if(!n.inserted_id)return await m(e,"fail"),t.wdkit_set_notification({title:(0,a.__)("Import Failed","wdesignkit"),desc:(0,a.__)("Template was not created. Please try again.","wdesignkit")}),K(!1),void b(-1);let l=n.inserted_id;i.value&&"nxt_builder"==i.value.wp_post_type&&await Ue(l);let o=n[d];q({title:"",desc:"",body:"import_complete"}),U(o),setTimeout((()=>{window.location.reload()}),1e3)}else await Ye(JSON.parse(u),"theme_builder");else await Ye(JSON.parse(u),"theme_builder");await m(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:le(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.label})]}),l.length>0&&"install_plugin"==e.name&&p.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:le(t.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:t.plugin_name})]},t.p_id)))]},t)))})})};return(0,g.jsx)(n,{})},de=()=>(K(!1),b(-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")}),H?.view&&(0,g.jsx)("a",{href:H.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 ${p?"wkit-skeleton":""} ${u?"wkit-filter-skeleton":""}`,children:[O&&(0,g.jsx)(Me,{title:W?.title,desc:W?.desc,body:(ce=W?.body,"loading"==ce?(()=>{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"==ce?(0,g.jsx)(oe,{}):"import_complete"==ce?(0,g.jsx)(de,{}):"requre_pro_plugin"==ce?(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)}))})})(G?.pro_plugin):void 0),close_popup:()=>{V(!1)}}),(0,g.jsx)("div",{className:"wkit-preset-filter-panel wkit-theme-builder-filter-panel",children:re()}),(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")]}),y&&(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"})})}),re()]})]}),(0,g.jsxs)("div",{className:"wkit-preset-main",style:{display:y?"none":""},children:[(0,g.jsx)("div",{className:"wdkit-preset-inner-content",children:!1===p&&S?.length<=0?(0,g.jsx)(yt,{}):(0,g.jsx)("div",{className:"wkit-preset-grid",children:!0===p?(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.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[(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"})})})}),(0,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:i+"assets/images/wkit-dummy-bg.png",alt:"builder-icon",draggable:"false"})})]})]})]})},t)))});var t})($.perpage):S?.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}),(0,g.jsxs)("div",{className:"wdkit-browse-card-btngroup",children:[te(s,i),(0,g.jsx)("div",{className:"wdkit-builder-icon",children:(0,g.jsx)("img",{src:s?.builderUrl,alt:"builder-icon"})})]})]})]})},i);var i,s}))})}),(()=>{if(S?.length>0&&B>0)return(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(xt,{showCount:R,totalCount:B,typeText:(0,a.__)("Templates","wdesignkit")}),w>1&&(0,g.jsx)(j(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:w,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={...$};t.page=e.nextSelectedPage+1,C(t),m(!0)}},forcePage:$.page-1,onPageActive:()=>{}})]})})()]})]});var ce})),{Fragment:Jn}=wp.element,Kn={starter:{type:"month",limit:10},professional:{type:"day",limit:10},studio:{type:"day",limit:100},"starter-lifetime":{type:"month",limit:10},"professional-lifetime":{type:"day",limit:10},"studio-lifetime":{type:"day",limit:100},lifetime:{type:"day",limit:10},"agency-lifetime":{type:"day",limit:100},"agency-year":{type:"day",limit:100},free:{type:"month",limit:2},default:{type:"month",limit:2},tpae:{type:"month",limit:2},tpag:{type:"month",limit:2},uichemy:{type:"month",limit:2},"tpae-uichemy":{type:"month",limit:2},"tpag-uichemy":{type:"month",limit:2},"tpae-tpag":{type:"month",limit:2},"tpae-tpag-uichemy":{type:"month",limit:2}},Zn={design:(0,g.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M10 17.5c-4.142 0-7.5-3.358-7.5-7.5S5.858 2.5 10 2.5s7.5 3.022 7.5 6.75c0 1.243-1.007 2.25-2.25 2.25h-1.966c-.76 0-1.34.663-1.24 1.416.06.446.09.672.09.834 0 1.243-1.007 2.25-2.134 2.25z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"}),(0,g.jsx)("circle",{cx:"6.25",cy:"9.5",r:"1",fill:"currentColor"}),(0,g.jsx)("circle",{cx:"8.75",cy:"6.25",r:"1",fill:"currentColor"}),(0,g.jsx)("circle",{cx:"12.25",cy:"6.75",r:"1",fill:"currentColor"}),(0,g.jsx)("circle",{cx:"14",cy:"9.75",r:"1",fill:"currentColor"})]}),ecommerce:(0,g.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M3 5h1.5l1.2 8.4A1.5 1.5 0 0 0 7.18 14.7h7.14a1.5 1.5 0 0 0 1.48-1.28l.85-5.72H5.1",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"}),(0,g.jsx)("circle",{cx:"7.5",cy:"17",r:"1.1",fill:"currentColor"}),(0,g.jsx)("circle",{cx:"14",cy:"17",r:"1.1",fill:"currentColor"})]}),dynamic_content:(0,g.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("rect",{x:"2.75",y:"2.75",width:"6",height:"6",rx:"1.2",stroke:"currentColor",strokeWidth:"1.4"}),(0,g.jsx)("rect",{x:"11.25",y:"2.75",width:"6",height:"6",rx:"1.2",stroke:"currentColor",strokeWidth:"1.4"}),(0,g.jsx)("rect",{x:"2.75",y:"11.25",width:"6",height:"6",rx:"1.2",stroke:"currentColor",strokeWidth:"1.4"}),(0,g.jsx)("rect",{x:"11.25",y:"11.25",width:"6",height:"6",rx:"1.2",stroke:"currentColor",strokeWidth:"1.4"})]}),performance:(0,g.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M10.8 2.5 4.5 11h4l-.8 6.5L15 9h-4l.8-6.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round",strokeLinecap:"round"})}),security:(0,g.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M10 2.5 16 4.6v4.7c0 4.1-2.6 6.9-6 8.2-3.4-1.3-6-4.1-6-8.2V4.6L10 2.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M7.5 10 9.3 11.8 12.75 8.3",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]}),extras:(0,g.jsx)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M7.25 3.5h2v2.1a1.25 1.25 0 1 1 0 2.4v2.5h-2a1.25 1.25 0 1 0 0 2.5h2v2.5h-5a1 1 0 0 1-1-1v-5h2.5a1.25 1.25 0 1 0 0-2.5H3.25v-2a1 1 0 0 1 1-1h2.1a1.25 1.25 0 1 1 1.9-2.5z",stroke:"currentColor",strokeWidth:"1.2",strokeLinejoin:"round"})}),theme:(0,g.jsxs)("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,g.jsx)("path",{d:"M10 2.5l1.4 4.1 4.1 1.4-4.1 1.4L10 13.5l-1.4-4.1-4.1-1.4 4.1-1.4L10 2.5z",stroke:"currentColor",strokeWidth:"1.4",strokeLinejoin:"round"}),(0,g.jsx)("path",{d:"M15.5 13.5l.6 1.7 1.7.6-1.7.6-.6 1.7-.6-1.7-1.7-.6 1.7-.6.6-1.7z",fill:"currentColor"})]})},Yn=ai((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,tooltip:"",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"],tooltip:"Enabling this will install WooCommerce to add online store and product functionality",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",tooltip:"Enabling this will install Advanced Custom Fields (ACF) to support dynamic content, custom fields, and templates",plugin:["advanced-custom-fields"]},{title:"Performance",name:"performance",description:"Boost your site speed with caching and performance optimization plugins",value:"false",tooltip:"Enabling this will install WP-Optimize to improve speed through caching, compression, and database optimization",plugin:["wp-optimize"]},{title:"Security",name:"security",description:"Keep your site safe with recommended security tools.",value:"false",tooltip:"Enabling this will install All-In-One Security (AIOS) to enhance your website’s protection and security",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",tooltip:"Enabling this will install Rank Math SEO to help optimize your website for search engines",plugin:["seo-by-rank-math"]}]),[d,c]=(0,e.useState)(!1),[m,u]=(0,e.useState)(!0),[h,w]=(0,e.useState)(!1),[_,f]=(0,e.useState)(!1),[k,b]=(0,e.useState)(!0),[y,x]=(0,e.useState)(!0),[v,j]=(0,e.useState)(!!p()?.token),[N,$]=(0,e.useState)(!1),[C,S]=(0,e.useState)(!1),[D,E]=(0,e.useState)(!1),[P,A]=(0,e.useState)(""),F=(0,e.useRef)(!1),T=(0,e.useRef)(!1),L=(0,e.useRef)(100),B=(0,e.useRef)(0),I=(0,e.useRef)(0);let R=p(),M=t?.wdkit_meta?.credits?.ai_template_site_limit?.meta_type?t?.wdkit_meta?.credits?.ai_template_site_limit?.meta_type:"",O=Kn?.[M]?Kn[M]:Kn.default,V=(O?.limit&&O.limit,O?.type?O.type:"month");(0,e.useEffect)((()=>{t?.site_obj?.plugin_setting&&o(t?.site_obj?.plugin_setting),t?.site_obj?.theme_setting&&u(t?.site_obj?.theme_setting),null!=t?.site_obj?.wirefram_import&&f(t.site_obj.wirefram_import),null!=t?.site_obj?.blog_post&&b(t.site_obj.blog_post);let e=t?.wdkit_meta?.userinfo?.id;"yes"!=t?.ai_compatible&&1!=e&&4!=e||w(!0),W(),q(t?.site_obj?.plugin_setting)}),[]),(0,e.useEffect)((()=>{if(!N)return;const e=e=>{"wdkit-login"===e.key&&e.newValue&&E(!0)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[N]);const W=async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wdkit_check_user_credit"),e.append("token",R?.token);let t=await s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1));if(t?.logged_in&&j(!0),t?.success){A("");let e=t?.data?.credits?t.data.credits:{},a=e?.template_credit?e.template_credit:0,i=e?.widget_credit?e.widget_credit:0,s=e?.snippet_credit?e.snippet_credit:0;L.current=e?.total_credits?e.total_credits:0,B.current=e?.total_used_credits?e.total_used_credits:a+i+s,I.current=e?.template_site_limit?e.template_site_limit:0,"true"==t?.data?.monthly_daily_limit&&(T.current=!0),"true"==t?.data?.total_credits_limit&&(F.current=!0)}else A("unreachable"===t?.reason?"unreachable":"rejected");x(!1)},q=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&&u("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)}}}}},G=_||t?.site_obj?.images_from_chat||"normal_import"==t?.import_type,z="ai_import"!=t?.import_type||v&&F.current&&T.current&&!y,H=()=>{let e=l.findIndex((e=>"security"==e?.name));var a=[...l];if(e>-1){let t=a[e];a.splice(e,1),a.push(t)}let i=Object.assign({},t?.site_obj,{plugin_setting:a,theme_setting:m,import_type:t?.import_type,wirefram_import:_,blog_post:k});t.setsite_obj(i),t.setcurrent_page("normal_import"==t?.import_type||t?.site_obj?.images_from_chat?"all_set":"content_media")};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 "+(e.required||1!=e.value?"":"wkit-feature-card-active"),htmlFor:`wkit-card-switcher-inp-${e.name}`,children:[(0,g.jsxs)("div",{className:"wkit-plugin-card-top",children:[(0,g.jsxs)("div",{className:"wkit-plugin-card-title-con",children:[Zn[e.name]&&(0,g.jsx)("span",{className:"wkit-plugin-card-icon-badge",children:Zn[e.name]}),(0,g.jsx)("span",{className:"wkit-plugin-card-title",children:e.title}),e.tooltip&&!e.required&&(0,g.jsxs)("div",{className:"wkit-plugin-card-tooltip",children:[(0,g.jsx)("span",{className:"wkit-plugin-card-tooltip-txt",children:e.tooltip}),(0,g.jsx)("i",{className:"wdkit-i-info"})]})]}),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-plugin-card-icon-badge wkit-feature-theme-icon-badge",children:Zn.theme}),(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"==m?"wkit-default-active":""),children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-theme-switcher",checked:1==m||"active"==m,disabled:"active"==m,onChange:e=>{u(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_white_label&&wdkitData.wdkit_white_label.help_link?"":wdkitData.WDKIT_DOC_URL+"backup-your-wordpress-site/",target:"_blank",rel:"noopener noreferrer",className:"wkit-note-backup-link"+(wdkitData.wdkit_white_label&&wdkitData.wdkit_white_label.help_link?" wkit-white-label-help-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")})]})]}),h&&"ai_import"!=t?.import_type&&(0,g.jsxs)("div",{className:"wkit-wirefram-content",onClick:()=>{f(!_)},children:[(0,g.jsxs)("div",{className:"wkit-wirefram-txt-content",children:[(0,g.jsx)("span",{className:"wkit-wirefram-txt",children:(0,a.__)("Import as Wireframe","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-wirefram-tooltip",onClick:e=>{e.stopPropagation()},children:[(0,g.jsx)("span",{className:"wkit-wirefram-tooltip-txt",children:(0,a.__)("If enabled, it won’t load original images and will use placeholder images instead, which you can replace later.","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-info"})]})]}),(0,g.jsx)("div",{className:"wkit-wirefram-switcher-con",children:(0,g.jsxs)("label",{className:"wkit-wirefram-switcher",htmlFor:"wkit-wirefram-switcher-inp",onClick:e=>{e.stopPropagation()},children:[(0,g.jsx)("input",{type:"checkbox",id:"wkit-wirefram-switcher-inp",checked:_,onChange:e=>{f(e.target.checked)}}),(0,g.jsx)("span",{className:"wkit-wirefram-switcher-inner"})]})})]})]}),(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("ai_import"==t?.import_type?"select_import_method":"temp_preview")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-next-btn-content",children:[!d&&z&&(0,g.jsxs)("span",{className:"wkit-notice-tooltip-txt",children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,a.__)("Please confirm you’ve read the Terms and Conditions by checking the box to continue","wdesignkit")]}),"ai_import"==t?.import_type?v?F.current&&T.current&&!y?(0,g.jsx)("button",{className:"wkit-site-feature-next wkit-btn-class",disabled:!d,onClick:()=>{H()},children:G?(0,a.__)("Import","wdesignkit"):(0,a.__)("Next","wdesignkit")}):P?(0,g.jsxs)("div",{className:"wkit-login-recheck-wrap",children:[(0,g.jsxs)("span",{className:"wkit-login-recheck-btn "+(y?"wkit-login-recheck-loading":""),onClick:()=>{!y&&W()},children:[(0,g.jsx)("i",{className:"wdkit-i-refresh"}),(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Click to try again.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-ai-limit-reach wkit-btn-class",children:[(0,g.jsx)("span",{className:"wkit-limit-reach-link",children:G?(0,a.__)("Import","wdesignkit"):(0,a.__)("Next","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Couldn’t reach WDesignKit to check your credits. Please try again.","wdesignkit")})]})]}):!T.current||y?(0,g.jsxs)("button",{className:"wkit-ai-limit-reach wkit-btn-class",disabled:!0,children:[(0,g.jsx)("span",{className:"wkit-limit-reach-link",children:G?(0,a.__)("Import","wdesignkit"):(0,a.__)("Next","wdesignkit")}),!y&&("month"==V?(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Your site limit for this month has been reached.","wdesignkit")}):(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Your site limit for today has been reached.","wdesignkit")}))]}):(0,g.jsxs)("div",{className:"wkit-ai-limit-reach wkit-btn-class",children:[(0,g.jsx)("a",{className:"wkit-limit-reach-link",href:`${wdkitData.wdkit_server_url}pricing`,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Buy Extra AI Credits","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Minimum 30 credits required to import the full AI kit.","wdesignkit")})]}):(0,g.jsxs)("div",{className:"wkit-login-recheck-wrap",children:[N&&(0,g.jsxs)("span",{className:`wkit-login-recheck-btn ${C?"wkit-login-recheck-loading":""} ${D?"":"wkit-login-recheck-disabled"}`,onClick:()=>{D&&(async()=>{S(!0),R=p(),R?.token&&(x(!0),await W(),j(!0)),S(!1)})()},children:[(0,g.jsx)("i",{className:"wdkit-i-refresh"}),(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:D?(0,a.__)("Click to refresh and check your login status.","wdesignkit"):(0,a.__)("Complete login in the new tab first, refresh will enable automatically.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-ai-limit-reach wkit-btn-class",onClick:()=>{(()=>{let e=`${window.location.origin}${window.location.pathname}${window.location.search}#/login`;window.open(e,"_blank","noopener,noreferrer"),$(!0)})()},children:[(0,g.jsx)("span",{className:"wkit-limit-reach-link",children:(0,a.__)("Login","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-limit-reach-tooltip",children:(0,a.__)("Login required to access this feature.","wdesignkit")})]})]}):(0,g.jsx)("button",{className:"wkit-site-feature-next wkit-btn-class",disabled:!d,onClick:()=>{H()},children:G?(0,a.__)("Import","wdesignkit"):(0,a.__)("Next","wdesignkit")})]})]})]})})})})),Xn=[{id:1,colors:{Primary:"#371A5A","Primary Tint":"#BB7CE5",Secondary:"#FFFFFF","Secondary Tint":"#F2ECFB",Accent:"#BB7CE5","Accent Tint":"#371A5A","Title Light":"#371A5B","Description Light":"#999999","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#FFFFFF","Background Light 2":"#F2ECFB","Background Dark 1":"#110D30","Background Dark 2":"#BB7CE5","Background Alt":"#BB7CE5",Neutral:"#F2EDFD",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:2,colors:{Primary:"#FF3F87","Primary Tint":"#E52A70",Secondary:"#002041","Secondary Tint":"#18436F",Accent:"#FF3F87","Accent Tint":"#E52A70","Title Light":"#FFFFFF","Description Light":"#FFFFFF80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFF80","Text Alt":"#FFFFFF","Background Light 1":"#001A34","Background Light 2":"#002041","Background Dark 1":"#000000","Background Dark 2":"#181818","Background Alt":"#FF3F87",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:3,colors:{Primary:"#EB7838","Primary Tint":"#DA6727",Secondary:"#1F3021","Secondary Tint":"#DA6727",Accent:"#EB7838","Accent Tint":"#DA6727","Title Light":"#FFFFFF","Description Light":"#FFFFFFB2","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#102213","Background Light 2":"#19261A","Background Dark 1":"#1F3021","Background Dark 2":"#28382B","Background Alt":"#EB7838",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:4,colors:{Primary:"#FFAA00","Primary Tint":"#DE9400",Secondary:"#160928","Secondary Tint":"#332348",Accent:"#FFAA00","Accent Tint":"#DE9400","Title Light":"#FFFFFF","Description Light":"#FFFFFF80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFF80","Text Alt":"#FFFFFF","Background Light 1":"#160928","Background Light 2":"#321B39","Background Dark 1":"#47324D","Background Dark 2":"#160928","Background Alt":"#FFAA00",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:5,colors:{Primary:"#7EBA5A","Primary Tint":"#5F8B43",Secondary:"#1F3021","Secondary Tint":"#CFFFAC",Accent:"#7EBA5A","Accent Tint":"#5F8B43","Title Light":"#FFFFFF","Description Light":"#FFFFFFB2","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#102213","Background Light 2":"#1F3021","Background Dark 1":"#102213","Background Dark 2":"#1F3021","Background Alt":"#7EBA5A",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:6,colors:{Primary:"#E05A4A","Primary Tint":"#D94E3E",Secondary:"#F9F3F1","Secondary Tint":"#EFE9E7",Accent:"#E05A4A","Accent Tint":"#D94E3E","Title Light":"#0D0D0D","Description Light":"#0D0D0D80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#FFFFFF","Background Light 2":"#F3F3F3","Background Dark 1":"#111114","Background Dark 2":"#1D1D20","Background Alt":"#E05A4A",Neutral:"#00000033",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:7,colors:{Primary:"#2662FF","Primary Tint":"#1E4ECC",Secondary:"#10082B","Secondary Tint":"#324576",Accent:"#2662FF","Accent Tint":"#1E4ECC","Title Light":"#FFFFFF","Description Light":"#FFFFFFB2","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#000000","Background Light 2":"#222222","Background Dark 1":"#040404","Background Dark 2":"#424242","Background Alt":"#2662FF",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:8,colors:{Primary:"#063A26","Primary Tint":"#3A6E5A",Secondary:"#FFFFFF","Secondary Tint":"#FFEB6933",Accent:"#ADE762","Accent Tint":"#3A6E5A","Title Light":"#000000","Description Light":"#00000099","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#000000","Background Light 1":"#FFFFFF","Background Light 2":"#F0F5F4","Background Dark 1":"#063A26","Background Dark 2":"#225233","Background Alt":"#ADE762",Neutral:"#00000033",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:9,colors:{Primary:"#425F66","Primary Tint":"#170828",Secondary:"#F4FBF3","Secondary Tint":"#E3F1E1",Accent:"#D9DD27","Accent Tint":"#E3F1E1","Title Light":"#0D0D0D","Description Light":"#0D0D0D80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#0D0D0D","Background Light 1":"#FFFFFF","Background Light 2":"#F6F6F6","Background Dark 1":"#3E2D47","Background Dark 2":"#170726","Background Alt":"#D9DD27",Neutral:"#00000033",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:10,colors:{Primary:"#B4BF2E","Primary Tint":"#ACB726",Secondary:"#FFFFFF","Secondary Tint":"#CFDB3A33",Accent:"#156C58","Accent Tint":"#ACB726","Title Light":"#242622","Description Light":"#24262280","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#FFFFFF","Background Light 2":"#F3F2F2","Background Dark 1":"#156C58","Background Dark 2":"#161616","Background Alt":"#B4BF2E",Neutral:"#DFDFDF",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:11,colors:{Primary:"#240329","Primary Tint":"#4B0C54",Secondary:"#FFFFFF","Secondary Tint":"#FEF7E3",Accent:"#FFD13D","Accent Tint":"#FFD06B","Title Light":"#240029","Description Light":"#24002966","Title Dark":"#FFFFFF","Description Dark":"#B7A0B1","Text Alt":"#240029","Background Light 1":"#FFFFFF","Background Light 2":"#F5F4F5","Background Dark 1":"#240329","Background Dark 2":"#310531","Background Alt":"#FFD13D",Neutral:"#E2DEE2",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:12,colors:{Primary:"#484925","Primary Tint":"#6B6C3C",Secondary:"#FFFFFF","Secondary Tint":"#F4F5DB",Accent:"#DEDFA0","Accent Tint":"#F4F5DB","Title Light":"#121212","Description Light":"#12121266","Title Dark":"#FFFFFF","Description Dark":"#FFFFFF","Text Alt":"#121212","Background Light 1":"#FFFFFF","Background Light 2":"#F4F5EF","Background Dark 1":"#343511","Background Dark 2":"#484925","Background Alt":"#DEDFA0",Neutral:"#12121233",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:13,colors:{Primary:"#6366F1","Primary Tint":"#5C5FEA",Secondary:"#F1F5F9","Secondary Tint":"#EEF2F6",Accent:"#6366F1","Accent Tint":"#5C5FEA","Title Light":"#0D0D0D","Description Light":"#0D0D0D80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#FFFFFF","Background Light 2":"#F1F5F9","Background Dark 1":"#0D0D0D","Background Dark 2":"#6366F1","Background Alt":"#6366F1",Neutral:"#DFDFDF",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:14,colors:{Primary:"#9B130D","Primary Tint":"#7C0F0A",Secondary:"#F8F5E3","Secondary Tint":"#DFDDCC",Accent:"#9B130D","Accent Tint":"#7C0F0A","Title Light":"#1C0208","Description Light":"#1C0208","Title Dark":"#F8F5E3","Description Dark":"#F8F5E3B2","Text Alt":"#1C0208","Background Light 1":"#F8F5E3","Background Light 2":"#DFDDCC","Background Dark 1":"#1C0208","Background Dark 2":"#850F12","Background Alt":"#E05A4A",Neutral:"#A99E94",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:15,colors:{Primary:"#4BA9F6","Primary Tint":"#0488F4",Secondary:"#171515","Secondary Tint":"#453434",Accent:"#4BA9F6","Accent Tint":"#0488F4","Title Light":"#FFFFFF","Description Light":"#FFFFFF80","Title Dark":"#FFFFFF","Description Dark":"#FFFFFF80","Text Alt":"#FFFFFF","Background Light 1":"#171515","Background Light 2":"#292929","Background Dark 1":"#4BA9F6","Background Dark 2":"#0488F4","Background Alt":"#292929",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:16,colors:{Primary:"#FE4CA1","Primary Tint":"#EC3A8F",Secondary:"#262626","Secondary Tint":"#EC3A8F",Accent:"#FE4CA1","Accent Tint":"#EC3A8F","Title Light":"#FFFFFF","Description Light":"#FFFFFFB2","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#191919","Background Light 2":"#262626","Background Dark 1":"#2B2B2B","Background Dark 2":"#121212","Background Alt":"#FE4CA1",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}},{id:17,colors:{Primary:"#000000","Primary Tint":"#4E4E4E",Secondary:"#F8F8F8","Secondary Tint":"#DCDCDC",Accent:"#000000","Accent Tint":"#4E4E4E","Title Light":"#000000","Description Light":"#999999","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#FFFFFF","Background Light 2":"#E6E6E6","Background Dark 1":"#1A1A1A","Background Dark 2":"#000000","Background Alt":"#666666",Neutral:"#00000033",Spark:"#FFFFFF33",Glow:"#FFFFFF"}},{id:18,colors:{Primary:"#9B130D","Primary Tint":"#6D0D09",Secondary:"#262626","Secondary Tint":"#6D0D09",Accent:"#9B130D","Accent Tint":"#6D0D09","Title Light":"#FFFFFF","Description Light":"#FFFFFFB2","Title Dark":"#FFFFFF","Description Dark":"#FFFFFFB2","Text Alt":"#FFFFFF","Background Light 1":"#1C0208","Background Light 2":"#331B21","Background Dark 1":"#493539","Background Dark 2":"#604E52","Background Alt":"#9B130D",Neutral:"#FFFFFF80",Spark:"#FFFFFF80",Glow:"#FFFFFF"}}],Qn=[{id:1,font_family:{F1:{name:"Inter",url:"Inter"},F2:{name:"DM Sans",url:"DM+Sans"}}},{id:2,font_family:{F1:{name:"Roboto",url:"Roboto"},F2:{name:"Plus Jakarta Sans",url:"Plus+Jakarta+Sans"}}},{id:3,font_family:{F1:{name:"Lexend",url:"Lexend"},F2:{name:"Roboto",url:"Roboto"}}},{id:4,font_family:{F1:{name:"Epilogue",url:"Epilogue"},F2:{name:"Open Sans",url:"Open+Sans"}}},{id:5,font_family:{F1:{name:"Playfair Display",url:"Playfair+Display"},F2:{name:"Montserrat",url:"Montserrat"}}},{id:6,font_family:{F1:{name:"Merriweather",url:"Merriweather"},F2:{name:"Libre Baskerville",url:"Libre+Baskerville"}}},{id:7,font_family:{F1:{name:"Inter",url:"Inter"},F2:{name:"Nunito Sans",url:"Nunito+Sans"}}},{id:8,font_family:{F1:{name:"Manrope",url:"Manrope"},F2:{name:"Open Sans",url:"Open+Sans"}}},{id:9,font_family:{F1:{name:"Host Grotesk",url:"Host+Grotesk"},F2:{name:"DM Sans",url:"DM+Sans"}}},{id:10,font_family:{F1:{name:"Lexend",url:"Lexend"},F2:{name:"Work Sans",url:"Work+Sans"}}},{id:11,font_family:{F1:{name:"Geologica",url:"Geologica"},F2:{name:"Outfit",url:"Outfit"}}}],er=new Set,tr=e=>{e&&er.add(e)},ar=e=>e&&er.has(e)?0:600,{Fragment:ir}=wp.element,sr="wdkit_saved_site_info",nr=()=>{try{let e=window.localStorage.getItem(sr);return e?JSON.parse(e):null}catch(e){return null}},rr=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_notification:t=>e(fi(t))})))((t=>{let i=he(),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 includes Pro widgets from Elementor Pro. Please upgrade to Pro to unlock and import the complete design."},1006:{name:"theplus_elementor_addon",link:"https://theplusaddons.com/pricing/",lable:"The Plus Addons for Elementor Pro",desc:"This template includes Pro widgets from The Plus Addons for Elementor Pro. Please upgrade to Pro to unlock and import the complete design."},1008:{name:"the-plus-addons-for-block-editor-pro",link:"https://nexterwp.com/pricing/",lable:"Nexter Blocks Pro",desc:"This template includes Pro widgets from Nexter Blocks Pro. Please upgrade to Pro to unlock and import the complete design."}},[o,d]=(0,e.useState)({r:.8,g:.2,b:.2}),c=(0,e.useRef)(),p=(0,e.useRef)(!1),m=(0,e.useRef)(),[u,h]=(0,e.useState)([]),[w,_]=(0,e.useState)([]),[f,k]=(0,e.useState)((()=>t?.site_obj?.site_info?.site_name||nr()?.site_name||"")),[y,x]=(0,e.useState)(""),[v,j]=(0,e.useState)(""),[N,$]=(0,e.useState)(""),[C,S]=(0,e.useState)(""),[D,E]=(0,e.useState)(""),[P,A]=(0,e.useState)(!0),[F,T]=(0,e.useState)(!0),[L,B]=(0,e.useState)(!1),[I,R]=(0,e.useState)(!1),[M,O]=(0,e.useState)(),[V,W]=(0,e.useState)([]),[q,G]=(0,e.useState)(!1),[z,H]=(0,e.useState)(""),[U,J]=(0,e.useState)(!1),[K,Z]=(0,e.useState)(!1),[Y,X]=(0,e.useState)(!1),[Q,ee]=(0,e.useState)([]),[te,ae]=(0,e.useState)("desktop");var ie=0,se=0;const[ne,re]=(0,e.useState)((()=>t?.kit_template?.length>0?{title:t.kit_template[0]?.title,url:t.kit_template[0]?.post_url}:void 0)),[le,oe]=(0,e.useState)((()=>t?.site_obj?.site_info?.site_name?"global_data":"site_info")),[de,ce]=(0,e.useState)((()=>!!t?.site_obj?.site_info?.site_name)),[pe,me]=(0,e.useState)(!1),[ue,ge]=(0,e.useState)(),[we,_e]=(0,e.useState)(),[fe,ke]=(0,e.useState)(-1),[be,ye]=(0,e.useState)(-1),[xe,ve]=(0,e.useState)(),[je,Ne]=(0,e.useState)(!1),[$e,Ce]=(0,e.useState)(),[Se,De]=(0,e.useState)(!1),[Ee,Pe]=(0,e.useState)(),[Ae,Fe]=(0,e.useState)("light"),[Te,Le]=(0,e.useState)(!1),[Be,Ie]=(0,e.useState)(!1),[Re,Me]=(0,e.useState)(),[Oe,Ve]=(0,e.useState)((()=>nr()));(0,e.useEffect)((()=>{t?.site_obj?.font_family&&W(t?.site_obj?.font_family);let e=nr();Ve(e),t?.site_obj?.site_info?.site_name?(k(t.site_obj.site_info.site_name),oe("global_data"),ce(!0)):e?.site_name&&k(e.site_name),t?.site_obj?.site_info?.phone?S(t.site_obj.site_info.phone):e?.phone&&S(e.phone),t?.site_obj?.site_info?.email?$(t.site_obj.site_info.email):e?.email&&$(e.email),t?.site_obj?.site_info?.tagline?x(t.site_obj.site_info.tagline):e?.tagline&&x(e.tagline),t?.site_obj?.site_info?.address?j(t.site_obj.site_info.address):e?.address&&j(e.address),t?.site_obj?.site_info?.logo?E(t?.site_obj.site_info.logo):e?.logo&&E(e.logo);let a=t?.site_obj?.site_info?.social_links||e?.social_links;if(a&&Object.keys(a).length>0){let e=[];Object.entries(a).map((([t,a])=>{let i=r.findIndex((e=>e.name==t));if(i>-1){let t=Object.assign({},r[i],{value:a});e.push(t)}})),ee(e)}if(t?.site_obj?.kit_global&&O(t?.site_obj?.kit_global),t?.kit_data){let e=(t?.kit_data?.color_palette_id?t?.kit_data?.color_palette_id:"").split(",").map((e=>e.trim())),a=Xn.filter((t=>{if(!e.includes(String(t.id)))return t}));Me(a)}We(t?.kit_template);let i=t?.wdkit_meta?.userinfo?.id;"yes"!=t?.ai_compatible&&1!=i&&4!=i||Le(!0),"yes"==t?.kit_data?.color_palette&&Ie(!0),B(!0)}),[]),(0,e.useEffect)((()=>{t?.kit_template?.length>0&&t.global_data&&(t?.site_obj?.kit_global||O(t.global_data),re({title:t.kit_template[0]?.title,url:t.kit_template[0]?.post_url}))}),[u]),(0,e.useEffect)((()=>{if("global_data"==le){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&&ve(e.data.data)}))}}),[le]),(0,e.useEffect)((()=>{p.current&&qe()}),[M,V]),(0,e.useEffect)((()=>{je&&et()}),[Ae]);const We=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));_(e)}}T(!1)},qe=()=>{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&&Ye(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;`)})),V.forEach((i=>{"elementor"==t.kit_builder&&M?.typo?.length>0?M.typo.map((t=>{let i=V.findIndex((e=>e.original==t?.typography_font_family));if(V[i]?.url&&a.push(V[i].url),i>-1){let a=V[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=V.findIndex((e=>e.original==i));if(V[s]?.url&&a.push(V[s].url),s>-1){let a=V[s].replace;e+=`--tpgb-T${t.id+1}-font-family: ${a} !important;`}}))})),e+="}",D?.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&&(A(!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 A(!1)},Ge=(e=D)=>{let t={};return Q?.forEach((e=>{e.value&&Object.assign(t,{[e.name]:e.value})})),(e=>{try{window.localStorage.setItem(sr,JSON.stringify(e))}catch(e){}})({site_name:f,tagline:y,address:v,email:N,phone:C,logo:e,social_links:t}),t},ze=async(e=D)=>{let a=Ge(e),i=Object.assign({},t?.site_obj,{site_info:{site_name:f,tagline:y,address:v,email:N,phone:C,logo:e,social_links:a},font_family:V,kit_global:M,site_global:xe});t.setsite_obj(i),t.setcurrent_page("temp_feature")},He=async e=>{if("next"==e){if(F)return!1;if(me(!0),"site_info"==le){if(!hn(N))return t.wdkit_set_notification({title:(0,a.__)("Invalid Email Format","wdesignkit"),desc:(0,a.__)("Please enter a valid email address to continue","wdesignkit")}),document.querySelector(".wkit-site-email-inp").style.borderColor="red",me(!1),me(!1),!1;let e=await Ke("normal");((e=D)=>{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&&(A(!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),Ge(e),M?.typo?.length>0||M?.color?.length>0?oe("global_data"):ze(e)}else if("global_data"==le){let e=await Ke("brand");ze(e)}me(!1)}else"back"==e&&("site_info"==le?(document.body.classList.contains("folded")&&document.body.classList.remove("folded"),i(t?.back_routing?t?.back_routing:"/browse")):"global_data"==le&&(de?t?.setcurrent_page?t.setcurrent_page("select_import_method"):i(t?.back_routing?t?.back_routing:"/browse"):oe("site_info")))},Ue=(e,t)=>{let a=V?.length>0?[...V]:[];a[e].replace=t.name,a[e].url=t.url,W(a)},Je=(e,t,a="")=>("palette"==a?t?.name&&t.name:t?.replace&&t.replace,(0,g.jsx)("div",{className:"wkit-select-global-data "+(e%2?"wkit-global-right-popup":"wkit-global-left-popup"),children:(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:"15",height:"15",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=>{H(e.target.value)}})]}),(0,g.jsx)("div",{className:"wkit-global-data-loop",children:n?.length>0&&n.filter((e=>{if(e.name.toLocaleLowerCase().includes(z.toLocaleLowerCase()))return e.name})).map(((e,t)=>{var i="";return("primary"==we&&Ee?.Primary.name==e.name||"secondary"==we&&Ee?.Secondary.name==e.name)&&(i="wkit-selected-typo"),(0,g.jsx)("div",{className:`wkit-global-data-card wkit-typo-card ${i}`,onClick:()=>{(e=>{"palette"==a?"primary"==we?tt(e,Ee?.Secondary):"secondary"==we&&tt(Ee?.Primary,e):Ue(we,e)})(e)},children:(0,g.jsx)("span",{style:{fontFamily:e.name},children:e.name})},t)}))})]})})),Ke=async(e="normal",t=D?.default)=>{if(!D?.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({},D);return await Object.entries(e).map((([e,a])=>{Object.assign(t,{[e]:a})})),E(t),t}return D}},Ze=e=>{if("color"==e){if(ke(-1),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});O(e)}}else"typo"==e&&(ye(-1),V.length>0&&(V.map((e=>{e.replace=e.original})),W([...V])))},Ye=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){const t=e=>{"done"===e.data?.status&&(A(!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)},Xe=e=>{3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((e=>e+e)).join(""));const t=parseInt(e.substring(0,2),16)/255,a=parseInt(e.substring(2,4),16)/255,i=parseInt(e.substring(4,6),16)/255,s=Math.max(t,a,i),n=Math.min(t,a,i);let r,l,o=(s+n)/2;if(s===n)r=l=0;else{const e=s-n;switch(l=o>.5?e/(2-s-n):e/(s+n),s){case t:r=(a-i)/e+(a{t/=100,a/=100;const i=(1-Math.abs(2*a-1))*t,s=i*(1-Math.abs(e/60%2-1)),n=a-i/2;let r=0,l=0,o=0;0<=e&&e<60?(r=i,l=s,o=0):60<=e&&e<120?(r=s,l=i,o=0):120<=e&&e<180?(r=0,l=i,o=s):180<=e&&e<240?(r=0,l=s,o=i):240<=e&&e<300?(r=s,l=0,o=i):300<=e&&e<360&&(r=i,l=0,o=s);const d=e=>{const t=Math.round(255*(e+n)).toString(16);return 1===t.length?"0"+t:t};return`#${d(r)}${d(l)}${d(o)}`},et=(e=$e?.Primary,a=$e?.Secondary)=>{let i=M.color?.length>0?[...M.color]:[],s={Primary:e,Secondary:a};Object.entries({"Primary Hover":{type:"hsl",hsl:{h:0,s:0,l:-15},base:"Primary"},"Secondary Hover":{type:"hsl",hsl:{h:0,s:0,l:-15},base:"Secondary"},"Background Light 2":{type:"hsl_replace",hsl:{h:0,s:0,l:97},base:"Primary"},"Background Dark 1":{type:"same_as",base:"Primary"},Neutral:{type:"hsl_replace",hsl:{h:0,s:0,l:97},base:"Primary"},Accent:{type:"same_as",base:"Primary"},"Accent Tint":{type:"same_as",base:"Primary Hover"},"Title Light":{type:"light_dark",base:"dark"},"Title Dark":{type:"light_dark",base:"light"},"Description Light":{type:"light_dark",base:"dark"},"Description Dark":{type:"light_dark",base:"light"},"Title Alt":{type:"same_as",base:"Title Light"},"Background Light 1":{type:"light_dark",base:"light"},"Background Dark 2":{type:"light_dark",base:"dark"},"Background Alt":{type:"same_as",base:"Background Light 1"},Spark:{type:"kit_temp",base:"Spark"},Glow:{type:"kit_temp",base:"Glow"}}).map((([e,a])=>{if("elementor"==t.kit_builder)var n=i.findIndex((t=>t.title==e));else"gutenberg"==t.kit_builder&&(n=i.findIndex((t=>t.label==e)));var r="";if("hsl"==a.type){let t=s?.[a.base]?s[a.base]:"#000000",i=Xe(t),n=a.hsl,l=Math.max(0,i.h+n.h),o=Math.max(0,i.s+n.s),d=Math.max(0,i.l+n.l);r=Qe(l,o,d)||"#000000",Object.assign(s,{[e]:r})}if("hsl_replace"==a.type){let t=s?.[a.base]?s[a.base]:"#000000",i=Xe(t),n=a.hsl,l=n.h>0?n.h:i.h,o=n.s>0?n.s:i.s,d=(n.l,n.l);r=Qe(l,o,d)||"#000000",Object.assign(s,{[e]:r})}if("same_as"==a.type&&(r=s?.[a.base]?s[a.base]:"#000000",Object.assign(s,{[e]:r})),"fixed"==a.type&&(r=a?.base?a.base:"#000000",Object.assign(s,{[e]:r})),"kit_temp"==a.type&&(r=i[n]?.color?i[n].color:"#ffffff",Object.assign(s,{[e]:r})),"light_dark"==a.type){let t=a.base?a.base:"dark";if("dark"==t)var l="dark"==Ae?"#ffffff":"#000000";else"light"==t&&(l="dark"==Ae?"#000000":"#ffffff");r=l||"#000000",Object.assign(s,{[e]:r})}n>-1&&r&&(i[n].new_color=r)}));let n=Object.assign({},M,{color:i});O(n),Ce(s)},tt=(e=Ee?.Primary,t=Ee?.Secondary)=>{Pe({Primary:e,Secondary:t});let a={F1:e,F2:t},i=V?.length>0?[...V]:[];i.map((e=>{let t=e?.f_id;Object.assign(e,{replace:a?.[t].name}),Object.assign(e,{url:a?.[t].url})})),W(i)},at=(0,e.useRef)(null);(0,e.useEffect)((()=>()=>clearTimeout(at.current)),[]);const it=e=>{if(0===e.clientX)return;const t=e.clientX-ie,a=Math.max(360,se+t);e.target.previousElementSibling.style.width=`${a}px`};return(0,g.jsxs)("div",{className:"wkit-ai-import-main",onClick:e=>{var t;t=e,U&&!t.target.closest(".wkit-page-drp")&&J(!1),ue&&!t.target.closest(".wkit-global-color-card")&&ge(""),null==we||t.target.closest(".wkit-select-global-data")||_e(),Y&&!t.target.closest(".wkit-socialink-drp")&&X(!1)},children:[(()=>{const e=()=>(0,g.jsxs)("div",{className:"wkit-page-drp "+(U?"wkit-page-drp-open":""),children:[(0,g.jsxs)("div",{className:"wkit-page-drp-header",onClick:()=>{J(!U)},children:[(0,g.jsx)("span",{className:"wkit-page-drp-title",title:ne?.title,children:ne?.title}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),U&&(0,g.jsx)("div",{className:"wkit-page-drp-body",children:t?.kit_template.length>0&&t.kit_template.map(((e,t)=>(0,g.jsxs)("span",{className:"wkit-page-drp-opt "+(ne?.url==e?.post_url?"wkit-page-drp-act":""),onClick:()=>{re({title:e?.title,url:e?.post_url}),A(!0),J(!1)},children:[(0,g.jsx)("span",{className:"wkit-page-drp-opt-txt",children:e?.title}),ne?.url==e?.post_url&&(0,g.jsx)("i",{className:"wdkit-i-round-check"})]},t)))})]});return(0,g.jsxs)("div",{className:"wkit-temp-preview-header",children:[(0,g.jsx)(yi,{}),(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"==te?"wkit-responsive-active":""),onClick:()=>{ae("desktop")},title:(0,a.__)("Desktop","wdesignkit"),children:(0,g.jsx)("i",{className:"wdkit-i-computer"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("tablet"==te?"wkit-responsive-active":""),onClick:()=>{ae("tablet")},title:(0,a.__)("Tablet","wdesignkit"),children:(0,g.jsx)("i",{className:"wdkit-i-tablet"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("mobile"==te?"wkit-responsive-active":""),onClick:()=>{ae("mobile")},title:(0,a.__)("Mobile","wdesignkit"),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 "+(F?"wkit-skeleton":""),children:[(0,g.jsxs)("div",{className:"wkit-preview-editor-body",children:["site_info"==le&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("div",{className:"wkit-preview-editor-header",children:(0,g.jsx)("span",{className:"wkit-editor-temp-title",children:(0,a.__)("Site Info","wdesignkit")})}),(0,g.jsxs)("div",{className:"wkit-temp-basic-info",children:[(0,g.jsxs)("div",{className:"wkit-temp-site-name",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"wkit-site-name-label",children:(0,a.__)("Business Name","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-site-label-required",children:"*"})]}),(0,g.jsx)("input",{className:"wkit-site-name-inp",type:"text",value:f,onChange:e=>{k(e.target.value)},placeholder:(0,a.__)("E.g. Apple Inc.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-tagline",children:[(0,g.jsx)("label",{className:"wkit-site-tagline-label",children:(0,a.__)("Business Tagline","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-tagline-inp",type:"text",value:y,onChange:e=>{x(e.target.value)},placeholder:(0,a.__)("E.g. Think Different","wdesignkit")})]}),Te&&(0,g.jsxs)("div",{className:"wkit-temp-site-logo",children:[(0,g.jsx)("label",{className:"wkit-site-logo-label",children:(0,a.__)("Logo","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-site-logo-content",onClick:e=>(async e=>{e.target.closest(".wkit-kit-selected-logo")||(m.current||(m.current=wp.media({title:"Select Images",button:{text:"Use these images"},multiple:!1}),m.current.on("select",(()=>{const e=m.current.state().get("selection").first().toJSON();let t=e?.url;if(t){let e=Object.assign({},D,{default:t});E(e)}}))),m.current.open())})(e),children:[D?.default&&(0,g.jsx)("div",{className:"wkit-kit-selected-logo",children:(0,g.jsx)("i",{className:"wdkit-i-cancel",onClick:()=>{E("")}})}),D?.default?(0,g.jsx)("img",{src:D.default}):(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{className:"wkit-site-logo-txt",children:(0,a.__)("Upload Logo (Recommended size: 512 × 512 px, PNG with transparent background for best results in WordPress)","wdesignkit")})]})]})]})]})]}),"global_data"==le&&(0,g.jsxs)("div",{className:"wkit-temp-global-data",children:[!Be&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("span",{className:"wkit-edit-temp-header",children:(0,a.__)("Select Global Fonts & Colours","wdesignkit")}),V?.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:()=>{Ze("typo")},children:(0,g.jsx)("i",{className:"wdkit-i-refresh"})})]}),(0,g.jsx)("div",{className:"wkit-global-typography-body",children:V.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-global-typo-btn",onClick:()=>{_e(t)},children:[(0,g.jsx)("span",{style:{fontFamily:e.replace},children:(0,a.__)("Ag","wdesignkit")}),we==t&&Je(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:()=>{Ze("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=ue?._id;else"gutenberg"==t.kit_builder&&(i=e?.id,s=e?.new_color,n=ue?.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});O(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)}))})]})]}),Be&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsxs)("div",{className:"wkit-temp-palette-color-edit",children:[(0,g.jsxs)("div",{className:"wkit-palette-color-head",children:[(0,g.jsx)("span",{className:"wkit-palette-color-header",children:(0,a.__)("Select Font Pair: ","wdesignkit")+(()=>{var e="";if(be>-1){let t=Qn.findIndex((e=>e?.id==be));if(t>-1){let a=Qn[t]?.font_family;e=a.F1.name+", "+a.F2.name}}else if(Ee?.Primary&&Ee?.Secondary)e=(Ee?.Primary?.name?Ee.Primary.name:"")+(Ee?.Secondary?.name?", "+Ee.Secondary.name:"");else{let a=t?.site_obj?.font_family;e=(a[0]?.original?a[0].original:"")+(a[1]?.original?", "+a[1].original:"")}return e})()}),(0,g.jsxs)("span",{className:"wkit-global-data-reset wkit-temp-info-tooltip",onClick:()=>{Ze("typo"),De(!1)},children:[(0,g.jsx)("i",{className:"wdkit-i-refresh"}),(0,g.jsx)("span",{className:"wkit-temp-info-tooltip-txt",children:(0,a.__)("Reset Font","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-palette-color-body",children:[Qn.map(((e,t)=>{let i=e?.font_family;return(0,g.jsxs)("div",{className:be==e?.id?"wkit-global-typo-btn wkit-selected-typo":"wkit-global-typo-btn",onClick:()=>{(e=>{De(!1),ye(e);let t=Qn.findIndex((t=>t.id==e));if(-1==t)return;let a=Qn[t].font_family,i=V?.length>0?[...V]:[];i.map((e=>{let t=e?.f_id;e.replace=a?.[t].name,e.url=a?.[t].url})),W(i)})(e?.id)},children:[(0,g.jsx)("span",{style:{fontFamily:`'${i.F1.name}', sans-serif`},children:(0,a.__)("A","wdesignkit")}),(0,g.jsx)("span",{style:{fontFamily:`'${i.F2.name}', sans-serif`},children:(0,a.__)("g","wdesignkit")})]},t)})),(0,g.jsx)("div",{className:"wkit-new-font-cover",onClick:()=>{De(!Se),ye(-1),tt(Ee?.Primary?Ee?.Primary:{name:"Lexend",url:"Lexend"},Ee?.Secondary?Ee?.Secondary:{name:"Roboto",url:"Roboto"}),Ze("typo")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]})]}),Se&&(0,g.jsx)("div",{className:"wkit-custom-font-content",children:(0,g.jsxs)("div",{className:"wkit-custom-main-font",children:[(0,g.jsxs)("div",{className:"wkit-new-primary-font",children:[(0,g.jsx)("span",{className:"wkit-primary-font-txt",children:(0,a.__)("Primary Font","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-primary-font-box",onClick:()=>{_e("primary")},children:[(0,g.jsx)("span",{className:"wkit-primary-font-name",children:Ee?.Primary?.name}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"}),"primary"==we&&Je(1,Ee?.Primary,"palette")]})]}),(0,g.jsxs)("div",{className:"wkit-new-secondary-font",children:[(0,g.jsx)("span",{className:"wkit-secondary-font-txt",children:(0,a.__)("Secondary Font","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-secondary-font-box",onClick:()=>{_e("secondary")},children:[(0,g.jsx)("span",{className:"wkit-secondary-font-name",children:Ee?.Secondary?.name}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"}),"secondary"==we&&Je(1,Ee?.Secondary,"palette")]})]})]})}),(0,g.jsx)("hr",{className:"wdkit-style-divider"}),(0,g.jsxs)("div",{className:"wkit-temp-palette-color-edit",children:[(0,g.jsxs)("div",{className:"wkit-palette-color-head",children:[(0,g.jsx)("span",{className:"wkit-palette-color-header",children:(0,a.__)("Select Colors Palette","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-global-data-reset wkit-temp-info-tooltip",onClick:()=>{Ze("color"),Ne(!1)},children:[(0,g.jsx)("i",{className:"wdkit-i-refresh"}),(0,g.jsx)("span",{className:"wkit-temp-info-tooltip-txt",children:(0,a.__)("Reset Color","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-palette-color-body",children:[Re.map(((e,a)=>{let i=e?.colors;return(0,g.jsxs)("div",{className:fe==e?.id?"wkit-palette-cover wkit-selected-palette":"wkit-palette-cover",onClick:()=>{(e=>{Ne(!1),ke(e);let a=Re.findIndex((t=>t.id==e));if(-1==a)return;let i=Re[a].colors,s=M.color?.length>0?[...M.color]:[];s.map((e=>{if("elementor"==t.kit_builder)var a=e.title.trim();else"gutenberg"==t.kit_builder&&(a=e.label.trim());e.new_color=i[a]}));let n=Object.assign({},M,{color:s});O(n)})(e?.id)},children:[(0,g.jsx)("span",{className:"wkit-palette-primary-color",style:{backgroundColor:i.Primary}}),(0,g.jsx)("span",{className:"wkit-palette-secondary-color",style:{backgroundColor:i.Secondary}})]},a)})),(0,g.jsx)("div",{className:"wkit-new-palette-cover",onClick:()=>{(()=>{Ne(!je);var e=$e?.Primary?$e?.Primary:Re[0].colors.Primary,t=$e?.Secondary?$e?.Secondary:Re[0].colors.Secondary;Ze("color"),et(e,t)})()},children:(0,g.jsx)("i",{className:"wdkit-i-wb-plus"})})]})]}),je&&(0,g.jsxs)("div",{className:"wkit-custom-palette-content",children:[(0,g.jsxs)("div",{className:"wkit-custom-main-colors",children:[(0,g.jsxs)("div",{className:"wkit-new-primary-colors",children:[(0,g.jsx)("span",{className:"wkit-primary-color-txt",children:(0,a.__)("Primary Color","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-primary-color-box",children:(0,g.jsx)("input",{className:"wkit-primary-color-inp",type:"color",value:$e?.Primary,onChange:e=>{et(e.target.value,$e.Secondary)}})})]}),(0,g.jsxs)("div",{className:"wkit-new-secondary-colors",children:[(0,g.jsx)("span",{className:"wkit-secondary-color-txt",children:(0,a.__)("Secondary Color","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-secondary-color-box",children:(0,g.jsx)("input",{className:"wkit-secondary-color-inp",type:"color",value:$e?.Secondary,onChange:e=>{et($e.Primary,e.target.value)}})})]})]}),(0,g.jsxs)("div",{className:"wkit-custom-lightDark-content",children:[(0,g.jsx)("span",{className:"wkit-lightDark-txt",children:(0,a.__)("Style","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-lightDark-switcher",children:[(0,g.jsx)("span",{className:"wkit-lightDark-switcher-txt "+("light"==Ae?"wkit-selected-switcher":""),onClick:()=>{Fe("light")},children:(0,a.__)("Light","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-lightDark-switcher-txt "+("dark"==Ae?"wkit-selected-switcher":""),onClick:()=>{Fe("dark")},children:(0,a.__)("Dark","wdesignkit")})]})]}),(0,g.jsx)("div",{className:"wkit-custom-colors-content",children:Object.entries($e).map((([e,t])=>{if("Glow"!==e&&"Spark"!==e)return(0,g.jsx)("span",{className:"wkit-custom-colors-dot",style:{background:t},title:e})}))})]})]})]}),"site_info"==le&&Te&&(0,g.jsxs)(g.Fragment,{children:[(0,g.jsx)("hr",{className:"wkit-temp-info-seperater"}),(0,g.jsxs)("div",{className:"wkit-temp-additional-info",children:[(0,g.jsxs)("div",{className:"wkit-temp-additional-info-head",onClick:()=>{Z(!K)},children:[(0,g.jsxs)("div",{className:"wkit-additional-info-head-txt",children:[(0,g.jsx)("span",{children:(0,a.__)("Add Additional Content","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-temp-info-tooltip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wkit-temp-info-tooltip-txt",children:(0,a.__)("Add more information to get even better first version of website. This might useful in AI Content Import templates. Few templates doesn't support those fields for now. These information are just for your content for template. We do not store any of those information on our side.","wdesignkit")})]})]}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow "+(K?"wkit-info-drp-icon wkit-rorate-icon":"wkit-info-drp-icon")})]}),K&&(0,g.jsxs)("div",{className:"wkit-temp-additional-info-body",children:[(0,g.jsxs)("div",{className:"wkit-temp-site-address",children:[(0,g.jsx)("label",{className:"wkit-site-address-label",children:(0,a.__)("Address","wdesignkit")}),(0,g.jsx)("textarea",{className:"wkit-site-address-inp",rows:"3",value:v,onChange:e=>{j(e.target.value)},placeholder:(0,a.__)("E.g. 123 Street....","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-email",children:[(0,g.jsx)("label",{className:"wkit-site-email-label",children:(0,a.__)("Email","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-email-inp",value:N,onChange:e=>{$(e.target.value),e.target.style.borderColor="unset"},placeholder:(0,a.__)("E.g. admin@gmail.com","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-mobile",children:[(0,g.jsx)("label",{className:"wkit-site-mobile-label",children:(0,a.__)("Phone Number","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-mobile-inp",value:C,onChange:e=>{var t;t=e.target.value,/[a-zA-Z]/.test(t)||S(t)},placeholder:(0,a.__)("E.g. +1 (213) 449-4470","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-sociallink",children:[(0,g.jsxs)("div",{className:"wkit-temp-sociallink-txt",children:[(0,g.jsx)("label",{className:"wkit-site-sociallink-label",children:(0,a.__)("Social Media","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-temp-info-tooltip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wkit-temp-info-tooltip-txt",children:(0,a.__)("Please enter a full URL (e.g., https://www.instagram.com/posimyth, https://x.com/posimyth, https://www.facebook.com/posimyth)","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-sociallink-content",children:[Q.length>0&&Q.map(((e,t)=>(0,g.jsxs)("label",{htmlFor:"wkit-social-"+e.name,className:"wkit-selected-sociallink",children:[(0,g.jsx)("span",{className:"wkit-social-close-btn"}),e.icon,(0,g.jsx)("input",{id:"wkit-social-"+e.name,className:"wkit-selected-sociallink-inp",type:"text",value:e.value,placeholder:e.label+" Account URL",onChange:e=>{((e,t)=>{if(t>-1){let a=[...Q];a[t].value=e,ee(a)}})(e.target.value,t)}}),(0,g.jsx)("i",{className:"wdkit-i-cancel",onClick:()=>{(e=>{Q.splice(e,1),ee([...Q])})(t)}})]},t))),Q?.length!=r?.length&&(0,g.jsxs)("div",{className:"wkit-socialink-drp"+(Y?" wkit-socialink-drp-open":""),children:[(0,g.jsxs)("div",{className:"wkit-socialink-header wkit-outer-btn-class",onClick:()=>{X(!Y)},children:[(0,g.jsx)("i",{className:"wdkit-i-wb-plus"}),(0,g.jsx)("span",{children:(0,a.__)("Add","wdesignkit")})]}),Y&&(0,g.jsx)("div",{className:"wkit-socialink-body",children:r.filter(((e,t)=>{if(-1==Q.findIndex((t=>t?.name==e?.name)))return e})).map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-socialink-opt",onClick:()=>{(e=>{let t=[...Q];if(-1==t.findIndex((t=>t?.name==e?.name))){let a=Object.assign({},e,{value:""});t.push(a),ee(t)}})(e)},children:[e.icon,(0,g.jsx)("span",{className:"wkit-socialink-opt-txt",children:e.label})]},t)))})]})]})]})]})]})]})]}),(0,g.jsxs)("div",{className:"wkit-preview-editor-footer",children:[(()=>{if(w?.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")}),I?(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()=>{R(!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(w)),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));_(e)}R(!1)})()}})]}),(0,g.jsx)("div",{className:"wkit-pro-notice-body",children:w?.length?w.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?.[w[0].p_id].lable}),(0,g.jsx)("span",{className:"wkit-pro-plugin-notice-subtitle",children:l?.[w[0].p_id].desc}),(0,g.jsxs)("a",{className:"wkit-pro-plugin-notice-btn wkit-btn-class",href:l?.[w[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:()=>{He("back")},children:(0,a.__)("Back","wdesignkit")}),!(w?.length>0)&&(0,g.jsx)(g.Fragment,{children:(0,g.jsxs)("div",{className:"wkit-next-btn-content",children:[L&&!pe&&!f.trim()&&(0,g.jsxs)("span",{className:"wkit-notice-tooltip-txt",children:[(0,g.jsx)("i",{className:"wdkit-i-alert"}),(0,a.__)("Please enter your Business name to continue.","wdesignkit")]}),(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",disabled:!f.trim(),onClick:()=>{He("next")},children:pe?(0,g.jsx)(b,{}):"site_info"!=le||(()=>{if(!Oe)return!1;let e={};return Q?.forEach((t=>{t.value&&Object.assign(e,{[t.name]:t.value})})),(Oe.site_name||"")===f&&(Oe.tagline||"")===y&&(Oe.address||"")===v&&(Oe.email||"")===N&&(Oe.phone||"")===C&&JSON.stringify(Oe.logo||"")===JSON.stringify(D||"")&&JSON.stringify(Oe.social_links||{})===JSON.stringify(e)})()?(0,a.__)("Next","wdesignkit"):(0,a.__)("Save & Next","wdesignkit")}),"site_info"==le&&f.trim()&&(0,g.jsxs)("span",{className:"wdkit-cmn-tooltip wkit-savenext-tooltip",children:[(0,g.jsx)("i",{className:"wdkit-i-info"}),(0,g.jsx)("span",{className:"wdkit-tooltip-content",children:(0,a.__)("We save this info so it auto-fills the next time you import a kit.","wdesignkit")})]})]})})]})]})]}),(0,g.jsx)("div",{className:"wkit-ai-import-panel-drag",draggable:!0,onDragStart:e=>{(e=>{ie=e.clientX;const t=window.getComputedStyle(e.target.previousElementSibling);se=parseInt(t.width,10)})(e)},onDrag:e=>{it(e)},onDragEnd:e=>{it(e)}}),(0,g.jsx)("div",{className:"wkit-ai-import-fram",children:(0,g.jsxs)("div",{className:"wkit-temp-preview-con",style:{width:"tablet"==te?"768px":"mobile"==te?"360px":""},children:[(0,g.jsxs)("div",{className:"wkit-preview-content-notice "+(ne?.url?"":"wkit-private-temp-notice"),children:["mobile"!==te&&(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"})]}),ne?.url?(0,g.jsx)("span",{className:"wkit-content-notice-txt",children:(0,a.__)("This is only a visual preview. The real website will be created with your details in the next step.","wdesignkit")}):t?.kit_template?.length>0&&(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 isn’t available for this website-kit.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-temp-preview-content",children:[(0,g.jsxs)("div",{className:"wkit-temp-preview-skeleton "+(P?"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"})]})]}),ne?.url&&(0,g.jsx)("iframe",{className:"wkit-temp-preview-ifram",ref:c,onLoad:()=>{(()=>{qe(),p.current=!0;const e=ne?.url,t=ar(e);clearTimeout(at.current),at.current=setTimeout((()=>{tr(e),A(!1)}),t)})()},src:ne?.url})]})]})})]})]})})),lr=["h","fit","crop"],or=(e,t=1920)=>{if("string"!=typeof e||""===e.trim())return e;const a=Number.parseInt(t,10);if(!Number.isFinite(a)||a<1)return e;let i;try{i=new URL(e)}catch(t){return e}if("images.pexels.com"!==i.hostname)return e;const s=Number.parseInt(i.searchParams.get("w"),10);return Number.isFinite(s)&&s>0&&s<=a?e:(i.searchParams.set("w",String(a)),i.searchParams.set("auto","compress"),i.searchParams.set("cs","tinysrgb"),lr.forEach((e=>i.searchParams.delete(e))),i.toString())};let dr=null,cr=!1;const pr=new Map,mr=async e=>{const t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","save_wp_images"),t.append("image",e);const a=await i.post(ajaxurl,t).then((e=>e.data)).catch((()=>null));return a?.success&&a?.url?a.url:""},ur=(e=[])=>{if(!dr||!Array.isArray(e)||0===e.length||0===pr.size)return e;let t=!1;const a=e.map((e=>pr.has(e?.url)?(t=!0,Object.assign({},e,{url:pr.get(e.url)})):e));return t?a:e},hr=e=>{if(!Array.isArray(e))return[];const t=(()=>{const e=new Set;try{e.add(window.location.origin)}catch(e){}try{e.add(new URL(ajaxurl,window.location.href).origin)}catch(e){}return e})();return e.filter((e=>"string"==typeof e?.url&&/^https?:\/\//i.test(e.url))).filter((e=>{try{return!t.has(new URL(e.url).origin)}catch(e){return!1}})).map((e=>e.url))},gr=[{name:"arabic",label:"Arabic",native:"العربية"},{name:"bengali",label:"Bengali",native:"বাংলা"},{name:"burmese",label:"Burmese",native:"မြန်မာ"},{name:"chinese",label:"Chinese",native:"中文"},{name:"dutch",label:"Dutch",native:"Nederlands"},{name:"english",label:"English",native:"English"},{name:"filipino",label:"Filipino",native:"Filipino"},{name:"french",label:"French",native:"Français"},{name:"german",label:"German",native:"Deutsch"},{name:"greek",label:"Greek",native:"Ελληνικά"},{name:"gujarati",label:"Gujarati",native:"ગુજરાતી"},{name:"hebrew",label:"Hebrew",native:"עברית"},{name:"hindi",label:"Hindi",native:"हिन्दी"},{name:"indonesian",label:"Indonesian",native:"Bahasa Indonesia"},{name:"italian",label:"Italian",native:"Italiano"},{name:"japanese",label:"Japanese",native:"日本語"},{name:"kannada",label:"Kannada",native:"ಕನ್ನಡ"},{name:"korean",label:"Korean",native:"한국어"},{name:"malay",label:"Malay",native:"Bahasa Melayu"},{name:"marathi",label:"Marathi",native:"मराठी"},{name:"nepali",label:"Nepali",native:"नेपाली"},{name:"persian",label:"Persian",native:"فارسی"},{name:"polish",label:"Polish",native:"Polski"},{name:"portuguese",label:"Portuguese",native:"Português"},{name:"punjabi",label:"Punjabi",native:"ਪੰਜਾਬੀ"},{name:"romanian",label:"Romanian",native:"Română"},{name:"russian",label:"Russian",native:"Русский"},{name:"spanish",label:"Spanish",native:"Español"},{name:"swedish",label:"Swedish",native:"Svenska"},{name:"tamil",label:"Tamil",native:"தமிழ்"},{name:"telugu",label:"Telugu",native:"తెలుగు"},{name:"thai",label:"Thai",native:"ไทย"},{name:"turkish",label:"Turkish",native:"Türkçe"},{name:"urdu",label:"Urdu",native:"اردو"},{name:"vietnamese",label:"Vietnamese",native:"Tiếng Việt"}],wr=[{name:"1",label:"Chef / Kitchen Staff Collection"},{name:"2",label:"IT & Tech Professionals"},{name:"3",label:"Educators & Coaches"},{name:"4",label:"Doctors & Medical Staff"},{name:"5",label:"Construction & Labor Professionals"},{name:"6",label:"Creative Professionals / Artists"},{name:"7",label:"Corporate Business Professionals (Formal Headshots)"},{name:"8",label:"Elderly Care / Social Workers"},{name:"9",label:"Agriculture / Farmers / Rural Workers"},{name:"10",label:"Hospitality (Hotel Staff, Reception, Housekeeping)"},{name:"11",label:"Fitness & Personal Trainers"},{name:"12",label:"Scientists / Lab Technicians"},{name:"13",label:"Musicians / Performers / Entertainers"},{name:"14",label:"Sales & Support Teams (Dressed smart-casual)"},{name:"15",label:"Industrial / Factory Workers"}],_r=e=>{let t=String(null!=e?e:"").trim().toLowerCase();if(!t)return"";let a=wr.find((e=>e.name.toLowerCase()==t||e.label.toLowerCase()==t));return a?a.name:""},fr=e=>{let t=String(null!=e?e:"").trim().toLowerCase();if(!t)return"";let a=gr.find((e=>e.name.toLowerCase()==t||e.label.toLowerCase()==t));return a?a.name:""},kr=(0,e.forwardRef)(((t,i)=>{const n=(0,e.useRef)(null),[r,l]=(0,e.useState)("loading"),[o,d]=(0,e.useState)(""),[c,m]=(0,e.useState)(),[u,h]=(0,e.useState)(),[w,_]=(0,e.useState)("english"),[f,k]=(0,e.useState)(""),[y,x]=(0,e.useState)("all"),[v,j]=(0,e.useState)(20),[N,$]=(0,e.useState)(1),[C,S]=(0,e.useState)("pexels"),[D,E]=(0,e.useState)(0),[P,A]=(0,e.useState)(0),[F,T]=(0,e.useState)(0),[L,B]=(0,e.useState)(""),[I,R]=(0,e.useState)(!1),[M,O]=(0,e.useState)(!1),[V,W]=(0,e.useState)([]),[q,G]=(0,e.useState)([]),[z,H]=(0,e.useState)((()=>Array.isArray(t?.site_obj?.images)?t.site_obj.images:[])),[U,J]=(0,e.useState)([]),[K,Z]=(0,e.useState)([]),[Y,X]=(0,e.useState)([]),[Q,ee]=(0,e.useState)([]),[te,ae]=(0,e.useState)(),[ie,se]=(0,e.useState)(!1),[ne,re]=(0,e.useState)(!1),[le,oe]=(0,e.useState)(!1),[de,ce]=(0,e.useState)(!1),pe=(0,e.useRef)({stock:"",lummi:"",pexels:""}),me=(0,e.useRef)({stock:"",lummi:"",pexels:""}),ue=(0,e.useRef)({stock:"",lummi:"",pexels:""}),he=(0,e.useRef)(null);(0,e.useEffect)((()=>{let e="";if(t?.site_obj?.site_type)e=t.site_obj.site_type;else{let a=t?.site_obj?.site_info?.site_name?t.site_obj.site_info.site_name:"",i=t?.site_obj?.site_info?.tagline?t.site_obj.site_info.tagline:"";e=a+(i?" | "+i:"")}d(e);let a=Array.isArray(t?.site_obj?.site_description)?t.site_obj.site_description:[];W(a);let i=fr(t?.site_obj?.site_lang)||"english";_(i);let s=_r(t?.site_obj?.site_agency);s&&k(s),t?.site_obj?.wirefram_import?fe({site_description:a,site_type:e,site_lang:i}):(async()=>{await Ne("keyword",e,a[0])||l("image")})()}),[]);const ge=e=>{if(!he.current||!e)return;const t=he.current,a=parseInt(getComputedStyle(t).getPropertyValue("grid-auto-rows")),i=parseInt(getComputedStyle(t).getPropertyValue("gap")),s=e.getBoundingClientRect().height,n=Math.ceil((s+i)/(a+i));e.style.gridRowEnd=`span ${n}`};(0,e.useEffect)((()=>{we()}),[t?.site_obj?.site_global]),(0,e.useEffect)((()=>{requestAnimationFrame((()=>{he.current?.querySelectorAll(".wkit-img-grid-item").forEach(ge)}))}),[U,K,Y,q,z,C,c]),(0,e.useEffect)((()=>{const e=()=>{he.current?.querySelectorAll(".wkit-img-grid-item").forEach(ge)};return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[]);const we=()=>{let e=t.site_obj.kit_global?.color,a=e?.findIndex((e=>"primary"==e?._id));a>-1&&(m(e[a].color),h(e[a].color))},_e=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},fe=(e={})=>{var a;a=z,cr=!1,dr=Array.isArray(a)&&a.length>0?(async e=>{const t=[...new Set(e.filter((e=>"string"==typeof e?.url&&/^https?:\/\//i.test(e.url))).map((e=>e.url)))];let a=0;return await Promise.all(Array.from({length:Math.min(4,t.length)},(async()=>{for(;apr.has(e?.url)?Object.assign({},e,{url:pr.get(e.url)}):e))})(a):Promise.resolve(Array.isArray(a)?a:[]),dr.finally((()=>{cr=!0}));let i=Object.assign({},t.site_obj,{images:z,site_category_id:te,site_description:V,site_type:o,site_lang:w,site_agency_id:f||"",site_agency:f?$e(f):""},e);t.setsite_obj(i),t.setcurrent_page("all_set")},ke=(e="",t=v,a=L,i=N,s=c)=>{"lummi"==C?ye(e,t,a,i,s):"stock"==C?xe(e,t,a,i,s):be(e,t,a,i,s),S("lummi"==C?"lummi":"stock"==C?"stock":"pexels")},be=async(e="portrait",t=v,i=L,n=N,r=c)=>{pe.current.pexels=i,me.current.pexels=e,ue.current.pexels=r,ce(!1);const l=i||o;var d;if(d="landscape"==e?"landscape":"portrait"==e?"portrait":"",!l.trim())return o.trim()?(oe(!1),void re(!1)):(re(!1),void oe(!1));const p=`https://api.pexels.com/v1/search?query=${l}${d?`&orientation=${d}`:""}&imageType=photo&per_page=20&free=true&page=${n}&color=${encodeURIComponent(r)}`;await s().get(p,{headers:{Authorization:"D20VQmJG3m1mXgXO7FS39iKxrVrKrfRRviGxz6xZYTpnu7tAGXECJSLp"}}).then((async e=>{if(e?.data.total_results>0){T(e.data.total_results);const t=e.data.photos.map((e=>{const t=((e,t,a=1920)=>{const i=Number.parseInt(e,10),s=Number.parseInt(t,10),n=Number.parseInt(a,10);return!Number.isFinite(i)||!Number.isFinite(s)||i<1||s<1?{width:e,height:t}:!Number.isFinite(n)||n<1||i<=n?{width:i,height:s}:{width:n,height:Math.max(1,Math.round(s*n/i))}})(e.width,e.height);return{id:e.id,url:or(e.src.original),preview:or(e.src.original,400),preview_2x:or(e.src.original,800),width:t.width,height:t.height,owner:(0,a.__)(`by ${e.photographer} via Pexels`,"wdesignkit")}}));X(N{console.error("Error fetching images:",e)})),setTimeout((()=>{re(!1),oe(!1)}),1500)},ye=async(e="portrait",t=v,i=L,n=N,r=c)=>{pe.current.lummi=i,me.current.lummi=e,ue.current.lummi=r,ce(!1);const l=i||o;var d;if(d="landscape"==e?"horizontal":"portrait"==e?"vertical":"",!l.trim())return o.trim()?(oe(!1),void re(!1)):(re(!1),void oe(!1));const p=`https://api.lummi.ai/v1/images/search?query=${l}${d?`&orientation=${d}`:""}&imageType=photo&perPage=20&free=true&page=${n}&color=${encodeURIComponent(r)}`;await s().get(p,{headers:{Authorization:"Bearer lummi-3fa213326ca35049cbb6adfb2503de080d43c87677b9ad74e3b082524f7bded7"}}).then((async e=>{if(e?.data.meta.totalCount>0){A(e?.data.meta.totalCount);const t=e?.data.data.map((e=>{let t=(e?.contentType?e?.contentType:"jpg").split("/"),i=t?.[1]?t[1]:"jpg";return{id:e.id,url:e.url+"."+i,width:e.width,height:e.height,owner:(0,a.__)(`by ${e.author.name} via Lummi`,"wdesignkit")}}));Z(N{console.error("Error fetching images:",e)})),setTimeout((()=>{re(!1),oe(!1)}),1500)},xe=async(e="",t=v,i=L,n=N,r=c)=>{pe.current.stock=i,me.current.stock=e,ue.current.lummi=r,ce(!1);const l=i||o;var d="all";if("landscape"==e?d="horizontal":"portrait"==e&&(d="vertical"),!l.trim())return o.trim()?(oe(!1),void re(!1)):(re(!1),void oe(!1));const p=`https://pixabay.com/api/?key=47928599-89c71061e8c2a701cd8b002c1&q=${encodeURIComponent(l)}&image_type=photo&orientation=${d}&per_page=20&page=${n}&color=${encodeURIComponent(r)}`;await s().post(p).then((async e=>{if(e.data.totalHits>0){E(e.data.total);const t=e.data.hits.map((e=>({id:e.id,url:e.webformatURL,preview:e.previewURL?e.previewURL:"",width:e.imageWidth,height:e.imageHeight,owner:(0,a.__)(`by ${e.user} via Pixabay`,"wdesignkit")})));J(N{console.error("Error fetching images:",e)})),setTimeout((()=>{re(!1),oe(!1)}),1500)},ve=e=>{let t=e.currentTarget,a=Number(t.dataset.retry||0);if(a>=2){let e=t.dataset.preview;return void(e&&t.src!=e&&(t.src=e))}t.dataset.retry=a+1;let i=t.src;setTimeout((()=>{t.removeAttribute("src"),t.src=i}),3e3*(a+1))},je=e=>{let t=z.findIndex((t=>t.id==e.id));if(t>-1){let e=[...z];e.splice(t,1),H(e)}else{let t=[...z];t.push(e),H(t)}},Ne=async(e="keyword",t,a)=>{let i=p(),n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_ai_desc_keyword"),n.append("site_type",null!=t?t:o),n.append("site_desc",null!=a?a:V[0]),n.append("api_type",e),n.append("token",i?.token);let r=await s().post(ajaxurl,n).then((e=>e.data)).catch((()=>!1)),d=null;try{d=r?.response?JSON.parse(r.response):null}catch(e){d=null}return!!d?.keywords?.length&&(ee(d.keywords),ae(d.category_id),!f&&d?.category_id&&wr.some((e=>e.name==String(d.category_id)))&&k(String(d.category_id)),B(d.keywords[0]),l("image"),await ke(y,v,d.keywords[0],N,c),!0)},$e=e=>{let t=wr.findIndex((t=>t.name==e));return t>-1?wr[t].label:(0,a.__)("Select Team Photo Style","wdesignkit")},Ce=()=>(0,g.jsx)("div",{className:"wkit-masonry-img-grid wkit-skeleton",children:Array.from({length:20}).map(((e,t)=>(0,g.jsx)("div",{className:"wkit-img-grid-item",children:(0,g.jsx)("div",{className:"wkit-widget-search-skeleton"})},t)))}),Se=()=>(0,g.jsx)("i",{className:"wdkit-i-check"}),De=[{key:"pexels",label:(0,a.__)("Pexels Images","wdesignkit")},{key:"stock",label:(0,a.__)("Stock Images","wdesignkit")},{key:"lummi",label:(0,a.__)("Lummi Images","wdesignkit")},{key:"upload_img",label:(0,a.__)("Upload Your Images","wdesignkit")},{key:"select_img",label:(0,a.__)("Selected Images","wdesignkit")}];return(0,e.useImperativeHandle)(i,(()=>({submit:fe}))),(0,g.jsxs)("div",{className:"wkit-get-site-info-main",onClick:e=>{var t;!(t=e).target.closest(".wkit-site-industry-drp")&&ie&&se(!1),!t.target.closest(".wkit-img-orient-drp")&&I&&R(!1),!t.target.closest(".wkit-site-img-tab-drp")&&M&&O(!1),!t.target.closest(".wkit-site-img-search-content")&&de&&ce(!1)},children:["loading"==r&&(0,g.jsx)("div",{className:"wkit-content-media-auto-loading",children:(0,g.jsx)(b,{})}),"image"==r&&(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:()=>{ce(!0)},type:"text",value:L,onChange:e=>{B(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),ke(y,v,L,N,c),re(!0))},placeholder:(0,a.__)("Search","wdesignkit")}),(0,g.jsx)("div",{className:"wkit-img-search-btn wkit-btn-class",onClick:()=>{ke(y,v,L,N,c),re(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow-2"})}),de&&(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:Q?.length>0&&Q?.map((e=>{let t=e.replace(/\b\w/g,(e=>e.toUpperCase()));return(0,g.jsx)("span",{className:"wkit-keyword-card",onClick:()=>{B(t),ke(y,v,e,N,c),ce(!1)},children:e})}))})]})]}),(0,g.jsxs)("div",{className:"wdkit-ai-image-color",children:[(0,g.jsx)("div",{className:"wdkit-image-color-inp-outer",children:(0,g.jsx)("input",{className:"wdkit-ai-image-color-inp",type:"color",value:u,onBlur:()=>{ke(y,v,L,N,u),re(!0),m(u)},onChange:e=>{h(e.target.value)}})}),(0,g.jsx)("span",{className:"wdkit-ai-image-color-txt",children:u})]}),(0,g.jsxs)("div",{className:"wkit-site-industry-drp "+(ie?"wkit-industry-drp-act":""),onClick:()=>{se(!ie)},children:[(0,g.jsxs)("div",{className:"wkit-site-industry-drp-head",children:[(0,g.jsx)("span",{className:"wkit-industry-drp-val "+(f?"":"wdkit-nothing-select"),children:$e(f)}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-site-industry-drp-body",children:wr.map(((e,t)=>(0,g.jsx)("span",{className:"wkit-site-industry-opt "+(e?.name==f?"wkit-selected-industry-opt":""),onClick:t=>{t.stopPropagation(),k(e.name),se(!1)},children:e.label},t)))})]})]}),(0,g.jsxs)("div",{className:"wkit-site-img-body-top",children:[(0,g.jsxs)("div",{className:"wkit-site-img-tab-drp "+(M?"wkit-img-tab-act":""),children:[(0,g.jsxs)("div",{className:"wkit-site-img-tab-drp-head",onClick:()=>{O(!M)},children:[(0,g.jsx)("span",{className:"wkit-site-img-tab-val",children:De.find((e=>e.key==C))?.label||""}),"select_img"==C&&z?.length>0&&(0,g.jsx)("span",{className:"wkit-site-image-count",children:z.length}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-site-img-tab-drp-body",children:De.map((e=>(0,g.jsxs)("span",{className:"wkit-site-img-tab-opt "+(C==e.key?"wkit-selected-tab-opt":""),onClick:()=>{"pexels"!=e.key&&"stock"!=e.key&&"lummi"!=e.key||(e=>{"stock"==e?pe.current.stock===L&&me.current.stock===y&&ue.current.stock===c||(re(!0),xe(y,v,L,N)):"lummi"==e?pe.current.lummi===L&&me.current.lummi===y&&ue.current.lummi===c||(re(!0),ye(y,v,L,N)):"pexels"==e&&(pe.current.pexels===L&&me.current.pexels===y&&ue.current.pexels===c||(re(!0),be(y,v,L,N)))})(e.key),S(e.key),O(!1)},children:[(0,g.jsx)("span",{children:e.label}),"select_img"==e.key&&z?.length>0&&(0,g.jsx)("span",{className:"wkit-site-image-count",children:z.length}),C==e.key&&(0,g.jsx)("i",{className:"wdkit-i-round-check"})]},e.key)))})]}),(0,g.jsx)("div",{className:"wkit-site-img-manu",children:(0,g.jsxs)("div",{className:`wkit-img-orient-drp ${I?"wkit-img-orient-act":""} ${"all"!==y?"wkit-img-orient-filtered":""}`,onClick:()=>{R(!I)},children:[(0,g.jsxs)("div",{className:"wkit-img-orient-drp-head",children:[(0,g.jsx)("i",{className:"wdkit-i-filter wkit-orient-drp-icon"}),(0,g.jsx)("span",{className:"wkit-orient-drp-val",children:y}),(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"==y?"wkit-selected-orient":""),onClick:()=>{x("all"),ke("all",v,L,N),re(!0)},children:(0,a.__)("All","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-img-orient-opt "+("landscape"==y?"wkit-selected-orient":""),onClick:()=>{x("landscape"),ke("landscape",v,L,N),re(!0)},children:(0,a.__)("Landscape","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-img-orient-opt "+("portrait"==y?"wkit-selected-orient":""),onClick:()=>{x("portrait"),ke("portrait",v,L,N),re(!0)},children:(0,a.__)("Portrait","wdesignkit")})]})]})})]}),(0,g.jsxs)("div",{className:"wkit-site-img-body-bottom",children:["upload_img"==C&&(0,g.jsxs)("div",{onClick:()=>{n.current||(n.current=wp.media({title:(0,a.__)("Select Images","wdesignkit"),button:{text:(0,a.__)("Use these images","wdesignkit")},multiple:!0}),n.current.on("select",(()=>{const e=n.current.state().get("selection").map((e=>{const t=e.toJSON();return{id:_e(),url:t?.url,width:t?.width,height:t?.height}}));G((t=>[...e,...t])),H((t=>[...e,...t]))}))),n.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, JPEG, WebP, AVIF| Limit: 20 MB)","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-uplopad-img-subtitle",children:(0,a.__)("PNG, JPEG, WebP, AVIF","wdesignkit")})]}),"pexels"==C&&0==Y?.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:()=>{S("upload_img")},children:(0,a.__)("Upload Your images","wdesignkit")})]}),"lummi"==C&&0==K?.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:()=>{S("upload_img")},children:(0,a.__)("Upload Your images","wdesignkit")})]}),"stock"==C&&0==U?.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:()=>{S("upload_img")},children:(0,a.__)("Upload Your images","wdesignkit")})]}),"select_img"==C&&0==z?.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")})]})]}),ne&&(0,g.jsx)(Ce,{}),(0,g.jsxs)("div",{className:"wkit-masonry-img-grid",ref:he,children:["upload_img"==C&&q.map(((e,t)=>{let a=z.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",style:{aspectRatio:`${e.width} / ${e.height}`},onClick:()=>{je(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(Se,{})}),(0,g.jsx)("div",{className:"wkit-img-ratio-box",style:{aspectRatio:`${e.width} / ${e.height}`},children:(0,g.jsx)("img",{src:e.url,width:e.width,height:e.height,loading:"lazy",draggable:"false",onLoad:e=>ge(e.currentTarget.closest(".wkit-img-grid-item"))})})]},e.id)})),"select_img"==C&&z.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-img-grid-item",style:{aspectRatio:`${e.width} / ${e.height}`},onClick:()=>{je(e)},children:[(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(Se,{})}),(0,g.jsx)("div",{className:"wkit-img-ratio-box",style:{aspectRatio:`${e.width} / ${e.height}`},children:(0,g.jsx)("img",{src:e.url,"data-preview":e.preview,width:e.width,height:e.height,loading:"lazy",draggable:"false",onLoad:e=>ge(e.currentTarget.closest(".wkit-img-grid-item")),onError:e=>{ve(e)}})}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},e.id))),"stock"==C&&U.map(((e,t)=>{let a=z.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",onClick:()=>{je(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(Se,{})}),(0,g.jsx)("div",{className:"wkit-img-ratio-box",style:{aspectRatio:`${e.width} / ${e.height}`},children:(0,g.jsx)("img",{src:e.url,"data-preview":e.preview,width:e.width,height:e.height,loading:"lazy",draggable:"false",onLoad:e=>ge(e.currentTarget.closest(".wkit-img-grid-item")),onError:e=>{ve(e)}})}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},e.id)})),"pexels"==C&&Y.map(((e,t)=>{let a=z.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",style:{aspectRatio:`${e.width} / ${e.height}`},onClick:()=>{je(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(Se,{})}),(0,g.jsx)("div",{className:"wkit-img-ratio-box",style:{aspectRatio:`${e.width} / ${e.height}`},children:(0,g.jsx)("img",{src:e.preview||e.url,srcSet:e.preview&&e.preview_2x?`${e.preview} 1x, ${e.preview_2x} 2x`:void 0,width:e.width,height:e.height,loading:"lazy",draggable:"false",onLoad:e=>ge(e.currentTarget.closest(".wkit-img-grid-item")),onError:e=>{ve(e)}})}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},e.id)})),"lummi"==C&&K.map(((e,t)=>{let a=z.findIndex((t=>t.id==e.id));return(0,g.jsxs)("div",{className:"wkit-img-grid-item",style:{aspectRatio:`${e.width} / ${e.height}`},onClick:()=>{je(e)},children:[a>-1&&(0,g.jsx)("span",{className:"wkit-img-select-svg",children:(0,g.jsx)(Se,{})}),(0,g.jsx)("div",{className:"wkit-img-ratio-box",style:{aspectRatio:`${e.width} / ${e.height}`},children:(0,g.jsx)("img",{src:e.url,width:e.width,height:e.height,loading:"lazy",draggable:"false",onLoad:e=>ge(e.currentTarget.closest(".wkit-img-grid-item")),onError:e=>{ve(e)}})}),(0,g.jsx)("span",{className:"wkit-site-img-sorce",children:e.owner})]},e.id)}))]}),(D>v&&"stock"==C||P>v&&"lummi"==C||F>v&&"pexels"==C)&&(le?(0,g.jsx)("button",{className:"wkit-btn-class wkit-load-more-btn",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-btn-class wkit-load-more-btn",onClick:()=>{oe(!0),setTimeout((()=>{j(Number(v)+20),$(N+1),ke(y,v,L,N+1,c)}),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:()=>{t.setcurrent_page("temp_feature")},children:(0,a.__)("Back","wdesignkit")}),(0,g.jsx)("button",{className:"wkit-get-site-img-next wkit-btn-class",onClick:()=>{fe()},children:(0,a.__)("Import","wdesignkit")})]})]})]})})),br=[{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}],yr=new Set,xr=e=>{if(!e||yr.has(e))return;yr.add(e);let t=document.createElement("link");t.rel="stylesheet",t.href=`https://fonts.googleapis.com/css2?family=${e}:wght@400;500&display=swap`,document.head.appendChild(t)},vr=e=>{let t=[...br];return[e?.replace,e?.original].forEach((e=>{let a=(e||"").trim();a&&!t.some((e=>e.name.toLowerCase()===a.toLowerCase()))&&t.unshift({name:a,url:a.replace(/\s+/g,"+")})})),t},jr=[{id:"instagram",name:"Instagram",match:/(^|\.)instagram\.com$/},{id:"facebook",name:"Facebook",match:/(^|\.)(facebook\.com|fb\.com|fb\.me)$/},{id:"linkedin",name:"LinkedIn",match:/(^|\.)linkedin\.com$/},{id:"x",name:"X",match:/(^|\.)(x\.com|twitter\.com|t\.co)$/},{id:"youtube",name:"YouTube",match:/(^|\.)(youtube\.com|youtu\.be)$/}],Nr=e=>{const t=(e||"").split(/[\s,;]+/),a={};return t.forEach((e=>{const t=(e=>{const t=e.replace(/[,;]+$/,"").trim();if(!t)return null;let a,i=t;try{/^[a-z][a-z\d+\-.]*:\/\//i.test(i)||(i=`https://${i}`),a=new URL(i).hostname.replace(/^www\./i,"").toLowerCase()}catch{return null}if(!/^[a-z\d]([a-z\d-]*[a-z\d])?(\.[a-z\d]([a-z\d-]*[a-z\d])?)*\.[a-z]{2,}$/.test(a))return null;const s=jr.find((e=>e.match.test(a)));return s?{key:"x"===s.id?"twitter":s.id,name:s.name,url:i}:null})(e);t&&t.key&&t.url&&(a[t.key]=t.url)})),a},$r={starter:{type:"month",limit:10},professional:{type:"day",limit:10},studio:{type:"day",limit:100},"starter-lifetime":{type:"month",limit:10},"professional-lifetime":{type:"day",limit:10},"studio-lifetime":{type:"day",limit:100},lifetime:{type:"day",limit:10},"agency-lifetime":{type:"day",limit:100},"agency-year":{type:"day",limit:100},free:{type:"month",limit:2},default:{type:"month",limit:2},tpae:{type:"month",limit:2},tpag:{type:"month",limit:2},uichemy:{type:"month",limit:2},"tpae-uichemy":{type:"month",limit:2},"tpag-uichemy":{type:"month",limit:2},"tpae-tpag":{type:"month",limit:2},"tpae-tpag-uichemy":{type:"month",limit:2}},Cr=()=>(0,g.jsx)("svg",{viewBox:"0 0 26 19",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M25.4429 9.0559L17.4407 18.1414L12.898 14.1404L8.35512 18.1414L0.353027 9.0559L4.89587 5.05485L9.87632 10.7022V2.0332H15.9196V10.7022L20.9001 5.05485L23.7966 7.59708L25.4429 9.0559Z",fill:"#C22076"})}),Sr=()=>(0,g.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:(0,g.jsx)("path",{d:"M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"})}),Dr=t=>{let i=t?.kit_data?.title?t.kit_data.title:"",n=t?.kit_template?.length>0?t.kit_template:[];var r=0,l=0,o=wdkitData.WDKIT_URL;const[d,c]=(0,e.useState)((()=>p())),m=t?.wdkit_meta?.userinfo?.user_profile||"",[u,h]=(0,e.useState)(!1),[w,_]=(0,e.useState)("desktop"),[f,k]=(0,e.useState)(!1),[b,y]=(0,e.useState)(!0),[x,v]=(0,e.useState)({title:n[0]?.title,url:n[0]?.post_url}),[j,N]=(0,e.useState)("choose"),[$,C]=(0,e.useState)(0),[S,D]=(0,e.useState)(""),[E,P]=(0,e.useState)(!1),A=(0,e.useRef)(),[F,T]=(0,e.useState)(null),[L,B]=(0,e.useState)(""),[I,R]=(0,e.useState)(""),[M,O]=(0,e.useState)(""),[V,W]=(0,e.useState)(""),[q,G]=(0,e.useState)(""),[z,H]=(0,e.useState)(""),[U,J]=(0,e.useState)(""),[K,Z]=(0,e.useState)({}),[Y,X]=(0,e.useState)(null),[Q,ee]=(0,e.useState)([]),[te,ae]=(0,e.useState)(-1),[ie,se]=(0,e.useState)(-1),[ne,re]=(0,e.useState)(""),[le,oe]=(0,e.useState)(!1),[de,ce]=(0,e.useState)(!1),[pe,me]=(0,e.useState)(!1),ue=(0,e.useRef)(null),he=(0,e.useRef)(null),ge=(0,e.useRef)(!1),we=(0,e.useRef)(null);(0,e.useEffect)((()=>()=>clearTimeout(we.current)),[]);const[_e,fe]=(0,e.useState)(""),[ke,be]=(0,e.useState)(""),[ye,xe]=(0,e.useState)(null),[ve,je]=(0,e.useState)(null),[Ne,$e]=(0,e.useState)(""),[Ce,Se]=(0,e.useState)(""),[De,Ee]=(0,e.useState)(!1),[Pe,Ae]=(0,e.useState)(""),Fe=(0,e.useRef)(""),Te=(0,e.useRef)(null),Le=(0,e.useRef)({}),[Be,Ie]=(0,e.useState)(!0),[Re,Me]=(0,e.useState)({used:0,total:0}),[Oe,Ve]=(0,e.useState)({used:0,total:0,type:"month"}),[We,qe]=(0,e.useState)(!1),Ge=(0,e.useRef)(),ze=(0,e.useRef)(),He=(0,e.useRef)(),Ue="yes"==t?.kit_data?.ai_compatible||1==t?.wdkit_meta?.userinfo?.id||4==t?.wdkit_meta?.userinfo?.id,Je=[{key:"name",type:"text",required:!0,question:(0,a.__)("Hi there! 👋 I'm so excited to help bring your vision to life. What should we call your business?","wdesignkit")},{key:"kit_q1",type:"text",required:!0,question:i?(0,a.__)("Beautiful name! Now, give me a quick description of your business so I can write words that truly fit ","wdesignkit")+i+(0,a.__)(".","wdesignkit"):(0,a.__)("Beautiful name! Now, give me a quick description of your business so I can craft content that feels just right.","wdesignkit")},{key:"tagline",type:"text",question:(0,a.__)("Do you have a tagline that captures your business in one line? I'd love to feature it.","wdesignkit")},{key:"logo",type:"logo",question:(0,a.__)("Do you have a logo? Attach an image or paste a link, or skip and I'll set up type-based branding for you.","wdesignkit")},{key:"address",type:"text",question:(0,a.__)("Where can people find you? Share your address so visitors always know right where to go.","wdesignkit")},{key:"email",type:"email",question:(0,a.__)("What's the best email for customers to reach you at?","wdesignkit")},{key:"phone",type:"phone",question:(0,a.__)("Would you like to add a phone number too, in case someone wants to call?","wdesignkit")},{key:"social",type:"social",question:(0,a.__)("Any social profiles to link — Instagram, Facebook, LinkedIn? Paste them in any order, I will work out which is which.","wdesignkit")},{key:"kit_q2",type:"text",question:(0,a.__)('One last thing. What\'s the first action you want visitors to take, maybe "Book a free demo" or "Get a quote"?',"wdesignkit")},{key:"blog_post",type:"toggle",required:!0,default:!0,question:(0,a.__)("Want me to generate a few AI blog posts for your new site too?","wdesignkit")},...Ue?[{key:"wireframe",type:"toggle",required:!0,default:!1,question:(0,a.__)("Should I import using placeholder images for now instead of the kit's real photos? You can always swap them in later.","wdesignkit")}]:[],{key:"language",type:"language",question:(0,a.__)("And finally, which language should I write your content in?","wdesignkit")}],Ke={name:(0,a.__)("Business name","wdesignkit"),kit_q1:(0,a.__)("Description","wdesignkit"),tagline:(0,a.__)("Tagline","wdesignkit"),address:(0,a.__)("Address","wdesignkit"),email:(0,a.__)("Email","wdesignkit"),phone:(0,a.__)("Phone","wdesignkit"),social:(0,a.__)("Social","wdesignkit"),kit_q2:(0,a.__)("First action","wdesignkit"),blog_post:(0,a.__)("AI blog posts","wdesignkit"),wireframe:(0,a.__)("Placeholder images","wdesignkit"),language:(0,a.__)("Language","wdesignkit")},Ze=(e,t)=>"toggle"==e.type?t?(0,a.__)("Yes","wdesignkit"):(0,a.__)("No","wdesignkit"):t;(0,e.useEffect)((()=>{const e=e=>{"wdkit-login"===e.key&&c(p())};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[]),(0,e.useEffect)((()=>()=>clearTimeout(A.current)),[]),(0,e.useEffect)((()=>{let e=t?.site_obj;if(!e?.images_from_chat||!e?.site_info?.site_name)return;let i=e.site_info;B(i.site_name||""),R(i.tagline||""),W(i.address||""),G(i.email||""),H(i.phone||""),O(i.logo?.default||""),i.social_links&&Object.keys(i.social_links).length>0&&(Z(i.social_links),J(Object.values(i.social_links).join(" ")));let s=Array.isArray(e.site_description)&&e.site_description[0]||"",n=(0,a.__)("Primary call to action: ","wdesignkit"),r=s.indexOf("\n\n"+n);r>-1?(fe(s.slice(0,r)),be(s.slice(r+n.length+2))):fe(s),e.site_lang&&Se(e.site_lang),void 0!==e.blog_post&&xe(e.blog_post),void 0!==e.wirefram_import&&je(e.wirefram_import),e.kit_global&&X(JSON.parse(JSON.stringify(e.kit_global))),N("ai"),C(Je.length+1),ce(!0),me(!0)}),[]),(0,e.useEffect)((()=>{t?.global_data?.color?.length>0&&X(JSON.parse(JSON.stringify(t.global_data)))}),[t?.global_data]),(0,e.useEffect)((()=>{t?.site_obj?.font_family?.length>0&&ee(JSON.parse(JSON.stringify(t.site_obj.font_family)))}),[t?.site_obj?.font_family]),(0,e.useEffect)((()=>{de&&(br.forEach((e=>xr(e.url))),Q.forEach((e=>vr(e).forEach((e=>xr(e.url))))))}),[de,Q]);const Ye="yes"===t?.kit_data?.color_palette,Xe=(()=>{if(!Ye)return[];const e=(t?.kit_data?.color_palette_id?String(t.kit_data.color_palette_id):"").split(",").map((e=>e.trim()));return Xn.filter((t=>!e.includes(String(t.id))))})(),Qe=(e=Y,a=Q)=>{if(!he.current||!ge.current)return;let i="",s=[];if((e?.color?.length>0||e?.typo?.length>0)&&(i+="body {",e.color?.forEach((e=>{const a=e.new_color||("elementor"===t?.kit_builder?e.color:e.value);"elementor"===t?.kit_builder?i+=`--e-global-color-${e._id}: ${a} !important;`:"gutenberg"===t?.kit_builder&&(i+=`--tpgb-C${e.id+1}: ${a} !important;`)})),a?.forEach((a=>{"elementor"===t?.kit_builder&&e?.typo?.length>0?e.typo.forEach((e=>{a.original===e?.typography_font_family&&(a.url&&s.push(a.url),i+=`--e-global-typography-${e._id}-font-family: ${a.replace} !important;`)})):"gutenberg"===t?.kit_builder&&e.typo?.forEach((e=>{const t=e.value?.fontFamily?.family||"";a.original===t&&(a.url&&s.push(a.url),i+=`--tpgb-T${e.id+1}-font-family: ${a.replace} !important;`)}))})),i+="}"),i)try{he.current.contentWindow.postMessage({type:"inject-css",css:i,font_family:s},"*")}catch(e){}},et=(e="all")=>{if(("all"===e||"color"===e)&&(ae(-1),t?.global_data?.color)){const e=t.global_data.color.map((e=>({...e,new_color:"elementor"===t?.kit_builder?e.color:e.value}))),a={...Y||{},color:e};X(a),Qe(a,Q)}if(("all"===e||"typo"===e)&&t?.site_obj?.font_family){const e=t.site_obj.font_family.map((e=>({...e,replace:e.original})));ee(e),Qe(Y,e)}"all"===e&&oe(!1)};(0,e.useEffect)((()=>{h(!1)}),[m]),(0,e.useEffect)((()=>{"ai"==j&&d?.token?(async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wdkit_check_user_credit"),e.append("token",d?.token);let a=await s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1));if(a?.success){let e=a?.data?.credits?a.data.credits:{};Me({used:e?.total_used_credits?e.total_used_credits:0,total:e?.total_credits?e.total_credits:0});let i=t?.wdkit_meta?.credits?.ai_template_site_limit?.meta_type?t.wdkit_meta.credits.ai_template_site_limit.meta_type:"",s=$r?.[i]?$r[i]:$r.default;Ve({used:e?.template_site_limit?e.template_site_limit:0,total:s?.limit?s.limit:2,type:s?.type?s.type:"month"})}Ie(!1)})():Ie(!1)}),[j,d?.token]),(0,e.useEffect)((()=>{let e=ze.current;e&&(e.scrollTop=e.scrollHeight)}),[$,j,E]),(0,e.useEffect)((()=>{let e=He.current;e&&(e.style.height="auto",e.focus())}),[$,j,F,E]),(0,e.useEffect)((()=>{let e=He.current;e&&(e.style.height="auto",e.style.height=Math.min(e.scrollHeight,320)+"px")}),[S]),(0,e.useEffect)((()=>{if(!De)return Fe.current="",void Ae("");const e=e=>{if(1!=e.key.length)return;Fe.current+=e.key.toLowerCase(),clearTimeout(Te.current),Te.current=setTimeout((()=>{Fe.current=""}),800);const t=gr.find((e=>e.label.toLowerCase().startsWith(Fe.current)));t&&(Ae(t.name),Le.current[t.name]?.scrollIntoView({block:"nearest"}))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[De]),(0,e.useEffect)((()=>{const e=e=>{!e.target.closest(".wkit-site-lang-drp")&&De&&Ee(!1)};return window.addEventListener("click",e),()=>window.removeEventListener("click",e)}),[De]);const tt=e=>"name"==e?L:"tagline"==e?I:"logo"==e?M:"address"==e?V:"email"==e?q:"phone"==e?z:"social"==e?U:"kit_q1"==e?_e:"kit_q2"==e?ke:"language"==e?Ce:"blog_post"==e?ye:"wireframe"==e?ve:"",at=(e,t)=>{"name"==e?B(t):"tagline"==e?R(t):"address"==e?W(t):"email"==e?G(t):"phone"==e?H(t):"social"==e?(J(t),Z(Nr(t))):"kit_q1"==e?fe(t):"kit_q2"==e?be(t):"logo"==e?O(t):"language"==e?Se(t):"blog_post"==e?xe(t):"wireframe"==e&&je(t)},it=(e,t)=>{at(e,t),$e(""),F?T(null):ot()},st=()=>{let e=(d?.user_email||"").split("@")[0]||"",t=e.split(/[._-]+/).filter(Boolean);return t.length>1?(t[0].charAt(0)+t[1].charAt(0)).toUpperCase():e.slice(0,2).toUpperCase()},nt=e=>"email"==e.type?(0,a.__)("E.g. admin@gmail.com","wdesignkit"):"phone"==e.type?(0,a.__)("E.g. +1 (213) 449-4470","wdesignkit"):"social"==e.type||"social"==e.key?(0,a.__)("Paste one or more profile links","wdesignkit"):"logo"==e.type?(0,a.__)("Attach an image, or paste a link","wdesignkit"):"language"==e.type?(0,a.__)("Pick from the list, or type a language","wdesignkit"):"name"==e.key?(0,a.__)("E.g. Bright Bakery Co.","wdesignkit"):"kit_q1"==e.key?(0,a.__)("E.g. We craft handmade pastries daily using organic ingredients.","wdesignkit"):"tagline"==e.key?(0,a.__)("E.g. Baked fresh, made with love","wdesignkit"):"address"==e.key?(0,a.__)("E.g. 221B Baker Street, London","wdesignkit"):"kit_q2"==e.key?(0,a.__)("E.g. Book a free demo","wdesignkit"):(0,a.__)("Type your answer…","wdesignkit"),rt=()=>({site_name:L.trim(),tagline:I.trim(),address:V.trim(),email:q.trim(),phone:z.trim(),logo:M?{default:M}:"",social_links:K}),lt=()=>{let e=_e.trim();return ke.trim()&&(e=(e?e+"\n\n":"")+(0,a.__)("Primary call to action: ","wdesignkit")+ke.trim()),e?[e]:[]},ot=()=>{P(!0),A.current=setTimeout((()=>{P(!1),C((e=>e+1))}),700)},dt=()=>{let e=F?Je.find((e=>e.key==F)):Je[$];if(!e)return;let t=S.trim();if(!e.required||t)if(!t||"email"!=e.type||hn(t))if(!t||"phone"!=e.type||(e=>/^[0-9+\-\s()]{6,}$/.test(e.trim()))(t)){if(t&&"social"==e.type){let e=Nr(t);if(0===Object.keys(e).length)return void $e((0,a.__)("Hmm, I couldn’t find any valid social profile links. Paste links like instagram.com/name or feel free to skip.","wdesignkit"))}!t||"logo"!=e.type||(e=>{try{return["http:","https:"].includes(new URL(e.trim()).protocol)}catch{return!1}})(t)?(at(e.key,t),D(""),$e(""),F?T(null):ot()):$e((0,a.__)("Hmm, that link doesn’t look right. Give it another try, or attach a file instead.","wdesignkit"))}else $e((0,a.__)("Hmm, that number doesn’t look right. Give it another try, or feel free to skip.","wdesignkit"));else $e((0,a.__)("Hmm, that email doesn’t look right. Give it another try, or feel free to skip.","wdesignkit"))},ct=()=>{D(""),$e(""),ot()},pt=()=>{let e=`${window.location.origin}${window.location.pathname}${window.location.search}#/login`;window.open(e,"_blank","noopener,noreferrer")},mt=()=>d?.token?null:(0,g.jsxs)("div",{className:"wkit-import-start-login-bar",children:[(0,g.jsxs)("div",{className:"wkit-import-start-login-txt",children:[(0,g.jsx)("i",{className:"wdkit-i-user"}),(0,g.jsx)("span",{children:(0,a.__)("Log in to save your progress and use AI credits.","wdesignkit")})]}),(0,g.jsx)("span",{className:"wkit-import-start-login-btn",onClick:()=>{pt()},children:(0,a.__)("Login","wdesignkit")})]}),ut=e=>{d?.token&&("ai"==e?(N("ai"),C(-1),ot()):N("dummy"))},ht=e=>{if(0===e.clientX)return;const t=e.clientX-r,a=Math.max(360,l+t);e.target.previousElementSibling.style.width=`${a}px`};return(0,g.jsxs)("div",{className:"wkit-ai-import-main",onClick:()=>{f&&k(!1)},children:[(0,g.jsxs)("div",{className:"wkit-temp-preview-header",children:[(0,g.jsx)(yi,{}),(0,g.jsxs)("div",{className:"wkit-drp-section",children:[(0,g.jsxs)("div",{className:"wkit-page-drp",children:[(0,g.jsxs)("div",{className:"wkit-page-drp-header",onClick:()=>{k(!f)},children:[(0,g.jsx)("span",{children:x?.title}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),f&&(0,g.jsx)("div",{className:"wkit-page-drp-body",children:n.map(((e,t)=>(0,g.jsxs)("span",{className:"wkit-page-drp-opt "+(x?.url==e?.post_url?"wkit-page-drp-act":""),onClick:()=>{v({title:e?.title,url:e?.post_url}),y(!0),k(!1)},children:[(0,g.jsx)("span",{className:"wkit-page-drp-opt-txt",children:e?.title}),x?.url==e?.post_url&&(0,g.jsx)("i",{className:"wdkit-i-round-check"})]},t)))})]}),(0,g.jsxs)("div",{className:"wkit-temp-responsive",children:[(0,g.jsx)("div",{className:"wkit-responsive-icon "+("desktop"==w?"wkit-responsive-active":""),onClick:()=>{_("desktop")},children:(0,g.jsx)("i",{className:"wdkit-i-computer"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("tablet"==w?"wkit-responsive-active":""),onClick:()=>{_("tablet")},children:(0,g.jsx)("i",{className:"wdkit-i-tablet"})}),(0,g.jsx)("div",{className:"wkit-responsive-icon "+("mobile"==w?"wkit-responsive-active":""),onClick:()=>{_("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",children:[(0,g.jsxs)("div",{className:"wkit-preview-editor-header",children:[(0,g.jsxs)("span",{className:"wkit-editor-temp-title",children:["choose"==j&&(0,a.__)("Import Method","wdesignkit"),"dummy"==j&&(0,a.__)("Site Info","wdesignkit"),"ai"==j&&(0,a.__)("Smart AI Content","wdesignkit")]}),i&&(0,g.jsx)("span",{className:"wkit-editor-temp-subtitle",children:i})]}),(0,g.jsxs)("div",{className:"wkit-preview-editor-body",children:["choose"==j&&(()=>{let e=!!d?.token,s=t?.wdkit_meta?.userinfo?.id,n="yes"==t?.kit_data?.ai_compatible||1==s||4==s,r=(0,g.jsxs)("div",{className:"wkit-import-start-option wkit-import-start-option-ai "+(n?"wkit-import-start-option-featured":"wkit-import-start-option-disabled"),onClick:()=>{n&&ut("ai")},children:[(0,g.jsx)("span",{className:"wkit-import-start-option-icon wkit-import-start-option-icon-ai",children:(0,g.jsx)("i",{className:"wdkit-i-ai"})}),(0,g.jsxs)("div",{className:"wkit-import-start-option-txt",children:[(0,g.jsx)("span",{className:"wkit-import-start-option-title",children:(0,a.__)("Smart AI Content","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-start-option-desc",children:(0,a.__)("Use client inputs to draft on‑brand website copy and sections using AI.","wdesignkit")})]}),!n&&(0,g.jsx)("span",{className:"wkit-import-start-option-soon-tag",children:(0,a.__)("Coming Soon","wdesignkit")}),n&&!e&&(0,g.jsx)("span",{className:"wkit-import-start-option-lock",title:(0,a.__)("Login required","wdesignkit"),children:(0,g.jsx)("i",{className:"wdkit-i-lock"})}),n&&(0,g.jsx)("span",{className:"wkit-import-start-option-arrow-cover wkit-import-start-option-arrow-cover-ai",children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow wkit-import-start-option-arrow"})})]}),l=(0,g.jsxs)("div",{className:"wkit-import-start-option",onClick:()=>{ut("dummy")},children:[(0,g.jsx)("span",{className:"wkit-import-start-option-icon",children:(0,g.jsx)("i",{className:"wdkit-i-templates"})}),(0,g.jsxs)("div",{className:"wkit-import-start-option-txt",children:[(0,g.jsx)("span",{className:"wkit-import-start-option-title",children:(0,a.__)("Import Dummy Content","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-start-option-desc",children:(0,a.__)("Adds sample pages and media matching the selected demo preview.","wdesignkit")})]}),!e&&(0,g.jsx)("span",{className:"wkit-import-start-option-lock",title:(0,a.__)("Login required","wdesignkit"),children:(0,g.jsx)("i",{className:"wdkit-i-lock"})}),(0,g.jsx)("span",{className:"wkit-import-start-option-arrow-cover",children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow wkit-import-start-option-arrow"})})]});return(0,g.jsxs)("div",{className:"wkit-import-start-body",children:[(0,g.jsx)("span",{className:"wkit-import-start-lead",children:(0,a.__)("Pick a starting point, you can fine‑tune content and media in the next steps.","wdesignkit")}),!e&&(0,g.jsxs)("div",{className:"wkit-import-start-gate",children:[(0,g.jsx)("span",{className:"wkit-import-start-gate-icon",children:(0,g.jsx)("i",{className:"wdkit-i-lock"})}),(0,g.jsx)("span",{className:"wkit-import-start-gate-title",children:(0,a.__)("Sign Up to Continue","wdesignkit")}),(0,g.jsxs)("span",{className:"wkit-import-start-gate-desc",children:[(0,a.__)("Create your free account to import ","wdesignkit"),i&&(0,g.jsx)("strong",{children:i}),(0,a.__)(" pick Dummy or Smart AI content once you're in.","wdesignkit")]}),(0,g.jsxs)("button",{className:"wkit-btn-class wkit-import-start-gate-cta",onClick:()=>{pt()},children:[(0,a.__)("Sign Up & Continue","wdesignkit"),(0,g.jsx)("i",{className:"wdkit-i-right-arrow"})]})]}),(0,g.jsx)("div",{className:"wkit-import-start-options "+(e?"":"wkit-import-start-options-gated"),children:n?(0,g.jsxs)(g.Fragment,{children:[r,l]}):(0,g.jsxs)(g.Fragment,{children:[l,r]})})]})})(),"dummy"==j&&(0,g.jsxs)("div",{className:"wkit-import-start-body",children:[(0,g.jsx)("span",{className:"wkit-import-start-lead",children:(0,a.__)("Just the basics for now. You can always add the rest from your site later.","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-temp-site-name",children:[(0,g.jsxs)("div",{children:[(0,g.jsx)("label",{className:"wkit-site-name-label",children:(0,a.__)("Business Name","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-site-label-required",children:"*"})]}),(0,g.jsx)("input",{className:"wkit-site-name-inp",type:"text",value:L,onChange:e=>{B(e.target.value)},placeholder:(0,a.__)("E.g. Apple Inc.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-temp-site-tagline",children:[(0,g.jsx)("label",{className:"wkit-site-tagline-label",children:(0,a.__)("Business Tagline","wdesignkit")}),(0,g.jsx)("input",{className:"wkit-site-tagline-inp",type:"text",value:I,onChange:e=>{R(e.target.value)},placeholder:(0,a.__)("E.g. Think Different","wdesignkit")})]}),mt()]}),"ai"==j&&(()=>{let e=$>=Je.length,n=F?Je.find((e=>e.key==F)):null,r=n||(e?null:Je[$]);return(0,g.jsxs)("div",{className:"wkit-import-start-chat",children:[(0,g.jsx)("div",{className:"wkit-import-start-chat-sticky",children:!Be&&(0,g.jsxs)("div",{className:"wkit-import-start-usage",children:[(0,g.jsxs)("span",{className:"wkit-import-start-usage-chip",children:[(0,g.jsx)("span",{className:"wkit-credit-tooltip-txt",children:(0,a.__)("Credits used for AI content and image generation during the import process. On average, one page consumes ~20 credits, though usage may vary by template.","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-credit"}),Re.used," / ",Re.total||"—"]}),(0,g.jsxs)("span",{className:"wkit-import-start-usage-chip",children:[(0,g.jsx)("span",{className:"wkit-credit-tooltip-txt",children:"day"==Oe.type?(0,a.__)("Your AI smart content import quota. Limits reset daily based on your plan. Check the pricing page for details.","wdesignkit"):(0,a.__)("Your AI smart content import quota. Limits reset monthly based on your plan. Check the pricing page for details.","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-credit-meter"}),Oe.used," / ",Oe.total||"—"]})]})}),(0,g.jsxs)("div",{className:"wkit-import-start-messages",ref:ze,children:[Je.slice(0,Math.min($+1,Je.length)).map(((e,t)=>{let i=t<$||t==$&&E,s=i?tt(e.key):"";return(0,g.jsxs)("div",{className:"wkit-import-start-msg-pair",children:[(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-ai",children:[(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-ai",children:(0,g.jsx)(Cr,{})}),(0,g.jsx)("div",{className:"wkit-import-start-msg wkit-import-start-msg-ai",children:(0,g.jsx)("span",{className:"wp-exclude-emoji",children:e.question})})]}),i&&(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-user",children:[("toggle"==e.type?null!==s:s)&&"logo"!=e.type&&(0,g.jsx)("span",{className:"wkit-import-start-msg-action",title:(0,a.__)("Edit","wdesignkit"),onClick:()=>{T(e.key),"toggle"!=e.type&&D(s),$e("")},children:(0,g.jsx)("i",{className:"wdkit-i-wb-edit"})}),(0,g.jsx)("div",{className:"wkit-import-start-msg wkit-import-start-msg-user",children:(0,g.jsx)("span",{children:"toggle"==e.type?null===s?(0,a.__)("Skipped","wdesignkit"):s?(0,a.__)("Yes","wdesignkit"):(0,a.__)("No","wdesignkit"):s?"logo"==e.type?(0,a.__)("Logo uploaded ✓","wdesignkit"):s:(0,a.__)("Skipped","wdesignkit")})}),(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-user "+(m&&!u?"wkit-import-start-avatar-has-img":""),children:m&&!u?(0,g.jsx)("img",{src:m,width:"26",height:"26",alt:"",onError:()=>{h(!0)}}):d?.user_email?st():(0,g.jsx)("i",{className:"wdkit-i-user"})})]})]},e.key)})),E&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-ai",children:[(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-ai",children:(0,g.jsx)(Cr,{})}),(0,g.jsxs)("div",{className:"wkit-import-start-msg wkit-import-start-msg-ai wkit-import-start-msg-typing",children:[(0,g.jsx)("span",{className:"wkit-import-start-typing-dot"}),(0,g.jsx)("span",{className:"wkit-import-start-typing-dot"}),(0,g.jsx)("span",{className:"wkit-import-start-typing-dot"})]})]})}),e&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-ai",children:[(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-ai",children:(0,g.jsx)(Cr,{})}),(0,g.jsxs)("div",{className:"wkit-import-start-msg wkit-import-start-msg-ai wkit-import-start-msg-review",children:[(0,g.jsx)("span",{children:i?(0,a.sprintf)(/* translators: 1: business or site name, 2: template kit name, 3: content language. */ /* translators: 1: business or site name, 2: template kit name, 3: content language. */ (0,a.__)("That's everything I need for %1$s. I'll prepare %2$s in %3$s.","wdesignkit"),L.trim()||(0,a.__)("your site","wdesignkit"),i,Ce.trim()||(0,a.__)("English","wdesignkit")):(0,a.sprintf)(/* translators: 1: business or site name, 2: content language. */ /* translators: 1: business or site name, 2: content language. */ (0,a.__)("That's everything I need for %1$s. I'll prepare your kit in %2$s.","wdesignkit"),L.trim()||(0,a.__)("your site","wdesignkit"),Ce.trim()||(0,a.__)("English","wdesignkit"))}),(0,g.jsx)("dl",{className:"wkit-import-start-review-list",children:Je.filter((e=>"logo"!=e.key&&tt(e.key))).map((e=>(0,g.jsxs)("div",{className:"wkit-import-start-review-row",children:[(0,g.jsx)("dt",{children:Ke[e.key]||e.key}),(0,g.jsx)("dd",{children:Ze(e,tt(e.key))})]},e.key)))})]})]})}),e&&!de&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsx)("div",{className:"wkit-import-start-style-cta",children:(0,g.jsx)("button",{type:"button",className:"wkit-btn-class wkit-import-start-style-cta-btn",onClick:()=>ce(!0),children:(0,a.__)("Choose colours & fonts","wdesignkit")})})}),e&&de&&!pe&&(0,g.jsxs)("div",{className:"wkit-import-start-msg-pair",children:[(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-ai",children:[(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-ai",children:(0,g.jsx)(Cr,{})}),(0,g.jsx)("div",{className:"wkit-import-start-msg wkit-import-start-msg-ai",children:(0,g.jsx)("span",{children:(0,a.__)("These are the kit’s colours and fonts. Change any of them, or leave them as the designer set them.","wdesignkit")})})]}),(0,g.jsxs)("div",{className:"wkit-ai-style-container",children:[Ye&&Xe?.length>0&&(0,g.jsxs)("div",{className:"wdkit-ai-ws-style-group",children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-style-head",children:(0,a.__)("Palettes","wdesignkit")}),(0,g.jsx)("div",{className:"wdkit-ai-ws-palette-row",children:Xe.map((e=>(0,g.jsxs)("span",{role:"button",tabIndex:0,"aria-pressed":te===e.id,title:te===e.id?(0,a.__)("Selected — click to remove","wdesignkit"):`Palette ${e.id}`,onClick:()=>(e=>{if(te===e)return void et("color");ae(e),oe(!0);const a=Xe.find((t=>t.id===e));if(!a||!Y?.color)return;const i=a.colors,s=Y.color.map((e=>{const a=("elementor"===t?.kit_builder?e.title:e.label)?.trim();return i&&i[a]?{...e,new_color:i[a]}:e})),n={...Y,color:s};X(n),Qe(n,Q)})(e.id),className:"wdkit-ai-ws-palette "+(te===e.id?"is-picked":""),children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-palette-dots",children:["Primary","Secondary","Accent"].map((t=>(0,g.jsx)("em",{style:{background:e.colors[t]}},t)))}),te===e.id&&(0,g.jsx)("i",{className:"wdkit-i-round-check wdkit-ai-ws-palette-check"})]},e.id)))})]}),Q?.length>0&&(0,g.jsxs)("div",{className:"wdkit-ai-ws-style-group",children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-style-head",children:(0,a.__)("Fonts","wdesignkit")}),(0,g.jsx)("div",{className:"wdkit-ai-ws-font-row",children:Q.map(((e,t)=>(0,g.jsxs)("span",{className:"wdkit-ai-ws-font-cell "+(ie===t?"is-open":""),children:[(0,g.jsxs)("span",{role:"button",tabIndex:0,"aria-expanded":ie===t,title:e.original===e.replace?e.original:`${e.original} → ${e.replace}`,onClick:()=>{se(ie===t?-1:t),re("")},className:`wdkit-ai-ws-font-btn ${e.replace!==e.original?"is-changed":""} ${ie===t?"is-open":""}`,children:[(0,g.jsx)("em",{style:{fontFamily:e.replace},children:"Ag"}),(0,g.jsx)("small",{style:{fontFamily:e.replace},children:e.replace}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow wdkit-ai-ws-font-chevron"})]}),ie===t&&(0,g.jsxs)("span",{className:"wdkit-ai-ws-font-menu",children:[(0,g.jsx)("input",{type:"text",value:ne,autoFocus:!0,onChange:e=>re(e.target.value),placeholder:(0,a.__)("Search fonts","wdesignkit"),"aria-label":(0,a.__)("Search fonts","wdesignkit"),className:"wdkit-ai-ws-font-search",onClick:e=>e.stopPropagation()}),(0,g.jsx)("span",{className:"wdkit-ai-ws-font-list",children:(()=>{const i=vr(e).filter((e=>e.name.toLowerCase().includes(ne.trim().toLowerCase())));return 0===i.length?(0,g.jsxs)("div",{className:"wdkit-not-found-icons-container",children:[(0,g.jsx)("img",{className:"wdkit-not-found-icons",src:o+"assets/images/jpg/not-found-bell.gif",alt:"not found",draggable:!1}),(0,g.jsx)("h4",{children:(0,a.__)("No Search Found","wdesignkit")})]}):i.map((a=>(0,g.jsxs)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),((e,t)=>{se(-1),re(""),oe(!0);const a=Q.map(((a,i)=>i===e?{...a,replace:t.name,url:t.url}:a));ee(a),Qe(Y,a)})(t,a)},className:"wdkit-ai-ws-font-option "+(a.name===e.replace?"is-picked":""),children:[(0,g.jsx)("em",{style:{fontFamily:a.name},children:"Ag"}),(0,g.jsx)("small",{style:{fontFamily:a.name},children:a.name}),a.name===e.replace&&(0,g.jsx)("i",{className:"wdkit-i-round-check"})]},a.name)))})()})]})]},e.original||t)))})]}),!Ye&&Y?.color?.length>0&&(0,g.jsxs)("div",{className:"wdkit-ai-ws-style-group",children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-style-head",children:(0,a.__)("Colours","wdesignkit")}),(0,g.jsx)("div",{className:"wdkit-ai-ws-color-row",children:Y.color.map(((e,a)=>{const i="elementor"===t?.kit_builder?e.color:e.value,s=e.new_color||i||"#000000",n="elementor"===t?.kit_builder?e.title:e.label;return(0,g.jsxs)("label",{title:n,className:"wdkit-ai-ws-color-cell "+(e.new_color&&e.new_color!==i?"is-changed":""),children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-color-swatch",children:(0,g.jsx)("input",{type:"color",value:/^#[0-9a-f]{6}$/i.test(s)?s:"#000000",onChange:e=>((e,t)=>{oe(!0);const a=Y.color.map(((a,i)=>i===e?{...a,new_color:t}:a)),i={...Y,color:a};X(i),Qe(i,Q)})(a,e.target.value)})}),(0,g.jsx)("small",{children:s})]},e._id||e.id||a)}))})]})]})]}),e&&de&&pe&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-user wdkit-ai-ws-style-summary-row",children:[(0,g.jsx)("span",{className:"wkit-import-start-msg-action",title:(0,a.__)("Edit","wdesignkit"),onClick:()=>me(!1),children:(0,g.jsx)("i",{className:"wdkit-i-wb-edit"})}),(0,g.jsxs)("div",{className:"wkit-import-start-msg wkit-import-start-msg-user wdkit-ai-ws-style-summary",children:[(0,g.jsx)("span",{className:"wdkit-ai-ws-style-summary-title",children:le?(0,a.__)("Colours & fonts selected ✓","wdesignkit"):(0,a.__)("Kept the kit’s own colours & fonts","wdesignkit")}),(()=>{const e=-1!==te?Xe?.find((e=>e.id===te)):null;return e?(0,g.jsx)("span",{className:"wdkit-ai-ws-style-summary-swatches",children:["Primary","Secondary","Accent"].map((t=>(0,g.jsx)("em",{title:t,style:{background:e.colors[t]}},t)))}):Y?.color?.length>0?(0,g.jsx)("span",{className:"wdkit-ai-ws-style-summary-swatches",children:Y.color.map(((e,a)=>{const i="elementor"===t?.kit_builder?e.color:e.value,s=e.new_color||i||"#000000",n="elementor"===t?.kit_builder?e.title:e.label;return(0,g.jsx)("em",{title:n,style:{background:s}},e._id||e.id||a)}))}):null})(),Q?.length>0&&(0,g.jsx)("span",{className:"wdkit-ai-ws-style-summary-fonts",children:Q.map(((e,t)=>(0,g.jsxs)("span",{className:"wdkit-ai-ws-style-summary-font",title:e.replace,children:[(0,g.jsx)("em",{style:{fontFamily:e.replace},children:"Ag"}),(0,g.jsx)("small",{children:e.replace})]},e.original||t)))})]}),(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-user "+(m&&!u?"wkit-import-start-avatar-has-img":""),children:m&&!u?(0,g.jsx)("img",{src:m,width:"26",height:"26",alt:"",onError:()=>{h(!0)}}):d?.user_email?st():(0,g.jsx)("i",{className:"wdkit-i-user"})})]})}),e&&de&&pe&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsxs)("div",{className:"wkit-import-start-msg-row wkit-import-start-msg-row-ai",children:[(0,g.jsx)("span",{className:"wkit-import-start-avatar wkit-import-start-avatar-ai",children:(0,g.jsx)(Cr,{})}),(0,g.jsx)("div",{className:"wkit-import-start-msg wkit-import-start-msg-ai",children:(0,g.jsx)("span",{children:(0,a.__)("Now pick the images for your site - choose from the library, or upload your own.","wdesignkit")})})]})}),e&&de&&pe&&(0,g.jsx)("div",{className:"wkit-import-start-msg-pair",children:(0,g.jsx)("div",{className:"wkit-import-start-images-embed",children:(0,g.jsx)(kr,{ref:ue,import_type:"ai_import",setimport_type:()=>{},wdkit_meta:t.wdkit_meta,site_obj:{site_info:rt(),site_description:lt(),site_lang:Ce.trim()||"english",kit_global:Y,wirefram_import:!1,images:t?.site_obj?.images},setsite_obj:e=>{t.on_select("ai_import",rt(),e&&e.site_lang||Ce.trim()||"english",e&&Array.isArray(e.site_description)?e.site_description:lt(),null===ye||ye,null!==ve&&ve,Y,Q,e||void 0)},setcurrent_page:e=>{"temp_feature"===e&&me(!1)}})})})]}),(n||!e)&&!E&&r&&"logo"==r.type&&(0,g.jsxs)("div",{className:"wkit-import-start-composer",children:[(0,g.jsxs)("div",{className:"wkit-import-start-composer-row wkit-import-start-logo-row "+(Ne?"wkit-import-start-composer-row-err":""),children:[(0,g.jsx)("textarea",{ref:He,className:"wkit-import-start-composer-inp",rows:1,value:S,onChange:e=>{D(e.target.value),$e("")},onKeyDown:e=>{"Enter"!=e.key||e.shiftKey||(e.preventDefault(),dt())},placeholder:nt(r)}),(0,g.jsxs)("div",{className:"wkit-import-start-logo-actions",children:[!r.required&&(0,g.jsx)("span",{className:"wkit-import-start-skip-btn wkit-import-start-skip-btn-inline",onClick:()=>{ct()},children:(0,a.__)("Skip","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-start-attach-btn",title:(0,a.__)("Attach logo","wdesignkit"),onClick:()=>{Ge.current||(Ge.current=wp.media({title:(0,a.__)("Select Logo","wdesignkit"),button:{text:(0,a.__)("Use this image","wdesignkit")},multiple:!1}),Ge.current.on("select",(()=>{const e=Ge.current.state().get("selection").first().toJSON();e?.url&&(O(e.url),ot())}))),Ge.current.open()},children:(0,g.jsx)(Sr,{})}),(0,g.jsx)("span",{className:"wkit-import-start-send-btn "+(S.trim()?"":"wkit-import-start-send-btn-disabled"),title:(0,a.__)("Send","wdesignkit"),onClick:()=>{S.trim()&&dt()},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"})})]})]}),Ne&&(0,g.jsx)("div",{className:"wkit-import-start-composer-foot",children:(0,g.jsx)("div",{className:"wkit-import-start-composer-foot-left",children:(0,g.jsx)("span",{className:"wkit-import-start-field-error",children:Ne})})})]}),(n||!e)&&!E&&r&&"toggle"==r.type&&(0,g.jsxs)("div",{className:"wkit-import-start-composer",children:[(0,g.jsxs)("div",{className:"wkit-import-start-toggle-composer",children:[(0,g.jsx)("button",{type:"button",className:"wkit-import-start-toggle-btn "+(!0===tt(r.key)?"wkit-import-start-toggle-btn-active":""),onClick:()=>{it(r.key,!0)},children:(0,a.__)("Yes","wdesignkit")}),(0,g.jsx)("button",{type:"button",className:"wkit-import-start-toggle-btn "+(!1===tt(r.key)?"wkit-import-start-toggle-btn-active":""),onClick:()=>{it(r.key,!1)},children:(0,a.__)("No","wdesignkit")})]}),n&&(0,g.jsxs)("div",{className:"wkit-import-start-composer-foot",children:[(0,g.jsx)("div",{className:"wkit-import-start-composer-foot-left"}),(0,g.jsx)("div",{className:"wkit-import-start-composer-foot-right",children:(0,g.jsx)("span",{className:"wkit-import-start-skip-btn",onClick:()=>{T(null),$e("")},children:(0,a.__)("Cancel","wdesignkit")})})]})]}),(n||!e)&&!E&&r&&"logo"!=r.type&&"toggle"!=r.type&&(0,g.jsxs)("div",{className:"wkit-import-start-composer",children:["language"==r.type&&(0,g.jsxs)("div",{className:"wkit-site-lang-drp "+(De?"wkit-lang-drp-act":""),onClick:()=>{Ee(!De)},children:[(0,g.jsxs)("div",{className:"wkit-site-lang-drp-head",children:[(0,g.jsx)("span",{className:"wkit-lang-drp-val",children:gr.find((e=>e.label.toLowerCase()==S.trim().toLowerCase()))?.label||S||(0,a.__)("Select a language","wdesignkit")}),(0,g.jsx)("i",{className:"wdkit-i-down-arrow"})]}),(0,g.jsx)("div",{className:"wkit-site-lang-drp-body",children:gr.map(((e,t)=>(0,g.jsxs)("span",{ref:t=>{Le.current[e.name]=t},className:`wkit-site-lang-opt ${e.label.toLowerCase()==S.trim().toLowerCase()?"wkit-selected-lang-opt":""} ${e?.name==Pe?"wkit-lang-typeahead-match":""}`,onClick:t=>{var a;t.stopPropagation(),a=e.label,D(a),$e(""),Ee(!1)},children:[e.label,e.native&&(0,g.jsx)("span",{className:"wkit-site-lang-native",children:e.native})]},t)))})]}),(0,g.jsxs)("div",{className:"wkit-import-start-composer-row "+(Ne?"wkit-import-start-composer-row-err":""),children:[(0,g.jsx)("textarea",{ref:He,className:"wkit-import-start-composer-inp",rows:2,value:S,onChange:e=>{var t;"phone"==r.type?(t=e.target.value,/[a-zA-Z]/.test(t)||(D(t),$e(""))):(D(e.target.value),$e(""))},onKeyDown:e=>{"Enter"!=e.key||e.shiftKey||(e.preventDefault(),dt())},placeholder:nt(r)}),(0,g.jsxs)("div",{className:"wkit-import-start-inline-actions",children:[!n&&!r.required&&(0,g.jsx)("span",{className:"wkit-import-start-skip-btn wkit-import-start-skip-btn-inline",onClick:()=>{ct()},children:(0,a.__)("Skip","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-start-send-btn "+(S.trim()?"":"wkit-import-start-send-btn-disabled"),title:(0,a.__)("Send","wdesignkit"),onClick:()=>{S.trim()&&dt()},children:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"})})]})]}),(Ne||"kit_q1"==r.key||n)&&(0,g.jsxs)("div",{className:"wkit-import-start-composer-foot",children:[(0,g.jsxs)("div",{className:"wkit-import-start-composer-foot-left",children:[Ne&&(0,g.jsx)("span",{className:"wkit-import-start-field-error",children:Ne}),!Ne&&"kit_q1"==r.key&&(0,g.jsxs)("div",{className:"wkit-site-ai-description",onClick:()=>{(async()=>{if(We)return;qe(!0);let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wkit_ai_desc_keyword"),e.append("site_type",L),e.append("site_desc",S),e.append("api_type","description"),e.append("token",d?.token);let t=await s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1)),a=t?.response?t.response:"";a&&(D(a),$e("")),qe(!1)})()},children:[(0,g.jsx)("i",{className:"wdkit-i-ai"}),We?(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")})]})]}),n&&(0,g.jsx)("div",{className:"wkit-import-start-composer-foot-right",children:(0,g.jsx)("span",{className:"wkit-import-start-skip-btn",onClick:()=>{T(null),D(""),$e("")},children:(0,a.__)("Cancel","wdesignkit")})})]})]}),mt()]})})()]}),(0,g.jsx)("div",{className:"wkit-preview-editor-footer",children:(0,g.jsxs)("div",{className:"wkit-editor-footer-btns",children:[!F&&(0,g.jsx)("button",{className:"wkit-back-btn wkit-outer-btn-class",onClick:()=>{pe?me(!1):de?ce(!1):"choose"==j?t.on_back():N("choose")},children:(0,a.__)("Back","wdesignkit")}),"dummy"==j&&(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",disabled:!L.trim(),onClick:()=>{t.on_select("normal_import",rt())},children:(0,a.__)("Next","wdesignkit")}),"ai"==j&&$>=Je.length&&de&&!pe&&(0,g.jsxs)("div",{className:"wkit-import-start-footer-style-actions",children:[le&&(0,g.jsxs)("span",{className:"wkit-import-start-reset-wrap",children:[(0,g.jsx)("button",{className:"wkit-back-btn wkit-outer-btn-class",onClick:()=>et("all"),children:(0,a.__)("Reset","wdesignkit")}),(0,g.jsx)("span",{className:"wkit-import-start-reset-tooltip",children:(0,a.__)("Restores the original global colors and fonts from the kit.","wdesignkit")})]}),(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",onClick:()=>{ve?t.on_select("ai_import",rt(),Ce.trim()||"english",lt(),null===ye||ye,ve,Y,Q):me(!0)},children:le?(0,a.__)("Keep & continue","wdesignkit"):(0,a.__)("Continue","wdesignkit")})]}),"ai"==j&&$>=Je.length&&de&&pe&&(0,g.jsx)("button",{className:"wkit-next-btn wkit-btn-class",onClick:()=>{ue.current?.submit()},children:(0,a.__)("Next","wdesignkit")})]})})]}),(0,g.jsx)("div",{className:"wkit-ai-import-panel-drag",draggable:!0,onDragStart:e=>{(e=>{r=e.clientX;const t=window.getComputedStyle(e.target.previousElementSibling);l=parseInt(t.width,10)})(e)},onDrag:e=>{ht(e)},onDragEnd:e=>{ht(e)}}),(0,g.jsx)("div",{className:"wkit-ai-import-fram",children:(0,g.jsxs)("div",{className:"wkit-temp-preview-con",style:{width:"tablet"==w?"768px":"mobile"==w?"360px":""},children:[(0,g.jsxs)("div",{className:"wkit-preview-content-notice "+(x?.url?"":"wkit-private-temp-notice"),children:["mobile"!==w&&(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"})]}),x?.url?(0,g.jsx)("span",{className:"wkit-content-notice-txt",children:(0,a.__)("This is only a visual preview. The real website will be created with your details in the next step.","wdesignkit")}):n?.length>0&&(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 isn’t available for this website-kit.","wdesignkit")})]})]}),(0,g.jsxs)("div",{className:"wkit-temp-preview-content",children:[(0,g.jsxs)("div",{className:"wkit-temp-preview-skeleton "+(b?"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"})]})]}),x?.url&&(0,g.jsx)("iframe",{className:"wkit-temp-preview-ifram",ref:he,onLoad:()=>{ge.current=!0,Qe(),(()=>{const e=x?.url,t=ar(e);clearTimeout(we.current),we.current=setTimeout((()=>{tr(e),y(!1)}),t)})()},src:x?.url})]})]})})]})]})},Er=()=>(0,g.jsxs)("div",{className:"wkit-import-loading-main",children:[(0,g.jsxs)("div",{className:"wkit-import-loading-header",children:[(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-logo"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-header-right"})]}),(0,g.jsxs)("div",{className:"wkit-import-loading-body",children:[(0,g.jsxs)("div",{className:"wkit-import-loading-panel",children:[(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-title"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-lead"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-lead wkit-import-loading-lead-sm"}),(0,g.jsxs)("div",{className:"wkit-import-loading-options",children:[(0,g.jsxs)("div",{className:"wkit-import-loading-option",children:[(0,g.jsx)("span",{className:"wkit-import-loading-icon"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-option-title"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-option-desc"})]}),(0,g.jsxs)("div",{className:"wkit-import-loading-option",children:[(0,g.jsx)("span",{className:"wkit-import-loading-icon"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-option-title"}),(0,g.jsx)("span",{className:"wkit-import-loading-bar wkit-import-loading-option-desc"})]})]})]}),(0,g.jsx)("div",{className:"wkit-import-loading-frame"})]})]}),Pr=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 Ar=__webpack_require__(51),Fr=__webpack_require__.n(Ar);const Tr="wdkit_autosave",Lr=e=>{const t=new URL(ajaxurl.replace("admin-ajax.php","post.php"),window.location.href);return t.searchParams.set("post",e),t.searchParams.set("action","edit"),t.searchParams.set(Tr,"1"),t.pathname+t.search},Br=e=>new Promise((t=>setTimeout(t,e))),Ir=(e,t=3e4,a=100)=>new Promise((i=>{const s=Date.now(),n=setInterval((()=>{let a=!1;try{a=!!e()}catch(e){a=!1}(a||Date.now()-s>t)&&(clearInterval(n),i(a))}),a)})),Rr=(e,t)=>{let a="*";try{a=document.referrer?new URL(document.referrer).origin:"*"}catch(e){a="*"}try{window.parent.postMessage({wdkit_autosave:e,post_id:t},a)}catch(e){}},Mr=()=>!("undefined"==typeof wdkitData||!wdkitData?.debug),Or=(...e)=>{Mr()&&console.info(...e)},Vr=(...e)=>{Mr()&&console.warn(...e)},Wr=(...e)=>{Mr()&&console.error(...e)},qr=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t))})))((t=>{let i=t.site_obj,n=wdkitData.WDKIT_URL,l={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."},o=["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"],d=["exTitle","exproCnt","exbtxt","authorName","content"],c=[{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"}],u=["the-plus-addons-for-block-editor","nexter-extension","elementor","the-plus-addons-for-elementor-page-builder","nexter"],h=[{label:(0,a.__)("Installing Plugins & Theme","wdesignkit"),done_label:(0,a.__)("Installed Plugins & Theme","wdesignkit"),name:"install_plugin_theme",status:"pending",accordion:!1},{label:(0,a.__)("Importing Site Content","wdesignkit"),done_label:(0,a.__)("Imported Site Content","wdesignkit"),name:"importing_site_content",status:"pending",accordion:!1},{label:(0,a.__)("Setting Up Pages & Layout","wdesignkit"),done_label:(0,a.__)("Set Up Pages & Layout","wdesignkit"),name:"setting_up_site",status:"pending",accordion:!1},{label:(0,a.__)("Finalizing Settings","wdesignkit"),done_label:(0,a.__)("Finalized Settings","wdesignkit"),name:"finalizing_site_setting",status:"pending",accordion:!1}],f={p_id:3001,original_slug:"nexter",plugin_name:"Nexter",freepro:"0",type:"theme"};const[k,y]=(0,e.useState)(h),[x,v]=(0,e.useState)(c),[j,N]=(0,e.useState)([]),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)(""),[E,P]=(0,e.useState)(""),[A,F]=(0,e.useState)(!1),[T,L]=(0,e.useState)(""),B=(0,e.useRef)(!1),[I,R]=(0,e.useState)(!1),[M,O]=(0,e.useState)(!1),[V,W]=(0,e.useState)(!1),[q,G]=(0,e.useState)(!1),[z,H]=(0,e.useState)([]),U=(0,e.useRef)({}),J=(0,e.useRef)([]),K=(0,e.useRef)([]),Z=(0,e.useRef)([]),Y=(0,e.useRef)(null),X=(0,e.useRef)([]),Q=(0,e.useRef)(),ee=(0,e.useRef)([]),te=(0,e.useRef)([]),ae=(0,e.useRef)(),ie=(0,e.useRef)(),se=(0,e.useRef)(),ne=(0,e.useRef)(),re=(0,e.useRef)({t0:null,marks:[]}),le=e=>{try{const t="undefined"!=typeof performance?performance.now():Date.now();null===re.current.t0&&(re.current.t0=t);const a=((t-re.current.t0)/1e3).toFixed(2);re.current.marks.push([e,a]),Or(`[WDKIT TIMING] ${e}: +${a}s`)}catch(e){}},oe=((0,e.useRef)([]),(0,e.useRef)({color:[],typo:[]})),de=(0,e.useRef)([]),ce=(0,e.useRef)([]),pe=(0,e.useRef)([]),me=(0,e.useRef)(!1),ue=(0,e.useRef)(null),he=(0,e.useRef)({}),ge=(0,e.useRef)(null),we=(0,e.useRef)({}),_e=(0,e.useRef)([]),fe=(0,e.useRef)([]),ke=(0,e.useRef)(new Set),be=(0,e.useRef)({}),ye=(0,e.useRef)({}),xe=(0,e.useRef)([]),ve=(0,e.useRef)([]),je=(0,e.useRef)([]),Ne=(0,e.useRef)(null),$e=(0,e.useRef)(null),Ce=(0,e.useRef)(null),Se=(0,e.useRef)(null),De=(0,e.useRef)(null),Ee=(0,e.useRef)(null),Pe=(0,e.useRef)(null),Ae=(0,e.useRef)([]),Fe=(0,e.useRef)([]),Te=(0,e.useRef)([]),Le=(0,e.useRef)([]),Be=(0,e.useRef)([]),Ie=(0,e.useRef)([]),Re=(0,e.useRef)([]),Me=(0,e.useRef)(!1),Oe=(0,e.useRef)([]),We=(0,e.useRef)([]),Ge=(0,e.useRef)(0),ze=(0,e.useRef)(!1);(0,e.useEffect)((()=>{if(t.wdkit_meta?.success){if(le("Import start"),"ai_import"==i?.import_type&&t.kit_template?.length>0&&ta(t.kit_template).catch((()=>null)),"ai_import"==i?.import_type){i?.blog_post&&ut().then((e=>{e?.data?.count>4||vt().catch((()=>null))})).catch((()=>null));let e=i?.plugin_setting?.length>0?i.plugin_setting.findIndex((e=>"ecommerce"==e?.name)):-1;e>-1&&i.plugin_setting[e]?.required&&ht().then((e=>{e?.count<5&&kt().catch((()=>null))})).catch((()=>null))}Pt().catch((()=>null)),Ta("install_plugin_theme")}}),[t.wdkit_meta.success]),(0,e.useEffect)((()=>{if(!S)return;let e=!1;const t=()=>{e||(e=!0,clearTimeout(i),window.removeEventListener("message",a),D(!1),ze.current?Xe():Ke())},a=e=>{e.source===ae.current?.contentWindow&&e.data?.wdkit_autosave&&t()},i=setTimeout(t,15e4);return window.addEventListener("message",a),()=>{clearTimeout(i),window.removeEventListener("message",a)}}),[S]);const Ue=()=>{let e=(new Date).getFullYear().toString().slice(-2),t=Math.random();return t.toString(36),t.toString(36).substr(2,6)+e},Je=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?(P(e.data.post_id),D(Lr(e.data.post_id))):Ze()})).catch((()=>{Ze()}))},Ke=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",E),await s().post(ajaxurl,e),F(!0),0==K.current.length?Ye():Ze()},Ze=()=>{y((e=>e.map((e=>"finalizing_site_setting"==e?.name?Object.assign({},e,{status:"done",accordion:!1}):e)))),0!==K.current.length||0!==Z.current.length||Me.current||st()},Ye=()=>{Ze()},Xe=()=>{if(Ge.current+=1,Ge.current{le("import_success (UI shows done)"),(()=>{try{const e=re.current.marks,t=["[WDKIT TIMING] ---- summary (total, and cost of each segment) ----"];let a=0;e.forEach((([e,i])=>{const s=Number(i);t.push(` +${i}s (${(s-a).toFixed(2)}s) ${e}`),a=s})),e.length>0&&t.push(` TOTAL: ${e[e.length-1][1]}s`),Or(t.join("\n"))}catch(e){}})(),t.setcurrent_page("success_import");const e=Ie.current.map((e=>e.url));if(le(`page warm-up: ${e.length} pages, media: ${Le.current.length} pages`),ga(e).then((()=>le("page warm-up pass 1 done"))).then((()=>ga(e))).then((()=>le("page warm-up pass 2 done, media download starting"))).then(ha),"ai_import"==i?.import_type){let e=Q.current,a=r(),i=0,n=0,l=[],o=[],d=t?.kit_template?.length>0?t.kit_template:[],c=p();d.length>0&&d.map((t=>{if(K.current.findIndex((e=>e.id==t.id))>-1)l.push(t.id);else{o.push(t.id);let a=t.id,s=e?.[a]?.used_credits?e[a].used_credits:0,r=e?.[a]?.real_credit?e[a].real_credit:0;i+=Number(s),n+=Number(r)}})),o=o.join(", "),l=l.join(", ");let m=new FormData;m.append("action","get_wdesignkit"),m.append("kit_nonce",wdkitData.kit_nonce),m.append("type","wkit_ai_credit_update"),m.append("kit_id",t?.kit_data?.id),m.append("used_credit",i),m.append("real_credit",n),m.append("site_url",a),m.append("ids_failed",l),m.append("ids_success",o),m.append("token",c?.token),await s().post(ajaxurl,m)}},nt=(0,g.jsx)("i",{className:"wdkit-i-loading-02 wkit-loading-step-parent",style:{fontSize:"20px",animation:"spin 3s linear infinite"}}),rt=(0,g.jsx)("i",{className:"wdkit-i-loading-03 wkit-loading-step-child",style:{animation:"spin 3s linear infinite"}}),lt=(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,g.jsx)("path",{d:"M6 0C9.31378 0 12 2.6863 12 6C12 9.31365 9.31378 12 6 12C2.68629 12 4.05887e-06 9.31365 0 6C0 2.6863 2.68629 8.11758e-06 6 0ZM8.62012 3.87012C8.43472 3.70021 8.1465 3.71208 7.97656 3.89746L4.95898 7.18945L3.77734 6.00879C3.59951 5.83097 3.31064 5.83096 3.13281 6.00879C2.95568 6.18658 2.95544 6.4747 3.13281 6.65234L4.65137 8.16992C4.73919 8.25775 4.85923 8.30543 4.9834 8.30273C5.10748 8.3 5.2257 8.24778 5.30957 8.15625L8.64844 4.5127C8.81812 4.32737 8.80525 4.04002 8.62012 3.87012Z",fill:"#00A31B"})}),ot=(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{d:"M8 0C12.4184 0 16 3.58173 16 8C16 12.4182 12.4184 16 8 16C3.58172 16 5.41183e-06 12.4182 0 8C0 3.58174 3.58172 1.08234e-05 8 0ZM11.4941 5.16016C11.2469 4.93358 10.8623 4.95009 10.6357 5.19727L6.6123 9.58691L5.03711 8.01172C4.8 7.77461 4.41484 7.77461 4.17773 8.01172C3.94118 8.2488 3.94096 8.63316 4.17773 8.87012L6.20215 10.8936C6.31922 11.0105 6.47911 11.0749 6.64453 11.0713C6.81 11.0677 6.96726 10.9961 7.0791 10.874L11.5312 6.01758C11.7576 5.77059 11.7407 5.38678 11.4941 5.16016Z",fill:"#00A31B"})}),dt=(0,g.jsx)("i",{className:"wdkit-i-round-check wkit-loading-step-child",style:{fontSize:"20px"}}),ct=(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-child",style:{color:"#FC4032"}}),pt=(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:(0,g.jsx)("circle",{cx:"6",cy:"6",r:"5.25",stroke:"#C4C4C4",strokeWidth:"1.5"})}),mt=(0,g.jsx)("i",{className:"wdkit-i-alert wkit-loading-step-parent",style:{fontSize:"20px"}}),ut=async()=>{if(!Se.current){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","check_post_count"),e.append("builder","gutenberg"),Se.current=s().post(ajaxurl,e).then((e=>e.data))}return Se.current},ht=async()=>{if(!De.current){let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wkit_check_product_count"),De.current=s().post(ajaxurl,e).then((e=>e.data))}return De.current},kt=()=>(Ce.current||(Ce.current=(()=>{let e=new FormData;return e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wkit_generate_product_data"),e.append("site_type",i?.site_type?i.site_type:""),e.append("site_desc",i?.site_description?i.site_description:""),e.append("site_title",i?.site_info?.site_name?i.site_info.site_name:""),e.append("builder","gutenberg"),e.append("token",p()?.token),s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1))})()),Ce.current),bt={generate_post_data:0,taxonomy:0,per_post_fetch:0,ensure_widgets:0,nexter_widgets:0,ai_content:0,page_section:0,post_count:0},yt=()=>"undefined"!=typeof performance?performance.now():Date.now(),xt=()=>{try{Or("[WDKIT DUMMY TIMING]",JSON.parse(JSON.stringify(bt)))}catch(e){}},vt=()=>($e.current||($e.current=(()=>{let e=new FormData;return e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wkit_generate_post_data"),e.append("site_type",i?.site_type?i.site_type:""),e.append("site_desc",i?.site_description?i.site_description:""),e.append("site_title",i?.site_info?.site_name?i.site_info.site_name:""),e.append("builder","gutenberg"),e.append("token",p()?.token),s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1))})()),$e.current),jt=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},Nt=async e=>{let t=null,a=1/0,i=1/0;for(const s of e){const e=s.width/s.height,n=Math.abs(e-1.75),r=s?.used?s.used:0;(r{(()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","wkit_remove_dummy_post"),s().post(ajaxurl,e)})();let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","kit_template"),t.append("template_id",19866),t.append("builder",wdkitData.use_editor);let a=await s().post(ajaxurl,t).then((e=>e.data));if(a?.success){let t=a?.template?.length>0?a.template:[];a?.kitdata&&a.kitdata,bt.post_count=t.length;const n=await Promise.all(t.map((async e=>{let t=yt(),a=await Bt(e,19866,"post");bt.per_post_fetch+=yt()-t,t=yt(),await Ct(JSON.parse(a?.data.response.content)?.content,a?.data.args.editor,"post "+e.id),bt.ensure_widgets+=yt()-t;var s=a.data?.response?.content?a.data.response.content:"";let n,r,l,o=JSON.parse?.(s)?JSON.parse(s):[],d=o?.settings?o.settings:"";if(t=yt(),je.current.push(...et(o?.content)),bt.nexter_widgets+=yt()-t,("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",p=await Rt(o?.content);return p&&(n=[{[c]:p.detailsection}],r={[c]:p.sectionMap},l=ur(i?.images?.length>0?i.images:[])),{temp:e,post_json:a,raw_con:s,content:o,con_setting:d,text_obj:p,page_type:c,detail_parent:n,parent:r,new_images_local:l}})));await Kt();const r=n.filter((e=>e.text_obj)).map((e=>({id:e.temp.id,text_array:e.parent})));if(r.length>0){const e=yt();await ea(r,"gutenberg",we).catch((()=>null)),bt.ai_content+=yt()-e}if("ai_import"==i?.import_type){let e=ur(i?.images?.length>0?i.images:[]);for(const t of n){const a=await Nt(e);if(!a?.url)continue;t.featured_image=a.url;let i=[...e],s=i.findIndex((e=>e.url==a.url)),n=i[s],r=i[s]?.used?i[s].used:0,l=Object.assign({},n,{used:r+.5});i.push(l),i.splice(s,1),e=i}}await Promise.all(n.map((async t=>{const{temp:a,post_json:n,raw_con:r,content:l,con_setting:o,text_obj:d,page_type:c,detail_parent:p,parent:m}=t;let u=t.new_images_local,h={color:oe.current.color,typography:oe.current.typo};if(d){let e;if(we.current?.[a.id])e=we.current[a.id];else{const t=yt();let i=await aa(m,a?.id,"gutenberg");bt.ai_content+=yt()-t,e=i.success?i.data:[]}let t=await ia(l,"gutenberg");var g=await na(r,u,t?.ai);g=await da(e,g,p,"gutenberg")}else g=r;var w=qe(JSON.parse(g)?.content,h),_=Object.assign({},JSON.parse(g),{content:w});let f=e?.posts?.length>0?e.posts:[],k=f.findIndex((e=>e?.id==a.id));var b=[],y=[];if(k>-1){_.title=f[k].title;let t=f?.[k]?.category?f[k].category:[],a=f?.[k]?.tags?f[k].tags:[];t.map((t=>{let a=e?.categories.findIndex((e=>e.name==t));a>-1&&b.push(e?.categories[a].term_id)})),a.map((t=>{let a=e?.tags.findIndex((e=>e.name==t));a>-1&&y.push(e?.tags[a].term_id)}))}i?.wirefram_import&&(_=await zt(_,Ht(_)));var x=JSON.stringify(_),v=x.match(/https:\/\/gtemplates\.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,"#\\"))}))}if("ai_import"==i?.import_type)var j=t.featured_image;else j=f?.[k]?.img_url;if(i?.wirefram_import){const e=await Nt(Gt());j=e?.url?e.url:j}let N="ai_import"==i?.import_type;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(n.data.args)),e.append("temp_data",JSON.stringify(n.data.temp_data)),e.append("template_id",JSON.stringify(n.data.id)),e.append("thumb_image",j),e.append("category_list",JSON.stringify(b)),e.append("tag_list",JSON.stringify(y)),e.append("data",x),N&&e.append("defer_media","true");const t=yt();var $=await s().post(ajaxurl,e).then((e=>e.data));if(bt.page_section+=yt()-t,N&&$?.inserted_id){let e=[...Array.isArray(n?.data?.response?.image_urls)?n.data.response.image_urls:[],...Array.isArray($?.image_urls)?$.image_urls:[],...hr(u)];e.length>0&&Te.current.push({post_id:$.inserted_id,builder:"gutenberg",image_urls:e})}}catch(e){$=!1}})))}},Ct=async(e,t,a="unknown")=>{let i=[];const n=await(ge.current||(ge.current=_()),ge.current),r=[],l=e=>{if(Array?.isArray(n?.data?.widget_list)&&n?.data?.widget_list?.length>0){let t=n?.data?.widget_list?.find((t=>t.w_unique==e));return"done"!=t?.type&&"plugin"!=t?.type&&(r.push(t?.builder),!0)}return!0},o=e=>{e?.elements?.forEach((e=>{"widget"==e?.elType&&e?.widgetType?.includes("wb-")&&!i?.includes(e?.widgetType?.replace("wb-",""))&&l(e?.widgetType?.replace("wb-",""))&&i?.push(e?.widgetType?.replace("wb-","")),e?.elements?.length&&o(e)}))};if("elementor"==t)Array.isArray(e)&&e?.length>0&&e.forEach((e=>{Array.isArray(e?.elements)&&e?.elements?.length>0&&o(e)}));else if("gutenberg"==t){const t=/|-->)\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},Rt=e=>function(e){const t={},a={};return function e(i,s=null){i.forEach((i=>{var n;if(i&&"object"==typeof i)if(n=i,"tp-container"===n?.type&&!0===n?.object?.enable_ai_meta_info&&n?.object?.wdkitai_sectionType){let s=i.object.wdkitai_sectionType;"wdkit_custom"===s&&i.object.wdkitai_conTitle&&(s=i.object.wdkitai_conTitle);const n=l[s]||"No description available.";t[s]||(t[s]={information:n,elements:[]},a[s]={information:n,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)})),"editor"===i.object?.accorType&&i.inner_con?.length>0){var r=[];i.inner_con?.map((e=>{r.push(e?.object.block_id)})),Object.assign(n,{accor_inner_key:r}),n.accor_inner_key=r}if(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])=>!o.includes(e)&&!e.endsWith("_replace"))));let r=e?Object.values(e):"";r?.length>1&&a[s].elements.push(e)}i.inner_con?.length&&e(i.inner_con,s)}}))}(e),{detailsection:t,sectionMap:a}}(It(e)),Mt=e=>function(e){const t={},a={};return function e(i,s=null){if(Array.isArray(i))for(const r of i){if(r.settings&&"yes"===r.settings.wdkitai_container_setting&&r.settings.wdkitai_section_types){if("wdkit_custom"==r.settings.wdkitai_section_types&&r.settings?.wdkitai_custom_type){s=r.settings?.wdkitai_custom_type;var n=r.settings?.wdkitai_custom_description}else s=r.settings.wdkitai_section_types;t[s]||(t[s]={information:n||l[s],elements:[]},a[s]={elements:[]})}if("widget"===r.elType&&r.settings){const e=Object.entries(r.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:r.id});let n=Object.assign({},e,{id:r.id});Object.values(i).length>1&&t[s].elements.push(i),a[s].elements.push(n)}}Array.isArray(r.elements)&&e(r.elements,s)}}(e),{sectionMap:t,detailsection:a}}(e),Ot=e=>{let t=e.replace(/,\s*([}\]])/g,"$1").replace(/,\s*\]/g,"]").replace(/(\{|\[)\s*,/g,"$1");try{return JSON.parse(t)}catch(e){return Wr("JSON still invalid after fix:",e),!1}},Vt=(e,t)=>{try{Vr("[wdkit-bundle] falling back to per-template import -",e,void 0!==t?t:"")}catch(e){}return!1},Wt=e=>{let t=[...k],a=t.findIndex((e=>"setting_up_site"==e?.name));a>-1&&"legacy"!=e&&(t[a].status="loading"),y(t)},qt=e=>(Ne.current||(le("Site bundle fetch start"),Ne.current=(async e=>{if(!Array.isArray(e)||0===e.length)return!1;try{const a=p(),i=e.map((e=>{let t=Dt(e.post_builder);return{id:e.id,title:e?.title?e.title:"",wp_post_type:e?.wp_post_type?e.wp_post_type:"page",_editor:"wdkit"==wdkitData.use_editor&&t?t:wdkitData.use_editor}}));let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_fetch_site_bundle"),n.append("template_ids",JSON.stringify(i)),n.append("website_kit",t.kit_data.id),n.append("email",a?.user_email?a.user_email:""),n.append("editor",wdkitData.use_editor),n.append("builder",t?.kit_builder?t.kit_builder:"");const r=await s().post(ajaxurl,n).then((e=>e.data)).catch((e=>({__net:e?.message||"network error"})));return r?.__net?Vt("fetch_site_bundle network error",r.__net):r?.success?Array.isArray(r?.pages)||Array.isArray(r?.sections)?(Or("[wdkit-bundle] bundle fetched:",{pages:(r.pages||[]).length,sections:(r.sections||[]).length,timing_ms:r.timing_ms}),r):Vt("fetch_site_bundle payload had no pages/sections",Object.keys(r||{})):Vt("fetch_site_bundle returned success=false",r?.message||r)}catch(e){return Vt("fetch_site_bundle threw",e?.message)}})(e).then((e=>(le("Site bundle fetch done"),e)))),Ne.current),Gt=()=>[{id:1,url:wdkitData.wdkit_site_api_url+"images/v2/plugin/template/hero-placeholder.png",width:1200,height:900},{id:2,url:wdkitData.wdkit_site_api_url+"images/v2/plugin/template/long-placeholder.png",width:1980,height:1080},{id:3,url:wdkitData.wdkit_site_api_url+"images/v2/plugin/template/square-placeholder.png",width:1080,height:1080},{id:4,url:wdkitData.wdkit_site_api_url+"images/v2/plugin/template/vertical-placeholder.png",width:1080,height:1920}],zt=async(e,t=null)=>{try{const a=t||[...new Set([...await sa(e)||[],...Ht(e)])];if(!a||0===a.length)return Vr("[wdkit-import] wireframe found no images to swap"),e;const i=await na(JSON.stringify(e),Gt(),a,4/3);return JSON.parse(i)||e}catch(t){return Vr("[wdkit-import] wireframe placeholder swap failed, keeping original images",t),e}},Ht=e=>{const t=JSON.stringify(e).replace(/\\\//g,"/").match(/https?:\/\/[^"'\\\s)]+\.(?:jpe?g|png|gif|webp)(?:\?[^"'\\\s)]*)?/gi);return t?[...new Set(t)]:[]},Ut=async(e,a,s)=>{const n={};a.forEach((e=>{n[e.id]=e}));const r=await Promise.all((Array.isArray(e)?e:[]).map((async e=>await(async(e,a,s)=>{try{let l=JSON.parse(e.content);i?.wirefram_import&&(l=await zt(l));const o=l?.settings?l.settings:"";if(l?.site_settings&&!ne.current&&wa(l.site_settings),"elementor"==t?.kit_builder){const e=(e=>{const t={sc_link_switch:"plus_section_column_link",scwbf_options:"plus_glass_morphism",seh_switch:"plus_equal_height"},a=[],i=[],s=e=>{e.hasOwnProperty("widgetType")&&e.widgetType&&!a.includes(e.widgetType)&&a.push(e.widgetType),Object.keys(t).map((a=>{e?.settings?.[a]&&!i.includes(t[a])&&i.push(t[a])})),e.elements&&Array.isArray(e.elements)&&e.elements.length>0&&e.elements.map((e=>s(e)))};return e&&Array.isArray(e)&&e.map((e=>s(e))),{widgets:a,extensions:i}})(l?.content);xe.current.push(...e.widgets),ve.current.push(...e.extensions)}else"gutenberg"==t?.kit_builder&&je.current.push(...et(l?.content));let d,c,p="custom";"yes"!=o?.wdkitai_page_setting&&1!=o?.wdkitai_page_setting||(p=o?.wdkitai_page_type?o.wdkitai_page_type:"custom","elementor"==t?.kit_builder?d=await Mt(l?.content):"gutenberg"==t?.kit_builder&&(d=await Rt(l?.content)));let m=[];if(d){if("elementor"==t?.kit_builder){let e=await Ve(l?.content,s);c=Object.assign({},l,{content:e})}else{let e=l?.content;e=e.replaceAll("--tpgb","\\u002d\\u002dtpgb");let t=await qe(e,s);c=Object.assign({},l,{content:t})}let a=[{[p]:d.detailsection}],o=ur(i?.images?.length>0?i.images:[]);m=hr(o);let u,h=pe.current?.[e.id]?pe.current[e.id]:[];if(i?.wirefram_import)u=JSON.stringify(c);else{let e=await ia(l);u=await na(JSON.stringify(c),o,e?.ai),"ai_import"==i?.import_type&&(u=await la(u,e?.ai_team))}u=await da(h,u,a),c=JSON.parse(u);var n="ai_import"==i?.import_type&&!pe.current?.[e.id],r=a}else if("elementor"==t?.kit_builder){let e=await Ve(l?.content,s);c=Object.assign({},l,{content:e})}else{let e=await qe(l?.content,s);c=Object.assign({},l,{content:e})}"gutenberg"==t?.kit_builder&&(c=He(c)),Object.values(U.current).length>0&&"elementor"==t?.kit_builder&&(c=_a(c));let u=[...Array.isArray(e?.image_urls)?e.image_urls:[],...m];const h=e?.post_url?e.post_url:a?.post_url?a.post_url:"";return h||Vr("[wdkit-bundle] no post_url for template",e?.id,"- its nav links will not be remapped to local URLs"),Object.assign({},e,{content:JSON.stringify(c),image_urls:u,post_url:h,_wdkit_ai_pending:!!n,_wdkit_ai_detail_parent:r})}catch(t){return Wr("[wdkit-bundle] transform failed for template",e?.id,t),null}})(e,n[e.id],s))));return await Kt(),r.filter(Boolean)},Jt=e=>!(!e||!0!==e.success||"tpae_filter_missing"===e.code||/Relevant Plugin not (Installed|Activated)/i.test(String(e.massage||e.message||""))||Array.isArray(e.not_enabled)&&e.not_enabled.length>0),Kt=async()=>{const e=[...new Set(xe.current)],t=[...new Set(ve.current)],a=[...new Set(je.current)];xe.current=[],ve.current=[],je.current=[];try{if(e.length>0||t.length>0){let a=await tt(e,t);Jt(a)||(Vr("[wdkit-bundle] widget enable did not verify, retrying once before any template is inserted:",{code:a?.code,message:a?.massage||a?.message,not_enabled:a?.not_enabled}),a=await tt(e,t),Jt(a)||Wr("[wdkit-bundle] widget enable still unverified after retry - templates using these widgets will be stored without them:",a?.not_enabled?.length?a.not_enabled:a?.massage||a?.message||a))}a.length>0&&await(async(e=[])=>{if(!Array.isArray(e)||0===e.length)return!1;Qe=[...new Set([...Qe,...e])];let t=new FormData;return t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","scan_nexter_widgets"),t.append("blockNames",JSON.stringify(Qe)),await s().post(ajaxurl,t),Qe})(a)}catch(e){Wr("[wdkit-bundle] batched widget enable failed",e)}},Zt=(e,t)=>e?t?Object.assign({},e,t,{imported:[].concat(e.imported||[],t.imported||[]),errors:[].concat(e.errors||[],t.errors||[])}):e:t,Yt=async(e,a,i,n={})=>{if(!Array.isArray(a)||0===a.length)return!1;const r=[];for(let e=0;e{const{_wdkit_ai_pending:t,_wdkit_ai_detail_parent:a,...i}=e;return i},p={builder:e?.builder?e.builder:t?.kit_builder,editor:e?.editor?e.editor:wdkitData.use_editor,pages:r[a].filter((e=>"section"!=e?.type)).map(c),sections:r[a].filter((e=>"section"==e?.type)).map(c),site_settings:n.first&&0===a&&e?.site_settings?e.site_settings:{},nav_menu:d&&e?.nav_menu?e.nav_menu:[]};let m=new FormData;m.append("action","get_wdesignkit"),m.append("kit_nonce",wdkitData.kit_nonce),m.append("type","wkit_import_site_bundle"),m.append("bundle",JSON.stringify(p)),m.append("session",i),m.append("custom_meta",!0),m.append("defer_media",!0),d&&m.append("finalize",!0);const u=await s().post(ajaxurl,m).then((e=>e.data)).catch((e=>({__net:e?.message||"network error"})));if(u?.__net)return Vt(`chunk ${a+1}/${r.length} network error (is post_max_size too small?)`,u.__net);if(!u?.success)return Vt(`chunk ${a+1}/${r.length} rejected`,{message:u?.message,errors:u?.errors});d&&u?.timing_ms&&Or("[wdkit-bundle] server timing:",u.timing_ms),l=Zt(l,u)}return l},Xt=(e,t)=>{if("string"!=typeof e||!Array.isArray(t))return e;let a=e;return t.forEach((e=>{if(!e?.post_url||!e?.view)return;const t=e.post_url.replace(/\/$/,""),i=e.view.replace(/\/$/,""),s=t.replace(/\//g,"\\/"),n=i.replace(/\//g,"\\/");[[`"${t}"`,`"${i}"`],[`"${t}/"`,`"${i}/"`],[`\\"${t}\\"`,`\\"${i}\\"`],[`\\"${t}/\\"`,`\\"${i}/\\"`],[`"${s}"`,`"${n}"`],[`"${s}/"`,`"${n}/"`],[`\\"${s}\\"`,`\\"${n}\\"`],[`\\"${s}/\\"`,`\\"${n}/\\"`]].forEach((([e,t])=>{a=a.split(e).join(t)}))})),a},Qt=async(e,a=null)=>(await Promise.all(e.map((async e=>{try{let i=a&&"string"==typeof a[e.id]?a[e.id]:"";if(!i){const a=he.current?.[e.id]?he.current[e.id]:await Bt(e,t.kit_data.id,"temp",0,!0);if(!a?.success)return null;he.current[e.id]=a,i=a?.data?.response?.content?a.data.response.content:""}const s=JSON.parse(i),n=s?.settings?s.settings:"";if("yes"!=n?.wdkitai_page_setting&&1!=n?.wdkitai_page_setting)return null;const r=n?.wdkitai_page_type?n.wdkitai_page_type:"custom";let l;return"elementor"==t?.kit_builder?l=Mt(s?.content):"gutenberg"==t?.kit_builder&&(l=Rt(s?.content)),l?{id:e.id,text_array:{[r]:l.sectionMap}}:null}catch(e){return null}})))).filter(Boolean),ea=async(e,a=t?.kit_builder,n=pe)=>{const r=p();let l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("type","generate_ai_content_batch"),l.append("pages",JSON.stringify(e)),l.append("site_type",i?.site_type?i.site_type:""),l.append("site_lang",i?.site_lang?i.site_lang:""),l.append("site_agency",i?.site_agency?i.site_agency:""),l.append("site_desc",i?.site_description?i.site_description:""),l.append("site_title",i?.site_info?.site_name?i.site_info.site_name:""),l.append("site_builder",a||""),l.append("token",r?.token);const o=await s().post(ajaxurl,l).then((e=>e.data)).catch((()=>!1)),d=o?.results;Array.isArray(d)&&d.forEach((e=>{if(!e?.success||!e?.response)return;let t;try{t=JSON.parse(e.response)}catch(a){t=Ot(e.response)}if(t&&(n.current=Object.assign({},n.current,{[e.id]:t}),e.used_credits&&e.real_credit)){let t={used_credits:e.used_credits,real_credit:e.real_credit};Q.current=Object.assign({},Q.current,{[e.id]:t})}}))},ta=async e=>{if("ai_import"!=i?.import_type)return;if(me.current)return;if(ue.current)return ue.current;const t=Array.isArray(e)?e:[];return t.length<2?void 0:(ue.current=(async()=>{try{let e=null;try{e=(e=>{const t={};return e?([...Array.isArray(e?.sections)?e.sections:[],...Array.isArray(e?.pages)?e.pages:[]].forEach((e=>{e?.id&&"string"==typeof e?.content&&""!==e.content&&(t[e.id]=e.content)})),t):t})(await qt(t))}catch(t){e=null}const a=await Qt(t,e);if(a.length<2)return;await ea(a),le("Kit AI batch done ("+a.length+" page(s))"),me.current=!0}catch(e){Vr("AI batch prefetch failed; using per-template AI calls.",e),ue.current=null}})(),ue.current)},aa=async(e,n,r=t?.kit_builder,l=0)=>{let o=e||"",d=i?.site_type?i.site_type:"",c=i?.site_lang?i.site_lang:"",m=i?.site_agency?i.site_agency:"",u=i?.site_description?i.site_description:"",h=i?.site_info?.site_name?i.site_info.site_name:"",g=p(),w=new FormData;w.append("action","get_wdesignkit"),w.append("kit_nonce",wdkitData.kit_nonce),w.append("type","generate_ai_content"),w.append("text_array",JSON.stringify(o)),w.append("site_type",d),w.append("site_lang",c),w.append("site_agency",m),w.append("site_desc",u),w.append("site_title",h),w.append("site_builder",r),w.append("token",g?.token);let _=await s().post(ajaxurl,w).then((e=>e.data)).catch((()=>!1));if(_?.response){let t=_.response,a=_?.used_credits,i=_?.real_credit;if(a&&i){let e={used_credits:a,real_credit:i};Q.current=Object.assign({},Q.current,{[n]:e})}try{return{success:!0,data:JSON.parse(t)}}catch(e){console.warn("Normal JSON.parse failed. Running auto-fix...")}let s=Ot(t);return!s&&l<2?(await new Promise((e=>setTimeout(e,2e3*(l+1)))),aa(e,n,r,l+1)):{success:!!s,data:s||[]}}return l<2?(await new Promise((e=>setTimeout(e,2e3*(l+1)))),aa(e,n,r,l+1)):_||{success:!1,message:(0,a.__)("AI server request failed","wdesignkit")}},ia=(e,a=t?.kit_builder)=>{"gutenberg"==a&&(e=It(e.content));const i=[],s={};!function e(t,n=[]){if(Array.isArray(t))t.forEach((t=>e(t,n)));else if("object"==typeof t&&null!==t){let l=t.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_team_library){o=n[e].wdkitai_team_library;break}if(t?.wdkitai_team_library&&(o=t.wdkitai_team_library),t.wdkitai_team_library_type)d="testimonial"===t.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"==a)var r="image";else"gutenberg"==a&&(r="tImg");if(t?.[r]&&"string"==typeof t[r]?.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(t[r]?.url))if("image_stock"===l)i.push(t[r]?.url);else if("team_library"===l){const e=`${o}|${d}`;s[e]||(s[e]={img_type:o,team_type:d,imgs:[]}),s[e].imgs.push(t[r].url)}if(t.background_image&&"string"==typeof t.background_image.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(t.background_image.url)&&"image_stock"===l&&i.push(t.background_image.url),"string"==typeof t.url&&/\.(jpg|jpeg|png|gif|webp)$/i.test(t.url))if("image_stock"===l)i.push(t.url);else if("team_library"===l){const e=`${o}|${d}`;s[e]||(s[e]={img_type:o,team_type:d,imgs:[]}),s[e].imgs.push(t.url)}for(const a in t)e(t[a],[...n,t])}}(e);const n=Object.values(s);return{ai:i,ai_team:n}},sa=e=>{"gutenberg"===t?.kit_builder&&(e=It(e.content));const a=new Set,i=e=>"string"==typeof e&&/\.(jpg|jpeg|png|gif|webp)(?:[?#]|$)/i.test(e);return function e(s){if(Array.isArray(s))s.forEach((t=>e(t)));else if("object"==typeof s&&null!==s){let n="gutenberg"===t?.kit_builder?"tImg":"image";s?.[n]?.url&&i(s[n].url)&&a.add(s[n].url),s?.background_image?.url&&i(s.background_image.url)&&a.add(s.background_image.url),s?.url&&i(s.url)&&a.add(s.url);for(const t in s)e(s[t])}}(e),Array.from(a)},na=async(e,t=[],a=[],i=null)=>{let s=a?.length>0?[...a]:[];if(a?.length>0){const n=a.map((async a=>{let n=await ra(a);if(!n&&i&&(Vr("[wdkit-import] could not measure "+a+", assuming "+i+":1"),n={width:i,height:1}),!n){let e=s.findIndex((e=>e==a));return void(e>-1&&s.splice(e,1))}let r=n,l=Object.assign(r,{url:a});const o=(l?.width||50)/(l?.height||50);let d=null,c=1/0;for(const e of t){const t=e.width/e.height,a=Math.abs(t-o);let i=e?.used?e?.used:0;a+ie.url==d.url)),r=i[n],l=i[n]?.used?i[n].used:0,o=Object.assign({},r,{used:l+.5});i.push(o),i.splice(n,1),t=i;let c=a.replace(/\//g,"\\/");e=(e=e.replaceAll(c,d.url)).replaceAll(a,d.url);let p=s.findIndex((e=>e==a));p>-1&&s.splice(p,1)}}));await Promise.all(n)}return s.length>0&&t?.length>0?na(e,t,s,i):e},ra=e=>new Promise((t=>{const a=new Image;let i=!1;const s=e=>{i||(i=!0,clearTimeout(n),t(e))},n=setTimeout((()=>s(null)),8e3);a.onload=()=>s({width:a.width,height:a.height}),a.onerror=()=>s(null),a.src=e})),la=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_agency_id?i.site_agency_id:i.site_category_id?i.site_category_id:7;let r=t?.img_type?t.img_type:"",l=t?.imgs?.length>0?t.imgs.length:5;const o=async(e,t=r)=>{let i=new FormData;return i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","select_team_img"),i.append("folder_id",e),i.append("img_type",t),i.append("image_count",l),i.append("token",a?.token),s().post(ajaxurl,i).then((e=>e.data)).catch((()=>null))};let d=await o(n);if(d?.images?.length||"default"===r||(Vr("[wdkit-import] team collection "+n+"/"+r+" empty, retrying same category as default"),d=await o(n,"default")),d?.images?.length||7==n||(Vr("[wdkit-import] team collection "+n+" empty, falling back to 7"),d=await o(7,"default")),d?.images?.length>0){if(t?.imgs?.length>d?.images?.length){let e=0;for(;d?.images?.length{const i=d.images[a];if(!i||"string"!=typeof t)return;const s=t.replace(/\//g,"\\/");e.includes(s)?e=e.replace(s,i):e.includes(t)&&(e=e.replace(t,i))}))}}))),e},oa=e=>"string"==typeof e&&""!==e.trim(),da=(e,a,s,n=t?.kit_builder)=>{if("elementor"==n)var r=JSON.parse(a).content;else"gutenberg"==n&&(r=It(JSON.parse(a).content));if(!(s?.length>0))return a;{let t=[];if(s.map(((a,s)=>{Object.entries(a).map((([a,n])=>{Object.entries(n).map((([n,r])=>{r.elements.map((r=>{let l=e?.[s]?.[a]?.[n]?.elements?e[s][a][n].elements:[];var o=l.findIndex((e=>e?.id==r?.id));let d={id:r?.id,data:[]};Object.entries(r).map((([e,a])=>{if("wdkitai_image_type"!=e){if(o>-1&&l[o][e]&&(a=l[o][e]),"wdkitai_social_icon_order"==e){const e=a.split("|").map((e=>e.trim()));let t=i.site_info.social_links?i.site_info.social_links:"",s=[];e.map((e=>{t?.[e]?s.push(t?.[e]):s.push("")})),a=s}if("wdkitai_admin_detail_order"==e&&a&&"info"==r?.wdkitai_info_type){const e=a?.split("|").map((e=>e.trim()));let t=i.site_info?i.site_info:"",s=[],n=[];e.map((e=>{t?.[e]?(s.push(t?.[e]),"phone"==e?n.push("tel:"+t?.[e]):"email"==e?n.push("mailto: "+t?.[e]):n.push("#")):(s.push(void 0),n.push(void 0))})),a=[s,n]}if("wdkitai_image_description_type"==e&&i.site_info?.logo&&"site_logo"==a){var s=i.site_info?.logo?.default?i.site_info.logo.default:"";let t=r?.wdkitai_site_logo?r.wdkitai_site_logo:"";t&&i.site_info?.logo?.[t]&&(s=i.site_info?.logo?.[t]),e="wdkitai_image_type",a=[s]}if("id"!=e&&a?.length>0){let i=e+"_replace";if(r?.[i])if("wdkitai_admin_detail_order"==e){let e=r?.[i],t=r?.wdkitai_admin_detail_link_replace;d.data.push({[e]:a[0]}),d.data.push({[t]:a[1]})}else Array.isArray(a)&&(r?.accor_inner_key&&a.length>0&&a.map(((e,a)=>{let i=r?.accor_inner_key[a],s={id:i,data:[{accordianList:[e]}]};t.push(s)})),d.data.push({[r?.[i]]:a}))}}})),t.push(d)}))}))}))})),"elementor"==n){let e=ma(t,r),i=Object.assign({},JSON.parse(a),{content:e});return JSON.stringify(i)}if("gutenberg"==n){let e=pa(t,r),i=ca(e,JSON.parse(a).content),s=Object.assign({},JSON.parse(a),{content:i});return JSON.stringify(s)}}},ca=(e,t)=>{let a=(e=>[...e.matchAll(/|-->)/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},pa=(e,t)=>{let a=["descurl","IBoxLink","link","imageStore","svgStore","tLink","btnLink","bLink"];return(t=>{const i=t=>{if(Array.isArray(t))return t.map((t=>{if("tp-container"!==t.type&&t.object){"tp-accordion"==t.type&&"editor"==t.object?.accorType&&Array.isArray(t.inner_con)&&i(t.inner_con);let s=e.findIndex((e=>e?.id==t.object?.block_id));s>-1&&e[s]?.data?.length>0&&(e[s].data.map((e=>{Object.entries(e).map((([e,i])=>{t.object?.[e]?"image"!=e&&"tImg"!=e&&"TImage"!=e||null==t.object[e]?.url?"accordianList"==e?(t.object[e][0].title=i[0],t.object.title=i[0]):a.includes(e)&&t.object[e]?.url?oa(i[0])&&(t.object[e].url=i[0]):null!=i[0]&&(t.object[e]=i[0]):t.object[e].url=i[0]:Object.entries(t.object).map((([a,s])=>{var n=0;"object"==typeof s&&(s?.length>0?s.map(((t,a)=>{t[e]&&null!=i[a]&&(n++,"linkUrl"!=e&&"link"!=e||null==t[e]?.url?"descurl"==e&&null!=t[e]?.url?t[e].url=i[a]:t[e]=i[a]:oa(i[a])&&(t[e].url=i[a]))})):s[e]&&null!=i[0]&&(s[e]=i[0])),0==n&&d.includes(e)&&(t.object[e]=i[0])}))}))})),t.object.blockRender=!0)}Array.isArray(t.inner_con)&&i(t.inner_con)})),t};return i(t)})(t)},ma=(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])=>{if(t.settings?.[e])if("image"!=e&&"svg_logo"!=e||null==t.settings[e]?.url)if("link"!=e&&"sc_link"!=e||!t.settings[e]?.url)if("icon_fontawesome_5"==e){let i=(e=>{if(null==e)return null;let t=String(e).trim().toLowerCase().replace(/\s+/g," ");if(""===t)return null;const a={"fa-solid":"fas","fa-regular":"far","fa-light":"fal","fa-duotone":"fad","fa-brands":"fab","fa-thin":"fat"},i={fas:"fa-solid",far:"fa-regular",fal:"fa-light",fad:"fa-duotone",fab:"fa-brands",fat:"fa-thin"};let s=t.split(" ").filter(Boolean);s.length>1&&a[s[0]]&&(s[0]=a[s[0]]);let n=null,r=null;for(const e of s)i[e]?n=e:!e.startsWith("fa-")||a[e]?e.startsWith("fa")||null!==r||(r=e):r=e.slice(3);return r?(r=r.replace(/^fa-/,"").replace(/[^a-z0-9-]/g,""),""===r?null:(n=n||"fas",{value:n+" fa-"+r,library:i[n]})):null})(a[0]);i&&(t.settings[e].value=i.value,t.settings[e].library=i.library)}else null!=a[0]&&(t.settings[e]=a[0]);else t.settings[e].url=a[0];else t.settings[e].url=a[0];else Object.entries(t.settings).map((([t,s])=>{"object"==typeof s&&(s?.length>0?s.map(((t,s)=>{if(!t[e])return;let n=a[s],r="social_url"==e||"social_icon"==e||"link"==e||"sc_link"==e?(e=>{var t;let a="";if(["pt_plus_social_icons","social","social_icon","icon"].some((t=>{let i=e?.[t]&&"object"==typeof e[t]?e[t]?.value:e?.[t];return"string"==typeof i&&""!==i.trim()&&(a=i,!0)})),""===a)return"";let i=a.trim().toLowerCase().split(/\s+/).pop();return i=i.replace(/^fa[bsrl]?-/,"").replace(/-(f|in|square|circle|alt)$/,""),null!==(t={x:"twitter","x-twitter":"twitter",fb:"facebook","linked-in":"linkedin",yt:"youtube"}[i])&&void 0!==t?t:i})(t):"";if(""!==r){var l,o;let e=null!==(l=i?.site_info?.social_links)&&void 0!==l?l:{};n=null!==(o=e?.[r])&&void 0!==o?o:""}null!=n&&("social_url"!=e&&"link"!=e&&"sc_link"!=e||null==t[e]?.url?"social_icon"==e&&void 0!==t.link?t.link.url=n:t[e]=n:t[e].url=n)})):s[e]&&(s[e]=a[0]))}))}))}))}Array.isArray(t.elements)&&a(t.elements)})),t};return a(t)})(t),ua=async(e,a,i=!1)=>{let n=a?.title?.split("|"),r=n?.[0]?.toLowerCase(),l=n?.[0],o=Fe.current.findIndex((t=>t?.id==e?.data?.id));l&&(a.title=l),r&&(a.slug=r);var d=JSON.stringify(a);if("elementor"==t?.kit_builder&&-1==o){var c=d.match(/https:\/\/etemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(c?.length>0){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(\?|#|\\|\"|\'|\s|$)/i;c.map((t=>{e.test(t)||(d=d.replaceAll('"'+t+'"','"#"'))}))}}else if("gutenberg"==t?.kit_builder&&(c=d.match(/https:\/\/gtemplates\.wdesignkit\.com\/[^\s"')]+/gi),c?.length>0)){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(?:[?#\\\/&;\"'\s]|$)/i;c.map((t=>{e.test(t)||(d=d.replaceAll(t,"#\\"))}))}try{var p,m;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",d),o>-1&&t.append("temp_type","navigation"),i&&t.append("defer_media","true");var u=await s().post(ajaxurl,t).then((e=>e.data));u?.content&&Fe.current?.[o]&&(Fe.current[o].content=u?.content,Fe.current[o].id=u?.inserted_id);let n=null!==(p=a?.page_id)&&void 0!==p?p:"",r=null!==(m=e?.data?.temp_data?.wp_post_type)&&void 0!==m?m:"",l={title:e?.data?.temp_data?.title,inserted_id:u?.inserted_id,old_page_id:n,post_type:r};-1==Oe.current.findIndex((e=>e.inserted_id==u?.inserted_id))&&Oe.current.push(l)}catch(e){u=!1}return u},ha=async()=>{const e=Le.current;if(!Array.isArray(e)||0===e.length)return;Le.current=[];const t=Be.current,a=e=>{const a=t.indexOf(Number(e?.post_id));return-1===a?Number.MAX_SAFE_INTEGER:a},i=[...e].sort(((e,t)=>a(e)-a(t))),n=async e=>{try{let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","wkit_run_deferred_media_now"),t.append("post_id",e?.post_id),t.append("builder",e?.builder?e.builder:""),t.append("image_urls",JSON.stringify(Array.isArray(e?.image_urls)?e.image_urls:[])),await s().post(ajaxurl,t)}catch(t){Vr("[wdkit-import] deferred media drain failed for post "+e?.post_id,t)}const t=Ie.current.find((t=>Number(t?.post_id)===Number(e?.post_id)));t?.url&&await ga([t.url])},r=Array.from({length:Math.min(3,i.length)},(async()=>{for(;i.length>0;)await n(i.shift())}));await Promise.all(r)},ga=async e=>{const t=Array.isArray(e)?e.filter((e=>"string"==typeof e&&""!==e)):[];if(0===t.length)return;const a=Array.from({length:Math.min(3,t.length)},(async()=>{for(;t.length>0;){const e=t.shift();try{await fetch(e,{credentials:"same-origin",cache:"no-store"})}catch(t){Vr("[wdkit-import] page warm-up failed for "+e,t)}}}));await Promise.all(a)},wa=async e=>{let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","wdkit_update_site_setting"),a.append("builder",t.kit_builder),a.append("site_data",JSON.stringify(e)),await s().post(ajaxurl,a).then((async e=>await e.data))},_a=e=>{let t=e.content;var a=JSON.stringify(e);let i=["tp-tabs-tours","tp-accordion","tp-switcher","tp-carousel-anything","tp-off-canvas","tp-wp-quickview","tp-product-listout","tp-navigation-menu-lite"];const s=e=>{if(e.hasOwnProperty("widgetType")&&e.widgetType&&i.includes(e.widgetType)){var t=JSON.stringify(e.settings);Object.keys(U.current).map((e=>{e&&(t=t.replaceAll([e],U.current?.[e]))})),a=a.replace([JSON.stringify(e.settings)],t)}e.elements&&Array.isArray(e.elements)&&e.elements.length>0&&e.elements.map((e=>s(e)))};return t.map((e=>s(e))),JSON.parse(a)},fa=async(e,s,n=-1,r=!1)=>{try{let f=null;var l="";let k=[];if(t?.kit_template?.length>0){let e=t.kit_template.findIndex((e=>e.title.toLowerCase().includes("landing")||e.title.toLowerCase().includes("home")));e>-1&&(l=e)}let b=he.current?.[e?.id];if(b?delete he.current[e.id]:b=await Bt(e),await Ct(JSON.parse(b?.data?.response?.content)?.content,b?.data?.args?.editor,"page "+e?.id),!b?.success)return{message:(0,a.__)("Fail to get Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit"),success:!1};{var o=b.data?.response?.content?b.data.response.content:"",d=JSON.parse?.(o)?JSON.parse(o):[];let y=d.title.toLowerCase().trim(),x=d?.settings?d.settings:"";if(i?.wirefram_import&&(d=await zt(d),o=JSON.stringify(d)),l?l==n&&d.site_settings?wa(d?.site_settings):l="":d?.site_settings&&!ne.current&&wa(d.site_settings),"elementor"==t?.kit_builder?await it(d?.content):"gutenberg"==t?.kit_builder&&await at(d?.content),"yes"==x?.wdkitai_page_setting||1==x?.wdkitai_page_setting){var c=x?.wdkitai_page_type?x?.wdkitai_page_type:"custom";if("elementor"==t?.kit_builder)var p=await Mt(d?.content);else"gutenberg"==t?.kit_builder&&(p=await Rt(d?.content))}if(p){if("elementor"==t?.kit_builder)var m=await Ve(d?.content,s),u=Object.assign({},d,{content:m});else if("gutenberg"==t?.kit_builder){var h=d?.content;h=h.replaceAll("--tpgb","\\u002d\\u002dtpgb"),m=await qe(h,s),u=Object.assign({},d,{content:m})}let n=[{[c]:p.detailsection}],l={[c]:p.sectionMap};if("ai_import"==i?.import_type){let t=ur(i?.images?.length>0?i.images:[]);if(k=hr(t),r){var g=[];f={detail_parent:n,parent:l}}else if(pe.current?.[e.id])g=pe.current?.[e.id];else{let t=await aa(l,e?.id);if(!t.success){g=[];var w=(0,a.__)("Fail to Generate AI content","wdesignkit");return t?.message&&(w+=": "+t?.message),{success:!1,message:w,description:(0,a.__)("","wdesignkit")}}g=t.data}if(i?.wirefram_import)var _=JSON.stringify(u);else{let e=await ia(d);_=await na(JSON.stringify(u),t,e?.ai),_=await la(_,e?.ai_team)}_=await da(g,_,n),u=JSON.parse(_)}else g=[]}else"elementor"==t?.kit_builder?(m=await Ve(JSON.parse(o)?.content,s),u=Object.assign({},JSON.parse(o),{content:m})):"gutenberg"==t?.kit_builder&&(m=await qe(JSON.parse(o)?.content,s),u=Object.assign({},JSON.parse(o),{content:m}));let v=d?.custom_meta;if(v){let t=v?.["nxt-hooks-layout-sections"];if(t?.includes("header")||t?.includes("footer")){if(r)return{success:"defer_hf",message:(0,a.__)("Header/Footer deferred","wdesignkit"),description:(0,a.__)("","wdesignkit")};ce.current.push({result:b,content:JSON.stringify(u)});let t=Object.assign({},pe.current,{[e?.id]:g});return pe.current=t,{success:"loading",message:(0,a.__)("Header and Footer section","wdesignkit"),description:(0,a.__)("","wdesignkit")}}}"gutenberg"==t?.kit_builder&&(u=He(u)),Object.values(U.current).length>0&&"elementor"==t?.kit_builder&&(u=_a(u)),"elementor"==t?.kit_builder&&(e=>{let t=e.content,a=["tp-navigation-menu"];var i=!1;let s=e?.title?e.title:"";if(s){let e=s?.split("|")?.[0].trim(),t=e?.split("-")?.[1]?.trim();"menu"==t?.toLocaleLowerCase()&&(i=!0)}const n=e=>{e.hasOwnProperty("widgetType")&&e.widgetType&&a.includes(e.widgetType)&&(i=!0),e.elements&&Array.isArray(e.elements)&&e.elements.length>0&&e.elements.map((e=>n(e)))};return t.map((e=>n(e))),i})(u)&&Fe.current.push({id:e.id,content:""});let j=await ua(b,u,!0);if(!j?.success){let t=Object.assign({},pe.current,{[e?.id]:g});return pe.current=t,{success:!1,message:(0,a.__)("Fail to import Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit")}}{let a=e?.id,s={id:a,site_url:j[e?.id].view,post_url:e.post_url};de.current.push(s);let n=[...Array.isArray(b?.data?.response?.image_urls)?b.data.response.image_urls:[],...Array.isArray(j?.image_urls)?j.image_urls:[],...k];if(n.length>0&&Te.current.push({post_id:j[e?.id].id,builder:t?.kit_builder,image_urls:n}),r&&f&&Ae.current.push({id:e.id,post_id:j[e?.id].id,new_json:u,detail_parent:f.detail_parent,builder:t?.kit_builder}),"section"==e?.type){let t=j[e?.id].id;Object.assign(U.current,{[d.page_id]:t})}if(ie.current||!y.includes("landing")&&!y.includes("home")||(ie.current=j[e?.id].id),i?.plugin_setting?.length>0){let t=i.plugin_setting.findIndex((e=>"ecommerce"==e?.name));t>-1&&i.plugin_setting[t]?.required&&!se.current&&y.includes("store")&&(se.current=j[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 import Template","wdesignkit"),description:(0,a.__)("","wdesignkit")}}},ka=()=>{Fe.current.map((async e=>{var t=JSON.stringify(e.content);de.current.map((e=>{let a=e.post_url,i=e.site_url;a.endsWith("/")&&(a=a.slice(0,-1));const s=a.replace(/\//g,"\\/");t=(t=(t=(t=(t=(t=t.replaceAll(`"${s}"`,`"${i}"`)).replaceAll(`"${s}/"`,`"${i}"`)).replaceAll(`"${a}"`,`"${i}"`)).replaceAll(`"${a}/"`,`"${i}"`)).replaceAll(`\\"${a}\\"`,`\\"${i}\\"`)).replaceAll(`\\"${a}/\\"`,`\\"${i}\\"`)}));var a=t.match(/https:\/\/etemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(a?.length>0){let e=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(\?|#|\\|\"|\'|\s|$)/i;a.map((a=>{e.test(a)||(t=t.replaceAll('"'+a+'"','"#"'))}))}let i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","wkit_update_elementor_template"),i.append("template_id",e.id),i.append("data",t),await s().post(ajaxurl,i).then((e=>e.data))}))},ba=async e=>{var i=e?.result?e.result:"",s=e?.content?e.content:[];de.current.map((e=>{let a=e.post_url,i=e.site_url;a.endsWith("/")&&(a=a.slice(0,-1));const n=a.replace(/\//g,"\\/");Object.values(U.current).length>0&&"elementor"==t?.kit_builder&&(s=_a(JSON.parse(s)),s=JSON.stringify(s)),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 ua(i,JSON.parse(s),!0);if(n?.success){const e=[...Array.isArray(i?.data?.response?.image_urls)?i.data.response.image_urls:[],...Array.isArray(n?.image_urls)?n.image_urls:[]];return e.length>0&&Te.current.push({post_id:n.inserted_id,builder:t?.kit_builder,image_urls:e}),ee.current.push(n.inserted_id),{success:!0,message:(0,a.__)("Template Imported successfully","wdesignkit"),description:(0,a.__)("","wdesignkit")}}return{success:!1,message:(0,a.__)("Fail to import Template JSON","wdesignkit"),description:(0,a.__)("","wdesignkit")}},ya=async()=>{le("import_kit start");let e=t?.kit_template?.length>0?t.kit_template:[],r={color:oe.current.color,typography:oe.current.typo},l=[];const o=Promise.all([(async()=>{if(i?.blog_post&&!((await ut()).data.count>4)){l.push({id:0,label:(0,a.__)("Importing Blog Posts","wdesignkit"),status:"loading"}),N([...l]),le("Blog posts import start");let e=await(async()=>{const e=yt();if("ai_import"==i?.import_type){const t=yt();let a=await vt();if(bt.generate_post_data=yt()-t,a?.success){let t=JSON?.parse(a?.response)?JSON.parse(a.response):[];const i=yt();let s=await jt(t);return bt.taxonomy=yt()-i,await $t(s),bt.total=yt()-e,xt(),(()=>{try{const e=_e.current,t={};e.forEach((e=>{t[e.widget_id]||(t[e.widget_id]={calls:0,sources:[],time_ms:0}),t[e.widget_id].calls++,t[e.widget_id].sources.push(e.source),t[e.widget_id].time_ms+=e.duration_ms}));const a=Object.keys(t).length,i=e.length-a,s=(e.reduce(((e,t)=>e+t.duration_ms),0)/1e3).toFixed(2);Or("[WDKIT WIDGET TIMING] ---- widget download report ----"),Or(` Total calls: ${e.length}`),Or(` Unique widgets: ${a}`),Or(` Duplicate calls: ${i}`),Or(` Total widget download time: ${s}s`),Object.entries(t).forEach((([e,t])=>{Or(` ${e} | calls=${t.calls} | time=${(t.time_ms/1e3).toFixed(2)}s | sources=${t.sources.join(",")}`)}));const n={};fe.current.forEach((e=>{n[e.widget_id]||(n[e.widget_id]={ran:0,skipped:0,sources:[]}),e.ran?n[e.widget_id].ran++:n[e.widget_id].skipped++,n[e.widget_id].sources.push(e.source)})),Or("[WDKIT WIDGET TIMING] ---- Create_widget report ----"),Object.entries(n).forEach((([e,t])=>{Or(` ${e} | ran=${t.ran} | skipped_as_duplicate=${t.skipped} | sources=${t.sources.join(",")}`)}))}catch(e){}})(),!0}return bt.total=yt()-e,xt(),!1}{let e={posts:[{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"]},{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"]},{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"]},{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"]},{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"]},{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 jt(e);return await $t(t),!0}})();if(le("Blog posts import done"),e){let e=[...l],t=e.findIndex((e=>0==e.id));t>-1&&(e[t].status="done",e[t].label=(0,a.__)("Imported Blog Posts","wdesignkit"),N([...e]))}else{let e=[...l],t=e.findIndex((e=>0==e.id));t>-1&&(e[t].status="fail",N([...e]))}}})().catch((e=>{Vr("[wdkit-import] blog post step failed",e)})),(async()=>{if(i?.plugin_setting?.length>0){let e=i.plugin_setting.findIndex((e=>"ecommerce"==e?.name));if(e>-1&&i.plugin_setting[e]?.required&&(await(async()=>{let e=new FormData;e.append("action","get_wdesignkit"),e.append("kit_nonce",wdkitData.kit_nonce),e.append("type","enable_template_widgets"),e.append("widget_list",JSON.stringify(["tp-product-listout","tp-woo-cart","tp-search-filter","tp-woo-checkout","tp-woo-compare","tp-woo-multi-step","tp-woo-single-tabs","tp-woo-single-basic","tp-woo-single-image","tp-woo-thank-you","tp-woo-myaccount","tp-woo-wishlist","tp-wp-quickview","tp-woo-order-track","tp-woo-single-pricing"])),await s().post(ajaxurl,e).then((e=>e))})(),(await ht()).count<5)){l.push({id:1,label:(0,a.__)("Importing Products","wdesignkit"),status:"loading"}),N([...l]),le("Products import start");let e=await(async()=>{let e=["simple","discount","variation","out_of_stock","simple","discount"];if("ai_import"==i?.import_type){let e=await kt();if(!e?.success||!e?.response)return!1;var t=JSON.parse(e.response)}else t={products:[{title:"Classic Cool Kids Denim",description:"Stylish and durable kids denim, perfect for everyday casual comfort wear",price:"200",category:["Kid's"]},{title:"Fit and Flare Dresses",description:"Elegant fit and flare dresses designed for flattering, feminine everyday style",price:"300",category:["Women"]},{title:"Body Con Jacket",description:"Sleek body con jacket offering a modern, snug, and stylish silhouette",price:"150",category:["Men"]},{title:"Modern Tailored Trousers",description:"Sharp tailored trousers crafted for a clean, modern, and polished look",price:"130",category:["Men"]},{title:"Dazzling Denim Duster Coat",description:"Statement denim duster coat with dazzling style and contemporary fashion appeal",price:"150",category:["Women"]},{title:"Cozy Couture Cardigan",description:"Soft cozy cardigan blending comfort with chic couture-inspired everyday elegance",price:"190",category:["Women"]}],categories:["Men","Women","Kid's"]};if(t?.products?.length>0){let a=await(async()=>{let e=n+"assets/images/jpg/woocommerce-placeholder.webp",t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","save_wp_images"),t.append("image",e);let a=await s().post(ajaxurl,t).then((e=>e.data)).catch((()=>null));return a?.success?a?.id:null})();return await Promise.all(t.products.map((async(t,i)=>{Object.assign(t,{type:e[i]}),await(async(e,t=null)=>{let a=n+"assets/images/jpg/woocommerce-placeholder.webp",i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","wkit_cteate_product"),i.append("product_title",e?.title),i.append("product_desc",e?.description),i.append("product_price",Number(e?.price)),i.append("product_type",e?.type),t?i.append("product_image_id",t):i.append("product_image",a),i.append("product_category",JSON.stringify(e?.category));let r=await s().post(ajaxurl,i).then((e=>e.data));return!!r?.success})(t,a)}))),!0}return!1})();if(le("Products import done"),e){let e=[...l],t=e.findIndex((e=>1==e.id));t>-1&&(e[t].status="done",e[t].label=(0,a.__)("Imported Products","wdesignkit"),N([...e]))}else{let e=[...l],t=e.findIndex((e=>1==e.id));t>-1&&(e[t].status="fail",N([...e]))}}}})().catch((e=>{Vr("[wdkit-import] product step failed",e)}))]);if(e.length>0){await Promise.all(e.map((e=>{let t=e.title.split("|"),a=t?.[0];l.push({id:e.id,label:a,status:"loading"}),N(l)})));{let n=!1;if(Wt("preparing"),le("Bundle+create start"),n="ai_import"!=i?.import_type&&"gutenberg"!=t?.kit_builder?await(async e=>{if(!Array.isArray(e)||0===e.length)return!1;const a="undefined"!=typeof performance?performance.now():Date.now();Or("[wdkit-import] Import started (non-AI kit, "+e.length+" template(s))");try{const n=p(),r=e.map((e=>{let t=Dt(e.post_builder);return{id:e.id,title:e?.title?e.title:"",wp_post_type:e?.wp_post_type?e.wp_post_type:"page",_editor:"wdkit"==wdkitData.use_editor&&t?t:wdkitData.use_editor}}));await(async(e,a)=>{try{let i=new FormData;i.append("action","get_wdesignkit"),i.append("kit_nonce",wdkitData.kit_nonce),i.append("type","wkit_fetch_site_bundle"),i.append("widgets_only",!0),i.append("template_ids",JSON.stringify(e)),i.append("website_kit",t.kit_data.id),i.append("email",a?.user_email?a.user_email:""),i.append("editor",wdkitData.use_editor),i.append("builder",t?.kit_builder?t.kit_builder:"");const n=await s().post(ajaxurl,i).then((e=>e.data)).catch((e=>({__net:e?.message||"network error"})));if(n?.__net||!n?.success)return void Vr("[wdkit-bundle] widget manifest unavailable, importing without enabling:",n?.__net||n?.message||n);xe.current.push(...Array.isArray(n.widgets)?n.widgets:[]),ve.current.push(...Array.isArray(n.extensions)?n.extensions:[]),await Kt()}catch(e){Vr("[wdkit-bundle] widget manifest threw, importing without enabling",e)}})(r,n);let l=new FormData;l.append("action","get_wdesignkit"),l.append("kit_nonce",wdkitData.kit_nonce),l.append("type","wkit_import_site_bundle"),l.append("template_ids",JSON.stringify(r)),l.append("website_kit",t.kit_data.id),l.append("email",n?.user_email?n.user_email:""),l.append("editor",wdkitData.use_editor),l.append("builder",t?.kit_builder?t.kit_builder:""),l.append("custom_meta",!0),l.append("defer_media",!0),i?.wirefram_import&&l.append("wirefram_import",!0);const o=await s().post(ajaxurl,l).then((e=>e.data)).catch((e=>({__net:e?.message||"network error"})));if(o?.__net)return Vt("import_site_bundle network error",o.__net);if(!o?.success)return Vt("import_site_bundle returned success=false",{message:o?.message,errors:o?.errors});if(!Array.isArray(o?.imported)||0===o.imported.length)return Vt("import_site_bundle imported nothing",o?.errors||o);o?.timing_ms&&Or("[wdkit-bundle] server timing:",o.timing_ms),o?.errors?.length&&Vr("[wdkit-bundle] some templates failed but the kit continued:",o.errors);const d=((("undefined"!=typeof performance?performance.now():Date.now())-a)/1e3).toFixed(1);return Or(`[wdkit-import] Critical path total: ${d} sec`),o}catch(e){return Vt("import_site_bundle threw",e?.message)}})(e):await(async(e,a)=>{const i="undefined"!=typeof performance?performance.now():Date.now();Or("[wdkit-import] Import started (AI kit, "+e.length+" template(s))");const n=i,r=await qt(e);Or(`[wdkit-import] Bundle loaded: ${((("undefined"!=typeof performance?performance.now():Date.now())-n)/1e3).toFixed(1)} sec`);const l=ta(e);if(await Promise.resolve(l).catch((()=>null)),!r)return!1;Wt("personalizing");const o="sb"+Date.now().toString(36)+Math.random().toString(36).slice(2,8),d=Array.isArray(r?.sections)?r.sections:[],c=Array.isArray(r?.pages)?r.pages:[];let p=!1,m=[];if(d.length>0){const t=await Ut(d,e,a);if(0===t.length)return Vt("every section failed to personalize",d.length+" section(s)");if(m=m.concat(t.filter((e=>e?._wdkit_ai_pending))),Wt("creating"),p=await Yt(r,t,o,{first:!0,final:0===c.length}),!p)return!1;(p.imported||[]).forEach((e=>{e?.old_page_id&&e?.id&&Object.assign(U.current,{[e.old_page_id]:e.id})}))}if(c.length>0){Wt("personalizing");const t=await Ut(c,e,a);if(0===t.length)return Vt("every page failed to personalize",c.length+" page(s)");m=m.concat(t.filter((e=>e?._wdkit_ai_pending))),Wt("creating");const i=await Yt(r,t,o,{first:0===d.length,final:!0});p=!!i&&Zt(p,i)}const u=((("undefined"!=typeof performance?performance.now():Date.now())-i)/1e3).toFixed(1);return Or(`[wdkit-import] Critical path total (site usable): ${u} sec`),p&&m.length>0&&(async(e,t,a,i)=>{if(!Array.isArray(t)||0===t.length)return;const n=()=>"undefined"!=typeof performance?performance.now():Date.now(),r=n();try{await e}catch(e){return void Wr("[wdkit-import] background AI prefetch failed",e)}const l={};(a||[]).forEach((e=>{e?.template_id&&(l[e.template_id]=e.id)}));for(const e of t){const t=l[e.id],n=pe.current?.[e.id];if(t&&n)try{const r=await da(n,e.content,e._wdkit_ai_detail_parent,i),l=JSON.parse(r);let o="gutenberg"===i?l?.content?l.content:"":JSON.stringify(l?.content?l.content:[]);o=Xt(o,a);let d=new FormData;d.append("action","get_wdesignkit"),d.append("kit_nonce",wdkitData.kit_nonce),d.append("type","wdkit_update_page_content"),d.append("post_id",t),d.append("builder",i),d.append("content",o);const c=await s().post(ajaxurl,d).then((e=>e.data)).catch((e=>({__net:e?.message||"network error"})));!c?.__net&&c?.success||Wr("[wdkit-import] background AI patch failed for post",t,c?.__net||c?.message)}catch(t){Wr("[wdkit-import] background AI personalize failed for template",e.id,t)}}Or(`[wdkit-import] Background AI: ${((n()-r)/1e3).toFixed(1)} sec (${t.length} page(s))`),le("Background AI done (patches applied, off critical path)")})(l,m,p.imported,r?.builder||t?.kit_builder),p})(e,r),le("Bundle+create done (pages exist)"),n){Wt("creating");let t=[...l];(n.imported||[]).forEach((a=>{let i=t.findIndex((e=>e.id==a?.template_id));if(i>-1&&(t[i].status="done"),a?.template_id&&a?.view){let t=e.find((e=>e.id==a.template_id));de.current.push({id:a.template_id,site_url:a.view,post_url:t?.post_url?t.post_url:""})}})),(n.errors||[]).forEach((e=>{let i=t.findIndex((t=>t.id==e?.id));i>-1&&(t[i].status="fail"),K.current.push({id:e?.id,message:e?.message?e.message:(0,a.__)("Fail to get import Template","wdesignkit"),description:e?.description?e.description:(0,a.__)("","wdesignkit"),success:!1})})),N([...t]),n?.front_page_id&&(ie.current=n.front_page_id),n?.shop_page_id&&(se.current=n.shop_page_id),(n.imported||[]).forEach((e=>{if(!e?.id)return;-1==Oe.current.findIndex((t=>t.inserted_id==e.id))&&Oe.current.push({title:e?.title?e.title:"",inserted_id:e.id,old_page_id:e?.old_page_id?e.old_page_id:"",post_type:e?.post_type?e.post_type:""})}));let i=[...k],s=i.findIndex((e=>"setting_up_site"==e?.name)),r=t.filter((e=>0!==e?.id)),o=r.filter((e=>"done"!=e?.status));return s>-1&&(r.length>0&&o.length==r.length?i[s].status="fail":o.length>0?i[s].status="error":(i[s].status="done",i[s].accordion=!1)),y(i),O(!0),le("Site Ready flag set"),le("update_site_page start"),await xa(),void le("update_site_page done")}Wt("legacy")}"ai_import"==i?.import_type&&await(async e=>{if(Array.isArray(e)&&!(e.length<2))try{const a=p(),i=e.map((e=>{let t=Dt(e.post_builder);return Object.assign({},e,{_editor:"wdkit"==wdkitData.use_editor&&t?t:wdkitData.use_editor})}));let n=new FormData;n.append("action","get_wdesignkit"),n.append("kit_nonce",wdkitData.kit_nonce),n.append("type","wkit_import_kit_bundle"),n.append("template_ids",JSON.stringify(i)),n.append("website_kit",t.kit_data.id),n.append("email",a?.user_email?a.user_email:""),n.append("editor",wdkitData.use_editor),n.append("builder",t?.kit_builder?t.kit_builder:""),n.append("custom_meta",!0);const r=await s().post(ajaxurl,n).then((e=>e.data)).catch((()=>!1)),l=r?.results;if(!r?.success||!Array.isArray(l))return;l.forEach((e=>{e?.id&&e?.success&&(he.current=Object.assign({},he.current,{[e.id]:{success:!0,data:e.data,message:e.message}}))}))}catch(e){}})(e).catch((()=>null));const n=!1;let o=!1,d=Promise.resolve();Ae.current=[];let c=[];if(n){const t=await Qt(e).catch((()=>[]));if(t.length>=2)o=!0,d=ea(t);else if(t.length>0)try{await ea(t)}catch(e){}}else await ta(e);let m=[...l];if(await Promise.all(e.filter(((e,t)=>{if("section"==e?.type)return e;J.current.push(e)})).map((async(e,t)=>{let i=m.findIndex((t=>t.id==e.id));try{const s=await fa(e,r,t,o);if(!s.success){m[i].status="fail",N([...m]);let t={id:e.id,message:s?.message?s.message:(0,a.__)("Fail to get import Template","wdesignkit"),description:s?.description?s.description:(0,a.__)("","wdesignkit"),success:!1};return void K.current.push(t)}if("loading"==s.success)return m[i].status="loading",void N([...m]);if("defer_hf"==s.success)return c.push(e),m[i].status="loading",void N([...m]);m[i].status="done",N([...m])}catch(t){console.error(t),m[i].status="fail";let s={id:e.id,message:(0,a.__)("Fail to get import Template","wdesignkit"),description:t?.message?t.message:(0,a.__)("","wdesignkit"),success:!1};return K.current.push(s),void N([...m])}}))),await Promise.all(J.current.map((async(e,t)=>{let i=m.findIndex((t=>t.id==e.id));try{const s=await fa(e,r,t,o);if(!s.success){m[i].status="fail",N([...m]);let t={id:e.id,message:s?.message?s.message:(0,a.__)("Fail to get import Template","wdesignkit"),description:s?.description?s.description:(0,a.__)("","wdesignkit"),success:!1};return void K.current.push(t)}if("loading"==s.success)return m[i].status="loading",void N([...m]);if("defer_hf"==s.success)return c.push(e),m[i].status="loading",void N([...m]);m[i].status="done",N([...m])}catch(t){console.error(t),m[i].status="fail";let s={id:e.id,message:(0,a.__)("Fail to get import Template","wdesignkit"),description:t?.message?t.message:(0,a.__)("","wdesignkit"),success:!1};return K.current.push(s),void N([...m])}}))),o&&(O(!0),await d,await(async()=>{const e=Array.isArray(Ae.current)?Ae.current:[];await Promise.all(e.map((async e=>{try{const t=pe.current?.[e.id];if(!t||!e?.post_id)return;let a,i=await da(t,JSON.stringify(e.new_json),e.detail_parent,e.builder),n=JSON.parse(i);if("gutenberg"==e.builder){a=n?.content?n.content:"",a=Xt(a,de.current.map((e=>({post_url:e.post_url,view:e.site_url}))));let e=a.match(/https:\/\/gtemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(e?.length>0){let t=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(?:[?#\\\/&;\"'\s]|$)/i;e.map((e=>{t.test(e)||(a=a.replaceAll(e,"#\\"))}))}}else{let e=JSON.stringify(n?.content?n.content:[]);e=Xt(e,de.current.map((e=>({post_url:e.post_url,view:e.site_url}))));let t=e.match(/https:\/\/etemplates\.wdesignkit\.com\/[^\s"')]+/gi);if(t?.length>0){let a=/\.(jpg|jpeg|png|gif|svg|webp|avif|bmp)(\?|#|\\|\"|\'|\s|$)/i;t.map((t=>{a.test(t)||(e=e.replaceAll('"'+t+'"','"#"'))}))}a=e}let r=new FormData;r.append("action","get_wdesignkit"),r.append("kit_nonce",wdkitData.kit_nonce),r.append("type","wdkit_update_page_content"),r.append("post_id",e.post_id),r.append("builder",e.builder),r.append("content",a),await s().post(ajaxurl,r).catch((()=>null))}catch(t){console.warn("AI content update failed for page",e?.id,t)}})))})(),await Promise.all(c.map((async e=>{try{await fa(e,r,-1,!1)}catch(e){console.error(e)}}))),N([...m])),Fe.current.length>0&&ka(),ce.current.length>0){ee.current=[],await Promise.all(ce.current.map((async e=>{var t=e?.result?e.result:"";let a=await ba(e),i=t?.data?.id?t.data.id:"",s=m.findIndex((e=>e.id==i));a?.success?s>-1&&(m[s].status="done",N([...m])):s>-1&&(m[s].status="fail",N([...m]))})));let e=[...k],t=e.findIndex((e=>"setting_up_site"==e?.name)),a=l.filter((e=>"done"!=e?.status));a.length==l.length?e[t].status="fail":a.length>0?e[t].status="error":(e[t].status="done",e[t].accordion=!1),y(e),await xa()}else{let e=[...k],t=e.findIndex((e=>"setting_up_site"==e?.name)),a=l.filter((e=>"done"!=e?.status));a.length==l.length||Me?.current?e[t].status="fail":a.length>0?e[t].status="error":(e[t].status="done",e[t].accordion=!1),y(e),await xa()}}await o},xa=async()=>{let e=[...k],a=e.findIndex((e=>"finalizing_site_setting"==e?.name));a>-1&&(e[a].status="loading",y(e)),"gutenberg"==t?.kit_builder&&await Je();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",ie.current),se.current&&l.append("shop_id",se.current),l.append("temp_type","page"),l.append("site_name",n),l.append("site_tagline",r),l.append("page_information",JSON.stringify(Oe.current)),await(async()=>{if(0==Te.current.length)return;let e=Te.current;Te.current=[],Le.current=e;let t=new FormData;t.append("action","get_wdesignkit"),t.append("kit_nonce",wdkitData.kit_nonce),t.append("type","wkit_schedule_deferred_media_sync"),t.append("pages",JSON.stringify(e));const a=await s().post(ajaxurl,t).then((e=>e.data)).catch((()=>null));Be.current=Array.isArray(a?.order)?a.order.map(Number):[]})();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"!=Aa()){let e=[...k],t=e.findIndex((e=>"finalizing_site_setting"==e?.name));t>-1&&(e[t].status="done",y(e)),F(!0),0!=K.current.length||0!=Z.current.length||Me.current||st()}},va=(0,e.useRef)(sessionStorage.getItem(`wdkit_runner_session_${t?.kit_data?.id}`)||""),ja=(0,e.useRef)({}),Na=(0,e.useRef)({}),$a=(0,e.useRef)({}),Ca=(0,e.useRef)({}),Sa=(0,e.useRef)({}),Da=(0,e.useRef)(!1),Ea=(0,e.useRef)(""),Pa=(0,e.useRef)(!1),Aa=()=>Ea.current||t?.kit_builder||"",Fa=async(e,n=!1)=>{var r;let l=ja.current[e]||0;if(l>=2)return!1;ja.current[e]=l+1;let o={};if("ai_import"==i?.import_type&&"importing_site_content"==e)try{let[,e]=await Promise.all([ta(t?.kit_template?.length>0?t.kit_template:[]),(Ee.current||(Ee.current=(async()=>{let e={};if("ai_import"!=i?.import_type)return e;let t=i?.plugin_setting?.length>0?i.plugin_setting.findIndex((e=>"ecommerce"==e?.name)):-1,a=!!i?.blog_post,s=t>-1?i.plugin_setting[t]:null,n=!(!s||!s.required&&("string"==typeof s.value?["","0","false","no","off"].includes(s.value.trim().toLowerCase()):!s.value)),[r,l]=await Promise.all([(async()=>{if(!a)return!1;let e=await ut().catch((()=>null));return!(e?.data?.count>4)&&vt().catch((()=>!1))})(),(async()=>{if(!n)return!1;let e=await ht().catch((()=>null));return e?.count<5&&kt().catch((()=>!1))})()]);const o=e=>{if(!e?.success||!e?.response)return null;try{let t=JSON.parse(e.response);return t&&"object"==typeof t?t:null}catch(e){return null}};let d=o(r);d?.posts?.length>0&&(e.posts=d.posts,e.taxonomy={categories:Array.isArray(d.categories)?d.categories:[],tags:Array.isArray(d.tags)?d.tags:[]});let c=o(l);return c?.products?.length>0&&(e.products=c.products),e})()),Ee.current)]);o=e||{}}catch(e){o={}}let d=new FormData;d.append("action","get_wdesignkit"),d.append("kit_nonce",wdkitData.kit_nonce),d.append("type","wdkit_import_stage"),d.append("stage",e),d.append("session_id",va.current||""),n&&d.append("retry","yes"),d.append("kit_id",null!==(r=t?.kit_data?.id)&&void 0!==r?r:""),d.append("builder",t?.kit_builder||""),d.append("site_obj",JSON.stringify(null!=i?i:{})),d.append("templates",JSON.stringify(t?.kit_template?.length>0?t.kit_template:[])),d.append("plugin_catalogue",JSON.stringify(t?.wdkit_meta?.plugin?.length>0?t.wdkit_meta.plugin:[]));let c=pe.current&&Object.keys(pe.current).length>0?pe.current:null;if("ai_import"==i?.import_type&&(c||Object.keys(o).length>0)&&d.append("ai_document",JSON.stringify(Object.assign({builder:Aa()||t?.kit_builder||""},c?{pages:c}:{},o))),B.current)return ja.current[e]=Math.max(0,(ja.current[e]||1)-1),!1;let p=await s().post(ajaxurl,d).then((e=>e.data)).catch((()=>!1));if(!p||"object"!=typeof p){let t=(Sa.current[e]||0)+1;if(Sa.current[e]=t,ja.current[e]=Math.max(0,(ja.current[e]||1)-1),t<=3)return await new Promise((e=>setTimeout(e,1500*t))),Fa(e,n);Sa.current[e]=0,L((0,a.__)("The site sent back an unexpected response, so the import paused. Use Retry to continue.","wdesignkit")),F(!0);let i=[...k],s=i.findIndex((t=>t?.name==e));return s>-1&&(i[s].status="fail",y([...i])),!1}Sa.current[e]=0;let m=p&&"object"==typeof p&&p.data&&"object"==typeof p.data&&p.data.engine?p.data:p;if("session_lost"===m?.stage_error?.code&&!Ca.current[e]&&!j.some((e=>"done"==e.status)))return Ca.current[e]=!0,va.current="",sessionStorage.removeItem(`wdkit_runner_session_${t?.kit_data?.id}`),ja.current[e]=Math.max(0,(ja.current[e]||1)-1),Fa(e,n);(e=>{if(Array.isArray(e?.pages)&&e.pages.length>0&&N((t=>{let a=[...t];return e.pages.forEach((e=>{var t;let i=a.findIndex((t=>String(t.id)==String(e.id))),s=e.label||(null!==(t=a[i]?.label)&&void 0!==t?t:"");i>-1?a[i]=Object.assign({},a[i],{status:e.status,label:s}):a.push({id:e.id,label:s,status:e.status})})),a})),Array.isArray(e?.site_content)&&e.site_content.length>0){let t=[...x];if(e.site_content.forEach((e=>{let a=t.findIndex((t=>t.name==e.name));a>-1&&"pending"!=e.status&&(t[a].status=e.status)})),v(t),!Da.current&&t.every((e=>"done"==e.status||"fail"==e.status))){Da.current=!0;let e=[...k],a=e.findIndex((e=>"importing_site_content"==e?.name)),i=e.findIndex((e=>"setting_up_site"==e?.name));a>-1&&"loading"==e[a].status&&(e[a].status=t.some((e=>"fail"==e.status))?"error":"done",e[a].accordion=!1),i>-1&&"pending"==e[i].status&&(e[i].status="loading",e[i].accordion=!0),y(e)}}Array.isArray(e?.plugin_status)&&e.plugin_status.length>0&&C(e.plugin_status),Array.isArray(e?.errors)&&(K.current=e.errors.map((e=>({id:e.id,message:e.message,description:e.description,success:!1}))));let a=e?.stage_error?.message||"";!a&&Array.isArray(e?.errors)&&e.errors.length>0&&(a=[...new Set(e.errors.map((e=>e?.message)).filter(Boolean))].slice(0,2).join(" ")),L(a||"");let i=["not_logged_in","unauthorized","invalid_token"];(/not logged in to wdesignkit/i.test(a)||i.includes(e?.stage_error?.code)||Array.isArray(e?.errors)&&e.errors.some((e=>i.includes(e?.code)||/not logged in to wdesignkit/i.test(e?.message||""))))&&!B.current&&(B.current=!0,R(!0),F(!0)),e?.credits&&"object"==typeof e.credits&&(Q.current=Object.assign({},Q.current,e.credits)),e?.builder&&e.builder!==Ea.current&&(Ea.current=e.builder),e?.css_generated>0&&(Pa.current=!0),Array.isArray(e?.media_pages)&&e.media_pages.length>0&&(Le.current=e.media_pages,Be.current=Array.isArray(e?.media_order)?e.media_order.map(Number):[]),Array.isArray(e?.warm_pages)&&e.warm_pages.length>0&&(Ie.current=e.warm_pages.filter((e=>"string"==typeof e?.url&&""!==e.url))),e?.session_id&&(va.current=e.session_id,sessionStorage.setItem(`wdkit_runner_session_${t?.kit_data?.id}`,e.session_id))})(m);let u="number"==typeof m?.pending?m.pending:Array.isArray(m?.pages)?-m.pages.filter((e=>"done"==e?.status)).length:0,h=$a.current[e]||{last:-1,count:0};if(m?.pending>0&&u===h.last&&!(m?.in_flight>0)?h.count+=1:h.count=0,h.last=u,$a.current[e]=h,h.count>=3){ja.current[e]=Math.max(0,(ja.current[e]||1)-1),Array.isArray(m?.errors)&&0!==m.errors.length||L((0,a.__)("The import stopped making progress. Use Retry to continue.","wdesignkit")),F(!0);let t=[...k],i=t.findIndex((t=>t?.name==e));return i>-1&&(t[i].status="fail",y([...t])),!1}if(m?.success&&!m?.complete&&m?.pending>0){if(ja.current[e]=Math.max(0,(ja.current[e]||1)-1),"importing_site_content"==e){let t=2-(ja.current[e]||0)-1;for(let a=0;ae.map((e=>"pending"==e.status?Object.assign({},e,{status:"done"}):e))));let g=[...k],w=g.findIndex((t=>t?.name==e));if(w>-1){let t=m?.success&&m?.complete,a=t&&"finalizing_site_setting"==e&&"gutenberg"==Aa();g[w].status=a?"loading":t?"done":"fail",a||(g[w].accordion=!t),y([...g])}if(!m?.success||!m?.complete)return ja.current[e]=Math.max(0,(ja.current[e]||1)-1),F(!0),!1;if(ja.current[e]=Math.max(0,(ja.current[e]||1)-1),Na.current[e])return!0;Na.current[e]=!0;const _=["install_plugin_theme","importing_site_content","setting_up_site","finalizing_site_setting"],f=_[_.indexOf(e)+1];if(f)return Ta(f),!0;if(m?.home_url){let e=Object.assign({},t.site_obj,{site_url:m.home_url});t.setsite_obj(e)}return sessionStorage.removeItem(`wdkit_runner_session_${t?.kit_data?.id}`),(Array.isArray(m?.pages)?m.pages.filter((e=>e?.post_id)):[]).forEach((e=>{-1==Oe.current.findIndex((t=>t.inserted_id==e.post_id))&&Oe.current.push({title:e.label,inserted_id:e.post_id,old_page_id:"",post_type:"page"})})),"gutenberg"==Aa()?(await Je(),!0):(F(!0),0!=K.current.length||0!=Z.current.length||Me.current||st(),!0)},Ta=e=>{let a=[...k],n=a.findIndex((t=>t?.name==e));if(a[n].status="loading",a[n].accordion=!0,y(a),n>-1)if("yes"===wdkitData?.use_php_runner)if("importing_site_content"==e){(()=>{let e=t?.kit_template?.length>0?t.kit_template:[];0!=e.length&&N((t=>{let a=[...t];return e.forEach((e=>{a.some((t=>String(t.id)==String(e.id)))||a.push({id:e.id,label:String(e.title||"").split("|")[0].trim(),status:"pending"})})),a}))})();for(let t=0;t<2;t++)Fa(e)}else Fa(e);else"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(i?.blog_post){let e=a.findIndex((e=>1007==e?.p_id));e>-1&&n.push(a[e])}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(f),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)).catch((()=>!1));if(t?.success){let e=t.data?.plugins?.length>0?t.data.plugins:[],a=[...t.data?.theme?.length>0?t.data.theme:[],...e],i=a.filter((e=>{if("active"!==e.status)return e}));if(i.length>0)await(async e=>{e.forEach((e=>{te.current.push(Object.assign({},e,{status:"loading"}))})),C([...te.current]);const t="undefined"!=typeof performance?performance.now():Date.now();let a=new FormData;a.append("action","get_wdesignkit"),a.append("kit_nonce",wdkitData.kit_nonce),a.append("type","install_plugins_depends_batch"),a.append("plugins",JSON.stringify(e)),a.append("editor",wdkitData.use_editor);const i=await s().post(ajaxurl,a).then((e=>e.data)).catch((()=>{})),n=(("undefined"!=typeof performance?performance.now():Date.now())-t)/1e3;Or(`[wdkit-import] Dependencies: ${n.toFixed(1)} sec (${e.length} item(s))`),le("Dependencies installed ("+e.length+" item(s))");const r={};(i?.results||[]).forEach((e=>{e?.p_id&&(r[e.p_id]=e)})),e.forEach((e=>{const t=r[e.p_id],a=te.current.findIndex((t=>t.p_id==e.p_id));-1!==a&&(t?.success?te.current[a].status=t.status?t.status:"active":(te.current[a].status="fail",Z.current.push(e),u.includes(e?.original_slug)&&X.current.push(e)))})),C([...te.current]);let l=te.current.filter((e=>"active"!=e?.status)),o=[...k],d=o.findIndex((e=>"install_plugin_theme"==e?.name));d>-1&&(l.length==te.current.length?o[d].status="fail":l.length>0?o[d].status="error":(o[d].status="done",o[d].accordion=!1),y(o)),0==X.current.length&&Ta("importing_site_content")})(i);else{a.forEach((e=>{-1===te.current.findIndex((t=>t.p_id==e.p_id))&&te.current.push(Object.assign({},e,{status:"active"}))})),C([...te.current]);let e=[...k],t=e.findIndex((e=>"install_plugin_theme"==e?.name));t>-1&&(e[t].status="done",e[t].accordion=!1,y(e)),le("Dependencies done (all already active)"),Ta("importing_site_content")}}else{n.map((e=>{let t=Object.assign({},e,{status:"fail"});te.current.push(t),Z.current.push(e),u.includes(e?.original_slug)&&X.current.push(e)})),C([...te.current]);let e=[...k],t=e.findIndex((e=>"install_plugin_theme"==e?.name));t>-1&&(e[t].status="fail",e[t].accordion=!0,y(e))}}})():"importing_site_content"==e?At("global_settings"):"setting_up_site"==e?ya():"finalizing_site_setting"==e&&xa()};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 might take few minutes.","wdesignkit")})]}),(0,g.jsxs)("div",{className:"wkit-site-loader-body",children:[(0,g.jsxs)("div",{className:"wkit-site-loading-content",children:[I&&(0,g.jsxs)("div",{className:"wkit-import-login-lost",children:[(0,g.jsx)("span",{className:"wkit-import-login-lost-txt",children:(0,a.__)("Your WDesignKit login has expired on this site, so the import paused. Log in again to continue.","wdesignkit")}),(0,g.jsx)("button",{type:"button",className:"wkit-btn-class wkit-import-login-lost-btn",onClick:()=>{m()},children:(0,a.__)("Log in again","wdesignkit")})]}),k.map(((e,t)=>{if("install_plugin_theme"==e.name)if(te.current.length>0)var i=!0;else i=!1;else i="finalizing_site_setting"!=e.name;return(0,g.jsxs)("div",{className:"wkit-site-import-step",children:[(0,g.jsxs)("div",{className:`wkit-import-step-header wkit-import-${e?.status}-status`,onClick:()=>{(e=>{let t=[...k],a=t.findIndex((t=>t?.name==e));a>-1&&(t[a].accordion&&"loading"!=t[a].status?t[a].accordion=!1:t[a].accordion=!0,y(t))})(e.name)},children:["done"==e?.status&&ot,"pending"==e?.status&&dt,"loading"==e?.status&&nt,"fail"==e?.status&&mt,"error"==e?.status&&mt,(0,g.jsx)("span",{className:`wkit-import-step-title ${"done"==e?.status||"loading"==e?.status?"wkit-import-step-activate":""} ${"loading"==e?.status?"wkit-import-step-inprogress":""}`,children:"done"==e?.status&&e?.done_label?e.done_label:e?.label}),i&&(0,g.jsx)("i",{className:`wdkit-i-down-arrow ${e.accordion?"wkit-step-accordion-open":""} `})]}),(0,g.jsxs)("div",{className:"wkit-import-step-body",children:["finalizing_site_setting"!=e.name&&(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 "+(e.accordion?"":"wkit-import-step-close"),children:["install_plugin_theme"==e.name&&Et(),"install_plugin_theme"==e.name&&X.current.length>0&&(q?(0,g.jsx)("button",{className:"wkit-site-plugin-retry wkit-btn-class",children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-site-plugin-retry wkit-btn-class",disabled:V,onClick:()=>Lt("main_plg"),children:(0,a.__)("Retry","wdesignkit")})),"importing_site_content"==e.name&&Ft(),"setting_up_site"==e.name&&(0,g.jsxs)(g.Fragment,{children:[j.length>0&&j.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-step-inner "+("pending"==e.status?"wkit-import-step-waiting":""),children:["done"==e.status&<,"loading"==e.status&&rt,"fail"==e.status&&ct,"pending"==e.status&&pt,(0,g.jsx)("span",{className:"wkit-step-inner-title",children:e.label}),"fail"==e.status&&(0,g.jsxs)("div",{className:"wkit-retry-temp-content",children:[(0,g.jsx)("span",{className:"wkit-retry-temp-txt",children:(0,a.__)("Retry !","wdesignkit")}),(0,g.jsxs)("div",{className:"wkit-retry-temp-tooltip",children:[(0,g.jsx)("span",{className:"wkit-retry-tooltip-txt",children:Tt(e?.id)}),(0,g.jsx)("i",{className:"wdkit-i-info"})]})]})]},t))),z.length>0&&Re.current.map(((e,t)=>(0,g.jsxs)("div",{className:"wkit-import-step-inner",children:["done"==e.status&<,"loading"==e.status&&rt,"fail"==e.status&&ct,(0,g.jsx)("span",{className:"wkit-step-inner-title",children:e.name}),e.msg&&(0,g.jsxs)("div",{className:"wkit-retry-temp-tooltip",children:[(0,g.jsx)("span",{className:"wkit-retry-tooltip-txt",children:e.msg}),(0,g.jsx)("i",{className:"wdkit-i-info"})]})]},t)))]}),T&&("fail"==e?.status||"error"==e?.status)&&(0,g.jsx)("div",{className:"wkit-import-step-inner wkit-import-step-error",children:(0,g.jsx)("span",{className:"wkit-step-inner-title",children:T})})]})]})]},t)}))]}),(0,g.jsx)("div",{className:"wkit-site-loading-gif",children:(0,g.jsx)(Fr(),{animationData:Pr,loop:!0,autoplay:!0,style:{width:350,height:350}})})]}),I?null:K.current.length>0||Z.current.length>0?(0,g.jsxs)("div",{className:"wkit-site-loader-footer",children:[(0,g.jsx)("button",{className:"wkit-outer-btn-class",disabled:!ie||!A,onClick:()=>st(),children:(0,a.__)("Skip","wdesignkit")}),V?(0,g.jsx)("button",{className:"wkit-site-loader-next wkit-btn-class",disabled:!ie||!A,children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{className:"wkit-site-loader-next wkit-btn-class",disabled:!ie||!A,onClick:()=>(async()=>{if(W(!0),F(!1),"yes"===wdkitData?.use_php_runner){const e=["install_plugin_theme","importing_site_content","setting_up_site","finalizing_site_setting"];let t=[...k],a=e.find((e=>{let a=t.find((t=>t?.name==e));return!a||"done"!=a.status}));return a?(N(j.map((e=>"fail"==e.status?Object.assign({},e,{status:"loading"}):e))),ja.current[a]=0,Na.current[a]=!1,$a.current[a]={last:-1,count:0},K.current=[],L(""),await Fa(a,!0),void W(!1)):(W(!1),void F(!0))}let e=[...j],a=t?.kit_template?.length>0?t.kit_template:[];if(Z.current.length>0&&Lt(),K.current.length>0){K.current.map((t=>{let a=t?.id,i=e.findIndex((e=>e.id==a));i>-1&&(e[i].status="loading",N([...e]))}));let t=[...K.current];await Promise.all(t.map((async t=>{let i=t?.id;if("global_settings"===i)return void await(async()=>{if(!Y.current)return!1;const e=await s().post(ajaxurl,Y.current).then((e=>e.data)).catch((()=>null));if("string"==typeof e||!e?.success)return!1;Y.current=null;let t=K.current.findIndex((e=>"global_settings"===e.id));return t>-1&&K.current.splice(t,1),v((e=>{let t=[...e],a=t.findIndex((e=>"global_settings"==e.name));return a>-1&&(t[a]=Object.assign({},t[a],{status:"done"})),t})),!0})();let n={color:oe.current.color,typography:oe.current.typo},r=a.findIndex((e=>e.id==i));if(r>-1){let t=a[r],s=await fa(t,n),l=e.findIndex((e=>e.id==i));if(s?.success){e[l].status="done",N([...e]);let t=K.current.findIndex((e=>e.id==i));t>-1&&K.current.splice(t,1)}else e[l].status="fail",N([...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))})(ee.current),ee.current=[],await Promise.all(ce.current.map((async e=>{var t=e?.result?e.result:"";let a=[...j],i=t?.data?.id?t.data.id:"",s=a.findIndex((e=>e.id==i));a[s].status="loading",N([...a]),(await ba(e)).success&&s>-1&&(a[s].status="done",N([...a]))})));let i=[...k],n=i.findIndex((e=>"setting_up_site"==e?.name)),r=e.filter((e=>"done"!=e?.status));r.length==e.length?i[n].status="fail":r.length>0?i[n].status="error":(i[n].status="done",i[n].accordion=!1),y(i),await xa()}Fe.current.length>0&&ka(),W(!1),F(!0)})(),children:K.current.length+Z.current.length>1?(0,a.__)("Retry Missing Options","wdesignkit"):(0,a.__)("Retry Missing Option","wdesignkit")})]}):Me.current?(0,g.jsx)("div",{className:"wkit-site-loader-footer",children:(0,g.jsx)("button",{className:"wkit-outer-btn-class",onClick:()=>st(),children:(0,a.__)("Skip","wdesignkit")})}):null]}),S&&(0,g.jsx)("iframe",{id:"wkit-dumy-post-ifram",ref:ae,src:S})]})})),Gr="wdkit_plan",zr=["facebook","twitter","instagram","linkedin","youtube"],Hr=(e,t)=>"string"!=typeof e?"":e.replace(/[\x00-\x1F\x7F]+/g," ").replace(/\s+/g," ").trim().slice(0,t),Ur=()=>{try{let e=new URL(window.location.href);e.searchParams.delete(Gr),window.history.replaceState({},"",e.toString())}catch(e){}},Jr=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({})))((t=>{let i=ge(),n=he(),r=me();var l=wdkitData.WDKIT_URL;const{hash_route:o}=r?.state||{},d=`wdkit_import_progress_${i?.kit_id}`;let c=(()=>{try{if(!(()=>{try{let e=performance.getEntriesByType?performance.getEntriesByType("navigation"):[];return e?.length>0?"reload"===e[0].type:1===performance?.navigation?.type}catch(e){return!1}})())return null;let e=sessionStorage.getItem(d);return e?JSON.parse(e):null}catch(e){return null}})();(0,e.useState)((()=>(c||(()=>{try{Object.keys(sessionStorage).filter((e=>0===e.indexOf("wdkit_import_progress_")||0===e.indexOf("wdkit_runner_session_"))).forEach((e=>sessionStorage.removeItem(e)))}catch(e){}})(),!0)));const[p]=(0,e.useState)((()=>c?null:(()=>{let e,t="";try{t=new URLSearchParams(window.location.search).get(Gr)||""}catch(e){return null}if(!t)return null;try{e=JSON.parse((e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/");t+="=".repeat((4-t.length%4)%4);let a=atob(t),i=Uint8Array.from(a,(e=>e.charCodeAt(0)));return(new TextDecoder).decode(i)})(t))}catch(e){return Ur(),null}if(!e||"object"!=typeof e||1!==e.v)return Ur(),null;let a={},i=Hr(e.name,120);i&&(a.site_name=i);let s=Hr(e.address,250);s&&(a.address=s);let n=Hr(e.email,120);n&&(a.email=n);let r=Hr(e.phone,40);r&&(a.phone=r);let l={};e.social&&"object"==typeof e.social&&zr.forEach((t=>{let a=Hr(e.social[t],300);a&&/^https?:\/\//i.test(a)&&(l[t]=a)})),Object.keys(l).length>0&&(a.social_links=l);let o={};Object.keys(a).length>0&&(o.site_info=a);let d=Hr(e.type,250);d&&(o.site_type=d);let c=Hr(e.desc,1500);c&&(o.site_description=[c]);let p=fr(e.lang);p&&(o.site_lang=p);let m=_r(e.industry);return m&&(o.site_agency=m),Ur(),0==Object.keys(o).length?null:o})())),[m,u]=(0,e.useState)(),[h,w]=(0,e.useState)(""),[_,k]=(0,e.useState)(),[b,y]=(0,e.useState)([]),[x,v]=(0,e.useState)(c?.site_obj||p||void 0),[j,N]=(0,e.useState)(c?.current_page||(p?"temp_preview":"select_import_method")),[$,C]=(0,e.useState)(c?.import_type||(p?"ai_import":"normal_import")),S=(0,e.useRef)();(0,e.useEffect)((()=>{if("success_import"==j)return sessionStorage.removeItem(d),void sessionStorage.removeItem(`wdkit_runner_session_${i?.kit_id}`);try{sessionStorage.setItem(d,JSON.stringify({current_page:j,site_obj:x,import_type:$}))}catch(e){}}),[j,x,$]),(0,e.useEffect)((()=>()=>{sessionStorage.removeItem(d),sessionStorage.removeItem(`wdkit_runner_session_${i?.kit_id}`)}),[]);const D=x?.images_from_chat?[{label:"Customize Website",value:["select_import_method"]},{label:"Select Features",value:["temp_feature"]},{label:"All Set!",value:["all_set"]}]:[{label:"Customize Website",value:["temp_preview"]},{label:"Select Features",value:["temp_feature"]},{label:"Content & Media Setup",value:["content_media"]},{label:"All Set!",value:["all_set"]}];let E=[{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}=r.state||{};if("browse"==e){let e=Object.assign({},x,{import_condition:"browse"});v(e)}document.body.classList.contains("folded")||document.body.classList.add("folded"),P()}),[]),(0,e.useEffect)((()=>{if(b?.length>0&&t.wdkit_meta?.success){let e=t.wdkit_meta?.builder,a=m.post_builder;S.current=f(a,e),A()}}),[b,t.wdkit_meta?.success]);const P=async()=>{if(!i?.kit_id)return void n("/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",i.kit_id),e.append("builder",wdkitData.use_editor);let t=await s().post(ajaxurl,e).then((e=>e.data)).catch((()=>!1));if(t?.success){let e=t?.template?.length>0?t.template:[],i=t?.kitdata?t.kitdata:"",s=[];if(e.length>0&&(e=e.filter((e=>{if("nxt_builder"!=e?.wp_post_type||"section"!=e?.type)return e;s.push(e)})),e=[...e,...s]),0==e.length)return void w((0,a.__)("No templates were found in this kit for the current builder.","wdesignkit"));y(e),u(i)}else w(t?.message?t.message:(0,a.__)("Failed to load kit data. Please check your connection and try again.","wdesignkit"))},A=()=>{let e={color:[],typo:[]},t=[];b.map((a=>{let i=a.global_data?a.global_data:"";if(i){let a=i.color?i.color:[],s=i.typography?i.typography:[];if(a?.length>0&&a.map((t=>{if("elementor"==S.current)var a=e.color.findIndex((e=>e?._id==t?._id));else"gutenberg"==S.current&&(a=e.color.findIndex((e=>e?.id==t?.id)));if(-1==a){if("elementor"==S.current&&t?.color)var i=Object.assign({},t,{new_color:t.color});else if("gutenberg"==S.current&&t?.value){const e=t.value.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/i);if(e){let a=(e=>{let[t,a,i,s,n]=e;return a=parseInt(a).toString(16).padStart(2,"0"),i=parseInt(i).toString(16).padStart(2,"0"),s=parseInt(s).toString(16).padStart(2,"0"),n=void 0!==n?Math.round(255*parseFloat(n)).toString(16).padStart(2,"0"):"ff",`#${a}${i}${s}${n}`})(e);i=Object.assign({},t,{new_color:a,value:a})}else i=Object.assign({},t,{new_color:t.value})}i&&e.color.push(i)}})),s?.length>0){s.map((a=>{if("elementor"==S.current)var i=e.typo.findIndex((e=>e?._id==a?._id)),s=a?.typography_font_family,n=a.title;else"gutenberg"==S.current&&(i=e.typo.findIndex((e=>e?.id==a?.id)),s=a.value?.fontFamily?.family,n=a.label);if(-1==t.findIndex((e=>e?.original==s))){let e=n.split("|"),a=e[1]?.trim();t.push({original:s,replace:s,f_id:a})}-1==i&&e.typo.push(a)}));let a=Object.assign({},x,{font_family:t});v(a)}}})),k(e)},F=()=>(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:l+"assets/images/jpg/kit-import-success-"+t?.wdkit_dark_mode+".gif",width:"200px"}),(0,g.jsx)("span",{className:"wkit-import-success-title wp-exclude-emoji",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:x?.site_url&&(0,g.jsx)("a",{className:"wkit-import-success-site wkit-btn-class",href:x.site_url,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Preview Site","wdesignkit")})})]})});return(0,g.jsx)("div",{className:"wkit-temp-import-mian",children:h?(0,g.jsxs)("div",{className:"wb-loader",style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"15px"},draggable:!1,children:[(0,g.jsx)("span",{style:{fontSize:"16px"},children:h}),(0,g.jsx)("button",{className:"wkit-btn-class",onClick:()=>{n(o||"/my_uploaded")},children:(0,a.__)("Go Back","wdesignkit")})]}):m?(0,g.jsxs)(g.Fragment,{children:["temp_preview"!=j&&"select_import_method"!=j&&(0,g.jsxs)("div",{className:"wkit-import-temp-header",children:[(0,g.jsx)(yi,{}),(0,g.jsx)("div",{className:"wkit-header-breadcrumbs",children:D.map(((t,a)=>{let i=D.findIndex((e=>e.value.includes(j)));if("success_import"==j)var s="wkit-complete-breadcrumbs";else s=i==a?"wkit-active-breadcrumbs":i>a?"wkit-complete-breadcrumbs":"";return(0,g.jsxs)(e.Fragment,{children:[(0,g.jsxs)("div",{className:`wkit-breadcrumbs-card ${s}`,children:[i>a||"success_import"==j?(0,g.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:(0,g.jsx)("path",{d:"M8 0C12.4184 0 16 3.58173 16 8C16 12.4182 12.4184 16 8 16C3.58172 16 5.41183e-06 12.4182 0 8C0 3.58174 3.58172 1.08234e-05 8 0ZM11.4941 5.16016C11.2469 4.93358 10.8623 4.95009 10.6357 5.19727L6.6123 9.58691L5.03711 8.01172C4.8 7.77461 4.41484 7.77461 4.17773 8.01172C3.94118 8.2488 3.94096 8.63316 4.17773 8.87012L6.20215 10.8936C6.31922 11.0105 6.47911 11.0749 6.64453 11.0713C6.81 11.0677 6.96726 10.9961 7.0791 10.874L11.5312 6.01758C11.7576 5.77059 11.7407 5.38678 11.4941 5.16016Z",fill:"#00A31B"})}):(0,g.jsx)("i",{className:"wdkit-i-round-check"}),(0,g.jsx)("span",{className:"wkit-breadcrumbs-card-title",children:t.label})]}),a0&&(0,g.jsx)(Dr,{kit_data:m,kit_template:b,wdkit_meta:t.wdkit_meta,global_data:_,site_obj:x,kit_builder:S.current,on_select:(e,t,a,i,s,n,r,l,o)=>{C(e),t&&v(Object.assign({},x,{site_info:t},r?{kit_global:r}:_?{kit_global:_}:{},l?{font_family:l}:{},a?{site_lang:a}:{},i?.length>0?{site_description:i}:{},void 0!==s?{blog_post:s}:{},void 0!==n?{wirefram_import:n}:{},o?Object.assign({},o,{images_from_chat:!0}):{})),N("ai_import"==e&&r?"temp_feature":"temp_preview")},on_back:()=>{n(o||"/browse")}}),"temp_preview"==j&&_&&(0,g.jsx)(rr,{global_data:_,kit_template:b,site_obj:x,kit_builder:S.current,wdkit_meta:t.wdkit_meta,ai_compatible:m?.ai_compatible,kit_data:m,setkit_template:e=>y(e),setcurrent_page:e=>N(e),back_routing:o,setsite_obj:e=>v(e)}),"temp_feature"==j&&b?.length>0&&(0,g.jsx)(Yn,{site_obj:x,kit_data:m,kit_template:b,new_plugins:E,wdkit_meta:t.wdkit_meta,import_type:$,kit_builder:S.current,ai_compatible:m?.ai_compatible,setcurrent_page:e=>N(e),setimport_type:e=>C(e),setsite_obj:e=>v(e)}),"content_media"==j&&(0,g.jsx)(kr,{import_type:$,setimport_type:e=>C(e),site_obj:x,wdkit_meta:t.wdkit_meta,setsite_obj:e=>v(e),setcurrent_page:e=>N(e)}),"all_set"==j&&b?.length>0&&(0,g.jsx)(qr,{site_obj:x,kit_template:b,new_plugins:E,wdkit_meta:t.wdkit_meta,kit_builder:S.current,setsite_obj:e=>v(e),kit_data:m,setcurrent_page:e=>N(e)}),"success_import"==j&&(0,g.jsx)(F,{site_obj:x})]}):(0,g.jsx)(Er,{})})}));var Kr=wdkitData.WDKIT_ASSETS;const Zr=ai((e=>({LoginRoutes:e.wkit_Login_route.route_history})),(e=>({wdkit_set_notification:t=>e(fi(t)),wdkit_set_meta:t=>e(gi(t))})))((t=>{const i=he();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,y]=(0,e.useState)(!1),[x,v]=(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(x)return;if(""==d.trim()||""==h.trim()||!hn(h)||""==m.trim())return void N(!0);v(!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}),v(!1),i(t?.LoginRoutes?`${t.LoginRoutes}`:"/browse"),p(""),f(""),u("")}else t.wdkit_set_notification({title:a?.message,desc:a?.description});v(!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)(pn,{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)(un,{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()&&hn(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)(un,{text:(0,a.__)("Please fill this field","wdesignkit")}),j&&""!==h.trim()&&!hn(h)&&(0,g.jsx)(un,{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)(un,{text:(0,a.__)("Please fill this field","wdesignkit")})]}),x?(0,g.jsx)("button",{type:"submit",className:"wdkit-register-button",disabled:x,children:(0,g.jsx)(b,{})}):(0,g.jsx)("button",{type:"submit",className:"wdkit-register-button",disabled:x,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=$();y("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")});y(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("img",{src:Kr+"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=$();y("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")});y(!1)}};setTimeout(d,100)})()},children:[(0,g.jsx)("img",{src:Kr+"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_server_url+"privacy-policy",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Privacy Policy.","wdesignkit")})]})]})]}),(0,g.jsx)(dn,{})]})})),Yr=ai((e=>({})),(e=>({wdkit_set_notification:t=>e(fi(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()||!hn(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)(pn,{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.__)("Reset Password","wdesignkit")}),(0,g.jsx)("p",{className:"wdkit-sm-txt",children:(0,a.__)("Enter your email to receive a password reset link.","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()&&hn(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)(un,{text:(0,a.__)("Please fill this field","wdesignkit")}),r&&""!==o.trim()&&!hn(o)&&(0,g.jsx)(un,{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)($i,{}):(0,a.__)("Reset Now","wdesignkit")})]})]}),(0,g.jsx)(dn,{})]})}));var Xr=wdkitData.WDKIT_URL;let Qr=new AbortController;const el=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_plugin_icons:t=>e(wi(t)),wdkit_Login_Route:t=>e(hi(t))})))((t=>{const i=he(),s=me(),[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,y]=(0,e.useState)([]),[x,v]=(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)(""),[F,T]=(0,e.useState)([]),[L,B]=(0,e.useState)(""),[I,R]=(0,e.useState)(""),[M,O]=(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(""),B(""),G("all"),T([]),$([]),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&&B(t.free_pro),t.snippet_type&&G(t.snippet_type),t.category&&T(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&&"all"!==t||"type"!==e&&"CurrentPage"!==e&&"ParPage"!==e&&"status"!==e&&t&&t.length>0&&"[]"!==t&&"all"!==t))),oe=async()=>{Qr&&Qr.abort(),Qr=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 a=await ni(e,{signal:Qr.signal});a?.aborted||(a?.data?.success&&(w(a?.data),a?.data?.snippet&&0!==a?.data?.snippet?.length||!ne?.search||jt(s?.pathname||"/browse_snippets",ne.search.trim(),t?.wdkit_meta?.userinfo?.id||"",ne)),p(!1))},de=async()=>{Qr&&Qr.abort(),Qr=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 ni(e,{signal:Qr.signal});a?.data?.success?(y(a?.data),0===M.length&&(O(a?.data?.tags||[]),S(a?.data?.url_tag_id||[])),a?.data?.plugins&&t.wdkit_set_plugin_icons(a.data.plugins)):y({terms:[],plugins:[],tags:[]})}catch(e){"AbortError"!==e.name&&console.error("Filter options fetchFilterOpt error:",e),y({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"})},pe=e=>{if("reset"===e)o(""),A(""),G("all"),S([]),W(1),re({type:"code_snippet_filter",free_pro:"",category:"",CurrentPage:1,ParPage:24,search:"",plugins:"",plugin_id_exclude:"",tags:"",status:"public",snippet_type:"all"}),i("/browse_snippets");else if("check"===e)return!!(Array.isArray(Object.values(le(ne)))&&Object.values(le(ne)).length>0)},ue=e=>{if(x?.includes(e)){var t=x.filter((t=>t!==e));v(t)}else v([...x,e])},ge=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}),B(s)):(p=Object.assign({},ne,{free_pro:""},{CurrentPage:1}),B(""))),"type"===t&&(G(s),T([]),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}`)},we=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:()=>we(!1)}),(0,g.jsxs)("div",{className:"wdkit-cdsnip-inner",children:[_?(0,g.jsx)(oi,{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:we,clearAllFilters:()=>pe("reset"),clearAllCheck:pe("check")}),(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)(Ie,{id:"free_pro",title:(0,a.__)("Free/Pro","wdesignkit"),accordionToggle:x,onToggle:ue}),x?.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=>ge(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)(Ie,{id:"type",title:(0,a.__)("Snippet Type","wdesignkit"),accordionToggle:x,onToggle:ue}),x?.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=>ge(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=>ge(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=>ge(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)(Ie,{id:"category",title:(0,a.__)("Category","wdesignkit"),accordionToggle:x,onToggle:ue}),x?.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=>ge(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)(Ie,{id:"plugins",title:(0,a.__)("Plugins","wdesignkit"),accordionToggle:x,onToggle:ue}),x?.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=>ge(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)(Ie,{id:"tags",title:(0,a.__)("Related Tags","wdesignkit"),accordionToggle:x,onToggle:ue}),x?.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=>{R(e.target.value),(async e=>{Qr&&Qr.abort(),Qr=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 ni(t,{signal:Qr.signal});a?.aborted||(a?.data?.success&&(O(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&&M&&Array.isArray(M)&&M.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=>ge(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))),M?.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=>ge(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&&M&&0===M.length&&(0,g.jsxs)("div",{className:"wkit-no-tag-found",children:[(0,g.jsx)("img",{className:"wkit-not-found-icon",src:Xr+"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)(oi,{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:()=>{we(!0)},children:(0,g.jsx)("i",{className:"wdkit-i-filter"})}),(0,g.jsx)(Be,{type:"browse-templates",searchQuery:l,setSearchQuery:o,handleKeyPress:e=>{"Enter"===e.key&&(ge(e,"search"),d.current.blur())},handleFilterChecked:ge,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)(oi,{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)(li,{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:Xr+"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)(xt,{showCount:h?.showsnippets,totalCount:h?.snippetcount,typeText:(0,a.__)("Snippets","wdesignkit")}),e()>1&&(0,g.jsx)(j(),{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:()=>{}})]})}})()]})]})]})})),tl=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))(el);var al=wdkitData.WDKIT_URL;const il=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_snippet:e.wdkit_snippet_data.wdkitSnippet})),(e=>({wdkit_Login_Route:t=>e(hi(t)),wdkit_set_snippet:t=>e((e=>({type:"UPDATE_WDKIT_SNIPPET",data:e}))(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_set_plugin_icons:t=>e(wi(t))})))((t=>{he(),me();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),[y,x]=(0,e.useState)(""),[v,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)(De,{to:"/login"});const[F,T]=(0,e.useState)({CurrentPage:1,ParPage:24,search:""}),L=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(F).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(F).forEach((([t,a])=>{e.append(t,a)})));const a=await ni(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)),B(e)}else d([]),k(0)}catch(e){console.error("Error fetching user snippet data:",e),d([])}finally{l(!1),h(!1)}},B=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&&L())},R=()=>{P(!E),_(1),T((e=>({...e,CurrentPage:1})))},M=()=>(E?o.snippets:o.snippet)||[],O=()=>{const e=""!==(F?.search||"").trim(),t=!E&&!e&&0===M().length;return(0,g.jsx)("div",{className:"wb-creative-button "+(t?"wkit-disable-btn-class":""),children:(0,g.jsx)("div",{className:"wdkit-favorites-filter "+(t?"wdkit-diabled-element":""),children:(0,g.jsx)("a",{className:"wdkit-trsprnt-btn "+(E?"wdkit-favorites-active":""),onClick:R,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 ni(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)((()=>{L()}),[F,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 ni(e);return a.data&&a.success?(t.wdkit_set_notification({title:a.message,desc:a.description}),s(!1),N(!1),C(null),void L()):(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({},F,{search:a,CurrentPage:1});n=Object.assign({},n,{search:i}),T(n),_(1),x(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)(Be,{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)(O,{})]}),(0,g.jsx)(g.Fragment,{children:r||c?(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:(0,g.jsx)(oi,{cards:!0})}):M().length>0?(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:M().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)(li,{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:al+"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)(j(),{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&&(F.CurrentPage=e.nextSelectedPage+1,T({...F}))},forcePage:w-1,onPageActive:()=>{}})})}})()]})})}),v&&(0,g.jsx)(Me,{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 sl=wdkitData.WDKIT_URL;const nl=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_Login_Route:t=>e(hi(t)),wdkit_set_notification:t=>e(fi(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)(De,{to:"/login"})}const s=he(),[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,y]=(0,e.useState)([]),[x,v]=(0,e.useState)(""),[j,N]=(0,e.useState)(!1),[$,C]=(0,e.useState)([]),[S,D]=(0,e.useState)([]),[E,P]=(0,e.useState)(""),[A,F]=(0,e.useState)(""),[T,L]=(0,e.useState)(!1),[B,I]=(0,e.useState)(!1),[R,M]=(0,e.useState)(!1),[O,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 ni(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:sl+"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 ni(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 ni(e);t?.data?.success&&(y(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="")=>{M(!0),L(!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 ni(t);if(e?.data?.success){const t=e?.data?.snippet||[];D(t),C(t)}}catch(e){console.error("Error fetching existing snippets:",e)}finally{L(!1),M(!1)}},le=e=>{e.preventDefault(),P(""),F(""),re(x),0===x.length?(N(!1),V("")):(N(!0),V(x))};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:B?(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:B})]}),(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;v(t)},onKeyPress:e=>{"Enter"===e.key&&le(e)},value:x})]}),T?(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:T||R?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&&O?(0,a.__)("Search ","wdesignkit")+'"'+O+'"':(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),F(e.code_type)})(e),children:(0,g.jsxs)("div",{className:"wdkit-existing-snippet-detail",children:[(0,g.jsx)("img",{src:e.code_type?sl+"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:sl+"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:sl+"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:sl+"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)(Me,{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})]})})),rl=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta,wdkit_dark_mode:e.wdkit_dark_mode.dark_mode})),(e=>({wdkit_set_meta:t=>e(gi(t)),wdkit_set_notification:t=>e(fi(t))})))((t=>{const i=ge(),s=he(),[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,y]=(0,e.useState)(1),[x,v]=(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)(),[F,T]=(0,e.useState)(""),[L,B]=(0,e.useState)(!1);(0,e.useEffect)((()=>{i.kitId&&I(i.kitId)}),[i.kitId,k]),(0,e.useEffect)((()=>{if(i.kitId){const e=p();e?.token&&si(i.kitId,"view",e.token)}}),[i.kitId]);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 ni(i);s&&s.success?(r(s.data.snippet||[]),v(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)}},R=Math.ceil(x/24),M=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))},O=()=>{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=({kitId:i})=>{const[s,r]=(0,e.useState)([{name:"install_plugin",label:(0,a.__)("Install Required Plugin","wdesignkit"),status:"pending"},{name:"plugin_setting",label:(0,a.__)("Plugin Setting","wdesignkit"),status:"pending"},{name:"download_snippet_kit",label:(0,a.__)("Download Snippets","wdesignkit"),status:"pending"}]),[l,o]=(0,e.useState)([]),[d,c]=(0,e.useState)([]),m=(0,e.useRef)([]),u=(0,e.useRef)([]),w=(0,e.useRef)([]);(0,e.useEffect)((()=>{k("install_plugin")}),[]);const _=async(e,t)=>{let i=[...s],n=i.findIndex((t=>t.name==e));n>-1&&(i[n].status=t,"install_plugin"===e&&("loading"===t?i[n].label=(0,a.__)("Installing Required Plugin","wdesignkit"):"done"===t?i[n].label=(0,a.__)("Installed Required Plugin","wdesignkit"):"fail"===t&&(i[n].label=(0,a.__)("Installation Failed","wdesignkit")))),r(i)},f=async e=>{if(u.current.findIndex((e=>"loading"==e.status))>-1)m.current.push(e);else{let t=Object.assign({},e,{status:"loading"});u.current.push(t),o([...u.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 ni(t);if(a?.success){let e=u.current.findIndex((e=>e.p_id==a.p_id));u.current[e].status=a.status,o([...u.current])}let i=m.current.findIndex((e=>e.p_id==a.p_id));i>-1&&m.current.splice(i,1),m.current.length>0?f(m.current[0]):(await _("install_plugin","done"),k("plugin_setting"))})(e)}},k=async e=>{if("install_plugin"==e)await _(e,"loading"),P?.install_plg?.length>0?await Promise.all(P.install_plg.map((async e=>{await f(e)}))):(await _("install_plugin","done"),k("plugin_setting"));else if("plugin_setting"==e)await _(e,"loading"),await _(e,"done"),k("download_snippet_kit");else if("download_snippet_kit"==e){if(await _(e,"loading"),i){let e=p();e?.token&&si(i,"download",e.token)}const s=h.map((e=>n.find((t=>t.id===e))));w.current=s;let r=p(),l=0,o=[];const d=s.map((e=>({id:e.id,title:e.title||e.post_title,status:"loading"})));c(d);for(let e=0;e0){d[e].status="fail",o.push(t.title||t.post_title||`Snippet ${e+1}`),c([...d]),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),r&&r.token&&(a.append("token",r.token),a.append("free_pro",t?.free_pro));try{const i=await ni(a);i&&i.data&&i.data.post_id?(d[e].status="done",l++):(d[e].status="fail",o.push(t.title||t.post_title||`Snippet ${e+1}`))}catch(a){d[e].status="fail",o.push(t.title||t.post_title||`Snippet ${e+1}`)}c([...d]),await new Promise((e=>setTimeout(e,500)))}if(l>0){if(await _(e,"done"),o.length>0){const e=[],i=[];s.forEach(((t,a)=>{const s=t.title||t.post_title||`Snippet ${a+1}`;o.includes(s)&&("pro"===t?.free_pro&&P?.pro_plugin?.length>0?e.push(s):i.push(s))}));let n=`${l} ${(0,a.__)("snippets downloaded successfully.","wdesignkit")}`;e.length>0&&(n+=` ${e.length} ${(0,a.__)("pro snippets require pro plugin:","wdesignkit")} ${e.join(", ")}`),i.length>0&&(n+=` ${i.length} ${(0,a.__)("snippets failed to download:","wdesignkit")} ${i.join(", ")}`),t.wdkit_set_notification({title:(0,a.__)("Download Complete","wdesignkit"),desc:n})}setTimeout((()=>{E({title:"",desc:"",body:"download_complete"}),T({view:"admin.php?page=nxt_code_snippets"})}),300),window.wdkit_save_snippet&&(window.parent&&window.parent!==window&&window.parent.postMessage({action:"snippetDownloaded"},"*"),setTimeout((()=>{S(!1)}),3e3))}else await _(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:s.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})]}),l.length>0&&"install_plugin"==e.name&&u.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))),d.length>0&&"download_snippet_kit"==e.name&&d.map((e=>(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(e.status)}),(0,g.jsx)("div",{className:"wkit-import-process-step",children:e.title})]},e.id)))]},t)))})})},G=()=>(B(!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:F.view,className:"wkit-import-temp-success-btn wkit-btn-class",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("view snippets","wdesignkit")})]})),z=()=>(B(!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:O,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)(oi,{header:!0}),(0,g.jsx)("div",{className:"wdkit-cdsnip-cards wdkit-grid-4col",children:(0,g.jsx)(oi,{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(B(!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 ni(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 ni(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:(0,a.__)("Required Plugin","wdesignkit"),desc:(0,a.__)("To download this snippet bundle, you will need to install below listed plugin","wdesignkit"),body:"requre_pro_plugin"}:{title:"Download Processing...",desc:"Our system will download your selected snippets soon.",body:"download_snippet_kit"})}},children:L?(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)(li,{data:e,wdkit_set_notification:t.wdkit_set_notification,handleSnippetSelect:M,isSelected:h.includes(e.id)},a)))}),(0,g.jsxs)("div",{className:"wkit-pagination-main wdkit-pagination-with-count",children:[(0,g.jsx)(xt,{showCount:N,totalCount:x,typeText:(0,a.__)("Snippets","wdesignkit")}),R>1&&(0,g.jsx)(j(),{breakLabel:"...",nextLabel:(0,g.jsx)("i",{className:"wdkit-i-right-arrow"}),pageRangeDisplayed:2,pageCount:R,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;y(t),w([]),u(!1),f(0)},forcePage:k-1})]})]})})})}),C&&(0,g.jsx)(Me,{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,{kitId:i.kitId}):"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})),ll=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((()=>{const t=ge();var i=t?.w_unique;const s=e=>{try{window.parent.postMessage(Object.assign({type:"wdkit_widget_create_result",w_unique:i},e),"*")}catch(e){}},n=(e,t)=>{try{let a=e?.widget_data?.widgetdata||{},s=(a.name||"").trim(),n=a.widget_id||i,r=s.replaceAll(" ","-")+"_"+n,l=s.replaceAll(" ","_")+"_"+n,o="gutenberg"===t?"gutenberg":"gutenberg_core"===t?"gutenberg_core":"elementor",d="undefined"!=typeof wdkitData&&wdkitData.WDKIT_SERVER_PATH?wdkitData.WDKIT_SERVER_PATH:"";return{builder:t,widget_id:n,js:`${d}/${o}/${r}/${l}.js`,css:`${d}/${o}/${r}/${l}.css`}}catch(e){return null}};(0,e.useEffect)((()=>{r()}),[]);const r=async()=>{let e=p();if(!e||!e.token)return void s({success:!1,message:(0,a.__)("Please log in to WDesignKit to download this widget.","wdesignkit")});const t={type:"template_download",w_uniq:i,token:e.token},n={type:"wkit_download_widget",widget_info:JSON.stringify(t)};try{const e=await w(n);await l(e)}catch(e){s({success:!1,message:(0,a.__)("Download failed. Please try again.","wdesignkit")})}},l=async e=>{if(!e||!e.json)return s({success:!1,name:e?.message||"",message:(0,a.__)("Please active WDesignKit PRO license to use this widget.","wdesignkit")}),!1;let t=JSON.parse(e.json),i=t?.widget_data?.widgetdata?.type,r=t?.widget_data?.widgetdata?.name||t?.widget_data?.widgetdata?.title||"",l=JSON.stringify(t?.Editor_data?.html),o=JSON.stringify(t?.Editor_data?.js),d=JSON.stringify(t?.Editor_data?.css),c=e.image;var p={CardItems:{cardData:t.section_data},WcardData:t.widget_data,Editor_data:t.Editor_Link,Editor_code:{Editor_codes:[t.Editor_data]}},m="";if("elementor"==i)m=await gt("private_download",p,l,d,o,"",c).then((async e=>e));else if("gutenberg_core"==i)m=await wt("private_download",p,l,d,o,"",c).then((async e=>e));else{if("gutenberg"!=i)return s({success:!1,name:r,message:(0,a.__)("Unsupported widget builder.","wdesignkit")}),!1;m=await _t("private_download",p,l,d,o,"",c).then((async e=>e))}return s(m?.api?.success?{success:!0,name:r,builder:i,assets:n(t,i)}:{success:!1,name:r,message:m?.api?.message||(0,a.__)("Widget files could not be created.","wdesignkit")}),!0};return(0,g.jsx)(g.Fragment,{})})),ol=[{element:(0,g.jsx)(Nn,{}),path:"/login",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Zr,{}),path:"/signup",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Yr,{}),path:"/forgot_password",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)($n,{}),path:"/login-api",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Cn,{}),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)(tl,{}),path:"/browse_snippets",condition:"wdkit"===window.wdkit_editor,setting_panel:["snippet"]},{element:(0,g.jsx)(il,{}),path:"/mysnippet",condition:"wdkit"===window.wdkit_editor,setting_panel:["snippet"]},{element:(0,g.jsx)(nl,{}),path:"/save_snippets",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(rl,{}),path:"/snippet-kit/:kitId",condition:"wdkit"===window.wdkit_editor,setting_panel:["all"]},{element:(0,g.jsx)(Mn,{}),path:"/manage_workspace",condition:!0,setting_panel:["template","builder","snippet"]},{element:(0,g.jsx)(Dn,{}),path:"/manage_workspace/workspace_template/:id",condition:!0,setting_panel:["template","builder","snippet"]},{element:(0,g.jsx)(En,{}),path:"/my_uploaded",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(Pn,{}),path:"/:kit_parent/kit/:kit_id",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)($s,{}),path:"*",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(St,{}),path:"/",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(Jr,{}),path:"/import-kit/:kit_id",condition:!0,setting_panel:["template"]},{element:(0,g.jsx)(Wn,{}),path:"/theplus_popup",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Fn,{}),path:"/download/widget/:w_unique",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(ll,{}),path:"/create/widget/:w_unique",condition:!0,setting_panel:["all"]},{element:(0,g.jsx)(Ji,{}),path:"/widget-listing",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(ks,{}),path:"/widget-listing/builder/:id",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(An,{}),path:"/widget-browse",condition:"wdkit"===window.wdkit_editor,setting_panel:["builder"]},{element:(0,g.jsx)(Bn,{}),path:"/activate",condition:"wdkit"===window.wdkit_editor&&!wdkitData?.wdkit_white_label?.licence_tab,setting_panel:["all"]},{element:(0,g.jsx)(In,{}),path:"/settings",condition:"wdkit"===window.wdkit_editor,setting_panel:["all"]},{element:(0,g.jsx)(Rn,{}),path:"/save_template",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,g.jsx)(Rn,{type:"section"}),path:"/save_template/section",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["template"]},{element:(0,g.jsx)(zn,{}),path:"/preset/:preset_id",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["all"]},{element:(0,g.jsx)(Un,{}),path:"/theme/builder/:section_id",condition:"wdkit"!==wdkitData.use_editor,setting_panel:["all"]}],dl=[{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")}],cl=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({})))((t=>{const i=he(),[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);me().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||t?.wdkit_meta?.Setting?.gutenberg_core_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(Ni())return(0,g.jsxs)("div",{className:"wdkit-res-menu-main",children:[(0,g.jsxs)("div",{className:"wdkit-res-menu-head",children:[(0,g.jsx)(yi,{type:"desktop-menu"}),(0,g.jsxs)("div",{className:"wdkit-res-infp-wrapper",children:[(0,g.jsx)(ji,{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)(vi,{}),(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:dl.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)(Ht,{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)(Ht,{to:e.sublink,className:"wdkit-res-suboption-txt",onClick:()=>{n(!s)},children:e.label},t)}))})]},d)}))})})]})})),pl=({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"})]})},ml=ai((e=>({NotificationData:e.wdkit_Notification_message?.notification_content})),(e=>({wdkit_set_notification:t=>e(fi(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{!s.includes(e)&&a.length>0&&setTimeout((()=>{let t=[...s,e];n(t)}),500)})(r),(0,g.jsx)(e.Fragment,{children:(0,g.jsx)(pl,{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})),ul=()=>{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"})]})},hl=()=>(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"})]}),gl=ai((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(gi(t)),wdkit_GetSettings_redux:t=>e(ui(t)),wdkit_set_notification:t=>e(fi(t)),wdkit_set_dark_mode:t=>e(ki(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")||i?.hash?.includes("#/create/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)(qt,{children:[(0,g.jsx)(xn,{}),(0,g.jsxs)("div",{className:"wkit-right-side",children:[(0,g.jsx)(cl,{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)(hl,{}),"1"==t?.wdkit_meta?.maintenance_mode?.meta_value&&(0,g.jsx)(ul,{}),(0,g.jsx)(Ae,{children:ol.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?.gutenberg_core_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)(Ee,{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)(jn,{})]})}),(0,g.jsx)(ml,{})]})})})),{form_data:wl,get_userinfo:_l}=wp.wkit_Helper,fl=ai((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(gi(t)),wdkit_GetSettings_redux:t=>e(ui(t)),wdkit_set_notification:t=>e(fi(t))})))((t=>{(0,e.useEffect)((()=>{window.innerWidth<991&&(document.body.classList.contains("folded")||document.body.classList.add("folded"))})),(0,e.useEffect)((()=>{s()}),[]),(0,e.useEffect)((()=>{i()}),[t?.wdkit_dark_mode,wdkitData.WDKIT_dark_mode]);const i=()=>{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")},s=async(e=1)=>{try{if(await p()){let a=await _l();if("yes"==a?.data?.login_reset){await m();let e={...t?.wdkit_meta,success:!1};return void t.wdkit_set_meta(e)}if(null!=a?.data?.success)return void("logout"!=a.data.login_status&&a?.data?.success?t.wdkit_set_meta(a?.data):(t.wdkit_set_meta(a?.data),m()));if(navigator.onLine||m(),e>0&&navigator.onLine)return s(e-1);n()}else{let i={type:"wkit_meta_data",meta_type:"all"};var a=await wl(i).then((e=>e));if(1==a?.data?.success)return void t.wdkit_set_meta(a?.data);if(e>0&&navigator.onLine)return s(e-1);n()}}catch(e){n()}},n=()=>{t.wdkit_set_meta({...t?.wdkit_meta,success:!1}),navigator.onLine&&t.wdkit_set_notification({title:(0,a.__)("Unable to load WDesignKit","wdesignkit"),desc:(0,a.__)("The request was blocked or failed. If you use a security or firewall plugin, please allowlist admin-ajax.php and reload the page.","wdesignkit")})}}));class kl 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)(fl,{}),(0,g.jsx)(gl,{})]})}}const bl=ai((e=>({wdkit_meta:e.wdkit_meta_data.wdkitmeta})),(e=>({wdkit_set_meta:t=>e(gi(t))})))(kl),yl=Bs(Zs),xl=document.getElementById("wdesignkit-app");(async()=>{if("1"!==new URLSearchParams(window.location.search).get(Tr)||window.parent===window)return;(()=>{const e=[/block validation/i,/is deprecated/i,/was added to the iframe incorrectly/i];["log","info","warn","error"].forEach((t=>{const a=console[t]?.bind(console);a&&(console[t]=(...t)=>{const i=t.map((e=>"string"==typeof e?e:"")).join(" ");e.some((e=>e.test(i)))||a(...t)})}))})();let e=0;try{if(!await Ir((()=>window.wp?.data?.select("core/editor")?.getCurrentPostId()),3e4))return void Rr("fail",e);const t=wp.data.select("core/editor");e=t.getCurrentPostId(),await Ir((()=>wp.data.select("core/block-editor").getBlockCount()>0),15e3,50),await Ir((()=>!t.isSavingPost()),15e3,50),await Br(300),await wp.data.dispatch("core/editor").savePost(),await Ir((()=>!wp.data.select("core/editor").isSavingPost()),45e3,50),await Ir((()=>!0===window.PlusCss),3e3,50),await Ir((()=>!0!==window.PlusCss),2e4,50),await Br(300),Rr("done",e)}catch(t){Rr("fail",e)}})(),xl&&(0,Rt.createRoot)(xl).render((0,g.jsx)(ii,{store:yl,children:(0,g.jsx)(bl,{})})),window.renderWkitReactApp=function(e="wkit-contentbox-modal",t="#/save_snippets"){window.location.hash=t;const a=document.getElementById(e);a?(0,Rt.createRoot)(a).render((0,g.jsx)(ii,{store:yl,children:(0,g.jsx)(bl,{})})):console.error("Root element not found")}})()})();